diff --git a/index.html b/index.html index 7fc498c..cb46c53 100644 --- a/index.html +++ b/index.html @@ -67,8 +67,8 @@ } } - - + + diff --git a/static/css/md-index-C7tRLP5C.css b/static/css/md-index-C7tRLP5C.css deleted file mode 100644 index 0d97036..0000000 --- a/static/css/md-index-C7tRLP5C.css +++ /dev/null @@ -1 +0,0 @@ -.loading[data-v-8781f9ec]{position:fixed;top:0;left:0;z-index:99999;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;font-size:18px;background-color:hsl(var(--background))}.loading[data-v-8781f9ec]: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}.fade-enter[data-v-8781f9ec],.fade-leave-to[data-v-8781f9ec]{opacity:0}.fade-enter-to[data-v-8781f9ec],.fade-leave[data-v-8781f9ec]{opacity:1}.fade-enter-active[data-v-8781f9ec],.fade-leave-active[data-v-8781f9ec]{transition:opacity 1s}.required[data-v-a66ad4e0]:before{content:"*";color:red;margin-right:.25em}.bounceInRight[data-v-b0f79ff7]{animation-name:bounceInRight-b0f79ff7;animation-duration:1s;animation-fill-mode:both}@keyframes bounceInRight-b0f79ff7{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}}.account-item[data-v-3407b3ac]{margin-bottom:1rem}.menubar[data-v-7e8ee93b]{-webkit-user-select:none;-moz-user-select:none;user-select:none}kbd[data-v-7e8ee93b]{display:inline-flex;justify-content:center;align-items:center;border:1px solid #a8a8a8;padding:1px 4px;border-radius:2px}[data-v-bc4a5df5]{box-sizing:border-box;margin:0;padding:0}html[data-v-bc4a5df5],body[data-v-bc4a5df5]{height:100%;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}input[data-v-bc4a5df5],button[data-v-bc4a5df5],textarea[data-v-bc4a5df5]{font-family:inherit}h1[data-v-bc4a5df5],h2[data-v-bc4a5df5],h3[data-v-bc4a5df5],h4[data-v-bc4a5df5],h5[data-v-bc4a5df5],h6[data-v-bc4a5df5]{font-weight:400}em[data-v-bc4a5df5]{font-style:normal!important}section[data-v-bc4a5df5]{height:100%}.web-title[data-v-bc4a5df5]{margin:0 15px 0 5px}.web-icon[data-v-bc4a5df5]{width:auto;height:1.5rem;vertical-align:middle}#editor[data-v-bc4a5df5]{display:block;height:100%;width:100%;padding:10px;border:none}.ctrl[data-v-bc4a5df5]{flex-basis:60px;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.preview-wrapper[data-v-bc4a5df5]{display:flex;align-items:center;justify-content:center;padding:0;overflow-y:scroll}.hint[data-v-bc4a5df5]{opacity:.6;margin:20px 0}.preview[data-v-bc4a5df5]{position:relative;margin:0 -20px;width:375px;min-height:100%;padding:20px;font-size:14px;box-sizing:border-box;outline:none;word-wrap:break-word}.preview table[data-v-bc4a5df5]{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important}.container[data-v-bc4a5df5]{height:100vh;min-width:100%;padding:0}.container-main[data-v-bc4a5df5]{overflow:hidden;padding:0 20px}#output-wrapper[data-v-bc4a5df5]{position:relative;-webkit-user-select:text;-moz-user-select:text;user-select:text;height:100%}.loading-mask[data-v-bc4a5df5]{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;color:hsl(var(--foreground));background-color:hsl(var(--background))}.loading-mask .loading-mask-box[data-v-bc4a5df5]{position:sticky;top:50%;transform:translateY(-50%)}.loading-mask .loading-mask-box .loading__img[data-v-bc4a5df5]{width:75px;height:75px;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;margin:1em auto;background-size:cover}[data-v-bc4a5df5] .preview-table{border-spacing:0}.codeMirror-wrapper[data-v-bc4a5df5],.preview-wrapper[data-v-bc4a5df5]{height:100%}.codeMirror-wrapper[data-v-bc4a5df5]{overflow-x:auto}html,body,#app{width:100vw;height:100vh;margin:0;padding:0}body{pointer-events:initial!important}::-webkit-scrollbar{width:6px;height:6px;background-color:#fff}::-webkit-scrollbar-track{border-radius:6px;background-color:#c8c8c84d}::-webkit-scrollbar-thumb{border-radius:6px;background-color:#90929880}.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 #0000001f,0 2px 4px #00000014}.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}.data-\[disabled\]\:pointer-events-none[data-disabled],.pointer-events-none{pointer-events:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.z-50{z-index:50}.order-1{order:1}.order-2{order:2}.grid{display:grid}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.h-\[--radix-select-trigger-height\]{height:var(--radix-select-trigger-height)}.h-\[1px\],.h-px{height:1px}.h-\[20px\]{height:20px}.h-\[25px\]{height:25px}.h-\[30px\]{height:30px}.h-10{height:2.5rem}.h-15{height:3.75rem}.h-2,.h2{height:.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5,.h5{height:1.25rem}.h-50{height:12.5rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-8{height:2rem}.h-full{height:100%}.h3{height:.75rem}.max-h-\[400px\]{max-height:400px}.max-h-56{max-height:14rem}.max-h-96{max-height:24rem}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.min-h-20{min-height:5rem}.min-h-4{min-height:1rem}.min-w-\[--radix-select-trigger-width\]{min-width:var(--radix-select-trigger-width)}.min-w-\[350px\]{min-width:350px}.min-w-32{min-width:8rem}.min-w-48{min-width:12rem}.w-\[150px\]{width:150px}.w-\[1px\],.w-px{width:1px}.w-\[200px\]{width:200px}.w-\[20px\]{width:20px}.w-\[25px\]{width:25px}.w-0{width:0}.w-10{width:2.5rem}.w-100{width:25rem}.w-11{width:2.75rem}.w-2{width:.5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-50{width:12.5rem}.w-56{width:14rem}.w-60{width:15rem}.w-64{width:16rem}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.-translate-x-1\/2{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-x-full{--un-translate-x:-100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-y-1\/2{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--un-translate-y:.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--un-translate-x:-.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--un-translate-x:.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--un-translate-y:-.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--un-translate-x:1.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-0{--un-translate-x:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-100{--un-translate-x:25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-full{--un-translate-x:100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.\[\&\>span\]\:truncate>span,.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.border,.border-1{border-width:1px}.border-2{border-width:2px}.file\:border-0::file-selector-button{border-width:0px}.border-x-1{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-l,.border-l-1{border-left-width:1px}.border-r{border-right-width:1px}.last\:border-b-0:last-child{border-bottom-width:0px}.border-black{--un-border-opacity:1;border-color:rgb(0 0 0 / var(--un-border-opacity))}.border-gray-200,.dark .dark\:border-gray-200{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.border-gray-700{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.border-transparent{border-color:transparent}.dark .dark\:border-white{--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity))}.dark .dark\:hover\:border-gray-200:hover{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.hover\:border-gray-700:hover{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border-dashed{border-style:dashed}.bg-black\/80{background-color:#000c}.bg-gray-100{--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity))}.bg-gray-2{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.bg-gray-400\/50{background-color:#9ca3af80}.bg-gray\/20{background-color:#9ca3af33}.dark .dark\:bg-gray-500\/50{background-color:#6b728080}.dark .dark\:bg-gray-900{--un-bg-opacity:1;background-color:rgb(17 24 39 / var(--un-bg-opacity))}.dark .dark\:bg-gray\/40{background-color:#9ca3af66}.dark .dark\:bg-stone-9{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.dark .dark\:hover\:bg-gray-500\/50:hover{background-color:#6b728080}.dark .dark\:hover\:bg-gray-600:hover{--un-bg-opacity:1;background-color:rgb(75 85 99 / var(--un-bg-opacity))}.hover\:bg-gray-200:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.hover\:bg-gray-400\/50:hover{background-color:#9ca3af80}.file\:bg-transparent::file-selector-button{background-color:transparent}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px{padding-left:1rem;padding-right:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.\[\&\>\[data-slot\=input\]\]\:has-\[\[data-slot\=decrement\]\]\:pl-5:has([data-slot=decrement])>[data-slot=input]{padding-left:1.25rem}.\[\&\>\[data-slot\=input\]\]\:has-\[\[data-slot\=increment\]\]\:pr-5:has([data-slot=increment])>[data-slot=input]{padding-right:1.25rem}.pl-7{padding-left:1.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.text-end{text-align:end}.text-\[12px\]{font-size:12px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.dark .dark\:text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-blue-500{--un-text-opacity:1;color:rgb(59 130 246 / var(--un-text-opacity))}.text-green-600{--un-text-opacity:1;color:rgb(22 163 74 / var(--un-text-opacity))}.text-red-600{--un-text-opacity:1;color:rgb(220 38 38 / var(--un-text-opacity))}.text-yellow-600{--un-text-opacity:1;color:rgb(202 138 4 / var(--un-text-opacity))}.dark .dark\:hover\:text-white:hover{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.file\:font-medium::file-selector-button{font-weight:500}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.hover\:underline:hover{text-decoration-line:underline}.data-\[disabled\]\:opacity-50[data-disabled],.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70,.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.hover\:opacity-100:hover{opacity:1}.disabled\:opacity-20:disabled{opacity:.2}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:shadow-lg,.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--un-shadow:var(--un-shadow-inset) 0 1px 2px 0 var(--un-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-md{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-none{--un-shadow:0 0 var(--un-shadow-color, rgb(0 0 0 / 0));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline{outline-style:solid}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.ring-0{--un-ring-width:0px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-2:focus{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible\:ring-2:focus-visible{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-offset-2:focus{--un-ring-offset-width:2px}.focus-visible\:ring-offset-2:focus-visible{--un-ring-offset-width:2px}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-color{transition-property:color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-width{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-evenly{justify-content:space-evenly}.sm\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:w-full{width:100%}}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-xq-light span.cm-keyword{line-height:1em;font-weight:700;color:#5a5cad}.cm-s-xq-light span.cm-atom{color:#6c8cd5}.cm-s-xq-light span.cm-number{color:#164}.cm-s-xq-light span.cm-def{text-decoration:underline}.cm-s-xq-light span.cm-variable,.cm-s-xq-light span.cm-variable-2,.cm-s-xq-light span.cm-variable-3,.cm-s-xq-light span.cm-type{color:#000}.cm-s-xq-light span.cm-comment{color:#0080ff;font-style:italic}.cm-s-xq-light span.cm-string{color:red}.cm-s-xq-light span.cm-meta{color:#ff0}.cm-s-xq-light span.cm-qualifier{color:gray}.cm-s-xq-light span.cm-builtin{color:#7ea656}.cm-s-xq-light span.cm-bracket{color:#cc7}.cm-s-xq-light span.cm-tag{color:#3f7f7f}.cm-s-xq-light span.cm-attribute{color:#7f007f}.cm-s-xq-light span.cm-error{color:red}.cm-s-xq-light .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-xq-light .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important;background:#ff0}.cm-s-darcula{font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}.cm-s-darcula.CodeMirror{background:#2b2b2b;color:#a9b7c6}.cm-s-darcula span.cm-meta{color:#bbb529}.cm-s-darcula span.cm-number{color:#6897bb}.cm-s-darcula span.cm-keyword{color:#cc7832;line-height:1em;font-weight:700}.cm-s-darcula span.cm-def{color:#a9b7c6;font-style:italic}.cm-s-darcula span.cm-variable,.cm-s-darcula span.cm-variable-2{color:#a9b7c6}.cm-s-darcula span.cm-variable-3{color:#9876aa}.cm-s-darcula span.cm-type{color:#abc;font-weight:700}.cm-s-darcula span.cm-property{color:#ffc66d}.cm-s-darcula span.cm-operator{color:#a9b7c6}.cm-s-darcula span.cm-string,.cm-s-darcula span.cm-string-2{color:#6a8759}.cm-s-darcula span.cm-comment{color:#61a151;font-style:italic}.cm-s-darcula span.cm-link,.cm-s-darcula span.cm-atom{color:#cc7832}.cm-s-darcula span.cm-error{color:#bc3f3c}.cm-s-darcula span.cm-tag{color:#629755;font-weight:700;font-style:italic;text-decoration:underline}.cm-s-darcula span.cm-attribute{color:#6897bb}.cm-s-darcula span.cm-qualifier{color:#6a8759}.cm-s-darcula span.cm-bracket{color:#a9b7c6}.cm-s-darcula span.cm-builtin,.cm-s-darcula span.cm-special{color:#ff9e59}.cm-s-darcula span.cm-matchhighlight{color:#fff;background-color:#325930b3;font-weight:400}.cm-s-darcula span.cm-searching{color:#fff;background-color:#3d733bb3;font-weight:400}.cm-s-darcula .CodeMirror-cursor{border-left:1px solid #A9B7C6}.cm-s-darcula .CodeMirror-activeline-background{background:#323232}.cm-s-darcula .CodeMirror-gutters{background:#313335;border-right:1px solid #313335}.cm-s-darcula .CodeMirror-guttermarker{color:#ffee80}.cm-s-darcula .CodeMirror-guttermarker-subtle{color:#d0d0d0}.cm-s-darcula .CodeMirrir-linenumber{color:#606366}.cm-s-darcula .CodeMirror-matchingbracket{background-color:#3b514d;color:#ffef28!important;font-weight:700}.cm-s-darcula div.CodeMirror-selected{background:#214283}.CodeMirror-hints.darcula{font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#9c9e9e;background-color:#3b3e3f!important}.CodeMirror-hints.darcula .CodeMirror-hint-active{background-color:#494d4e!important;color:#9c9e9e!important}.-translate-x-1\/2,.-translate-x-full,.-translate-y-1\/2,.translate-x-0,.translate-x-full,.transform,[data-side=bottom],[data-side=left],[data-side=right],[data-side=top],[data-state=checked],div{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1}.shadow-lg,.shadow-md,.shadow-none,.shadow-xl,.group-\[\.toaster\]\:shadow-lg,[data-state=active]{--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.ring-0,.focus\:ring-2,.focus-visible\:ring-2{--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.grayscale,.filter{--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--radius: .5rem;--blockquote-background: #f7f7f7}.dark{--background:0 0% 3.9%;--foreground:0 0% 98%;--card:0 0% 3.9%;--card-foreground:0 0% 98%;--popover:0 0% 3.9%;--popover-foreground:0 0% 98%;--primary:0 0% 98%;--primary-foreground:0 0% 9%;--secondary:0 0% 14.9%;--secondary-foreground:0 0% 98%;--muted:0 0% 14.9%;--muted-foreground:0 0% 63.9%;--accent:0 0% 14.9%;--accent-foreground:0 0% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:0 0% 98%;--border:0 0% 14.9%;--input:0 0% 14.9%;--ring:0 0% 83.1%;--blockquote-background: #212121}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.table{display:table}.h-11{height:2.75rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-px{height:1px}.w-0{width:0px}.w-72{width:18rem}.w-\[1px\]{width:1px}.w-px{width:1px}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-l{border-left-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-border{border-color:hsl(var(--border))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-500\/50{background-color:#6b728080}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-clip-padding{background-clip:padding-box}.object-cover{-o-object-fit:cover;object-fit:cover}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.italic{font-style:italic}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.fade-in-80{--tw-enter-opacity: .8}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:border-gray-700:hover{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:border-gray-200:is(.dark *){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.dark\:border-white:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.dark\:bg-gray-500\/50:is(.dark *){background-color:#6b728080}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:hover\:border-gray-200:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-gray-500\/50:hover:is(.dark *){background-color:#6b728080}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-muted:hover:is(.dark *){background-color:hsl(var(--muted))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-evenly{justify-content:space-evenly}.sm\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}.\[\&\>span\]\:truncate>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.dark .container .output_night .preview{background-color:#191919;box-shadow:0 0 70px #0000004d}.dark .container .output_night .preview-wrapper{background-color:#191919;box-shadow:inset 0 0 0 1px #e9e7e71a}.dark .container .output_night .code-snippet__fix{background-color:#eee}.dark .container ::-webkit-scrollbar{background-color:#191919}.CodeMirror{padding-bottom:0;height:100%!important;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:0px;height:0px}.CodeMirror-wrap{padding-top:20px;padding-bottom:20px;box-sizing:border-box}.cm-em{font-style:normal}.cm-comment{font-style:normal!important} diff --git a/static/css/md-index-CwPcHaUG.css b/static/css/md-index-CwPcHaUG.css new file mode 100644 index 0000000..15f8a10 --- /dev/null +++ b/static/css/md-index-CwPcHaUG.css @@ -0,0 +1 @@ +.loading[data-v-8781f9ec]{position:fixed;top:0;left:0;z-index:99999;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;font-size:18px;background-color:hsl(var(--background))}.loading[data-v-8781f9ec]: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}.fade-enter[data-v-8781f9ec],.fade-leave-to[data-v-8781f9ec]{opacity:0}.fade-enter-to[data-v-8781f9ec],.fade-leave[data-v-8781f9ec]{opacity:1}.fade-enter-active[data-v-8781f9ec],.fade-leave-active[data-v-8781f9ec]{transition:opacity 1s}.required[data-v-0d03152f]:before{content:"*";color:red;margin-right:.25em}.bounceInRight[data-v-b0f79ff7]{animation-name:bounceInRight-b0f79ff7;animation-duration:1s;animation-fill-mode:both}@keyframes bounceInRight-b0f79ff7{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}}.account-item[data-v-3407b3ac]{margin-bottom:1rem}.menubar[data-v-7e8ee93b]{-webkit-user-select:none;-moz-user-select:none;user-select:none}kbd[data-v-7e8ee93b]{display:inline-flex;justify-content:center;align-items:center;border:1px solid #a8a8a8;padding:1px 4px;border-radius:2px}[data-v-bc4a5df5]{box-sizing:border-box;margin:0;padding:0}html[data-v-bc4a5df5],body[data-v-bc4a5df5]{height:100%;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}input[data-v-bc4a5df5],button[data-v-bc4a5df5],textarea[data-v-bc4a5df5]{font-family:inherit}h1[data-v-bc4a5df5],h2[data-v-bc4a5df5],h3[data-v-bc4a5df5],h4[data-v-bc4a5df5],h5[data-v-bc4a5df5],h6[data-v-bc4a5df5]{font-weight:400}em[data-v-bc4a5df5]{font-style:normal!important}section[data-v-bc4a5df5]{height:100%}.web-title[data-v-bc4a5df5]{margin:0 15px 0 5px}.web-icon[data-v-bc4a5df5]{width:auto;height:1.5rem;vertical-align:middle}#editor[data-v-bc4a5df5]{display:block;height:100%;width:100%;padding:10px;border:none}.ctrl[data-v-bc4a5df5]{flex-basis:60px;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.preview-wrapper[data-v-bc4a5df5]{display:flex;align-items:center;justify-content:center;padding:0;overflow-y:scroll}.hint[data-v-bc4a5df5]{opacity:.6;margin:20px 0}.preview[data-v-bc4a5df5]{position:relative;margin:0 -20px;width:375px;min-height:100%;padding:20px;font-size:14px;box-sizing:border-box;outline:none;word-wrap:break-word}.preview table[data-v-bc4a5df5]{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important}.container[data-v-bc4a5df5]{height:100vh;min-width:100%;padding:0}.container-main[data-v-bc4a5df5]{overflow:hidden;padding:0 20px}#output-wrapper[data-v-bc4a5df5]{position:relative;-webkit-user-select:text;-moz-user-select:text;user-select:text;height:100%}.loading-mask[data-v-bc4a5df5]{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;color:hsl(var(--foreground));background-color:hsl(var(--background))}.loading-mask .loading-mask-box[data-v-bc4a5df5]{position:sticky;top:50%;transform:translateY(-50%)}.loading-mask .loading-mask-box .loading__img[data-v-bc4a5df5]{width:75px;height:75px;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;margin:1em auto;background-size:cover}[data-v-bc4a5df5] .preview-table{border-spacing:0}.codeMirror-wrapper[data-v-bc4a5df5],.preview-wrapper[data-v-bc4a5df5]{height:100%}.codeMirror-wrapper[data-v-bc4a5df5]{overflow-x:auto}html,body,#app{width:100vw;height:100vh;margin:0;padding:0}body{pointer-events:initial!important}::-webkit-scrollbar{width:6px;height:6px;background-color:#fff}::-webkit-scrollbar-track{border-radius:6px;background-color:#c8c8c84d}::-webkit-scrollbar-thumb{border-radius:6px;background-color:#90929880}.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 #0000001f,0 2px 4px #00000014}.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}.data-\[disabled\]\:pointer-events-none[data-disabled],.pointer-events-none{pointer-events:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.z-50{z-index:50}.order-1{order:1}.order-2{order:2}.grid{display:grid}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-\[-24px\]{margin-bottom:-24px}.mb-\[24px\]{margin-bottom:24px}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.h-\[--radix-select-trigger-height\]{height:var(--radix-select-trigger-height)}.h-\[1px\],.h-px{height:1px}.h-\[20px\]{height:20px}.h-\[25px\]{height:25px}.h-\[30px\]{height:30px}.h-10{height:2.5rem}.h-15{height:3.75rem}.h-2,.h2{height:.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5,.h5{height:1.25rem}.h-50{height:12.5rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-8{height:2rem}.h-full{height:100%}.h3{height:.75rem}.max-h-\[400px\]{max-height:400px}.max-h-56{max-height:14rem}.max-h-96{max-height:24rem}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.min-h-\[24px\]{min-height:24px}.min-h-\[40px\]{min-height:40px}.min-h-\[64px\]{min-height:64px}.min-h-20{min-height:5rem}.min-h-4{min-height:1rem}.min-w-\[--radix-select-trigger-width\]{min-width:var(--radix-select-trigger-width)}.min-w-\[350px\]{min-width:350px}.min-w-32{min-width:8rem}.min-w-48{min-width:12rem}.w-\[150px\]{width:150px}.w-\[1px\],.w-px{width:1px}.w-\[200px\]{width:200px}.w-\[20px\]{width:20px}.w-\[25px\]{width:25px}.w-0{width:0}.w-10{width:2.5rem}.w-100{width:25rem}.w-11{width:2.75rem}.w-2{width:.5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-50{width:12.5rem}.w-56{width:14rem}.w-60{width:15rem}.w-64{width:16rem}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.-translate-x-1\/2{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-x-full{--un-translate-x:-100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-y-1\/2{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--un-translate-y:.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--un-translate-x:-.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--un-translate-x:.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--un-translate-y:-.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--un-translate-x:1.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-0{--un-translate-x:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-100{--un-translate-x:25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-full{--un-translate-x:100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.\[\&\>span\]\:truncate>span,.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.border,.border-1{border-width:1px}.border-2{border-width:2px}.file\:border-0::file-selector-button{border-width:0px}.border-x-1{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-l,.border-l-1{border-left-width:1px}.border-r{border-right-width:1px}.last\:border-b-0:last-child{border-bottom-width:0px}.border-black{--un-border-opacity:1;border-color:rgb(0 0 0 / var(--un-border-opacity))}.border-gray-200,.dark .dark\:border-gray-200{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.border-gray-700{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.border-transparent{border-color:transparent}.dark .dark\:border-white{--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity))}.dark .dark\:hover\:border-gray-200:hover{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.hover\:border-gray-700:hover{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border-dashed{border-style:dashed}.bg-black\/80{background-color:#000c}.bg-gray-100{--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity))}.bg-gray-2{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.bg-gray-400\/50{background-color:#9ca3af80}.bg-gray\/20{background-color:#9ca3af33}.dark .dark\:bg-gray-500\/50{background-color:#6b728080}.dark .dark\:bg-gray-900{--un-bg-opacity:1;background-color:rgb(17 24 39 / var(--un-bg-opacity))}.dark .dark\:bg-gray\/40{background-color:#9ca3af66}.dark .dark\:bg-stone-9{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.dark .dark\:hover\:bg-gray-500\/50:hover{background-color:#6b728080}.dark .dark\:hover\:bg-gray-600:hover{--un-bg-opacity:1;background-color:rgb(75 85 99 / var(--un-bg-opacity))}.hover\:bg-gray-200:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.hover\:bg-gray-400\/50:hover{background-color:#9ca3af80}.file\:bg-transparent::file-selector-button{background-color:transparent}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px{padding-left:1rem;padding-right:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.\[\&\>\[data-slot\=input\]\]\:has-\[\[data-slot\=decrement\]\]\:pl-5:has([data-slot=decrement])>[data-slot=input]{padding-left:1.25rem}.\[\&\>\[data-slot\=input\]\]\:has-\[\[data-slot\=increment\]\]\:pr-5:has([data-slot=increment])>[data-slot=input]{padding-right:1.25rem}.pl-7{padding-left:1.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.text-\[12px\]{font-size:12px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.dark .dark\:text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-blue-500{--un-text-opacity:1;color:rgb(59 130 246 / var(--un-text-opacity))}.text-green-600{--un-text-opacity:1;color:rgb(22 163 74 / var(--un-text-opacity))}.text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.text-red-600{--un-text-opacity:1;color:rgb(220 38 38 / var(--un-text-opacity))}.text-yellow-600{--un-text-opacity:1;color:rgb(202 138 4 / var(--un-text-opacity))}.dark .dark\:hover\:text-white:hover{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.file\:font-medium::file-selector-button{font-weight:500}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.hover\:underline:hover{text-decoration-line:underline}.data-\[disabled\]\:opacity-50[data-disabled],.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70,.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.hover\:opacity-100:hover{opacity:1}.disabled\:opacity-20:disabled{opacity:.2}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:shadow-lg,.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--un-shadow:var(--un-shadow-inset) 0 1px 2px 0 var(--un-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-md{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-none{--un-shadow:0 0 var(--un-shadow-color, rgb(0 0 0 / 0));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline{outline-style:solid}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.ring-0{--un-ring-width:0px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-2:focus{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible\:ring-2:focus-visible{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-offset-2:focus{--un-ring-offset-width:2px}.focus-visible\:ring-offset-2:focus-visible{--un-ring-offset-width:2px}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-color{transition-property:color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-width{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-evenly{justify-content:space-evenly}.sm\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:w-full{width:100%}}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-xq-light span.cm-keyword{line-height:1em;font-weight:700;color:#5a5cad}.cm-s-xq-light span.cm-atom{color:#6c8cd5}.cm-s-xq-light span.cm-number{color:#164}.cm-s-xq-light span.cm-def{text-decoration:underline}.cm-s-xq-light span.cm-variable,.cm-s-xq-light span.cm-variable-2,.cm-s-xq-light span.cm-variable-3,.cm-s-xq-light span.cm-type{color:#000}.cm-s-xq-light span.cm-comment{color:#0080ff;font-style:italic}.cm-s-xq-light span.cm-string{color:red}.cm-s-xq-light span.cm-meta{color:#ff0}.cm-s-xq-light span.cm-qualifier{color:gray}.cm-s-xq-light span.cm-builtin{color:#7ea656}.cm-s-xq-light span.cm-bracket{color:#cc7}.cm-s-xq-light span.cm-tag{color:#3f7f7f}.cm-s-xq-light span.cm-attribute{color:#7f007f}.cm-s-xq-light span.cm-error{color:red}.cm-s-xq-light .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-xq-light .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important;background:#ff0}.cm-s-darcula{font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}.cm-s-darcula.CodeMirror{background:#2b2b2b;color:#a9b7c6}.cm-s-darcula span.cm-meta{color:#bbb529}.cm-s-darcula span.cm-number{color:#6897bb}.cm-s-darcula span.cm-keyword{color:#cc7832;line-height:1em;font-weight:700}.cm-s-darcula span.cm-def{color:#a9b7c6;font-style:italic}.cm-s-darcula span.cm-variable,.cm-s-darcula span.cm-variable-2{color:#a9b7c6}.cm-s-darcula span.cm-variable-3{color:#9876aa}.cm-s-darcula span.cm-type{color:#abc;font-weight:700}.cm-s-darcula span.cm-property{color:#ffc66d}.cm-s-darcula span.cm-operator{color:#a9b7c6}.cm-s-darcula span.cm-string,.cm-s-darcula span.cm-string-2{color:#6a8759}.cm-s-darcula span.cm-comment{color:#61a151;font-style:italic}.cm-s-darcula span.cm-link,.cm-s-darcula span.cm-atom{color:#cc7832}.cm-s-darcula span.cm-error{color:#bc3f3c}.cm-s-darcula span.cm-tag{color:#629755;font-weight:700;font-style:italic;text-decoration:underline}.cm-s-darcula span.cm-attribute{color:#6897bb}.cm-s-darcula span.cm-qualifier{color:#6a8759}.cm-s-darcula span.cm-bracket{color:#a9b7c6}.cm-s-darcula span.cm-builtin,.cm-s-darcula span.cm-special{color:#ff9e59}.cm-s-darcula span.cm-matchhighlight{color:#fff;background-color:#325930b3;font-weight:400}.cm-s-darcula span.cm-searching{color:#fff;background-color:#3d733bb3;font-weight:400}.cm-s-darcula .CodeMirror-cursor{border-left:1px solid #A9B7C6}.cm-s-darcula .CodeMirror-activeline-background{background:#323232}.cm-s-darcula .CodeMirror-gutters{background:#313335;border-right:1px solid #313335}.cm-s-darcula .CodeMirror-guttermarker{color:#ffee80}.cm-s-darcula .CodeMirror-guttermarker-subtle{color:#d0d0d0}.cm-s-darcula .CodeMirrir-linenumber{color:#606366}.cm-s-darcula .CodeMirror-matchingbracket{background-color:#3b514d;color:#ffef28!important;font-weight:700}.cm-s-darcula div.CodeMirror-selected{background:#214283}.CodeMirror-hints.darcula{font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#9c9e9e;background-color:#3b3e3f!important}.CodeMirror-hints.darcula .CodeMirror-hint-active{background-color:#494d4e!important;color:#9c9e9e!important}.-translate-x-1\/2,.-translate-x-full,.-translate-y-1\/2,.translate-x-0,.translate-x-full,.transform,[data-side=bottom],[data-side=left],[data-side=right],[data-side=top],[data-state=checked],div{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1}.shadow-lg,.shadow-md,.shadow-none,.shadow-xl,.group-\[\.toaster\]\:shadow-lg,[data-state=active]{--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.ring-0,.focus\:ring-2,.focus-visible\:ring-2{--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.grayscale,.filter{--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--radius: .5rem;--blockquote-background: #f7f7f7}.dark{--background:0 0% 3.9%;--foreground:0 0% 98%;--card:0 0% 3.9%;--card-foreground:0 0% 98%;--popover:0 0% 3.9%;--popover-foreground:0 0% 98%;--primary:0 0% 98%;--primary-foreground:0 0% 9%;--secondary:0 0% 14.9%;--secondary-foreground:0 0% 98%;--muted:0 0% 14.9%;--muted-foreground:0 0% 63.9%;--accent:0 0% 14.9%;--accent-foreground:0 0% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:0 0% 98%;--border:0 0% 14.9%;--input:0 0% 14.9%;--ring:0 0% 83.1%;--blockquote-background: #212121}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.table{display:table}.h-11{height:2.75rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-px{height:1px}.w-0{width:0px}.w-72{width:18rem}.w-\[1px\]{width:1px}.w-px{width:1px}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-l{border-left-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-border{border-color:hsl(var(--border))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-500\/50{background-color:#6b728080}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-clip-padding{background-clip:padding-box}.object-cover{-o-object-fit:cover;object-fit:cover}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.italic{font-style:italic}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.fade-in-80{--tw-enter-opacity: .8}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:border-gray-700:hover{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:border-gray-200:is(.dark *){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.dark\:border-white:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.dark\:bg-gray-500\/50:is(.dark *){background-color:#6b728080}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-muted:is(.dark *){background-color:hsl(var(--muted))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:hover\:border-gray-200:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-gray-500\/50:hover:is(.dark *){background-color:#6b728080}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-muted:hover:is(.dark *){background-color:hsl(var(--muted))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-evenly{justify-content:space-evenly}.sm\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}.\[\&\>span\]\:truncate>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.dark .container .output_night .preview{background-color:#191919;box-shadow:0 0 70px #0000004d}.dark .container .output_night .preview-wrapper{background-color:#191919;box-shadow:inset 0 0 0 1px #e9e7e71a}.dark .container .output_night .code-snippet__fix{background-color:#eee}.dark .container ::-webkit-scrollbar{background-color:#191919}.CodeMirror{padding-bottom:0;height:100%!important;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:0px;height:0px}.CodeMirror-wrap{padding-top:20px;padding-bottom:20px;box-sizing:border-box}.cm-em{font-style:normal}.cm-comment{font-style:normal!important} diff --git a/static/js/md-_basePickBy-CdF26LR_.js b/static/js/md-_basePickBy-C4aggLA-.js similarity index 95% rename from static/js/md-_basePickBy-CdF26LR_.js rename to static/js/md-_basePickBy-C4aggLA-.js index 7b4c95f..690fc77 100644 --- a/static/js/md-_basePickBy-CdF26LR_.js +++ b/static/js/md-_basePickBy-C4aggLA-.js @@ -1 +1 @@ -import{e as x,c as b,g as m,k as P,h as p,j as w,l as A,m as N,n as I,t as c,o as M}from"./md-_baseUniq-Cjg3wXP1.js";import{aM as g,aA as E,aN as F,aO as T,aP as _,aQ as l,aR as $,aS as B,aT as S,aU as y}from"./md-index-BhYxDPe5.js";var R=/\s/;function G(n){for(var r=n.length;r--&&R.test(n.charAt(r)););return r}var H=/^\s+/;function L(n){return n&&n.slice(0,G(n)+1).replace(H,"")}var o=NaN,q=/^[-+]0x[0-9a-f]+$/i,z=/^0b[01]+$/i,C=/^0o[0-7]+$/i,K=parseInt;function Q(n){if(typeof n=="number")return n;if(x(n))return o;if(g(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=g(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=L(n);var t=z.test(n);return t||C.test(n)?K(n.slice(2),t?2:8):q.test(n)?o:+n}var v=1/0,U=17976931348623157e292;function W(n){if(!n)return n===0?n:0;if(n=Q(n),n===v||n===-v){var r=n<0?-1:1;return r*U}return n===n?n:0}function X(n){var r=W(n),t=r%1;return r===r?t?r-t:r:0}function fn(n){var r=n==null?0:n.length;return r?b(n):[]}var O=Object.prototype,Y=O.hasOwnProperty,dn=E(function(n,r){n=Object(n);var t=-1,i=r.length,a=i>2?r[2]:void 0;for(a&&F(r[0],r[1],a)&&(i=1);++t-1?a[f?r[e]:e]:void 0}}var J=Math.max;function Z(n,r,t){var i=n==null?0:n.length;if(!i)return-1;var a=t==null?0:X(t);return a<0&&(a=J(i+a,0)),p(n,m(r),a)}var hn=D(Z);function V(n,r){var t=-1,i=l(n)?Array(n.length):[];return w(n,function(a,f,e){i[++t]=r(a,f,e)}),i}function gn(n,r){var t=$(n)?A:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&N(n,r,nn)}function rn(n,r){return n2?r[2]:void 0;for(a&&F(r[0],r[1],a)&&(i=1);++t-1?a[f?r[e]:e]:void 0}}var J=Math.max;function Z(n,r,t){var i=n==null?0:n.length;if(!i)return-1;var a=t==null?0:X(t);return a<0&&(a=J(i+a,0)),p(n,m(r),a)}var hn=D(Z);function V(n,r){var t=-1,i=l(n)?Array(n.length):[];return w(n,function(a,f,e){i[++t]=r(a,f,e)}),i}function gn(n,r){var t=$(n)?A:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&N(n,r,nn)}function rn(n,r){return n-1}function $(n){return sn(n)?xn(n):Mn(n)}var nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rr=/^\w*$/;function B(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||U(n)?!0:rr.test(n)||!nr.test(n)||r!=null&&n in Object(r)}var er=500;function tr(n){var r=mn(n,function(t){return e.size===er&&e.clear(),t}),e=r.cache;return r}var ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/\\(\\)?/g,fr=tr(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(ir,function(e,t,a,i){r.push(a?i.replace(ar,"$1"):t||e)}),r});function sr(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:B(n,r)?[n]:fr(sr(n))}var ur=1/0;function M(n){if(typeof n=="string"||U(n))return n;var r=n+"";return r=="0"&&1/n==-ur?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&es))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&Re?new v:void 0;for(i.set(n,r),i.set(r,n);++o=Ot){var b=r?null:wt(n);if(b)return H(b);f=!1,a=Sn,u=new v}else u=r?[]:s;n:for(;++t-1}function $(n){return sn(n)?xn(n):Mn(n)}var nr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rr=/^\w*$/;function B(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||U(n)?!0:rr.test(n)||!nr.test(n)||r!=null&&n in Object(r)}var er=500;function tr(n){var r=mn(n,function(t){return e.size===er&&e.clear(),t}),e=r.cache;return r}var ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/\\(\\)?/g,fr=tr(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(ir,function(e,t,a,i){r.push(a?i.replace(ar,"$1"):t||e)}),r});function sr(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:B(n,r)?[n]:fr(sr(n))}var ur=1/0;function M(n){if(typeof n=="string"||U(n))return n;var r=n+"";return r=="0"&&1/n==-ur?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&es))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&Re?new v:void 0;for(i.set(n,r),i.set(r,n);++o=Ot){var b=r?null:wt(n);if(b)return H(b);f=!1,a=Sn,u=new v}else u=r?[]:s;n:for(;++tr*r+F*F&&($=w,j=p),{cx:$,cy:j,x01:-n,y01:-d,x11:$*(v/T-1),y11:j*(v/T-1)}}function hn(){var l=cn,h=yn,I=z(0),D=null,v=gn,A=dn,B=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,C=un(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(C>tn-y)a.moveTo(s*G(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*G(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=C,S=C,$=B.apply(this,arguments)/2,j=$>y&&(D?+D.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(j>y){var F=sn(j/u*q($)),L=sn(j/s*q($));(P-=F*2)>y?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(S-=L*2)>y?(L*=t?1:-1,m+=L,g-=L):(S=0,m=g=(f+c)/2)}var H=s*G(m),J=s*q(m),M=u*G(T),N=u*q(T);if(w>y){var Q=s*G(g),U=s*q(g),W=u*G(R),X=u*q(R),E;if(Cy?x>y?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(M,N):p>y?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),pr*r+F*F&&($=w,j=p),{cx:$,cy:j,x01:-n,y01:-d,x11:$*(v/T-1),y11:j*(v/T-1)}}function hn(){var l=cn,h=yn,I=z(0),D=null,v=gn,A=dn,B=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,C=un(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(C>tn-y)a.moveTo(s*G(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*G(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=C,S=C,$=B.apply(this,arguments)/2,j=$>y&&(D?+D.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(j>y){var F=sn(j/u*q($)),L=sn(j/s*q($));(P-=F*2)>y?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(S-=L*2)>y?(L*=t?1:-1,m+=L,g-=L):(S=0,m=g=(f+c)/2)}var H=s*G(m),J=s*q(m),M=u*G(T),N=u*q(T);if(w>y){var Q=s*G(g),U=s*q(g),W=u*G(R),X=u*q(R),E;if(Cy?x>y?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(M,N):p>y?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),ph?(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(h+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(t){var h=this.rect.x;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(h,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},C.exports=a},function(C,G,N){var g=N(0);function s(){}for(var i in g)s[i]=g[i];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,C.exports=s},function(C,G,N){function g(s,i){s==null&&i==null?(this.x=0,this.y=0):(this.x=s,this.y=i)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.setX=function(s){this.x=s},g.prototype.setY=function(s){this.y=s},g.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},g.prototype.getCopy=function(){return new g(this.x,this.y)},g.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},C.exports=g},function(C,G,N){var g=N(2),s=N(10),i=N(0),r=N(7),e=N(3),f=N(1),a=N(13),y=N(12),t=N(11);function h(c,l,T){g.call(this,T),this.estimatedSize=s.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}h.prototype=Object.create(g.prototype);for(var o in g)h[o]=g[o];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(c,l,T){if(l==null&&T==null){var u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var v=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(v.source=l,v.target=T,v.isInterGraph=!1,this.getEdges().push(v),l.edges.push(v),T!=l&&T.edges.push(v),v)}},h.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),u,v=T.length,L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(A,1),u.target!=u.source&&u.target.edges.splice(P,1);var F=u.source.owner.getEdges().indexOf(u);if(F==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(F,1)}},h.prototype.updateLeftTop=function(){for(var c=s.MAX_VALUE,l=s.MAX_VALUE,T,u,v,L=this.getNodes(),F=L.length,A=0;AT&&(c=T),l>u&&(l=u)}return c==s.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?v=L[0].getParent().paddingLeft:v=this.margin,this.left=l-v,this.top=c-v,new y(this.left,this.top))},h.prototype.updateBounds=function(c){for(var l=s.MAX_VALUE,T=-s.MAX_VALUE,u=s.MAX_VALUE,v=-s.MAX_VALUE,L,F,A,P,J,V=this.nodes,Q=V.length,D=0;DL&&(l=L),TA&&(u=A),vL&&(l=L),TA&&(u=A),v=this.nodes.length){var Q=0;T.forEach(function(D){D.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},C.exports=h},function(C,G,N){var g,s=N(1);function i(r){g=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,e,f,a,y){if(f==null&&a==null&&y==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{y=f,a=e,f=r;var t=a.getOwner(),h=y.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==h)return f.isInterGraph=!1,t.add(f,a,y);if(f.isInterGraph=!0,f.source=a,f.target=y,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof g){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var a,y=f.length,t=0;t=r.getRight()?e[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(e[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?e[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(e[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var y=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(y=1);var t=y*e[0],h=e[1]/y;e[0]t)return e[0]=f,e[1]=o,e[2]=y,e[3]=V,!1;if(ay)return e[0]=h,e[1]=a,e[2]=P,e[3]=t,!1;if(fy?(e[0]=l,e[1]=T,n=!0):(e[0]=c,e[1]=o,n=!0):d===p&&(f>y?(e[0]=h,e[1]=o,n=!0):(e[0]=u,e[1]=T,n=!0)),-E===p?y>f?(e[2]=J,e[3]=V,m=!0):(e[2]=P,e[3]=A,m=!0):E===p&&(y>f?(e[2]=F,e[3]=A,m=!0):(e[2]=Q,e[3]=V,m=!0)),n&&m)return!1;if(f>y?a>t?(I=this.getCardinalDirection(d,p,4),w=this.getCardinalDirection(E,p,2)):(I=this.getCardinalDirection(-d,p,3),w=this.getCardinalDirection(-E,p,1)):a>t?(I=this.getCardinalDirection(-d,p,1),w=this.getCardinalDirection(-E,p,3)):(I=this.getCardinalDirection(d,p,2),w=this.getCardinalDirection(E,p,4)),!n)switch(I){case 1:H=o,R=f+-L/p,e[0]=R,e[1]=H;break;case 2:R=u,H=a+v*p,e[0]=R,e[1]=H;break;case 3:H=T,R=f+L/p,e[0]=R,e[1]=H;break;case 4:R=l,H=a+-v*p,e[0]=R,e[1]=H;break}if(!m)switch(w){case 1:k=A,x=y+-rt/p,e[2]=x,e[3]=k;break;case 2:x=Q,k=t+D*p,e[2]=x,e[3]=k;break;case 3:k=V,x=y+rt/p,e[2]=x,e[3]=k;break;case 4:x=J,k=t+-D*p,e[2]=x,e[3]=k;break}}return!1},s.getCardinalDirection=function(i,r,e){return i>r?e:1+e%4},s.getIntersection=function(i,r,e,f){if(f==null)return this.getIntersection2(i,r,e);var a=i.x,y=i.y,t=r.x,h=r.y,o=e.x,c=e.y,l=f.x,T=f.y,u=void 0,v=void 0,L=void 0,F=void 0,A=void 0,P=void 0,J=void 0,V=void 0,Q=void 0;return L=h-y,A=a-t,J=t*y-a*h,F=T-c,P=o-l,V=l*c-o*T,Q=L*P-F*A,Q===0?null:(u=(A*V-P*J)/Q,v=(F*J-L*V)/Q,new g(u,v))},s.angleOfVector=function(i,r,e,f){var a=void 0;return i!==e?(a=Math.atan((f-r)/(e-i)),e=0){var T=(-o+Math.sqrt(o*o-4*h*c))/(2*h),u=(-o-Math.sqrt(o*o-4*h*c))/(2*h),v=null;return T>=0&&T<=1?[T]:u>=0&&u<=1?[u]:v}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,C.exports=s},function(C,G,N){function g(){}g.sign=function(s){return s>0?1:s<0?-1:0},g.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},g.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},C.exports=g},function(C,G,N){function g(){}g.MAX_VALUE=2147483647,g.MIN_VALUE=-2147483648,C.exports=g},function(C,G,N){var g=function(){function a(y,t){for(var h=0;h"u"?"undefined":g(i);return i==null||r!="object"&&r!="function"},C.exports=s},function(C,G,N){function g(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(L.push(A[0]);L.length>0&&c;){var P=L[0];L.splice(0,1),v.add(P);for(var J=P.getEdges(),u=0;u-1&&A.splice(rt,1)}v=new Set,F=new Map}}return o},h.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),u=0;u0){for(var T=this.edgeToDummyNodes.get(l),u=0;u=0&&c.splice(V,1);var Q=F.getNeighborsList();Q.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),d=m-1;d==1&&P.push(n),T.set(n,d)}})}l=l.concat(P),(c.length==1||c.length==2)&&(u=!0,v=c[0])}return v},h.prototype.setGraphManager=function(o){this.graphManager=o},C.exports=h},function(C,G,N){function g(){}g.seed=1,g.x=0,g.nextDouble=function(){return g.x=Math.sin(g.seed++)*1e4,g.x-Math.floor(g.x)},C.exports=g},function(C,G,N){var g=N(5);function s(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(i){this.lworldExtX=i},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(i){this.lworldExtY=i},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},s.prototype.transformX=function(i){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/e),r},s.prototype.transformY=function(i){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/e),r},s.prototype.inverseTransformX=function(i){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/e),r},s.prototype.inverseTransformY=function(i){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/e),r},s.prototype.inverseTransformPoint=function(i){var r=new g(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},C.exports=s},function(C,G,N){function g(t){if(Array.isArray(t)){for(var h=0,o=Array(t.length);hi.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),h,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,u=this.getAllNodes(),v;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),v=new Set,o=0;oL||v>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},a.prototype.isConverged=function(){var t,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=u.length||L>=u[0].length)){for(var F=0;Fa}}]),e}();C.exports=r},function(C,G,N){function g(){}g.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var i=Math.min(this.m,this.n);this.s=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(Math.min(this.m+1,this.n)),this.U=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft0;)At.push(0);return At}(this.n),e=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.m),f=!0,a=Math.min(this.m-1,this.n),y=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var p=E+1;p=0;W--){if(function(Nt,At){return Nt&&At}(W0;){var q=void 0,Rt=void 0;for(q=n-2;q>=-1&&q!==-1;q--)if(Math.abs(r[q])<=lt+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){r[q]=0;break}if(q===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=q&&Lt!==q;Lt--){var dt=(Lt!==n?Math.abs(r[Lt]):0)+(Lt!==q+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=lt+_*dt){this.s[Lt]=0;break}}Lt===q?Rt=3:Lt===n-1?Rt=1:(Rt=2,q=Lt)}switch(q++,Rt){case 1:{var it=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=q;ut--){var Tt=g.hypot(this.s[ut],it),Ct=this.s[ut]/Tt,Dt=it/Tt;this.s[ut]=Tt,ut!==q&&(it=-Dt*r[ut-1],r[ut-1]=Ct*r[ut-1]);for(var mt=0;mt=this.s[q+1]);){var Mt=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Mt,qMath.abs(i)?(r=i/s,r=Math.abs(s)*Math.sqrt(1+r*r)):i!=0?(r=s/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},C.exports=g},function(C,G,N){var g=function(){function r(e,f){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,r),this.sequence1=e,this.sequence2=f,this.match_score=a,this.mismatch_penalty=y,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;e--){var f=this.listeners[e];f.event===i&&f.callback===r&&this.listeners.splice(e,1)}},s.emit=function(i,r){for(var e=0;e{var G={45:(i,r,e)=>{var f={};f.layoutBase=e(551),f.CoSEConstants=e(806),f.CoSEEdge=e(767),f.CoSEGraph=e(880),f.CoSEGraphManager=e(578),f.CoSELayout=e(765),f.CoSENode=e(991),f.ConstraintHandler=e(902),i.exports=f},806:(i,r,e)=>{var f=e(551).FDLayoutConstants;function a(){}for(var y in f)a[y]=f[y];a.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,a.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,a.DEFAULT_COMPONENT_SEPERATION=60,a.TILE=!0,a.TILING_PADDING_VERTICAL=10,a.TILING_PADDING_HORIZONTAL=10,a.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,a.ENFORCE_CONSTRAINTS=!0,a.APPLY_LAYOUT=!0,a.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,a.TREE_REDUCTION_ON_INCREMENTAL=!0,a.PURE_INCREMENTAL=a.DEFAULT_INCREMENTAL,i.exports=a},767:(i,r,e)=>{var f=e(551).FDLayoutEdge;function a(t,h,o){f.call(this,t,h,o)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},880:(i,r,e)=>{var f=e(551).LGraph;function a(t,h,o){f.call(this,t,h,o)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},578:(i,r,e)=>{var f=e(551).LGraphManager;function a(t){f.call(this,t)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},765:(i,r,e)=>{var f=e(551).FDLayout,a=e(578),y=e(880),t=e(991),h=e(767),o=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,u=e(551).Point,v=e(551).PointD,L=e(551).DimensionD,F=e(551).Layout,A=e(551).Integer,P=e(551).IGeometry,J=e(551).LGraph,V=e(551).Transform,Q=e(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var rt in f)D[rt]=f[rt];D.prototype.newGraphManager=function(){var n=new a(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new y(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new h(null,null,n)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(d)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(d),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(p){return n.has(p)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var d=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(d,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},d=0;d0&&this.updateDisplacements();for(var d=0;d0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){n.fixedNodesOnHorizontal.add(O),n.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var H=this.constraints.alignmentConstraint.vertical,d=0;d=2*O.length/3;_--)X=Math.floor(Math.random()*(_+1)),B=O[_],O[_]=O[X],O[X]=B;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;n.nodesInRelativeHorizontal.includes(X)||(n.nodesInRelativeHorizontal.push(X),n.nodeToRelativeConstraintMapHorizontal.set(X,[]),n.dummyToNodeForVerticalAlignment.has(X)?n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(X)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(X).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(X).push({right:B,gap:O.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:X,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(lt)||(n.nodesInRelativeVertical.push(lt),n.nodeToRelativeConstraintMapVertical.set(lt,[]),n.dummyToNodeForHorizontalAlignment.has(lt)?n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(lt).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:lt,gap:O.gap}),n.nodeToRelativeConstraintMapVertical.get(lt).push({top:_,gap:O.gap})}});else{var k=new Map,W=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;k.has(X)?k.get(X).push(B):k.set(X,[B]),k.has(B)?k.get(B).push(X):k.set(B,[X])}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;W.has(_)?W.get(_).push(lt):W.set(_,[lt]),W.has(lt)?W.get(lt).push(_):W.set(lt,[_])}});var U=function(X,B){var _=[],lt=[],q=new Q,Rt=new Set,Lt=0;return X.forEach(function(dt,it){if(!Rt.has(it)){_[Lt]=[],lt[Lt]=!1;var ut=it;for(q.push(ut),Rt.add(ut),_[Lt].push(ut);q.length!=0;){ut=q.shift(),B.has(ut)&&(lt[Lt]=!0);var Tt=X.get(ut);Tt.forEach(function(Ct){Rt.has(Ct)||(q.push(Ct),Rt.add(Ct),_[Lt].push(Ct))})}Lt++}}),{components:_,isFixed:lt}},et=U(k,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=U(W,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=n.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,d=0;d1){var R;for(R=0;RE&&(E=Math.floor(w.y)),I=Math.floor(w.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new v(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(n,m,d){var E=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var p=J.calculateBounds(n),I=new V;I.setDeviceOrgX(p.getMinX()),I.setDeviceOrgY(p.getMinY()),I.setWorldOrgX(d.x),I.setWorldOrgY(d.y);for(var w=0;w1;){var B=X[0];X.splice(0,1);var _=W.indexOf(B);_>=0&&W.splice(_,1),z--,U--}m!=null?O=(W.indexOf(X[0])+1)%z:O=0;for(var lt=Math.abs(E-d)/U,q=O;et!=U;q=++q%z){var Rt=W[q].getOtherEnd(n);if(Rt!=m){var Lt=(d+et*lt)%360,dt=(Lt+lt)%360;D.branchRadialLayout(Rt,n,Lt,dt,p+I,I),et++}}},D.maxDiagonalInTree=function(n){for(var m=A.MIN_VALUE,d=0;dm&&(m=p)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var d=[],E=this.graphManager.getAllNodes(),p=0;p"u"&&(m[R]=[]),m[R]=m[R].concat(I)}Object.keys(m).forEach(function(H){if(m[H].length>1){var x="DummyCompound_"+H;n.memberGroups[x]=m[H];var k=m[H][0].getParent(),W=new t(n.graphManager);W.id=x,W.paddingLeft=k.paddingLeft||0,W.paddingRight=k.paddingRight||0,W.paddingBottom=k.paddingBottom||0,W.paddingTop=k.paddingTop||0,n.idToDummyNode[x]=W;var U=n.getGraphManager().add(n.newGraph(),W),et=k.getChild();et.add(W);for(var z=0;zp?(E.rect.x-=(E.labelWidth-p)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-p)/2):E.labelPosHorizontal=="right"&&E.setWidth(p+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],d=m.id,E=m.paddingLeft,p=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[d],m.rect.x,m.rect.y,E,p,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(d){var E=n.idToDummyNode[d],p=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;n.adjustLocations(m[d],E.rect.x,E.rect.y,p,I,w,R)})},D.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var d=n.getChild();if(d==null)return this.toBeTiled[m]=!1,!1;for(var E=d.getNodes(),p=0;p0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),d=0,E=0;Ek&&(k=U.rect.height)}d+=k+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,m){var d=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var p=m[E];if(d.tiledMemberPack[E]=d.tileNodes(n[E],p.paddingLeft+p.paddingRight),p.rect.width=d.tiledMemberPack[E].width,p.rect.height=d.tiledMemberPack[E].height,p.setCenter(d.tiledMemberPack[E].centerX,d.tiledMemberPack[E].centerY),p.labelMarginLeft=0,p.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=p.rect.width,w=p.rect.height;p.labelWidth&&(p.labelPosHorizontal=="left"?(p.rect.x-=p.labelWidth,p.setWidth(I+p.labelWidth),p.labelMarginLeft=p.labelWidth):p.labelPosHorizontal=="center"&&p.labelWidth>I?(p.rect.x-=(p.labelWidth-I)/2,p.setWidth(p.labelWidth),p.labelMarginLeft=(p.labelWidth-I)/2):p.labelPosHorizontal=="right"&&p.setWidth(I+p.labelWidth)),p.labelHeight&&(p.labelPosVertical=="top"?(p.rect.y-=p.labelHeight,p.setHeight(w+p.labelHeight),p.labelMarginTop=p.labelHeight):p.labelPosVertical=="center"&&p.labelHeight>w?(p.rect.y-=(p.labelHeight-w)/2,p.setHeight(p.labelHeight),p.labelMarginTop=(p.labelHeight-w)/2):p.labelPosVertical=="bottom"&&p.setHeight(w+p.labelHeight))}})},D.prototype.tileNodes=function(n,m){var d=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),p=this.getOrgRatio(d),I=this.getOrgRatio(E),w;return IR&&(R=z.getWidth())});var H=I/p,x=w/p,k=Math.pow(d-E,2)+4*(H+E)*(x+d)*p,W=(E-d+Math.sqrt(k))/(2*(H+E)),U;m?(U=Math.ceil(W),U==W&&U++):U=Math.floor(W);var et=U*(H+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(n,m,d){var E=o.TILING_PADDING_VERTICAL,p=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:p,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(n,d));var R=function(O){return O.rect.width*O.rect.height},H=function(O,X){return R(X)-R(O)};n.sort(function(z,O){var X=H;return w.idealRowWidth?(X=I,X(z.id,O.id)):X(z,O)});for(var x=0,k=0,W=0;W0&&(w+=n.horizontalPadding),n.rowWidth[d]=w,n.width0&&(R+=n.verticalPadding);var H=0;R>n.rowHeight[d]&&(H=n.rowHeight[d],n.rowHeight[d]=R,H=n.rowHeight[d]-H),n.height+=H,n.rows[d].push(m)},D.prototype.getShortestRowIndex=function(n){for(var m=-1,d=Number.MAX_VALUE,E=0;Ed&&(m=E,d=n.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(n,m,d){if(n.idealRowWidth){var E=n.rows.length-1,p=n.rowWidth[E];return p+m+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var w=n.rowWidth[I];if(w+n.horizontalPadding+m<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=d+n.verticalPadding-n.rowHeight[I]);var H;n.width-w>=m+n.horizontalPadding?H=(n.height+R)/(w+m+n.horizontalPadding):H=(n.height+R)/n.width,R=d+n.verticalPadding;var x;return n.widthI&&m!=d){E.splice(-1,1),n.rows[d].push(p),n.rowWidth[m]=n.rowWidth[m]-I,n.rowWidth[d]=n.rowWidth[d]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var w=Number.MIN_VALUE,R=0;Rw&&(w=E[R].height);m>0&&(w+=n.verticalPadding);var H=n.rowHeight[m]+n.rowHeight[d];n.rowHeight[m]=w,n.rowHeight[d]0)for(var et=p;et<=I;et++)U[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I0)for(var et=w;et<=R;et++)U[3]+=this.grid[p-1][et].length+this.grid[p][et].length-1;for(var z=A.MAX_VALUE,O,X,B=0;B{var f=e(551).FDLayoutNode,a=e(551).IMath;function y(h,o,c,l){f.call(this,h,o,c,l)}y.prototype=Object.create(f.prototype);for(var t in f)y[t]=f[t];y.prototype.calculateDisplacement=function(){var h=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementX=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementY=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},y.prototype.propogateDisplacementToChildren=function(h,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Mt=0;st.forEach(function(ht){$=="horizontal"?(tt.set(ht,u.has(ht)?v[u.get(ht)]:Z.get(ht)),Mt+=tt.get(ht)):(tt.set(ht,u.has(ht)?L[u.get(ht)]:Z.get(ht)),Mt+=tt.get(ht))}),Mt=Mt/st.length,ft.forEach(function(ht){K.has(ht)||tt.set(ht,Mt)})}else{var ct=0;ft.forEach(function(ht){$=="horizontal"?ct+=u.has(ht)?v[u.get(ht)]:Z.get(ht):ct+=u.has(ht)?L[u.get(ht)]:Z.get(ht)}),ct=ct/ft.length,ft.forEach(function(ht){tt.set(ht,ct)})}});for(var wt=function(){var st=vt.shift(),Mt=b.get(st);Mt.forEach(function(ct){if(tt.get(ct.id)ht&&(ht=qt),_tWt&&(Wt=_t)}}catch(ie){At=!0,Zt=ie}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(At)throw Zt}}var ce=(Mt+ht)/2-(ct+Wt)/2,Kt=!0,te=!1,ee=void 0;try{for(var jt=ft[Symbol.iterator](),se;!(Kt=(se=jt.next()).done);Kt=!0){var re=se.value;tt.set(re,tt.get(re)+ce)}}catch(ie){te=!0,ee=ie}finally{try{!Kt&&jt.return&&jt.return()}finally{if(te)throw ee}}})}return tt},rt=function(b){var $=0,K=0,Z=0,at=0;if(b.forEach(function(j){j.left?v[u.get(j.left)]-v[u.get(j.right)]>=0?$++:K++:L[u.get(j.top)]-L[u.get(j.bottom)]>=0?Z++:at++}),$>K&&Z>at)for(var gt=0;gtK)for(var ot=0;otat)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(S,b){E[b]=[S.position.x,S.position.y],p[b]=[v[u.get(S.nodeId)],L[u.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var b=l.alignmentConstraint.vertical,$=function(tt){var j=new Set;b[tt].forEach(function(yt){j.add(yt)});var vt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;vt.size>0?wt=v[u.get(vt.values().next().value)]:wt=Q(j).x,b[tt].forEach(function(yt){E[S]=[wt,L[u.get(yt)]],p[S]=[v[u.get(yt)],L[u.get(yt)]],S++})},K=0;K0?wt=v[u.get(vt.values().next().value)]:wt=Q(j).y,Z[tt].forEach(function(yt){E[S]=[v[u.get(yt)],wt],p[S]=[v[u.get(yt)],L[u.get(yt)]],S++})},gt=0;gtW&&(W=k[et].length,U=et);if(W0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,b){var $={x:v[u.get(S.nodeId)],y:L[u.get(S.nodeId)]},K=S.position,Z=V(K,$);mt.x+=Z.x,mt.y+=Z.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,v.forEach(function(S,b){v[b]+=mt.x}),L.forEach(function(S,b){L[b]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){v[u.get(S.nodeId)]=S.position.x,L[u.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(b){var $=new Set;xt[b].forEach(function(at){$.add(at)});var K=new Set([].concat(f($)).filter(function(at){return R.has(at)})),Z=void 0;K.size>0?Z=v[u.get(K.values().next().value)]:Z=Q($).x,$.forEach(function(at){R.has(at)||(v[u.get(at)]=Z)})},Vt=0;Vt0?Z=L[u.get(K.values().next().value)]:Z=Q($).y,$.forEach(function(at){R.has(at)||(L[u.get(at)]=Z)})},bt=0;bt{i.exports=C}},N={};function g(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,g),e.exports}var s=g(45);return s})()})}(pe)),pe.exports}(function(M,Y){(function(G,N){M.exports=N(cr())})(Te,function(C){return(()=>{var G={658:i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),a=1;a{var f=function(){function t(h,o){var c=[],l=!0,T=!1,u=void 0;try{for(var v=h[Symbol.iterator](),L;!(l=(L=v.next()).done)&&(c.push(L.value),!(o&&c.length===o));l=!0);}catch(F){T=!0,u=F}finally{try{!l&&v.return&&v.return()}finally{if(T)throw u}}return c}return function(h,o){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return t(h,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=e(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(t){for(var h={},o=0;o0&&I.merge(x)});for(var w=0;w1){L=u[0],F=L.connectedEdges().length,u.forEach(function(p){p.connectedEdges().length0&&c.set("dummy"+(c.size+1),J),V},y.relocateComponent=function(t,h,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var v=!0,L=!1,F=void 0;try{for(var A=h.nodeIndexes[Symbol.iterator](),P;!(v=(P=A.next()).done);v=!0){var J=P.value,V=f(J,2),Q=V[0],D=V[1],rt=o.cy.getElementById(Q);if(rt){var n=rt.boundingBox(),m=h.xCoords[D]-n.w/2,d=h.xCoords[D]+n.w/2,E=h.yCoords[D]-n.h/2,p=h.yCoords[D]+n.h/2;ml&&(l=d),Eu&&(u=p)}}}catch(x){L=!0,F=x}finally{try{!v&&A.return&&A.return()}finally{if(L)throw F}}var I=t.x-(l+c)/2,w=t.y-(u+T)/2;h.xCoords=h.xCoords.map(function(x){return x+I}),h.yCoords=h.yCoords.map(function(x){return x+w})}else{Object.keys(h).forEach(function(x){var k=h[x],W=k.getRect().x,U=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Wl&&(l=U),etu&&(u=z)});var R=t.x-(l+c)/2,H=t.y-(u+T)/2;Object.keys(h).forEach(function(x){var k=h[x];k.setCenter(k.getCenterX()+R,k.getCenterY()+H)})}}},y.calcBoundingBox=function(t,h,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,L=void 0,F=void 0,A=void 0,P=void 0,J=t.descendants().not(":parent"),V=J.length,Q=0;QL&&(l=L),TA&&(u=A),v{var f=e(548),a=e(140).CoSELayout,y=e(140).CoSENode,t=e(140).layoutBase.PointD,h=e(140).layoutBase.DimensionD,o=e(140).layoutBase.LayoutConstants,c=e(140).layoutBase.FDLayoutConstants,l=e(140).CoSEConstants,T=function(v,L){var F=v.cy,A=v.eles,P=A.nodes(),J=A.edges(),V=void 0,Q=void 0,D=void 0,rt={};v.randomize&&(V=L.nodeIndexes,Q=L.xCoords,D=L.yCoords);var n=function(x){return typeof x=="function"},m=function(x,k){return n(x)?x(k):x},d=f.calcParentsWithoutChildren(F,A),E=function H(x,k,W,U){for(var et=k.length,z=0;z0){var q=void 0;q=W.getGraphManager().add(W.newGraph(),B),H(q,X,W,U)}}},p=function(x,k,W){for(var U=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=U/et:n(v.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=v.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};v.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.nestingFactor),v.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=v.gravity),v.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=v.numIter),v.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=v.gravityRange),v.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.gravityCompound),v.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.gravityRangeCompound),v.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.initialEnergyOnIncremental),v.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=v.tilingCompareBy),v.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=v.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!v.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=v.animate,l.TILE=v.tile,l.TILING_PADDING_VERTICAL=typeof v.tilingPaddingVertical=="function"?v.tilingPaddingVertical.call():v.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof v.tilingPaddingHorizontal=="function"?v.tilingPaddingHorizontal.call():v.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!v.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=v.uniformNodeDimensions,v.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),v.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),v.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),v.step=="all"&&(v.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new a,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(P),w,v),p(w,R,J),I(w,v),w.runLayout(),rt};i.exports={coseLayout:T}},212:(i,r,e)=>{var f=function(){function v(L,F){for(var A=0;A0)if(d){var I=t.getTopMostNodes(A.eles.nodes());if(D=t.connectComponents(P,A.eles,I),D.forEach(function(dt){var it=dt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),A.randomize&&D.forEach(function(dt){A.eles=dt,V.push(o(A))}),A.quality=="default"||A.quality=="proof"){var w=P.collection();if(A.tile){var R=new Map,H=[],x=[],k=0,W={nodeIndexes:R,xCoords:H,yCoords:x},U=[];if(D.forEach(function(dt,it){dt.edges().length==0&&(dt.nodes().forEach(function(ut,Tt){w.merge(dt.nodes()[Tt]),ut.isParent()||(W.nodeIndexes.set(dt.nodes()[Tt].id(),k++),W.xCoords.push(dt.nodes()[0].position().x),W.yCoords.push(dt.nodes()[0].position().y))}),U.push(it))}),w.length>1){var et=w.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),V.push(W);for(var z=U.length-1;z>=0;z--)D.splice(U[z],1),V.splice(U[z],1),rt.splice(U[z],1)}}D.forEach(function(dt,it){A.eles=dt,Q.push(l(A,V[it])),t.relocateComponent(rt[it],Q[it],A)})}else D.forEach(function(dt,it){t.relocateComponent(rt[it],V[it],A)});var O=new Set;if(D.length>1){var X=[],B=J.filter(function(dt){return dt.css("display")=="none"});D.forEach(function(dt,it){var ut=void 0;if(A.quality=="draft"&&(ut=V[it].nodeIndexes),dt.nodes().not(B).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Ct=void 0;dt.nodes().not(B).forEach(function(Dt){if(A.quality=="draft")if(!Dt.isParent())Ct=ut.get(Dt.id()),Tt.nodes.push({x:V[it].xCoords[Ct]-Dt.boundingbox().w/2,y:V[it].yCoords[Ct]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,V[it].xCoords,V[it].yCoords,ut);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else Q[it][Dt.id()]&&Tt.nodes.push({x:Q[it][Dt.id()].getLeft(),y:Q[it][Dt.id()].getTop(),width:Q[it][Dt.id()].getWidth(),height:Q[it][Dt.id()].getHeight()})}),dt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(A.quality=="draft"){var St=ut.get(mt.id()),Vt=ut.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,V[it].xCoords,V[it].yCoords,ut);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(V[it].xCoords[St]),Xt.push(V[it].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,V[it].xCoords,V[it].yCoords,ut);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(V[it].xCoords[Vt]),Ut.push(V[it].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else Q[it][mt.id()]&&Q[it][xt.id()]&&Tt.edges.push({startX:Q[it][mt.id()].getCenterX(),startY:Q[it][mt.id()].getCenterY(),endX:Q[it][xt.id()].getCenterX(),endY:Q[it][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(X.push(Tt),O.add(it))}});var _=m.packComponents(X,A.randomize).shifts;if(A.quality=="draft")V.forEach(function(dt,it){var ut=dt.xCoords.map(function(Ct){return Ct+_[it].dx}),Tt=dt.yCoords.map(function(Ct){return Ct+_[it].dy});dt.xCoords=ut,dt.yCoords=Tt});else{var lt=0;O.forEach(function(dt){Object.keys(Q[dt]).forEach(function(it){var ut=Q[dt][it];ut.setCenter(ut.getCenterX()+_[lt].dx,ut.getCenterY()+_[lt].dy)}),lt++})}}}else{var E=A.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),A.randomize){var p=o(A);V.push(p)}A.quality=="default"||A.quality=="proof"?(Q.push(l(A,V[0])),t.relocateComponent(rt[0],Q[0],A)):t.relocateComponent(rt[0],V[0],A)}var q=function(it,ut){if(A.quality=="default"||A.quality=="proof"){typeof it=="number"&&(it=ut);var Tt=void 0,Ct=void 0,Dt=it.data("id");return Q.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},Ct=xt[Dt])}),A.nodeDimensionsIncludeLabels&&(Ct.labelWidth&&(Ct.labelPosHorizontal=="left"?Tt.x+=Ct.labelWidth/2:Ct.labelPosHorizontal=="right"&&(Tt.x-=Ct.labelWidth/2)),Ct.labelHeight&&(Ct.labelPosVertical=="top"?Tt.y+=Ct.labelHeight/2:Ct.labelPosVertical=="bottom"&&(Tt.y-=Ct.labelHeight/2))),Tt==null&&(Tt={x:it.position("x"),y:it.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return V.forEach(function(xt){var St=xt.nodeIndexes.get(it.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var Rt=t.calcParentsWithoutChildren(P,J),Lt=J.filter(function(dt){return dt.css("display")=="none"});A.eles=J.not(Lt),J.nodes().not(":parent").not(Lt).layoutPositions(F,A,q),Rt.length>0&&Rt.forEach(function(dt){dt.position(q(dt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),v}();i.exports=u},657:(i,r,e)=>{var f=e(548),a=e(140).layoutBase.Matrix,y=e(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),u=l.nodes(":parent"),v=new Map,L=new Map,F=new Map,A=[],P=[],J=[],V=[],Q=[],D=[],rt=[],n=[],m=void 0,d=1e8,E=1e-9,p=o.piTol,I=o.samplingType,w=o.nodeSeparation,R=void 0,H=function(){for(var b=0,$=0,K=!1;$=at;){ot=Z[at++];for(var It=A[ot],ft=0;ftvt&&(vt=Q[Mt],wt=Mt)}return wt},k=function(b){var $=void 0;if(b){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var yt=0;yt=1)break;j=tt}for(var ft=0;ft0&&($.isParent()?A[b].push(F.get($.id())):A[b].push($.id()))})});var Lt=function(b){var $=L.get(b),K=void 0;v.get(b).forEach(function(Z){c.getElementById(Z).isParent()?K=F.get(Z):K=Z,A[$].push(K),A[L.get(K)].push(b)})},dt=!0,it=!1,ut=void 0;try{for(var Tt=v.keys()[Symbol.iterator](),Ct;!(dt=(Ct=Tt.next()).done);dt=!0){var Dt=Ct.value;Lt(Dt)}}catch(S){it=!0,ut=S}finally{try{!dt&&Tt.return&&Tt.return()}finally{if(it)throw ut}}m=L.size;var mt=void 0;if(m>2){R=m{var f=e(212),a=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&a(cytoscape),i.exports=a},140:i=>{i.exports=C}},N={};function g(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,g),e.exports}var s=g(579);return s})()})})(be);var gr=be.exports;const ur=ke(gr);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:nt(M=>`${M},${M/2} 0,${M} 0,0`,"L"),R:nt(M=>`0,${M/2} ${M},0 ${M},${M}`,"R"),T:nt(M=>`0,0 ${M},0 ${M/2},${M}`,"T"),B:nt(M=>`${M/2},0 ${M},${M} 0,${M}`,"B")},he={L:nt((M,Y)=>M-Y+2,"L"),R:nt((M,Y)=>M-2,"R"),T:nt((M,Y)=>M-Y+2,"T"),B:nt((M,Y)=>M-2,"B")},vr=nt(function(M){return zt(M)?M==="L"?"R":"L":M==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=nt(function(M){const Y=M;return Y==="L"||Y==="R"||Y==="T"||Y==="B"},"isArchitectureDirection"),zt=nt(function(M){const Y=M;return Y==="L"||Y==="R"},"isArchitectureDirectionX"),Qt=nt(function(M){const Y=M;return Y==="T"||Y==="B"},"isArchitectureDirectionY"),Pe=nt(function(M,Y){const C=zt(M)&&Qt(Y),G=Qt(M)&&zt(Y);return C||G},"isArchitectureDirectionXY"),dr=nt(function(M){const Y=M[0],C=M[1],G=zt(Y)&&Qt(C),N=Qt(Y)&&zt(C);return G||N},"isArchitecturePairXY"),pr=nt(function(M){return M!=="LL"&&M!=="RR"&&M!=="TT"&&M!=="BB"},"isValidArchitectureDirectionPair"),me=nt(function(M,Y){const C=`${M}${Y}`;return pr(C)?C:void 0},"getArchitectureDirectionPair"),yr=nt(function([M,Y],C){const G=C[0],N=C[1];return zt(G)?Qt(N)?[M+(G==="L"?-1:1),Y+(N==="T"?1:-1)]:[M+(G==="L"?-1:1),Y]:zt(N)?[M+(N==="L"?1:-1),Y+(G==="T"?1:-1)]:[M,Y+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Er=nt(function(M){return M==="LT"||M==="TL"?[1,1]:M==="BL"||M==="LB"?[1,-1]:M==="BR"||M==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),mr=nt(function(M){return M.type==="service"},"isArchitectureService"),Tr=nt(function(M){return M.type==="junction"},"isArchitectureJunction"),Ge=nt(M=>M.data(),"edgeData"),ne=nt(M=>M.data(),"nodeData"),Ue=qe.architecture,pt=new hr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ue,dataStructures:void 0,elements:{}})),Nr=nt(()=>{pt.reset(),ar()},"clear"),Lr=nt(function({id:M,icon:Y,in:C,title:G,iconText:N}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The service id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The service [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The service [${M}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[C]==="node")throw new Error(`The service [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"service",icon:Y,iconText:N,title:G,edges:[],in:C}},"addService"),Mr=nt(()=>Object.values(pt.records.nodes).filter(mr),"getServices"),Ar=nt(function({id:M,in:Y}){pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"junction",edges:[],in:Y}},"addJunction"),Cr=nt(()=>Object.values(pt.records.nodes).filter(Tr),"getJunctions"),wr=nt(()=>Object.values(pt.records.nodes),"getNodes"),Or=nt(M=>pt.records.nodes[M],"getNode"),Dr=nt(function({id:M,icon:Y,in:C,title:G}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The group id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The group [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The group [${M}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[C]==="node")throw new Error(`The group [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="group",pt.records.groups[M]={id:M,icon:Y,title:G,in:C}},"addGroup"),xr=nt(()=>Object.values(pt.records.groups),"getGroups"),Ir=nt(function({lhsId:M,rhsId:Y,lhsDir:C,rhsDir:G,lhsInto:N,rhsInto:g,lhsGroup:s,rhsGroup:i,title:r}){if(!Re(C))throw new Error(`Invalid direction given for left hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${C}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${G}`);if(pt.records.nodes[M]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The left-hand id [${M}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[Y]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The right-hand id [${Y}] does not yet exist. Please create the service/group before declaring an edge to it.`);const e=pt.records.nodes[M].in,f=pt.records.nodes[Y].in;if(s&&e&&f&&e==f)throw new Error(`The left-hand id [${M}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&e&&f&&e==f)throw new Error(`The right-hand id [${Y}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:M,lhsDir:C,lhsInto:N,lhsGroup:s,rhsId:Y,rhsDir:G,rhsInto:g,rhsGroup:i,title:r};pt.records.edges.push(a),pt.records.nodes[M]&&pt.records.nodes[Y]&&(pt.records.nodes[M].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[Y].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Rr=nt(()=>pt.records.edges,"getEdges"),Sr=nt(()=>{if(pt.records.dataStructures===void 0){const M=Object.entries(pt.records.nodes).reduce((s,[i,r])=>(s[i]=r.edges.reduce((e,f)=>{if(f.lhsId===i){const a=me(f.lhsDir,f.rhsDir);a&&(e[a]=f.rhsId)}else{const a=me(f.rhsDir,f.lhsDir);a&&(e[a]=f.lhsId)}return e},{}),s),{}),Y=Object.keys(M)[0],C={[Y]:1},G=Object.keys(M).reduce((s,i)=>i===Y?s:{...s,[i]:1},{}),N=nt(s=>{const i={[s]:[0,0]},r=[s];for(;r.length>0;){const e=r.shift();if(e){C[e]=1,delete G[e];const f=M[e],[a,y]=i[e];Object.entries(f).forEach(([t,h])=>{C[h]||(i[h]=yr([a,y],t),r.push(h))})}}return i},"BFS"),g=[N(Y)];for(;Object.keys(G).length>0;)g.push(N(Object.keys(G)[0]));pt.records.dataStructures={adjList:M,spatialMaps:g}}return pt.records.dataStructures},"getDataStructures"),Fr=nt((M,Y)=>{pt.records.elements[M]=Y},"setElementForId"),br=nt(M=>pt.records.elements[M],"getElementById"),le={clear:Nr,setDiagramTitle:Ke,getDiagramTitle:je,setAccTitle:_e,getAccTitle:tr,setAccDescription:er,getAccDescription:rr,addService:Lr,getServices:Mr,addJunction:Ar,getJunctions:Cr,getNodes:wr,getNode:Or,addGroup:Dr,getGroups:xr,addEdge:Ir,getEdges:Rr,setElementForId:Fr,getElementById:br,getDataStructures:Sr};function Pt(M){const Y=fe().architecture;return Y!=null&&Y[M]?Y[M]:Ue[M]}nt(Pt,"getConfigField");var Pr=nt((M,Y)=>{sr(M,Y),M.groups.map(Y.addGroup),M.services.map(C=>Y.addService({...C,type:"service"})),M.junctions.map(C=>Y.addJunction({...C,type:"junction"})),M.edges.map(Y.addEdge)},"populateDb"),Gr={parse:nt(async M=>{const Y=await lr("architecture",M);Se.debug(Y),Pr(Y,le)},"parse")},Ur=nt(M=>` +import{aH as Te,aI as ke,B as qe,_ as nt,aJ as Je,aK as Qe,p as Ke,q as je,s as _e,g as tr,c as er,b as rr,d as fe,l as Se,j as ir,v as ar,G as nr,V as or,aj as Ne,aL as Ee}from"./md-index-ByjuzIYZ.js";import{p as sr}from"./md-chunk-TMUBEWPD-Dgrus0aV.js";import{I as hr}from"./md-chunk-KFBOBJHC-CHuIljkb.js";import{p as lr}from"./md-gitGraph-YCYPL57B-Cg_Niwrz.js";import{c as Fe}from"./md-cytoscape.esm-xtxBoH4m.js";import"./md-_baseUniq-DZXHEAoF.js";import"./md-_basePickBy-C4aggLA-.js";import"./md-clone-CEEsdKQ5.js";var be={exports:{}},pe={exports:{}},ye={exports:{}},Oe;function fr(){return Oe||(Oe=1,function(M,Y){(function(G,N){M.exports=N()})(Te,function(){return function(C){var G={};function N(g){if(G[g])return G[g].exports;var s=G[g]={i:g,l:!1,exports:{}};return C[g].call(s.exports,s,s.exports,N),s.l=!0,s.exports}return N.m=C,N.c=G,N.i=function(g){return g},N.d=function(g,s,i){N.o(g,s)||Object.defineProperty(g,s,{configurable:!1,enumerable:!0,get:i})},N.n=function(g){var s=g&&g.__esModule?function(){return g.default}:function(){return g};return N.d(s,"a",s),s},N.o=function(g,s){return Object.prototype.hasOwnProperty.call(g,s)},N.p="",N(N.s=28)}([function(C,G,N){function g(){}g.QUALITY=1,g.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,g.DEFAULT_INCREMENTAL=!1,g.DEFAULT_ANIMATION_ON_LAYOUT=!0,g.DEFAULT_ANIMATION_DURING_LAYOUT=!1,g.DEFAULT_ANIMATION_PERIOD=50,g.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,g.DEFAULT_GRAPH_MARGIN=15,g.NODE_DIMENSIONS_INCLUDE_LABELS=!1,g.SIMPLE_NODE_SIZE=40,g.SIMPLE_NODE_HALF_SIZE=g.SIMPLE_NODE_SIZE/2,g.EMPTY_COMPOUND_NODE_SIZE=40,g.MIN_EDGE_LENGTH=1,g.WORLD_BOUNDARY=1e6,g.INITIAL_WORLD_BOUNDARY=g.WORLD_BOUNDARY/1e3,g.WORLD_CENTER_X=1200,g.WORLD_CENTER_Y=900,C.exports=g},function(C,G,N){var g=N(2),s=N(8),i=N(9);function r(f,a,y){g.call(this,y),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=y,this.bendpoints=[],this.source=f,this.target=a}r.prototype=Object.create(g.prototype);for(var e in g)r[e]=g[e];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,a){for(var y=this.getOtherEnd(f),t=a.getGraphManager().getRoot();;){if(y.getOwner()==a)return y;if(y.getOwner()==t)break;y=y.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},C.exports=r},function(C,G,N){function g(s){this.vGraphObject=s}C.exports=g},function(C,G,N){var g=N(2),s=N(10),i=N(13),r=N(0),e=N(16),f=N(5);function a(t,h,o,c){o==null&&c==null&&(c=h),g.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,o!=null&&h!=null?this.rect=new i(h.x,h.y,o.width,o.height):this.rect=new i}a.prototype=Object.create(g.prototype);for(var y in g)a[y]=g[y];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(t){this.rect.width=t},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(t){this.rect.height=t},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(t,h){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=h.width,this.rect.height=h.height},a.prototype.setCenter=function(t,h){this.rect.x=t-this.rect.width/2,this.rect.y=h-this.rect.height/2},a.prototype.setLocation=function(t,h){this.rect.x=t,this.rect.y=h},a.prototype.moveBy=function(t,h){this.rect.x+=t,this.rect.y+=h},a.prototype.getEdgeListToNode=function(t){var h=[],o=this;return o.edges.forEach(function(c){if(c.target==t){if(c.source!=o)throw"Incorrect edge source!";h.push(c)}}),h},a.prototype.getEdgesBetween=function(t){var h=[],o=this;return o.edges.forEach(function(c){if(!(c.source==o||c.target==o))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&h.push(c)}),h},a.prototype.getNeighborsList=function(){var t=new Set,h=this;return h.edges.forEach(function(o){if(o.source==h)t.add(o.target);else{if(o.target!=h)throw"Incorrect incidency!";t.add(o.source)}}),t},a.prototype.withChildren=function(){var t=new Set,h,o;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;lh?(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(h+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(t){var h=this.rect.x;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(h,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},C.exports=a},function(C,G,N){var g=N(0);function s(){}for(var i in g)s[i]=g[i];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,C.exports=s},function(C,G,N){function g(s,i){s==null&&i==null?(this.x=0,this.y=0):(this.x=s,this.y=i)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.setX=function(s){this.x=s},g.prototype.setY=function(s){this.y=s},g.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},g.prototype.getCopy=function(){return new g(this.x,this.y)},g.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},C.exports=g},function(C,G,N){var g=N(2),s=N(10),i=N(0),r=N(7),e=N(3),f=N(1),a=N(13),y=N(12),t=N(11);function h(c,l,T){g.call(this,T),this.estimatedSize=s.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}h.prototype=Object.create(g.prototype);for(var o in g)h[o]=g[o];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(c,l,T){if(l==null&&T==null){var u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var v=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(v.source=l,v.target=T,v.isInterGraph=!1,this.getEdges().push(v),l.edges.push(v),T!=l&&T.edges.push(v),v)}},h.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),u,v=T.length,L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(A,1),u.target!=u.source&&u.target.edges.splice(P,1);var F=u.source.owner.getEdges().indexOf(u);if(F==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(F,1)}},h.prototype.updateLeftTop=function(){for(var c=s.MAX_VALUE,l=s.MAX_VALUE,T,u,v,L=this.getNodes(),F=L.length,A=0;AT&&(c=T),l>u&&(l=u)}return c==s.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?v=L[0].getParent().paddingLeft:v=this.margin,this.left=l-v,this.top=c-v,new y(this.left,this.top))},h.prototype.updateBounds=function(c){for(var l=s.MAX_VALUE,T=-s.MAX_VALUE,u=s.MAX_VALUE,v=-s.MAX_VALUE,L,F,A,P,J,V=this.nodes,Q=V.length,D=0;DL&&(l=L),TA&&(u=A),vL&&(l=L),TA&&(u=A),v=this.nodes.length){var Q=0;T.forEach(function(D){D.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},C.exports=h},function(C,G,N){var g,s=N(1);function i(r){g=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,e,f,a,y){if(f==null&&a==null&&y==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{y=f,a=e,f=r;var t=a.getOwner(),h=y.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==h)return f.isInterGraph=!1,t.add(f,a,y);if(f.isInterGraph=!0,f.source=a,f.target=y,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof g){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var a,y=f.length,t=0;t=r.getRight()?e[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(e[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?e[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(e[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var y=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(y=1);var t=y*e[0],h=e[1]/y;e[0]t)return e[0]=f,e[1]=o,e[2]=y,e[3]=V,!1;if(ay)return e[0]=h,e[1]=a,e[2]=P,e[3]=t,!1;if(fy?(e[0]=l,e[1]=T,n=!0):(e[0]=c,e[1]=o,n=!0):d===p&&(f>y?(e[0]=h,e[1]=o,n=!0):(e[0]=u,e[1]=T,n=!0)),-E===p?y>f?(e[2]=J,e[3]=V,m=!0):(e[2]=P,e[3]=A,m=!0):E===p&&(y>f?(e[2]=F,e[3]=A,m=!0):(e[2]=Q,e[3]=V,m=!0)),n&&m)return!1;if(f>y?a>t?(I=this.getCardinalDirection(d,p,4),w=this.getCardinalDirection(E,p,2)):(I=this.getCardinalDirection(-d,p,3),w=this.getCardinalDirection(-E,p,1)):a>t?(I=this.getCardinalDirection(-d,p,1),w=this.getCardinalDirection(-E,p,3)):(I=this.getCardinalDirection(d,p,2),w=this.getCardinalDirection(E,p,4)),!n)switch(I){case 1:H=o,R=f+-L/p,e[0]=R,e[1]=H;break;case 2:R=u,H=a+v*p,e[0]=R,e[1]=H;break;case 3:H=T,R=f+L/p,e[0]=R,e[1]=H;break;case 4:R=l,H=a+-v*p,e[0]=R,e[1]=H;break}if(!m)switch(w){case 1:k=A,x=y+-rt/p,e[2]=x,e[3]=k;break;case 2:x=Q,k=t+D*p,e[2]=x,e[3]=k;break;case 3:k=V,x=y+rt/p,e[2]=x,e[3]=k;break;case 4:x=J,k=t+-D*p,e[2]=x,e[3]=k;break}}return!1},s.getCardinalDirection=function(i,r,e){return i>r?e:1+e%4},s.getIntersection=function(i,r,e,f){if(f==null)return this.getIntersection2(i,r,e);var a=i.x,y=i.y,t=r.x,h=r.y,o=e.x,c=e.y,l=f.x,T=f.y,u=void 0,v=void 0,L=void 0,F=void 0,A=void 0,P=void 0,J=void 0,V=void 0,Q=void 0;return L=h-y,A=a-t,J=t*y-a*h,F=T-c,P=o-l,V=l*c-o*T,Q=L*P-F*A,Q===0?null:(u=(A*V-P*J)/Q,v=(F*J-L*V)/Q,new g(u,v))},s.angleOfVector=function(i,r,e,f){var a=void 0;return i!==e?(a=Math.atan((f-r)/(e-i)),e=0){var T=(-o+Math.sqrt(o*o-4*h*c))/(2*h),u=(-o-Math.sqrt(o*o-4*h*c))/(2*h),v=null;return T>=0&&T<=1?[T]:u>=0&&u<=1?[u]:v}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,C.exports=s},function(C,G,N){function g(){}g.sign=function(s){return s>0?1:s<0?-1:0},g.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},g.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},C.exports=g},function(C,G,N){function g(){}g.MAX_VALUE=2147483647,g.MIN_VALUE=-2147483648,C.exports=g},function(C,G,N){var g=function(){function a(y,t){for(var h=0;h"u"?"undefined":g(i);return i==null||r!="object"&&r!="function"},C.exports=s},function(C,G,N){function g(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(L.push(A[0]);L.length>0&&c;){var P=L[0];L.splice(0,1),v.add(P);for(var J=P.getEdges(),u=0;u-1&&A.splice(rt,1)}v=new Set,F=new Map}}return o},h.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),u=0;u0){for(var T=this.edgeToDummyNodes.get(l),u=0;u=0&&c.splice(V,1);var Q=F.getNeighborsList();Q.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),d=m-1;d==1&&P.push(n),T.set(n,d)}})}l=l.concat(P),(c.length==1||c.length==2)&&(u=!0,v=c[0])}return v},h.prototype.setGraphManager=function(o){this.graphManager=o},C.exports=h},function(C,G,N){function g(){}g.seed=1,g.x=0,g.nextDouble=function(){return g.x=Math.sin(g.seed++)*1e4,g.x-Math.floor(g.x)},C.exports=g},function(C,G,N){var g=N(5);function s(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(i){this.lworldExtX=i},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(i){this.lworldExtY=i},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},s.prototype.transformX=function(i){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/e),r},s.prototype.transformY=function(i){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/e),r},s.prototype.inverseTransformX=function(i){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/e),r},s.prototype.inverseTransformY=function(i){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/e),r},s.prototype.inverseTransformPoint=function(i){var r=new g(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},C.exports=s},function(C,G,N){function g(t){if(Array.isArray(t)){for(var h=0,o=Array(t.length);hi.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),h,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,u=this.getAllNodes(),v;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),v=new Set,o=0;oL||v>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},a.prototype.isConverged=function(){var t,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=u.length||L>=u[0].length)){for(var F=0;Fa}}]),e}();C.exports=r},function(C,G,N){function g(){}g.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var i=Math.min(this.m,this.n);this.s=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(Math.min(this.m+1,this.n)),this.U=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft0;)At.push(0);return At}(this.n),e=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.m),f=!0,a=Math.min(this.m-1,this.n),y=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var p=E+1;p=0;W--){if(function(Nt,At){return Nt&&At}(W0;){var q=void 0,Rt=void 0;for(q=n-2;q>=-1&&q!==-1;q--)if(Math.abs(r[q])<=lt+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){r[q]=0;break}if(q===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=q&&Lt!==q;Lt--){var dt=(Lt!==n?Math.abs(r[Lt]):0)+(Lt!==q+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=lt+_*dt){this.s[Lt]=0;break}}Lt===q?Rt=3:Lt===n-1?Rt=1:(Rt=2,q=Lt)}switch(q++,Rt){case 1:{var it=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=q;ut--){var Tt=g.hypot(this.s[ut],it),Ct=this.s[ut]/Tt,Dt=it/Tt;this.s[ut]=Tt,ut!==q&&(it=-Dt*r[ut-1],r[ut-1]=Ct*r[ut-1]);for(var mt=0;mt=this.s[q+1]);){var Mt=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Mt,qMath.abs(i)?(r=i/s,r=Math.abs(s)*Math.sqrt(1+r*r)):i!=0?(r=s/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},C.exports=g},function(C,G,N){var g=function(){function r(e,f){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,r),this.sequence1=e,this.sequence2=f,this.match_score=a,this.mismatch_penalty=y,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;e--){var f=this.listeners[e];f.event===i&&f.callback===r&&this.listeners.splice(e,1)}},s.emit=function(i,r){for(var e=0;e{var G={45:(i,r,e)=>{var f={};f.layoutBase=e(551),f.CoSEConstants=e(806),f.CoSEEdge=e(767),f.CoSEGraph=e(880),f.CoSEGraphManager=e(578),f.CoSELayout=e(765),f.CoSENode=e(991),f.ConstraintHandler=e(902),i.exports=f},806:(i,r,e)=>{var f=e(551).FDLayoutConstants;function a(){}for(var y in f)a[y]=f[y];a.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,a.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,a.DEFAULT_COMPONENT_SEPERATION=60,a.TILE=!0,a.TILING_PADDING_VERTICAL=10,a.TILING_PADDING_HORIZONTAL=10,a.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,a.ENFORCE_CONSTRAINTS=!0,a.APPLY_LAYOUT=!0,a.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,a.TREE_REDUCTION_ON_INCREMENTAL=!0,a.PURE_INCREMENTAL=a.DEFAULT_INCREMENTAL,i.exports=a},767:(i,r,e)=>{var f=e(551).FDLayoutEdge;function a(t,h,o){f.call(this,t,h,o)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},880:(i,r,e)=>{var f=e(551).LGraph;function a(t,h,o){f.call(this,t,h,o)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},578:(i,r,e)=>{var f=e(551).LGraphManager;function a(t){f.call(this,t)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},765:(i,r,e)=>{var f=e(551).FDLayout,a=e(578),y=e(880),t=e(991),h=e(767),o=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,u=e(551).Point,v=e(551).PointD,L=e(551).DimensionD,F=e(551).Layout,A=e(551).Integer,P=e(551).IGeometry,J=e(551).LGraph,V=e(551).Transform,Q=e(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var rt in f)D[rt]=f[rt];D.prototype.newGraphManager=function(){var n=new a(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new y(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new h(null,null,n)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(d)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(d),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(p){return n.has(p)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var d=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(d,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},d=0;d0&&this.updateDisplacements();for(var d=0;d0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){n.fixedNodesOnHorizontal.add(O),n.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var H=this.constraints.alignmentConstraint.vertical,d=0;d=2*O.length/3;_--)X=Math.floor(Math.random()*(_+1)),B=O[_],O[_]=O[X],O[X]=B;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;n.nodesInRelativeHorizontal.includes(X)||(n.nodesInRelativeHorizontal.push(X),n.nodeToRelativeConstraintMapHorizontal.set(X,[]),n.dummyToNodeForVerticalAlignment.has(X)?n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(X)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(X).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(X).push({right:B,gap:O.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:X,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(lt)||(n.nodesInRelativeVertical.push(lt),n.nodeToRelativeConstraintMapVertical.set(lt,[]),n.dummyToNodeForHorizontalAlignment.has(lt)?n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(lt).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:lt,gap:O.gap}),n.nodeToRelativeConstraintMapVertical.get(lt).push({top:_,gap:O.gap})}});else{var k=new Map,W=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;k.has(X)?k.get(X).push(B):k.set(X,[B]),k.has(B)?k.get(B).push(X):k.set(B,[X])}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;W.has(_)?W.get(_).push(lt):W.set(_,[lt]),W.has(lt)?W.get(lt).push(_):W.set(lt,[_])}});var U=function(X,B){var _=[],lt=[],q=new Q,Rt=new Set,Lt=0;return X.forEach(function(dt,it){if(!Rt.has(it)){_[Lt]=[],lt[Lt]=!1;var ut=it;for(q.push(ut),Rt.add(ut),_[Lt].push(ut);q.length!=0;){ut=q.shift(),B.has(ut)&&(lt[Lt]=!0);var Tt=X.get(ut);Tt.forEach(function(Ct){Rt.has(Ct)||(q.push(Ct),Rt.add(Ct),_[Lt].push(Ct))})}Lt++}}),{components:_,isFixed:lt}},et=U(k,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=U(W,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=n.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,d=0;d1){var R;for(R=0;RE&&(E=Math.floor(w.y)),I=Math.floor(w.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new v(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(n,m,d){var E=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var p=J.calculateBounds(n),I=new V;I.setDeviceOrgX(p.getMinX()),I.setDeviceOrgY(p.getMinY()),I.setWorldOrgX(d.x),I.setWorldOrgY(d.y);for(var w=0;w1;){var B=X[0];X.splice(0,1);var _=W.indexOf(B);_>=0&&W.splice(_,1),z--,U--}m!=null?O=(W.indexOf(X[0])+1)%z:O=0;for(var lt=Math.abs(E-d)/U,q=O;et!=U;q=++q%z){var Rt=W[q].getOtherEnd(n);if(Rt!=m){var Lt=(d+et*lt)%360,dt=(Lt+lt)%360;D.branchRadialLayout(Rt,n,Lt,dt,p+I,I),et++}}},D.maxDiagonalInTree=function(n){for(var m=A.MIN_VALUE,d=0;dm&&(m=p)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var d=[],E=this.graphManager.getAllNodes(),p=0;p"u"&&(m[R]=[]),m[R]=m[R].concat(I)}Object.keys(m).forEach(function(H){if(m[H].length>1){var x="DummyCompound_"+H;n.memberGroups[x]=m[H];var k=m[H][0].getParent(),W=new t(n.graphManager);W.id=x,W.paddingLeft=k.paddingLeft||0,W.paddingRight=k.paddingRight||0,W.paddingBottom=k.paddingBottom||0,W.paddingTop=k.paddingTop||0,n.idToDummyNode[x]=W;var U=n.getGraphManager().add(n.newGraph(),W),et=k.getChild();et.add(W);for(var z=0;zp?(E.rect.x-=(E.labelWidth-p)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-p)/2):E.labelPosHorizontal=="right"&&E.setWidth(p+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],d=m.id,E=m.paddingLeft,p=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[d],m.rect.x,m.rect.y,E,p,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(d){var E=n.idToDummyNode[d],p=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;n.adjustLocations(m[d],E.rect.x,E.rect.y,p,I,w,R)})},D.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var d=n.getChild();if(d==null)return this.toBeTiled[m]=!1,!1;for(var E=d.getNodes(),p=0;p0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),d=0,E=0;Ek&&(k=U.rect.height)}d+=k+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,m){var d=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var p=m[E];if(d.tiledMemberPack[E]=d.tileNodes(n[E],p.paddingLeft+p.paddingRight),p.rect.width=d.tiledMemberPack[E].width,p.rect.height=d.tiledMemberPack[E].height,p.setCenter(d.tiledMemberPack[E].centerX,d.tiledMemberPack[E].centerY),p.labelMarginLeft=0,p.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=p.rect.width,w=p.rect.height;p.labelWidth&&(p.labelPosHorizontal=="left"?(p.rect.x-=p.labelWidth,p.setWidth(I+p.labelWidth),p.labelMarginLeft=p.labelWidth):p.labelPosHorizontal=="center"&&p.labelWidth>I?(p.rect.x-=(p.labelWidth-I)/2,p.setWidth(p.labelWidth),p.labelMarginLeft=(p.labelWidth-I)/2):p.labelPosHorizontal=="right"&&p.setWidth(I+p.labelWidth)),p.labelHeight&&(p.labelPosVertical=="top"?(p.rect.y-=p.labelHeight,p.setHeight(w+p.labelHeight),p.labelMarginTop=p.labelHeight):p.labelPosVertical=="center"&&p.labelHeight>w?(p.rect.y-=(p.labelHeight-w)/2,p.setHeight(p.labelHeight),p.labelMarginTop=(p.labelHeight-w)/2):p.labelPosVertical=="bottom"&&p.setHeight(w+p.labelHeight))}})},D.prototype.tileNodes=function(n,m){var d=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),p=this.getOrgRatio(d),I=this.getOrgRatio(E),w;return IR&&(R=z.getWidth())});var H=I/p,x=w/p,k=Math.pow(d-E,2)+4*(H+E)*(x+d)*p,W=(E-d+Math.sqrt(k))/(2*(H+E)),U;m?(U=Math.ceil(W),U==W&&U++):U=Math.floor(W);var et=U*(H+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(n,m,d){var E=o.TILING_PADDING_VERTICAL,p=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:p,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(n,d));var R=function(O){return O.rect.width*O.rect.height},H=function(O,X){return R(X)-R(O)};n.sort(function(z,O){var X=H;return w.idealRowWidth?(X=I,X(z.id,O.id)):X(z,O)});for(var x=0,k=0,W=0;W0&&(w+=n.horizontalPadding),n.rowWidth[d]=w,n.width0&&(R+=n.verticalPadding);var H=0;R>n.rowHeight[d]&&(H=n.rowHeight[d],n.rowHeight[d]=R,H=n.rowHeight[d]-H),n.height+=H,n.rows[d].push(m)},D.prototype.getShortestRowIndex=function(n){for(var m=-1,d=Number.MAX_VALUE,E=0;Ed&&(m=E,d=n.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(n,m,d){if(n.idealRowWidth){var E=n.rows.length-1,p=n.rowWidth[E];return p+m+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var w=n.rowWidth[I];if(w+n.horizontalPadding+m<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=d+n.verticalPadding-n.rowHeight[I]);var H;n.width-w>=m+n.horizontalPadding?H=(n.height+R)/(w+m+n.horizontalPadding):H=(n.height+R)/n.width,R=d+n.verticalPadding;var x;return n.widthI&&m!=d){E.splice(-1,1),n.rows[d].push(p),n.rowWidth[m]=n.rowWidth[m]-I,n.rowWidth[d]=n.rowWidth[d]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var w=Number.MIN_VALUE,R=0;Rw&&(w=E[R].height);m>0&&(w+=n.verticalPadding);var H=n.rowHeight[m]+n.rowHeight[d];n.rowHeight[m]=w,n.rowHeight[d]0)for(var et=p;et<=I;et++)U[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I0)for(var et=w;et<=R;et++)U[3]+=this.grid[p-1][et].length+this.grid[p][et].length-1;for(var z=A.MAX_VALUE,O,X,B=0;B{var f=e(551).FDLayoutNode,a=e(551).IMath;function y(h,o,c,l){f.call(this,h,o,c,l)}y.prototype=Object.create(f.prototype);for(var t in f)y[t]=f[t];y.prototype.calculateDisplacement=function(){var h=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementX=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementY=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},y.prototype.propogateDisplacementToChildren=function(h,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Mt=0;st.forEach(function(ht){$=="horizontal"?(tt.set(ht,u.has(ht)?v[u.get(ht)]:Z.get(ht)),Mt+=tt.get(ht)):(tt.set(ht,u.has(ht)?L[u.get(ht)]:Z.get(ht)),Mt+=tt.get(ht))}),Mt=Mt/st.length,ft.forEach(function(ht){K.has(ht)||tt.set(ht,Mt)})}else{var ct=0;ft.forEach(function(ht){$=="horizontal"?ct+=u.has(ht)?v[u.get(ht)]:Z.get(ht):ct+=u.has(ht)?L[u.get(ht)]:Z.get(ht)}),ct=ct/ft.length,ft.forEach(function(ht){tt.set(ht,ct)})}});for(var wt=function(){var st=vt.shift(),Mt=b.get(st);Mt.forEach(function(ct){if(tt.get(ct.id)ht&&(ht=qt),_tWt&&(Wt=_t)}}catch(ie){At=!0,Zt=ie}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(At)throw Zt}}var ce=(Mt+ht)/2-(ct+Wt)/2,Kt=!0,te=!1,ee=void 0;try{for(var jt=ft[Symbol.iterator](),se;!(Kt=(se=jt.next()).done);Kt=!0){var re=se.value;tt.set(re,tt.get(re)+ce)}}catch(ie){te=!0,ee=ie}finally{try{!Kt&&jt.return&&jt.return()}finally{if(te)throw ee}}})}return tt},rt=function(b){var $=0,K=0,Z=0,at=0;if(b.forEach(function(j){j.left?v[u.get(j.left)]-v[u.get(j.right)]>=0?$++:K++:L[u.get(j.top)]-L[u.get(j.bottom)]>=0?Z++:at++}),$>K&&Z>at)for(var gt=0;gtK)for(var ot=0;otat)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(S,b){E[b]=[S.position.x,S.position.y],p[b]=[v[u.get(S.nodeId)],L[u.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var b=l.alignmentConstraint.vertical,$=function(tt){var j=new Set;b[tt].forEach(function(yt){j.add(yt)});var vt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;vt.size>0?wt=v[u.get(vt.values().next().value)]:wt=Q(j).x,b[tt].forEach(function(yt){E[S]=[wt,L[u.get(yt)]],p[S]=[v[u.get(yt)],L[u.get(yt)]],S++})},K=0;K0?wt=v[u.get(vt.values().next().value)]:wt=Q(j).y,Z[tt].forEach(function(yt){E[S]=[v[u.get(yt)],wt],p[S]=[v[u.get(yt)],L[u.get(yt)]],S++})},gt=0;gtW&&(W=k[et].length,U=et);if(W0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,b){var $={x:v[u.get(S.nodeId)],y:L[u.get(S.nodeId)]},K=S.position,Z=V(K,$);mt.x+=Z.x,mt.y+=Z.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,v.forEach(function(S,b){v[b]+=mt.x}),L.forEach(function(S,b){L[b]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){v[u.get(S.nodeId)]=S.position.x,L[u.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(b){var $=new Set;xt[b].forEach(function(at){$.add(at)});var K=new Set([].concat(f($)).filter(function(at){return R.has(at)})),Z=void 0;K.size>0?Z=v[u.get(K.values().next().value)]:Z=Q($).x,$.forEach(function(at){R.has(at)||(v[u.get(at)]=Z)})},Vt=0;Vt0?Z=L[u.get(K.values().next().value)]:Z=Q($).y,$.forEach(function(at){R.has(at)||(L[u.get(at)]=Z)})},bt=0;bt{i.exports=C}},N={};function g(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,g),e.exports}var s=g(45);return s})()})}(pe)),pe.exports}(function(M,Y){(function(G,N){M.exports=N(cr())})(Te,function(C){return(()=>{var G={658:i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),a=1;a{var f=function(){function t(h,o){var c=[],l=!0,T=!1,u=void 0;try{for(var v=h[Symbol.iterator](),L;!(l=(L=v.next()).done)&&(c.push(L.value),!(o&&c.length===o));l=!0);}catch(F){T=!0,u=F}finally{try{!l&&v.return&&v.return()}finally{if(T)throw u}}return c}return function(h,o){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return t(h,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=e(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(t){for(var h={},o=0;o0&&I.merge(x)});for(var w=0;w1){L=u[0],F=L.connectedEdges().length,u.forEach(function(p){p.connectedEdges().length0&&c.set("dummy"+(c.size+1),J),V},y.relocateComponent=function(t,h,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var v=!0,L=!1,F=void 0;try{for(var A=h.nodeIndexes[Symbol.iterator](),P;!(v=(P=A.next()).done);v=!0){var J=P.value,V=f(J,2),Q=V[0],D=V[1],rt=o.cy.getElementById(Q);if(rt){var n=rt.boundingBox(),m=h.xCoords[D]-n.w/2,d=h.xCoords[D]+n.w/2,E=h.yCoords[D]-n.h/2,p=h.yCoords[D]+n.h/2;ml&&(l=d),Eu&&(u=p)}}}catch(x){L=!0,F=x}finally{try{!v&&A.return&&A.return()}finally{if(L)throw F}}var I=t.x-(l+c)/2,w=t.y-(u+T)/2;h.xCoords=h.xCoords.map(function(x){return x+I}),h.yCoords=h.yCoords.map(function(x){return x+w})}else{Object.keys(h).forEach(function(x){var k=h[x],W=k.getRect().x,U=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Wl&&(l=U),etu&&(u=z)});var R=t.x-(l+c)/2,H=t.y-(u+T)/2;Object.keys(h).forEach(function(x){var k=h[x];k.setCenter(k.getCenterX()+R,k.getCenterY()+H)})}}},y.calcBoundingBox=function(t,h,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,L=void 0,F=void 0,A=void 0,P=void 0,J=t.descendants().not(":parent"),V=J.length,Q=0;QL&&(l=L),TA&&(u=A),v{var f=e(548),a=e(140).CoSELayout,y=e(140).CoSENode,t=e(140).layoutBase.PointD,h=e(140).layoutBase.DimensionD,o=e(140).layoutBase.LayoutConstants,c=e(140).layoutBase.FDLayoutConstants,l=e(140).CoSEConstants,T=function(v,L){var F=v.cy,A=v.eles,P=A.nodes(),J=A.edges(),V=void 0,Q=void 0,D=void 0,rt={};v.randomize&&(V=L.nodeIndexes,Q=L.xCoords,D=L.yCoords);var n=function(x){return typeof x=="function"},m=function(x,k){return n(x)?x(k):x},d=f.calcParentsWithoutChildren(F,A),E=function H(x,k,W,U){for(var et=k.length,z=0;z0){var q=void 0;q=W.getGraphManager().add(W.newGraph(),B),H(q,X,W,U)}}},p=function(x,k,W){for(var U=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=U/et:n(v.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=v.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};v.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.nestingFactor),v.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=v.gravity),v.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=v.numIter),v.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=v.gravityRange),v.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.gravityCompound),v.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.gravityRangeCompound),v.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.initialEnergyOnIncremental),v.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=v.tilingCompareBy),v.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=v.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!v.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=v.animate,l.TILE=v.tile,l.TILING_PADDING_VERTICAL=typeof v.tilingPaddingVertical=="function"?v.tilingPaddingVertical.call():v.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof v.tilingPaddingHorizontal=="function"?v.tilingPaddingHorizontal.call():v.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!v.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=v.uniformNodeDimensions,v.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),v.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),v.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),v.step=="all"&&(v.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new a,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(P),w,v),p(w,R,J),I(w,v),w.runLayout(),rt};i.exports={coseLayout:T}},212:(i,r,e)=>{var f=function(){function v(L,F){for(var A=0;A0)if(d){var I=t.getTopMostNodes(A.eles.nodes());if(D=t.connectComponents(P,A.eles,I),D.forEach(function(dt){var it=dt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),A.randomize&&D.forEach(function(dt){A.eles=dt,V.push(o(A))}),A.quality=="default"||A.quality=="proof"){var w=P.collection();if(A.tile){var R=new Map,H=[],x=[],k=0,W={nodeIndexes:R,xCoords:H,yCoords:x},U=[];if(D.forEach(function(dt,it){dt.edges().length==0&&(dt.nodes().forEach(function(ut,Tt){w.merge(dt.nodes()[Tt]),ut.isParent()||(W.nodeIndexes.set(dt.nodes()[Tt].id(),k++),W.xCoords.push(dt.nodes()[0].position().x),W.yCoords.push(dt.nodes()[0].position().y))}),U.push(it))}),w.length>1){var et=w.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),V.push(W);for(var z=U.length-1;z>=0;z--)D.splice(U[z],1),V.splice(U[z],1),rt.splice(U[z],1)}}D.forEach(function(dt,it){A.eles=dt,Q.push(l(A,V[it])),t.relocateComponent(rt[it],Q[it],A)})}else D.forEach(function(dt,it){t.relocateComponent(rt[it],V[it],A)});var O=new Set;if(D.length>1){var X=[],B=J.filter(function(dt){return dt.css("display")=="none"});D.forEach(function(dt,it){var ut=void 0;if(A.quality=="draft"&&(ut=V[it].nodeIndexes),dt.nodes().not(B).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Ct=void 0;dt.nodes().not(B).forEach(function(Dt){if(A.quality=="draft")if(!Dt.isParent())Ct=ut.get(Dt.id()),Tt.nodes.push({x:V[it].xCoords[Ct]-Dt.boundingbox().w/2,y:V[it].yCoords[Ct]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,V[it].xCoords,V[it].yCoords,ut);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else Q[it][Dt.id()]&&Tt.nodes.push({x:Q[it][Dt.id()].getLeft(),y:Q[it][Dt.id()].getTop(),width:Q[it][Dt.id()].getWidth(),height:Q[it][Dt.id()].getHeight()})}),dt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(A.quality=="draft"){var St=ut.get(mt.id()),Vt=ut.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,V[it].xCoords,V[it].yCoords,ut);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(V[it].xCoords[St]),Xt.push(V[it].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,V[it].xCoords,V[it].yCoords,ut);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(V[it].xCoords[Vt]),Ut.push(V[it].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else Q[it][mt.id()]&&Q[it][xt.id()]&&Tt.edges.push({startX:Q[it][mt.id()].getCenterX(),startY:Q[it][mt.id()].getCenterY(),endX:Q[it][xt.id()].getCenterX(),endY:Q[it][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(X.push(Tt),O.add(it))}});var _=m.packComponents(X,A.randomize).shifts;if(A.quality=="draft")V.forEach(function(dt,it){var ut=dt.xCoords.map(function(Ct){return Ct+_[it].dx}),Tt=dt.yCoords.map(function(Ct){return Ct+_[it].dy});dt.xCoords=ut,dt.yCoords=Tt});else{var lt=0;O.forEach(function(dt){Object.keys(Q[dt]).forEach(function(it){var ut=Q[dt][it];ut.setCenter(ut.getCenterX()+_[lt].dx,ut.getCenterY()+_[lt].dy)}),lt++})}}}else{var E=A.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),A.randomize){var p=o(A);V.push(p)}A.quality=="default"||A.quality=="proof"?(Q.push(l(A,V[0])),t.relocateComponent(rt[0],Q[0],A)):t.relocateComponent(rt[0],V[0],A)}var q=function(it,ut){if(A.quality=="default"||A.quality=="proof"){typeof it=="number"&&(it=ut);var Tt=void 0,Ct=void 0,Dt=it.data("id");return Q.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},Ct=xt[Dt])}),A.nodeDimensionsIncludeLabels&&(Ct.labelWidth&&(Ct.labelPosHorizontal=="left"?Tt.x+=Ct.labelWidth/2:Ct.labelPosHorizontal=="right"&&(Tt.x-=Ct.labelWidth/2)),Ct.labelHeight&&(Ct.labelPosVertical=="top"?Tt.y+=Ct.labelHeight/2:Ct.labelPosVertical=="bottom"&&(Tt.y-=Ct.labelHeight/2))),Tt==null&&(Tt={x:it.position("x"),y:it.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return V.forEach(function(xt){var St=xt.nodeIndexes.get(it.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var Rt=t.calcParentsWithoutChildren(P,J),Lt=J.filter(function(dt){return dt.css("display")=="none"});A.eles=J.not(Lt),J.nodes().not(":parent").not(Lt).layoutPositions(F,A,q),Rt.length>0&&Rt.forEach(function(dt){dt.position(q(dt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),v}();i.exports=u},657:(i,r,e)=>{var f=e(548),a=e(140).layoutBase.Matrix,y=e(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),u=l.nodes(":parent"),v=new Map,L=new Map,F=new Map,A=[],P=[],J=[],V=[],Q=[],D=[],rt=[],n=[],m=void 0,d=1e8,E=1e-9,p=o.piTol,I=o.samplingType,w=o.nodeSeparation,R=void 0,H=function(){for(var b=0,$=0,K=!1;$=at;){ot=Z[at++];for(var It=A[ot],ft=0;ftvt&&(vt=Q[Mt],wt=Mt)}return wt},k=function(b){var $=void 0;if(b){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var yt=0;yt=1)break;j=tt}for(var ft=0;ft0&&($.isParent()?A[b].push(F.get($.id())):A[b].push($.id()))})});var Lt=function(b){var $=L.get(b),K=void 0;v.get(b).forEach(function(Z){c.getElementById(Z).isParent()?K=F.get(Z):K=Z,A[$].push(K),A[L.get(K)].push(b)})},dt=!0,it=!1,ut=void 0;try{for(var Tt=v.keys()[Symbol.iterator](),Ct;!(dt=(Ct=Tt.next()).done);dt=!0){var Dt=Ct.value;Lt(Dt)}}catch(S){it=!0,ut=S}finally{try{!dt&&Tt.return&&Tt.return()}finally{if(it)throw ut}}m=L.size;var mt=void 0;if(m>2){R=m{var f=e(212),a=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&a(cytoscape),i.exports=a},140:i=>{i.exports=C}},N={};function g(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,g),e.exports}var s=g(579);return s})()})})(be);var gr=be.exports;const ur=ke(gr);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:nt(M=>`${M},${M/2} 0,${M} 0,0`,"L"),R:nt(M=>`0,${M/2} ${M},0 ${M},${M}`,"R"),T:nt(M=>`0,0 ${M},0 ${M/2},${M}`,"T"),B:nt(M=>`${M/2},0 ${M},${M} 0,${M}`,"B")},he={L:nt((M,Y)=>M-Y+2,"L"),R:nt((M,Y)=>M-2,"R"),T:nt((M,Y)=>M-Y+2,"T"),B:nt((M,Y)=>M-2,"B")},vr=nt(function(M){return zt(M)?M==="L"?"R":"L":M==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=nt(function(M){const Y=M;return Y==="L"||Y==="R"||Y==="T"||Y==="B"},"isArchitectureDirection"),zt=nt(function(M){const Y=M;return Y==="L"||Y==="R"},"isArchitectureDirectionX"),Qt=nt(function(M){const Y=M;return Y==="T"||Y==="B"},"isArchitectureDirectionY"),Pe=nt(function(M,Y){const C=zt(M)&&Qt(Y),G=Qt(M)&&zt(Y);return C||G},"isArchitectureDirectionXY"),dr=nt(function(M){const Y=M[0],C=M[1],G=zt(Y)&&Qt(C),N=Qt(Y)&&zt(C);return G||N},"isArchitecturePairXY"),pr=nt(function(M){return M!=="LL"&&M!=="RR"&&M!=="TT"&&M!=="BB"},"isValidArchitectureDirectionPair"),me=nt(function(M,Y){const C=`${M}${Y}`;return pr(C)?C:void 0},"getArchitectureDirectionPair"),yr=nt(function([M,Y],C){const G=C[0],N=C[1];return zt(G)?Qt(N)?[M+(G==="L"?-1:1),Y+(N==="T"?1:-1)]:[M+(G==="L"?-1:1),Y]:zt(N)?[M+(N==="L"?1:-1),Y+(G==="T"?1:-1)]:[M,Y+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Er=nt(function(M){return M==="LT"||M==="TL"?[1,1]:M==="BL"||M==="LB"?[1,-1]:M==="BR"||M==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),mr=nt(function(M){return M.type==="service"},"isArchitectureService"),Tr=nt(function(M){return M.type==="junction"},"isArchitectureJunction"),Ge=nt(M=>M.data(),"edgeData"),ne=nt(M=>M.data(),"nodeData"),Ue=qe.architecture,pt=new hr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ue,dataStructures:void 0,elements:{}})),Nr=nt(()=>{pt.reset(),ar()},"clear"),Lr=nt(function({id:M,icon:Y,in:C,title:G,iconText:N}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The service id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The service [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The service [${M}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[C]==="node")throw new Error(`The service [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"service",icon:Y,iconText:N,title:G,edges:[],in:C}},"addService"),Mr=nt(()=>Object.values(pt.records.nodes).filter(mr),"getServices"),Ar=nt(function({id:M,in:Y}){pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"junction",edges:[],in:Y}},"addJunction"),Cr=nt(()=>Object.values(pt.records.nodes).filter(Tr),"getJunctions"),wr=nt(()=>Object.values(pt.records.nodes),"getNodes"),Or=nt(M=>pt.records.nodes[M],"getNode"),Dr=nt(function({id:M,icon:Y,in:C,title:G}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The group id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The group [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The group [${M}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[C]==="node")throw new Error(`The group [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="group",pt.records.groups[M]={id:M,icon:Y,title:G,in:C}},"addGroup"),xr=nt(()=>Object.values(pt.records.groups),"getGroups"),Ir=nt(function({lhsId:M,rhsId:Y,lhsDir:C,rhsDir:G,lhsInto:N,rhsInto:g,lhsGroup:s,rhsGroup:i,title:r}){if(!Re(C))throw new Error(`Invalid direction given for left hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${C}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${G}`);if(pt.records.nodes[M]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The left-hand id [${M}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[Y]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The right-hand id [${Y}] does not yet exist. Please create the service/group before declaring an edge to it.`);const e=pt.records.nodes[M].in,f=pt.records.nodes[Y].in;if(s&&e&&f&&e==f)throw new Error(`The left-hand id [${M}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&e&&f&&e==f)throw new Error(`The right-hand id [${Y}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:M,lhsDir:C,lhsInto:N,lhsGroup:s,rhsId:Y,rhsDir:G,rhsInto:g,rhsGroup:i,title:r};pt.records.edges.push(a),pt.records.nodes[M]&&pt.records.nodes[Y]&&(pt.records.nodes[M].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[Y].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Rr=nt(()=>pt.records.edges,"getEdges"),Sr=nt(()=>{if(pt.records.dataStructures===void 0){const M=Object.entries(pt.records.nodes).reduce((s,[i,r])=>(s[i]=r.edges.reduce((e,f)=>{if(f.lhsId===i){const a=me(f.lhsDir,f.rhsDir);a&&(e[a]=f.rhsId)}else{const a=me(f.rhsDir,f.lhsDir);a&&(e[a]=f.lhsId)}return e},{}),s),{}),Y=Object.keys(M)[0],C={[Y]:1},G=Object.keys(M).reduce((s,i)=>i===Y?s:{...s,[i]:1},{}),N=nt(s=>{const i={[s]:[0,0]},r=[s];for(;r.length>0;){const e=r.shift();if(e){C[e]=1,delete G[e];const f=M[e],[a,y]=i[e];Object.entries(f).forEach(([t,h])=>{C[h]||(i[h]=yr([a,y],t),r.push(h))})}}return i},"BFS"),g=[N(Y)];for(;Object.keys(G).length>0;)g.push(N(Object.keys(G)[0]));pt.records.dataStructures={adjList:M,spatialMaps:g}}return pt.records.dataStructures},"getDataStructures"),Fr=nt((M,Y)=>{pt.records.elements[M]=Y},"setElementForId"),br=nt(M=>pt.records.elements[M],"getElementById"),le={clear:Nr,setDiagramTitle:Ke,getDiagramTitle:je,setAccTitle:_e,getAccTitle:tr,setAccDescription:er,getAccDescription:rr,addService:Lr,getServices:Mr,addJunction:Ar,getJunctions:Cr,getNodes:wr,getNode:Or,addGroup:Dr,getGroups:xr,addEdge:Ir,getEdges:Rr,setElementForId:Fr,getElementById:br,getDataStructures:Sr};function Pt(M){const Y=fe().architecture;return Y!=null&&Y[M]?Y[M]:Ue[M]}nt(Pt,"getConfigField");var Pr=nt((M,Y)=>{sr(M,Y),M.groups.map(Y.addGroup),M.services.map(C=>Y.addService({...C,type:"service"})),M.junctions.map(C=>Y.addJunction({...C,type:"junction"})),M.edges.map(Y.addEdge)},"populateDb"),Gr={parse:nt(async M=>{const Y=await lr("architecture",M);Se.debug(Y),Pr(Y,le)},"parse")},Ur=nt(M=>` .edge { stroke-width: ${M.archEdgeWidth}; stroke: ${M.archEdgeColor}; diff --git a/static/js/md-blockDiagram-ZHA2E4KO-oImioYsj.js b/static/js/md-blockDiagram-ZHA2E4KO-BRd8o0Kg.js similarity index 99% rename from static/js/md-blockDiagram-ZHA2E4KO-oImioYsj.js rename to static/js/md-blockDiagram-ZHA2E4KO-BRd8o0Kg.js index 522cc0b..a2fec29 100644 --- a/static/js/md-blockDiagram-ZHA2E4KO-oImioYsj.js +++ b/static/js/md-blockDiagram-ZHA2E4KO-BRd8o0Kg.js @@ -1,4 +1,4 @@ -import{_ as d,d as z,l as L,j as R,ah as de,D as at,ai as Z,aj as Yt,ak as ge,u as tt,al as ue,K as pe,k as fe,v as xe,A as ye,Q as be,am as we,an as xt,e as me,i as Tt}from"./md-index-BhYxDPe5.js";import{c as Le}from"./md-clone-CtDbzCPt.js";import{G as Se}from"./md-graph--GW7E-WG.js";import{c as ve}from"./md-channel-CU0QIpSQ.js";import"./md-_baseUniq-Cjg3wXP1.js";var yt=function(){var e=d(function(N,x,g,u){for(g=g||{},u=N.length;u--;g[N[u]]=x);return g},"o"),t=[1,7],r=[1,13],n=[1,14],i=[1,15],a=[1,19],s=[1,16],l=[1,17],o=[1,18],f=[8,30],h=[8,21,28,29,30,31,32,40,44,47],y=[1,23],b=[1,24],m=[8,15,16,21,28,29,30,31,32,40,44,47],E=[8,15,16,21,27,28,29,30,31,32,40,44,47],D=[1,49],v={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(x,g,u,w,S,c,_){var p=c.length-1;switch(S){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",c[p-1]),w.setHierarchy(c[p-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",c[p]),typeof c[p].length=="number"?this.$=c[p]:this.$=[c[p]];break;case 13:w.getLogger().debug("Rule: statement #2: ",c[p-1]),this.$=[c[p-1]].concat(c[p]);break;case 14:w.getLogger().debug("Rule: link: ",c[p],x),this.$={edgeTypeStr:c[p],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",c[p-3],c[p-1],c[p]),this.$={edgeTypeStr:c[p],label:c[p-1]};break;case 18:const A=parseInt(c[p]),O=w.generateId();this.$={id:O,type:"space",label:"",width:A,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",c[p-2],c[p-1],c[p]," typestr: ",c[p-1].edgeTypeStr);const X=w.edgeStrToEdgeData(c[p-1].edgeTypeStr);this.$=[{id:c[p-2].id,label:c[p-2].label,type:c[p-2].type,directions:c[p-2].directions},{id:c[p-2].id+"-"+c[p].id,start:c[p-2].id,end:c[p].id,label:c[p-1].label,type:"edge",directions:c[p].directions,arrowTypeEnd:X,arrowTypeStart:"arrow_open"},{id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",c[p-1],c[p]),this.$={id:c[p-1].id,label:c[p-1].label,type:w.typeStr2Type(c[p-1].typeStr),directions:c[p-1].directions,widthInColumns:parseInt(c[p],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",c[p]),this.$={id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",c[p]),this.$={type:"column-setting",columns:c[p]==="auto"?-1:parseInt(c[p])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",c[p-2],c[p-1]),w.generateId(),this.$={...c[p-2],type:"composite",children:c[p-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",c[p-2],c[p-1],c[p]);const W=w.generateId();this.$={id:W,type:"composite",label:"",children:c[p-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",c[p]),this.$={id:c[p]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",c[p-1],c[p]),this.$={id:c[p-1],label:c[p].label,typeStr:c[p].typeStr,directions:c[p].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",c[p]),this.$=[c[p]];break;case 32:w.getLogger().debug("Rule: dirList: ",c[p-1],c[p]),this.$=[c[p-1]].concat(c[p]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",c[p-2],c[p-1],c[p]),this.$={typeStr:c[p-2]+c[p],label:c[p-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",c[p-3],c[p-2]," #3:",c[p-1],c[p]),this.$={typeStr:c[p-3]+c[p],label:c[p-2],directions:c[p-1]};break;case 35:case 36:this.$={type:"classDef",id:c[p-1].trim(),css:c[p].trim()};break;case 37:this.$={type:"applyClass",id:c[p-1].trim(),styleClass:c[p].trim()};break;case 38:this.$={type:"applyStyles",id:c[p-1].trim(),stylesStr:c[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{8:[1,20]},e(f,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:r,29:n,31:i,32:a,40:s,44:l,47:o}),e(h,[2,16],{14:22,15:y,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(m,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(E,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(f,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},e(m,[2,24]),{11:37,13:4,14:22,15:y,16:b,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(E,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{37:[1,47]},{34:48,35:D},{15:[1,50]},e(h,[2,27]),e(E,[2,33]),{39:[1,51]},{34:52,35:D,39:[2,31]},{32:[2,15]},e(E,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(x,g){if(g.recoverable)this.trace(x);else{var u=new Error(x);throw u.hash=g,u}},"parseError"),parse:d(function(x){var g=this,u=[0],w=[],S=[null],c=[],_=this.table,p="",A=0,O=0,X=2,W=1,ce=c.slice.call(arguments,1),M=Object.create(this.lexer),J={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(J.yy[gt]=this.yy[gt]);M.setInput(x,J.yy),J.yy.lexer=M,J.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var ut=M.yylloc;c.push(ut);var oe=M.options&&M.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(H){u.length=u.length-2*H,S.length=S.length-H,c.length=c.length-H}d(he,"popStack");function Dt(){var H;return H=w.pop()||M.lex()||W,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=g.symbols_[H]||H),H}d(Dt,"lex");for(var Y,Q,U,pt,$={},st,q,Nt,it;;){if(Q=u[u.length-1],this.defaultActions[Q]?U=this.defaultActions[Q]:((Y===null||typeof Y>"u")&&(Y=Dt()),U=_[Q]&&_[Q][Y]),typeof U>"u"||!U.length||!U[0]){var ft="";it=[];for(st in _[Q])this.terminals_[st]&&st>X&&it.push("'"+this.terminals_[st]+"'");M.showPosition?ft="Parse error on line "+(A+1)+`: +import{_ as d,d as z,l as L,j as R,ah as de,D as at,ai as Z,aj as Yt,ak as ge,u as tt,al as ue,K as pe,k as fe,v as xe,A as ye,Q as be,am as we,an as xt,e as me,i as Tt}from"./md-index-ByjuzIYZ.js";import{c as Le}from"./md-clone-CEEsdKQ5.js";import{G as Se}from"./md-graph-C_Pg_EOJ.js";import{c as ve}from"./md-channel-BSQ4jenh.js";import"./md-_baseUniq-DZXHEAoF.js";var yt=function(){var e=d(function(N,x,g,u){for(g=g||{},u=N.length;u--;g[N[u]]=x);return g},"o"),t=[1,7],r=[1,13],n=[1,14],i=[1,15],a=[1,19],s=[1,16],l=[1,17],o=[1,18],f=[8,30],h=[8,21,28,29,30,31,32,40,44,47],y=[1,23],b=[1,24],m=[8,15,16,21,28,29,30,31,32,40,44,47],E=[8,15,16,21,27,28,29,30,31,32,40,44,47],D=[1,49],v={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(x,g,u,w,S,c,_){var p=c.length-1;switch(S){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",c[p-1]),w.setHierarchy(c[p-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",c[p]),typeof c[p].length=="number"?this.$=c[p]:this.$=[c[p]];break;case 13:w.getLogger().debug("Rule: statement #2: ",c[p-1]),this.$=[c[p-1]].concat(c[p]);break;case 14:w.getLogger().debug("Rule: link: ",c[p],x),this.$={edgeTypeStr:c[p],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",c[p-3],c[p-1],c[p]),this.$={edgeTypeStr:c[p],label:c[p-1]};break;case 18:const A=parseInt(c[p]),O=w.generateId();this.$={id:O,type:"space",label:"",width:A,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",c[p-2],c[p-1],c[p]," typestr: ",c[p-1].edgeTypeStr);const X=w.edgeStrToEdgeData(c[p-1].edgeTypeStr);this.$=[{id:c[p-2].id,label:c[p-2].label,type:c[p-2].type,directions:c[p-2].directions},{id:c[p-2].id+"-"+c[p].id,start:c[p-2].id,end:c[p].id,label:c[p-1].label,type:"edge",directions:c[p].directions,arrowTypeEnd:X,arrowTypeStart:"arrow_open"},{id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",c[p-1],c[p]),this.$={id:c[p-1].id,label:c[p-1].label,type:w.typeStr2Type(c[p-1].typeStr),directions:c[p-1].directions,widthInColumns:parseInt(c[p],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",c[p]),this.$={id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",c[p]),this.$={type:"column-setting",columns:c[p]==="auto"?-1:parseInt(c[p])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",c[p-2],c[p-1]),w.generateId(),this.$={...c[p-2],type:"composite",children:c[p-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",c[p-2],c[p-1],c[p]);const W=w.generateId();this.$={id:W,type:"composite",label:"",children:c[p-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",c[p]),this.$={id:c[p]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",c[p-1],c[p]),this.$={id:c[p-1],label:c[p].label,typeStr:c[p].typeStr,directions:c[p].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",c[p]),this.$=[c[p]];break;case 32:w.getLogger().debug("Rule: dirList: ",c[p-1],c[p]),this.$=[c[p-1]].concat(c[p]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",c[p-2],c[p-1],c[p]),this.$={typeStr:c[p-2]+c[p],label:c[p-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",c[p-3],c[p-2]," #3:",c[p-1],c[p]),this.$={typeStr:c[p-3]+c[p],label:c[p-2],directions:c[p-1]};break;case 35:case 36:this.$={type:"classDef",id:c[p-1].trim(),css:c[p].trim()};break;case 37:this.$={type:"applyClass",id:c[p-1].trim(),styleClass:c[p].trim()};break;case 38:this.$={type:"applyStyles",id:c[p-1].trim(),stylesStr:c[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{8:[1,20]},e(f,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:r,29:n,31:i,32:a,40:s,44:l,47:o}),e(h,[2,16],{14:22,15:y,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(m,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(E,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(f,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},e(m,[2,24]),{11:37,13:4,14:22,15:y,16:b,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(E,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{37:[1,47]},{34:48,35:D},{15:[1,50]},e(h,[2,27]),e(E,[2,33]),{39:[1,51]},{34:52,35:D,39:[2,31]},{32:[2,15]},e(E,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(x,g){if(g.recoverable)this.trace(x);else{var u=new Error(x);throw u.hash=g,u}},"parseError"),parse:d(function(x){var g=this,u=[0],w=[],S=[null],c=[],_=this.table,p="",A=0,O=0,X=2,W=1,ce=c.slice.call(arguments,1),M=Object.create(this.lexer),J={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(J.yy[gt]=this.yy[gt]);M.setInput(x,J.yy),J.yy.lexer=M,J.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var ut=M.yylloc;c.push(ut);var oe=M.options&&M.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(H){u.length=u.length-2*H,S.length=S.length-H,c.length=c.length-H}d(he,"popStack");function Dt(){var H;return H=w.pop()||M.lex()||W,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=g.symbols_[H]||H),H}d(Dt,"lex");for(var Y,Q,U,pt,$={},st,q,Nt,it;;){if(Q=u[u.length-1],this.defaultActions[Q]?U=this.defaultActions[Q]:((Y===null||typeof Y>"u")&&(Y=Dt()),U=_[Q]&&_[Q][Y]),typeof U>"u"||!U.length||!U[0]){var ft="";it=[];for(st in _[Q])this.terminals_[st]&&st>X&&it.push("'"+this.terminals_[st]+"'");M.showPosition?ft="Parse error on line "+(A+1)+`: `+M.showPosition()+` Expecting `+it.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":ft="Parse error on line "+(A+1)+": Unexpected "+(Y==W?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(ft,{text:M.match,token:this.terminals_[Y]||Y,line:M.yylineno,loc:ut,expected:it})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+Y);switch(U[0]){case 1:u.push(Y),S.push(M.yytext),c.push(M.yylloc),u.push(U[1]),Y=null,O=M.yyleng,p=M.yytext,A=M.yylineno,ut=M.yylloc;break;case 2:if(q=this.productions_[U[1]][1],$.$=S[S.length-q],$._$={first_line:c[c.length-(q||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(q||1)].first_column,last_column:c[c.length-1].last_column},oe&&($._$.range=[c[c.length-(q||1)].range[0],c[c.length-1].range[1]]),pt=this.performAction.apply($,[p,O,A,J.yy,U[1],S,c].concat(ce)),typeof pt<"u")return pt;q&&(u=u.slice(0,-1*q*2),S=S.slice(0,-1*q),c=c.slice(0,-1*q)),u.push(this.productions_[U[1]][0]),S.push($.$),c.push($._$),Nt=_[u[u.length-2]][u[u.length-1]],u.push(Nt);break;case 3:return!0}}return!0},"parse")},T=function(){var N={EOF:1,parseError:d(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:d(function(x,g){return this.yy=g||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var g=x.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:d(function(x){var g=x.length,u=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var w=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===w.length?this.yylloc.first_column:0)+w[w.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(x){this.unput(this.match.slice(x))},"less"),pastInput:d(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var x=this.pastInput(),g=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/static/js/md-c4Diagram-6F5ED5ID-CWkYI8xo.js b/static/js/md-c4Diagram-6F5ED5ID-Cg__yH_7.js similarity index 99% rename from static/js/md-c4Diagram-6F5ED5ID-CWkYI8xo.js rename to static/js/md-c4Diagram-6F5ED5ID-Cg__yH_7.js index 8314862..816b1ae 100644 --- a/static/js/md-c4Diagram-6F5ED5ID-CWkYI8xo.js +++ b/static/js/md-c4Diagram-6F5ED5ID-Cg__yH_7.js @@ -1,4 +1,4 @@ -import{d as Se,g as De}from"./md-chunk-ASOPGD6M-BZAPvhZW.js";import{_ as g,a as Pe,s as Be,g as Ie,b as Me,c as Le,d as Bt,w as Ne,e as $t,f as de,h as Tt,i as ge,j as jt,l as fe,k as Ye,m as je}from"./md-index-BhYxDPe5.js";var Ft=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: +import{d as Se,g as De}from"./md-chunk-ASOPGD6M-D5CB9lCy.js";import{_ as g,a as Pe,s as Be,g as Ie,b as Me,c as Le,d as Bt,w as Ne,e as $t,f as de,h as Tt,i as ge,j as jt,l as fe,k as Ye,m as je}from"./md-index-ByjuzIYZ.js";var Ft=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error on line "+(Et+1)+": Unexpected "+(I==ce?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Kt,expected:Yt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,oe=D.yyleng,p=D.yytext,Et=D.yylineno,Kt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},Oe&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(wt,[p,oe,Et,kt.yy,N[1],R,h].concat(Te)),typeof Jt<"u")return Jt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ue=Dt[v[v.length-2]][v[v.length-1]],v.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=function(){var _t={EOF:1,parseError:g(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:g(function(x,m){return this.yy=m||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:g(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===b.length?this.yylloc.first_column:0)+b[b.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(x){this.unput(this.match.slice(x))},"less"),pastInput:g(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/static/js/md-channel-BSQ4jenh.js b/static/js/md-channel-BSQ4jenh.js new file mode 100644 index 0000000..b57a42f --- /dev/null +++ b/static/js/md-channel-BSQ4jenh.js @@ -0,0 +1 @@ +import{ao as r,ap as n}from"./md-index-ByjuzIYZ.js";const t=(a,o)=>r.lang.round(n.parse(a)[o]);export{t as c}; diff --git a/static/js/md-channel-CU0QIpSQ.js b/static/js/md-channel-CU0QIpSQ.js deleted file mode 100644 index 989621d..0000000 --- a/static/js/md-channel-CU0QIpSQ.js +++ /dev/null @@ -1 +0,0 @@ -import{ao as r,ap as n}from"./md-index-BhYxDPe5.js";const t=(a,o)=>r.lang.round(n.parse(a)[o]);export{t as c}; diff --git a/static/js/md-chunk-5HRBRIJM-CkTnwvT0.js b/static/js/md-chunk-5HRBRIJM-nr27TBxG.js similarity index 90% rename from static/js/md-chunk-5HRBRIJM-CkTnwvT0.js rename to static/js/md-chunk-5HRBRIJM-nr27TBxG.js index d7737b4..0574d27 100644 --- a/static/js/md-chunk-5HRBRIJM-CkTnwvT0.js +++ b/static/js/md-chunk-5HRBRIJM-nr27TBxG.js @@ -1 +1 @@ -import{_ as n,j as r,k as g,l as d}from"./md-index-BhYxDPe5.js";var u=n((t,e)=>{let o;return e==="sandbox"&&(o=r("#i"+t)),(e==="sandbox"?r(o.nodes()[0].contentDocument.body):r("body")).select(`[id="${t}"]`)},"getDiagramElement"),b=n((t,e,o,i)=>{t.attr("class",o);const{width:a,height:s,x:h,y:x}=l(t,e);g(t,s,a,i);const c=w(h,x,a,s,e);t.attr("viewBox",c),d.debug(`viewBox configured: ${c} with padding: ${e}`)},"setupViewPortForSVG"),l=n((t,e)=>{var i;const o=((i=t.node())==null?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+e*2,height:o.height+e*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),w=n((t,e,o,i,a)=>`${t-a} ${e-a} ${o} ${i}`,"createViewBox");export{u as g,b as s}; +import{_ as n,j as r,k as g,l as d}from"./md-index-ByjuzIYZ.js";var u=n((t,e)=>{let o;return e==="sandbox"&&(o=r("#i"+t)),(e==="sandbox"?r(o.nodes()[0].contentDocument.body):r("body")).select(`[id="${t}"]`)},"getDiagramElement"),b=n((t,e,o,i)=>{t.attr("class",o);const{width:a,height:s,x:h,y:x}=l(t,e);g(t,s,a,i);const c=w(h,x,a,s,e);t.attr("viewBox",c),d.debug(`viewBox configured: ${c} with padding: ${e}`)},"setupViewPortForSVG"),l=n((t,e)=>{var i;const o=((i=t.node())==null?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+e*2,height:o.height+e*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),w=n((t,e,o,i,a)=>`${t-a} ${e-a} ${o} ${i}`,"createViewBox");export{u as g,b as s}; diff --git a/static/js/md-chunk-7U56Z5CX-Dp7clwJn.js b/static/js/md-chunk-7U56Z5CX-DsEs53Ln.js similarity index 99% rename from static/js/md-chunk-7U56Z5CX-Dp7clwJn.js rename to static/js/md-chunk-7U56Z5CX-DsEs53Ln.js index 54a6b8a..051725d 100644 --- a/static/js/md-chunk-7U56Z5CX-Dp7clwJn.js +++ b/static/js/md-chunk-7U56Z5CX-DsEs53Ln.js @@ -1,4 +1,4 @@ -import{g as De,s as Ce}from"./md-chunk-5HRBRIJM-CkTnwvT0.js";import{_ as r,e as z,d as x,g as xe,s as Ae,b as Le,c as Re,p as Ie,q as Oe,l as b,z as Ne,u as we,v as $e,R as Pe}from"./md-index-BhYxDPe5.js";var Ot=function(){var t=r(function($,o,u,n){for(u=u||{},n=$.length;n--;u[$[n]]=o);return u},"o"),e=[1,2],c=[1,3],a=[1,4],d=[2,4],s=[1,9],p=[1,11],g=[1,16],l=[1,17],_=[1,18],v=[1,19],A=[1,32],B=[1,20],Y=[1,21],R=[1,22],f=[1,23],L=[1,24],I=[1,26],F=[1,27],V=[1,28],N=[1,29],w=[1,30],rt=[1,31],at=[1,34],nt=[1,35],lt=[1,36],ot=[1,37],J=[1,33],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],Vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],kt={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:r(function(o,u,n,y,T,i,q){var h=i.length-1;switch(T){case 3:return y.setRootDoc(i[h]),i[h];case 4:this.$=[];break;case 5:i[h]!="nl"&&(i[h-1].push(i[h]),this.$=i[h-1]);break;case 6:case 7:this.$=i[h];break;case 8:this.$="nl";break;case 12:this.$=i[h];break;case 13:const Q=i[h-1];Q.description=y.trimColon(i[h]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[h-2],state2:i[h]};break;case 15:const Dt=y.trimColon(i[h]);this.$={stmt:"relation",state1:i[h-3],state2:i[h-1],description:Dt};break;case 19:this.$={stmt:"state",id:i[h-3],type:"default",description:"",doc:i[h-1]};break;case 20:var M=i[h],W=i[h-2].trim();if(i[h].match(":")){var ht=i[h].split(":");M=ht[0],W=[W,ht[1]]}this.$={stmt:"state",id:M,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[h-3],type:"default",description:i[h-5],doc:i[h-1]};break;case 22:this.$={stmt:"state",id:i[h],type:"fork"};break;case 23:this.$={stmt:"state",id:i[h],type:"join"};break;case 24:this.$={stmt:"state",id:i[h],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[h-1].trim(),note:{position:i[h-2].trim(),text:i[h].trim()}};break;case 29:this.$=i[h].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[h].trim(),y.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:i[h-1].trim(),classes:i[h].trim()};break;case 34:this.$={stmt:"style",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 35:this.$={stmt:"applyClass",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 36:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:i[h].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,39],15:[1,40]}),t(S,[2,16]),{18:[1,41]},t(S,[2,18],{20:[1,42]}),{23:[1,43]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(S,[2,28]),{34:[1,48]},{36:[1,49]},t(S,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(ct,[2,42],{55:[1,54]}),t(ct,[2,43],{55:[1,55]}),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(S,[2,39]),t(S,[2,6]),t(S,[2,13]),{13:56,24:A,54:J},t(S,[2,17]),t(Vt,d,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(S,[2,29]),t(S,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(S,[2,14],{14:[1,67]}),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,68],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(ct,[2,44]),t(ct,[2,45]),t(S,[2,15]),t(S,[2,19]),t(Vt,d,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,73],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:r(function(o,u){if(u.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=u,n}},"parseError"),parse:r(function(o){var u=this,n=[0],y=[],T=[null],i=[],q=this.table,h="",M=0,W=0,ht=2,Q=1,Dt=i.slice.call(arguments,1),E=Object.create(this.lexer),U={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(U.yy[Ct]=this.yy[Ct]);E.setInput(o,U.yy),U.yy.lexer=E,U.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var xt=E.yylloc;i.push(xt);var me=E.options&&E.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(D){n.length=n.length-2*D,T.length=T.length-D,i.length=i.length-D}r(ke,"popStack");function Mt(){var D;return D=y.pop()||E.lex()||Q,typeof D!="number"&&(D instanceof Array&&(y=D,D=y.pop()),D=u.symbols_[D]||D),D}r(Mt,"lex");for(var m,j,C,At,X={},dt,O,Ut,ft;;){if(j=n[n.length-1],this.defaultActions[j]?C=this.defaultActions[j]:((m===null||typeof m>"u")&&(m=Mt()),C=q[j]&&q[j][m]),typeof C>"u"||!C.length||!C[0]){var Lt="";ft=[];for(dt in q[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");E.showPosition?Lt="Parse error on line "+(M+1)+`: +import{g as De,s as Ce}from"./md-chunk-5HRBRIJM-nr27TBxG.js";import{_ as r,e as z,d as x,g as xe,s as Ae,b as Le,c as Re,p as Ie,q as Oe,l as b,z as Ne,u as we,v as $e,R as Pe}from"./md-index-ByjuzIYZ.js";var Ot=function(){var t=r(function($,o,u,n){for(u=u||{},n=$.length;n--;u[$[n]]=o);return u},"o"),e=[1,2],c=[1,3],a=[1,4],d=[2,4],s=[1,9],p=[1,11],g=[1,16],l=[1,17],_=[1,18],v=[1,19],A=[1,32],B=[1,20],Y=[1,21],R=[1,22],f=[1,23],L=[1,24],I=[1,26],F=[1,27],V=[1,28],N=[1,29],w=[1,30],rt=[1,31],at=[1,34],nt=[1,35],lt=[1,36],ot=[1,37],J=[1,33],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],Vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],kt={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:r(function(o,u,n,y,T,i,q){var h=i.length-1;switch(T){case 3:return y.setRootDoc(i[h]),i[h];case 4:this.$=[];break;case 5:i[h]!="nl"&&(i[h-1].push(i[h]),this.$=i[h-1]);break;case 6:case 7:this.$=i[h];break;case 8:this.$="nl";break;case 12:this.$=i[h];break;case 13:const Q=i[h-1];Q.description=y.trimColon(i[h]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[h-2],state2:i[h]};break;case 15:const Dt=y.trimColon(i[h]);this.$={stmt:"relation",state1:i[h-3],state2:i[h-1],description:Dt};break;case 19:this.$={stmt:"state",id:i[h-3],type:"default",description:"",doc:i[h-1]};break;case 20:var M=i[h],W=i[h-2].trim();if(i[h].match(":")){var ht=i[h].split(":");M=ht[0],W=[W,ht[1]]}this.$={stmt:"state",id:M,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[h-3],type:"default",description:i[h-5],doc:i[h-1]};break;case 22:this.$={stmt:"state",id:i[h],type:"fork"};break;case 23:this.$={stmt:"state",id:i[h],type:"join"};break;case 24:this.$={stmt:"state",id:i[h],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[h-1].trim(),note:{position:i[h-2].trim(),text:i[h].trim()}};break;case 29:this.$=i[h].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[h].trim(),y.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:i[h-1].trim(),classes:i[h].trim()};break;case 34:this.$={stmt:"style",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 35:this.$={stmt:"applyClass",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 36:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:i[h].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,39],15:[1,40]}),t(S,[2,16]),{18:[1,41]},t(S,[2,18],{20:[1,42]}),{23:[1,43]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(S,[2,28]),{34:[1,48]},{36:[1,49]},t(S,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(ct,[2,42],{55:[1,54]}),t(ct,[2,43],{55:[1,55]}),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(S,[2,39]),t(S,[2,6]),t(S,[2,13]),{13:56,24:A,54:J},t(S,[2,17]),t(Vt,d,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(S,[2,29]),t(S,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(S,[2,14],{14:[1,67]}),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,68],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(ct,[2,44]),t(ct,[2,45]),t(S,[2,15]),t(S,[2,19]),t(Vt,d,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,73],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:r(function(o,u){if(u.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=u,n}},"parseError"),parse:r(function(o){var u=this,n=[0],y=[],T=[null],i=[],q=this.table,h="",M=0,W=0,ht=2,Q=1,Dt=i.slice.call(arguments,1),E=Object.create(this.lexer),U={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(U.yy[Ct]=this.yy[Ct]);E.setInput(o,U.yy),U.yy.lexer=E,U.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var xt=E.yylloc;i.push(xt);var me=E.options&&E.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(D){n.length=n.length-2*D,T.length=T.length-D,i.length=i.length-D}r(ke,"popStack");function Mt(){var D;return D=y.pop()||E.lex()||Q,typeof D!="number"&&(D instanceof Array&&(y=D,D=y.pop()),D=u.symbols_[D]||D),D}r(Mt,"lex");for(var m,j,C,At,X={},dt,O,Ut,ft;;){if(j=n[n.length-1],this.defaultActions[j]?C=this.defaultActions[j]:((m===null||typeof m>"u")&&(m=Mt()),C=q[j]&&q[j][m]),typeof C>"u"||!C.length||!C[0]){var Lt="";ft=[];for(dt in q[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");E.showPosition?Lt="Parse error on line "+(M+1)+`: `+E.showPosition()+` Expecting `+ft.join(", ")+", got '"+(this.terminals_[m]||m)+"'":Lt="Parse error on line "+(M+1)+": Unexpected "+(m==Q?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(Lt,{text:E.match,token:this.terminals_[m]||m,line:E.yylineno,loc:xt,expected:ft})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+m);switch(C[0]){case 1:n.push(m),T.push(E.yytext),i.push(E.yylloc),n.push(C[1]),m=null,W=E.yyleng,h=E.yytext,M=E.yylineno,xt=E.yylloc;break;case 2:if(O=this.productions_[C[1]][1],X.$=T[T.length-O],X._$={first_line:i[i.length-(O||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(O||1)].first_column,last_column:i[i.length-1].last_column},me&&(X._$.range=[i[i.length-(O||1)].range[0],i[i.length-1].range[1]]),At=this.performAction.apply(X,[h,W,M,U.yy,C[1],T,i].concat(Dt)),typeof At<"u")return At;O&&(n=n.slice(0,-1*O*2),T=T.slice(0,-1*O),i=i.slice(0,-1*O)),n.push(this.productions_[C[1]][0]),T.push(X.$),i.push(X._$),Ut=q[n[n.length-2]][n[n.length-1]],n.push(Ut);break;case 3:return!0}}return!0},"parse")},be=function(){var $={EOF:1,parseError:r(function(u,n){if(this.yy.parser)this.yy.parser.parseError(u,n);else throw new Error(u)},"parseError"),setInput:r(function(o,u){return this.yy=u||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:r(function(o){var u=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===y.length?this.yylloc.first_column:0)+y[y.length-n.length].length-n[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(o){this.unput(this.match.slice(o))},"less"),pastInput:r(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/static/js/md-chunk-ASOPGD6M-BZAPvhZW.js b/static/js/md-chunk-ASOPGD6M-D5CB9lCy.js similarity index 95% rename from static/js/md-chunk-ASOPGD6M-BZAPvhZW.js rename to static/js/md-chunk-ASOPGD6M-D5CB9lCy.js index abbb7e3..c9a225e 100644 --- a/static/js/md-chunk-ASOPGD6M-BZAPvhZW.js +++ b/static/js/md-chunk-ASOPGD6M-D5CB9lCy.js @@ -1 +1 @@ -import{_ as n,S as c,m as l}from"./md-index-BhYxDPe5.js";var o=n((a,t)=>{const e=a.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((a,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};o(a,e).lower()},"drawBackgroundRect"),g=n((a,t)=>{const e=t.text.replace(c," "),r=a.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),m=n((a,t,e,r)=>{const s=a.append("image");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",i)},"drawImage"),h=n((a,t,e,r)=>{const s=a.append("use");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{p as a,d as b,h as c,o as d,m as e,g as f,y as g}; +import{_ as n,S as c,m as l}from"./md-index-ByjuzIYZ.js";var o=n((a,t)=>{const e=a.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((a,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};o(a,e).lower()},"drawBackgroundRect"),g=n((a,t)=>{const e=t.text.replace(c," "),r=a.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),m=n((a,t,e,r)=>{const s=a.append("image");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",i)},"drawImage"),h=n((a,t,e,r)=>{const s=a.append("use");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{p as a,d as b,h as c,o as d,m as e,g as f,y as g}; diff --git a/static/js/md-chunk-KFBOBJHC-hNoUdd-l.js b/static/js/md-chunk-KFBOBJHC-CHuIljkb.js similarity index 66% rename from static/js/md-chunk-KFBOBJHC-hNoUdd-l.js rename to static/js/md-chunk-KFBOBJHC-CHuIljkb.js index 881cc04..309c8e7 100644 --- a/static/js/md-chunk-KFBOBJHC-hNoUdd-l.js +++ b/static/js/md-chunk-KFBOBJHC-CHuIljkb.js @@ -1 +1 @@ -import{_ as s}from"./md-index-BhYxDPe5.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; +import{_ as s}from"./md-index-ByjuzIYZ.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; diff --git a/static/js/md-chunk-T2TOU4HS-DPWXYyZ8.js b/static/js/md-chunk-T2TOU4HS-DB2u00L2.js similarity index 99% rename from static/js/md-chunk-T2TOU4HS-DPWXYyZ8.js rename to static/js/md-chunk-T2TOU4HS-DB2u00L2.js index 60d2587..ced31de 100644 --- a/static/js/md-chunk-T2TOU4HS-DPWXYyZ8.js +++ b/static/js/md-chunk-T2TOU4HS-DB2u00L2.js @@ -1,4 +1,4 @@ -import{g as mt,s as Et}from"./md-chunk-5HRBRIJM-CkTnwvT0.js";import{_ as u,i as bt,d as D,P as z,s as kt,g as yt,b as Tt,c as Ft,p as Dt,q as _t,e as I,v as Bt,l as ze,u as Qe,j as ie,x as St,y as vt,z as Nt}from"./md-index-BhYxDPe5.js";var Ke=function(){var e=u(function(O,o,h,d){for(h=h||{},d=O.length;d--;h[O[d]]=o);return h},"o"),i=[1,18],a=[1,19],l=[1,20],c=[1,41],r=[1,42],A=[1,26],f=[1,24],T=[1,25],S=[1,32],ke=[1,33],ye=[1,34],m=[1,45],Te=[1,35],Fe=[1,36],De=[1,37],_e=[1,38],Be=[1,27],Se=[1,28],ve=[1,29],Ne=[1,30],Le=[1,31],E=[1,44],b=[1,46],k=[1,43],F=[1,47],xe=[1,9],p=[1,8,9],re=[1,58],ue=[1,59],le=[1,60],oe=[1,61],ce=[1,62],Ie=[1,63],Oe=[1,64],he=[1,8,9,41],qe=[1,76],G=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],pe=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],de=[13,58,84,99,101,102],Q=[13,58,71,72,84,99,101,102],He=[13,58,66,67,68,69,70,84,99,101,102],we=[1,98],W=[1,115],X=[1,107],q=[1,113],H=[1,108],J=[1,109],Z=[1,110],$=[1,111],ee=[1,112],te=[1,114],Je=[22,58,59,80,84,85,86,87,88,89],Ve=[1,8,9,39,41,44],Ae=[1,8,9,22],Ze=[1,143],$e=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],Pe={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:u(function(o,h,d,n,C,t,se){var s=t.length-1;switch(C){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:n.addRelation(t[s]);break;case 19:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],n.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:n.setCssClass(t[s-2],t[s]);break;case 41:n.addMembers(t[s-3],t[s-1]);break;case 42:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],n.addClass(t[s]);break;case 44:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 45:n.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:n.addNote(t[s],t[s-1]);break;case 57:n.addNote(t[s]);break;case 58:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 91:n.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:A,49:f,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(xe,[2,5],{8:[1,48]}),{8:[1,49]},e(p,[2,18],{22:[1,50]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,51]},{36:[1,52]},e(p,[2,32]),e(p,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe}),{39:[1,65]},e(he,[2,39],{39:[1,67],44:[1,66]}),e(p,[2,50]),e(p,[2,51]),{16:68,58:m,84:E,99:b,101:k},{16:39,18:69,19:40,58:m,84:E,99:b,101:k,102:F},{16:39,18:70,19:40,58:m,84:E,99:b,101:k,102:F},{16:39,18:71,19:40,58:m,84:E,99:b,101:k,102:F},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:m,84:E,99:b,101:k,102:F},{13:qe,53:75},{56:77,58:[1,78]},e(p,[2,61]),e(p,[2,62]),e(p,[2,63]),e(p,[2,64]),e(G,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:m,84:E,99:b,101:k,102:F}),e(G,[2,14],{20:[1,82]}),{15:83,16:84,58:m,84:E,99:b,101:k},{16:39,18:85,19:40,58:m,84:E,99:b,101:k,102:F},e(pe,[2,118]),e(pe,[2,119]),e(pe,[2,120]),e(pe,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(xe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:a,37:l,42:c,46:r,47:A,49:f,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:A,49:f,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F},e(p,[2,19]),e(p,[2,30]),e(p,[2,31]),{13:[1,89],16:39,18:88,19:40,58:m,84:E,99:b,101:k,102:F},{51:90,64:56,65:57,66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe},e(p,[2,49]),{65:91,71:Ie,72:Oe},e(de,[2,68],{64:92,66:re,67:ue,68:le,69:oe,70:ce}),e(Q,[2,69]),e(Q,[2,70]),e(Q,[2,71]),e(Q,[2,72]),e(Q,[2,73]),e(He,[2,74]),e(He,[2,75]),{8:[1,94],24:95,40:93,43:23,46:r},{16:96,58:m,84:E,99:b,101:k},{45:97,49:we},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:W,57:104,58:X,80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},{58:[1,116]},{13:qe,53:117},e(p,[2,57]),e(p,[2,123]),{22:W,57:118,58:X,59:[1,119],80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(Je,[2,59]),{16:39,18:120,19:40,58:m,84:E,99:b,101:k,102:F},e(G,[2,15]),e(G,[2,16]),e(G,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:m,84:E,99:b,101:k},e(Ve,[2,43],{11:123,12:[1,124]}),e(xe,[2,7]),{9:[1,125]},e(Ae,[2,52]),{16:39,18:126,19:40,58:m,84:E,99:b,101:k,102:F},{13:[1,128],16:39,18:127,19:40,58:m,84:E,99:b,101:k,102:F},e(de,[2,67],{64:129,66:re,67:ue,68:le,69:oe,70:ce}),e(de,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:r},{8:[1,132],41:[2,36]},e(he,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:we},{16:39,18:136,19:40,58:m,84:E,99:b,101:k,102:F},e(p,[2,76],{13:[1,137]}),e(p,[2,78],{13:[1,139],75:[1,138]}),e(p,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(p,[2,90],{59:Ze}),e($e,[2,92],{83:144,22:W,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(p,[2,91]),e(p,[2,56]),e(p,[2,58],{59:Ze}),{58:[1,145]},e(G,[2,13]),{15:146,16:84,58:m,84:E,99:b,101:k},{39:[2,11]},e(Ve,[2,44]),{13:[1,147]},{1:[2,4]},e(Ae,[2,54]),e(Ae,[2,53]),{16:39,18:148,19:40,58:m,84:E,99:b,101:k,102:F},e(de,[2,65]),e(p,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:r},{45:151,49:we},e(he,[2,41]),{41:[2,47]},e(p,[2,45]),e(p,[2,77]),e(p,[2,79]),e(p,[2,80],{75:[1,152]}),e(p,[2,83]),e(p,[2,84],{13:[1,153]}),e(p,[2,86],{13:[1,155],75:[1,154]}),{22:W,58:X,80:q,82:156,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(N,[2,95]),e(Je,[2,60]),{39:[2,10]},{14:[1,157]},e(Ae,[2,55]),e(p,[2,34]),{41:[2,38]},{41:[1,158]},e(p,[2,81]),e(p,[2,85]),e(p,[2,87]),e(p,[2,88],{75:[1,159]}),e($e,[2,93],{83:144,22:W,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(Ve,[2,8]),e(he,[2,42]),e(p,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:u(function(o,h){if(h.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=h,d}},"parseError"),parse:u(function(o){var h=this,d=[0],n=[],C=[null],t=[],se=this.table,s="",ge=0,et=0,At=2,tt=1,ft=t.slice.call(arguments,1),y=Object.create(this.lexer),V={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(V.yy[Re]=this.yy[Re]);y.setInput(o,V.yy),V.yy.lexer=y,V.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Me=y.yylloc;t.push(Me);var gt=y.options&&y.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(B){d.length=d.length-2*B,C.length=C.length-B,t.length=t.length-B}u(Ct,"popStack");function st(){var B;return B=n.pop()||y.lex()||tt,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=h.symbols_[B]||B),B}u(st,"lex");for(var _,P,v,Ge,U={},Ce,x,it,me;;){if(P=d[d.length-1],this.defaultActions[P]?v=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=st()),v=se[P]&&se[P][_]),typeof v>"u"||!v.length||!v[0]){var Ue="";me=[];for(Ce in se[P])this.terminals_[Ce]&&Ce>At&&me.push("'"+this.terminals_[Ce]+"'");y.showPosition?Ue="Parse error on line "+(ge+1)+`: +import{g as mt,s as Et}from"./md-chunk-5HRBRIJM-nr27TBxG.js";import{_ as u,i as bt,d as D,P as z,s as kt,g as yt,b as Tt,c as Ft,p as Dt,q as _t,e as I,v as Bt,l as ze,u as Qe,j as ie,x as St,y as vt,z as Nt}from"./md-index-ByjuzIYZ.js";var Ke=function(){var e=u(function(O,o,h,d){for(h=h||{},d=O.length;d--;h[O[d]]=o);return h},"o"),i=[1,18],a=[1,19],l=[1,20],c=[1,41],r=[1,42],A=[1,26],f=[1,24],T=[1,25],S=[1,32],ke=[1,33],ye=[1,34],m=[1,45],Te=[1,35],Fe=[1,36],De=[1,37],_e=[1,38],Be=[1,27],Se=[1,28],ve=[1,29],Ne=[1,30],Le=[1,31],E=[1,44],b=[1,46],k=[1,43],F=[1,47],xe=[1,9],p=[1,8,9],re=[1,58],ue=[1,59],le=[1,60],oe=[1,61],ce=[1,62],Ie=[1,63],Oe=[1,64],he=[1,8,9,41],qe=[1,76],G=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],pe=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],de=[13,58,84,99,101,102],Q=[13,58,71,72,84,99,101,102],He=[13,58,66,67,68,69,70,84,99,101,102],we=[1,98],W=[1,115],X=[1,107],q=[1,113],H=[1,108],J=[1,109],Z=[1,110],$=[1,111],ee=[1,112],te=[1,114],Je=[22,58,59,80,84,85,86,87,88,89],Ve=[1,8,9,39,41,44],Ae=[1,8,9,22],Ze=[1,143],$e=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],Pe={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:u(function(o,h,d,n,C,t,se){var s=t.length-1;switch(C){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:n.addRelation(t[s]);break;case 19:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],n.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:n.setCssClass(t[s-2],t[s]);break;case 41:n.addMembers(t[s-3],t[s-1]);break;case 42:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],n.addClass(t[s]);break;case 44:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 45:n.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:n.addNote(t[s],t[s-1]);break;case 57:n.addNote(t[s]);break;case 58:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 91:n.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:A,49:f,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(xe,[2,5],{8:[1,48]}),{8:[1,49]},e(p,[2,18],{22:[1,50]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,51]},{36:[1,52]},e(p,[2,32]),e(p,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe}),{39:[1,65]},e(he,[2,39],{39:[1,67],44:[1,66]}),e(p,[2,50]),e(p,[2,51]),{16:68,58:m,84:E,99:b,101:k},{16:39,18:69,19:40,58:m,84:E,99:b,101:k,102:F},{16:39,18:70,19:40,58:m,84:E,99:b,101:k,102:F},{16:39,18:71,19:40,58:m,84:E,99:b,101:k,102:F},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:m,84:E,99:b,101:k,102:F},{13:qe,53:75},{56:77,58:[1,78]},e(p,[2,61]),e(p,[2,62]),e(p,[2,63]),e(p,[2,64]),e(G,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:m,84:E,99:b,101:k,102:F}),e(G,[2,14],{20:[1,82]}),{15:83,16:84,58:m,84:E,99:b,101:k},{16:39,18:85,19:40,58:m,84:E,99:b,101:k,102:F},e(pe,[2,118]),e(pe,[2,119]),e(pe,[2,120]),e(pe,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(xe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:a,37:l,42:c,46:r,47:A,49:f,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:A,49:f,50:T,52:S,54:ke,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:b,101:k,102:F},e(p,[2,19]),e(p,[2,30]),e(p,[2,31]),{13:[1,89],16:39,18:88,19:40,58:m,84:E,99:b,101:k,102:F},{51:90,64:56,65:57,66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe},e(p,[2,49]),{65:91,71:Ie,72:Oe},e(de,[2,68],{64:92,66:re,67:ue,68:le,69:oe,70:ce}),e(Q,[2,69]),e(Q,[2,70]),e(Q,[2,71]),e(Q,[2,72]),e(Q,[2,73]),e(He,[2,74]),e(He,[2,75]),{8:[1,94],24:95,40:93,43:23,46:r},{16:96,58:m,84:E,99:b,101:k},{45:97,49:we},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:W,57:104,58:X,80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},{58:[1,116]},{13:qe,53:117},e(p,[2,57]),e(p,[2,123]),{22:W,57:118,58:X,59:[1,119],80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(Je,[2,59]),{16:39,18:120,19:40,58:m,84:E,99:b,101:k,102:F},e(G,[2,15]),e(G,[2,16]),e(G,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:m,84:E,99:b,101:k},e(Ve,[2,43],{11:123,12:[1,124]}),e(xe,[2,7]),{9:[1,125]},e(Ae,[2,52]),{16:39,18:126,19:40,58:m,84:E,99:b,101:k,102:F},{13:[1,128],16:39,18:127,19:40,58:m,84:E,99:b,101:k,102:F},e(de,[2,67],{64:129,66:re,67:ue,68:le,69:oe,70:ce}),e(de,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:r},{8:[1,132],41:[2,36]},e(he,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:we},{16:39,18:136,19:40,58:m,84:E,99:b,101:k,102:F},e(p,[2,76],{13:[1,137]}),e(p,[2,78],{13:[1,139],75:[1,138]}),e(p,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(p,[2,90],{59:Ze}),e($e,[2,92],{83:144,22:W,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(p,[2,91]),e(p,[2,56]),e(p,[2,58],{59:Ze}),{58:[1,145]},e(G,[2,13]),{15:146,16:84,58:m,84:E,99:b,101:k},{39:[2,11]},e(Ve,[2,44]),{13:[1,147]},{1:[2,4]},e(Ae,[2,54]),e(Ae,[2,53]),{16:39,18:148,19:40,58:m,84:E,99:b,101:k,102:F},e(de,[2,65]),e(p,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:r},{45:151,49:we},e(he,[2,41]),{41:[2,47]},e(p,[2,45]),e(p,[2,77]),e(p,[2,79]),e(p,[2,80],{75:[1,152]}),e(p,[2,83]),e(p,[2,84],{13:[1,153]}),e(p,[2,86],{13:[1,155],75:[1,154]}),{22:W,58:X,80:q,82:156,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(N,[2,95]),e(Je,[2,60]),{39:[2,10]},{14:[1,157]},e(Ae,[2,55]),e(p,[2,34]),{41:[2,38]},{41:[1,158]},e(p,[2,81]),e(p,[2,85]),e(p,[2,87]),e(p,[2,88],{75:[1,159]}),e($e,[2,93],{83:144,22:W,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(Ve,[2,8]),e(he,[2,42]),e(p,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:u(function(o,h){if(h.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=h,d}},"parseError"),parse:u(function(o){var h=this,d=[0],n=[],C=[null],t=[],se=this.table,s="",ge=0,et=0,At=2,tt=1,ft=t.slice.call(arguments,1),y=Object.create(this.lexer),V={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(V.yy[Re]=this.yy[Re]);y.setInput(o,V.yy),V.yy.lexer=y,V.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Me=y.yylloc;t.push(Me);var gt=y.options&&y.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(B){d.length=d.length-2*B,C.length=C.length-B,t.length=t.length-B}u(Ct,"popStack");function st(){var B;return B=n.pop()||y.lex()||tt,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=h.symbols_[B]||B),B}u(st,"lex");for(var _,P,v,Ge,U={},Ce,x,it,me;;){if(P=d[d.length-1],this.defaultActions[P]?v=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=st()),v=se[P]&&se[P][_]),typeof v>"u"||!v.length||!v[0]){var Ue="";me=[];for(Ce in se[P])this.terminals_[Ce]&&Ce>At&&me.push("'"+this.terminals_[Ce]+"'");y.showPosition?Ue="Parse error on line "+(ge+1)+`: `+y.showPosition()+` Expecting `+me.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Ue="Parse error on line "+(ge+1)+": Unexpected "+(_==tt?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Ue,{text:y.match,token:this.terminals_[_]||_,line:y.yylineno,loc:Me,expected:me})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(v[0]){case 1:d.push(_),C.push(y.yytext),t.push(y.yylloc),d.push(v[1]),_=null,et=y.yyleng,s=y.yytext,ge=y.yylineno,Me=y.yylloc;break;case 2:if(x=this.productions_[v[1]][1],U.$=C[C.length-x],U._$={first_line:t[t.length-(x||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(x||1)].first_column,last_column:t[t.length-1].last_column},gt&&(U._$.range=[t[t.length-(x||1)].range[0],t[t.length-1].range[1]]),Ge=this.performAction.apply(U,[s,et,ge,V.yy,v[1],C,t].concat(ft)),typeof Ge<"u")return Ge;x&&(d=d.slice(0,-1*x*2),C=C.slice(0,-1*x),t=t.slice(0,-1*x)),d.push(this.productions_[v[1]][0]),C.push(U.$),t.push(U._$),it=se[d[d.length-2]][d[d.length-1]],d.push(it);break;case 3:return!0}}return!0},"parse")},dt=function(){var O={EOF:1,parseError:u(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:u(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:u(function(o){var h=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===n.length?this.yylloc.first_column:0)+n[n.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(o){this.unput(this.match.slice(o))},"less"),pastInput:u(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/static/js/md-chunk-TMUBEWPD-D-4gDNXh.js b/static/js/md-chunk-TMUBEWPD-Dgrus0aV.js similarity index 78% rename from static/js/md-chunk-TMUBEWPD-D-4gDNXh.js rename to static/js/md-chunk-TMUBEWPD-Dgrus0aV.js index b483f69..746a19f 100644 --- a/static/js/md-chunk-TMUBEWPD-D-4gDNXh.js +++ b/static/js/md-chunk-TMUBEWPD-Dgrus0aV.js @@ -1 +1 @@ -import{_ as l}from"./md-index-BhYxDPe5.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; +import{_ as l}from"./md-index-ByjuzIYZ.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; diff --git a/static/js/md-classDiagram-LNE6IOMH-CwBm99U8.js b/static/js/md-classDiagram-LNE6IOMH-CwBm99U8.js deleted file mode 100644 index b9fd64a..0000000 --- a/static/js/md-classDiagram-LNE6IOMH-CwBm99U8.js +++ /dev/null @@ -1 +0,0 @@ -import{c as s,a as r,b as e,s as l}from"./md-chunk-T2TOU4HS-DPWXYyZ8.js";import{_ as t}from"./md-index-BhYxDPe5.js";import"./md-chunk-5HRBRIJM-CkTnwvT0.js";var _={parser:s,db:r,renderer:e,styles:l,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-classDiagram-LNE6IOMH-b0TVk0AA.js b/static/js/md-classDiagram-LNE6IOMH-b0TVk0AA.js new file mode 100644 index 0000000..1f756d5 --- /dev/null +++ b/static/js/md-classDiagram-LNE6IOMH-b0TVk0AA.js @@ -0,0 +1 @@ +import{c as s,a as r,b as e,s as l}from"./md-chunk-T2TOU4HS-DB2u00L2.js";import{_ as t}from"./md-index-ByjuzIYZ.js";import"./md-chunk-5HRBRIJM-nr27TBxG.js";var _={parser:s,db:r,renderer:e,styles:l,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-classDiagram-v2-MQ7JQ4JX-CwBm99U8.js b/static/js/md-classDiagram-v2-MQ7JQ4JX-CwBm99U8.js deleted file mode 100644 index b9fd64a..0000000 --- a/static/js/md-classDiagram-v2-MQ7JQ4JX-CwBm99U8.js +++ /dev/null @@ -1 +0,0 @@ -import{c as s,a as r,b as e,s as l}from"./md-chunk-T2TOU4HS-DPWXYyZ8.js";import{_ as t}from"./md-index-BhYxDPe5.js";import"./md-chunk-5HRBRIJM-CkTnwvT0.js";var _={parser:s,db:r,renderer:e,styles:l,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-classDiagram-v2-MQ7JQ4JX-b0TVk0AA.js b/static/js/md-classDiagram-v2-MQ7JQ4JX-b0TVk0AA.js new file mode 100644 index 0000000..1f756d5 --- /dev/null +++ b/static/js/md-classDiagram-v2-MQ7JQ4JX-b0TVk0AA.js @@ -0,0 +1 @@ +import{c as s,a as r,b as e,s as l}from"./md-chunk-T2TOU4HS-DB2u00L2.js";import{_ as t}from"./md-index-ByjuzIYZ.js";import"./md-chunk-5HRBRIJM-nr27TBxG.js";var _={parser:s,db:r,renderer:e,styles:l,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-clone-CEEsdKQ5.js b/static/js/md-clone-CEEsdKQ5.js new file mode 100644 index 0000000..ceb1a69 --- /dev/null +++ b/static/js/md-clone-CEEsdKQ5.js @@ -0,0 +1 @@ +import{b as r}from"./md-_baseUniq-DZXHEAoF.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/static/js/md-clone-CtDbzCPt.js b/static/js/md-clone-CtDbzCPt.js deleted file mode 100644 index 034dd4d..0000000 --- a/static/js/md-clone-CtDbzCPt.js +++ /dev/null @@ -1 +0,0 @@ -import{b as r}from"./md-_baseUniq-Cjg3wXP1.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/static/js/md-cytoscape.esm-DNbDS6Fs.js b/static/js/md-cytoscape.esm-xtxBoH4m.js similarity index 99% rename from static/js/md-cytoscape.esm-DNbDS6Fs.js rename to static/js/md-cytoscape.esm-xtxBoH4m.js index c705655..121d897 100644 --- a/static/js/md-cytoscape.esm-DNbDS6Fs.js +++ b/static/js/md-cytoscape.esm-xtxBoH4m.js @@ -1,4 +1,4 @@ -import{aq as Ri}from"./md-index-BhYxDPe5.js";function Ue(r){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(r)}function ii(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Gu(r,e){for(var t=0;tr.length)&&(e=r.length);for(var t=0,a=new Array(e);tr.length)&&(e=r.length);for(var t=0,a=new Array(e);t=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(r)},n:function(){var l=t.next();return i=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}var Ke=typeof window>"u"?null:window,Ii=Ke?Ke.navigator:null;Ke&&Ke.document;var Yu=Ue(""),_o=Ue({}),Xu=Ue(function(){}),Zu=typeof HTMLElement>"u"?"undefined":Ue(HTMLElement),wa=function(e){return e&&e.instanceString&&qe(e.instanceString)?e.instanceString():null},ce=function(e){return e!=null&&Ue(e)==Yu},qe=function(e){return e!=null&&Ue(e)===Xu},Oe=function(e){return!yr(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},Te=function(e){return e!=null&&Ue(e)===_o&&!Oe(e)&&e.constructor===Object},Qu=function(e){return e!=null&&Ue(e)===_o},ne=function(e){return e!=null&&Ue(e)===Ue(1)&&!isNaN(e)},Ju=function(e){return ne(e)&&Math.floor(e)===e},_a=function(e){if(Zu!=="undefined")return e!=null&&e instanceof HTMLElement},yr=function(e){return xa(e)||jo(e)},xa=function(e){return wa(e)==="collection"&&e._private.single},jo=function(e){return wa(e)==="collection"&&!e._private.single},si=function(e){return wa(e)==="core"},es=function(e){return wa(e)==="stylesheet"},_u=function(e){return wa(e)==="event"},jr=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},ju=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},el=function(e){return Te(e)&&ne(e.x1)&&ne(e.x2)&&ne(e.y1)&&ne(e.y2)},rl=function(e){return Qu(e)&&qe(e.then)},tl=function(){return Ii&&Ii.userAgent.match(/msie|trident|edge/i)},la=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],o=0;ot?1:0},ll=function(e,t){return-1*ts(e,t)},pe=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments,t=1;t1&&(p-=1),p<1/6?d+(y-d)*6*p:p<1/2?y:p<2/3?d+(y-d)*(2/3-p)*6:d}var f=new RegExp("^"+il+"$").exec(e);if(f){if(a=parseInt(f[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(f[2]),n<0||n>100||(n=n/100,i=parseFloat(f[3]),i<0||i>100)||(i=i/100,o=f[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(n===0)s=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,h=2*i-c;s=Math.round(255*v(h,c,a+1/3)),l=Math.round(255*v(h,c,a)),u=Math.round(255*v(h,c,a-1/3))}t=[s,l,u,o]}return t},cl=function(e){var t,a=new RegExp("^"+al+"$").exec(e);if(a){t=[];for(var n=[],i=1;i<=3;i++){var o=a[i];if(o[o.length-1]==="%"&&(n[i]=!0),o=parseFloat(o),n[i]&&(o=o/100*255),o<0||o>255)return;t.push(Math.floor(o))}var s=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(s&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;t.push(u)}}return t},dl=function(e){return gl[e.toLowerCase()]},hl=function(e){return(Oe(e)?e:null)||dl(e)||vl(e)||cl(e)||fl(e)},gl={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},as=function(e){for(var t=e.map,a=e.keys,n=a.length,i=0;i=e||x<0||f&&D>=i}function g(){var E=Mn();if(p(E))return m(E);s=setTimeout(g,y(E))}function m(E){return s=void 0,c&&a?h(E):(a=n=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,a=l=n=s=void 0}function w(){return s===void 0?o:m(Mn())}function S(){var E=Mn(),x=p(E);if(a=arguments,n=this,l=E,x){if(s===void 0)return d(l);if(f)return clearTimeout(s),s=setTimeout(g,e),h(l)}return s===void 0&&(s=setTimeout(g,e)),o}return S.cancel=b,S.flush=w,S}var cn=jl,Ln=Ke?Ke.performance:null,ss=Ln&&Ln.now?function(){return Ln.now()}:function(){return Date.now()},ev=function(){if(Ke){if(Ke.requestAnimationFrame)return function(r){Ke.requestAnimationFrame(r)};if(Ke.mozRequestAnimationFrame)return function(r){Ke.mozRequestAnimationFrame(r)};if(Ke.webkitRequestAnimationFrame)return function(r){Ke.webkitRequestAnimationFrame(r)};if(Ke.msRequestAnimationFrame)return function(r){Ke.msRequestAnimationFrame(r)}}return function(r){r&&setTimeout(function(){r(ss())},1e3/60)}}(),ja=function(e){return ev(e)},Hr=ss,kt=9261,us=65599,aa=5381,ls=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kt,a=t,n;n=e.next(),!n.done;)a=a*us+n.value|0;return a},va=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kt;return t*us+e|0},fa=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:aa;return(t<<5)+t+e|0},rv=function(e,t){return e*2097152+t},Yr=function(e){return e[0]*2097152+e[1]},La=function(e,t){return[va(e[0],t[0]),fa(e[1],t[1])]},tv=function(e,t){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n=0;n--)e[n]===t&&e.splice(n,1)},fi=function(e){e.splice(0,e.length)},lv=function(e,t){for(var a=0;a"u"?"undefined":Ue(Set))!==fv?Set:cv,dn=function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!si(e)){$e("An element must have a core reference and parameters set");return}var n=t.group;if(n==null&&(t.data&&t.data.source!=null&&t.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){$e("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?n==="edges":!!t.pannable,active:!1,classes:new Vt,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),t.renderedPosition){var o=t.renderedPosition,s=e.pan(),l=e.zoom();i.position={x:(o.x-s.x)/l,y:(o.y-s.y)/l}}var u=[];Oe(t.classes)?u=t.classes:ce(t.classes)&&(u=t.classes.split(/\s+/));for(var v=0,f=u.length;vm?1:0},v=function(g,m,b,w,S){var E;if(b==null&&(b=0),S==null&&(S=a),b<0)throw new Error("lo must be non-negative");for(w==null&&(w=g.length);bM;0<=M?C++:C--)D.push(C);return D}).apply(this).reverse(),x=[],w=0,S=E.length;wP;0<=P?++D:--D)B.push(o(g,b));return B},y=function(g,m,b,w){var S,E,x;for(w==null&&(w=a),S=g[b];b>m;){if(x=b-1>>1,E=g[x],w(S,E)<0){g[b]=E,b=x;continue}break}return g[b]=S},p=function(g,m,b){var w,S,E,x,D;for(b==null&&(b=a),S=g.length,D=m,E=g[m],w=2*m+1;w0;){var E=m.pop(),x=p(E),D=E.id();if(c[D]=x,x!==1/0)for(var C=E.neighborhood().intersect(d),M=0;M0)for(I.unshift(R);f[G];){var F=f[G];I.unshift(F.edge),I.unshift(F.node),V=F.node,G=V.id()}return s.spawn(I)}}}},pv={kruskal:function(e){e=e||function(b){return 1};for(var t=this.byGroup(),a=t.nodes,n=t.edges,i=a.length,o=new Array(i),s=a,l=function(w){for(var S=0;S0;){if(S(),x++,w===v){for(var D=[],C=i,M=v,P=g[M];D.unshift(C),P!=null&&D.unshift(P),C=p[M],C!=null;)M=C.id(),P=g[M];return{found:!0,distance:f[w],path:this.spawn(D),steps:x}}h[w]=!0;for(var B=b._private.edges,L=0;LP&&(d[M]=P,m[M]=C,b[M]=S),!i){var B=C*v+D;!i&&d[B]>P&&(d[B]=P,m[B]=D,b[B]=S)}}}for(var L=0;L1&&arguments[1]!==void 0?arguments[1]:o,Le=b(se),Ce=[],xe=Le;;){if(xe==null)return t.spawn();var Ae=m(xe),Ee=Ae.edge,Pe=Ae.pred;if(Ce.unshift(xe[0]),xe.same(de)&&Ce.length>0)break;Ee!=null&&Ce.unshift(Ee),xe=Pe}return l.spawn(Ce)},E=0;E=0;v--){var f=u[v],c=f[1],h=f[2];(t[c]===s&&t[h]===l||t[c]===l&&t[h]===s)&&u.splice(v,1)}for(var d=0;dn;){var i=Math.floor(Math.random()*t.length);t=Sv(i,e,t),a--}return t},Tv={kargerStein:function(){var e=this,t=this.byGroup(),a=t.nodes,n=t.edges;n.unmergeBy(function(I){return I.isLoop()});var i=a.length,o=n.length,s=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Cv);if(i<2){$e("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,o=t;o1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(t,a):(a0&&e.splice(0,t));for(var s=0,l=e.length-1;l>=0;l--){var u=e[l];o?isFinite(u)||(e[l]=-1/0,s++):e.splice(l,1)}i&&e.sort(function(c,h){return c-h});var v=e.length,f=Math.floor(v/2);return v%2!==0?e[f+1+s]:(e[f-1+s]+e[f+s])/2},Lv=function(e){return Math.PI*e/180},Aa=function(e,t){return Math.atan2(t,e)-Math.PI/2},ci=Math.log2||function(r){return Math.log(r)/Math.log(2)},ps=function(e){return e>0?1:e<0?-1:0},ht=function(e,t){return Math.sqrt(st(e,t))},st=function(e,t){var a=t.x-e.x,n=t.y-e.y;return a*a+n*n},Av=function(e){for(var t=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Ov=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Iv=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},zv=function(e,t,a){return{x1:e.x1+t,x2:e.x2+t,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},ys=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},Nv=function(e,t,a){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},Ga=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Ka=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,o;if(t.length===1)a=n=i=o=t[0];else if(t.length===2)a=i=t[0],o=n=t[1];else if(t.length===4){var s=Tr(t,4);a=s[0],n=s[1],i=s[2],o=s[3]}return e.x1-=o,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Gi=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},di=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},It=function(e,t,a){return e.x1<=t&&t<=e.x2&&e.y1<=a&&a<=e.y2},Fv=function(e,t){return It(e,t.x,t.y)},ms=function(e,t){return It(e,t.x1,t.y1)&&It(e,t.x2,t.y2)},bs=function(e,t,a,n,i,o,s){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?gt(i,o):l,v=i/2,f=o/2;u=Math.min(u,v,f);var c=u!==v,h=u!==f,d;if(c){var y=a-v+u-s,p=n-f-s,g=a+v-u+s,m=p;if(d=Qr(e,t,a,n,y,p,g,m,!1),d.length>0)return d}if(h){var b=a+v+s,w=n-f+u-s,S=b,E=n+f-u+s;if(d=Qr(e,t,a,n,b,w,S,E,!1),d.length>0)return d}if(c){var x=a-v+u-s,D=n+f+s,C=a+v-u+s,M=D;if(d=Qr(e,t,a,n,x,D,C,M,!1),d.length>0)return d}if(h){var P=a-v-s,B=n-f+u-s,L=P,k=n+f-u+s;if(d=Qr(e,t,a,n,P,B,L,k,!1),d.length>0)return d}var O;{var A=a-v+u,R=n-f+u;if(O=na(e,t,a,n,A,R,u+s),O.length>0&&O[0]<=A&&O[1]<=R)return[O[0],O[1]]}{var I=a+v-u,V=n-f+u;if(O=na(e,t,a,n,I,V,u+s),O.length>0&&O[0]>=I&&O[1]<=V)return[O[0],O[1]]}{var G=a+v-u,F=n+f-u;if(O=na(e,t,a,n,G,F,u+s),O.length>0&&O[0]>=G&&O[1]>=F)return[O[0],O[1]]}{var q=a-v+u,Y=n+f-u;if(O=na(e,t,a,n,q,Y,u+s),O.length>0&&O[0]<=q&&O[1]>=Y)return[O[0],O[1]]}return[]},Vv=function(e,t,a,n,i,o,s){var l=s,u=Math.min(a,i),v=Math.max(a,i),f=Math.min(n,o),c=Math.max(n,o);return u-l<=e&&e<=v+l&&f-l<=t&&t<=c+l},qv=function(e,t,a,n,i,o,s,l,u){var v={x1:Math.min(a,s,i)-u,x2:Math.max(a,s,i)+u,y1:Math.min(n,l,o)-u,y2:Math.max(n,l,o)+u};return!(ev.x2||tv.y2)},$v=function(e,t,a,n){a-=n;var i=t*t-4*e*a;if(i<0)return[];var o=Math.sqrt(i),s=2*e,l=(-t+o)/s,u=(-t-o)/s;return[l,u]},Hv=function(e,t,a,n,i){var o=1e-5;e===0&&(e=o),t/=e,a/=e,n/=e;var s,l,u,v,f,c,h,d;if(l=(3*a-t*t)/9,u=-(27*n)+t*(9*a-2*(t*t)),u/=54,s=l*l*l+u*u,i[1]=0,h=t/3,s>0){f=u+Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),c=u-Math.sqrt(s),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-h+f+c,h+=(f+c)/2,i[4]=i[2]=-h,h=Math.sqrt(3)*(-c+f)/2,i[3]=h,i[5]=-h;return}if(i[5]=i[3]=0,s===0){d=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-h+2*d,i[4]=i[2]=-(d+h);return}l=-l,v=l*l*l,v=Math.acos(u/Math.sqrt(v)),d=2*Math.sqrt(l),i[0]=-h+d*Math.cos(v/3),i[2]=-h+d*Math.cos((v+2*Math.PI)/3),i[4]=-h+d*Math.cos((v+4*Math.PI)/3)},Gv=function(e,t,a,n,i,o,s,l){var u=1*a*a-4*a*i+2*a*s+4*i*i-4*i*s+s*s+n*n-4*n*o+2*n*l+4*o*o-4*o*l+l*l,v=1*9*a*i-3*a*a-3*a*s-6*i*i+3*i*s+9*n*o-3*n*n-3*n*l-6*o*o+3*o*l,f=1*3*a*a-6*a*i+a*s-a*e+2*i*i+2*i*e-s*e+3*n*n-6*n*o+n*l-n*t+2*o*o+2*o*t-l*t,c=1*a*i-a*a+a*e-i*e+n*o-n*n+n*t-o*t,h=[];Hv(u,v,f,c,h);for(var d=1e-7,y=[],p=0;p<6;p+=2)Math.abs(h[p+1])=0&&h[p]<=1&&y.push(h[p]);y.push(1),y.push(0);for(var g=-1,m,b,w,S=0;S=0?wu?(e-i)*(e-i)+(t-o)*(t-o):v-c},dr=function(e,t,a){for(var n,i,o,s,l,u=0,v=0;v=e&&e>=o||n<=e&&e<=o)l=(e-n)/(o-n)*(s-i)+i,l>t&&u++;else continue;return u%2!==0},Gr=function(e,t,a,n,i,o,s,l,u){var v=new Array(a.length),f;l[0]!=null?(f=Math.atan(l[1]/l[0]),l[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=l;for(var c=Math.cos(-f),h=Math.sin(-f),d=0;d0){var p=tn(v,-u);y=rn(p)}else y=v;return dr(e,t,y)},Wv=function(e,t,a,n,i,o,s,l){for(var u=new Array(a.length*2),v=0;v=0&&p<=1&&m.push(p),g>=0&&g<=1&&m.push(g),m.length===0)return[];var b=m[0]*l[0]+e,w=m[0]*l[1]+t;if(m.length>1){if(m[0]==m[1])return[b,w];var S=m[1]*l[0]+e,E=m[1]*l[1]+t;return[b,w,S,E]}else return[b,w]},Rn=function(e,t,a){return t<=e&&e<=a||a<=e&&e<=t?e:e<=t&&t<=a||a<=t&&t<=e?t:a},Qr=function(e,t,a,n,i,o,s,l,u){var v=e-i,f=a-e,c=s-i,h=t-o,d=n-t,y=l-o,p=c*h-y*v,g=f*h-d*v,m=y*f-c*d;if(m!==0){var b=p/m,w=g/m,S=.001,E=0-S,x=1+S;return E<=b&&b<=x&&E<=w&&w<=x?[e+b*f,t+b*d]:u?[e+b*f,t+b*d]:[]}else return p===0||g===0?Rn(e,a,s)===s?[s,l]:Rn(e,a,i)===i?[i,o]:Rn(i,s,a)===a?[a,n]:[]:[]},ha=function(e,t,a,n,i,o,s,l){var u=[],v,f=new Array(a.length),c=!0;o==null&&(c=!1);var h;if(c){for(var d=0;d0){var y=tn(f,-l);h=rn(y)}else h=f}else h=a;for(var p,g,m,b,w=0;w2){for(var d=[v[0],v[1]],y=Math.pow(d[0]-e,2)+Math.pow(d[1]-t,2),p=1;pv&&(v=w)},get:function(b){return u[b]}},c=0;c0?A=O.edgesTo(k)[0]:A=k.edgesTo(O)[0];var R=n(A);k=k.id(),D[k]>D[B]+R&&(D[k]=D[B]+R,C.nodes.indexOf(k)<0?C.push(k):C.updateItem(k),x[k]=0,E[k]=[]),D[k]==D[B]+R&&(x[k]=x[k]+x[B],E[k].push(B))}else for(var I=0;I0;){for(var q=S.pop(),Y=0;Y0&&s.push(a[l]);s.length!==0&&i.push(n.collection(s))}return i},uf=function(e,t){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:ff,s=n,l,u,v=0;v=2?_t(e,t,a,0,Xi,cf):_t(e,t,a,0,Yi)},squaredEuclidean:function(e,t,a){return _t(e,t,a,0,Xi)},manhattan:function(e,t,a){return _t(e,t,a,0,Yi)},max:function(e,t,a){return _t(e,t,a,-1/0,df)}};zt["squared-euclidean"]=zt.squaredEuclidean;zt.squaredeuclidean=zt.squaredEuclidean;function gn(r,e,t,a,n,i){var o;return qe(r)?o=r:o=zt[r]||zt.euclidean,e===0&&qe(r)?o(n,i):o(e,t,a,n,i)}var hf=rr({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),gi=function(e){return hf(e)},an=function(e,t,a,n,i){var o=i!=="kMedoids",s=o?function(f){return a[f]}:function(f){return n[f](a)},l=function(c){return n[c](t)},u=a,v=t;return gn(e,n.length,s,l,u,v)},On=function(e,t,a){for(var n=a.length,i=new Array(n),o=new Array(n),s=new Array(t),l=null,u=0;ua)return!1}return!0},yf=function(e,t,a){for(var n=0;ns&&(s=t[u][v],l=v);i[l].push(e[u])}for(var f=0;f=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var d=t[o],y=t[n[o]],p;i.mode==="dendrogram"?p={left:d,right:y,key:d.key}:p={value:d.value.concat(y.value),key:d.key},e[d.index]=p,e.splice(y.index,1),t[d.key]=p;for(var g=0;ga[y.key][m.key]&&(l=a[y.key][m.key])):i.linkage==="max"?(l=a[d.key][m.key],a[d.key][m.key]0&&n.push(i);return n},eo=function(e,t,a){for(var n=[],i=0;is&&(o=u,s=t[i*e+u])}o>0&&n.push(o)}for(var v=0;vu&&(l=v,u=f)}a[i]=o[l]}return n=eo(e,t,a),n},ro=function(e){for(var t=this.cy(),a=this.nodes(),n=Lf(e),i={},o=0;o=P?(B=P,P=k,L=O):k>B&&(B=k);for(var A=0;A0?1:0;x[C%n.minIterations*s+q]=Y,F+=Y}if(F>0&&(C>=n.minIterations-1||C==n.maxIterations-1)){for(var Q=0,J=0;J1||E>1)&&(s=!0),f[b]=[],m.outgoers().forEach(function(D){D.isEdge()&&f[b].push(D.id())})}else c[b]=[void 0,m.target().id()]}):o.forEach(function(m){var b=m.id();if(m.isNode()){var w=m.degree(!0);w%2&&(l?u?s=!0:u=b:l=b),f[b]=[],m.connectedEdges().forEach(function(S){return f[b].push(S.id())})}else c[b]=[m.source().id(),m.target().id()]});var h={found:!1,trail:void 0};if(s)return h;if(u&&l)if(i){if(v&&u!=v)return h;v=u}else{if(v&&u!=v&&l!=v)return h;v||(v=u)}else v||(v=o[0].id());var d=function(b){for(var w=b,S=[b],E,x,D;f[w].length;)E=f[w].shift(),x=c[E][0],D=c[E][1],w!=D?(f[D]=f[D].filter(function(C){return C!=E}),w=D):!i&&w!=x&&(f[x]=f[x].filter(function(C){return C!=E}),w=x),S.unshift(E),S.unshift(w);return S},y=[],p=[];for(p=d(v);p.length!=1;)f[p[0]].length==0?(y.unshift(o.getElementById(p.shift())),y.unshift(o.getElementById(p.shift()))):p=d(p.shift()).concat(p);y.unshift(o.getElementById(p.shift()));for(var g in f)if(f[g].length)return h;return h.found=!0,h.trail=this.spawn(y,!0),h}},Ia=function(){var e=this,t={},a=0,n=0,i=[],o=[],s={},l=function(c,h){for(var d=o.length-1,y=[],p=e.spawn();o[d].x!=c||o[d].y!=h;)y.push(o.pop().edge),d--;y.push(o.pop().edge),y.forEach(function(g){var m=g.connectedNodes().intersection(e);p.merge(g),m.forEach(function(b){var w=b.id(),S=b.connectedEdges().intersection(e);p.merge(b),t[w].cutVertex?p.merge(S.filter(function(E){return E.isLoop()})):p.merge(S)})}),i.push(p)},u=function f(c,h,d){c===d&&(n+=1),t[h]={id:a,low:a++,cutVertex:!1};var y=e.getElementById(h).connectedEdges().intersection(e);if(y.size()===0)i.push(e.spawn(e.getElementById(h)));else{var p,g,m,b;y.forEach(function(w){p=w.source().id(),g=w.target().id(),m=p===h?g:p,m!==d&&(b=w.id(),s[b]||(s[b]=!0,o.push({x:h,y:m,edge:w})),m in t?t[h].low=Math.min(t[h].low,t[m].id):(f(c,m,h),t[h].low=Math.min(t[h].low,t[m].low),t[h].id<=t[m].low&&(t[h].cutVertex=!0,l(h,m))))})}};e.forEach(function(f){if(f.isNode()){var c=f.id();c in t||(n=0,u(c,c),t[c].cutVertex=n>1)}});var v=Object.keys(t).filter(function(f){return t[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(v),components:i}},Vf={hopcroftTarjanBiconnected:Ia,htbc:Ia,htb:Ia,hopcroftTarjanBiconnectedComponents:Ia},za=function(){var e=this,t={},a=0,n=[],i=[],o=e.spawn(e),s=function l(u){i.push(u),t[u]={index:a,low:a++,explored:!1};var v=e.getElementById(u).connectedEdges().intersection(e);if(v.forEach(function(y){var p=y.target().id();p!==u&&(p in t||l(p),t[p].explored||(t[u].low=Math.min(t[u].low,t[p].low)))}),t[u].index===t[u].low){for(var f=e.spawn();;){var c=i.pop();if(f.merge(e.getElementById(c)),t[c].low=t[u].index,t[c].explored=!0,c===u)break}var h=f.edgesWith(f),d=f.merge(h);n.push(d),o=o.difference(d)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in t||s(u)}}),{cut:o,components:n}},qf={tarjanStronglyConnected:za,tsc:za,tscc:za,tarjanStronglyConnectedComponents:za},Ds={};[ca,gv,pv,mv,wv,Ev,Tv,Qv,Lt,At,Wn,vf,Cf,Bf,zf,Ff,Vf,qf].forEach(function(r){pe(Ds,r)});/*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable diff --git a/static/js/md-dagre-4EVJKHTY-DUkVvCAH.js b/static/js/md-dagre-4EVJKHTY-BRZOG5IN.js similarity index 97% rename from static/js/md-dagre-4EVJKHTY-DUkVvCAH.js rename to static/js/md-dagre-4EVJKHTY-BRZOG5IN.js index 9500cee..0775224 100644 --- a/static/js/md-dagre-4EVJKHTY-DUkVvCAH.js +++ b/static/js/md-dagre-4EVJKHTY-BRZOG5IN.js @@ -1,4 +1,4 @@ -import{_ as X,ar as F,as as Y,at as _,au as H,l as i,d as V,av as z,aw as U,af as $,ak as q,ag as P,ae as K,ax as Q,ay as W,az as Z}from"./md-index-BhYxDPe5.js";import{G as B}from"./md-graph--GW7E-WG.js";import{l as I}from"./md-layout-f1dVBnkM.js";import{i as S}from"./md-_baseUniq-Cjg3wXP1.js";import{c as L}from"./md-clone-CtDbzCPt.js";import{m as A}from"./md-_basePickBy-CdF26LR_.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return S(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),c={v:t};return S(n)||(c.value=n),S(o)||(c.parent=o),c})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return S(t.name)||(o.name=t.name),S(n)||(o.value=n),o})}var f=new Map,b=new Map,J=new Map,te=X(()=>{b.clear(),J.clear(),f.clear()},"clear"),O=X((e,t)=>{const n=b.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=X((e,t)=>{const n=b.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=X((e,t,n,o)=>{i.warn("Copying children of ",e,"root",o,"data",t.node(e),o);const c=t.children(e)||[];e!==o&&c.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach(a=>{if(t.children(a).length>0)G(a,t,n,o);else{const r=t.node(a);i.info("cp ",a," to ",o," with parent ",e),n.setNode(a,r),o!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==o&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",o,"data",t.node(e),o),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==o,"node!==clusterId",a!==e));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(l=>{i.info("Edge",l);const h=t.edge(l.v,l.w,l.name);i.info("Edge data",h,o);try{se(l,o)?(i.info("Copying as ",l.v,l.w,h,l.name),n.setEdge(l.v,l.w,h,l.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",o," clusterId:",e)}catch(C){i.error(C)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),R=X((e,t)=>{const n=t.children(e);let o=[...n];for(const c of n)J.set(c,e),o=[...o,...R(c,t)];return o},"extractDescendants"),ie=X((e,t,n)=>{const o=e.edges().filter(l=>l.v===t||l.w===t),c=e.edges().filter(l=>l.v===n||l.w===n),a=o.map(l=>({v:l.v===t?n:l.v,w:l.w===t?t:l.w})),r=c.map(l=>({v:l.v,w:l.w}));return a.filter(l=>r.some(h=>l.v===h.v&&l.w===h.w))},"findCommonEdges"),D=X((e,t,n)=>{const o=t.children(e);if(i.trace("Searching children of id ",e,o),o.length<1)return e;let c;for(const a of o){const r=D(a,t,n),u=ie(t,n,r);if(r)if(u.length>0)c=r;else return r}return c},"findNonClusterChild"),k=X(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,"getAnchorId"),re=X((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),b.set(n,R(n,e)),f.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const o=e.children(n),c=e.edges();o.length>0?(i.debug("Cluster identified",n,b),c.forEach(a=>{const r=O(a.v,n),u=O(a.w,n);r^u&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",b.get(n)),f.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,b)});for(let n of f.keys()){const o=f.get(n).id,c=e.parent(o);c!==n&&f.has(c)&&!f.get(c).externalConnections&&(f.get(n).id=c)}e.edges().forEach(function(n){const o=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let c=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f.get(n.v)," --- ",f.get(n.w)),f.get(n.v)||f.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),c=k(n.v),a=k(n.w),e.removeEdge(n.v,n.w,n.name),c!==n.v){const r=e.parent(c);f.get(r).externalConnections=!0,o.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);f.get(r).externalConnections=!0,o.toCluster=n.w}i.warn("Fix Replacing with XXX",c,a,n.name),e.setEdge(c,a,o,n.name)}}),i.warn("Adjusted Graph",p(e)),T(e,0),i.trace(f)},"adjustClustersAndEdges"),T=X((e,t)=>{var c,a;if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),o=!1;for(const r of n){const u=e.children(r);o=o||u.length>0}if(!o){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const r of n)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(c=f.get(r))==null?void 0:c.clusterData)!=null&&a.dir&&(l=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,l));const h=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),G(r,e,h,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:h}),i.warn("New graph after copy node: (",r,")",p(h)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const r of n){const u=e.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&T(u.graph,t+1)}},"extractor"),M=X((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(o=>{const c=e.children(o),a=M(e,c);n=[...n,...a]}),n},"sorter"),oe=X(e=>M(e,e.children()),"sortNodesByHierarchy"),j=X(async(e,t,n,o,c,a)=>{i.warn("Graph in recursive render:XAX",p(t),c);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));const l=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),C=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(d){const s=t.node(d);if(c!==void 0){const m=JSON.parse(JSON.stringify(c.clusterData));i.trace(`Setting data for parent cluster XXX +import{_ as X,ar as F,as as Y,at as _,au as H,l as i,d as V,av as z,aw as U,af as $,ak as q,ag as P,ae as K,ax as Q,ay as W,az as Z}from"./md-index-ByjuzIYZ.js";import{G as B}from"./md-graph-C_Pg_EOJ.js";import{l as I}from"./md-layout-B18tK69Y.js";import{i as S}from"./md-_baseUniq-DZXHEAoF.js";import{c as L}from"./md-clone-CEEsdKQ5.js";import{m as A}from"./md-_basePickBy-C4aggLA-.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return S(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),c={v:t};return S(n)||(c.value=n),S(o)||(c.parent=o),c})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return S(t.name)||(o.name=t.name),S(n)||(o.value=n),o})}var f=new Map,b=new Map,J=new Map,te=X(()=>{b.clear(),J.clear(),f.clear()},"clear"),O=X((e,t)=>{const n=b.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=X((e,t)=>{const n=b.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=X((e,t,n,o)=>{i.warn("Copying children of ",e,"root",o,"data",t.node(e),o);const c=t.children(e)||[];e!==o&&c.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach(a=>{if(t.children(a).length>0)G(a,t,n,o);else{const r=t.node(a);i.info("cp ",a," to ",o," with parent ",e),n.setNode(a,r),o!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==o&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",o,"data",t.node(e),o),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==o,"node!==clusterId",a!==e));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(l=>{i.info("Edge",l);const h=t.edge(l.v,l.w,l.name);i.info("Edge data",h,o);try{se(l,o)?(i.info("Copying as ",l.v,l.w,h,l.name),n.setEdge(l.v,l.w,h,l.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",o," clusterId:",e)}catch(C){i.error(C)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),R=X((e,t)=>{const n=t.children(e);let o=[...n];for(const c of n)J.set(c,e),o=[...o,...R(c,t)];return o},"extractDescendants"),ie=X((e,t,n)=>{const o=e.edges().filter(l=>l.v===t||l.w===t),c=e.edges().filter(l=>l.v===n||l.w===n),a=o.map(l=>({v:l.v===t?n:l.v,w:l.w===t?t:l.w})),r=c.map(l=>({v:l.v,w:l.w}));return a.filter(l=>r.some(h=>l.v===h.v&&l.w===h.w))},"findCommonEdges"),D=X((e,t,n)=>{const o=t.children(e);if(i.trace("Searching children of id ",e,o),o.length<1)return e;let c;for(const a of o){const r=D(a,t,n),u=ie(t,n,r);if(r)if(u.length>0)c=r;else return r}return c},"findNonClusterChild"),k=X(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,"getAnchorId"),re=X((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),b.set(n,R(n,e)),f.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const o=e.children(n),c=e.edges();o.length>0?(i.debug("Cluster identified",n,b),c.forEach(a=>{const r=O(a.v,n),u=O(a.w,n);r^u&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",b.get(n)),f.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,b)});for(let n of f.keys()){const o=f.get(n).id,c=e.parent(o);c!==n&&f.has(c)&&!f.get(c).externalConnections&&(f.get(n).id=c)}e.edges().forEach(function(n){const o=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let c=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f.get(n.v)," --- ",f.get(n.w)),f.get(n.v)||f.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),c=k(n.v),a=k(n.w),e.removeEdge(n.v,n.w,n.name),c!==n.v){const r=e.parent(c);f.get(r).externalConnections=!0,o.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);f.get(r).externalConnections=!0,o.toCluster=n.w}i.warn("Fix Replacing with XXX",c,a,n.name),e.setEdge(c,a,o,n.name)}}),i.warn("Adjusted Graph",p(e)),T(e,0),i.trace(f)},"adjustClustersAndEdges"),T=X((e,t)=>{var c,a;if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),o=!1;for(const r of n){const u=e.children(r);o=o||u.length>0}if(!o){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const r of n)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(c=f.get(r))==null?void 0:c.clusterData)!=null&&a.dir&&(l=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,l));const h=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),G(r,e,h,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:h}),i.warn("New graph after copy node: (",r,")",p(h)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const r of n){const u=e.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&T(u.graph,t+1)}},"extractor"),M=X((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(o=>{const c=e.children(o),a=M(e,c);n=[...n,...a]}),n},"sorter"),oe=X(e=>M(e,e.children()),"sortNodesByHierarchy"),j=X(async(e,t,n,o,c,a)=>{i.warn("Graph in recursive render:XAX",p(t),c);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));const l=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),C=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(d){const s=t.node(d);if(c!==void 0){const m=JSON.parse(JSON.stringify(c.clusterData));i.trace(`Setting data for parent cluster XXX Node.id = `,d,` data=`,m.height,` Parent cluster`,c.height),t.setNode(c.id,m),t.parent(d)||(i.trace("Setting parent",d,c.id),t.setParent(d,c.id,m))}if(i.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),s!=null&&s.clusterNode){i.info("Cluster identified XBX",d,s.width,t.node(d));const{ranksep:m,nodesep:v}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:m+25,nodesep:v});const N=await j(g,s.graph,n,o,t.node(d),a),x=N.elem;z(s,x),s.diff=N.diff||0,i.info("New compound node after recursive render XAX",d,"width",s.width,"height",s.height),U(x,s)}else t.children(d).length>0?(i.trace("Cluster - the non recursive path XBX",d,s.id,s,s.width,"Graph:",t),i.trace(D(s.id,t)),f.set(s.id,{id:D(s.id,t),node:s})):(i.trace("Node - the non recursive path XAX",d,g,t.node(d),r),await $(g,t.node(d),{config:a,dir:r}))})),await X(async()=>{const d=t.edges().map(async function(s){const m=t.edge(s.v,s.w,s.name);i.info("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(s)),i.info("Edge "+s.v+" -> "+s.w+": ",s," ",JSON.stringify(t.edge(s))),i.info("Fix",f,"ids:",s.v,s.w,"Translating: ",f.get(s.v),f.get(s.w)),await Z(C,m)});await Promise.all(d)},"processEdges")(),i.info("Graph before layout:",JSON.stringify(p(t))),i.info("############################################# XXX"),i.info("### Layout ### XXX"),i.info("############################################# XXX"),I(t),i.info("Graph after layout:",JSON.stringify(p(t)));let E=0,{subGraphTitleTotalMargin:y}=q(a);return await Promise.all(oe(t).map(async function(d){var m;const s=t.node(d);if(i.info("Position XBX => "+d+": ("+s.x,","+s.y,") width: ",s.width," height: ",s.height),s!=null&&s.clusterNode)s.y+=y,i.info("A tainted cluster node XBX1",d,s.id,s.width,s.height,s.x,s.y,t.parent(d)),f.get(s.id).node=s,P(s);else if(t.children(d).length>0){i.info("A pure cluster node XBX1",d,s.id,s.x,s.y,s.width,s.height,t.parent(d)),s.height+=y,t.node(s.parentId);const v=(s==null?void 0:s.padding)/2||0,N=((m=s==null?void 0:s.labelBBox)==null?void 0:m.height)||0,x=N-v||0;i.debug("OffsetY",x,"labelHeight",N,"halfPadding",v),await K(l,s),f.get(s.id).node=s}else{const v=t.node(s.parentId);s.y+=y/2,i.info("A regular node XBX1 - using the padding",s.id,"parent",s.parentId,s.width,s.height,s.x,s.y,"offsetY",s.offsetY,"parent",v,v==null?void 0:v.offsetY,s),P(s)}})),t.edges().forEach(function(d){const s=t.edge(d);i.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(s),s),s.points.forEach(x=>x.y+=y/2);const m=t.node(d.v);var v=t.node(d.w);const N=Q(h,s,f,n,m,v,o);W(s,N)}),t.nodes().forEach(function(d){const s=t.node(d);i.info(d,s.type,s.diff),s.isGroup&&(E=s.diff)}),i.warn("Returning from recursive render XAX",u,E),{elem:u,diff:E}},"recursiveRender"),ge=X(async(e,t)=>{var a,r,u,l,h,C;const n=new B({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((a=e.config)==null?void 0:a.nodeSpacing)||((u=(r=e.config)==null?void 0:r.flowchart)==null?void 0:u.nodeSpacing)||e.nodeSpacing,ranksep:((l=e.config)==null?void 0:l.rankSpacing)||((C=(h=e.config)==null?void 0:h.flowchart)==null?void 0:C.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),o=t.select("g");F(o,e.markers,e.type,e.diagramId),Y(),_(),H(),te(),e.nodes.forEach(g=>{n.setNode(g.id,{...g}),g.parentId&&n.setParent(g.id,g.parentId)}),i.debug("Edges:",e.edges),e.edges.forEach(g=>{if(g.start===g.end){const w=g.start,E=w+"---"+w+"---1",y=w+"---"+w+"---2",d=n.node(w);n.setNode(E,{domId:E,id:E,parentId:d.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(E,d.parentId),n.setNode(y,{domId:y,id:y,parentId:d.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(y,d.parentId);const s=structuredClone(g),m=structuredClone(g),v=structuredClone(g);s.label="",s.arrowTypeEnd="none",s.id=w+"-cyclic-special-1",m.arrowTypeEnd="none",m.id=w+"-cyclic-special-mid",v.label="",d.isGroup&&(s.fromCluster=w,v.toCluster=w),v.id=w+"-cyclic-special-2",n.setEdge(w,E,s,w+"-cyclic-special-0"),n.setEdge(E,y,m,w+"-cyclic-special-1"),n.setEdge(y,w,v,w+"-cyc{const t=x({...L,...T().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),G=n(()=>m.packet,"getPacket"),I=n(t=>{t.length>0&&m.packet.push(t)},"pushWord"),M=n(()=>{_(),m=structuredClone(C)},"clear"),h={pushWord:I,getPacket:G,getConfig:Y,clear:M,setAccTitle:S,getAccTitle:F,setDiagramTitle:z,getDiagramTitle:P,getAccDescription:W,setAccDescription:D},O=1e4,q=n(t=>{w(t,h);let e=-1,o=[],s=1;const{bitsPerRow:i}=h.getConfig();for(let{start:a,end:r,label:p}of t.blocks){if(r&&r{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*o?[t,void 0]:[{start:t.start,end:e*o-1,label:t.label},{start:e*o,end:t.end,label:t.label}]},"getNextFittingBlock"),K={parse:n(async t=>{const e=await N("packet",t);v.debug(e),q(e)},"parse")},R=n((t,e,o,s)=>{const i=s.db,a=i.getConfig(),{rowHeight:r,paddingY:p,bitWidth:b,bitsPerRow:c}=a,u=i.getPacket(),l=i.getDiagramTitle(),g=r+p,d=g*(u.length+1)-(l?0:r),k=b*c+2,f=A(e);f.attr("viewbox",`0 0 ${k} ${d}`),E(f,d,k,a.useMaxWidth);for(const[$,y]of u.entries())U(f,y,$,a);f.append("text").text(l).attr("x",k/2).attr("y",d-g/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),U=n((t,e,o,{rowHeight:s,paddingX:i,paddingY:a,bitWidth:r,bitsPerRow:p,showBits:b})=>{const c=t.append("g"),u=o*(s+a)+a;for(const l of e){const g=l.start%p*r+1,d=(l.end-l.start+1)*r-i;if(c.append("rect").attr("x",g).attr("y",u).attr("width",d).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",g+d/2).attr("y",u+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(l.label),!b)continue;const k=l.end===l.start,f=u-2;c.append("text").attr("x",g+(k?d/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(l.start),k||c.append("text").attr("x",g+d).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(l.end)}},"drawWord"),X={draw:R},j={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},J=n(({packet:t}={})=>{const e=x(j,t);return` +import{p as w}from"./md-chunk-TMUBEWPD-Dgrus0aV.js";import{B,s as S,g as F,p as z,q as P,b as W,c as D,_ as n,l as v,C as x,D as T,v as _,G as A,k as E}from"./md-index-ByjuzIYZ.js";import{p as N}from"./md-gitGraph-YCYPL57B-Cg_Niwrz.js";import"./md-_baseUniq-DZXHEAoF.js";import"./md-_basePickBy-C4aggLA-.js";import"./md-clone-CEEsdKQ5.js";var C={packet:[]},m=structuredClone(C),L=B.packet,Y=n(()=>{const t=x({...L,...T().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),G=n(()=>m.packet,"getPacket"),I=n(t=>{t.length>0&&m.packet.push(t)},"pushWord"),M=n(()=>{_(),m=structuredClone(C)},"clear"),h={pushWord:I,getPacket:G,getConfig:Y,clear:M,setAccTitle:S,getAccTitle:F,setDiagramTitle:z,getDiagramTitle:P,getAccDescription:W,setAccDescription:D},O=1e4,q=n(t=>{w(t,h);let e=-1,o=[],s=1;const{bitsPerRow:i}=h.getConfig();for(let{start:a,end:r,label:p}of t.blocks){if(r&&r{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*o?[t,void 0]:[{start:t.start,end:e*o-1,label:t.label},{start:e*o,end:t.end,label:t.label}]},"getNextFittingBlock"),K={parse:n(async t=>{const e=await N("packet",t);v.debug(e),q(e)},"parse")},R=n((t,e,o,s)=>{const i=s.db,a=i.getConfig(),{rowHeight:r,paddingY:p,bitWidth:b,bitsPerRow:c}=a,u=i.getPacket(),l=i.getDiagramTitle(),g=r+p,d=g*(u.length+1)-(l?0:r),k=b*c+2,f=A(e);f.attr("viewbox",`0 0 ${k} ${d}`),E(f,d,k,a.useMaxWidth);for(const[$,y]of u.entries())U(f,y,$,a);f.append("text").text(l).attr("x",k/2).attr("y",d-g/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),U=n((t,e,o,{rowHeight:s,paddingX:i,paddingY:a,bitWidth:r,bitsPerRow:p,showBits:b})=>{const c=t.append("g"),u=o*(s+a)+a;for(const l of e){const g=l.start%p*r+1,d=(l.end-l.start+1)*r-i;if(c.append("rect").attr("x",g).attr("y",u).attr("width",d).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",g+d/2).attr("y",u+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(l.label),!b)continue;const k=l.end===l.start,f=u-2;c.append("text").attr("x",g+(k?d/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(l.start),k||c.append("text").attr("x",g+d).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(l.end)}},"drawWord"),X={draw:R},j={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},J=n(({packet:t}={})=>{const e=x(j,t);return` .packetByte { font-size: ${e.byteFontSize}; } diff --git a/static/js/md-erDiagram-6RL3IURR-Bs2oJbnB.js b/static/js/md-erDiagram-6RL3IURR-DG4qFxrV.js similarity index 99% rename from static/js/md-erDiagram-6RL3IURR-Bs2oJbnB.js rename to static/js/md-erDiagram-6RL3IURR-DG4qFxrV.js index d0a6776..4b0dd5b 100644 --- a/static/js/md-erDiagram-6RL3IURR-Bs2oJbnB.js +++ b/static/js/md-erDiagram-6RL3IURR-DG4qFxrV.js @@ -1,4 +1,4 @@ -import{_ as u,d as U,s as kt,g as xt,c as Rt,b as Ot,p as bt,q as Nt,l as X,v as Tt,j as at,u as At,k as Mt,K as vt,Q as St,P as wt}from"./md-index-BhYxDPe5.js";import{G as It}from"./md-graph--GW7E-WG.js";import{l as Dt}from"./md-layout-f1dVBnkM.js";import"./md-_baseUniq-Cjg3wXP1.js";import"./md-_basePickBy-CdF26LR_.js";const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bt(t){return typeof t=="string"&&Lt.test(t)}const v=[];for(let t=0;t<256;++t)v.push((t+256).toString(16).slice(1));function Ct(t,e=0){return v[t[e+0]]+v[t[e+1]]+v[t[e+2]]+v[t[e+3]]+"-"+v[t[e+4]]+v[t[e+5]]+"-"+v[t[e+6]]+v[t[e+7]]+"-"+v[t[e+8]]+v[t[e+9]]+"-"+v[t[e+10]]+v[t[e+11]]+v[t[e+12]]+v[t[e+13]]+v[t[e+14]]+v[t[e+15]]}function Pt(t){if(!Bt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Yt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ht(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=k,k=m,m=it(g,30)>>>0,g=h,h=b}r[0]=r[0]+h>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+x>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const zt=Wt("v5",80,Ht);var nt=function(){var t=u(function(w,i,n,l){for(n=n||{},l=w.length;l--;n[w[l]]=i);return n},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],f=[1,11],c=[1,12],_=[1,13],y=[1,14],o=[1,15],h=[1,21],g=[1,22],m=[1,23],k=[1,24],x=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],O=[1,34],b=[27,28,46,47],Y=[41,42,43,44,45],Z=[17,34],F=[1,54],M=[1,53],S=[17,34,36,38],N={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:u(function(i,n,l,d,E,a,V){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:g,43:m,44:k,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:O},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:O},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:g,43:m,44:k,45:x},t(Y,[2,39]),t(Y,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(Z,[2,23],{32:50,33:51,35:52,37:F,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(Z,[2,24],{33:56,36:[1,57],38:M}),t(Z,[2,25]),t(S,[2,29]),t(Z,[2,32]),t(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:O},t(Z,[2,26]),{35:60,37:F},{17:[1,61]},t(e,[2,13]),t(S,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:u(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:u(function(i){var n=this,l=[0],d=[],E=[null],a=[],V=this.table,s="",j=0,lt=0,_t=2,ct=1,Et=a.slice.call(arguments,1),A=Object.create(this.lexer),H={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(H.yy[$]=this.yy[$]);A.setInput(i,H.yy),H.yy.lexer=A,H.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var tt=A.yylloc;a.push(tt);var gt=A.options&&A.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(D){l.length=l.length-2*D,E.length=E.length-D,a.length=a.length-D}u(mt,"popStack");function ht(){var D;return D=d.pop()||A.lex()||ct,typeof D!="number"&&(D instanceof Array&&(d=D,D=d.pop()),D=n.symbols_[D]||D),D}u(ht,"lex");for(var I,z,B,et,G={},q,W,dt,J;;){if(z=l[l.length-1],this.defaultActions[z]?B=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=ht()),B=V[z]&&V[z][I]),typeof B>"u"||!B.length||!B[0]){var rt="";J=[];for(q in V[z])this.terminals_[q]&&q>_t&&J.push("'"+this.terminals_[q]+"'");A.showPosition?rt="Parse error on line "+(j+1)+`: +import{_ as u,d as U,s as kt,g as xt,c as Rt,b as Ot,p as bt,q as Nt,l as X,v as Tt,j as at,u as At,k as Mt,K as vt,Q as St,P as wt}from"./md-index-ByjuzIYZ.js";import{G as It}from"./md-graph-C_Pg_EOJ.js";import{l as Dt}from"./md-layout-B18tK69Y.js";import"./md-_baseUniq-DZXHEAoF.js";import"./md-_basePickBy-C4aggLA-.js";const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bt(t){return typeof t=="string"&&Lt.test(t)}const v=[];for(let t=0;t<256;++t)v.push((t+256).toString(16).slice(1));function Ct(t,e=0){return v[t[e+0]]+v[t[e+1]]+v[t[e+2]]+v[t[e+3]]+"-"+v[t[e+4]]+v[t[e+5]]+"-"+v[t[e+6]]+v[t[e+7]]+"-"+v[t[e+8]]+v[t[e+9]]+"-"+v[t[e+10]]+v[t[e+11]]+v[t[e+12]]+v[t[e+13]]+v[t[e+14]]+v[t[e+15]]}function Pt(t){if(!Bt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Yt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ht(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=k,k=m,m=it(g,30)>>>0,g=h,h=b}r[0]=r[0]+h>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+x>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const zt=Wt("v5",80,Ht);var nt=function(){var t=u(function(w,i,n,l){for(n=n||{},l=w.length;l--;n[w[l]]=i);return n},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],f=[1,11],c=[1,12],_=[1,13],y=[1,14],o=[1,15],h=[1,21],g=[1,22],m=[1,23],k=[1,24],x=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],O=[1,34],b=[27,28,46,47],Y=[41,42,43,44,45],Z=[17,34],F=[1,54],M=[1,53],S=[17,34,36,38],N={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:u(function(i,n,l,d,E,a,V){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:g,43:m,44:k,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:O},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:O},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:g,43:m,44:k,45:x},t(Y,[2,39]),t(Y,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(Z,[2,23],{32:50,33:51,35:52,37:F,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(Z,[2,24],{33:56,36:[1,57],38:M}),t(Z,[2,25]),t(S,[2,29]),t(Z,[2,32]),t(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:O},t(Z,[2,26]),{35:60,37:F},{17:[1,61]},t(e,[2,13]),t(S,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:u(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:u(function(i){var n=this,l=[0],d=[],E=[null],a=[],V=this.table,s="",j=0,lt=0,_t=2,ct=1,Et=a.slice.call(arguments,1),A=Object.create(this.lexer),H={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(H.yy[$]=this.yy[$]);A.setInput(i,H.yy),H.yy.lexer=A,H.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var tt=A.yylloc;a.push(tt);var gt=A.options&&A.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(D){l.length=l.length-2*D,E.length=E.length-D,a.length=a.length-D}u(mt,"popStack");function ht(){var D;return D=d.pop()||A.lex()||ct,typeof D!="number"&&(D instanceof Array&&(d=D,D=d.pop()),D=n.symbols_[D]||D),D}u(ht,"lex");for(var I,z,B,et,G={},q,W,dt,J;;){if(z=l[l.length-1],this.defaultActions[z]?B=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=ht()),B=V[z]&&V[z][I]),typeof B>"u"||!B.length||!B[0]){var rt="";J=[];for(q in V[z])this.terminals_[q]&&q>_t&&J.push("'"+this.terminals_[q]+"'");A.showPosition?rt="Parse error on line "+(j+1)+`: `+A.showPosition()+` Expecting `+J.join(", ")+", got '"+(this.terminals_[I]||I)+"'":rt="Parse error on line "+(j+1)+": Unexpected "+(I==ct?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(rt,{text:A.match,token:this.terminals_[I]||I,line:A.yylineno,loc:tt,expected:J})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(B[0]){case 1:l.push(I),E.push(A.yytext),a.push(A.yylloc),l.push(B[1]),I=null,lt=A.yyleng,s=A.yytext,j=A.yylineno,tt=A.yylloc;break;case 2:if(W=this.productions_[B[1]][1],G.$=E[E.length-W],G._$={first_line:a[a.length-(W||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(W||1)].first_column,last_column:a[a.length-1].last_column},gt&&(G._$.range=[a[a.length-(W||1)].range[0],a[a.length-1].range[1]]),et=this.performAction.apply(G,[s,lt,j,H.yy,B[1],E,a].concat(Et)),typeof et<"u")return et;W&&(l=l.slice(0,-1*W*2),E=E.slice(0,-1*W),a=a.slice(0,-1*W)),l.push(this.productions_[B[1]][0]),E.push(G.$),a.push(G._$),dt=V[l[l.length-2]][l[l.length-1]],l.push(dt);break;case 3:return!0}}return!0},"parse")},T=function(){var w={EOF:1,parseError:u(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:u(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:u(function(i){var n=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(i){this.unput(this.match.slice(i))},"less"),pastInput:u(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/static/js/md-flowDiagram-7ASYPVHJ-BKQXY_02.js b/static/js/md-flowDiagram-7ASYPVHJ-DPqu6Hql.js similarity index 99% rename from static/js/md-flowDiagram-7ASYPVHJ-BKQXY_02.js rename to static/js/md-flowDiagram-7ASYPVHJ-DPqu6Hql.js index 869b95e..4d2422c 100644 --- a/static/js/md-flowDiagram-7ASYPVHJ-BKQXY_02.js +++ b/static/js/md-flowDiagram-7ASYPVHJ-DPqu6Hql.js @@ -1,4 +1,4 @@ -import{g as gt,s as At}from"./md-chunk-5HRBRIJM-CkTnwvT0.js";import{d as U1,_ as l,n as Ze,o as bt,s as kt,g as mt,b as Et,c as St,p as Dt,q as xt,r as Ct,J as Tt,t as yt,l as e1,u as ge,v as Ft,x as vt,j as C1,y as _t,z as Bt,e as Vt,A as Lt}from"./md-index-BhYxDPe5.js";import{c as wt}from"./md-channel-CU0QIpSQ.js";var It="flowchart-",$e=0,M1=U1(),b1=new Map,K=[],K1=new Map,p1=[],Ae=new Map,be=new Map,ee=0,pe=!0,J,se,re=[],ie=l(e=>Vt.sanitizeText(e,M1),"sanitizeText"),ae=l(function(e){for(const r of b1.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Rt=l(function(e,r,i,a,u,d,g={},D){var v,z;if(!e||e.trim().length===0)return;let c,o=b1.get(e);if(o===void 0&&(o={id:e,labelType:"text",domId:It+e+"-"+$e,styles:[],classes:[]},b1.set(e,o)),$e++,r!==void 0?(M1=U1(),c=ie(r.text.trim()),o.labelType=r.type,c.startsWith('"')&&c.endsWith('"')&&(c=c.substring(1,c.length-1)),o.text=c):o.text===void 0&&(o.text=e),i!==void 0&&(o.type=i),a!=null&&a.forEach(function(_){o.styles.push(_)}),u!=null&&u.forEach(function(_){o.classes.push(_)}),d!==void 0&&(o.dir=d),o.props===void 0?o.props=g:g!==void 0&&Object.assign(o.props,g),D!==void 0){let _;D.includes(` +import{g as gt,s as At}from"./md-chunk-5HRBRIJM-nr27TBxG.js";import{d as U1,_ as l,n as Ze,o as bt,s as kt,g as mt,b as Et,c as St,p as Dt,q as xt,r as Ct,J as Tt,t as yt,l as e1,u as ge,v as Ft,x as vt,j as C1,y as _t,z as Bt,e as Vt,A as Lt}from"./md-index-ByjuzIYZ.js";import{c as wt}from"./md-channel-BSQ4jenh.js";var It="flowchart-",$e=0,M1=U1(),b1=new Map,K=[],K1=new Map,p1=[],Ae=new Map,be=new Map,ee=0,pe=!0,J,se,re=[],ie=l(e=>Vt.sanitizeText(e,M1),"sanitizeText"),ae=l(function(e){for(const r of b1.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Rt=l(function(e,r,i,a,u,d,g={},D){var v,z;if(!e||e.trim().length===0)return;let c,o=b1.get(e);if(o===void 0&&(o={id:e,labelType:"text",domId:It+e+"-"+$e,styles:[],classes:[]},b1.set(e,o)),$e++,r!==void 0?(M1=U1(),c=ie(r.text.trim()),o.labelType=r.type,c.startsWith('"')&&c.endsWith('"')&&(c=c.substring(1,c.length-1)),o.text=c):o.text===void 0&&(o.text=e),i!==void 0&&(o.type=i),a!=null&&a.forEach(function(_){o.styles.push(_)}),u!=null&&u.forEach(function(_){o.classes.push(_)}),d!==void 0&&(o.dir=d),o.props===void 0?o.props=g:g!==void 0&&Object.assign(o.props,g),D!==void 0){let _;D.includes(` `)?_=D+` `:_=`{ `+D+` diff --git a/static/js/md-ganttDiagram-NTVNEXSI-BcdsUGFC.js b/static/js/md-ganttDiagram-NTVNEXSI-By8qXEDY.js similarity index 99% rename from static/js/md-ganttDiagram-NTVNEXSI-BcdsUGFC.js rename to static/js/md-ganttDiagram-NTVNEXSI-By8qXEDY.js index d29c3d6..88e1000 100644 --- a/static/js/md-ganttDiagram-NTVNEXSI-BcdsUGFC.js +++ b/static/js/md-ganttDiagram-NTVNEXSI-By8qXEDY.js @@ -1,4 +1,4 @@ -import{aV as Je,aW as $e,aX as Ke,aY as tn,aZ as Fn,a_ as re,a$ as En,aH as Te,aI as be,_ as h,b0 as at,d as _t,s as Ln,g as An,p as In,q as Wn,c as On,b as Hn,v as Nn,m as Vn,l as Qt,j as Zt,k as zn,e as Pn,u as Rn}from"./md-index-BhYxDPe5.js";import{b as Bn,t as Ie,c as Zn,a as qn,l as Xn}from"./md-linear-Co0c8OqW.js";import{i as Gn}from"./md-init-Gi6I4Gst.js";function jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n=a)&&(n=a)}return n}function Qn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Jn(t){return t}var Xt=1,ae=2,me=3,qt=4,We=1e-6;function $n(t){return"translate("+t+",0)"}function Kn(t){return"translate(0,"+t+")"}function tr(t){return e=>+t(e)}function er(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function nr(){return!this.__axis}function en(t,e){var n=[],r=null,a=null,i=6,s=6,k=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,T=t===Xt||t===qt?-1:1,g=t===qt||t===ae?"x":"y",F=t===Xt||t===me?$n:Kn;function D(b){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),O=a??(e.tickFormat?e.tickFormat.apply(e,n):Jn),C=Math.max(i,0)+k,I=e.range(),V=+I[0]+M,W=+I[I.length-1]+M,Z=(e.bandwidth?er:tr)(e.copy(),M),Q=b.selection?b.selection():b,w=Q.selectAll(".domain").data([null]),H=Q.selectAll(".tick").data(X,e).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),_=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),_=_.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",T*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,T*C).attr("dy",t===Xt?"0em":t===me?"0.71em":"0.32em")),b!==Q&&(w=w.transition(b),H=H.transition(b),_=_.transition(b),S=S.transition(b),x=x.transition(b).attr("opacity",We).attr("transform",function(p){return isFinite(p=Z(p))?F(p+M):this.getAttribute("transform")}),Y.attr("opacity",We).attr("transform",function(p){var U=this.parentNode.__axis;return F((U&&isFinite(U=U(p))?U:Z(p))+M)})),x.remove(),w.attr("d",t===qt||t===ae?s?"M"+T*s+","+V+"H"+M+"V"+W+"H"+T*s:"M"+M+","+V+"V"+W:s?"M"+V+","+T*s+"V"+M+"H"+W+"V"+T*s:"M"+V+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(p){return F(Z(p)+M)}),_.attr(g+"2",T*i),S.attr(g,T*C).text(O),Q.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ae?"start":t===qt?"end":"middle"),Q.each(function(){this.__axis=Z})}return D.scale=function(b){return arguments.length?(e=b,D):e},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),D):n.slice()},D.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),D):r&&r.slice()},D.tickFormat=function(b){return arguments.length?(a=b,D):a},D.tickSize=function(b){return arguments.length?(i=s=+b,D):i},D.tickSizeInner=function(b){return arguments.length?(i=+b,D):i},D.tickSizeOuter=function(b){return arguments.length?(s=+b,D):s},D.tickPadding=function(b){return arguments.length?(k=+b,D):k},D.offset=function(b){return arguments.length?(M=+b,D):M},D}function rr(t){return en(Xt,t)}function ar(t){return en(me,t)}const ir=Math.PI/180,sr=180/Math.PI,Jt=18,nn=.96422,rn=1,an=.82521,sn=4/29,St=6/29,on=3*St*St,or=St*St*St;function cn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return ln(t);t instanceof Ke||(t=Fn(t));var e=ce(t.r),n=ce(t.g),r=ce(t.b),a=ie((.2225045*e+.7168786*n+.0606169*r)/rn),i,s;return e===n&&n===r?i=s=a:(i=ie((.4360747*e+.3850649*n+.1430804*r)/nn),s=ie((.0139322*e+.0971045*n+.7141733*r)/an)),new ft(116*a-16,500*(i-a),200*(a-s),t.opacity)}function cr(t,e,n,r){return arguments.length===1?cn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Je(ft,cr,$e(tn,{brighter(t){return new ft(this.l+Jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-Jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=nn*se(e),t=rn*se(t),n=an*se(n),new Ke(oe(3.1338561*e-1.6168667*t-.4906146*n),oe(-.9787684*e+1.9161415*t+.033454*n),oe(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ie(t){return t>or?Math.pow(t,1/3):t/on+sn}function se(t){return t>St?t*t*t:on*(t-sn)}function oe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ce(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function lr(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=cn(t)),t.a===0&&t.b===0)return new dt(NaN,0(t(i=new Date(+i)),i),a.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),a.round=i=>{const s=a(i),k=a.ceil(i);return i-s(e(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,k)=>{const M=[];if(i=a.ceil(i),k=k==null?1:Math.floor(k),!(i0))return M;let T;do M.push(T=new Date(+i)),e(i,k),t(i);while(Tet(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,k)=>{if(s>=s)if(k<0)for(;++k<=0;)for(;e(s,-1),!i(s););else for(;--k>=0;)for(;e(s,1),!i(s););}),n&&(a.count=(i,s)=>(le.setTime(+i),ue.setTime(+s),t(le),t(ue),Math.floor(n(le,ue))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Ut=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,xe=yt*7,Oe=yt*30,fe=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Wt.range;const dr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());dr.range;const Ot=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const mr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());mr.range;const Tt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);Tt.range;const we=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);we.range;const gr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));gr.range;function wt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/xe)}const Vt=wt(0),Ht=wt(1),un=wt(2),fn=wt(3),bt=wt(4),hn=wt(5),dn=wt(6);Vt.range;Ht.range;un.range;fn.range;bt.range;hn.range;dn.range;function Dt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/xe)}const mn=Dt(0),$t=Dt(1),yr=Dt(2),kr=Dt(3),Ft=Dt(4),pr=Dt(5),vr=Dt(6);mn.range;$t.range;yr.range;kr.range;Ft.range;pr.range;vr.range;const Nt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const Tr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Tr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const xt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function br(t,e,n,r,a,i){const s=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[i,1,ct],[i,5,5*ct],[i,15,15*ct],[i,30,30*ct],[a,1,gt],[a,3,3*gt],[a,6,6*gt],[a,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,xe],[e,1,Oe],[e,3,3*Oe],[t,1,fe]];function k(T,g,F){const D=gC).right(s,D);if(b===s.length)return t.every(Ie(T/fe,g/fe,F));if(b===0)return Ut.every(Math.max(Ie(T,g,F),1));const[X,O]=s[D/s[b-1][2]53)return null;"w"in u||(u.w=1),"Z"in u?(L=de(Lt(u.y,0,1)),j=L.getUTCDay(),L=j>4||j===0?$t.ceil(L):$t(L),L=we.offset(L,(u.V-1)*7),u.y=L.getUTCFullYear(),u.m=L.getUTCMonth(),u.d=L.getUTCDate()+(u.w+6)%7):(L=he(Lt(u.y,0,1)),j=L.getDay(),L=j>4||j===0?Ht.ceil(L):Ht(L),L=Tt.offset(L,(u.V-1)*7),u.y=L.getFullYear(),u.m=L.getMonth(),u.d=L.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),j="Z"in u?de(Lt(u.y,0,1)).getUTCDay():he(Lt(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(j+5)%7:u.w+u.U*7-(j+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,de(u)):he(u)}}function x(v,A,N,u){for(var $=0,L=A.length,j=N.length,q,rt;$=j)return-1;if(q=A.charCodeAt($++),q===37){if(q=A.charAt($++),rt=Q[q in He?A.charAt($++):q],!rt||(u=rt(v,N,u))<0)return-1}else if(q!=N.charCodeAt(u++))return-1}return u}function Y(v,A,N){var u=T.exec(A.slice(N));return u?(v.p=g.get(u[0].toLowerCase()),N+u[0].length):-1}function _(v,A,N){var u=b.exec(A.slice(N));return u?(v.w=X.get(u[0].toLowerCase()),N+u[0].length):-1}function S(v,A,N){var u=F.exec(A.slice(N));return u?(v.w=D.get(u[0].toLowerCase()),N+u[0].length):-1}function p(v,A,N){var u=I.exec(A.slice(N));return u?(v.m=V.get(u[0].toLowerCase()),N+u[0].length):-1}function U(v,A,N){var u=O.exec(A.slice(N));return u?(v.m=C.get(u[0].toLowerCase()),N+u[0].length):-1}function l(v,A,N){return x(v,e,A,N)}function f(v,A,N){return x(v,n,A,N)}function y(v,A,N){return x(v,r,A,N)}function m(v){return s[v.getDay()]}function E(v){return i[v.getDay()]}function c(v){return M[v.getMonth()]}function d(v){return k[v.getMonth()]}function o(v){return a[+(v.getHours()>=12)]}function P(v){return 1+~~(v.getMonth()/3)}function z(v){return s[v.getUTCDay()]}function R(v){return i[v.getUTCDay()]}function K(v){return M[v.getUTCMonth()]}function G(v){return k[v.getUTCMonth()]}function J(v){return a[+(v.getUTCHours()>=12)]}function it(v){return 1+~~(v.getUTCMonth()/3)}return{format:function(v){var A=w(v+="",W);return A.toString=function(){return v},A},parse:function(v){var A=H(v+="",!1);return A.toString=function(){return v},A},utcFormat:function(v){var A=w(v+="",Z);return A.toString=function(){return v},A},utcParse:function(v){var A=H(v+="",!0);return A.toString=function(){return v},A}}}var He={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Cr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function B(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i[e.toLowerCase(),n]))}function Sr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ne(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(t,e,n){var r=Cr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Pr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Re(t,e){return B(t.getDate(),e,2)}function Br(t,e){return B(t.getHours(),e,2)}function Zr(t,e){return B(t.getHours()%12||12,e,2)}function qr(t,e){return B(1+Tt.count(kt(t),t),e,3)}function gn(t,e){return B(t.getMilliseconds(),e,3)}function Xr(t,e){return gn(t,e)+"000"}function Gr(t,e){return B(t.getMonth()+1,e,2)}function jr(t,e){return B(t.getMinutes(),e,2)}function Qr(t,e){return B(t.getSeconds(),e,2)}function Jr(t){var e=t.getDay();return e===0?7:e}function $r(t,e){return B(Vt.count(kt(t)-1,t),e,2)}function yn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function Kr(t,e){return t=yn(t),B(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ta(t){return t.getDay()}function ea(t,e){return B(Ht.count(kt(t)-1,t),e,2)}function na(t,e){return B(t.getFullYear()%100,e,2)}function ra(t,e){return t=yn(t),B(t.getFullYear()%100,e,2)}function aa(t,e){return B(t.getFullYear()%1e4,e,4)}function ia(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),B(t.getFullYear()%1e4,e,4)}function sa(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+B(e/60|0,"0",2)+B(e%60,"0",2)}function Be(t,e){return B(t.getUTCDate(),e,2)}function oa(t,e){return B(t.getUTCHours(),e,2)}function ca(t,e){return B(t.getUTCHours()%12||12,e,2)}function la(t,e){return B(1+we.count(xt(t),t),e,3)}function kn(t,e){return B(t.getUTCMilliseconds(),e,3)}function ua(t,e){return kn(t,e)+"000"}function fa(t,e){return B(t.getUTCMonth()+1,e,2)}function ha(t,e){return B(t.getUTCMinutes(),e,2)}function da(t,e){return B(t.getUTCSeconds(),e,2)}function ma(t){var e=t.getUTCDay();return e===0?7:e}function ga(t,e){return B(mn.count(xt(t)-1,t),e,2)}function pn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function ya(t,e){return t=pn(t),B(Ft.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function ka(t){return t.getUTCDay()}function pa(t,e){return B($t.count(xt(t)-1,t),e,2)}function va(t,e){return B(t.getUTCFullYear()%100,e,2)}function Ta(t,e){return t=pn(t),B(t.getUTCFullYear()%100,e,2)}function ba(t,e){return B(t.getUTCFullYear()%1e4,e,4)}function xa(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),B(t.getUTCFullYear()%1e4,e,4)}function wa(){return"+0000"}function Ze(){return"%"}function qe(t){return+t}function Xe(t){return Math.floor(+t/1e3)}var Mt,Kt;Da({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Da(t){return Mt=Dr(t),Kt=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function Ca(t){return new Date(t)}function Ma(t){return t instanceof Date?+t:+new Date(+t)}function vn(t,e,n,r,a,i,s,k,M,T){var g=Zn(),F=g.invert,D=g.domain,b=T(".%L"),X=T(":%S"),O=T("%I:%M"),C=T("%I %p"),I=T("%a %d"),V=T("%b %d"),W=T("%B"),Z=T("%Y");function Q(w){return(M(w)4&&(b+=7),D.add(b,n));return X.diff(O,"week")+1},k.isoWeekday=function(T){return this.$utils().u(T)?this.day()||7:this.day(this.day()%7?T:T-7)};var M=k.startOf;k.startOf=function(T,g){var F=this.$utils(),D=!!F.u(g)||g;return F.p(T)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(T,g)}}})})(Tn);var Sa=Tn.exports;const Ya=be(Sa);var bn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Te,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,s=/\d\d?/,k=/\d*[^-_:/,()\s\d]+/,M={},T=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var V=I.match(/([+-]|\d\d)/g),W=60*V[1]+(+V[2]||0);return W===0?0:V[0]==="+"?-W:W}(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},b=function(C,I){var V,W=M.meridiem;if(W){for(var Z=1;Z<=24;Z+=1)if(C.indexOf(W(Z,0,I))>-1){V=Z>12;break}}else V=C===(I?"pm":"PM");return V},X={A:[k,function(C){this.afternoon=b(C,!1)}],a:[k,function(C){this.afternoon=b(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[k,function(C){var I=M.ordinal,V=C.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[k,function(C){var I=D("months"),V=(D("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(C)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[k,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=T(C)}],YYYY:[/\d{4}/,g("year")],Z:F,ZZ:F};function O(C){var I,V;I=C,V=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,S,p){var U=p&&p.toUpperCase();return S||V[p]||n[p]||V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,f,y){return f||y.slice(1)})})).match(r),Z=W.length,Q=0;Q-1)return new Date((E==="X"?1e3:1)*m);var o=O(E)(m),P=o.year,z=o.month,R=o.day,K=o.hours,G=o.minutes,J=o.seconds,it=o.milliseconds,v=o.zone,A=o.week,N=new Date,u=R||(P||z?1:N.getDate()),$=P||N.getFullYear(),L=0;P&&!z||(L=z>0?z-1:N.getMonth());var j,q=K||0,rt=G||0,st=J||0,pt=it||0;return v?new Date(Date.UTC($,L,u,q,rt,st,pt+60*v.offset*1e3)):c?new Date(Date.UTC($,L,u,q,rt,st,pt)):(j=new Date($,L,u,q,rt,st,pt),A&&(j=d(j).week(A).toDate()),j)}catch{return new Date("")}}(w,Y,H,V),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),p&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var l=Y.length,f=1;f<=l;f+=1){x[1]=Y[f-1];var y=V.apply(this,x);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}f===l&&(this.$d=new Date(""))}else Z.call(this,Q)}}})})(bn);var Ua=bn.exports;const Fa=be(Ua);var xn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Te,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(s){var k=this,M=this.$locale();if(!this.isValid())return i.bind(this)(s);var T=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return M.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return M.ordinal(k.week(),"W");case"w":case"ww":return T.s(k.week(),F==="w"?1:2,"0");case"W":case"WW":return T.s(k.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return T.s(String(k.$H===0?24:k.$H),F==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return F}});return i.bind(this)(g)}}})})(xn);var Ea=xn.exports;const La=be(Ea);var ye=function(){var t=h(function(U,l,f,y){for(f=f||{},y=U.length;y--;f[U[y]]=l);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],s=[1,30],k=[1,31],M=[1,32],T=[1,33],g=[1,34],F=[1,9],D=[1,10],b=[1,11],X=[1,12],O=[1,13],C=[1,14],I=[1,15],V=[1,16],W=[1,19],Z=[1,20],Q=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],_={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:h(function(l,f,y,m,E,c,d){var o=c.length-1;switch(E){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:T,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:T,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:h(function(l,f){if(f.recoverable)this.trace(l);else{var y=new Error(l);throw y.hash=f,y}},"parseError"),parse:h(function(l){var f=this,y=[0],m=[],E=[null],c=[],d=this.table,o="",P=0,z=0,R=2,K=1,G=c.slice.call(arguments,1),J=Object.create(this.lexer),it={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(it.yy[v]=this.yy[v]);J.setInput(l,it.yy),it.yy.lexer=J,it.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var A=J.yylloc;c.push(A);var N=J.options&&J.options.ranges;typeof it.yy.parseError=="function"?this.parseError=it.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function u(ot){y.length=y.length-2*ot,E.length=E.length-ot,c.length=c.length-ot}h(u,"popStack");function $(){var ot;return ot=m.pop()||J.lex()||K,typeof ot!="number"&&(ot instanceof Array&&(m=ot,ot=m.pop()),ot=f.symbols_[ot]||ot),ot}h($,"lex");for(var L,j,q,rt,st={},pt,lt,Ae,Bt;;){if(j=y[y.length-1],this.defaultActions[j]?q=this.defaultActions[j]:((L===null||typeof L>"u")&&(L=$()),q=d[j]&&d[j][L]),typeof q>"u"||!q.length||!q[0]){var ne="";Bt=[];for(pt in d[j])this.terminals_[pt]&&pt>R&&Bt.push("'"+this.terminals_[pt]+"'");J.showPosition?ne="Parse error on line "+(P+1)+`: +import{aV as Je,aW as $e,aX as Ke,aY as tn,aZ as Fn,a_ as re,a$ as En,aH as Te,aI as be,_ as h,b0 as at,d as _t,s as Ln,g as An,p as In,q as Wn,c as On,b as Hn,v as Nn,m as Vn,l as Qt,j as Zt,k as zn,e as Pn,u as Rn}from"./md-index-ByjuzIYZ.js";import{b as Bn,t as Ie,c as Zn,a as qn,l as Xn}from"./md-linear-D0BfzCsi.js";import{i as Gn}from"./md-init-Gi6I4Gst.js";function jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n=a)&&(n=a)}return n}function Qn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Jn(t){return t}var Xt=1,ae=2,me=3,qt=4,We=1e-6;function $n(t){return"translate("+t+",0)"}function Kn(t){return"translate(0,"+t+")"}function tr(t){return e=>+t(e)}function er(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function nr(){return!this.__axis}function en(t,e){var n=[],r=null,a=null,i=6,s=6,k=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,T=t===Xt||t===qt?-1:1,g=t===qt||t===ae?"x":"y",F=t===Xt||t===me?$n:Kn;function D(b){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),O=a??(e.tickFormat?e.tickFormat.apply(e,n):Jn),C=Math.max(i,0)+k,I=e.range(),V=+I[0]+M,W=+I[I.length-1]+M,Z=(e.bandwidth?er:tr)(e.copy(),M),Q=b.selection?b.selection():b,w=Q.selectAll(".domain").data([null]),H=Q.selectAll(".tick").data(X,e).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),_=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),_=_.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",T*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,T*C).attr("dy",t===Xt?"0em":t===me?"0.71em":"0.32em")),b!==Q&&(w=w.transition(b),H=H.transition(b),_=_.transition(b),S=S.transition(b),x=x.transition(b).attr("opacity",We).attr("transform",function(p){return isFinite(p=Z(p))?F(p+M):this.getAttribute("transform")}),Y.attr("opacity",We).attr("transform",function(p){var U=this.parentNode.__axis;return F((U&&isFinite(U=U(p))?U:Z(p))+M)})),x.remove(),w.attr("d",t===qt||t===ae?s?"M"+T*s+","+V+"H"+M+"V"+W+"H"+T*s:"M"+M+","+V+"V"+W:s?"M"+V+","+T*s+"V"+M+"H"+W+"V"+T*s:"M"+V+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(p){return F(Z(p)+M)}),_.attr(g+"2",T*i),S.attr(g,T*C).text(O),Q.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ae?"start":t===qt?"end":"middle"),Q.each(function(){this.__axis=Z})}return D.scale=function(b){return arguments.length?(e=b,D):e},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),D):n.slice()},D.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),D):r&&r.slice()},D.tickFormat=function(b){return arguments.length?(a=b,D):a},D.tickSize=function(b){return arguments.length?(i=s=+b,D):i},D.tickSizeInner=function(b){return arguments.length?(i=+b,D):i},D.tickSizeOuter=function(b){return arguments.length?(s=+b,D):s},D.tickPadding=function(b){return arguments.length?(k=+b,D):k},D.offset=function(b){return arguments.length?(M=+b,D):M},D}function rr(t){return en(Xt,t)}function ar(t){return en(me,t)}const ir=Math.PI/180,sr=180/Math.PI,Jt=18,nn=.96422,rn=1,an=.82521,sn=4/29,St=6/29,on=3*St*St,or=St*St*St;function cn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return ln(t);t instanceof Ke||(t=Fn(t));var e=ce(t.r),n=ce(t.g),r=ce(t.b),a=ie((.2225045*e+.7168786*n+.0606169*r)/rn),i,s;return e===n&&n===r?i=s=a:(i=ie((.4360747*e+.3850649*n+.1430804*r)/nn),s=ie((.0139322*e+.0971045*n+.7141733*r)/an)),new ft(116*a-16,500*(i-a),200*(a-s),t.opacity)}function cr(t,e,n,r){return arguments.length===1?cn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Je(ft,cr,$e(tn,{brighter(t){return new ft(this.l+Jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-Jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=nn*se(e),t=rn*se(t),n=an*se(n),new Ke(oe(3.1338561*e-1.6168667*t-.4906146*n),oe(-.9787684*e+1.9161415*t+.033454*n),oe(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ie(t){return t>or?Math.pow(t,1/3):t/on+sn}function se(t){return t>St?t*t*t:on*(t-sn)}function oe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ce(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function lr(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=cn(t)),t.a===0&&t.b===0)return new dt(NaN,0(t(i=new Date(+i)),i),a.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),a.round=i=>{const s=a(i),k=a.ceil(i);return i-s(e(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,k)=>{const M=[];if(i=a.ceil(i),k=k==null?1:Math.floor(k),!(i0))return M;let T;do M.push(T=new Date(+i)),e(i,k),t(i);while(Tet(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,k)=>{if(s>=s)if(k<0)for(;++k<=0;)for(;e(s,-1),!i(s););else for(;--k>=0;)for(;e(s,1),!i(s););}),n&&(a.count=(i,s)=>(le.setTime(+i),ue.setTime(+s),t(le),t(ue),Math.floor(n(le,ue))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Ut=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,xe=yt*7,Oe=yt*30,fe=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Wt.range;const dr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());dr.range;const Ot=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const mr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());mr.range;const Tt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);Tt.range;const we=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);we.range;const gr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));gr.range;function wt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/xe)}const Vt=wt(0),Ht=wt(1),un=wt(2),fn=wt(3),bt=wt(4),hn=wt(5),dn=wt(6);Vt.range;Ht.range;un.range;fn.range;bt.range;hn.range;dn.range;function Dt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/xe)}const mn=Dt(0),$t=Dt(1),yr=Dt(2),kr=Dt(3),Ft=Dt(4),pr=Dt(5),vr=Dt(6);mn.range;$t.range;yr.range;kr.range;Ft.range;pr.range;vr.range;const Nt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const Tr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Tr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const xt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function br(t,e,n,r,a,i){const s=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[i,1,ct],[i,5,5*ct],[i,15,15*ct],[i,30,30*ct],[a,1,gt],[a,3,3*gt],[a,6,6*gt],[a,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,xe],[e,1,Oe],[e,3,3*Oe],[t,1,fe]];function k(T,g,F){const D=gC).right(s,D);if(b===s.length)return t.every(Ie(T/fe,g/fe,F));if(b===0)return Ut.every(Math.max(Ie(T,g,F),1));const[X,O]=s[D/s[b-1][2]53)return null;"w"in u||(u.w=1),"Z"in u?(L=de(Lt(u.y,0,1)),j=L.getUTCDay(),L=j>4||j===0?$t.ceil(L):$t(L),L=we.offset(L,(u.V-1)*7),u.y=L.getUTCFullYear(),u.m=L.getUTCMonth(),u.d=L.getUTCDate()+(u.w+6)%7):(L=he(Lt(u.y,0,1)),j=L.getDay(),L=j>4||j===0?Ht.ceil(L):Ht(L),L=Tt.offset(L,(u.V-1)*7),u.y=L.getFullYear(),u.m=L.getMonth(),u.d=L.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),j="Z"in u?de(Lt(u.y,0,1)).getUTCDay():he(Lt(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(j+5)%7:u.w+u.U*7-(j+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,de(u)):he(u)}}function x(v,A,N,u){for(var $=0,L=A.length,j=N.length,q,rt;$=j)return-1;if(q=A.charCodeAt($++),q===37){if(q=A.charAt($++),rt=Q[q in He?A.charAt($++):q],!rt||(u=rt(v,N,u))<0)return-1}else if(q!=N.charCodeAt(u++))return-1}return u}function Y(v,A,N){var u=T.exec(A.slice(N));return u?(v.p=g.get(u[0].toLowerCase()),N+u[0].length):-1}function _(v,A,N){var u=b.exec(A.slice(N));return u?(v.w=X.get(u[0].toLowerCase()),N+u[0].length):-1}function S(v,A,N){var u=F.exec(A.slice(N));return u?(v.w=D.get(u[0].toLowerCase()),N+u[0].length):-1}function p(v,A,N){var u=I.exec(A.slice(N));return u?(v.m=V.get(u[0].toLowerCase()),N+u[0].length):-1}function U(v,A,N){var u=O.exec(A.slice(N));return u?(v.m=C.get(u[0].toLowerCase()),N+u[0].length):-1}function l(v,A,N){return x(v,e,A,N)}function f(v,A,N){return x(v,n,A,N)}function y(v,A,N){return x(v,r,A,N)}function m(v){return s[v.getDay()]}function E(v){return i[v.getDay()]}function c(v){return M[v.getMonth()]}function d(v){return k[v.getMonth()]}function o(v){return a[+(v.getHours()>=12)]}function P(v){return 1+~~(v.getMonth()/3)}function z(v){return s[v.getUTCDay()]}function R(v){return i[v.getUTCDay()]}function K(v){return M[v.getUTCMonth()]}function G(v){return k[v.getUTCMonth()]}function J(v){return a[+(v.getUTCHours()>=12)]}function it(v){return 1+~~(v.getUTCMonth()/3)}return{format:function(v){var A=w(v+="",W);return A.toString=function(){return v},A},parse:function(v){var A=H(v+="",!1);return A.toString=function(){return v},A},utcFormat:function(v){var A=w(v+="",Z);return A.toString=function(){return v},A},utcParse:function(v){var A=H(v+="",!0);return A.toString=function(){return v},A}}}var He={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Cr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function B(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i[e.toLowerCase(),n]))}function Sr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ne(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(t,e,n){var r=Cr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Pr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Re(t,e){return B(t.getDate(),e,2)}function Br(t,e){return B(t.getHours(),e,2)}function Zr(t,e){return B(t.getHours()%12||12,e,2)}function qr(t,e){return B(1+Tt.count(kt(t),t),e,3)}function gn(t,e){return B(t.getMilliseconds(),e,3)}function Xr(t,e){return gn(t,e)+"000"}function Gr(t,e){return B(t.getMonth()+1,e,2)}function jr(t,e){return B(t.getMinutes(),e,2)}function Qr(t,e){return B(t.getSeconds(),e,2)}function Jr(t){var e=t.getDay();return e===0?7:e}function $r(t,e){return B(Vt.count(kt(t)-1,t),e,2)}function yn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function Kr(t,e){return t=yn(t),B(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ta(t){return t.getDay()}function ea(t,e){return B(Ht.count(kt(t)-1,t),e,2)}function na(t,e){return B(t.getFullYear()%100,e,2)}function ra(t,e){return t=yn(t),B(t.getFullYear()%100,e,2)}function aa(t,e){return B(t.getFullYear()%1e4,e,4)}function ia(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),B(t.getFullYear()%1e4,e,4)}function sa(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+B(e/60|0,"0",2)+B(e%60,"0",2)}function Be(t,e){return B(t.getUTCDate(),e,2)}function oa(t,e){return B(t.getUTCHours(),e,2)}function ca(t,e){return B(t.getUTCHours()%12||12,e,2)}function la(t,e){return B(1+we.count(xt(t),t),e,3)}function kn(t,e){return B(t.getUTCMilliseconds(),e,3)}function ua(t,e){return kn(t,e)+"000"}function fa(t,e){return B(t.getUTCMonth()+1,e,2)}function ha(t,e){return B(t.getUTCMinutes(),e,2)}function da(t,e){return B(t.getUTCSeconds(),e,2)}function ma(t){var e=t.getUTCDay();return e===0?7:e}function ga(t,e){return B(mn.count(xt(t)-1,t),e,2)}function pn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function ya(t,e){return t=pn(t),B(Ft.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function ka(t){return t.getUTCDay()}function pa(t,e){return B($t.count(xt(t)-1,t),e,2)}function va(t,e){return B(t.getUTCFullYear()%100,e,2)}function Ta(t,e){return t=pn(t),B(t.getUTCFullYear()%100,e,2)}function ba(t,e){return B(t.getUTCFullYear()%1e4,e,4)}function xa(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),B(t.getUTCFullYear()%1e4,e,4)}function wa(){return"+0000"}function Ze(){return"%"}function qe(t){return+t}function Xe(t){return Math.floor(+t/1e3)}var Mt,Kt;Da({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Da(t){return Mt=Dr(t),Kt=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function Ca(t){return new Date(t)}function Ma(t){return t instanceof Date?+t:+new Date(+t)}function vn(t,e,n,r,a,i,s,k,M,T){var g=Zn(),F=g.invert,D=g.domain,b=T(".%L"),X=T(":%S"),O=T("%I:%M"),C=T("%I %p"),I=T("%a %d"),V=T("%b %d"),W=T("%B"),Z=T("%Y");function Q(w){return(M(w)4&&(b+=7),D.add(b,n));return X.diff(O,"week")+1},k.isoWeekday=function(T){return this.$utils().u(T)?this.day()||7:this.day(this.day()%7?T:T-7)};var M=k.startOf;k.startOf=function(T,g){var F=this.$utils(),D=!!F.u(g)||g;return F.p(T)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(T,g)}}})})(Tn);var Sa=Tn.exports;const Ya=be(Sa);var bn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Te,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,s=/\d\d?/,k=/\d*[^-_:/,()\s\d]+/,M={},T=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var V=I.match(/([+-]|\d\d)/g),W=60*V[1]+(+V[2]||0);return W===0?0:V[0]==="+"?-W:W}(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},b=function(C,I){var V,W=M.meridiem;if(W){for(var Z=1;Z<=24;Z+=1)if(C.indexOf(W(Z,0,I))>-1){V=Z>12;break}}else V=C===(I?"pm":"PM");return V},X={A:[k,function(C){this.afternoon=b(C,!1)}],a:[k,function(C){this.afternoon=b(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[k,function(C){var I=M.ordinal,V=C.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[k,function(C){var I=D("months"),V=(D("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(C)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[k,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=T(C)}],YYYY:[/\d{4}/,g("year")],Z:F,ZZ:F};function O(C){var I,V;I=C,V=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,S,p){var U=p&&p.toUpperCase();return S||V[p]||n[p]||V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,f,y){return f||y.slice(1)})})).match(r),Z=W.length,Q=0;Q-1)return new Date((E==="X"?1e3:1)*m);var o=O(E)(m),P=o.year,z=o.month,R=o.day,K=o.hours,G=o.minutes,J=o.seconds,it=o.milliseconds,v=o.zone,A=o.week,N=new Date,u=R||(P||z?1:N.getDate()),$=P||N.getFullYear(),L=0;P&&!z||(L=z>0?z-1:N.getMonth());var j,q=K||0,rt=G||0,st=J||0,pt=it||0;return v?new Date(Date.UTC($,L,u,q,rt,st,pt+60*v.offset*1e3)):c?new Date(Date.UTC($,L,u,q,rt,st,pt)):(j=new Date($,L,u,q,rt,st,pt),A&&(j=d(j).week(A).toDate()),j)}catch{return new Date("")}}(w,Y,H,V),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),p&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var l=Y.length,f=1;f<=l;f+=1){x[1]=Y[f-1];var y=V.apply(this,x);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}f===l&&(this.$d=new Date(""))}else Z.call(this,Q)}}})})(bn);var Ua=bn.exports;const Fa=be(Ua);var xn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Te,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(s){var k=this,M=this.$locale();if(!this.isValid())return i.bind(this)(s);var T=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return M.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return M.ordinal(k.week(),"W");case"w":case"ww":return T.s(k.week(),F==="w"?1:2,"0");case"W":case"WW":return T.s(k.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return T.s(String(k.$H===0?24:k.$H),F==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return F}});return i.bind(this)(g)}}})})(xn);var Ea=xn.exports;const La=be(Ea);var ye=function(){var t=h(function(U,l,f,y){for(f=f||{},y=U.length;y--;f[U[y]]=l);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],s=[1,30],k=[1,31],M=[1,32],T=[1,33],g=[1,34],F=[1,9],D=[1,10],b=[1,11],X=[1,12],O=[1,13],C=[1,14],I=[1,15],V=[1,16],W=[1,19],Z=[1,20],Q=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],_={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:h(function(l,f,y,m,E,c,d){var o=c.length-1;switch(E){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:T,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:T,21:g,22:F,23:D,24:b,25:X,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:h(function(l,f){if(f.recoverable)this.trace(l);else{var y=new Error(l);throw y.hash=f,y}},"parseError"),parse:h(function(l){var f=this,y=[0],m=[],E=[null],c=[],d=this.table,o="",P=0,z=0,R=2,K=1,G=c.slice.call(arguments,1),J=Object.create(this.lexer),it={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(it.yy[v]=this.yy[v]);J.setInput(l,it.yy),it.yy.lexer=J,it.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var A=J.yylloc;c.push(A);var N=J.options&&J.options.ranges;typeof it.yy.parseError=="function"?this.parseError=it.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function u(ot){y.length=y.length-2*ot,E.length=E.length-ot,c.length=c.length-ot}h(u,"popStack");function $(){var ot;return ot=m.pop()||J.lex()||K,typeof ot!="number"&&(ot instanceof Array&&(m=ot,ot=m.pop()),ot=f.symbols_[ot]||ot),ot}h($,"lex");for(var L,j,q,rt,st={},pt,lt,Ae,Bt;;){if(j=y[y.length-1],this.defaultActions[j]?q=this.defaultActions[j]:((L===null||typeof L>"u")&&(L=$()),q=d[j]&&d[j][L]),typeof q>"u"||!q.length||!q[0]){var ne="";Bt=[];for(pt in d[j])this.terminals_[pt]&&pt>R&&Bt.push("'"+this.terminals_[pt]+"'");J.showPosition?ne="Parse error on line "+(P+1)+`: `+J.showPosition()+` Expecting `+Bt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":ne="Parse error on line "+(P+1)+": Unexpected "+(L==K?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(ne,{text:J.match,token:this.terminals_[L]||L,line:J.yylineno,loc:A,expected:Bt})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+L);switch(q[0]){case 1:y.push(L),E.push(J.yytext),c.push(J.yylloc),y.push(q[1]),L=null,z=J.yyleng,o=J.yytext,P=J.yylineno,A=J.yylloc;break;case 2:if(lt=this.productions_[q[1]][1],st.$=E[E.length-lt],st._$={first_line:c[c.length-(lt||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(lt||1)].first_column,last_column:c[c.length-1].last_column},N&&(st._$.range=[c[c.length-(lt||1)].range[0],c[c.length-1].range[1]]),rt=this.performAction.apply(st,[o,z,P,it.yy,q[1],E,c].concat(G)),typeof rt<"u")return rt;lt&&(y=y.slice(0,-1*lt*2),E=E.slice(0,-1*lt),c=c.slice(0,-1*lt)),y.push(this.productions_[q[1]][0]),E.push(st.$),c.push(st._$),Ae=d[y[y.length-2]][y[y.length-1]],y.push(Ae);break;case 3:return!0}}return!0},"parse")},S=function(){var U={EOF:1,parseError:h(function(f,y){if(this.yy.parser)this.yy.parser.parseError(f,y);else throw new Error(f)},"parseError"),setInput:h(function(l,f){return this.yy=f||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var f=l.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:h(function(l){var f=l.length,y=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1&&(this.yylineno-=y.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===m.length?this.yylloc.first_column:0)+m[m.length-y.length].length-y[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(l){this.unput(this.match.slice(l))},"less"),pastInput:h(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var l=this.pastInput(),f=new Array(l.length+1).join("-");return l+this.upcomingInput()+` diff --git a/static/js/md-gitGraph-YCYPL57B-BAO2bH4y.js b/static/js/md-gitGraph-YCYPL57B-Cg_Niwrz.js similarity index 83% rename from static/js/md-gitGraph-YCYPL57B-BAO2bH4y.js rename to static/js/md-gitGraph-YCYPL57B-Cg_Niwrz.js index 76ed009..296a492 100644 --- a/static/js/md-gitGraph-YCYPL57B-BAO2bH4y.js +++ b/static/js/md-gitGraph-YCYPL57B-Cg_Niwrz.js @@ -1,4 +1,4 @@ -var Gc=Object.defineProperty;var Uc=(n,e,t)=>e in n?Gc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Je=(n,e,t)=>Uc(n,typeof e!="symbol"?e+"":e,t);import{bz as Fc,bA as Bc,aQ as ao,bj as Hc,aU as Vc,aR as Z,aA as Wc,aB as Qi,b9 as Kc,bc as oo,bd as lo,bo as Zi,ba as zc,aD as mt,aE as D,aS as es,aM as qc,bB as tn}from"./md-index-BhYxDPe5.js";import{k as Mt,j as vi,g as Kt,S as Yc,w as Xc,x as Jc,c as co,v as K,y as uo,l as Qc,z as Zc,A as eu,B as tu,C as nu,a as fo,d as S,i as ze,r as oe,f as Ee,D as q}from"./md-_baseUniq-Cjg3wXP1.js";import{j as _i,m as b,d as ru,f as Ie,g as Dt,i as Ei,h as x,l as jt,e as iu}from"./md-_basePickBy-CdF26LR_.js";import{c as te}from"./md-clone-CtDbzCPt.js";var su=Object.prototype,au=su.hasOwnProperty,_e=Fc(function(n,e){if(Bc(e)||ao(e)){Hc(e,Mt(e),n);return}for(var t in e)au.call(e,t)&&Vc(n,t,e[t])});function ho(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r=uu&&(s=Jc,a=!1,e=new Yc(e));e:for(;++i-1:!!i&&uo(n,e,t)>-1}function ts(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=0;return uo(n,e,i)}var vu="[object RegExp]";function _u(n){return oo(n)&&lo(n)==vu}var ns=Zi&&Zi.isRegExp,qe=ns?zc(ns):_u,Eu="Expected a function";function Ru(n){if(typeof n!="function")throw new TypeError(Eu);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Pe(n,e){if(n==null)return{};var t=Qc(Zc(n),function(r){return[r]});return e=Kt(e),ru(n,t,function(r,i){return e(r,i[0])})}function rr(n,e){var t=Z(n)?eu:tu;return t(n,Ru(Kt(e)))}function Au(n,e){var t;return vi(n,function(r,i,s){return t=e(r,i,s),!t}),!!t}function po(n,e,t){var r=Z(n)?nu:Au;return r(n,Kt(e))}function Ri(n){return n&&n.length?fo(n):[]}function bu(n,e){return n&&n.length?fo(n,Kt(e)):[]}function ae(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ge(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function Nu(n){return typeof n=="object"&&n!==null&&typeof n.name=="string"&&typeof n.type=="string"&&typeof n.path=="string"}function kn(n){return typeof n=="object"&&n!==null&&ae(n.container)&&Ge(n.reference)&&typeof n.message=="string"}class mo{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return ae(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Gt(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function go(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function yo(n){return Gt(n)&&typeof n.fullText=="string"}class ie{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){const t=e[Symbol.iterator]();return new ie(()=>({first:this.startFn(),firstDone:!1}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=t.next(),!i.done)return i;while(!i.done);return ke})}join(e=","){const t=this.iterator();let r="",i,s=!1;do i=t.next(),i.done||(s&&(r+=e),r+=ku(i.value)),s=!0;while(!i.done);return r}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new ie(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?ke:{done:!1,value:e(i)}})}filter(e){return new ie(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return ke})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new ie(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(s.done)t.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(On(s))t.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(t.iterator);return ke})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new ie(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=t.nextFn(r.this);if(!i)if(On(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return ke})}head(){const t=this.iterator().next();if(!t.done)return t.value}tail(e=1){return new ie(()=>{const t=this.startFn();for(let r=0;r({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?ke:this.nextFn(t.state)))}distinct(e){const t=new Set;return this.filter(r=>{const i=e?e(r):r;return t.has(i)?!1:(t.add(i),!0)})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function ku(n){return typeof n=="string"?n:typeof n>"u"?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function On(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Iu=new ie(()=>{},()=>ke),ke=Object.freeze({done:!0,value:void 0});function Q(...n){if(n.length===1){const e=n[0];if(e instanceof ie)return e;if(On(e))return new ie(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new ie(()=>({index:0}),t=>t.index1?new ie(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(t(a.value)[Symbol.iterator]()),a}return ke})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var Pr;(function(n){function e(s){return s.reduce((a,o)=>a+o,0)}n.sum=e;function t(s){return s.reduce((a,o)=>a*o,0)}n.product=t;function r(s){return s.reduce((a,o)=>Math.min(a,o))}n.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}n.max=i})(Pr||(Pr={}));function Mr(n){return new Ai(n,e=>Gt(e)?e.content:[],{includeRoot:!0})}function Su(n,e){for(;n.container;)if(n=n.container,n===e)return!0;return!1}function Dr(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function Ln(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}var Ze;(function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside"})(Ze||(Ze={}));function xu(n,e){if(n.end.linee.end.line||n.start.line===e.end.line&&n.start.character>e.end.character)return Ze.After;const t=n.start.line>e.start.line||n.start.line===e.start.line&&n.start.character>=e.start.character,r=n.end.lineZe.After}const wu=/^[\w\p{L}]$/u;function Ou(n,e){if(n){const t=Lu(n,!0);if(t&&rs(t,e))return t;if(yo(n)){const r=n.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=n.content[i];if(rs(s,e))return s}}}}function rs(n,e){return go(n)&&e.includes(n.tokenType.name)}function Lu(n,e=!0){for(;n.container;){const t=n.container;let r=t.content.indexOf(n);for(;r>0;){r--;const i=t.content[r];if(e||!i.hidden)return i}n=t}}class To extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function ir(n){throw new Error("Error! The input value was not handled.")}const _r="AbstractRule",Er="AbstractType",is="Condition",$u="TypeDefinition",ss="ValueLiteral",vo="AbstractElement";function Pu(n){return M.isInstance(n,vo)}const Mu="ArrayLiteral",Du="ArrayType",_o="BooleanLiteral";function ju(n){return M.isInstance(n,_o)}const Eo="Conjunction";function Gu(n){return M.isInstance(n,Eo)}const Ro="Disjunction";function Uu(n){return M.isInstance(n,Ro)}const Fu="Grammar",Ao="InferredType";function bo(n){return M.isInstance(n,Ao)}const No="Interface";function ko(n){return M.isInstance(n,No)}const Io="Negation";function Bu(n){return M.isInstance(n,Io)}const Hu="NumberLiteral",Vu="Parameter",So="ParameterReference";function Wu(n){return M.isInstance(n,So)}const xo="ParserRule";function Se(n){return M.isInstance(n,xo)}const Ku="ReferenceType",zu="ReturnType";function qu(n){return M.isInstance(n,zu)}const Co="SimpleType";function Yu(n){return M.isInstance(n,Co)}const Xu="StringLiteral",jr="TerminalRule";function gt(n){return M.isInstance(n,jr)}const wo="Type";function Oo(n){return M.isInstance(n,wo)}const Ju="UnionType",Lo="Action";function sr(n){return M.isInstance(n,Lo)}const $o="Alternatives";function Po(n){return M.isInstance(n,$o)}const Mo="Assignment";function ut(n){return M.isInstance(n,Mo)}const Do="CharacterRange";function Qu(n){return M.isInstance(n,Do)}const jo="CrossReference";function bi(n){return M.isInstance(n,jo)}const Go="EndOfFile";function Zu(n){return M.isInstance(n,Go)}const Uo="Group";function Ni(n){return M.isInstance(n,Uo)}const Fo="Keyword";function dt(n){return M.isInstance(n,Fo)}const Bo="NegatedToken";function ed(n){return M.isInstance(n,Bo)}const Ho="RegexToken";function td(n){return M.isInstance(n,Ho)}const Vo="RuleCall";function ft(n){return M.isInstance(n,Vo)}const Wo="TerminalAlternatives";function nd(n){return M.isInstance(n,Wo)}const Ko="TerminalGroup";function rd(n){return M.isInstance(n,Ko)}const zo="TerminalRuleCall";function id(n){return M.isInstance(n,zo)}const qo="UnorderedGroup";function Yo(n){return M.isInstance(n,qo)}const Xo="UntilToken";function sd(n){return M.isInstance(n,Xo)}const Jo="Wildcard";function ad(n){return M.isInstance(n,Jo)}class Qo extends mo{getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,t){switch(e){case Lo:case $o:case Mo:case Do:case jo:case Go:case Uo:case Fo:case Bo:case Ho:case Vo:case Wo:case Ko:case zo:case qo:case Xo:case Jo:return this.isSubtype(vo,t);case Mu:case Hu:case Xu:return this.isSubtype(ss,t);case Du:case Ku:case Co:case Ju:return this.isSubtype($u,t);case _o:return this.isSubtype(is,t)||this.isSubtype(ss,t);case Eo:case Ro:case Io:case So:return this.isSubtype(is,t);case Ao:case No:case wo:return this.isSubtype(Er,t);case xo:return this.isSubtype(_r,t)||this.isSubtype(Er,t);case jr:return this.isSubtype(_r,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Er;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return _r;case"Grammar:usedGrammars":return Fu;case"NamedArgument:parameter":case"ParameterReference:parameter":return Vu;case"TerminalRuleCall:rule":return jr;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const M=new Qo;function od(n){for(const[e,t]of Object.entries(n))e.startsWith("$")||(Array.isArray(t)?t.forEach((r,i)=>{ae(r)&&(r.$container=n,r.$containerProperty=e,r.$containerIndex=i)}):ae(t)&&(t.$container=n,t.$containerProperty=e))}function ar(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function Ue(n){const t=ld(n).$document;if(!t)throw new Error("AST node has no document.");return t}function ld(n){for(;n.$container;)n=n.$container;return n}function ki(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndexki(t,e))}function Et(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ai(n,t=>ki(t,e),{includeRoot:!0})}function as(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return r?Cu(r,e):!1}function Zo(n){return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexe in n?Gc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Je=(n,e,t)=>Uc(n,typeof e!="symbol"?e+"":e,t);import{bz as Fc,bA as Bc,aQ as ao,bj as Hc,aU as Vc,aR as Z,aA as Wc,aB as Qi,b9 as Kc,bc as oo,bd as lo,bo as Zi,ba as zc,aD as mt,aE as D,aS as es,aM as qc,bB as tn}from"./md-index-ByjuzIYZ.js";import{k as Mt,j as vi,g as Kt,S as Yc,w as Xc,x as Jc,c as co,v as K,y as uo,l as Qc,z as Zc,A as eu,B as tu,C as nu,a as fo,d as S,i as ze,r as oe,f as Ee,D as q}from"./md-_baseUniq-DZXHEAoF.js";import{j as _i,m as b,d as ru,f as Ie,g as Dt,i as Ei,h as x,l as jt,e as iu}from"./md-_basePickBy-C4aggLA-.js";import{c as te}from"./md-clone-CEEsdKQ5.js";var su=Object.prototype,au=su.hasOwnProperty,_e=Fc(function(n,e){if(Bc(e)||ao(e)){Hc(e,Mt(e),n);return}for(var t in e)au.call(e,t)&&Vc(n,t,e[t])});function ho(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r=uu&&(s=Jc,a=!1,e=new Yc(e));e:for(;++i-1:!!i&&uo(n,e,t)>-1}function ts(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=0;return uo(n,e,i)}var vu="[object RegExp]";function _u(n){return oo(n)&&lo(n)==vu}var ns=Zi&&Zi.isRegExp,qe=ns?zc(ns):_u,Eu="Expected a function";function Ru(n){if(typeof n!="function")throw new TypeError(Eu);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Pe(n,e){if(n==null)return{};var t=Qc(Zc(n),function(r){return[r]});return e=Kt(e),ru(n,t,function(r,i){return e(r,i[0])})}function rr(n,e){var t=Z(n)?eu:tu;return t(n,Ru(Kt(e)))}function Au(n,e){var t;return vi(n,function(r,i,s){return t=e(r,i,s),!t}),!!t}function po(n,e,t){var r=Z(n)?nu:Au;return r(n,Kt(e))}function Ri(n){return n&&n.length?fo(n):[]}function bu(n,e){return n&&n.length?fo(n,Kt(e)):[]}function ae(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ge(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function Nu(n){return typeof n=="object"&&n!==null&&typeof n.name=="string"&&typeof n.type=="string"&&typeof n.path=="string"}function kn(n){return typeof n=="object"&&n!==null&&ae(n.container)&&Ge(n.reference)&&typeof n.message=="string"}class mo{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return ae(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Gt(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function go(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function yo(n){return Gt(n)&&typeof n.fullText=="string"}class ie{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){const t=e[Symbol.iterator]();return new ie(()=>({first:this.startFn(),firstDone:!1}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=t.next(),!i.done)return i;while(!i.done);return ke})}join(e=","){const t=this.iterator();let r="",i,s=!1;do i=t.next(),i.done||(s&&(r+=e),r+=ku(i.value)),s=!0;while(!i.done);return r}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new ie(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?ke:{done:!1,value:e(i)}})}filter(e){return new ie(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return ke})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new ie(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(s.done)t.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(On(s))t.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(t.iterator);return ke})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new ie(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=t.nextFn(r.this);if(!i)if(On(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return ke})}head(){const t=this.iterator().next();if(!t.done)return t.value}tail(e=1){return new ie(()=>{const t=this.startFn();for(let r=0;r({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?ke:this.nextFn(t.state)))}distinct(e){const t=new Set;return this.filter(r=>{const i=e?e(r):r;return t.has(i)?!1:(t.add(i),!0)})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function ku(n){return typeof n=="string"?n:typeof n>"u"?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function On(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Iu=new ie(()=>{},()=>ke),ke=Object.freeze({done:!0,value:void 0});function Q(...n){if(n.length===1){const e=n[0];if(e instanceof ie)return e;if(On(e))return new ie(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new ie(()=>({index:0}),t=>t.index1?new ie(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(t(a.value)[Symbol.iterator]()),a}return ke})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var Pr;(function(n){function e(s){return s.reduce((a,o)=>a+o,0)}n.sum=e;function t(s){return s.reduce((a,o)=>a*o,0)}n.product=t;function r(s){return s.reduce((a,o)=>Math.min(a,o))}n.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}n.max=i})(Pr||(Pr={}));function Mr(n){return new Ai(n,e=>Gt(e)?e.content:[],{includeRoot:!0})}function Su(n,e){for(;n.container;)if(n=n.container,n===e)return!0;return!1}function Dr(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function Ln(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}var Ze;(function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside"})(Ze||(Ze={}));function xu(n,e){if(n.end.linee.end.line||n.start.line===e.end.line&&n.start.character>e.end.character)return Ze.After;const t=n.start.line>e.start.line||n.start.line===e.start.line&&n.start.character>=e.start.character,r=n.end.lineZe.After}const wu=/^[\w\p{L}]$/u;function Ou(n,e){if(n){const t=Lu(n,!0);if(t&&rs(t,e))return t;if(yo(n)){const r=n.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=n.content[i];if(rs(s,e))return s}}}}function rs(n,e){return go(n)&&e.includes(n.tokenType.name)}function Lu(n,e=!0){for(;n.container;){const t=n.container;let r=t.content.indexOf(n);for(;r>0;){r--;const i=t.content[r];if(e||!i.hidden)return i}n=t}}class To extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function ir(n){throw new Error("Error! The input value was not handled.")}const _r="AbstractRule",Er="AbstractType",is="Condition",$u="TypeDefinition",ss="ValueLiteral",vo="AbstractElement";function Pu(n){return M.isInstance(n,vo)}const Mu="ArrayLiteral",Du="ArrayType",_o="BooleanLiteral";function ju(n){return M.isInstance(n,_o)}const Eo="Conjunction";function Gu(n){return M.isInstance(n,Eo)}const Ro="Disjunction";function Uu(n){return M.isInstance(n,Ro)}const Fu="Grammar",Ao="InferredType";function bo(n){return M.isInstance(n,Ao)}const No="Interface";function ko(n){return M.isInstance(n,No)}const Io="Negation";function Bu(n){return M.isInstance(n,Io)}const Hu="NumberLiteral",Vu="Parameter",So="ParameterReference";function Wu(n){return M.isInstance(n,So)}const xo="ParserRule";function Se(n){return M.isInstance(n,xo)}const Ku="ReferenceType",zu="ReturnType";function qu(n){return M.isInstance(n,zu)}const Co="SimpleType";function Yu(n){return M.isInstance(n,Co)}const Xu="StringLiteral",jr="TerminalRule";function gt(n){return M.isInstance(n,jr)}const wo="Type";function Oo(n){return M.isInstance(n,wo)}const Ju="UnionType",Lo="Action";function sr(n){return M.isInstance(n,Lo)}const $o="Alternatives";function Po(n){return M.isInstance(n,$o)}const Mo="Assignment";function ut(n){return M.isInstance(n,Mo)}const Do="CharacterRange";function Qu(n){return M.isInstance(n,Do)}const jo="CrossReference";function bi(n){return M.isInstance(n,jo)}const Go="EndOfFile";function Zu(n){return M.isInstance(n,Go)}const Uo="Group";function Ni(n){return M.isInstance(n,Uo)}const Fo="Keyword";function dt(n){return M.isInstance(n,Fo)}const Bo="NegatedToken";function ed(n){return M.isInstance(n,Bo)}const Ho="RegexToken";function td(n){return M.isInstance(n,Ho)}const Vo="RuleCall";function ft(n){return M.isInstance(n,Vo)}const Wo="TerminalAlternatives";function nd(n){return M.isInstance(n,Wo)}const Ko="TerminalGroup";function rd(n){return M.isInstance(n,Ko)}const zo="TerminalRuleCall";function id(n){return M.isInstance(n,zo)}const qo="UnorderedGroup";function Yo(n){return M.isInstance(n,qo)}const Xo="UntilToken";function sd(n){return M.isInstance(n,Xo)}const Jo="Wildcard";function ad(n){return M.isInstance(n,Jo)}class Qo extends mo{getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,t){switch(e){case Lo:case $o:case Mo:case Do:case jo:case Go:case Uo:case Fo:case Bo:case Ho:case Vo:case Wo:case Ko:case zo:case qo:case Xo:case Jo:return this.isSubtype(vo,t);case Mu:case Hu:case Xu:return this.isSubtype(ss,t);case Du:case Ku:case Co:case Ju:return this.isSubtype($u,t);case _o:return this.isSubtype(is,t)||this.isSubtype(ss,t);case Eo:case Ro:case Io:case So:return this.isSubtype(is,t);case Ao:case No:case wo:return this.isSubtype(Er,t);case xo:return this.isSubtype(_r,t)||this.isSubtype(Er,t);case jr:return this.isSubtype(_r,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Er;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return _r;case"Grammar:usedGrammars":return Fu;case"NamedArgument:parameter":case"ParameterReference:parameter":return Vu;case"TerminalRuleCall:rule":return jr;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const M=new Qo;function od(n){for(const[e,t]of Object.entries(n))e.startsWith("$")||(Array.isArray(t)?t.forEach((r,i)=>{ae(r)&&(r.$container=n,r.$containerProperty=e,r.$containerIndex=i)}):ae(t)&&(t.$container=n,t.$containerProperty=e))}function ar(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function Ue(n){const t=ld(n).$document;if(!t)throw new Error("AST node has no document.");return t}function ld(n){for(;n.$container;)n=n.$container;return n}function ki(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndexki(t,e))}function Et(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ai(n,t=>ki(t,e),{includeRoot:!0})}function as(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return r?Cu(r,e):!1}function Zo(n){return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexs.state.transitions),i=bu(r.filter(s=>s instanceof Di).map(s=>s.tokenType),s=>s.tokenTypeIdx);return{actualToken:t,possibleTokenTypes:i,tokenPath:n}}function mp(n,e){return n.edges[e.tokenTypeIdx]}function gp(n,e,t){const r=new qr,i=[];for(const a of n.elements){if(t.is(a.alt)===!1)continue;if(a.state.type===vn){i.push(a);continue}const o=a.state.transitions.length;for(let l=0;l0&&!Ep(s))for(const a of i)s.add(a);return s}function yp(n,e){if(n instanceof Di&&Al(e,n.tokenType))return n.target}function Tp(n,e){let t;for(const r of n.elements)if(e.is(r.alt)===!0){if(t===void 0)t=r.alt;else if(t!==r.alt)return}return t}function Jl(n){return{configs:n,edges:{},isAcceptState:!1,prediction:-1}}function Ms(n,e,t,r){return r=Ql(n,r),e.edges[t.tokenTypeIdx]=r,r}function Ql(n,e){if(e===Hn)return e;const t=e.configs.key,r=n.states[t];return r!==void 0?r:(e.configs.finalize(),n.states[t]=e,e)}function vp(n){const e=new qr,t=n.transitions.length;for(let r=0;r0){const i=[...n.stack],a={state:i.pop(),alt:n.alt,stack:i};Vn(a,e)}else e.add(n);return}t.epsilonOnlyTransitions||e.add(n);const r=t.transitions.length;for(let i=0;i1)return!0;return!1}function kp(n){for(const e of Array.from(n.values()))if(Object.keys(e).length===1)return!0;return!1}var Ds;(function(n){function e(t){return typeof t=="string"}n.is=e})(Ds||(Ds={}));var Yr;(function(n){function e(t){return typeof t=="string"}n.is=e})(Yr||(Yr={}));var js;(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(js||(js={}));var Wn;(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(Wn||(Wn={}));var P;(function(n){function e(r,i){return r===Number.MAX_VALUE&&(r=Wn.MAX_VALUE),i===Number.MAX_VALUE&&(i=Wn.MAX_VALUE),{line:r,character:i}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&p.uinteger(i.line)&&p.uinteger(i.character)}n.is=t})(P||(P={}));var $;(function(n){function e(r,i,s,a){if(p.uinteger(r)&&p.uinteger(i)&&p.uinteger(s)&&p.uinteger(a))return{start:P.create(r,i),end:P.create(s,a)};if(P.is(r)&&P.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&P.is(i.start)&&P.is(i.end)}n.is=t})($||($={}));var Kn;(function(n){function e(r,i){return{uri:r,range:i}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&$.is(i.range)&&(p.string(i.uri)||p.undefined(i.uri))}n.is=t})(Kn||(Kn={}));var Gs;(function(n){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&$.is(i.targetRange)&&p.string(i.targetUri)&&$.is(i.targetSelectionRange)&&($.is(i.originSelectionRange)||p.undefined(i.originSelectionRange))}n.is=t})(Gs||(Gs={}));var Xr;(function(n){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.numberRange(i.red,0,1)&&p.numberRange(i.green,0,1)&&p.numberRange(i.blue,0,1)&&p.numberRange(i.alpha,0,1)}n.is=t})(Xr||(Xr={}));var Us;(function(n){function e(r,i){return{range:r,color:i}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&$.is(i.range)&&Xr.is(i.color)}n.is=t})(Us||(Us={}));var Fs;(function(n){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.undefined(i.textEdit)||Bt.is(i))&&(p.undefined(i.additionalTextEdits)||p.typedArray(i.additionalTextEdits,Bt.is))}n.is=t})(Fs||(Fs={}));var Bs;(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(Bs||(Bs={}));var Hs;(function(n){function e(r,i,s,a,o,l){const c={startLine:r,endLine:i};return p.defined(s)&&(c.startCharacter=s),p.defined(a)&&(c.endCharacter=a),p.defined(o)&&(c.kind=o),p.defined(l)&&(c.collapsedText=l),c}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.uinteger(i.startLine)&&p.uinteger(i.startLine)&&(p.undefined(i.startCharacter)||p.uinteger(i.startCharacter))&&(p.undefined(i.endCharacter)||p.uinteger(i.endCharacter))&&(p.undefined(i.kind)||p.string(i.kind))}n.is=t})(Hs||(Hs={}));var Jr;(function(n){function e(r,i){return{location:r,message:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&Kn.is(i.location)&&p.string(i.message)}n.is=t})(Jr||(Jr={}));var Vs;(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(Vs||(Vs={}));var Ws;(function(n){n.Unnecessary=1,n.Deprecated=2})(Ws||(Ws={}));var Ks;(function(n){function e(t){const r=t;return p.objectLiteral(r)&&p.string(r.href)}n.is=e})(Ks||(Ks={}));var zn;(function(n){function e(r,i,s,a,o,l){let c={range:r,message:i};return p.defined(s)&&(c.severity=s),p.defined(a)&&(c.code=a),p.defined(o)&&(c.source=o),p.defined(l)&&(c.relatedInformation=l),c}n.create=e;function t(r){var i;let s=r;return p.defined(s)&&$.is(s.range)&&p.string(s.message)&&(p.number(s.severity)||p.undefined(s.severity))&&(p.integer(s.code)||p.string(s.code)||p.undefined(s.code))&&(p.undefined(s.codeDescription)||p.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(p.string(s.source)||p.undefined(s.source))&&(p.undefined(s.relatedInformation)||p.typedArray(s.relatedInformation,Jr.is))}n.is=t})(zn||(zn={}));var Ft;(function(n){function e(r,i,...s){let a={title:r,command:i};return p.defined(s)&&s.length>0&&(a.arguments=s),a}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.title)&&p.string(i.command)}n.is=t})(Ft||(Ft={}));var Bt;(function(n){function e(s,a){return{range:s,newText:a}}n.replace=e;function t(s,a){return{range:{start:s,end:s},newText:a}}n.insert=t;function r(s){return{range:s,newText:""}}n.del=r;function i(s){const a=s;return p.objectLiteral(a)&&p.string(a.newText)&&$.is(a.range)}n.is=i})(Bt||(Bt={}));var Qr;(function(n){function e(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(p.string(i.description)||i.description===void 0)}n.is=t})(Qr||(Qr={}));var Ht;(function(n){function e(t){const r=t;return p.string(r)}n.is=e})(Ht||(Ht={}));var zs;(function(n){function e(s,a,o){return{range:s,newText:a,annotationId:o}}n.replace=e;function t(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}n.insert=t;function r(s,a){return{range:s,newText:"",annotationId:a}}n.del=r;function i(s){const a=s;return Bt.is(a)&&(Qr.is(a.annotationId)||Ht.is(a.annotationId))}n.is=i})(zs||(zs={}));var Zr;(function(n){function e(r,i){return{textDocument:r,edits:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&ii.is(i.textDocument)&&Array.isArray(i.edits)}n.is=t})(Zr||(Zr={}));var ei;(function(n){function e(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(r){let i=r;return i&&i.kind==="create"&&p.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ht.is(i.annotationId))}n.is=t})(ei||(ei={}));var ti;(function(n){function e(r,i,s,a){let o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}n.create=e;function t(r){let i=r;return i&&i.kind==="rename"&&p.string(i.oldUri)&&p.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ht.is(i.annotationId))}n.is=t})(ti||(ti={}));var ni;(function(n){function e(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(r){let i=r;return i&&i.kind==="delete"&&p.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||p.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||p.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ht.is(i.annotationId))}n.is=t})(ni||(ni={}));var ri;(function(n){function e(t){let r=t;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>p.string(i.kind)?ei.is(i)||ti.is(i)||ni.is(i):Zr.is(i)))}n.is=e})(ri||(ri={}));var qs;(function(n){function e(r){return{uri:r}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)}n.is=t})(qs||(qs={}));var Ys;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.integer(i.version)}n.is=t})(Ys||(Ys={}));var ii;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)&&(i.version===null||p.integer(i.version))}n.is=t})(ii||(ii={}));var Xs;(function(n){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.string(i.languageId)&&p.integer(i.version)&&p.string(i.text)}n.is=t})(Xs||(Xs={}));var si;(function(n){n.PlainText="plaintext",n.Markdown="markdown";function e(t){const r=t;return r===n.PlainText||r===n.Markdown}n.is=e})(si||(si={}));var un;(function(n){function e(t){const r=t;return p.objectLiteral(t)&&si.is(r.kind)&&p.string(r.value)}n.is=e})(un||(un={}));var Js;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(Js||(Js={}));var Qs;(function(n){n.PlainText=1,n.Snippet=2})(Qs||(Qs={}));var Zs;(function(n){n.Deprecated=1})(Zs||(Zs={}));var ea;(function(n){function e(r,i,s){return{newText:r,insert:i,replace:s}}n.create=e;function t(r){const i=r;return i&&p.string(i.newText)&&$.is(i.insert)&&$.is(i.replace)}n.is=t})(ea||(ea={}));var ta;(function(n){n.asIs=1,n.adjustIndentation=2})(ta||(ta={}));var na;(function(n){function e(t){const r=t;return r&&(p.string(r.detail)||r.detail===void 0)&&(p.string(r.description)||r.description===void 0)}n.is=e})(na||(na={}));var ra;(function(n){function e(t){return{label:t}}n.create=e})(ra||(ra={}));var ia;(function(n){function e(t,r){return{items:t||[],isIncomplete:!!r}}n.create=e})(ia||(ia={}));var qn;(function(n){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=e;function t(r){const i=r;return p.string(i)||p.objectLiteral(i)&&p.string(i.language)&&p.string(i.value)}n.is=t})(qn||(qn={}));var sa;(function(n){function e(t){let r=t;return!!r&&p.objectLiteral(r)&&(un.is(r.contents)||qn.is(r.contents)||p.typedArray(r.contents,qn.is))&&(t.range===void 0||$.is(t.range))}n.is=e})(sa||(sa={}));var aa;(function(n){function e(t,r){return r?{label:t,documentation:r}:{label:t}}n.create=e})(aa||(aa={}));var oa;(function(n){function e(t,r,...i){let s={label:t};return p.defined(r)&&(s.documentation=r),p.defined(i)?s.parameters=i:s.parameters=[],s}n.create=e})(oa||(oa={}));var la;(function(n){n.Text=1,n.Read=2,n.Write=3})(la||(la={}));var ca;(function(n){function e(t,r){let i={range:t};return p.number(r)&&(i.kind=r),i}n.create=e})(ca||(ca={}));var ua;(function(n){n.File=1,n.Module=2,n.Namespace=3,n.Package=4,n.Class=5,n.Method=6,n.Property=7,n.Field=8,n.Constructor=9,n.Enum=10,n.Interface=11,n.Function=12,n.Variable=13,n.Constant=14,n.String=15,n.Number=16,n.Boolean=17,n.Array=18,n.Object=19,n.Key=20,n.Null=21,n.EnumMember=22,n.Struct=23,n.Event=24,n.Operator=25,n.TypeParameter=26})(ua||(ua={}));var da;(function(n){n.Deprecated=1})(da||(da={}));var fa;(function(n){function e(t,r,i,s,a){let o={name:t,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}n.create=e})(fa||(fa={}));var ha;(function(n){function e(t,r,i,s){return s!==void 0?{name:t,kind:r,location:{uri:i,range:s}}:{name:t,kind:r,location:{uri:i}}}n.create=e})(ha||(ha={}));var pa;(function(n){function e(r,i,s,a,o,l){let c={name:r,detail:i,kind:s,range:a,selectionRange:o};return l!==void 0&&(c.children=l),c}n.create=e;function t(r){let i=r;return i&&p.string(i.name)&&p.number(i.kind)&&$.is(i.range)&&$.is(i.selectionRange)&&(i.detail===void 0||p.string(i.detail))&&(i.deprecated===void 0||p.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}n.is=t})(pa||(pa={}));var ma;(function(n){n.Empty="",n.QuickFix="quickfix",n.Refactor="refactor",n.RefactorExtract="refactor.extract",n.RefactorInline="refactor.inline",n.RefactorRewrite="refactor.rewrite",n.Source="source",n.SourceOrganizeImports="source.organizeImports",n.SourceFixAll="source.fixAll"})(ma||(ma={}));var Yn;(function(n){n.Invoked=1,n.Automatic=2})(Yn||(Yn={}));var ga;(function(n){function e(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}n.create=e;function t(r){let i=r;return p.defined(i)&&p.typedArray(i.diagnostics,zn.is)&&(i.only===void 0||p.typedArray(i.only,p.string))&&(i.triggerKind===void 0||i.triggerKind===Yn.Invoked||i.triggerKind===Yn.Automatic)}n.is=t})(ga||(ga={}));var ya;(function(n){function e(r,i,s){let a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):Ft.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}n.create=e;function t(r){let i=r;return i&&p.string(i.title)&&(i.diagnostics===void 0||p.typedArray(i.diagnostics,zn.is))&&(i.kind===void 0||p.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Ft.is(i.command))&&(i.isPreferred===void 0||p.boolean(i.isPreferred))&&(i.edit===void 0||ri.is(i.edit))}n.is=t})(ya||(ya={}));var Ta;(function(n){function e(r,i){let s={range:r};return p.defined(i)&&(s.data=i),s}n.create=e;function t(r){let i=r;return p.defined(i)&&$.is(i.range)&&(p.undefined(i.command)||Ft.is(i.command))}n.is=t})(Ta||(Ta={}));var va;(function(n){function e(r,i){return{tabSize:r,insertSpaces:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.uinteger(i.tabSize)&&p.boolean(i.insertSpaces)}n.is=t})(va||(va={}));var _a;(function(n){function e(r,i,s){return{range:r,target:i,data:s}}n.create=e;function t(r){let i=r;return p.defined(i)&&$.is(i.range)&&(p.undefined(i.target)||p.string(i.target))}n.is=t})(_a||(_a={}));var Ea;(function(n){function e(r,i){return{range:r,parent:i}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&$.is(i.range)&&(i.parent===void 0||n.is(i.parent))}n.is=t})(Ea||(Ea={}));var Ra;(function(n){n.namespace="namespace",n.type="type",n.class="class",n.enum="enum",n.interface="interface",n.struct="struct",n.typeParameter="typeParameter",n.parameter="parameter",n.variable="variable",n.property="property",n.enumMember="enumMember",n.event="event",n.function="function",n.method="method",n.macro="macro",n.keyword="keyword",n.modifier="modifier",n.comment="comment",n.string="string",n.number="number",n.regexp="regexp",n.operator="operator",n.decorator="decorator"})(Ra||(Ra={}));var Aa;(function(n){n.declaration="declaration",n.definition="definition",n.readonly="readonly",n.static="static",n.deprecated="deprecated",n.abstract="abstract",n.async="async",n.modification="modification",n.documentation="documentation",n.defaultLibrary="defaultLibrary"})(Aa||(Aa={}));var ba;(function(n){function e(t){const r=t;return p.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}n.is=e})(ba||(ba={}));var Na;(function(n){function e(r,i){return{range:r,text:i}}n.create=e;function t(r){const i=r;return i!=null&&$.is(i.range)&&p.string(i.text)}n.is=t})(Na||(Na={}));var ka;(function(n){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}n.create=e;function t(r){const i=r;return i!=null&&$.is(i.range)&&p.boolean(i.caseSensitiveLookup)&&(p.string(i.variableName)||i.variableName===void 0)}n.is=t})(ka||(ka={}));var Ia;(function(n){function e(r,i){return{range:r,expression:i}}n.create=e;function t(r){const i=r;return i!=null&&$.is(i.range)&&(p.string(i.expression)||i.expression===void 0)}n.is=t})(Ia||(Ia={}));var Sa;(function(n){function e(r,i){return{frameId:r,stoppedLocation:i}}n.create=e;function t(r){const i=r;return p.defined(i)&&$.is(r.stoppedLocation)}n.is=t})(Sa||(Sa={}));var ai;(function(n){n.Type=1,n.Parameter=2;function e(t){return t===1||t===2}n.is=e})(ai||(ai={}));var oi;(function(n){function e(r){return{value:r}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&(i.tooltip===void 0||p.string(i.tooltip)||un.is(i.tooltip))&&(i.location===void 0||Kn.is(i.location))&&(i.command===void 0||Ft.is(i.command))}n.is=t})(oi||(oi={}));var xa;(function(n){function e(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&P.is(i.position)&&(p.string(i.label)||p.typedArray(i.label,oi.is))&&(i.kind===void 0||ai.is(i.kind))&&i.textEdits===void 0||p.typedArray(i.textEdits,Bt.is)&&(i.tooltip===void 0||p.string(i.tooltip)||un.is(i.tooltip))&&(i.paddingLeft===void 0||p.boolean(i.paddingLeft))&&(i.paddingRight===void 0||p.boolean(i.paddingRight))}n.is=t})(xa||(xa={}));var Ca;(function(n){function e(t){return{kind:"snippet",value:t}}n.createSnippet=e})(Ca||(Ca={}));var wa;(function(n){function e(t,r,i,s){return{insertText:t,filterText:r,range:i,command:s}}n.create=e})(wa||(wa={}));var Oa;(function(n){function e(t){return{items:t}}n.create=e})(Oa||(Oa={}));var La;(function(n){n.Invoked=0,n.Automatic=1})(La||(La={}));var $a;(function(n){function e(t,r){return{range:t,text:r}}n.create=e})($a||($a={}));var Pa;(function(n){function e(t,r){return{triggerKind:t,selectedCompletionInfo:r}}n.create=e})(Pa||(Pa={}));var Ma;(function(n){function e(t){const r=t;return p.objectLiteral(r)&&Yr.is(r.uri)&&p.string(r.name)}n.is=e})(Ma||(Ma={}));var Da;(function(n){function e(s,a,o,l){return new Ip(s,a,o,l)}n.create=e;function t(s){let a=s;return!!(p.defined(a)&&p.string(a.uri)&&(p.undefined(a.languageId)||p.string(a.languageId))&&p.uinteger(a.lineCount)&&p.func(a.getText)&&p.func(a.positionAt)&&p.func(a.offsetAt))}n.is=t;function r(s,a){let o=s.getText(),l=i(a,(u,d)=>{let f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f}),c=o.length;for(let u=l.length-1;u>=0;u--){let d=l[u],f=s.offsetAt(d.range.start),h=s.offsetAt(d.range.end);if(h<=c)o=o.substring(0,f)+d.newText+o.substring(h,o.length);else throw new Error("Overlapping edit");c=f}return o}n.applyEdits=r;function i(s,a){if(s.length<=1)return s;const o=s.length/2|0,l=s.slice(0,o),c=s.slice(o);i(l,a),i(c,a);let u=0,d=0,f=0;for(;u0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,i=t.length;if(i===0)return P.create(0,e);for(;re?i=a:r=a+1}let s=r-1;return P.create(s,e-t[s])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],i=e.line+1"u"}n.undefined=r;function i(h){return h===!0||h===!1}n.boolean=i;function s(h){return e.call(h)==="[object String]"}n.string=s;function a(h){return e.call(h)==="[object Number]"}n.number=a;function o(h,m,g){return e.call(h)==="[object Number]"&&m<=h&&h<=g}n.numberRange=o;function l(h){return e.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}n.integer=l;function c(h){return e.call(h)==="[object Number]"&&0<=h&&h<=2147483647}n.uinteger=c;function u(h){return e.call(h)==="[object Function]"}n.func=u;function d(h){return h!==null&&typeof h=="object"}n.objectLiteral=d;function f(h,m){return Array.isArray(h)&&h.every(m)}n.typedArray=f})(p||(p={}));class Sp{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]}buildRootNode(e){return this.rootNode=new ec(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const t=new Fi;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){const r=new li(e.startOffset,e.image.length,Dr(e),e.tokenType,!1);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){const t=e.container;if(t){const r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}construct(e){const t=this.current;typeof e.$type=="string"&&(this.current.astNode=e),e.$cstNode=t;const r=this.nodeStack.pop();(r==null?void 0:r.content.length)===0&&this.removeNode(r)}addHiddenTokens(e){for(const t of e){const r=new li(t.startOffset,t.image.length,Dr(t),t.tokenType,!0);r.root=this.rootNode,this.addHiddenToken(this.rootNode,r)}}addHiddenToken(e,t){const{offset:r,end:i}=t;for(let s=0;so&&i=0;e--){const t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}}class Bi extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,Bi.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...r){return this.addParents(r),super.splice(e,t,...r)}addParents(e){for(const t of e)t.container=this.parent}}class ec extends Fi{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}}const ci=Symbol("Datatype");function Cr(n){return n.$type===ci}const ja="​",tc=n=>n.endsWith(ja)?n:n+ja;class nc{constructor(e){this._unorderedGroups=new Map,this.lexer=e.parser.Lexer;const t=this.lexer.definition;this.wrapper=new Lp(t,Object.assign(Object.assign({},e.parser.ParserConfig),{errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}}class xp extends nc{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Sp,this.stack=[],this.assignmentMap=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){const r=e.fragment?void 0:Si(e)?ci:cr(e),i=this.wrapper.DEFINE_RULE(tc(e.name),this.startImplementation(r,t).bind(this));return e.entry&&(this.mainRule=i),i}parse(e){this.nodeBuilder.buildRootNode(e);const t=this.lexer.tokenize(e);this.wrapper.input=t.tokens;const r=this.mainRule.call(this.wrapper,{});return this.nodeBuilder.addHiddenTokens(t.hidden),this.unorderedGroups.clear(),{value:r,lexerErrors:t.errors,parserErrors:this.wrapper.errors}}startImplementation(e,t){return r=>{if(!this.isRecording()){const s={$type:e};this.stack.push(s),e===ci&&(s.value="")}let i;try{i=t(r)}catch{i=void 0}return!this.isRecording()&&i===void 0&&(i=this.construct()),i}}consume(e,t,r){const i=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(i)){const s=this.nodeBuilder.buildLeafNode(i,r),{assignment:a,isCrossRef:o}=this.getAssignment(r),l=this.current;if(a){const c=dt(r)?i.image:this.converter.convert(i.image,s);this.assign(a.operator,a.feature,c,s,o)}else if(Cr(l)){let c=i.image;dt(r)||(c=this.converter.convert(c,s).toString()),l.value+=c}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,t,r,i){let s;this.isRecording()||(s=this.nodeBuilder.buildCompositeNode(r));const a=this.wrapper.wrapSubrule(e,t,i);!this.isRecording()&&s&&s.length>0&&this.performSubruleAssignment(a,r,s)}performSubruleAssignment(e,t,r){const{assignment:i,isCrossRef:s}=this.getAssignment(t);if(i)this.assign(i.operator,i.feature,e,r,s);else if(!i){const a=this.current;if(Cr(a))a.value+=e.toString();else if(typeof e=="object"&&e){const o=e.$type,l=this.assignWithoutOverride(e,a);o&&(l.$type=o);const c=l;this.stack.pop(),this.stack.push(c)}}}action(e,t){if(!this.isRecording()){let r=this.current;if(!r.$cstNode&&t.feature&&t.operator){r=this.construct(!1);const s=r.$cstNode.feature;this.nodeBuilder.buildCompositeNode(s)}const i={$type:e};this.stack.pop(),this.stack.push(i),t.feature&&t.operator&&this.assign(t.operator,t.feature,r,r.$cstNode,!1)}}construct(e=!0){if(this.isRecording())return;const t=this.current;return od(t),this.nodeBuilder.construct(t),e&&this.stack.pop(),Cr(t)?this.converter.convert(t.value,t.$cstNode):(cd(this.astReflection,t),t)}getAssignment(e){if(!this.assignmentMap.has(e)){const t=ar(e,ut);this.assignmentMap.set(e,{assignment:t,isCrossRef:t?bi(t.terminal):!1})}return this.assignmentMap.get(e)}assign(e,t,r,i,s){const a=this.current;let o;switch(s&&typeof r=="string"?o=this.linker.buildReference(a,t,i,r):o=r,e){case"=":{a[t]=o;break}case"?=":{a[t]=!0;break}case"+=":Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(const[r,i]of Object.entries(t)){const s=e[r];s===void 0?e[r]=i:Array.isArray(s)&&Array.isArray(i)&&(i.push(...s),e[r]=i)}return e}get definitionErrors(){return this.wrapper.definitionErrors}}class Cp{buildMismatchTokenMessage(e){return _t.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return _t.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return _t.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return _t.buildEarlyExitMessage(e)}}class rc extends Cp{buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}}class wp extends nc{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const t=this.lexer.tokenize(e);return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){const r=this.wrapper.DEFINE_RULE(tc(e.name),this.startImplementation(t).bind(this));return e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{const r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}}const Op={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new rc};class Lp extends Uh{constructor(e,t){const r=t&&"maxLookahead"in t;super(e,Object.assign(Object.assign(Object.assign({},Op),{lookaheadStrategy:r?new Pi({maxLookahead:t.maxLookahead}):new op}),t))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t){return this.RULE(e,t)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}}function ic(n,e,t){return $p({parser:e,tokens:t,rules:new Map,ruleNames:new Map},n),e}function $p(n,e){const t=nl(e,!1),r=Q(e.rules).filter(Se).filter(i=>t.has(i));for(const i of r){const s=Object.assign(Object.assign({},n),{consume:1,optional:1,subrule:1,many:1,or:1});s.rules.set(i.name,n.parser.rule(i,pt(s,i.definition)))}}function pt(n,e,t=!1){let r;if(dt(e))r=Fp(n,e);else if(sr(e))r=Pp(n,e);else if(ut(e))r=pt(n,e.terminal);else if(bi(e))r=sc(n,e);else if(ft(e))r=Mp(n,e);else if(Po(e))r=jp(n,e);else if(Yo(e))r=Gp(n,e);else if(Ni(e))r=Up(n,e);else if(Zu(e)){const i=n.consume++;r=()=>n.parser.consume(i,tt,e)}else throw new To(e.$cstNode,`Unexpected element type: ${e.$type}`);return ac(n,t?void 0:Xn(e),r,e.cardinality)}function Pp(n,e){const t=cr(e);return()=>n.parser.action(t,e)}function Mp(n,e){const t=e.rule.ref;if(Se(t)){const r=n.subrule++,i=e.arguments.length>0?Dp(t,e.arguments):()=>({});return s=>n.parser.subrule(r,oc(n,t),e,i(s))}else if(gt(t)){const r=n.consume++,i=ui(n,t.name);return()=>n.parser.consume(r,i,e)}else if(t)ir();else throw new To(e.$cstNode,`Undefined rule type: ${e.$type}`)}function Dp(n,e){const t=e.map(r=>We(r.value));return r=>{const i={};for(let s=0;se(r)||t(r)}else if(Gu(n)){const e=We(n.left),t=We(n.right);return r=>e(r)&&t(r)}else if(Bu(n)){const e=We(n.value);return t=>!e(t)}else if(Wu(n)){const e=n.parameter.ref.name;return t=>t!==void 0&&t[e]===!0}else if(ju(n)){const e=!!n.true;return()=>e}ir()}function jp(n,e){if(e.elements.length===1)return pt(n,e.elements[0]);{const t=[];for(const i of e.elements){const s={ALT:pt(n,i,!0)},a=Xn(i);a&&(s.GATE=We(a)),t.push(s)}const r=n.or++;return i=>n.parser.alternatives(r,t.map(s=>{const a={ALT:()=>s.ALT(i)},o=s.GATE;return o&&(a.GATE=()=>o(i)),a}))}}function Gp(n,e){if(e.elements.length===1)return pt(n,e.elements[0]);const t=[];for(const o of e.elements){const l={ALT:pt(n,o,!0)},c=Xn(o);c&&(l.GATE=We(c)),t.push(l)}const r=n.or++,i=(o,l)=>{const c=l.getRuleStack().join("-");return`uGroup_${o}_${c}`},s=o=>n.parser.alternatives(r,t.map((l,c)=>{const u={ALT:()=>!0},d=n.parser;u.ALT=()=>{if(l.ALT(o),!d.isRecording()){const h=i(r,d);d.unorderedGroups.get(h)||d.unorderedGroups.set(h,[]);const m=d.unorderedGroups.get(h);typeof(m==null?void 0:m[c])>"u"&&(m[c]=!0)}};const f=l.GATE;return f?u.GATE=()=>f(o):u.GATE=()=>{const h=d.unorderedGroups.get(i(r,d));return!(h!=null&&h[c])},u})),a=ac(n,Xn(e),s,"*");return o=>{a(o),n.parser.isRecording()||n.parser.unorderedGroups.delete(i(r,n.parser))}}function Up(n,e){const t=e.elements.map(r=>pt(n,r));return r=>t.forEach(i=>i(r))}function Xn(n){if(Ni(n))return n.guardCondition}function sc(n,e,t=e.terminal){if(t)if(ft(t)&&Se(t.rule.ref)){const r=n.subrule++;return i=>n.parser.subrule(r,oc(n,t.rule.ref),e,i)}else if(ft(t)&>(t.rule.ref)){const r=n.consume++,i=ui(n,t.rule.ref.name);return()=>n.parser.consume(r,i,e)}else if(dt(t)){const r=n.consume++,i=ui(n,t.value);return()=>n.parser.consume(r,i,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);const r=sl(e.type.ref),i=r==null?void 0:r.terminal;if(!i)throw new Error("Could not find name assignment for type: "+cr(e.type.ref));return sc(n,e,i)}}function Fp(n,e){const t=n.consume++,r=n.tokens[e.value];if(!r)throw new Error("Could not find token for keyword: "+e.value);return()=>n.parser.consume(t,r,e)}function ac(n,e,t,r){const i=e&&We(e);if(!r)if(i){const s=n.or++;return a=>n.parser.alternatives(s,[{ALT:()=>t(a),GATE:()=>i(a)},{ALT:Ls(),GATE:()=>!i(a)}])}else return t;if(r==="*"){const s=n.many++;return a=>n.parser.many(s,{DEF:()=>t(a),GATE:i?()=>i(a):void 0})}else if(r==="+"){const s=n.many++;if(i){const a=n.or++;return o=>n.parser.alternatives(a,[{ALT:()=>n.parser.atLeastOne(s,{DEF:()=>t(o)}),GATE:()=>i(o)},{ALT:Ls(),GATE:()=>!i(o)}])}else return a=>n.parser.atLeastOne(s,{DEF:()=>t(a)})}else if(r==="?"){const s=n.optional++;return a=>n.parser.optional(s,{DEF:()=>t(a),GATE:i?()=>i(a):void 0})}else ir()}function oc(n,e){const t=Bp(n,e),r=n.rules.get(t);if(!r)throw new Error(`Rule "${t}" not found."`);return r}function Bp(n,e){if(Se(e))return e.name;if(n.ruleNames.has(e))return n.ruleNames.get(e);{let t=e,r=t.$container,i=e.$type;for(;!Se(r);)(Ni(r)||Po(r)||Yo(r))&&(i=r.elements.indexOf(t).toString()+":"+i),t=r,r=r.$container;return i=r.name+":"+i,n.ruleNames.set(e,i),i}}function ui(n,e){const t=n.tokens[e];if(!t)throw new Error(`Token "${e}" not found."`);return t}function Hp(n){const e=n.Grammar,t=n.parser.Lexer,r=new wp(n);return ic(e,r,t.definition),r.finalize(),r}function Vp(n){const e=Wp(n);return e.finalize(),e}function Wp(n){const e=n.Grammar,t=n.parser.Lexer,r=new xp(n);return ic(e,r,t.definition)}class lc{buildTokens(e,t){const r=Q(nl(e,!1)),i=this.buildTerminalTokens(r),s=this.buildKeywordTokens(r,i,t);return i.forEach(a=>{const o=a.PATTERN;typeof o=="object"&&o&&"test"in o&&cs(o)?s.unshift(a):s.push(a)}),s}buildTerminalTokens(e){return e.filter(gt).filter(t=>!t.fragment).map(t=>this.buildTerminalToken(t)).toArray()}buildTerminalToken(e){const t=xi(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,i={name:e.name,PATTERN:r,LINE_BREAKS:!0};return e.hidden&&(i.GROUP=cs(t)?de.SKIPPED:"hidden"),i}requiresCustomPattern(e){return e.flags.includes("u")?!0:!!(e.source.includes("?<=")||e.source.includes("?(t.lastIndex=i,t.exec(r))}buildKeywordTokens(e,t,r){return e.filter(Se).flatMap(i=>pn(i).filter(dt)).distinct(i=>i.value).toArray().sort((i,s)=>s.value.length-i.value.length).map(i=>this.buildKeywordToken(i,t,!!(r!=null&&r.caseInsensitive)))}buildKeywordToken(e,t,r){return{name:e.value,PATTERN:this.buildKeywordPattern(e,r),LONGER_ALT:this.findLongerAlt(e,t)}}buildKeywordPattern(e,t){return t?new RegExp(yd(e.value)):e.value}findLongerAlt(e,t){return t.reduce((r,i)=>{const s=i==null?void 0:i.PATTERN;return s!=null&&s.source&&Td("^"+s.source+"$",e.value)&&r.push(i),r},[])}}class cc{convert(e,t){let r=t.grammarSource;if(bi(r)&&(r=Rd(r)),ft(r)){const i=r.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,t)}return e}runConverter(e,t,r){var i;switch(e.name.toUpperCase()){case"INT":return Ve.convertInt(t);case"STRING":return Ve.convertString(t);case"ID":return Ve.convertID(t)}switch((i=xd(e))===null||i===void 0?void 0:i.toLowerCase()){case"number":return Ve.convertNumber(t);case"boolean":return Ve.convertBoolean(t);case"bigint":return Ve.convertBigint(t);case"date":return Ve.convertDate(t);default:return t}}}var Ve;(function(n){function e(c){let u="";for(let d=1;duc(e))}se.stringArray=Xp;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.Emitter=Vt.Event=void 0;const Jp=yr;var Ga;(function(n){const e={dispose(){}};n.None=function(){return e}})(Ga||(Vt.Event=Ga={}));class Qp{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i{this._callbacks||(this._callbacks=new Qp),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=Tr._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}Vt.Emitter=Tr;Tr._noop=function(){};var X;Object.defineProperty(dn,"__esModule",{value:!0});var hi=dn.CancellationTokenSource=X=dn.CancellationToken=void 0;const Zp=yr,em=se,pi=Vt;var Jn;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:pi.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:pi.Event.None});function e(t){const r=t;return r&&(r===n.None||r===n.Cancelled||em.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(Jn||(X=dn.CancellationToken=Jn={}));const tm=Object.freeze(function(n,e){const t=(0,Zp.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}});class Ua{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?tm:(this._emitter||(this._emitter=new pi.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class nm{get token(){return this._token||(this._token=new Ua),this._token}cancel(){this._token?this._token.cancel():this._token=Jn.Cancelled}dispose(){this._token?this._token instanceof Ua&&this._token.dispose():this._token=Jn.None}}hi=dn.CancellationTokenSource=nm;function rm(){return new Promise(n=>{typeof setImmediate>"u"?setTimeout(n,0):setImmediate(n)})}let Fa=0,im=10;const Qn=Symbol("OperationCancelled");function Hi(n){return n===Qn}async function Le(n){if(n===X.None)return;const e=Date.now();if(e-Fa>=im&&(Fa=e,await rm()),n.isCancellationRequested)throw Qn}class Vi{constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}}class fn{constructor(e,t,r,i){this._uri=e,this._languageId=t,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){for(const r of e)if(fn.isIncremental(r)){const i=hc(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let c=this._lineOffsets;const u=Ba(r.text,!1,s);if(l-o===u.length)for(let f=0,h=u.length;fe?i=a:r=a+1}const s=r-1;return e=this.ensureBeforeEOL(e,t[s]),{line:s,character:e-t[s]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const r=t[e.line];if(e.character<=0)return r;const i=e.line+1t&&fc(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength=="number")}static isFull(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range===void 0&&t.rangeLength===void 0}}var mi;(function(n){function e(i,s,a,o){return new fn(i,s,a,o)}n.create=e;function t(i,s,a){if(i instanceof fn)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}n.update=t;function r(i,s){const a=i.getText(),o=gi(s.map(sm),(u,d)=>{const f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f});let l=0;const c=[];for(const u of o){const d=i.offsetAt(u.range.start);if(dl&&c.push(a.substring(l,d)),u.newText.length&&c.push(u.newText),l=i.offsetAt(u.range.end)}return c.push(a.substr(l)),c.join("")}n.applyEdits=r})(mi||(mi={}));function gi(n,e){if(n.length<=1)return n;const t=n.length/2|0,r=n.slice(0,t),i=n.slice(t);gi(r,e),gi(i,e);let s=0,a=0,o=0;for(;st.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function sm(n){const e=hc(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var wr={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},pc;(()=>{var n={470:i=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function a(l,c){for(var u,d="",f=0,h=-1,m=0,g=0;g<=l.length;++g){if(g2){var _=d.lastIndexOf("/");if(_!==d.length-1){_===-1?(d="",f=0):f=(d=d.slice(0,_)).length-1-d.lastIndexOf("/"),h=g,m=0;continue}}else if(d.length===2||d.length===1){d="",f=0,h=g,m=0;continue}}c&&(d.length>0?d+="/..":d="..",f=2)}else d.length>0?d+="/"+l.slice(h+1,g):d=l.slice(h+1,g),f=g-h-1;h=g,m=0}else u===46&&m!==-1?++m:m=-1}return d}var o={resolve:function(){for(var l,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var f;d>=0?f=arguments[d]:(l===void 0&&(l=wr.cwd()),f=l),s(f),f.length!==0&&(c=f+"/"+c,u=f.charCodeAt(0)===47)}return c=a(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,u=l.charCodeAt(l.length-1)===47;return(l=a(l,!c)).length!==0||c||(l="."),l.length>0&&u&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c0&&(l===void 0?l=u:l+="/"+u)}return l===void 0?".":o.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=o.resolve(l))===(c=o.resolve(c)))return"";for(var u=1;ug){if(c.charCodeAt(h+y)===47)return c.slice(h+y+1);if(y===0)return c.slice(h+y)}else f>g&&(l.charCodeAt(u+y)===47?_=y:y===0&&(_=0));break}var E=l.charCodeAt(u+y);if(E!==c.charCodeAt(h+y))break;E===47&&(_=y)}var v="";for(y=u+_+1;y<=d;++y)y!==d&&l.charCodeAt(y)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+c.slice(h+_):(h+=_,c.charCodeAt(h)===47&&++h,c.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),u=c===47,d=-1,f=!0,h=l.length-1;h>=1;--h)if((c=l.charCodeAt(h))===47){if(!f){d=h;break}}else f=!1;return d===-1?u?"/":".":u&&d===1?"//":l.slice(0,d)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var u,d=0,f=-1,h=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var m=c.length-1,g=-1;for(u=l.length-1;u>=0;--u){var _=l.charCodeAt(u);if(_===47){if(!h){d=u+1;break}}else g===-1&&(h=!1,g=u+1),m>=0&&(_===c.charCodeAt(m)?--m==-1&&(f=u):(m=-1,f=g))}return d===f?f=g:f===-1&&(f=l.length),l.slice(d,f)}for(u=l.length-1;u>=0;--u)if(l.charCodeAt(u)===47){if(!h){d=u+1;break}}else f===-1&&(h=!1,f=u+1);return f===-1?"":l.slice(d,f)},extname:function(l){s(l);for(var c=-1,u=0,d=-1,f=!0,h=0,m=l.length-1;m>=0;--m){var g=l.charCodeAt(m);if(g!==47)d===-1&&(f=!1,d=m+1),g===46?c===-1?c=m:h!==1&&(h=1):c!==-1&&(h=-1);else if(!f){u=m+1;break}}return c===-1||d===-1||h===0||h===1&&c===d-1&&c===u+1?"":l.slice(c,d)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,u){var d=u.dir||u.root,f=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+f:d+"/"+f:f}(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var u,d=l.charCodeAt(0),f=d===47;f?(c.root="/",u=1):u=0;for(var h=-1,m=0,g=-1,_=!0,y=l.length-1,E=0;y>=u;--y)if((d=l.charCodeAt(y))!==47)g===-1&&(_=!1,g=y+1),d===46?h===-1?h=y:E!==1&&(E=1):h!==-1&&(E=-1);else if(!_){m=y+1;break}return h===-1||g===-1||E===0||E===1&&h===g-1&&h===m+1?g!==-1&&(c.base=c.name=m===0&&f?l.slice(1,g):l.slice(m,g)):(m===0&&f?(c.name=l.slice(1,h),c.base=l.slice(1,g)):(c.name=l.slice(m,h),c.base=l.slice(m,g)),c.ext=l.slice(h,g)),m>0?c.dir=l.slice(0,m-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},e={};function t(i){var s=e[i];if(s!==void 0)return s.exports;var a=e[i]={exports:{}};return n[i](a,a.exports,t),a.exports}t.d=(i,s)=>{for(var a in s)t.o(s,a)&&!t.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},t.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),t.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;t.r(r),t.d(r,{URI:()=>f,Utils:()=>be}),typeof wr=="object"?i=wr.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function l(A,T){if(!A.scheme&&T)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!s.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!a.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",u="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{constructor(T,R,N,L,O,w=!1){Je(this,"scheme");Je(this,"authority");Je(this,"path");Je(this,"query");Je(this,"fragment");typeof T=="object"?(this.scheme=T.scheme||c,this.authority=T.authority||c,this.path=T.path||c,this.query=T.query||c,this.fragment=T.fragment||c):(this.scheme=function(ye,z){return ye||z?ye:"file"}(T,w),this.authority=R||c,this.path=function(ye,z){switch(ye){case"https":case"http":case"file":z?z[0]!==u&&(z=u+z):z=u}return z}(this.scheme,N||c),this.query=L||c,this.fragment=O||c,l(this,w))}static isUri(T){return T instanceof f||!!T&&typeof T.authority=="string"&&typeof T.fragment=="string"&&typeof T.path=="string"&&typeof T.query=="string"&&typeof T.scheme=="string"&&typeof T.fsPath=="string"&&typeof T.with=="function"&&typeof T.toString=="function"}get fsPath(){return E(this)}with(T){if(!T)return this;let{scheme:R,authority:N,path:L,query:O,fragment:w}=T;return R===void 0?R=this.scheme:R===null&&(R=c),N===void 0?N=this.authority:N===null&&(N=c),L===void 0?L=this.path:L===null&&(L=c),O===void 0?O=this.query:O===null&&(O=c),w===void 0?w=this.fragment:w===null&&(w=c),R===this.scheme&&N===this.authority&&L===this.path&&O===this.query&&w===this.fragment?this:new m(R,N,L,O,w)}static parse(T,R=!1){const N=d.exec(T);return N?new m(N[2]||c,ne(N[4]||c),ne(N[5]||c),ne(N[7]||c),ne(N[9]||c),R):new m(c,c,c,c,c)}static file(T){let R=c;if(i&&(T=T.replace(/\\/g,u)),T[0]===u&&T[1]===u){const N=T.indexOf(u,2);N===-1?(R=T.substring(2),T=u):(R=T.substring(2,N),T=T.substring(N)||u)}return new m("file",R,T,c,c)}static from(T){const R=new m(T.scheme,T.authority,T.path,T.query,T.fragment);return l(R,!0),R}toString(T=!1){return v(this,T)}toJSON(){return this}static revive(T){if(T){if(T instanceof f)return T;{const R=new m(T);return R._formatted=T.external,R._fsPath=T._sep===h?T.fsPath:null,R}}return T}}const h=i?1:void 0;class m extends f{constructor(){super(...arguments);Je(this,"_formatted",null);Je(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=E(this)),this._fsPath}toString(R=!1){return R?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const R={$mid:1};return this._fsPath&&(R.fsPath=this._fsPath,R._sep=h),this._formatted&&(R.external=this._formatted),this.path&&(R.path=this.path),this.scheme&&(R.scheme=this.scheme),this.authority&&(R.authority=this.authority),this.query&&(R.query=this.query),this.fragment&&(R.fragment=this.fragment),R}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(A,T,R){let N,L=-1;for(let O=0;O=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57||w===45||w===46||w===95||w===126||T&&w===47||R&&w===91||R&&w===93||R&&w===58)L!==-1&&(N+=encodeURIComponent(A.substring(L,O)),L=-1),N!==void 0&&(N+=A.charAt(O));else{N===void 0&&(N=A.substr(0,O));const ye=g[w];ye!==void 0?(L!==-1&&(N+=encodeURIComponent(A.substring(L,O)),L=-1),N+=ye):L===-1&&(L=O)}}return L!==-1&&(N+=encodeURIComponent(A.substring(L))),N!==void 0?N:A}function y(A){let T;for(let R=0;R1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(R=R.replace(/\//g,"\\")),R}function v(A,T){const R=T?y:_;let N="",{scheme:L,authority:O,path:w,query:ye,fragment:z}=A;if(L&&(N+=L,N+=":"),(O||L==="file")&&(N+=u,N+=u),O){let B=O.indexOf("@");if(B!==-1){const at=O.substr(0,B);O=O.substr(B+1),B=at.lastIndexOf(":"),B===-1?N+=R(at,!1,!1):(N+=R(at.substr(0,B),!1,!1),N+=":",N+=R(at.substr(B+1),!1,!0)),N+="@"}O=O.toLowerCase(),B=O.lastIndexOf(":"),B===-1?N+=R(O,!1,!0):(N+=R(O.substr(0,B),!1,!0),N+=O.substr(B))}if(w){if(w.length>=3&&w.charCodeAt(0)===47&&w.charCodeAt(2)===58){const B=w.charCodeAt(1);B>=65&&B<=90&&(w=`/${String.fromCharCode(B+32)}:${w.substr(3)}`)}else if(w.length>=2&&w.charCodeAt(1)===58){const B=w.charCodeAt(0);B>=65&&B<=90&&(w=`${String.fromCharCode(B+32)}:${w.substr(2)}`)}N+=R(w,!0,!1)}return ye&&(N+="?",N+=R(ye,!1,!1)),z&&(N+="#",N+=T?z:_(z,!1,!1)),N}function I(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+I(A.substr(3)):A}}const j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ne(A){return A.match(j)?A.replace(j,T=>I(T)):A}var Ce=t(470);const ge=Ce.posix||Ce,De="/";var be;(function(A){A.joinPath=function(T,...R){return T.with({path:ge.join(T.path,...R)})},A.resolvePath=function(T,...R){let N=T.path,L=!1;N[0]!==De&&(N=De+N,L=!0);let O=ge.resolve(N,...R);return L&&O[0]===De&&!T.authority&&(O=O.substring(1)),T.with({path:O})},A.dirname=function(T){if(T.path.length===0||T.path===De)return T;let R=ge.dirname(T.path);return R.length===1&&R.charCodeAt(0)===46&&(R=""),T.with({path:R})},A.basename=function(T){return ge.basename(T.path)},A.extname=function(T){return ge.extname(T.path)}})(be||(be={}))})(),pc=r})();const{URI:Wt,Utils:sn}=pc;var rt;(function(n){n.basename=sn.basename,n.dirname=sn.dirname,n.extname=sn.extname,n.joinPath=sn.joinPath,n.resolvePath=sn.resolvePath;function e(r,i){return(r==null?void 0:r.toString())===(i==null?void 0:i.toString())}n.equals=e;function t(r,i){const s=typeof r=="string"?r:r.path,a=typeof i=="string"?i:i.path,o=s.split("/").filter(f=>f.length>0),l=a.split("/").filter(f=>f.length>0);let c=0;for(;ci??(i=mi.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}}class om{constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory}get all(){return Q(this.documentMap.values())}addDocument(e){const t=e.uri.toString();if(this.documentMap.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentMap.set(t,e)}getDocument(e){const t=e.toString();return this.documentMap.get(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(i),i}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,r.precomputedScopes=void 0,r.references=[],r.diagnostics=void 0),r}deleteDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,this.documentMap.delete(t)),r}}class lm{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,t=X.None){for(const r of Et(e.parseResult.value))await Le(t),Zo(r).forEach(i=>this.doLink(i,e))}doLink(e,t){const r=e.reference;if(r._ref===void 0)try{const i=this.getCandidate(e);if(kn(i))r._ref=i;else if(r._nodeDescription=i,this.langiumDocuments().hasDocument(i.documentUri)){const s=this.loadAstNode(i);r._ref=s??this.createLinkingError(e,i)}}catch(i){r._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${r.$refText}': ${i}`})}t.references.push(r)}unlink(e){for(const t of e.references)delete t._ref,delete t._nodeDescription;e.references=[]}getCandidate(e){const r=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return r??this.createLinkingError(e)}buildReference(e,t,r,i){const s=this,a={$refNode:r,$refText:i,get ref(){var o;if(ae(this._ref))return this._ref;if(Nu(this._nodeDescription)){const l=s.loadAstNode(this._nodeDescription);this._ref=l??s.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){const l=s.getLinkedNode({reference:a,container:e,property:t});if(l.error&&Ue(e).state=e.end)return s.ref}}if(r){const i=this.nameProvider.getNameNode(r);if(i&&(i===e||Su(e,i)))return r}}}findDeclarationNode(e){const t=this.findDeclaration(e);if(t!=null&&t.$cstNode){const r=this.nameProvider.getNameNode(t);return r??t.$cstNode}}findReferences(e,t){const r=[];if(t.includeDeclaration){const s=this.getReferenceToSelf(e);s&&r.push(s)}let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(i=i.filter(s=>rt.equals(s.sourceUri,t.documentUri))),r.push(...i),Q(r)}getReferenceToSelf(e){const t=this.nameProvider.getNameNode(e);if(t){const r=Ue(e),i=this.nodeLocator.getAstNodePath(e);return{sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:Ln(t),local:!0}}}}class Wi{constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return Pr.sum(Q(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{const r=this.map.get(e);if(r){const i=r.indexOf(t);if(i>=0)return r.length===1?this.map.delete(e):r.splice(i,1),!0}return!1}}get(e){var t;return(t=this.map.get(e))!==null&&t!==void 0?t:[]}has(e,t){if(t===void 0)return this.map.has(e);{const r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(i=>e(i,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Q(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return Q(this.map.keys())}values(){return Q(this.map.values()).flat()}entriesGroupedByKey(){return Q(this.map.entries())}}class Ha{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}}class fm{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=X.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,t)}async computeExportsForNode(e,t,r=ki,i=X.None){const s=[];this.exportNode(e,s,t);for(const a of r(e))await Le(i),this.exportNode(a,s,t);return s}exportNode(e,t,r){const i=this.nameProvider.getName(e);i&&t.push(this.descriptions.createDescription(e,i,r))}async computeLocalScopes(e,t=X.None){const r=e.parseResult.value,i=new Wi;for(const s of pn(r))await Le(t),this.processNode(s,e,i);return i}processNode(e,t,r){const i=e.$container;if(i){const s=this.nameProvider.getName(e);s&&r.add(i,this.descriptions.createDescription(e,s,t))}}}class Va{constructor(e,t,r){var i;this.elements=e,this.outerScope=t,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?this.elements.find(r=>r.name.toLowerCase()===e.toLowerCase()):this.elements.find(r=>r.name===e);if(t)return t;if(this.outerScope)return this.outerScope.getElement(e)}}class hm{constructor(e,t,r){var i;this.elements=new Map,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1;for(const s of e){const a=this.caseInsensitive?s.name.toLowerCase():s.name;this.elements.set(a,s)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=Q(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}}class mc{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}}class pm extends mc{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}}class mm extends mc{constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(t))return i.get(t);if(r){const s=r();return i.set(t,s),s}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}}class gm extends pm{constructor(e){super(),this.onDispose(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class ym{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new gm(e.shared)}getScope(e){const t=[],r=this.reflection.getReferenceType(e),i=Ue(e.container).precomputedScopes;if(i){let a=e.container;do{const o=i.get(a);o.length>0&&t.push(Q(o).filter(l=>this.reflection.isSubtype(l.type,r))),a=a.$container}while(a)}let s=this.getGlobalScope(r,e);for(let a=t.length-1;a>=0;a--)s=this.createScope(t[a],s);return s}createScope(e,t,r){return new Va(Q(e),t,r)}createScopeForNodes(e,t,r){const i=Q(e).map(s=>{const a=this.nameProvider.getName(s);if(a)return this.descriptions.createDescription(s,a)}).nonNullable();return new Va(i,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new hm(this.indexManager.allElements(e)))}}function Tm(n){return typeof n.$comment=="string"}function Wa(n){return typeof n=="object"&&!!n&&("$ref"in n||"$error"in n)}class vm{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t={}){const r=t==null?void 0:t.replacer,i=(a,o)=>this.replacer(a,o,t),s=r?(a,o)=>r(a,o,i):i;try{return this.currentDocument=Ue(e),JSON.stringify(e,s,t==null?void 0:t.space)}finally{this.currentDocument=void 0}}deserialize(e,t={}){const r=JSON.parse(e);return this.linkNode(r,r,t),r}replacer(e,t,{refText:r,sourceText:i,textRegions:s,comments:a,uriConverter:o}){var l,c,u,d;if(!this.ignoreProperties.has(e))if(Ge(t)){const f=t.ref,h=r?t.$refText:void 0;if(f){const m=Ue(f);let g="";this.currentDocument&&this.currentDocument!==m&&(o?g=o(m.uri,t):g=m.uri.toString());const _=this.astNodeLocator.getAstNodePath(f);return{$ref:`${g}#${_}`,$refText:h}}else return{$error:(c=(l=t.error)===null||l===void 0?void 0:l.message)!==null&&c!==void 0?c:"Could not resolve reference",$refText:h}}else if(ae(t)){let f;if(s&&(f=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},t)),(!e||t.$document)&&(f!=null&&f.$textRegion)&&(f.$textRegion.documentURI=(u=this.currentDocument)===null||u===void 0?void 0:u.uri.toString())),i&&!e&&(f??(f=Object.assign({},t)),f.$sourceText=(d=t.$cstNode)===null||d===void 0?void 0:d.text),a){f??(f=Object.assign({},t));const h=this.commentProvider.getComment(t);h&&(f.$comment=h.replace(/\r/g,""))}return f??t}else return t}addAstNodeRegionWithAssignmentsTo(e){const t=r=>({offset:r.offset,end:r.end,length:r.length,range:r.range});if(e.$cstNode){const r=e.$textRegion=t(e.$cstNode),i=r.assignments={};return Object.keys(e).filter(s=>!s.startsWith("$")).forEach(s=>{const a=bd(e.$cstNode,s).map(t);a.length!==0&&(i[s]=a)}),e}}linkNode(e,t,r,i,s,a){for(const[l,c]of Object.entries(e))if(Array.isArray(c))for(let u=0;u{try{await e.call(t,r,i,s)}catch(a){if(Hi(a))throw a;console.error("An error occurred during validation:",a);const o=a instanceof Error?a.message:String(a);a instanceof Error&&a.stack&&console.error(a.stack),i("error","An error occurred during validation: "+o,{node:r})}}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=Q(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(i=>t.includes(i.category))),r.map(i=>i.check)}}class Rm{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,t={},r=X.None){const i=e.parseResult,s=[];if(await Le(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(i,s,t),t.stopAfterLexingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LexingError})||(this.processParsingErrors(i,s,t),t.stopAfterParsingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.ParsingError}))||(this.processLinkingErrors(e,s,t),t.stopAfterLinkingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LinkingError}))))return s;try{s.push(...await this.validateAst(i.value,t,r))}catch(a){if(Hi(a))throw a;console.error("An error occurred during validation:",a)}return await Le(r),s}processLexingErrors(e,t,r){for(const i of e.lexerErrors){const s={severity:Or("error"),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:Ka(Qe.LexingError),source:this.getSource()};t.push(s)}}processParsingErrors(e,t,r){for(const i of e.parserErrors){let s;if(isNaN(i.token.startOffset)){if("previousToken"in i){const a=i.previousToken;if(isNaN(a.startOffset)){const o={line:0,character:0};s={start:o,end:o}}else{const o={line:a.endLine-1,character:a.endColumn};s={start:o,end:o}}}}else s=Dr(i.token);if(s){const a={severity:Or("error"),range:s,message:i.message,data:Ka(Qe.ParsingError),source:this.getSource()};t.push(a)}}}processLinkingErrors(e,t,r){for(const i of e.references){const s=i.error;if(s){const a={node:s.container,property:s.property,index:s.index,data:{code:Qe.LinkingError,containerType:s.container.$type,property:s.property,refText:s.reference.$refText}};t.push(this.toDiagnostic("error",s.message,a))}}}async validateAst(e,t,r=X.None){const i=[],s=(a,o,l)=>{i.push(this.toDiagnostic(a,o,l))};return await Promise.all(Et(e).map(async a=>{await Le(r);const o=this.validationRegistry.getChecks(a.$type,t.categories);for(const l of o)await l(a,s,r)})),i}toDiagnostic(e,t,r){return{message:t,range:Am(r),severity:Or(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function Am(n){if(n.range)return n.range;let e;return typeof n.property=="string"?e=il(n.node.$cstNode,n.property,n.index):typeof n.keyword=="string"&&(e=Nd(n.node.$cstNode,n.keyword,n.index)),e??(e=n.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Or(n){switch(n){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+n)}}var Qe;(function(n){n.LexingError="lexing-error",n.ParsingError="parsing-error",n.LinkingError="linking-error"})(Qe||(Qe={}));class bm{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r=Ue(e)){t??(t=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${i} has no name.`);let s;const a=()=>{var o;return s??(s=Ln((o=this.nameProvider.getNameNode(e))!==null&&o!==void 0?o:e.$cstNode))};return{node:e,name:t,get nameSegment(){return a()},selectionSegment:Ln(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}}class Nm{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=X.None){const r=[],i=e.parseResult.value;for(const s of Et(i))await Le(t),Zo(s).filter(a=>!kn(a)).forEach(a=>{const o=this.createDescription(a);o&&r.push(o)});return r}createDescription(e){const t=e.reference.$nodeDescription,r=e.reference.$refNode;if(!t||!r)return;const i=Ue(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:t.documentUri,targetPath:t.path,segment:Ln(r),local:rt.equals(t.documentUri,i)}}}class km{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((i,s)=>{if(!i||s.length===0)return i;const a=s.indexOf(this.indexSeparator);if(a>0){const o=s.substring(0,a),l=parseInt(s.substring(a+1)),c=i[o];return c==null?void 0:c[l]}return i[s]},e)}}class Im{constructor(e){this._ready=new Vi,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t,r;this.workspaceConfig=(r=(t=e.capabilities.workspace)===null||t===void 0?void 0:t.configuration)!==null&&r!==void 0?r:!1}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((i,s)=>{this.updateSectionConfiguration(i.section,r[s])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(t=>{this.updateSectionConfiguration(t,e.settings[t])})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}}var er;(function(n){function e(t){return{dispose:async()=>await t()}}n.create=e})(er||(er={}));class Sm{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Wi,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=U.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=X.None){var i,s;for(const a of e){const o=a.uri.toString();if(a.state===U.Validated){if(typeof t.validation=="boolean"&&t.validation)a.state=U.IndexedReferences,a.diagnostics=void 0,this.buildState.delete(o);else if(typeof t.validation=="object"){const l=this.buildState.get(o),c=(i=l==null?void 0:l.result)===null||i===void 0?void 0:i.validationChecks;if(c){const d=((s=t.validation.categories)!==null&&s!==void 0?s:Zn.all).filter(f=>!c.includes(f));d.length>0&&(this.buildState.set(o,{completed:!1,options:{validation:Object.assign(Object.assign({},t.validation),{categories:d})},result:l.result}),a.state=U.IndexedReferences)}}}else this.buildState.delete(o)}this.currentState=U.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=X.None){this.currentState=U.Changed;for(const a of t)this.langiumDocuments.deleteDocument(a),this.buildState.delete(a.toString()),this.indexManager.remove(a);for(const a of e){if(!this.langiumDocuments.invalidateDocument(a)){const l=this.langiumDocumentFactory.fromModel({$type:"INVALID"},a);l.state=U.Changed,this.langiumDocuments.addDocument(l)}this.buildState.delete(a.toString())}const i=Q(e).concat(t).map(a=>a.toString()).toSet();this.langiumDocuments.all.filter(a=>!i.has(a.uri.toString())&&this.shouldRelink(a,i)).forEach(a=>{this.serviceRegistry.getServices(a.uri).references.Linker.unlink(a),a.state=Math.min(a.state,U.ComputedScopes),a.diagnostics=void 0}),await this.emitUpdate(e,t),await Le(r);const s=this.langiumDocuments.all.filter(a=>{var o;return a.stater(e,t)))}shouldRelink(e,t){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),er.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,U.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,U.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,U.ComputedScopes,r,async s=>{const a=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.precomputedScopes=await a.computeLocalScopes(s,r)}),await this.runCancelable(e,U.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(e,U.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));const i=e.filter(s=>this.shouldValidate(s));await this.runCancelable(i,U.Validated,r,s=>this.validate(s,r));for(const s of e){const a=this.buildState.get(s.uri.toString());a&&(a.completed=!0)}}prepareBuild(e,t){for(const r of e){const i=r.uri.toString(),s=this.buildState.get(i);(!s||s.completed)&&this.buildState.set(i,{completed:!1,options:t,result:s==null?void 0:s.result})}}async runCancelable(e,t,r,i){const s=e.filter(a=>a.state{this.buildPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let i;if(t&&"path"in t?i=t:r=t,r??(r=X.None),i){const s=this.langiumDocuments.getDocument(i);if(s&&s.state>e)return Promise.resolve(i)}return this.currentState>=e?Promise.resolve(void 0):r.isCancellationRequested?Promise.reject(Qn):new Promise((s,a)=>{const o=this.onBuildPhase(e,()=>{if(o.dispose(),l.dispose(),i){const c=this.langiumDocuments.getDocument(i);s(c==null?void 0:c.uri)}else s(void 0)}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),a(Qn)})})}async notifyBuildPhase(e,t,r){if(e.length===0)return;const i=this.buildPhaseListeners.get(t);for(const s of i)await Le(r),await s(e,r)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){var r,i;const s=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e).validation,o=typeof a=="object"?a:void 0,l=await s.validateDocument(e,o,t);e.diagnostics?e.diagnostics.push(...l):e.diagnostics=l;const c=this.buildState.get(e.uri.toString());if(c){(r=c.result)!==null&&r!==void 0||(c.result={});const u=(i=o==null?void 0:o.categories)!==null&&i!==void 0?i:Zn.all;c.result.validationChecks?c.result.validationChecks.push(...u):c.result.validationChecks=[...u]}}getBuildOptions(e){var t,r;return(r=(t=this.buildState.get(e.uri.toString()))===null||t===void 0?void 0:t.options)!==null&&r!==void 0?r:{}}}class xm{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new mm,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const r=Ue(e).uri,i=[];return this.referenceIndex.forEach(s=>{s.forEach(a=>{rt.equals(a.targetUri,r)&&a.targetPath===t&&i.push(a)})}),Q(i)}allElements(e,t){let r=Q(this.symbolIndex.keys());return t&&(r=r.filter(i=>!t||t.has(i))),r.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,t){var r;return t?this.symbolByTypeIndex.get(e,t,()=>{var s;return((s=this.symbolIndex.get(e))!==null&&s!==void 0?s:[]).filter(o=>this.astReflection.isSubtype(o.type,t))}):(r=this.symbolIndex.get(e))!==null&&r!==void 0?r:[]}remove(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t),this.referenceIndex.delete(t)}async updateContent(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,t),s=e.uri.toString();this.symbolIndex.set(s,i),this.symbolByTypeIndex.clear(s)}async updateReferences(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,t){const r=this.referenceIndex.get(e.uri.toString());return r?r.some(i=>!i.local&&t.has(i.targetUri.toString())):!1}}class Cm{constructor(e){this.initialBuildOptions={},this._ready=new Vi,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(e){var t;this.folders=(t=e.workspaceFolders)!==null&&t!==void 0?t:void 0}initialized(e){return this.mutex.write(t=>{var r;return this.initializeWorkspace((r=this.folders)!==null&&r!==void 0?r:[],t)})}async initializeWorkspace(e,t=X.None){const r=await this.performStartup(e);await Le(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){const t=this.serviceRegistry.all.flatMap(s=>s.LanguageMetaData.fileExtensions),r=[],i=s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)};return await this.loadAdditionalDocuments(e,i),await Promise.all(e.map(s=>[s,this.getRootFolder(s)]).map(async s=>this.traverseFolder(...s,t,i))),this._ready.resolve(),r}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return Wt.parse(e.uri)}async traverseFolder(e,t,r,i){const s=await this.fileSystemProvider.readDirectory(t);await Promise.all(s.map(async a=>{if(this.includeEntry(e,a,r)){if(a.isDirectory)await this.traverseFolder(e,a.uri,r,i);else if(a.isFile){const o=await this.langiumDocuments.getOrCreateDocument(a.uri);i(o)}}}))}includeEntry(e,t,r){const i=rt.basename(t.uri);if(i.startsWith("."))return!1;if(t.isDirectory)return i!=="node_modules"&&i!=="out";if(t.isFile){const s=rt.extname(t.uri);return r.includes(s)}return!1}}class wm{constructor(e){const t=e.parser.TokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=za(t)?Object.values(t):t;this.chevrotainLexer=new de(r,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(e){var t;const r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:(t=r.groups.hidden)!==null&&t!==void 0?t:[]}}toTokenTypeDictionary(e){if(za(e))return e;const t=gc(e)?Object.values(e.modes).flat():e,r={};return t.forEach(i=>r[i.name]=i),r}}function Om(n){return Array.isArray(n)&&(n.length===0||"name"in n[0])}function gc(n){return n&&"modes"in n&&"defaultMode"in n}function za(n){return!Om(n)&&!gc(n)}function Lm(n,e,t){let r,i;typeof n=="string"?(i=e,r=t):(i=n.range.start,r=e),i||(i=P.create(0,0));const s=yc(n),a=Ki(r),o=Mm({lines:s,position:i,options:a});return Fm({index:0,tokens:o,position:i})}function $m(n,e){const t=Ki(e),r=yc(n);if(r.length===0)return!1;const i=r[0],s=r[r.length-1],a=t.start,o=t.end;return!!(a!=null&&a.exec(i))&&!!(o!=null&&o.exec(s))}function yc(n){let e="";return typeof n=="string"?e=n:e=n.text,e.split(hd)}const qa=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Pm=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function Mm(n){var e,t,r;const i=[];let s=n.position.line,a=n.position.character;for(let o=0;o=u.length){if(i.length>0){const h=P.create(s,a);i.push({type:"break",content:"",range:$.create(h,h)})}}else{qa.lastIndex=d;const h=qa.exec(u);if(h){const m=h[0],g=h[1],_=P.create(s,a+d),y=P.create(s,a+d+m.length);i.push({type:"tag",content:g,range:$.create(_,y)}),d+=m.length,d=yi(u,d)}if(d0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function Dm(n,e,t,r){const i=[];if(n.length===0){const s=P.create(t,r),a=P.create(t,r+e.length);i.push({type:"text",content:e,range:$.create(s,a)})}else{let s=0;for(const o of n){const l=o.index,c=e.substring(s,l);c.length>0&&i.push({type:"text",content:e.substring(s,l),range:$.create(P.create(t,s+r),P.create(t,l+r))});let u=c.length+1;const d=o[1];if(i.push({type:"inline-tag",content:d,range:$.create(P.create(t,s+u+r),P.create(t,s+u+d.length+r))}),u+=d.length,o.length===4){u+=o[2].length;const f=o[3];i.push({type:"text",content:f,range:$.create(P.create(t,s+u+r),P.create(t,s+u+f.length+r))})}else i.push({type:"text",content:"",range:$.create(P.create(t,s+u+r),P.create(t,s+u+r))});s=l+o[0].length}const a=e.substring(s);a.length>0&&i.push({type:"text",content:a,range:$.create(P.create(t,s+r),P.create(t,s+r+a.length))})}return i}const jm=/\S/,Gm=/\s*$/;function yi(n,e){const t=n.substring(e).match(jm);return t?e+t.index:n.length}function Um(n){const e=n.match(Gm);if(e&&typeof e.index=="number")return e.index}function Fm(n){var e,t,r,i;const s=P.create(n.position.line,n.position.character);if(n.tokens.length===0)return new Ya([],$.create(s,s));const a=[];for(;n.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const t of this.elements)if(e.length===0)e=t.toString();else{const r=t.toString();e+=Xa(e)+r}return e.trim()}toMarkdown(e){let t="";for(const r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{const i=r.toMarkdown(e);t+=Xa(t)+i}return t.trim()}}class $r{constructor(e,t,r,i){this.name=e,this.content=t,this.inline=r,this.range=i}toString(){let e=`@${this.name}`;const t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} +`;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return c}}function r(c){return c.charAt(0)==="^"?c.substring(1):c}n.convertID=r;function i(c){return parseInt(c)}n.convertInt=i;function s(c){return BigInt(c)}n.convertBigint=s;function a(c){return new Date(c)}n.convertDate=a;function o(c){return Number(c)}n.convertNumber=o;function l(c){return c.toLowerCase()==="true"}n.convertBoolean=l})(Ve||(Ve={}));var dn={},yr={};Object.defineProperty(yr,"__esModule",{value:!0});let di;function fi(){if(di===void 0)throw new Error("No runtime abstraction layer installed");return di}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");di=t}n.install=e})(fi||(fi={}));yr.default=fi;var se={};Object.defineProperty(se,"__esModule",{value:!0});se.stringArray=se.array=se.func=se.error=se.number=se.string=se.boolean=void 0;function Kp(n){return n===!0||n===!1}se.boolean=Kp;function uc(n){return typeof n=="string"||n instanceof String}se.string=uc;function zp(n){return typeof n=="number"||n instanceof Number}se.number=zp;function qp(n){return n instanceof Error}se.error=qp;function Yp(n){return typeof n=="function"}se.func=Yp;function dc(n){return Array.isArray(n)}se.array=dc;function Xp(n){return dc(n)&&n.every(e=>uc(e))}se.stringArray=Xp;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.Emitter=Vt.Event=void 0;const Jp=yr;var Ga;(function(n){const e={dispose(){}};n.None=function(){return e}})(Ga||(Vt.Event=Ga={}));class Qp{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i{this._callbacks||(this._callbacks=new Qp),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=Tr._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}Vt.Emitter=Tr;Tr._noop=function(){};var X;Object.defineProperty(dn,"__esModule",{value:!0});var hi=dn.CancellationTokenSource=X=dn.CancellationToken=void 0;const Zp=yr,em=se,pi=Vt;var Jn;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:pi.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:pi.Event.None});function e(t){const r=t;return r&&(r===n.None||r===n.Cancelled||em.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(Jn||(X=dn.CancellationToken=Jn={}));const tm=Object.freeze(function(n,e){const t=(0,Zp.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}});class Ua{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?tm:(this._emitter||(this._emitter=new pi.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class nm{get token(){return this._token||(this._token=new Ua),this._token}cancel(){this._token?this._token.cancel():this._token=Jn.Cancelled}dispose(){this._token?this._token instanceof Ua&&this._token.dispose():this._token=Jn.None}}hi=dn.CancellationTokenSource=nm;function rm(){return new Promise(n=>{typeof setImmediate>"u"?setTimeout(n,0):setImmediate(n)})}let Fa=0,im=10;const Qn=Symbol("OperationCancelled");function Hi(n){return n===Qn}async function Le(n){if(n===X.None)return;const e=Date.now();if(e-Fa>=im&&(Fa=e,await rm()),n.isCancellationRequested)throw Qn}class Vi{constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}}class fn{constructor(e,t,r,i){this._uri=e,this._languageId=t,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){for(const r of e)if(fn.isIncremental(r)){const i=hc(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let c=this._lineOffsets;const u=Ba(r.text,!1,s);if(l-o===u.length)for(let f=0,h=u.length;fe?i=a:r=a+1}const s=r-1;return e=this.ensureBeforeEOL(e,t[s]),{line:s,character:e-t[s]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const r=t[e.line];if(e.character<=0)return r;const i=e.line+1t&&fc(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength=="number")}static isFull(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range===void 0&&t.rangeLength===void 0}}var mi;(function(n){function e(i,s,a,o){return new fn(i,s,a,o)}n.create=e;function t(i,s,a){if(i instanceof fn)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}n.update=t;function r(i,s){const a=i.getText(),o=gi(s.map(sm),(u,d)=>{const f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f});let l=0;const c=[];for(const u of o){const d=i.offsetAt(u.range.start);if(dl&&c.push(a.substring(l,d)),u.newText.length&&c.push(u.newText),l=i.offsetAt(u.range.end)}return c.push(a.substr(l)),c.join("")}n.applyEdits=r})(mi||(mi={}));function gi(n,e){if(n.length<=1)return n;const t=n.length/2|0,r=n.slice(0,t),i=n.slice(t);gi(r,e),gi(i,e);let s=0,a=0,o=0;for(;st.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function sm(n){const e=hc(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var wr={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},pc;(()=>{var n={470:i=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function a(l,c){for(var u,d="",f=0,h=-1,m=0,g=0;g<=l.length;++g){if(g2){var _=d.lastIndexOf("/");if(_!==d.length-1){_===-1?(d="",f=0):f=(d=d.slice(0,_)).length-1-d.lastIndexOf("/"),h=g,m=0;continue}}else if(d.length===2||d.length===1){d="",f=0,h=g,m=0;continue}}c&&(d.length>0?d+="/..":d="..",f=2)}else d.length>0?d+="/"+l.slice(h+1,g):d=l.slice(h+1,g),f=g-h-1;h=g,m=0}else u===46&&m!==-1?++m:m=-1}return d}var o={resolve:function(){for(var l,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var f;d>=0?f=arguments[d]:(l===void 0&&(l=wr.cwd()),f=l),s(f),f.length!==0&&(c=f+"/"+c,u=f.charCodeAt(0)===47)}return c=a(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,u=l.charCodeAt(l.length-1)===47;return(l=a(l,!c)).length!==0||c||(l="."),l.length>0&&u&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c0&&(l===void 0?l=u:l+="/"+u)}return l===void 0?".":o.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=o.resolve(l))===(c=o.resolve(c)))return"";for(var u=1;ug){if(c.charCodeAt(h+y)===47)return c.slice(h+y+1);if(y===0)return c.slice(h+y)}else f>g&&(l.charCodeAt(u+y)===47?_=y:y===0&&(_=0));break}var E=l.charCodeAt(u+y);if(E!==c.charCodeAt(h+y))break;E===47&&(_=y)}var v="";for(y=u+_+1;y<=d;++y)y!==d&&l.charCodeAt(y)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+c.slice(h+_):(h+=_,c.charCodeAt(h)===47&&++h,c.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),u=c===47,d=-1,f=!0,h=l.length-1;h>=1;--h)if((c=l.charCodeAt(h))===47){if(!f){d=h;break}}else f=!1;return d===-1?u?"/":".":u&&d===1?"//":l.slice(0,d)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var u,d=0,f=-1,h=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var m=c.length-1,g=-1;for(u=l.length-1;u>=0;--u){var _=l.charCodeAt(u);if(_===47){if(!h){d=u+1;break}}else g===-1&&(h=!1,g=u+1),m>=0&&(_===c.charCodeAt(m)?--m==-1&&(f=u):(m=-1,f=g))}return d===f?f=g:f===-1&&(f=l.length),l.slice(d,f)}for(u=l.length-1;u>=0;--u)if(l.charCodeAt(u)===47){if(!h){d=u+1;break}}else f===-1&&(h=!1,f=u+1);return f===-1?"":l.slice(d,f)},extname:function(l){s(l);for(var c=-1,u=0,d=-1,f=!0,h=0,m=l.length-1;m>=0;--m){var g=l.charCodeAt(m);if(g!==47)d===-1&&(f=!1,d=m+1),g===46?c===-1?c=m:h!==1&&(h=1):c!==-1&&(h=-1);else if(!f){u=m+1;break}}return c===-1||d===-1||h===0||h===1&&c===d-1&&c===u+1?"":l.slice(c,d)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,u){var d=u.dir||u.root,f=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+f:d+"/"+f:f}(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var u,d=l.charCodeAt(0),f=d===47;f?(c.root="/",u=1):u=0;for(var h=-1,m=0,g=-1,_=!0,y=l.length-1,E=0;y>=u;--y)if((d=l.charCodeAt(y))!==47)g===-1&&(_=!1,g=y+1),d===46?h===-1?h=y:E!==1&&(E=1):h!==-1&&(E=-1);else if(!_){m=y+1;break}return h===-1||g===-1||E===0||E===1&&h===g-1&&h===m+1?g!==-1&&(c.base=c.name=m===0&&f?l.slice(1,g):l.slice(m,g)):(m===0&&f?(c.name=l.slice(1,h),c.base=l.slice(1,g)):(c.name=l.slice(m,h),c.base=l.slice(m,g)),c.ext=l.slice(h,g)),m>0?c.dir=l.slice(0,m-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},e={};function t(i){var s=e[i];if(s!==void 0)return s.exports;var a=e[i]={exports:{}};return n[i](a,a.exports,t),a.exports}t.d=(i,s)=>{for(var a in s)t.o(s,a)&&!t.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},t.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),t.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;t.r(r),t.d(r,{URI:()=>f,Utils:()=>be}),typeof wr=="object"?i=wr.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function l(A,T){if(!A.scheme&&T)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!s.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!a.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",u="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{constructor(T,R,N,L,O,w=!1){Je(this,"scheme");Je(this,"authority");Je(this,"path");Je(this,"query");Je(this,"fragment");typeof T=="object"?(this.scheme=T.scheme||c,this.authority=T.authority||c,this.path=T.path||c,this.query=T.query||c,this.fragment=T.fragment||c):(this.scheme=function(ye,z){return ye||z?ye:"file"}(T,w),this.authority=R||c,this.path=function(ye,z){switch(ye){case"https":case"http":case"file":z?z[0]!==u&&(z=u+z):z=u}return z}(this.scheme,N||c),this.query=L||c,this.fragment=O||c,l(this,w))}static isUri(T){return T instanceof f||!!T&&typeof T.authority=="string"&&typeof T.fragment=="string"&&typeof T.path=="string"&&typeof T.query=="string"&&typeof T.scheme=="string"&&typeof T.fsPath=="string"&&typeof T.with=="function"&&typeof T.toString=="function"}get fsPath(){return E(this)}with(T){if(!T)return this;let{scheme:R,authority:N,path:L,query:O,fragment:w}=T;return R===void 0?R=this.scheme:R===null&&(R=c),N===void 0?N=this.authority:N===null&&(N=c),L===void 0?L=this.path:L===null&&(L=c),O===void 0?O=this.query:O===null&&(O=c),w===void 0?w=this.fragment:w===null&&(w=c),R===this.scheme&&N===this.authority&&L===this.path&&O===this.query&&w===this.fragment?this:new m(R,N,L,O,w)}static parse(T,R=!1){const N=d.exec(T);return N?new m(N[2]||c,ne(N[4]||c),ne(N[5]||c),ne(N[7]||c),ne(N[9]||c),R):new m(c,c,c,c,c)}static file(T){let R=c;if(i&&(T=T.replace(/\\/g,u)),T[0]===u&&T[1]===u){const N=T.indexOf(u,2);N===-1?(R=T.substring(2),T=u):(R=T.substring(2,N),T=T.substring(N)||u)}return new m("file",R,T,c,c)}static from(T){const R=new m(T.scheme,T.authority,T.path,T.query,T.fragment);return l(R,!0),R}toString(T=!1){return v(this,T)}toJSON(){return this}static revive(T){if(T){if(T instanceof f)return T;{const R=new m(T);return R._formatted=T.external,R._fsPath=T._sep===h?T.fsPath:null,R}}return T}}const h=i?1:void 0;class m extends f{constructor(){super(...arguments);Je(this,"_formatted",null);Je(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=E(this)),this._fsPath}toString(R=!1){return R?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const R={$mid:1};return this._fsPath&&(R.fsPath=this._fsPath,R._sep=h),this._formatted&&(R.external=this._formatted),this.path&&(R.path=this.path),this.scheme&&(R.scheme=this.scheme),this.authority&&(R.authority=this.authority),this.query&&(R.query=this.query),this.fragment&&(R.fragment=this.fragment),R}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(A,T,R){let N,L=-1;for(let O=0;O=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57||w===45||w===46||w===95||w===126||T&&w===47||R&&w===91||R&&w===93||R&&w===58)L!==-1&&(N+=encodeURIComponent(A.substring(L,O)),L=-1),N!==void 0&&(N+=A.charAt(O));else{N===void 0&&(N=A.substr(0,O));const ye=g[w];ye!==void 0?(L!==-1&&(N+=encodeURIComponent(A.substring(L,O)),L=-1),N+=ye):L===-1&&(L=O)}}return L!==-1&&(N+=encodeURIComponent(A.substring(L))),N!==void 0?N:A}function y(A){let T;for(let R=0;R1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(R=R.replace(/\//g,"\\")),R}function v(A,T){const R=T?y:_;let N="",{scheme:L,authority:O,path:w,query:ye,fragment:z}=A;if(L&&(N+=L,N+=":"),(O||L==="file")&&(N+=u,N+=u),O){let B=O.indexOf("@");if(B!==-1){const at=O.substr(0,B);O=O.substr(B+1),B=at.lastIndexOf(":"),B===-1?N+=R(at,!1,!1):(N+=R(at.substr(0,B),!1,!1),N+=":",N+=R(at.substr(B+1),!1,!0)),N+="@"}O=O.toLowerCase(),B=O.lastIndexOf(":"),B===-1?N+=R(O,!1,!0):(N+=R(O.substr(0,B),!1,!0),N+=O.substr(B))}if(w){if(w.length>=3&&w.charCodeAt(0)===47&&w.charCodeAt(2)===58){const B=w.charCodeAt(1);B>=65&&B<=90&&(w=`/${String.fromCharCode(B+32)}:${w.substr(3)}`)}else if(w.length>=2&&w.charCodeAt(1)===58){const B=w.charCodeAt(0);B>=65&&B<=90&&(w=`${String.fromCharCode(B+32)}:${w.substr(2)}`)}N+=R(w,!0,!1)}return ye&&(N+="?",N+=R(ye,!1,!1)),z&&(N+="#",N+=T?z:_(z,!1,!1)),N}function I(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+I(A.substr(3)):A}}const j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ne(A){return A.match(j)?A.replace(j,T=>I(T)):A}var Ce=t(470);const ge=Ce.posix||Ce,De="/";var be;(function(A){A.joinPath=function(T,...R){return T.with({path:ge.join(T.path,...R)})},A.resolvePath=function(T,...R){let N=T.path,L=!1;N[0]!==De&&(N=De+N,L=!0);let O=ge.resolve(N,...R);return L&&O[0]===De&&!T.authority&&(O=O.substring(1)),T.with({path:O})},A.dirname=function(T){if(T.path.length===0||T.path===De)return T;let R=ge.dirname(T.path);return R.length===1&&R.charCodeAt(0)===46&&(R=""),T.with({path:R})},A.basename=function(T){return ge.basename(T.path)},A.extname=function(T){return ge.extname(T.path)}})(be||(be={}))})(),pc=r})();const{URI:Wt,Utils:sn}=pc;var rt;(function(n){n.basename=sn.basename,n.dirname=sn.dirname,n.extname=sn.extname,n.joinPath=sn.joinPath,n.resolvePath=sn.resolvePath;function e(r,i){return(r==null?void 0:r.toString())===(i==null?void 0:i.toString())}n.equals=e;function t(r,i){const s=typeof r=="string"?r:r.path,a=typeof i=="string"?i:i.path,o=s.split("/").filter(f=>f.length>0),l=a.split("/").filter(f=>f.length>0);let c=0;for(;ci??(i=mi.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}}class om{constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory}get all(){return Q(this.documentMap.values())}addDocument(e){const t=e.uri.toString();if(this.documentMap.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentMap.set(t,e)}getDocument(e){const t=e.toString();return this.documentMap.get(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(i),i}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,r.precomputedScopes=void 0,r.references=[],r.diagnostics=void 0),r}deleteDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,this.documentMap.delete(t)),r}}class lm{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,t=X.None){for(const r of Et(e.parseResult.value))await Le(t),Zo(r).forEach(i=>this.doLink(i,e))}doLink(e,t){const r=e.reference;if(r._ref===void 0)try{const i=this.getCandidate(e);if(kn(i))r._ref=i;else if(r._nodeDescription=i,this.langiumDocuments().hasDocument(i.documentUri)){const s=this.loadAstNode(i);r._ref=s??this.createLinkingError(e,i)}}catch(i){r._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${r.$refText}': ${i}`})}t.references.push(r)}unlink(e){for(const t of e.references)delete t._ref,delete t._nodeDescription;e.references=[]}getCandidate(e){const r=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return r??this.createLinkingError(e)}buildReference(e,t,r,i){const s=this,a={$refNode:r,$refText:i,get ref(){var o;if(ae(this._ref))return this._ref;if(Nu(this._nodeDescription)){const l=s.loadAstNode(this._nodeDescription);this._ref=l??s.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){const l=s.getLinkedNode({reference:a,container:e,property:t});if(l.error&&Ue(e).state=e.end)return s.ref}}if(r){const i=this.nameProvider.getNameNode(r);if(i&&(i===e||Su(e,i)))return r}}}findDeclarationNode(e){const t=this.findDeclaration(e);if(t!=null&&t.$cstNode){const r=this.nameProvider.getNameNode(t);return r??t.$cstNode}}findReferences(e,t){const r=[];if(t.includeDeclaration){const s=this.getReferenceToSelf(e);s&&r.push(s)}let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(i=i.filter(s=>rt.equals(s.sourceUri,t.documentUri))),r.push(...i),Q(r)}getReferenceToSelf(e){const t=this.nameProvider.getNameNode(e);if(t){const r=Ue(e),i=this.nodeLocator.getAstNodePath(e);return{sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:Ln(t),local:!0}}}}class Wi{constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return Pr.sum(Q(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{const r=this.map.get(e);if(r){const i=r.indexOf(t);if(i>=0)return r.length===1?this.map.delete(e):r.splice(i,1),!0}return!1}}get(e){var t;return(t=this.map.get(e))!==null&&t!==void 0?t:[]}has(e,t){if(t===void 0)return this.map.has(e);{const r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(i=>e(i,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Q(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return Q(this.map.keys())}values(){return Q(this.map.values()).flat()}entriesGroupedByKey(){return Q(this.map.entries())}}class Ha{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}}class fm{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=X.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,t)}async computeExportsForNode(e,t,r=ki,i=X.None){const s=[];this.exportNode(e,s,t);for(const a of r(e))await Le(i),this.exportNode(a,s,t);return s}exportNode(e,t,r){const i=this.nameProvider.getName(e);i&&t.push(this.descriptions.createDescription(e,i,r))}async computeLocalScopes(e,t=X.None){const r=e.parseResult.value,i=new Wi;for(const s of pn(r))await Le(t),this.processNode(s,e,i);return i}processNode(e,t,r){const i=e.$container;if(i){const s=this.nameProvider.getName(e);s&&r.add(i,this.descriptions.createDescription(e,s,t))}}}class Va{constructor(e,t,r){var i;this.elements=e,this.outerScope=t,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?this.elements.find(r=>r.name.toLowerCase()===e.toLowerCase()):this.elements.find(r=>r.name===e);if(t)return t;if(this.outerScope)return this.outerScope.getElement(e)}}class hm{constructor(e,t,r){var i;this.elements=new Map,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1;for(const s of e){const a=this.caseInsensitive?s.name.toLowerCase():s.name;this.elements.set(a,s)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=Q(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}}class mc{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}}class pm extends mc{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}}class mm extends mc{constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(t))return i.get(t);if(r){const s=r();return i.set(t,s),s}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}}class gm extends pm{constructor(e){super(),this.onDispose(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class ym{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new gm(e.shared)}getScope(e){const t=[],r=this.reflection.getReferenceType(e),i=Ue(e.container).precomputedScopes;if(i){let a=e.container;do{const o=i.get(a);o.length>0&&t.push(Q(o).filter(l=>this.reflection.isSubtype(l.type,r))),a=a.$container}while(a)}let s=this.getGlobalScope(r,e);for(let a=t.length-1;a>=0;a--)s=this.createScope(t[a],s);return s}createScope(e,t,r){return new Va(Q(e),t,r)}createScopeForNodes(e,t,r){const i=Q(e).map(s=>{const a=this.nameProvider.getName(s);if(a)return this.descriptions.createDescription(s,a)}).nonNullable();return new Va(i,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new hm(this.indexManager.allElements(e)))}}function Tm(n){return typeof n.$comment=="string"}function Wa(n){return typeof n=="object"&&!!n&&("$ref"in n||"$error"in n)}class vm{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t={}){const r=t==null?void 0:t.replacer,i=(a,o)=>this.replacer(a,o,t),s=r?(a,o)=>r(a,o,i):i;try{return this.currentDocument=Ue(e),JSON.stringify(e,s,t==null?void 0:t.space)}finally{this.currentDocument=void 0}}deserialize(e,t={}){const r=JSON.parse(e);return this.linkNode(r,r,t),r}replacer(e,t,{refText:r,sourceText:i,textRegions:s,comments:a,uriConverter:o}){var l,c,u,d;if(!this.ignoreProperties.has(e))if(Ge(t)){const f=t.ref,h=r?t.$refText:void 0;if(f){const m=Ue(f);let g="";this.currentDocument&&this.currentDocument!==m&&(o?g=o(m.uri,t):g=m.uri.toString());const _=this.astNodeLocator.getAstNodePath(f);return{$ref:`${g}#${_}`,$refText:h}}else return{$error:(c=(l=t.error)===null||l===void 0?void 0:l.message)!==null&&c!==void 0?c:"Could not resolve reference",$refText:h}}else if(ae(t)){let f;if(s&&(f=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},t)),(!e||t.$document)&&(f!=null&&f.$textRegion)&&(f.$textRegion.documentURI=(u=this.currentDocument)===null||u===void 0?void 0:u.uri.toString())),i&&!e&&(f??(f=Object.assign({},t)),f.$sourceText=(d=t.$cstNode)===null||d===void 0?void 0:d.text),a){f??(f=Object.assign({},t));const h=this.commentProvider.getComment(t);h&&(f.$comment=h.replace(/\r/g,""))}return f??t}else return t}addAstNodeRegionWithAssignmentsTo(e){const t=r=>({offset:r.offset,end:r.end,length:r.length,range:r.range});if(e.$cstNode){const r=e.$textRegion=t(e.$cstNode),i=r.assignments={};return Object.keys(e).filter(s=>!s.startsWith("$")).forEach(s=>{const a=bd(e.$cstNode,s).map(t);a.length!==0&&(i[s]=a)}),e}}linkNode(e,t,r,i,s,a){for(const[l,c]of Object.entries(e))if(Array.isArray(c))for(let u=0;u{try{await e.call(t,r,i,s)}catch(a){if(Hi(a))throw a;console.error("An error occurred during validation:",a);const o=a instanceof Error?a.message:String(a);a instanceof Error&&a.stack&&console.error(a.stack),i("error","An error occurred during validation: "+o,{node:r})}}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=Q(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(i=>t.includes(i.category))),r.map(i=>i.check)}}class Rm{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,t={},r=X.None){const i=e.parseResult,s=[];if(await Le(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(i,s,t),t.stopAfterLexingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LexingError})||(this.processParsingErrors(i,s,t),t.stopAfterParsingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.ParsingError}))||(this.processLinkingErrors(e,s,t),t.stopAfterLinkingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LinkingError}))))return s;try{s.push(...await this.validateAst(i.value,t,r))}catch(a){if(Hi(a))throw a;console.error("An error occurred during validation:",a)}return await Le(r),s}processLexingErrors(e,t,r){for(const i of e.lexerErrors){const s={severity:Or("error"),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:Ka(Qe.LexingError),source:this.getSource()};t.push(s)}}processParsingErrors(e,t,r){for(const i of e.parserErrors){let s;if(isNaN(i.token.startOffset)){if("previousToken"in i){const a=i.previousToken;if(isNaN(a.startOffset)){const o={line:0,character:0};s={start:o,end:o}}else{const o={line:a.endLine-1,character:a.endColumn};s={start:o,end:o}}}}else s=Dr(i.token);if(s){const a={severity:Or("error"),range:s,message:i.message,data:Ka(Qe.ParsingError),source:this.getSource()};t.push(a)}}}processLinkingErrors(e,t,r){for(const i of e.references){const s=i.error;if(s){const a={node:s.container,property:s.property,index:s.index,data:{code:Qe.LinkingError,containerType:s.container.$type,property:s.property,refText:s.reference.$refText}};t.push(this.toDiagnostic("error",s.message,a))}}}async validateAst(e,t,r=X.None){const i=[],s=(a,o,l)=>{i.push(this.toDiagnostic(a,o,l))};return await Promise.all(Et(e).map(async a=>{await Le(r);const o=this.validationRegistry.getChecks(a.$type,t.categories);for(const l of o)await l(a,s,r)})),i}toDiagnostic(e,t,r){return{message:t,range:Am(r),severity:Or(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function Am(n){if(n.range)return n.range;let e;return typeof n.property=="string"?e=il(n.node.$cstNode,n.property,n.index):typeof n.keyword=="string"&&(e=Nd(n.node.$cstNode,n.keyword,n.index)),e??(e=n.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Or(n){switch(n){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+n)}}var Qe;(function(n){n.LexingError="lexing-error",n.ParsingError="parsing-error",n.LinkingError="linking-error"})(Qe||(Qe={}));class bm{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r=Ue(e)){t??(t=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${i} has no name.`);let s;const a=()=>{var o;return s??(s=Ln((o=this.nameProvider.getNameNode(e))!==null&&o!==void 0?o:e.$cstNode))};return{node:e,name:t,get nameSegment(){return a()},selectionSegment:Ln(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}}class Nm{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=X.None){const r=[],i=e.parseResult.value;for(const s of Et(i))await Le(t),Zo(s).filter(a=>!kn(a)).forEach(a=>{const o=this.createDescription(a);o&&r.push(o)});return r}createDescription(e){const t=e.reference.$nodeDescription,r=e.reference.$refNode;if(!t||!r)return;const i=Ue(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:t.documentUri,targetPath:t.path,segment:Ln(r),local:rt.equals(t.documentUri,i)}}}class km{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((i,s)=>{if(!i||s.length===0)return i;const a=s.indexOf(this.indexSeparator);if(a>0){const o=s.substring(0,a),l=parseInt(s.substring(a+1)),c=i[o];return c==null?void 0:c[l]}return i[s]},e)}}class Im{constructor(e){this._ready=new Vi,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t,r;this.workspaceConfig=(r=(t=e.capabilities.workspace)===null||t===void 0?void 0:t.configuration)!==null&&r!==void 0?r:!1}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((i,s)=>{this.updateSectionConfiguration(i.section,r[s])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(t=>{this.updateSectionConfiguration(t,e.settings[t])})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}}var er;(function(n){function e(t){return{dispose:async()=>await t()}}n.create=e})(er||(er={}));class Sm{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Wi,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=U.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=X.None){var i,s;for(const a of e){const o=a.uri.toString();if(a.state===U.Validated){if(typeof t.validation=="boolean"&&t.validation)a.state=U.IndexedReferences,a.diagnostics=void 0,this.buildState.delete(o);else if(typeof t.validation=="object"){const l=this.buildState.get(o),c=(i=l==null?void 0:l.result)===null||i===void 0?void 0:i.validationChecks;if(c){const d=((s=t.validation.categories)!==null&&s!==void 0?s:Zn.all).filter(f=>!c.includes(f));d.length>0&&(this.buildState.set(o,{completed:!1,options:{validation:Object.assign(Object.assign({},t.validation),{categories:d})},result:l.result}),a.state=U.IndexedReferences)}}}else this.buildState.delete(o)}this.currentState=U.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=X.None){this.currentState=U.Changed;for(const a of t)this.langiumDocuments.deleteDocument(a),this.buildState.delete(a.toString()),this.indexManager.remove(a);for(const a of e){if(!this.langiumDocuments.invalidateDocument(a)){const l=this.langiumDocumentFactory.fromModel({$type:"INVALID"},a);l.state=U.Changed,this.langiumDocuments.addDocument(l)}this.buildState.delete(a.toString())}const i=Q(e).concat(t).map(a=>a.toString()).toSet();this.langiumDocuments.all.filter(a=>!i.has(a.uri.toString())&&this.shouldRelink(a,i)).forEach(a=>{this.serviceRegistry.getServices(a.uri).references.Linker.unlink(a),a.state=Math.min(a.state,U.ComputedScopes),a.diagnostics=void 0}),await this.emitUpdate(e,t),await Le(r);const s=this.langiumDocuments.all.filter(a=>{var o;return a.stater(e,t)))}shouldRelink(e,t){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),er.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,U.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,U.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,U.ComputedScopes,r,async s=>{const a=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.precomputedScopes=await a.computeLocalScopes(s,r)}),await this.runCancelable(e,U.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(e,U.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));const i=e.filter(s=>this.shouldValidate(s));await this.runCancelable(i,U.Validated,r,s=>this.validate(s,r));for(const s of e){const a=this.buildState.get(s.uri.toString());a&&(a.completed=!0)}}prepareBuild(e,t){for(const r of e){const i=r.uri.toString(),s=this.buildState.get(i);(!s||s.completed)&&this.buildState.set(i,{completed:!1,options:t,result:s==null?void 0:s.result})}}async runCancelable(e,t,r,i){const s=e.filter(a=>a.state{this.buildPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let i;if(t&&"path"in t?i=t:r=t,r??(r=X.None),i){const s=this.langiumDocuments.getDocument(i);if(s&&s.state>e)return Promise.resolve(i)}return this.currentState>=e?Promise.resolve(void 0):r.isCancellationRequested?Promise.reject(Qn):new Promise((s,a)=>{const o=this.onBuildPhase(e,()=>{if(o.dispose(),l.dispose(),i){const c=this.langiumDocuments.getDocument(i);s(c==null?void 0:c.uri)}else s(void 0)}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),a(Qn)})})}async notifyBuildPhase(e,t,r){if(e.length===0)return;const i=this.buildPhaseListeners.get(t);for(const s of i)await Le(r),await s(e,r)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){var r,i;const s=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e).validation,o=typeof a=="object"?a:void 0,l=await s.validateDocument(e,o,t);e.diagnostics?e.diagnostics.push(...l):e.diagnostics=l;const c=this.buildState.get(e.uri.toString());if(c){(r=c.result)!==null&&r!==void 0||(c.result={});const u=(i=o==null?void 0:o.categories)!==null&&i!==void 0?i:Zn.all;c.result.validationChecks?c.result.validationChecks.push(...u):c.result.validationChecks=[...u]}}getBuildOptions(e){var t,r;return(r=(t=this.buildState.get(e.uri.toString()))===null||t===void 0?void 0:t.options)!==null&&r!==void 0?r:{}}}class xm{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new mm,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const r=Ue(e).uri,i=[];return this.referenceIndex.forEach(s=>{s.forEach(a=>{rt.equals(a.targetUri,r)&&a.targetPath===t&&i.push(a)})}),Q(i)}allElements(e,t){let r=Q(this.symbolIndex.keys());return t&&(r=r.filter(i=>!t||t.has(i))),r.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,t){var r;return t?this.symbolByTypeIndex.get(e,t,()=>{var s;return((s=this.symbolIndex.get(e))!==null&&s!==void 0?s:[]).filter(o=>this.astReflection.isSubtype(o.type,t))}):(r=this.symbolIndex.get(e))!==null&&r!==void 0?r:[]}remove(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t),this.referenceIndex.delete(t)}async updateContent(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,t),s=e.uri.toString();this.symbolIndex.set(s,i),this.symbolByTypeIndex.clear(s)}async updateReferences(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,t){const r=this.referenceIndex.get(e.uri.toString());return r?r.some(i=>!i.local&&t.has(i.targetUri.toString())):!1}}class Cm{constructor(e){this.initialBuildOptions={},this._ready=new Vi,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(e){var t;this.folders=(t=e.workspaceFolders)!==null&&t!==void 0?t:void 0}initialized(e){return this.mutex.write(t=>{var r;return this.initializeWorkspace((r=this.folders)!==null&&r!==void 0?r:[],t)})}async initializeWorkspace(e,t=X.None){const r=await this.performStartup(e);await Le(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){const t=this.serviceRegistry.all.flatMap(s=>s.LanguageMetaData.fileExtensions),r=[],i=s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)};return await this.loadAdditionalDocuments(e,i),await Promise.all(e.map(s=>[s,this.getRootFolder(s)]).map(async s=>this.traverseFolder(...s,t,i))),this._ready.resolve(),r}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return Wt.parse(e.uri)}async traverseFolder(e,t,r,i){const s=await this.fileSystemProvider.readDirectory(t);await Promise.all(s.map(async a=>{if(this.includeEntry(e,a,r)){if(a.isDirectory)await this.traverseFolder(e,a.uri,r,i);else if(a.isFile){const o=await this.langiumDocuments.getOrCreateDocument(a.uri);i(o)}}}))}includeEntry(e,t,r){const i=rt.basename(t.uri);if(i.startsWith("."))return!1;if(t.isDirectory)return i!=="node_modules"&&i!=="out";if(t.isFile){const s=rt.extname(t.uri);return r.includes(s)}return!1}}class wm{constructor(e){const t=e.parser.TokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=za(t)?Object.values(t):t;this.chevrotainLexer=new de(r,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(e){var t;const r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:(t=r.groups.hidden)!==null&&t!==void 0?t:[]}}toTokenTypeDictionary(e){if(za(e))return e;const t=gc(e)?Object.values(e.modes).flat():e,r={};return t.forEach(i=>r[i.name]=i),r}}function Om(n){return Array.isArray(n)&&(n.length===0||"name"in n[0])}function gc(n){return n&&"modes"in n&&"defaultMode"in n}function za(n){return!Om(n)&&!gc(n)}function Lm(n,e,t){let r,i;typeof n=="string"?(i=e,r=t):(i=n.range.start,r=e),i||(i=P.create(0,0));const s=yc(n),a=Ki(r),o=Mm({lines:s,position:i,options:a});return Fm({index:0,tokens:o,position:i})}function $m(n,e){const t=Ki(e),r=yc(n);if(r.length===0)return!1;const i=r[0],s=r[r.length-1],a=t.start,o=t.end;return!!(a!=null&&a.exec(i))&&!!(o!=null&&o.exec(s))}function yc(n){let e="";return typeof n=="string"?e=n:e=n.text,e.split(hd)}const qa=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Pm=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function Mm(n){var e,t,r;const i=[];let s=n.position.line,a=n.position.character;for(let o=0;o=u.length){if(i.length>0){const h=P.create(s,a);i.push({type:"break",content:"",range:$.create(h,h)})}}else{qa.lastIndex=d;const h=qa.exec(u);if(h){const m=h[0],g=h[1],_=P.create(s,a+d),y=P.create(s,a+d+m.length);i.push({type:"tag",content:g,range:$.create(_,y)}),d+=m.length,d=yi(u,d)}if(d0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function Dm(n,e,t,r){const i=[];if(n.length===0){const s=P.create(t,r),a=P.create(t,r+e.length);i.push({type:"text",content:e,range:$.create(s,a)})}else{let s=0;for(const o of n){const l=o.index,c=e.substring(s,l);c.length>0&&i.push({type:"text",content:e.substring(s,l),range:$.create(P.create(t,s+r),P.create(t,l+r))});let u=c.length+1;const d=o[1];if(i.push({type:"inline-tag",content:d,range:$.create(P.create(t,s+u+r),P.create(t,s+u+d.length+r))}),u+=d.length,o.length===4){u+=o[2].length;const f=o[3];i.push({type:"text",content:f,range:$.create(P.create(t,s+u+r),P.create(t,s+u+f.length+r))})}else i.push({type:"text",content:"",range:$.create(P.create(t,s+u+r),P.create(t,s+u+r))});s=l+o[0].length}const a=e.substring(s);a.length>0&&i.push({type:"text",content:a,range:$.create(P.create(t,s+r),P.create(t,s+r+a.length))})}return i}const jm=/\S/,Gm=/\s*$/;function yi(n,e){const t=n.substring(e).match(jm);return t?e+t.index:n.length}function Um(n){const e=n.match(Gm);if(e&&typeof e.index=="number")return e.index}function Fm(n){var e,t,r,i;const s=P.create(n.position.line,n.position.character);if(n.tokens.length===0)return new Ya([],$.create(s,s));const a=[];for(;n.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const t of this.elements)if(e.length===0)e=t.toString();else{const r=t.toString();e+=Xa(e)+r}return e.trim()}toMarkdown(e){let t="";for(const r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{const i=r.toMarkdown(e);t+=Xa(t)+i}return t.trim()}}class $r{constructor(e,t,r,i){this.name=e,this.content=t,this.inline=r,this.range=i}toString(){let e=`@${this.name}`;const t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} ${t}`),this.inline?`{${e}}`:e}toMarkdown(e){var t,r;return(r=(t=e==null?void 0:e.renderTag)===null||t===void 0?void 0:t.call(e,this))!==null&&r!==void 0?r:this.toMarkdownDefault(e)}toMarkdownDefault(e){const t=this.content.toMarkdown(e);if(this.inline){const s=Wm(this.name,t,e??{});if(typeof s=="string")return s}let r="";(e==null?void 0:e.tag)==="italic"||(e==null?void 0:e.tag)===void 0?r="*":(e==null?void 0:e.tag)==="bold"?r="**":(e==null?void 0:e.tag)==="bold-italic"&&(r="***");let i=`${r}@${this.name}${r}`;return this.content.inlines.length===1?i=`${i} — ${t}`:this.content.inlines.length>1&&(i=`${i} ${t}`),this.inline?`{${i}}`:i}}function Wm(n,e,t){var r,i;if(n==="linkplain"||n==="linkcode"||n==="link"){const s=e.indexOf(" ");let a=e;if(s>0){const l=yi(e,s);a=e.substring(l),e=e.substring(0,s)}return(n==="linkcode"||n==="link"&&t.link==="code")&&(a=`\`${a}\``),(i=(r=t.renderLink)===null||r===void 0?void 0:r.call(t,e,a))!==null&&i!==void 0?i:Km(e,a)}}function Km(n,e){try{return Wt.parse(n,!0),`[${e}](${n})`}catch{return n}}class Ti{constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;tr.range.start.line&&(e+=` `)}return e}toMarkdown(e){let t="";for(let r=0;ri.range.start.line&&(t+=` diff --git a/static/js/md-gitGraphDiagram-NRZ2UAAF-B7OzYV4r.js b/static/js/md-gitGraphDiagram-NRZ2UAAF-v1vnXS29.js similarity index 98% rename from static/js/md-gitGraphDiagram-NRZ2UAAF-B7OzYV4r.js rename to static/js/md-gitGraphDiagram-NRZ2UAAF-v1vnXS29.js index b7cea32..1318411 100644 --- a/static/js/md-gitGraphDiagram-NRZ2UAAF-B7OzYV4r.js +++ b/static/js/md-gitGraphDiagram-NRZ2UAAF-v1vnXS29.js @@ -1,4 +1,4 @@ -import{p as Z}from"./md-chunk-TMUBEWPD-D-4gDNXh.js";import{I as F}from"./md-chunk-KFBOBJHC-hNoUdd-l.js";import{B as U,_ as h,d as rr,C as er,D as tr,E as ar,l as w,s as nr,g as sr,b as or,c as cr,p as ir,q as dr,e as B,v as hr,j as lr,u as $r,F as fr}from"./md-index-BhYxDPe5.js";import{p as gr}from"./md-gitGraph-YCYPL57B-BAO2bH4y.js";import"./md-_baseUniq-Cjg3wXP1.js";import"./md-_basePickBy-CdF26LR_.js";import"./md-clone-CtDbzCPt.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},yr=U.gitGraph,z=h(()=>er({...yr,...tr().gitGraph}),"getConfig"),i=new F(()=>{const t=z(),r=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function j(){return ar({length:7})}h(j,"getID");function N(t,r){const a=Object.create(null);return t.reduce((s,e)=>{const n=r(e);return a[n]||(a[n]=!0,s.push(e)),s},[])}h(N,"uniqBy");var ur=h(function(t){i.records.direction=t},"setDirection"),xr=h(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),pr=h(function(){return i.records.options},"getOptions"),br=h(function(t){let r=t.msg,a=t.id;const s=t.type;let e=t.tags;w.info("commit",r,a,s,e),w.debug("Entering commit:",r,a,s,e);const n=z();a=B.sanitizeText(a,n),r=B.sanitizeText(r,n),e=e==null?void 0:e.map(o=>B.sanitizeText(o,n));const c={id:a||i.records.seq+"-"+j(),message:r,seq:i.records.seq++,type:s??x.NORMAL,tags:e??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,w.info("main branch",n.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),w.debug("in pushCommit "+c.id)},"commit"),mr=h(function(t){let r=t.name;const a=t.order;if(r=B.sanitizeText(r,z()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:a}),_(r),w.debug("in createBranch")},"branch"),wr=h(t=>{let r=t.branch,a=t.id;const s=t.type,e=t.tags,n=z();r=B.sanitizeText(r,n),a&&(a=B.sanitizeText(a,n));const c=i.records.branches.get(i.records.currBranch),o=i.records.branches.get(r),$=c?i.records.commits.get(c):void 0,l=o?i.records.commits.get(o):void 0;if($&&l&&$.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if($===void 0||!$){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!i.records.branches.has(r)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(l===void 0||!l){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if($===l){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&i.records.commits.has(a)){const d=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw d.hash={text:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${s} ${e==null?void 0:e.join(" ")}`]},d}const f=o||"",g={id:a||`${i.records.seq}-${j()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:x.MERGE,customType:s,customId:!!a,tags:e??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),vr=h(function(t){let r=t.id,a=t.targetId,s=t.tags,e=t.parent;w.debug("Entering cherryPick:",r,a,s);const n=z();if(r=B.sanitizeText(r,n),a=B.sanitizeText(a,n),s=s==null?void 0:s.map($=>B.sanitizeText($,n)),e=B.sanitizeText(e,n),!r||!i.records.commits.has(r)){const $=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw $.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},$}const c=i.records.commits.get(r);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=c.branch;if(c.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(o===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const $=i.records.branches.get(i.records.currBranch);if($===void 0||!$){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const l=i.records.commits.get($);if(l===void 0||!l){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const f={id:i.records.seq+"-"+j(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${c.id}${c.type===x.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),_=h(function(t){if(t=B.sanitizeText(t,z()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function A(t,r,a){const s=t.indexOf(r);s===-1?t.push(a):t.splice(s,1,a)}h(A,"upsert");function D(t){const r=t.reduce((e,n)=>e.seq>n.seq?e:n,t[0]);let a="";t.forEach(function(e){e===r?a+=" *":a+=" |"});const s=[a,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&s.push(e);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);A(t,r,e),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);A(t,r,e)}}t=N(t,e=>e.id),D(t)}h(D,"prettyPrintCommitHistory");var Cr=h(function(){w.debug(i.records.commits);const t=V()[0];D([t])},"prettyPrint"),Er=h(function(){i.reset(),hr()},"clear"),Br=h(function(){return[...i.records.branchConfig.values()].map((r,a)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${a}`)}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),kr=h(function(){return i.records.branches},"getBranches"),Lr=h(function(){return i.records.commits},"getCommits"),V=h(function(){const t=[...i.records.commits.values()];return t.forEach(function(r){w.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),Tr=h(function(){return i.records.currBranch},"getCurrentBranch"),Mr=h(function(){return i.records.direction},"getDirection"),Rr=h(function(){return i.records.head},"getHead"),X={commitType:x,getConfig:z,setDirection:ur,setOptions:xr,getOptions:pr,commit:br,branch:mr,merge:wr,cherryPick:vr,checkout:_,prettyPrint:Cr,clear:Er,getBranchesAsObjArray:Br,getBranches:kr,getCommits:Lr,getCommitsArray:V,getCurrentBranch:Tr,getDirection:Mr,getHead:Rr,setAccTitle:nr,getAccTitle:sr,getAccDescription:or,setAccDescription:cr,setDiagramTitle:ir,getDiagramTitle:dr},Ir=h((t,r)=>{Z(t,r),t.dir&&r.setDirection(t.dir);for(const a of t.statements)qr(a,r)},"populate"),qr=h((t,r)=>{const s={Commit:h(e=>r.commit(Or(e)),"Commit"),Branch:h(e=>r.branch(zr(e)),"Branch"),Merge:h(e=>r.merge(Gr(e)),"Merge"),Checkout:h(e=>r.checkout(Hr(e)),"Checkout"),CherryPicking:h(e=>r.cherryPick(Pr(e)),"CherryPicking")}[t.$type];s?s(t):w.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Or=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),zr=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Gr=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Hr=h(t=>t.branch,"parseCheckout"),Pr=h(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Wr={parse:h(async t=>{const r=await gr("gitGraph",t);w.debug(r),Ir(r,X)},"parse")},S=rr(),b=S==null?void 0:S.gitGraph,R=10,I=40,k=4,L=2,O=8,C=new Map,E=new Map,P=30,G=new Map,W=[],M=0,u="LR",jr=h(()=>{C.clear(),E.clear(),G.clear(),M=0,W=[],u="LR"},"clear"),J=h(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(s=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=s.trim(),r.appendChild(e)}),r},"drawText"),Q=h(t=>{let r,a,s;return u==="BT"?(a=h((e,n)=>e<=n,"comparisonFunc"),s=1/0):(a=h((e,n)=>e>=n,"comparisonFunc"),s=0),t.forEach(e=>{var c,o;const n=u==="TB"||u=="BT"?(c=E.get(e))==null?void 0:c.y:(o=E.get(e))==null?void 0:o.x;n!==void 0&&a(n,s)&&(r=e,s=n)}),r},"findClosestParent"),Sr=h(t=>{let r="",a=1/0;return t.forEach(s=>{const e=E.get(s).y;e<=a&&(r=s,a=e)}),r||void 0},"findClosestParentBT"),Ar=h((t,r,a)=>{let s=a,e=a;const n=[];t.forEach(c=>{const o=r.get(c);if(!o)throw new Error(`Commit not found for key ${c}`);o.parents.length?(s=Yr(o),e=Math.max(s,e)):n.push(o),Kr(o,s)}),s=e,n.forEach(c=>{Nr(c,s,a)}),t.forEach(c=>{const o=r.get(c);if(o!=null&&o.parents.length){const $=Sr(o.parents);s=E.get($).y-I,s<=e&&(e=s);const l=C.get(o.branch).pos,f=s-R;E.set(o.id,{x:l,y:f})}})},"setParallelBTPos"),Dr=h(t=>{var s;const r=Q(t.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(s=E.get(r))==null?void 0:s.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Yr=h(t=>Dr(t)+I,"calculateCommitPosition"),Kr=h((t,r)=>{const a=C.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const s=a.pos,e=r+R;return E.set(t.id,{x:s,y:e}),{x:s,y:e}},"setCommitPosition"),Nr=h((t,r,a)=>{const s=C.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const e=r+a,n=s.pos;E.set(t.id,{x:n,y:e})},"setRootPosition"),_r=h((t,r,a,s,e,n)=>{if(n===x.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${s}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${s}-inner`);else if(n===x.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`);else{const c=t.append("circle");if(c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",r.type===x.MERGE?9:10),c.attr("class",`commit ${r.id} commit${e%O}`),n===x.MERGE){const o=t.append("circle");o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",6),o.attr("class",`commit ${s} ${r.id} commit${e%O}`)}n===x.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${s} ${r.id} commit${e%O}`)}},"drawCommitBullet"),Vr=h((t,r,a,s)=>{var e;if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&(b!=null&&b.showCommitLabel)){const n=t.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),o=n.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(r.id),$=(e=o.node())==null?void 0:e.getBBox();if($&&(c.attr("x",a.posWithOffset-$.width/2-L).attr("y",a.y+13.5).attr("width",$.width+2*L).attr("height",$.height+2*L),u==="TB"||u==="BT"?(c.attr("x",a.x-($.width+4*k+5)).attr("y",a.y-12),o.attr("x",a.x-($.width+4*k)).attr("y",a.y+$.height-12)):o.attr("x",a.posWithOffset-$.width/2),b.rotateCommitLabel))if(u==="TB"||u==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const l=-7.5-($.width+10)/25*9.5,f=10+$.width/25*8.5;n.attr("transform","translate("+l+", "+f+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Xr=h((t,r,a,s)=>{var e;if(r.tags.length>0){let n=0,c=0,o=0;const $=[];for(const l of r.tags.reverse()){const f=t.insert("polygon"),g=t.append("circle"),d=t.append("text").attr("y",a.y-16-n).attr("class","tag-label").text(l),y=(e=d.node())==null?void 0:e.getBBox();if(!y)throw new Error("Tag bbox not found");c=Math.max(c,y.width),o=Math.max(o,y.height),d.attr("x",a.posWithOffset-y.width/2),$.push({tag:d,hole:g,rect:f,yOffset:n}),n+=20}for(const{tag:l,hole:f,rect:g,yOffset:d}of $){const y=o/2,p=a.y-19.2-d;if(g.attr("class","tag-label-bkg").attr("points",` +import{p as Z}from"./md-chunk-TMUBEWPD-Dgrus0aV.js";import{I as F}from"./md-chunk-KFBOBJHC-CHuIljkb.js";import{B as U,_ as h,d as rr,C as er,D as tr,E as ar,l as w,s as nr,g as sr,b as or,c as cr,p as ir,q as dr,e as B,v as hr,j as lr,u as $r,F as fr}from"./md-index-ByjuzIYZ.js";import{p as gr}from"./md-gitGraph-YCYPL57B-Cg_Niwrz.js";import"./md-_baseUniq-DZXHEAoF.js";import"./md-_basePickBy-C4aggLA-.js";import"./md-clone-CEEsdKQ5.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},yr=U.gitGraph,z=h(()=>er({...yr,...tr().gitGraph}),"getConfig"),i=new F(()=>{const t=z(),r=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function j(){return ar({length:7})}h(j,"getID");function N(t,r){const a=Object.create(null);return t.reduce((s,e)=>{const n=r(e);return a[n]||(a[n]=!0,s.push(e)),s},[])}h(N,"uniqBy");var ur=h(function(t){i.records.direction=t},"setDirection"),xr=h(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),pr=h(function(){return i.records.options},"getOptions"),br=h(function(t){let r=t.msg,a=t.id;const s=t.type;let e=t.tags;w.info("commit",r,a,s,e),w.debug("Entering commit:",r,a,s,e);const n=z();a=B.sanitizeText(a,n),r=B.sanitizeText(r,n),e=e==null?void 0:e.map(o=>B.sanitizeText(o,n));const c={id:a||i.records.seq+"-"+j(),message:r,seq:i.records.seq++,type:s??x.NORMAL,tags:e??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,w.info("main branch",n.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),w.debug("in pushCommit "+c.id)},"commit"),mr=h(function(t){let r=t.name;const a=t.order;if(r=B.sanitizeText(r,z()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:a}),_(r),w.debug("in createBranch")},"branch"),wr=h(t=>{let r=t.branch,a=t.id;const s=t.type,e=t.tags,n=z();r=B.sanitizeText(r,n),a&&(a=B.sanitizeText(a,n));const c=i.records.branches.get(i.records.currBranch),o=i.records.branches.get(r),$=c?i.records.commits.get(c):void 0,l=o?i.records.commits.get(o):void 0;if($&&l&&$.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if($===void 0||!$){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!i.records.branches.has(r)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(l===void 0||!l){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if($===l){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&i.records.commits.has(a)){const d=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw d.hash={text:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${s} ${e==null?void 0:e.join(" ")}`]},d}const f=o||"",g={id:a||`${i.records.seq}-${j()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:x.MERGE,customType:s,customId:!!a,tags:e??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),vr=h(function(t){let r=t.id,a=t.targetId,s=t.tags,e=t.parent;w.debug("Entering cherryPick:",r,a,s);const n=z();if(r=B.sanitizeText(r,n),a=B.sanitizeText(a,n),s=s==null?void 0:s.map($=>B.sanitizeText($,n)),e=B.sanitizeText(e,n),!r||!i.records.commits.has(r)){const $=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw $.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},$}const c=i.records.commits.get(r);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=c.branch;if(c.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(o===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const $=i.records.branches.get(i.records.currBranch);if($===void 0||!$){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const l=i.records.commits.get($);if(l===void 0||!l){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const f={id:i.records.seq+"-"+j(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${c.id}${c.type===x.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),_=h(function(t){if(t=B.sanitizeText(t,z()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function A(t,r,a){const s=t.indexOf(r);s===-1?t.push(a):t.splice(s,1,a)}h(A,"upsert");function D(t){const r=t.reduce((e,n)=>e.seq>n.seq?e:n,t[0]);let a="";t.forEach(function(e){e===r?a+=" *":a+=" |"});const s=[a,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&s.push(e);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);A(t,r,e),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);A(t,r,e)}}t=N(t,e=>e.id),D(t)}h(D,"prettyPrintCommitHistory");var Cr=h(function(){w.debug(i.records.commits);const t=V()[0];D([t])},"prettyPrint"),Er=h(function(){i.reset(),hr()},"clear"),Br=h(function(){return[...i.records.branchConfig.values()].map((r,a)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${a}`)}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),kr=h(function(){return i.records.branches},"getBranches"),Lr=h(function(){return i.records.commits},"getCommits"),V=h(function(){const t=[...i.records.commits.values()];return t.forEach(function(r){w.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),Tr=h(function(){return i.records.currBranch},"getCurrentBranch"),Mr=h(function(){return i.records.direction},"getDirection"),Rr=h(function(){return i.records.head},"getHead"),X={commitType:x,getConfig:z,setDirection:ur,setOptions:xr,getOptions:pr,commit:br,branch:mr,merge:wr,cherryPick:vr,checkout:_,prettyPrint:Cr,clear:Er,getBranchesAsObjArray:Br,getBranches:kr,getCommits:Lr,getCommitsArray:V,getCurrentBranch:Tr,getDirection:Mr,getHead:Rr,setAccTitle:nr,getAccTitle:sr,getAccDescription:or,setAccDescription:cr,setDiagramTitle:ir,getDiagramTitle:dr},Ir=h((t,r)=>{Z(t,r),t.dir&&r.setDirection(t.dir);for(const a of t.statements)qr(a,r)},"populate"),qr=h((t,r)=>{const s={Commit:h(e=>r.commit(Or(e)),"Commit"),Branch:h(e=>r.branch(zr(e)),"Branch"),Merge:h(e=>r.merge(Gr(e)),"Merge"),Checkout:h(e=>r.checkout(Hr(e)),"Checkout"),CherryPicking:h(e=>r.cherryPick(Pr(e)),"CherryPicking")}[t.$type];s?s(t):w.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Or=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),zr=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Gr=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Hr=h(t=>t.branch,"parseCheckout"),Pr=h(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Wr={parse:h(async t=>{const r=await gr("gitGraph",t);w.debug(r),Ir(r,X)},"parse")},S=rr(),b=S==null?void 0:S.gitGraph,R=10,I=40,k=4,L=2,O=8,C=new Map,E=new Map,P=30,G=new Map,W=[],M=0,u="LR",jr=h(()=>{C.clear(),E.clear(),G.clear(),M=0,W=[],u="LR"},"clear"),J=h(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(s=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=s.trim(),r.appendChild(e)}),r},"drawText"),Q=h(t=>{let r,a,s;return u==="BT"?(a=h((e,n)=>e<=n,"comparisonFunc"),s=1/0):(a=h((e,n)=>e>=n,"comparisonFunc"),s=0),t.forEach(e=>{var c,o;const n=u==="TB"||u=="BT"?(c=E.get(e))==null?void 0:c.y:(o=E.get(e))==null?void 0:o.x;n!==void 0&&a(n,s)&&(r=e,s=n)}),r},"findClosestParent"),Sr=h(t=>{let r="",a=1/0;return t.forEach(s=>{const e=E.get(s).y;e<=a&&(r=s,a=e)}),r||void 0},"findClosestParentBT"),Ar=h((t,r,a)=>{let s=a,e=a;const n=[];t.forEach(c=>{const o=r.get(c);if(!o)throw new Error(`Commit not found for key ${c}`);o.parents.length?(s=Yr(o),e=Math.max(s,e)):n.push(o),Kr(o,s)}),s=e,n.forEach(c=>{Nr(c,s,a)}),t.forEach(c=>{const o=r.get(c);if(o!=null&&o.parents.length){const $=Sr(o.parents);s=E.get($).y-I,s<=e&&(e=s);const l=C.get(o.branch).pos,f=s-R;E.set(o.id,{x:l,y:f})}})},"setParallelBTPos"),Dr=h(t=>{var s;const r=Q(t.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(s=E.get(r))==null?void 0:s.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Yr=h(t=>Dr(t)+I,"calculateCommitPosition"),Kr=h((t,r)=>{const a=C.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const s=a.pos,e=r+R;return E.set(t.id,{x:s,y:e}),{x:s,y:e}},"setCommitPosition"),Nr=h((t,r,a)=>{const s=C.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const e=r+a,n=s.pos;E.set(t.id,{x:n,y:e})},"setRootPosition"),_r=h((t,r,a,s,e,n)=>{if(n===x.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${s}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${s}-inner`);else if(n===x.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`);else{const c=t.append("circle");if(c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",r.type===x.MERGE?9:10),c.attr("class",`commit ${r.id} commit${e%O}`),n===x.MERGE){const o=t.append("circle");o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",6),o.attr("class",`commit ${s} ${r.id} commit${e%O}`)}n===x.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${s} ${r.id} commit${e%O}`)}},"drawCommitBullet"),Vr=h((t,r,a,s)=>{var e;if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&(b!=null&&b.showCommitLabel)){const n=t.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),o=n.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(r.id),$=(e=o.node())==null?void 0:e.getBBox();if($&&(c.attr("x",a.posWithOffset-$.width/2-L).attr("y",a.y+13.5).attr("width",$.width+2*L).attr("height",$.height+2*L),u==="TB"||u==="BT"?(c.attr("x",a.x-($.width+4*k+5)).attr("y",a.y-12),o.attr("x",a.x-($.width+4*k)).attr("y",a.y+$.height-12)):o.attr("x",a.posWithOffset-$.width/2),b.rotateCommitLabel))if(u==="TB"||u==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const l=-7.5-($.width+10)/25*9.5,f=10+$.width/25*8.5;n.attr("transform","translate("+l+", "+f+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Xr=h((t,r,a,s)=>{var e;if(r.tags.length>0){let n=0,c=0,o=0;const $=[];for(const l of r.tags.reverse()){const f=t.insert("polygon"),g=t.append("circle"),d=t.append("text").attr("y",a.y-16-n).attr("class","tag-label").text(l),y=(e=d.node())==null?void 0:e.getBBox();if(!y)throw new Error("Tag bbox not found");c=Math.max(c,y.width),o=Math.max(o,y.height),d.attr("x",a.posWithOffset-y.width/2),$.push({tag:d,hole:g,rect:f,yOffset:n}),n+=20}for(const{tag:l,hole:f,rect:g,yOffset:d}of $){const y=o/2,p=a.y-19.2-d;if(g.attr("class","tag-label-bkg").attr("points",` ${s-c/2-k/2},${p+L} ${s-c/2-k/2},${p-L} ${a.posWithOffset-c/2-k},${p-y-L} diff --git a/static/js/md-graph--GW7E-WG.js b/static/js/md-graph-C_Pg_EOJ.js similarity index 97% rename from static/js/md-graph--GW7E-WG.js rename to static/js/md-graph-C_Pg_EOJ.js index 2e4cdf1..d2c7408 100644 --- a/static/js/md-graph--GW7E-WG.js +++ b/static/js/md-graph-C_Pg_EOJ.js @@ -1 +1 @@ -import{aA as N,aB as j,aC as f,aD as b,aE as E}from"./md-index-BhYxDPe5.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./md-_baseUniq-Cjg3wXP1.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function C(o,e){o[e]?o[e]++:o[e]=1}function y(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; +import{aA as N,aB as j,aC as f,aD as b,aE as E}from"./md-index-ByjuzIYZ.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./md-_baseUniq-DZXHEAoF.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function C(o,e){o[e]?o[e]++:o[e]=1}function y(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; diff --git a/static/js/md-index-BhYxDPe5.js b/static/js/md-index-ByjuzIYZ.js similarity index 74% rename from static/js/md-index-BhYxDPe5.js rename to static/js/md-index-ByjuzIYZ.js index 5f2c7ec..0fc1425 100644 --- a/static/js/md-index-BhYxDPe5.js +++ b/static/js/md-index-ByjuzIYZ.js @@ -1,26 +1,26 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/md-dagre-4EVJKHTY-DUkVvCAH.js","static/js/md-graph--GW7E-WG.js","static/js/md-_baseUniq-Cjg3wXP1.js","static/js/md-layout-f1dVBnkM.js","static/js/md-_basePickBy-CdF26LR_.js","static/js/md-clone-CtDbzCPt.js","static/js/md-c4Diagram-6F5ED5ID-CWkYI8xo.js","static/js/md-chunk-ASOPGD6M-BZAPvhZW.js","static/js/md-flowDiagram-7ASYPVHJ-BKQXY_02.js","static/js/md-chunk-5HRBRIJM-CkTnwvT0.js","static/js/md-channel-CU0QIpSQ.js","static/js/md-erDiagram-6RL3IURR-Bs2oJbnB.js","static/js/md-gitGraphDiagram-NRZ2UAAF-B7OzYV4r.js","static/js/md-chunk-TMUBEWPD-D-4gDNXh.js","static/js/md-chunk-KFBOBJHC-hNoUdd-l.js","static/js/md-gitGraph-YCYPL57B-BAO2bH4y.js","static/js/md-ganttDiagram-NTVNEXSI-BcdsUGFC.js","static/js/md-linear-Co0c8OqW.js","static/js/md-init-Gi6I4Gst.js","static/js/md-infoDiagram-A4XQUW5V-C4Na9ftU.js","static/js/md-pieDiagram-YF2LJOPJ-Bc7-xj2K.js","static/js/md-arc-Drcnh5x3.js","static/js/md-ordinal-CxVaQH2l.js","static/js/md-quadrantDiagram-OS5C2QUG-CX2urZQX.js","static/js/md-xychartDiagram-6QU3TZC5-avPt4Gwi.js","static/js/md-requirementDiagram-MIRIMTAZ-0y-Z-0BS.js","static/js/md-sequenceDiagram-G6AWOVSC-DjVel-zD.js","static/js/md-classDiagram-LNE6IOMH-CwBm99U8.js","static/js/md-chunk-T2TOU4HS-DPWXYyZ8.js","static/js/md-classDiagram-v2-MQ7JQ4JX-CwBm99U8.js","static/js/md-stateDiagram-MAYHULR4-DuTkR2D1.js","static/js/md-chunk-7U56Z5CX-Dp7clwJn.js","static/js/md-stateDiagram-v2-4JROLMXI-_0BMNyYc.js","static/js/md-journeyDiagram-G5WM74LC-DF5-Nk21.js","static/js/md-timeline-definition-U7ZMHBDA-D6OlfbdI.js","static/js/md-mindmap-definition-GWI6TPTV-BN_pDCz5.js","static/js/md-cytoscape.esm-DNbDS6Fs.js","static/js/md-sankeyDiagram-Y46BX6SQ-Dd5NMB5G.js","static/js/md-diagram-QW4FP2JN-e0oIDmTb.js","static/js/md-blockDiagram-ZHA2E4KO-oImioYsj.js","static/js/md-architectureDiagram-UYN6MBPD-DWoIey3V.js"])))=>i.map(i=>d[i]); -var PN=Object.defineProperty;var vC=Ra=>{throw TypeError(Ra)};var LN=(Ra,qa,nd)=>qa in Ra?PN(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:nd}):Ra[qa]=nd;var Og=(Ra,qa,nd)=>LN(Ra,typeof qa!="symbol"?qa+"":qa,nd),BN=(Ra,qa,nd)=>qa.has(Ra)||vC("Cannot "+nd);var EC=(Ra,qa,nd)=>qa.has(Ra)?vC("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,nd);var BT=(Ra,qa,nd)=>(BN(Ra,qa,"access private method"),nd);(function(){const qa=document.createElement("link").relList;if(qa&&qa.supports&&qa.supports("modulepreload"))return;for(const ld of document.querySelectorAll('link[rel="modulepreload"]'))od(ld);new MutationObserver(ld=>{for(const ud of ld)if(ud.type==="childList")for(const dd of ud.addedNodes)dd.tagName==="LINK"&&dd.rel==="modulepreload"&&od(dd)}).observe(document,{childList:!0,subtree:!0});function nd(ld){const ud={};return ld.integrity&&(ud.integrity=ld.integrity),ld.referrerPolicy&&(ud.referrerPolicy=ld.referrerPolicy),ld.crossOrigin==="use-credentials"?ud.credentials="include":ld.crossOrigin==="anonymous"?ud.credentials="omit":ud.credentials="same-origin",ud}function od(ld){if(ld.ep)return;ld.ep=!0;const ud=nd(ld);fetch(ld.href,ud)}})();const global$1=globalThis||void 0||self;/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/md-dagre-4EVJKHTY-BRZOG5IN.js","static/js/md-graph-C_Pg_EOJ.js","static/js/md-_baseUniq-DZXHEAoF.js","static/js/md-layout-B18tK69Y.js","static/js/md-_basePickBy-C4aggLA-.js","static/js/md-clone-CEEsdKQ5.js","static/js/md-c4Diagram-6F5ED5ID-Cg__yH_7.js","static/js/md-chunk-ASOPGD6M-D5CB9lCy.js","static/js/md-flowDiagram-7ASYPVHJ-DPqu6Hql.js","static/js/md-chunk-5HRBRIJM-nr27TBxG.js","static/js/md-channel-BSQ4jenh.js","static/js/md-erDiagram-6RL3IURR-DG4qFxrV.js","static/js/md-gitGraphDiagram-NRZ2UAAF-v1vnXS29.js","static/js/md-chunk-TMUBEWPD-Dgrus0aV.js","static/js/md-chunk-KFBOBJHC-CHuIljkb.js","static/js/md-gitGraph-YCYPL57B-Cg_Niwrz.js","static/js/md-ganttDiagram-NTVNEXSI-By8qXEDY.js","static/js/md-linear-D0BfzCsi.js","static/js/md-init-Gi6I4Gst.js","static/js/md-infoDiagram-A4XQUW5V-1c5r9cBt.js","static/js/md-pieDiagram-YF2LJOPJ-Dl_wwVwL.js","static/js/md-arc-C7OGNnly.js","static/js/md-ordinal-CxVaQH2l.js","static/js/md-quadrantDiagram-OS5C2QUG-DLle--aO.js","static/js/md-xychartDiagram-6QU3TZC5-DCXKT1pK.js","static/js/md-requirementDiagram-MIRIMTAZ-D404uIf2.js","static/js/md-sequenceDiagram-G6AWOVSC-CtkVu07L.js","static/js/md-classDiagram-LNE6IOMH-b0TVk0AA.js","static/js/md-chunk-T2TOU4HS-DB2u00L2.js","static/js/md-classDiagram-v2-MQ7JQ4JX-b0TVk0AA.js","static/js/md-stateDiagram-MAYHULR4-BIcC8GHV.js","static/js/md-chunk-7U56Z5CX-DsEs53Ln.js","static/js/md-stateDiagram-v2-4JROLMXI-CRjPXwwq.js","static/js/md-journeyDiagram-G5WM74LC-WQWGbOcr.js","static/js/md-timeline-definition-U7ZMHBDA-n8Ag5tXS.js","static/js/md-mindmap-definition-GWI6TPTV-Cg1KPMe9.js","static/js/md-cytoscape.esm-xtxBoH4m.js","static/js/md-sankeyDiagram-Y46BX6SQ-j2j7veLN.js","static/js/md-diagram-QW4FP2JN-Dt-25_w1.js","static/js/md-blockDiagram-ZHA2E4KO-BRd8o0Kg.js","static/js/md-architectureDiagram-UYN6MBPD-D1Um4PBx.js"])))=>i.map(i=>d[i]); +var PD=Object.defineProperty;var vC=Ra=>{throw TypeError(Ra)};var LD=(Ra,qa,nd)=>qa in Ra?PD(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:nd}):Ra[qa]=nd;var kg=(Ra,qa,nd)=>LD(Ra,typeof qa!="symbol"?qa+"":qa,nd),BD=(Ra,qa,nd)=>qa.has(Ra)||vC("Cannot "+nd);var EC=(Ra,qa,nd)=>qa.has(Ra)?vC("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,nd);var BT=(Ra,qa,nd)=>(BD(Ra,qa,"access private method"),nd);(function(){const qa=document.createElement("link").relList;if(qa&&qa.supports&&qa.supports("modulepreload"))return;for(const ld of document.querySelectorAll('link[rel="modulepreload"]'))od(ld);new MutationObserver(ld=>{for(const ud of ld)if(ud.type==="childList")for(const dd of ud.addedNodes)dd.tagName==="LINK"&&dd.rel==="modulepreload"&&od(dd)}).observe(document,{childList:!0,subtree:!0});function nd(ld){const ud={};return ld.integrity&&(ud.integrity=ld.integrity),ld.referrerPolicy&&(ud.referrerPolicy=ld.referrerPolicy),ld.crossOrigin==="use-credentials"?ud.credentials="include":ld.crossOrigin==="anonymous"?ud.credentials="omit":ud.credentials="same-origin",ud}function od(ld){if(ld.ep)return;ld.ep=!0;const ud=nd(ld);fetch(ld.href,ud)}})();const global$1=globalThis||void 0||self;/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function makeMap(Ra){const qa=Object.create(null);for(const nd of Ra.split(","))qa[nd]=1;return nd=>nd in qa}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&(Ra.charCodeAt(2)>122||Ra.charCodeAt(2)<97),isModelListener=Ra=>Ra.startsWith("onUpdate:"),extend$4=Object.assign,remove$2=(Ra,qa)=>{const nd=Ra.indexOf(qa);nd>-1&&Ra.splice(nd,1)},hasOwnProperty$f=Object.prototype.hasOwnProperty,hasOwn$3=(Ra,qa)=>hasOwnProperty$f.call(Ra,qa),isArray$2=Array.isArray,isMap=Ra=>toTypeString(Ra)==="[object Map]",isSet$1=Ra=>toTypeString(Ra)==="[object Set]",isDate$1=Ra=>toTypeString(Ra)==="[object Date]",isFunction$4=Ra=>typeof Ra=="function",isString$2=Ra=>typeof Ra=="string",isSymbol=Ra=>typeof Ra=="symbol",isObject$6=Ra=>Ra!==null&&typeof Ra=="object",isPromise=Ra=>(isObject$6(Ra)||isFunction$4(Ra))&&isFunction$4(Ra.then)&&isFunction$4(Ra.catch),objectToString$1=Object.prototype.toString,toTypeString=Ra=>objectToString$1.call(Ra),toRawType=Ra=>toTypeString(Ra).slice(8,-1),isPlainObject$4=Ra=>toTypeString(Ra)==="[object Object]",isIntegerKey=Ra=>isString$2(Ra)&&Ra!=="NaN"&&Ra[0]!=="-"&&""+parseInt(Ra,10)===Ra,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=Ra=>{const qa=Object.create(null);return nd=>qa[nd]||(qa[nd]=Ra(nd))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(Ra=>Ra.replace(camelizeRE,(qa,nd)=>nd?nd.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(Ra=>Ra.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(Ra=>Ra.charAt(0).toUpperCase()+Ra.slice(1)),toHandlerKey=cacheStringFunction(Ra=>Ra?`on${capitalize(Ra)}`:""),hasChanged=(Ra,qa)=>!Object.is(Ra,qa),invokeArrayFns=(Ra,...qa)=>{for(let nd=0;nd{Object.defineProperty(Ra,qa,{configurable:!0,enumerable:!1,writable:od,value:nd})},looseToNumber=Ra=>{const qa=parseFloat(Ra);return isNaN(qa)?Ra:qa},toNumber$3=Ra=>{const qa=isString$2(Ra)?Number(Ra):NaN;return isNaN(qa)?Ra:qa};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global$1<"u"?global$1:{});function normalizeStyle(Ra){if(isArray$2(Ra)){const qa={};for(let nd=0;nd{if(nd){const od=nd.split(propertyDelimiterRE);od.length>1&&(qa[od[0].trim()]=od[1].trim())}}),qa}function normalizeClass(Ra){let qa="";if(isString$2(Ra))qa=Ra;else if(isArray$2(Ra))for(let nd=0;ndlooseEqual(nd,qa))}const isRef$1=Ra=>!!(Ra&&Ra.__v_isRef===!0),toDisplayString=Ra=>isString$2(Ra)?Ra:Ra==null?"":isArray$2(Ra)||isObject$6(Ra)&&(Ra.toString===objectToString$1||!isFunction$4(Ra.toString))?isRef$1(Ra)?toDisplayString(Ra.value):JSON.stringify(Ra,replacer$1,2):String(Ra),replacer$1=(Ra,qa)=>isRef$1(qa)?replacer$1(Ra,qa.value):isMap(qa)?{[`Map(${qa.size})`]:[...qa.entries()].reduce((nd,[od,ld],ud)=>(nd[stringifySymbol(od,ud)+" =>"]=ld,nd),{})}:isSet$1(qa)?{[`Set(${qa.size})`]:[...qa.values()].map(nd=>stringifySymbol(nd))}:isSymbol(qa)?stringifySymbol(qa):isObject$6(qa)&&!isArray$2(qa)&&!isPlainObject$4(qa)?String(qa):qa,stringifySymbol=(Ra,qa="")=>{var nd;return isSymbol(Ra)?`Symbol(${(nd=Ra.description)!=null?nd:qa})`:Ra};/** +**//*! #__NO_SIDE_EFFECTS__ */function makeMap(Ra){const qa=Object.create(null);for(const nd of Ra.split(","))qa[nd]=1;return nd=>nd in qa}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&(Ra.charCodeAt(2)>122||Ra.charCodeAt(2)<97),isModelListener=Ra=>Ra.startsWith("onUpdate:"),extend$4=Object.assign,remove$2=(Ra,qa)=>{const nd=Ra.indexOf(qa);nd>-1&&Ra.splice(nd,1)},hasOwnProperty$f=Object.prototype.hasOwnProperty,hasOwn$3=(Ra,qa)=>hasOwnProperty$f.call(Ra,qa),isArray$2=Array.isArray,isMap=Ra=>toTypeString(Ra)==="[object Map]",isSet$1=Ra=>toTypeString(Ra)==="[object Set]",isDate$2=Ra=>toTypeString(Ra)==="[object Date]",isFunction$4=Ra=>typeof Ra=="function",isString$2=Ra=>typeof Ra=="string",isSymbol=Ra=>typeof Ra=="symbol",isObject$9=Ra=>Ra!==null&&typeof Ra=="object",isPromise=Ra=>(isObject$9(Ra)||isFunction$4(Ra))&&isFunction$4(Ra.then)&&isFunction$4(Ra.catch),objectToString$1=Object.prototype.toString,toTypeString=Ra=>objectToString$1.call(Ra),toRawType=Ra=>toTypeString(Ra).slice(8,-1),isPlainObject$6=Ra=>toTypeString(Ra)==="[object Object]",isIntegerKey=Ra=>isString$2(Ra)&&Ra!=="NaN"&&Ra[0]!=="-"&&""+parseInt(Ra,10)===Ra,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=Ra=>{const qa=Object.create(null);return nd=>qa[nd]||(qa[nd]=Ra(nd))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(Ra=>Ra.replace(camelizeRE,(qa,nd)=>nd?nd.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(Ra=>Ra.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(Ra=>Ra.charAt(0).toUpperCase()+Ra.slice(1)),toHandlerKey=cacheStringFunction(Ra=>Ra?`on${capitalize(Ra)}`:""),hasChanged=(Ra,qa)=>!Object.is(Ra,qa),invokeArrayFns=(Ra,...qa)=>{for(let nd=0;nd{Object.defineProperty(Ra,qa,{configurable:!0,enumerable:!1,writable:od,value:nd})},looseToNumber=Ra=>{const qa=parseFloat(Ra);return isNaN(qa)?Ra:qa},toNumber$5=Ra=>{const qa=isString$2(Ra)?Number(Ra):NaN;return isNaN(qa)?Ra:qa};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global$1<"u"?global$1:{});function normalizeStyle(Ra){if(isArray$2(Ra)){const qa={};for(let nd=0;nd{if(nd){const od=nd.split(propertyDelimiterRE);od.length>1&&(qa[od[0].trim()]=od[1].trim())}}),qa}function normalizeClass(Ra){let qa="";if(isString$2(Ra))qa=Ra;else if(isArray$2(Ra))for(let nd=0;ndlooseEqual(nd,qa))}const isRef$1=Ra=>!!(Ra&&Ra.__v_isRef===!0),toDisplayString=Ra=>isString$2(Ra)?Ra:Ra==null?"":isArray$2(Ra)||isObject$9(Ra)&&(Ra.toString===objectToString$1||!isFunction$4(Ra.toString))?isRef$1(Ra)?toDisplayString(Ra.value):JSON.stringify(Ra,replacer$1,2):String(Ra),replacer$1=(Ra,qa)=>isRef$1(qa)?replacer$1(Ra,qa.value):isMap(qa)?{[`Map(${qa.size})`]:[...qa.entries()].reduce((nd,[od,ld],ud)=>(nd[stringifySymbol(od,ud)+" =>"]=ld,nd),{})}:isSet$1(qa)?{[`Set(${qa.size})`]:[...qa.values()].map(nd=>stringifySymbol(nd))}:isSymbol(qa)?stringifySymbol(qa):isObject$9(qa)&&!isArray$2(qa)&&!isPlainObject$6(qa)?String(qa):qa,stringifySymbol=(Ra,qa="")=>{var nd;return isSymbol(Ra)?`Symbol(${(nd=Ra.description)!=null?nd:qa})`:Ra};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let activeEffectScope;class EffectScope{constructor(qa=!1){this.detached=qa,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!qa&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let qa,nd;if(this.scopes)for(qa=0,nd=this.scopes.length;qa0)return;if(batchedComputed){let qa=batchedComputed;for(batchedComputed=void 0;qa;){const nd=qa.next;qa.next=void 0,qa.flags&=-9,qa=nd}}let Ra;for(;batchedSub;){let qa=batchedSub;for(batchedSub=void 0;qa;){const nd=qa.next;if(qa.next=void 0,qa.flags&=-9,qa.flags&1)try{qa.trigger()}catch(od){Ra||(Ra=od)}qa=nd}}if(Ra)throw Ra}function prepareDeps(Ra){for(let qa=Ra.deps;qa;qa=qa.nextDep)qa.version=-1,qa.prevActiveLink=qa.dep.activeLink,qa.dep.activeLink=qa}function cleanupDeps(Ra){let qa,nd=Ra.depsTail,od=nd;for(;od;){const ld=od.prevDep;od.version===-1?(od===nd&&(nd=ld),removeSub(od),removeDep(od)):qa=od,od.dep.activeLink=od.prevActiveLink,od.prevActiveLink=void 0,od=ld}Ra.deps=qa,Ra.depsTail=nd}function isDirty(Ra){for(let qa=Ra.deps;qa;qa=qa.nextDep)if(qa.dep.version!==qa.version||qa.dep.computed&&(refreshComputed(qa.dep.computed)||qa.dep.version!==qa.version))return!0;return!!Ra._dirty}function refreshComputed(Ra){if(Ra.flags&4&&!(Ra.flags&16)||(Ra.flags&=-17,Ra.globalVersion===globalVersion))return;Ra.globalVersion=globalVersion;const qa=Ra.dep;if(Ra.flags|=2,qa.version>0&&!Ra.isSSR&&Ra.deps&&!isDirty(Ra)){Ra.flags&=-3;return}const nd=activeSub,od=shouldTrack;activeSub=Ra,shouldTrack=!0;try{prepareDeps(Ra);const ld=Ra.fn(Ra._value);(qa.version===0||hasChanged(ld,Ra._value))&&(Ra._value=ld,qa.version++)}catch(ld){throw qa.version++,ld}finally{activeSub=nd,shouldTrack=od,cleanupDeps(Ra),Ra.flags&=-3}}function removeSub(Ra,qa=!1){const{dep:nd,prevSub:od,nextSub:ld}=Ra;if(od&&(od.nextSub=ld,Ra.prevSub=void 0),ld&&(ld.prevSub=od,Ra.nextSub=void 0),nd.subs===Ra&&(nd.subs=od,!od&&nd.computed)){nd.computed.flags&=-5;for(let ud=nd.computed.deps;ud;ud=ud.nextDep)removeSub(ud,!0)}!qa&&!--nd.sc&&nd.map&&nd.map.delete(nd.key)}function removeDep(Ra){const{prevDep:qa,nextDep:nd}=Ra;qa&&(qa.nextDep=nd,Ra.prevDep=void 0),nd&&(nd.prevDep=qa,Ra.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const Ra=trackStack.pop();shouldTrack=Ra===void 0?!0:Ra}function cleanupEffect(Ra){const{cleanup:qa}=Ra;if(Ra.cleanup=void 0,qa){const nd=activeSub;activeSub=void 0;try{qa()}finally{activeSub=nd}}}let globalVersion=0;class Link{constructor(qa,nd){this.sub=qa,this.dep=nd,this.version=nd.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dep{constructor(qa){this.computed=qa,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(qa){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let nd=this.activeLink;if(nd===void 0||nd.sub!==activeSub)nd=this.activeLink=new Link(activeSub,this),activeSub.deps?(nd.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=nd,activeSub.depsTail=nd):activeSub.deps=activeSub.depsTail=nd,addSub(nd);else if(nd.version===-1&&(nd.version=this.version,nd.nextDep)){const od=nd.nextDep;od.prevDep=nd.prevDep,nd.prevDep&&(nd.prevDep.nextDep=od),nd.prevDep=activeSub.depsTail,nd.nextDep=void 0,activeSub.depsTail.nextDep=nd,activeSub.depsTail=nd,activeSub.deps===nd&&(activeSub.deps=od)}return nd}trigger(qa){this.version++,globalVersion++,this.notify(qa)}notify(qa){startBatch();try{for(let nd=this.subs;nd;nd=nd.prevSub)nd.sub.notify()&&nd.sub.dep.notify()}finally{endBatch()}}}function addSub(Ra){if(Ra.dep.sc++,Ra.sub.flags&4){const qa=Ra.dep.computed;if(qa&&!Ra.dep.subs){qa.flags|=20;for(let od=qa.deps;od;od=od.nextDep)addSub(od)}const nd=Ra.dep.subs;nd!==Ra&&(Ra.prevSub=nd,nd&&(nd.nextSub=Ra)),Ra.dep.subs=Ra}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(Ra,qa,nd){if(shouldTrack&&activeSub){let od=targetMap.get(Ra);od||targetMap.set(Ra,od=new Map);let ld=od.get(nd);ld||(od.set(nd,ld=new Dep),ld.map=od,ld.key=nd),ld.track()}}function trigger(Ra,qa,nd,od,ld,ud){const dd=targetMap.get(Ra);if(!dd){globalVersion++;return}const pd=fd=>{fd&&fd.trigger()};if(startBatch(),qa==="clear")dd.forEach(pd);else{const fd=isArray$2(Ra),md=fd&&isIntegerKey(nd);if(fd&&nd==="length"){const vd=Number(od);dd.forEach((Ad,Nd)=>{(Nd==="length"||Nd===ARRAY_ITERATE_KEY||!isSymbol(Nd)&&Nd>=vd)&&pd(Ad)})}else switch((nd!==void 0||dd.has(void 0))&&pd(dd.get(nd)),md&&pd(dd.get(ARRAY_ITERATE_KEY)),qa){case"add":fd?md&&pd(dd.get("length")):(pd(dd.get(ITERATE_KEY)),isMap(Ra)&&pd(dd.get(MAP_KEY_ITERATE_KEY)));break;case"delete":fd||(pd(dd.get(ITERATE_KEY)),isMap(Ra)&&pd(dd.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(Ra)&&pd(dd.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(Ra,qa){const nd=targetMap.get(Ra);return nd&&nd.get(qa)}function reactiveReadArray(Ra){const qa=toRaw(Ra);return qa===Ra?qa:(track(qa,"iterate",ARRAY_ITERATE_KEY),isShallow(Ra)?qa:qa.map(toReactive))}function shallowReadArray(Ra){return track(Ra=toRaw(Ra),"iterate",ARRAY_ITERATE_KEY),Ra}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(...Ra){return reactiveReadArray(this).concat(...Ra.map(qa=>isArray$2(qa)?reactiveReadArray(qa):qa))},entries(){return iterator(this,"entries",Ra=>(Ra[1]=toReactive(Ra[1]),Ra))},every(Ra,qa){return apply$3(this,"every",Ra,qa,void 0,arguments)},filter(Ra,qa){return apply$3(this,"filter",Ra,qa,nd=>nd.map(toReactive),arguments)},find(Ra,qa){return apply$3(this,"find",Ra,qa,toReactive,arguments)},findIndex(Ra,qa){return apply$3(this,"findIndex",Ra,qa,void 0,arguments)},findLast(Ra,qa){return apply$3(this,"findLast",Ra,qa,toReactive,arguments)},findLastIndex(Ra,qa){return apply$3(this,"findLastIndex",Ra,qa,void 0,arguments)},forEach(Ra,qa){return apply$3(this,"forEach",Ra,qa,void 0,arguments)},includes(...Ra){return searchProxy(this,"includes",Ra)},indexOf(...Ra){return searchProxy(this,"indexOf",Ra)},join(Ra){return reactiveReadArray(this).join(Ra)},lastIndexOf(...Ra){return searchProxy(this,"lastIndexOf",Ra)},map(Ra,qa){return apply$3(this,"map",Ra,qa,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...Ra){return noTracking(this,"push",Ra)},reduce(Ra,...qa){return reduce$2(this,"reduce",Ra,qa)},reduceRight(Ra,...qa){return reduce$2(this,"reduceRight",Ra,qa)},shift(){return noTracking(this,"shift")},some(Ra,qa){return apply$3(this,"some",Ra,qa,void 0,arguments)},splice(...Ra){return noTracking(this,"splice",Ra)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(Ra){return reactiveReadArray(this).toSorted(Ra)},toSpliced(...Ra){return reactiveReadArray(this).toSpliced(...Ra)},unshift(...Ra){return noTracking(this,"unshift",Ra)},values(){return iterator(this,"values",toReactive)}};function iterator(Ra,qa,nd){const od=shallowReadArray(Ra),ld=od[qa]();return od!==Ra&&!isShallow(Ra)&&(ld._next=ld.next,ld.next=()=>{const ud=ld._next();return ud.value&&(ud.value=nd(ud.value)),ud}),ld}const arrayProto$1=Array.prototype;function apply$3(Ra,qa,nd,od,ld,ud){const dd=shallowReadArray(Ra),pd=dd!==Ra&&!isShallow(Ra),fd=dd[qa];if(fd!==arrayProto$1[qa]){const Ad=fd.apply(Ra,ud);return pd?toReactive(Ad):Ad}let md=nd;dd!==Ra&&(pd?md=function(Ad,Nd){return nd.call(this,toReactive(Ad),Nd,Ra)}:nd.length>2&&(md=function(Ad,Nd){return nd.call(this,Ad,Nd,Ra)}));const vd=fd.call(dd,md,od);return pd&&ld?ld(vd):vd}function reduce$2(Ra,qa,nd,od){const ld=shallowReadArray(Ra);let ud=nd;return ld!==Ra&&(isShallow(Ra)?nd.length>3&&(ud=function(dd,pd,fd){return nd.call(this,dd,pd,fd,Ra)}):ud=function(dd,pd,fd){return nd.call(this,dd,toReactive(pd),fd,Ra)}),ld[qa](ud,...od)}function searchProxy(Ra,qa,nd){const od=toRaw(Ra);track(od,"iterate",ARRAY_ITERATE_KEY);const ld=od[qa](...nd);return(ld===-1||ld===!1)&&isProxy(nd[0])?(nd[0]=toRaw(nd[0]),od[qa](...nd)):ld}function noTracking(Ra,qa,nd=[]){pauseTracking(),startBatch();const od=toRaw(Ra)[qa].apply(Ra,nd);return endBatch(),resetTracking(),od}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(Ra=>Ra!=="arguments"&&Ra!=="caller").map(Ra=>Symbol[Ra]).filter(isSymbol));function hasOwnProperty$e(Ra){isSymbol(Ra)||(Ra=String(Ra));const qa=toRaw(this);return track(qa,"has",Ra),qa.hasOwnProperty(Ra)}class BaseReactiveHandler{constructor(qa=!1,nd=!1){this._isReadonly=qa,this._isShallow=nd}get(qa,nd,od){if(nd==="__v_skip")return qa.__v_skip;const ld=this._isReadonly,ud=this._isShallow;if(nd==="__v_isReactive")return!ld;if(nd==="__v_isReadonly")return ld;if(nd==="__v_isShallow")return ud;if(nd==="__v_raw")return od===(ld?ud?shallowReadonlyMap:readonlyMap:ud?shallowReactiveMap:reactiveMap).get(qa)||Object.getPrototypeOf(qa)===Object.getPrototypeOf(od)?qa:void 0;const dd=isArray$2(qa);if(!ld){let fd;if(dd&&(fd=arrayInstrumentations[nd]))return fd;if(nd==="hasOwnProperty")return hasOwnProperty$e}const pd=Reflect.get(qa,nd,isRef(qa)?qa:od);return(isSymbol(nd)?builtInSymbols.has(nd):isNonTrackableKeys(nd))||(ld||track(qa,"get",nd),ud)?pd:isRef(pd)?dd&&isIntegerKey(nd)?pd:pd.value:isObject$6(pd)?ld?readonly(pd):reactive(pd):pd}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(qa=!1){super(!1,qa)}set(qa,nd,od,ld){let ud=qa[nd];if(!this._isShallow){const fd=isReadonly(ud);if(!isShallow(od)&&!isReadonly(od)&&(ud=toRaw(ud),od=toRaw(od)),!isArray$2(qa)&&isRef(ud)&&!isRef(od))return fd?!1:(ud.value=od,!0)}const dd=isArray$2(qa)&&isIntegerKey(nd)?Number(nd)Ra,getProto$2=Ra=>Reflect.getPrototypeOf(Ra);function createIterableMethod(Ra,qa,nd){return function(...od){const ld=this.__v_raw,ud=toRaw(ld),dd=isMap(ud),pd=Ra==="entries"||Ra===Symbol.iterator&&dd,fd=Ra==="keys"&&dd,md=ld[Ra](...od),vd=nd?toShallow:qa?toReadonly:toReactive;return!qa&&track(ud,"iterate",fd?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Ad,done:Nd}=md.next();return Nd?{value:Ad,done:Nd}:{value:pd?[vd(Ad[0]),vd(Ad[1])]:vd(Ad),done:Nd}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(Ra){return function(...qa){return Ra==="delete"?!1:Ra==="clear"?void 0:this}}function createInstrumentations(Ra,qa){const nd={get(ld){const ud=this.__v_raw,dd=toRaw(ud),pd=toRaw(ld);Ra||(hasChanged(ld,pd)&&track(dd,"get",ld),track(dd,"get",pd));const{has:fd}=getProto$2(dd),md=qa?toShallow:Ra?toReadonly:toReactive;if(fd.call(dd,ld))return md(ud.get(ld));if(fd.call(dd,pd))return md(ud.get(pd));ud!==dd&&ud.get(ld)},get size(){const ld=this.__v_raw;return!Ra&&track(toRaw(ld),"iterate",ITERATE_KEY),Reflect.get(ld,"size",ld)},has(ld){const ud=this.__v_raw,dd=toRaw(ud),pd=toRaw(ld);return Ra||(hasChanged(ld,pd)&&track(dd,"has",ld),track(dd,"has",pd)),ld===pd?ud.has(ld):ud.has(ld)||ud.has(pd)},forEach(ld,ud){const dd=this,pd=dd.__v_raw,fd=toRaw(pd),md=qa?toShallow:Ra?toReadonly:toReactive;return!Ra&&track(fd,"iterate",ITERATE_KEY),pd.forEach((vd,Ad)=>ld.call(ud,md(vd),md(Ad),dd))}};return extend$4(nd,Ra?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(ld){!qa&&!isShallow(ld)&&!isReadonly(ld)&&(ld=toRaw(ld));const ud=toRaw(this);return getProto$2(ud).has.call(ud,ld)||(ud.add(ld),trigger(ud,"add",ld,ld)),this},set(ld,ud){!qa&&!isShallow(ud)&&!isReadonly(ud)&&(ud=toRaw(ud));const dd=toRaw(this),{has:pd,get:fd}=getProto$2(dd);let md=pd.call(dd,ld);md||(ld=toRaw(ld),md=pd.call(dd,ld));const vd=fd.call(dd,ld);return dd.set(ld,ud),md?hasChanged(ud,vd)&&trigger(dd,"set",ld,ud):trigger(dd,"add",ld,ud),this},delete(ld){const ud=toRaw(this),{has:dd,get:pd}=getProto$2(ud);let fd=dd.call(ud,ld);fd||(ld=toRaw(ld),fd=dd.call(ud,ld)),pd&&pd.call(ud,ld);const md=ud.delete(ld);return fd&&trigger(ud,"delete",ld,void 0),md},clear(){const ld=toRaw(this),ud=ld.size!==0,dd=ld.clear();return ud&&trigger(ld,"clear",void 0,void 0),dd}}),["keys","values","entries",Symbol.iterator].forEach(ld=>{nd[ld]=createIterableMethod(ld,Ra,qa)}),nd}function createInstrumentationGetter(Ra,qa){const nd=createInstrumentations(Ra,qa);return(od,ld,ud)=>ld==="__v_isReactive"?!Ra:ld==="__v_isReadonly"?Ra:ld==="__v_raw"?od:Reflect.get(hasOwn$3(nd,ld)&&ld in od?nd:od,ld,ud)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(Ra){switch(Ra){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(Ra){return Ra.__v_skip||!Object.isExtensible(Ra)?0:targetTypeMap(toRawType(Ra))}function reactive(Ra){return isReadonly(Ra)?Ra:createReactiveObject(Ra,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(Ra){return createReactiveObject(Ra,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(Ra){return createReactiveObject(Ra,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(Ra){return createReactiveObject(Ra,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(Ra,qa,nd,od,ld){if(!isObject$6(Ra)||Ra.__v_raw&&!(qa&&Ra.__v_isReactive))return Ra;const ud=ld.get(Ra);if(ud)return ud;const dd=getTargetType(Ra);if(dd===0)return Ra;const pd=new Proxy(Ra,dd===2?od:nd);return ld.set(Ra,pd),pd}function isReactive(Ra){return isReadonly(Ra)?isReactive(Ra.__v_raw):!!(Ra&&Ra.__v_isReactive)}function isReadonly(Ra){return!!(Ra&&Ra.__v_isReadonly)}function isShallow(Ra){return!!(Ra&&Ra.__v_isShallow)}function isProxy(Ra){return Ra?!!Ra.__v_raw:!1}function toRaw(Ra){const qa=Ra&&Ra.__v_raw;return qa?toRaw(qa):Ra}function markRaw(Ra){return!hasOwn$3(Ra,"__v_skip")&&Object.isExtensible(Ra)&&def$2(Ra,"__v_skip",!0),Ra}const toReactive=Ra=>isObject$6(Ra)?reactive(Ra):Ra,toReadonly=Ra=>isObject$6(Ra)?readonly(Ra):Ra;function isRef(Ra){return Ra?Ra.__v_isRef===!0:!1}function ref$1(Ra){return createRef(Ra,!1)}function shallowRef(Ra){return createRef(Ra,!0)}function createRef(Ra,qa){return isRef(Ra)?Ra:new RefImpl(Ra,qa)}class RefImpl{constructor(qa,nd){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=nd?qa:toRaw(qa),this._value=nd?qa:toReactive(qa),this.__v_isShallow=nd}get value(){return this.dep.track(),this._value}set value(qa){const nd=this._rawValue,od=this.__v_isShallow||isShallow(qa)||isReadonly(qa);qa=od?qa:toRaw(qa),hasChanged(qa,nd)&&(this._rawValue=qa,this._value=od?qa:toReactive(qa),this.dep.trigger())}}function unref(Ra){return isRef(Ra)?Ra.value:Ra}const shallowUnwrapHandlers={get:(Ra,qa,nd)=>qa==="__v_raw"?Ra:unref(Reflect.get(Ra,qa,nd)),set:(Ra,qa,nd,od)=>{const ld=Ra[qa];return isRef(ld)&&!isRef(nd)?(ld.value=nd,!0):Reflect.set(Ra,qa,nd,od)}};function proxyRefs(Ra){return isReactive(Ra)?Ra:new Proxy(Ra,shallowUnwrapHandlers)}class CustomRefImpl{constructor(qa){this.__v_isRef=!0,this._value=void 0;const nd=this.dep=new Dep,{get:od,set:ld}=qa(nd.track.bind(nd),nd.trigger.bind(nd));this._get=od,this._set=ld}get value(){return this._value=this._get()}set value(qa){this._set(qa)}}function customRef(Ra){return new CustomRefImpl(Ra)}function toRefs(Ra){const qa=isArray$2(Ra)?new Array(Ra.length):{};for(const nd in Ra)qa[nd]=propertyToRef(Ra,nd);return qa}class ObjectRefImpl{constructor(qa,nd,od){this._object=qa,this._key=nd,this._defaultValue=od,this.__v_isRef=!0,this._value=void 0}get value(){const qa=this._object[this._key];return this._value=qa===void 0?this._defaultValue:qa}set value(qa){this._object[this._key]=qa}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(qa){this._getter=qa,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function toRef$1(Ra,qa,nd){return isRef(Ra)?Ra:isFunction$4(Ra)?new GetterRefImpl(Ra):isObject$6(Ra)&&arguments.length>1?propertyToRef(Ra,qa,nd):ref$1(Ra)}function propertyToRef(Ra,qa,nd){const od=Ra[qa];return isRef(od)?od:new ObjectRefImpl(Ra,qa,nd)}class ComputedRefImpl{constructor(qa,nd,od){this.fn=qa,this.setter=nd,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!nd,this.isSSR=od}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){const qa=this.dep.track();return refreshComputed(this),qa&&(qa.version=this.dep.version),this._value}set value(qa){this.setter&&this.setter(qa)}}function computed$1(Ra,qa,nd=!1){let od,ld;return isFunction$4(Ra)?od=Ra:(od=Ra.get,ld=Ra.set),new ComputedRefImpl(od,ld,nd)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(Ra,qa=!1,nd=activeWatcher){if(nd){let od=cleanupMap.get(nd);od||cleanupMap.set(nd,od=[]),od.push(Ra)}}function watch$1(Ra,qa,nd=EMPTY_OBJ){const{immediate:od,deep:ld,once:ud,scheduler:dd,augmentJob:pd,call:fd}=nd,md=qd=>ld?qd:isShallow(qd)||ld===!1||ld===0?traverse(qd,1):traverse(qd);let vd,Ad,Nd,Od,kd=!1,Ld=!1;if(isRef(Ra)?(Ad=()=>Ra.value,kd=isShallow(Ra)):isReactive(Ra)?(Ad=()=>md(Ra),kd=!0):isArray$2(Ra)?(Ld=!0,kd=Ra.some(qd=>isReactive(qd)||isShallow(qd)),Ad=()=>Ra.map(qd=>{if(isRef(qd))return qd.value;if(isReactive(qd))return md(qd);if(isFunction$4(qd))return fd?fd(qd,2):qd()})):isFunction$4(Ra)?qa?Ad=fd?()=>fd(Ra,2):Ra:Ad=()=>{if(Nd){pauseTracking();try{Nd()}finally{resetTracking()}}const qd=activeWatcher;activeWatcher=vd;try{return fd?fd(Ra,3,[Od]):Ra(Od)}finally{activeWatcher=qd}}:Ad=NOOP,qa&&ld){const qd=Ad,zd=ld===!0?1/0:ld;Ad=()=>traverse(qd(),zd)}const Gd=getCurrentScope(),Ud=()=>{vd.stop(),Gd&&Gd.active&&remove$2(Gd.effects,vd)};if(ud&&qa){const qd=qa;qa=(...zd)=>{qd(...zd),Ud()}}let Fd=Ld?new Array(Ra.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const jd=qd=>{if(!(!(vd.flags&1)||!vd.dirty&&!qd))if(qa){const zd=vd.run();if(ld||kd||(Ld?zd.some((Yd,Jd)=>hasChanged(Yd,Fd[Jd])):hasChanged(zd,Fd))){Nd&&Nd();const Yd=activeWatcher;activeWatcher=vd;try{const Jd=[zd,Fd===INITIAL_WATCHER_VALUE?void 0:Ld&&Fd[0]===INITIAL_WATCHER_VALUE?[]:Fd,Od];fd?fd(qa,3,Jd):qa(...Jd),Fd=zd}finally{activeWatcher=Yd}}}else vd.run()};return pd&&pd(jd),vd=new ReactiveEffect(Ad),vd.scheduler=dd?()=>dd(jd,!1):jd,Od=qd=>onWatcherCleanup(qd,!1,vd),Nd=vd.onStop=()=>{const qd=cleanupMap.get(vd);if(qd){if(fd)fd(qd,4);else for(const zd of qd)zd();cleanupMap.delete(vd)}},qa?od?jd(!0):Fd=vd.run():dd?dd(jd.bind(null,!0),!0):vd.run(),Ud.pause=vd.pause.bind(vd),Ud.resume=vd.resume.bind(vd),Ud.stop=Ud,Ud}function traverse(Ra,qa=1/0,nd){if(qa<=0||!isObject$6(Ra)||Ra.__v_skip||(nd=nd||new Set,nd.has(Ra)))return Ra;if(nd.add(Ra),qa--,isRef(Ra))traverse(Ra.value,qa,nd);else if(isArray$2(Ra))for(let od=0;od{traverse(od,qa,nd)});else if(isPlainObject$4(Ra)){for(const od in Ra)traverse(Ra[od],qa,nd);for(const od of Object.getOwnPropertySymbols(Ra))Object.prototype.propertyIsEnumerable.call(Ra,od)&&traverse(Ra[od],qa,nd)}return Ra}/** +**/let activeEffectScope;class EffectScope{constructor(qa=!1){this.detached=qa,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!qa&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let qa,nd;if(this.scopes)for(qa=0,nd=this.scopes.length;qa0)return;if(batchedComputed){let qa=batchedComputed;for(batchedComputed=void 0;qa;){const nd=qa.next;qa.next=void 0,qa.flags&=-9,qa=nd}}let Ra;for(;batchedSub;){let qa=batchedSub;for(batchedSub=void 0;qa;){const nd=qa.next;if(qa.next=void 0,qa.flags&=-9,qa.flags&1)try{qa.trigger()}catch(od){Ra||(Ra=od)}qa=nd}}if(Ra)throw Ra}function prepareDeps(Ra){for(let qa=Ra.deps;qa;qa=qa.nextDep)qa.version=-1,qa.prevActiveLink=qa.dep.activeLink,qa.dep.activeLink=qa}function cleanupDeps(Ra){let qa,nd=Ra.depsTail,od=nd;for(;od;){const ld=od.prevDep;od.version===-1?(od===nd&&(nd=ld),removeSub(od),removeDep(od)):qa=od,od.dep.activeLink=od.prevActiveLink,od.prevActiveLink=void 0,od=ld}Ra.deps=qa,Ra.depsTail=nd}function isDirty(Ra){for(let qa=Ra.deps;qa;qa=qa.nextDep)if(qa.dep.version!==qa.version||qa.dep.computed&&(refreshComputed(qa.dep.computed)||qa.dep.version!==qa.version))return!0;return!!Ra._dirty}function refreshComputed(Ra){if(Ra.flags&4&&!(Ra.flags&16)||(Ra.flags&=-17,Ra.globalVersion===globalVersion))return;Ra.globalVersion=globalVersion;const qa=Ra.dep;if(Ra.flags|=2,qa.version>0&&!Ra.isSSR&&Ra.deps&&!isDirty(Ra)){Ra.flags&=-3;return}const nd=activeSub,od=shouldTrack;activeSub=Ra,shouldTrack=!0;try{prepareDeps(Ra);const ld=Ra.fn(Ra._value);(qa.version===0||hasChanged(ld,Ra._value))&&(Ra._value=ld,qa.version++)}catch(ld){throw qa.version++,ld}finally{activeSub=nd,shouldTrack=od,cleanupDeps(Ra),Ra.flags&=-3}}function removeSub(Ra,qa=!1){const{dep:nd,prevSub:od,nextSub:ld}=Ra;if(od&&(od.nextSub=ld,Ra.prevSub=void 0),ld&&(ld.prevSub=od,Ra.nextSub=void 0),nd.subs===Ra&&(nd.subs=od,!od&&nd.computed)){nd.computed.flags&=-5;for(let ud=nd.computed.deps;ud;ud=ud.nextDep)removeSub(ud,!0)}!qa&&!--nd.sc&&nd.map&&nd.map.delete(nd.key)}function removeDep(Ra){const{prevDep:qa,nextDep:nd}=Ra;qa&&(qa.nextDep=nd,Ra.prevDep=void 0),nd&&(nd.prevDep=qa,Ra.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const Ra=trackStack.pop();shouldTrack=Ra===void 0?!0:Ra}function cleanupEffect(Ra){const{cleanup:qa}=Ra;if(Ra.cleanup=void 0,qa){const nd=activeSub;activeSub=void 0;try{qa()}finally{activeSub=nd}}}let globalVersion=0;class Link{constructor(qa,nd){this.sub=qa,this.dep=nd,this.version=nd.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dep{constructor(qa){this.computed=qa,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(qa){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let nd=this.activeLink;if(nd===void 0||nd.sub!==activeSub)nd=this.activeLink=new Link(activeSub,this),activeSub.deps?(nd.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=nd,activeSub.depsTail=nd):activeSub.deps=activeSub.depsTail=nd,addSub(nd);else if(nd.version===-1&&(nd.version=this.version,nd.nextDep)){const od=nd.nextDep;od.prevDep=nd.prevDep,nd.prevDep&&(nd.prevDep.nextDep=od),nd.prevDep=activeSub.depsTail,nd.nextDep=void 0,activeSub.depsTail.nextDep=nd,activeSub.depsTail=nd,activeSub.deps===nd&&(activeSub.deps=od)}return nd}trigger(qa){this.version++,globalVersion++,this.notify(qa)}notify(qa){startBatch();try{for(let nd=this.subs;nd;nd=nd.prevSub)nd.sub.notify()&&nd.sub.dep.notify()}finally{endBatch()}}}function addSub(Ra){if(Ra.dep.sc++,Ra.sub.flags&4){const qa=Ra.dep.computed;if(qa&&!Ra.dep.subs){qa.flags|=20;for(let od=qa.deps;od;od=od.nextDep)addSub(od)}const nd=Ra.dep.subs;nd!==Ra&&(Ra.prevSub=nd,nd&&(nd.nextSub=Ra)),Ra.dep.subs=Ra}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(Ra,qa,nd){if(shouldTrack&&activeSub){let od=targetMap.get(Ra);od||targetMap.set(Ra,od=new Map);let ld=od.get(nd);ld||(od.set(nd,ld=new Dep),ld.map=od,ld.key=nd),ld.track()}}function trigger(Ra,qa,nd,od,ld,ud){const dd=targetMap.get(Ra);if(!dd){globalVersion++;return}const pd=fd=>{fd&&fd.trigger()};if(startBatch(),qa==="clear")dd.forEach(pd);else{const fd=isArray$2(Ra),md=fd&&isIntegerKey(nd);if(fd&&nd==="length"){const vd=Number(od);dd.forEach((Ad,Nd)=>{(Nd==="length"||Nd===ARRAY_ITERATE_KEY||!isSymbol(Nd)&&Nd>=vd)&&pd(Ad)})}else switch((nd!==void 0||dd.has(void 0))&&pd(dd.get(nd)),md&&pd(dd.get(ARRAY_ITERATE_KEY)),qa){case"add":fd?md&&pd(dd.get("length")):(pd(dd.get(ITERATE_KEY)),isMap(Ra)&&pd(dd.get(MAP_KEY_ITERATE_KEY)));break;case"delete":fd||(pd(dd.get(ITERATE_KEY)),isMap(Ra)&&pd(dd.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(Ra)&&pd(dd.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(Ra,qa){const nd=targetMap.get(Ra);return nd&&nd.get(qa)}function reactiveReadArray(Ra){const qa=toRaw(Ra);return qa===Ra?qa:(track(qa,"iterate",ARRAY_ITERATE_KEY),isShallow(Ra)?qa:qa.map(toReactive))}function shallowReadArray(Ra){return track(Ra=toRaw(Ra),"iterate",ARRAY_ITERATE_KEY),Ra}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(...Ra){return reactiveReadArray(this).concat(...Ra.map(qa=>isArray$2(qa)?reactiveReadArray(qa):qa))},entries(){return iterator(this,"entries",Ra=>(Ra[1]=toReactive(Ra[1]),Ra))},every(Ra,qa){return apply$3(this,"every",Ra,qa,void 0,arguments)},filter(Ra,qa){return apply$3(this,"filter",Ra,qa,nd=>nd.map(toReactive),arguments)},find(Ra,qa){return apply$3(this,"find",Ra,qa,toReactive,arguments)},findIndex(Ra,qa){return apply$3(this,"findIndex",Ra,qa,void 0,arguments)},findLast(Ra,qa){return apply$3(this,"findLast",Ra,qa,toReactive,arguments)},findLastIndex(Ra,qa){return apply$3(this,"findLastIndex",Ra,qa,void 0,arguments)},forEach(Ra,qa){return apply$3(this,"forEach",Ra,qa,void 0,arguments)},includes(...Ra){return searchProxy(this,"includes",Ra)},indexOf(...Ra){return searchProxy(this,"indexOf",Ra)},join(Ra){return reactiveReadArray(this).join(Ra)},lastIndexOf(...Ra){return searchProxy(this,"lastIndexOf",Ra)},map(Ra,qa){return apply$3(this,"map",Ra,qa,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...Ra){return noTracking(this,"push",Ra)},reduce(Ra,...qa){return reduce$2(this,"reduce",Ra,qa)},reduceRight(Ra,...qa){return reduce$2(this,"reduceRight",Ra,qa)},shift(){return noTracking(this,"shift")},some(Ra,qa){return apply$3(this,"some",Ra,qa,void 0,arguments)},splice(...Ra){return noTracking(this,"splice",Ra)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(Ra){return reactiveReadArray(this).toSorted(Ra)},toSpliced(...Ra){return reactiveReadArray(this).toSpliced(...Ra)},unshift(...Ra){return noTracking(this,"unshift",Ra)},values(){return iterator(this,"values",toReactive)}};function iterator(Ra,qa,nd){const od=shallowReadArray(Ra),ld=od[qa]();return od!==Ra&&!isShallow(Ra)&&(ld._next=ld.next,ld.next=()=>{const ud=ld._next();return ud.value&&(ud.value=nd(ud.value)),ud}),ld}const arrayProto$1=Array.prototype;function apply$3(Ra,qa,nd,od,ld,ud){const dd=shallowReadArray(Ra),pd=dd!==Ra&&!isShallow(Ra),fd=dd[qa];if(fd!==arrayProto$1[qa]){const Ad=fd.apply(Ra,ud);return pd?toReactive(Ad):Ad}let md=nd;dd!==Ra&&(pd?md=function(Ad,Nd){return nd.call(this,toReactive(Ad),Nd,Ra)}:nd.length>2&&(md=function(Ad,Nd){return nd.call(this,Ad,Nd,Ra)}));const vd=fd.call(dd,md,od);return pd&&ld?ld(vd):vd}function reduce$2(Ra,qa,nd,od){const ld=shallowReadArray(Ra);let ud=nd;return ld!==Ra&&(isShallow(Ra)?nd.length>3&&(ud=function(dd,pd,fd){return nd.call(this,dd,pd,fd,Ra)}):ud=function(dd,pd,fd){return nd.call(this,dd,toReactive(pd),fd,Ra)}),ld[qa](ud,...od)}function searchProxy(Ra,qa,nd){const od=toRaw(Ra);track(od,"iterate",ARRAY_ITERATE_KEY);const ld=od[qa](...nd);return(ld===-1||ld===!1)&&isProxy(nd[0])?(nd[0]=toRaw(nd[0]),od[qa](...nd)):ld}function noTracking(Ra,qa,nd=[]){pauseTracking(),startBatch();const od=toRaw(Ra)[qa].apply(Ra,nd);return endBatch(),resetTracking(),od}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(Ra=>Ra!=="arguments"&&Ra!=="caller").map(Ra=>Symbol[Ra]).filter(isSymbol));function hasOwnProperty$e(Ra){isSymbol(Ra)||(Ra=String(Ra));const qa=toRaw(this);return track(qa,"has",Ra),qa.hasOwnProperty(Ra)}class BaseReactiveHandler{constructor(qa=!1,nd=!1){this._isReadonly=qa,this._isShallow=nd}get(qa,nd,od){if(nd==="__v_skip")return qa.__v_skip;const ld=this._isReadonly,ud=this._isShallow;if(nd==="__v_isReactive")return!ld;if(nd==="__v_isReadonly")return ld;if(nd==="__v_isShallow")return ud;if(nd==="__v_raw")return od===(ld?ud?shallowReadonlyMap:readonlyMap:ud?shallowReactiveMap:reactiveMap).get(qa)||Object.getPrototypeOf(qa)===Object.getPrototypeOf(od)?qa:void 0;const dd=isArray$2(qa);if(!ld){let fd;if(dd&&(fd=arrayInstrumentations[nd]))return fd;if(nd==="hasOwnProperty")return hasOwnProperty$e}const pd=Reflect.get(qa,nd,isRef(qa)?qa:od);return(isSymbol(nd)?builtInSymbols.has(nd):isNonTrackableKeys(nd))||(ld||track(qa,"get",nd),ud)?pd:isRef(pd)?dd&&isIntegerKey(nd)?pd:pd.value:isObject$9(pd)?ld?readonly(pd):reactive(pd):pd}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(qa=!1){super(!1,qa)}set(qa,nd,od,ld){let ud=qa[nd];if(!this._isShallow){const fd=isReadonly(ud);if(!isShallow(od)&&!isReadonly(od)&&(ud=toRaw(ud),od=toRaw(od)),!isArray$2(qa)&&isRef(ud)&&!isRef(od))return fd?!1:(ud.value=od,!0)}const dd=isArray$2(qa)&&isIntegerKey(nd)?Number(nd)Ra,getProto$2=Ra=>Reflect.getPrototypeOf(Ra);function createIterableMethod(Ra,qa,nd){return function(...od){const ld=this.__v_raw,ud=toRaw(ld),dd=isMap(ud),pd=Ra==="entries"||Ra===Symbol.iterator&&dd,fd=Ra==="keys"&&dd,md=ld[Ra](...od),vd=nd?toShallow:qa?toReadonly:toReactive;return!qa&&track(ud,"iterate",fd?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Ad,done:Nd}=md.next();return Nd?{value:Ad,done:Nd}:{value:pd?[vd(Ad[0]),vd(Ad[1])]:vd(Ad),done:Nd}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(Ra){return function(...qa){return Ra==="delete"?!1:Ra==="clear"?void 0:this}}function createInstrumentations(Ra,qa){const nd={get(ld){const ud=this.__v_raw,dd=toRaw(ud),pd=toRaw(ld);Ra||(hasChanged(ld,pd)&&track(dd,"get",ld),track(dd,"get",pd));const{has:fd}=getProto$2(dd),md=qa?toShallow:Ra?toReadonly:toReactive;if(fd.call(dd,ld))return md(ud.get(ld));if(fd.call(dd,pd))return md(ud.get(pd));ud!==dd&&ud.get(ld)},get size(){const ld=this.__v_raw;return!Ra&&track(toRaw(ld),"iterate",ITERATE_KEY),Reflect.get(ld,"size",ld)},has(ld){const ud=this.__v_raw,dd=toRaw(ud),pd=toRaw(ld);return Ra||(hasChanged(ld,pd)&&track(dd,"has",ld),track(dd,"has",pd)),ld===pd?ud.has(ld):ud.has(ld)||ud.has(pd)},forEach(ld,ud){const dd=this,pd=dd.__v_raw,fd=toRaw(pd),md=qa?toShallow:Ra?toReadonly:toReactive;return!Ra&&track(fd,"iterate",ITERATE_KEY),pd.forEach((vd,Ad)=>ld.call(ud,md(vd),md(Ad),dd))}};return extend$4(nd,Ra?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(ld){!qa&&!isShallow(ld)&&!isReadonly(ld)&&(ld=toRaw(ld));const ud=toRaw(this);return getProto$2(ud).has.call(ud,ld)||(ud.add(ld),trigger(ud,"add",ld,ld)),this},set(ld,ud){!qa&&!isShallow(ud)&&!isReadonly(ud)&&(ud=toRaw(ud));const dd=toRaw(this),{has:pd,get:fd}=getProto$2(dd);let md=pd.call(dd,ld);md||(ld=toRaw(ld),md=pd.call(dd,ld));const vd=fd.call(dd,ld);return dd.set(ld,ud),md?hasChanged(ud,vd)&&trigger(dd,"set",ld,ud):trigger(dd,"add",ld,ud),this},delete(ld){const ud=toRaw(this),{has:dd,get:pd}=getProto$2(ud);let fd=dd.call(ud,ld);fd||(ld=toRaw(ld),fd=dd.call(ud,ld)),pd&&pd.call(ud,ld);const md=ud.delete(ld);return fd&&trigger(ud,"delete",ld,void 0),md},clear(){const ld=toRaw(this),ud=ld.size!==0,dd=ld.clear();return ud&&trigger(ld,"clear",void 0,void 0),dd}}),["keys","values","entries",Symbol.iterator].forEach(ld=>{nd[ld]=createIterableMethod(ld,Ra,qa)}),nd}function createInstrumentationGetter(Ra,qa){const nd=createInstrumentations(Ra,qa);return(od,ld,ud)=>ld==="__v_isReactive"?!Ra:ld==="__v_isReadonly"?Ra:ld==="__v_raw"?od:Reflect.get(hasOwn$3(nd,ld)&&ld in od?nd:od,ld,ud)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(Ra){switch(Ra){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(Ra){return Ra.__v_skip||!Object.isExtensible(Ra)?0:targetTypeMap(toRawType(Ra))}function reactive(Ra){return isReadonly(Ra)?Ra:createReactiveObject(Ra,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(Ra){return createReactiveObject(Ra,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(Ra){return createReactiveObject(Ra,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(Ra){return createReactiveObject(Ra,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(Ra,qa,nd,od,ld){if(!isObject$9(Ra)||Ra.__v_raw&&!(qa&&Ra.__v_isReactive))return Ra;const ud=ld.get(Ra);if(ud)return ud;const dd=getTargetType(Ra);if(dd===0)return Ra;const pd=new Proxy(Ra,dd===2?od:nd);return ld.set(Ra,pd),pd}function isReactive(Ra){return isReadonly(Ra)?isReactive(Ra.__v_raw):!!(Ra&&Ra.__v_isReactive)}function isReadonly(Ra){return!!(Ra&&Ra.__v_isReadonly)}function isShallow(Ra){return!!(Ra&&Ra.__v_isShallow)}function isProxy(Ra){return Ra?!!Ra.__v_raw:!1}function toRaw(Ra){const qa=Ra&&Ra.__v_raw;return qa?toRaw(qa):Ra}function markRaw(Ra){return!hasOwn$3(Ra,"__v_skip")&&Object.isExtensible(Ra)&&def$2(Ra,"__v_skip",!0),Ra}const toReactive=Ra=>isObject$9(Ra)?reactive(Ra):Ra,toReadonly=Ra=>isObject$9(Ra)?readonly(Ra):Ra;function isRef(Ra){return Ra?Ra.__v_isRef===!0:!1}function ref$1(Ra){return createRef(Ra,!1)}function shallowRef(Ra){return createRef(Ra,!0)}function createRef(Ra,qa){return isRef(Ra)?Ra:new RefImpl(Ra,qa)}class RefImpl{constructor(qa,nd){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=nd?qa:toRaw(qa),this._value=nd?qa:toReactive(qa),this.__v_isShallow=nd}get value(){return this.dep.track(),this._value}set value(qa){const nd=this._rawValue,od=this.__v_isShallow||isShallow(qa)||isReadonly(qa);qa=od?qa:toRaw(qa),hasChanged(qa,nd)&&(this._rawValue=qa,this._value=od?qa:toReactive(qa),this.dep.trigger())}}function unref(Ra){return isRef(Ra)?Ra.value:Ra}function toValue$3(Ra){return isFunction$4(Ra)?Ra():unref(Ra)}const shallowUnwrapHandlers={get:(Ra,qa,nd)=>qa==="__v_raw"?Ra:unref(Reflect.get(Ra,qa,nd)),set:(Ra,qa,nd,od)=>{const ld=Ra[qa];return isRef(ld)&&!isRef(nd)?(ld.value=nd,!0):Reflect.set(Ra,qa,nd,od)}};function proxyRefs(Ra){return isReactive(Ra)?Ra:new Proxy(Ra,shallowUnwrapHandlers)}class CustomRefImpl{constructor(qa){this.__v_isRef=!0,this._value=void 0;const nd=this.dep=new Dep,{get:od,set:ld}=qa(nd.track.bind(nd),nd.trigger.bind(nd));this._get=od,this._set=ld}get value(){return this._value=this._get()}set value(qa){this._set(qa)}}function customRef(Ra){return new CustomRefImpl(Ra)}function toRefs(Ra){const qa=isArray$2(Ra)?new Array(Ra.length):{};for(const nd in Ra)qa[nd]=propertyToRef(Ra,nd);return qa}class ObjectRefImpl{constructor(qa,nd,od){this._object=qa,this._key=nd,this._defaultValue=od,this.__v_isRef=!0,this._value=void 0}get value(){const qa=this._object[this._key];return this._value=qa===void 0?this._defaultValue:qa}set value(qa){this._object[this._key]=qa}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(qa){this._getter=qa,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function toRef$1(Ra,qa,nd){return isRef(Ra)?Ra:isFunction$4(Ra)?new GetterRefImpl(Ra):isObject$9(Ra)&&arguments.length>1?propertyToRef(Ra,qa,nd):ref$1(Ra)}function propertyToRef(Ra,qa,nd){const od=Ra[qa];return isRef(od)?od:new ObjectRefImpl(Ra,qa,nd)}class ComputedRefImpl{constructor(qa,nd,od){this.fn=qa,this.setter=nd,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!nd,this.isSSR=od}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){const qa=this.dep.track();return refreshComputed(this),qa&&(qa.version=this.dep.version),this._value}set value(qa){this.setter&&this.setter(qa)}}function computed$1(Ra,qa,nd=!1){let od,ld;return isFunction$4(Ra)?od=Ra:(od=Ra.get,ld=Ra.set),new ComputedRefImpl(od,ld,nd)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(Ra,qa=!1,nd=activeWatcher){if(nd){let od=cleanupMap.get(nd);od||cleanupMap.set(nd,od=[]),od.push(Ra)}}function watch$1(Ra,qa,nd=EMPTY_OBJ){const{immediate:od,deep:ld,once:ud,scheduler:dd,augmentJob:pd,call:fd}=nd,md=qd=>ld?qd:isShallow(qd)||ld===!1||ld===0?traverse(qd,1):traverse(qd);let vd,Ad,Nd,Od,kd=!1,Ld=!1;if(isRef(Ra)?(Ad=()=>Ra.value,kd=isShallow(Ra)):isReactive(Ra)?(Ad=()=>md(Ra),kd=!0):isArray$2(Ra)?(Ld=!0,kd=Ra.some(qd=>isReactive(qd)||isShallow(qd)),Ad=()=>Ra.map(qd=>{if(isRef(qd))return qd.value;if(isReactive(qd))return md(qd);if(isFunction$4(qd))return fd?fd(qd,2):qd()})):isFunction$4(Ra)?qa?Ad=fd?()=>fd(Ra,2):Ra:Ad=()=>{if(Nd){pauseTracking();try{Nd()}finally{resetTracking()}}const qd=activeWatcher;activeWatcher=vd;try{return fd?fd(Ra,3,[Od]):Ra(Od)}finally{activeWatcher=qd}}:Ad=NOOP,qa&&ld){const qd=Ad,zd=ld===!0?1/0:ld;Ad=()=>traverse(qd(),zd)}const Gd=getCurrentScope(),jd=()=>{vd.stop(),Gd&&Gd.active&&remove$2(Gd.effects,vd)};if(ud&&qa){const qd=qa;qa=(...zd)=>{qd(...zd),jd()}}let Fd=Ld?new Array(Ra.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const Ud=qd=>{if(!(!(vd.flags&1)||!vd.dirty&&!qd))if(qa){const zd=vd.run();if(ld||kd||(Ld?zd.some((Wd,Jd)=>hasChanged(Wd,Fd[Jd])):hasChanged(zd,Fd))){Nd&&Nd();const Wd=activeWatcher;activeWatcher=vd;try{const Jd=[zd,Fd===INITIAL_WATCHER_VALUE?void 0:Ld&&Fd[0]===INITIAL_WATCHER_VALUE?[]:Fd,Od];fd?fd(qa,3,Jd):qa(...Jd),Fd=zd}finally{activeWatcher=Wd}}}else vd.run()};return pd&&pd(Ud),vd=new ReactiveEffect(Ad),vd.scheduler=dd?()=>dd(Ud,!1):Ud,Od=qd=>onWatcherCleanup(qd,!1,vd),Nd=vd.onStop=()=>{const qd=cleanupMap.get(vd);if(qd){if(fd)fd(qd,4);else for(const zd of qd)zd();cleanupMap.delete(vd)}},qa?od?Ud(!0):Fd=vd.run():dd?dd(Ud.bind(null,!0),!0):vd.run(),jd.pause=vd.pause.bind(vd),jd.resume=vd.resume.bind(vd),jd.stop=jd,jd}function traverse(Ra,qa=1/0,nd){if(qa<=0||!isObject$9(Ra)||Ra.__v_skip||(nd=nd||new Set,nd.has(Ra)))return Ra;if(nd.add(Ra),qa--,isRef(Ra))traverse(Ra.value,qa,nd);else if(isArray$2(Ra))for(let od=0;od{traverse(od,qa,nd)});else if(isPlainObject$6(Ra)){for(const od in Ra)traverse(Ra[od],qa,nd);for(const od of Object.getOwnPropertySymbols(Ra))Object.prototype.propertyIsEnumerable.call(Ra,od)&&traverse(Ra[od],qa,nd)}return Ra}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const stack=[];let isWarning=!1;function warn$1(Ra,...qa){if(isWarning)return;isWarning=!0,pauseTracking();const nd=stack.length?stack[stack.length-1].component:null,od=nd&&nd.appContext.config.warnHandler,ld=getComponentTrace();if(od)callWithErrorHandling(od,nd,11,[Ra+qa.map(ud=>{var dd,pd;return(pd=(dd=ud.toString)==null?void 0:dd.call(ud))!=null?pd:JSON.stringify(ud)}).join(""),nd&&nd.proxy,ld.map(({vnode:ud})=>`at <${formatComponentName(nd,ud.type)}>`).join(` `),ld]);else{const ud=[`[Vue warn]: ${Ra}`,...qa];ld.length&&ud.push(` `,...formatTrace(ld)),console.warn(...ud)}resetTracking(),isWarning=!1}function getComponentTrace(){let Ra=stack[stack.length-1];if(!Ra)return[];const qa=[];for(;Ra;){const nd=qa[0];nd&&nd.vnode===Ra?nd.recurseCount++:qa.push({vnode:Ra,recurseCount:0});const od=Ra.component&&Ra.component.parent;Ra=od&&od.vnode}return qa}function formatTrace(Ra){const qa=[];return Ra.forEach((nd,od)=>{qa.push(...od===0?[]:[` -`],...formatTraceEntry(nd))}),qa}function formatTraceEntry({vnode:Ra,recurseCount:qa}){const nd=qa>0?`... (${qa} recursive calls)`:"",od=Ra.component?Ra.component.parent==null:!1,ld=` at <${formatComponentName(Ra.component,Ra.type,od)}`,ud=">"+nd;return Ra.props?[ld,...formatProps(Ra.props),ud]:[ld+ud]}function formatProps(Ra){const qa=[],nd=Object.keys(Ra);return nd.slice(0,3).forEach(od=>{qa.push(...formatProp(od,Ra[od]))}),nd.length>3&&qa.push(" ..."),qa}function formatProp(Ra,qa,nd){return isString$2(qa)?(qa=JSON.stringify(qa),nd?qa:[`${Ra}=${qa}`]):typeof qa=="number"||typeof qa=="boolean"||qa==null?nd?qa:[`${Ra}=${qa}`]:isRef(qa)?(qa=formatProp(Ra,toRaw(qa.value),!0),nd?qa:[`${Ra}=Ref<`,qa,">"]):isFunction$4(qa)?[`${Ra}=fn${qa.name?`<${qa.name}>`:""}`]:(qa=toRaw(qa),nd?qa:[`${Ra}=`,qa])}function callWithErrorHandling(Ra,qa,nd,od){try{return od?Ra(...od):Ra()}catch(ld){handleError$1(ld,qa,nd)}}function callWithAsyncErrorHandling(Ra,qa,nd,od){if(isFunction$4(Ra)){const ld=callWithErrorHandling(Ra,qa,nd,od);return ld&&isPromise(ld)&&ld.catch(ud=>{handleError$1(ud,qa,nd)}),ld}if(isArray$2(Ra)){const ld=[];for(let ud=0;ud>>1,ld=queue$2[od],ud=getId(ld);ud=getId(nd)?queue$2.push(Ra):queue$2.splice(findInsertionIndex(qa),0,Ra),Ra.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(Ra){isArray$2(Ra)?pendingPostFlushCbs.push(...Ra):activePostFlushCbs&&Ra.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,Ra):Ra.flags&1||(pendingPostFlushCbs.push(Ra),Ra.flags|=1),queueFlush()}function flushPreFlushCbs(Ra,qa,nd=flushIndex+1){for(;ndgetId(nd)-getId(od));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...qa);return}for(activePostFlushCbs=qa,postFlushIndex=0;postFlushIndexRa.id==null?Ra.flags&2?-1:1/0:Ra.id;function flushJobs(Ra){try{for(flushIndex=0;flushIndex{od._d&&setBlockTracking(-1);const ud=setCurrentRenderingInstance(qa);let dd;try{dd=Ra(...ld)}finally{setCurrentRenderingInstance(ud),od._d&&setBlockTracking(1)}return dd};return od._n=!0,od._c=!0,od._d=!0,od}function withDirectives(Ra,qa){if(currentRenderingInstance===null)return Ra;const nd=getComponentPublicInstance(currentRenderingInstance),od=Ra.dirs||(Ra.dirs=[]);for(let ld=0;ldRa.__isTeleport,isTeleportDisabled=Ra=>Ra&&(Ra.disabled||Ra.disabled===""),isTeleportDeferred=Ra=>Ra&&(Ra.defer||Ra.defer===""),isTargetSVG=Ra=>typeof SVGElement<"u"&&Ra instanceof SVGElement,isTargetMathML=Ra=>typeof MathMLElement=="function"&&Ra instanceof MathMLElement,resolveTarget=(Ra,qa)=>{const nd=Ra&&Ra.to;return isString$2(nd)?qa?qa(nd):null:nd},TeleportImpl={name:"Teleport",__isTeleport:!0,process(Ra,qa,nd,od,ld,ud,dd,pd,fd,md){const{mc:vd,pc:Ad,pbc:Nd,o:{insert:Od,querySelector:kd,createText:Ld,createComment:Gd}}=md,Ud=isTeleportDisabled(qa.props);let{shapeFlag:Fd,children:jd,dynamicChildren:qd}=qa;if(Ra==null){const zd=qa.el=Ld(""),Yd=qa.anchor=Ld("");Od(zd,nd,od),Od(Yd,nd,od);const Jd=(Xd,pf)=>{Fd&16&&(ld&&ld.isCE&&(ld.ce._teleportTarget=Xd),vd(jd,Xd,pf,ld,ud,dd,pd,fd))},yf=()=>{const Xd=qa.target=resolveTarget(qa.props,kd),pf=prepareAnchor(Xd,qa,Ld,Od);Xd&&(dd!=="svg"&&isTargetSVG(Xd)?dd="svg":dd!=="mathml"&&isTargetMathML(Xd)&&(dd="mathml"),Ud||(Jd(Xd,pf),updateCssVars(qa,!1)))};Ud&&(Jd(nd,Yd),updateCssVars(qa,!0)),isTeleportDeferred(qa.props)?queuePostRenderEffect(()=>{yf(),qa.el.__isMounted=!0},ud):yf()}else{if(isTeleportDeferred(qa.props)&&!Ra.el.__isMounted){queuePostRenderEffect(()=>{TeleportImpl.process(Ra,qa,nd,od,ld,ud,dd,pd,fd,md),delete Ra.el.__isMounted},ud);return}qa.el=Ra.el,qa.targetStart=Ra.targetStart;const zd=qa.anchor=Ra.anchor,Yd=qa.target=Ra.target,Jd=qa.targetAnchor=Ra.targetAnchor,yf=isTeleportDisabled(Ra.props),Xd=yf?nd:Yd,pf=yf?zd:Jd;if(dd==="svg"||isTargetSVG(Yd)?dd="svg":(dd==="mathml"||isTargetMathML(Yd))&&(dd="mathml"),qd?(Nd(Ra.dynamicChildren,qd,Xd,ld,ud,dd,pd),traverseStaticChildren(Ra,qa,!0)):fd||Ad(Ra,qa,Xd,pf,ld,ud,dd,pd,!1),Ud)yf?qa.props&&Ra.props&&qa.props.to!==Ra.props.to&&(qa.props.to=Ra.props.to):moveTeleport(qa,nd,zd,md,1);else if((qa.props&&qa.props.to)!==(Ra.props&&Ra.props.to)){const mf=qa.target=resolveTarget(qa.props,kd);mf&&moveTeleport(qa,mf,null,md,0)}else yf&&moveTeleport(qa,Yd,Jd,md,1);updateCssVars(qa,Ud)}},remove(Ra,qa,nd,{um:od,o:{remove:ld}},ud){const{shapeFlag:dd,children:pd,anchor:fd,targetStart:md,targetAnchor:vd,target:Ad,props:Nd}=Ra;if(Ad&&(ld(md),ld(vd)),ud&&ld(fd),dd&16){const Od=ud||!isTeleportDisabled(Nd);for(let kd=0;kd{Ra.isMounted=!0}),onBeforeUnmount(()=>{Ra.isUnmounting=!0}),Ra}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=Ra=>{const qa=Ra.subTree;return qa.component?recursiveGetSubtree(qa.component):qa},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(Ra,{slots:qa}){const nd=getCurrentInstance(),od=useTransitionState();return()=>{const ld=qa.default&&getTransitionRawChildren(qa.default(),!0);if(!ld||!ld.length)return;const ud=findNonCommentChild(ld),dd=toRaw(Ra),{mode:pd}=dd;if(od.isLeaving)return emptyPlaceholder(ud);const fd=getInnerChild$1(ud);if(!fd)return emptyPlaceholder(ud);let md=resolveTransitionHooks(fd,dd,od,nd,Ad=>md=Ad);fd.type!==Comment$2&&setTransitionHooks(fd,md);let vd=nd.subTree&&getInnerChild$1(nd.subTree);if(vd&&vd.type!==Comment$2&&!isSameVNodeType(fd,vd)&&recursiveGetSubtree(nd).type!==Comment$2){let Ad=resolveTransitionHooks(vd,dd,od,nd);if(setTransitionHooks(vd,Ad),pd==="out-in"&&fd.type!==Comment$2)return od.isLeaving=!0,Ad.afterLeave=()=>{od.isLeaving=!1,nd.job.flags&8||nd.update(),delete Ad.afterLeave,vd=void 0},emptyPlaceholder(ud);pd==="in-out"&&fd.type!==Comment$2?Ad.delayLeave=(Nd,Od,kd)=>{const Ld=getLeavingNodesForType(od,vd);Ld[String(vd.key)]=vd,Nd[leaveCbKey]=()=>{Od(),Nd[leaveCbKey]=void 0,delete md.delayedLeave,vd=void 0},md.delayedLeave=()=>{kd(),delete md.delayedLeave,vd=void 0}}:vd=void 0}else vd&&(vd=void 0);return ud}}};function findNonCommentChild(Ra){let qa=Ra[0];if(Ra.length>1){for(const nd of Ra)if(nd.type!==Comment$2){qa=nd;break}}return qa}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(Ra,qa){const{leavingVNodes:nd}=Ra;let od=nd.get(qa.type);return od||(od=Object.create(null),nd.set(qa.type,od)),od}function resolveTransitionHooks(Ra,qa,nd,od,ld){const{appear:ud,mode:dd,persisted:pd=!1,onBeforeEnter:fd,onEnter:md,onAfterEnter:vd,onEnterCancelled:Ad,onBeforeLeave:Nd,onLeave:Od,onAfterLeave:kd,onLeaveCancelled:Ld,onBeforeAppear:Gd,onAppear:Ud,onAfterAppear:Fd,onAppearCancelled:jd}=qa,qd=String(Ra.key),zd=getLeavingNodesForType(nd,Ra),Yd=(Xd,pf)=>{Xd&&callWithAsyncErrorHandling(Xd,od,9,pf)},Jd=(Xd,pf)=>{const mf=pf[1];Yd(Xd,pf),isArray$2(Xd)?Xd.every(Tf=>Tf.length<=1)&&mf():Xd.length<=1&&mf()},yf={mode:dd,persisted:pd,beforeEnter(Xd){let pf=fd;if(!nd.isMounted)if(ud)pf=Gd||fd;else return;Xd[leaveCbKey]&&Xd[leaveCbKey](!0);const mf=zd[qd];mf&&isSameVNodeType(Ra,mf)&&mf.el[leaveCbKey]&&mf.el[leaveCbKey](),Yd(pf,[Xd])},enter(Xd){let pf=md,mf=vd,Tf=Ad;if(!nd.isMounted)if(ud)pf=Ud||md,mf=Fd||vd,Tf=jd||Ad;else return;let vf=!1;const Af=Xd[enterCbKey]=Sf=>{vf||(vf=!0,Sf?Yd(Tf,[Xd]):Yd(mf,[Xd]),yf.delayedLeave&&yf.delayedLeave(),Xd[enterCbKey]=void 0)};pf?Jd(pf,[Xd,Af]):Af()},leave(Xd,pf){const mf=String(Ra.key);if(Xd[enterCbKey]&&Xd[enterCbKey](!0),nd.isUnmounting)return pf();Yd(Nd,[Xd]);let Tf=!1;const vf=Xd[leaveCbKey]=Af=>{Tf||(Tf=!0,pf(),Af?Yd(Ld,[Xd]):Yd(kd,[Xd]),Xd[leaveCbKey]=void 0,zd[mf]===Ra&&delete zd[mf])};zd[mf]=Ra,Od?Jd(Od,[Xd,vf]):vf()},clone(Xd){const pf=resolveTransitionHooks(Xd,qa,nd,od,ld);return ld&&ld(pf),pf}};return yf}function emptyPlaceholder(Ra){if(isKeepAlive(Ra))return Ra=cloneVNode(Ra),Ra.children=null,Ra}function getInnerChild$1(Ra){if(!isKeepAlive(Ra))return isTeleport(Ra.type)&&Ra.children?findNonCommentChild(Ra.children):Ra;const{shapeFlag:qa,children:nd}=Ra;if(nd){if(qa&16)return nd[0];if(qa&32&&isFunction$4(nd.default))return nd.default()}}function setTransitionHooks(Ra,qa){Ra.shapeFlag&6&&Ra.component?(Ra.transition=qa,setTransitionHooks(Ra.component.subTree,qa)):Ra.shapeFlag&128?(Ra.ssContent.transition=qa.clone(Ra.ssContent),Ra.ssFallback.transition=qa.clone(Ra.ssFallback)):Ra.transition=qa}function getTransitionRawChildren(Ra,qa=!1,nd){let od=[],ld=0;for(let ud=0;ud1)for(let ud=0;udnd.value,set:ud=>nd.value=ud})}return nd}function setRef(Ra,qa,nd,od,ld=!1){if(isArray$2(Ra)){Ra.forEach((kd,Ld)=>setRef(kd,qa&&(isArray$2(qa)?qa[Ld]:qa),nd,od,ld));return}if(isAsyncWrapper(od)&&!ld){od.shapeFlag&512&&od.type.__asyncResolved&&od.component.subTree.component&&setRef(Ra,qa,nd,od.component.subTree);return}const ud=od.shapeFlag&4?getComponentPublicInstance(od.component):od.el,dd=ld?null:ud,{i:pd,r:fd}=Ra,md=qa&&qa.r,vd=pd.refs===EMPTY_OBJ?pd.refs={}:pd.refs,Ad=pd.setupState,Nd=toRaw(Ad),Od=Ad===EMPTY_OBJ?()=>!1:kd=>hasOwn$3(Nd,kd);if(md!=null&&md!==fd&&(isString$2(md)?(vd[md]=null,Od(md)&&(Ad[md]=null)):isRef(md)&&(md.value=null)),isFunction$4(fd))callWithErrorHandling(fd,pd,12,[dd,vd]);else{const kd=isString$2(fd),Ld=isRef(fd);if(kd||Ld){const Gd=()=>{if(Ra.f){const Ud=kd?Od(fd)?Ad[fd]:vd[fd]:fd.value;ld?isArray$2(Ud)&&remove$2(Ud,ud):isArray$2(Ud)?Ud.includes(ud)||Ud.push(ud):kd?(vd[fd]=[ud],Od(fd)&&(Ad[fd]=vd[fd])):(fd.value=[ud],Ra.k&&(vd[Ra.k]=fd.value))}else kd?(vd[fd]=dd,Od(fd)&&(Ad[fd]=dd)):Ld&&(fd.value=dd,Ra.k&&(vd[Ra.k]=dd))};dd?(Gd.id=-1,queuePostRenderEffect(Gd,nd)):Gd()}}}getGlobalThis().requestIdleCallback;getGlobalThis().cancelIdleCallback;const isAsyncWrapper=Ra=>!!Ra.type.__asyncLoader,isKeepAlive=Ra=>Ra.type.__isKeepAlive;function onActivated(Ra,qa){registerKeepAliveHook(Ra,"a",qa)}function onDeactivated(Ra,qa){registerKeepAliveHook(Ra,"da",qa)}function registerKeepAliveHook(Ra,qa,nd=currentInstance){const od=Ra.__wdc||(Ra.__wdc=()=>{let ld=nd;for(;ld;){if(ld.isDeactivated)return;ld=ld.parent}return Ra()});if(injectHook(qa,od,nd),nd){let ld=nd.parent;for(;ld&&ld.parent;)isKeepAlive(ld.parent.vnode)&&injectToKeepAliveRoot(od,qa,nd,ld),ld=ld.parent}}function injectToKeepAliveRoot(Ra,qa,nd,od){const ld=injectHook(qa,Ra,od,!0);onUnmounted(()=>{remove$2(od[qa],ld)},nd)}function injectHook(Ra,qa,nd=currentInstance,od=!1){if(nd){const ld=nd[Ra]||(nd[Ra]=[]),ud=qa.__weh||(qa.__weh=(...dd)=>{pauseTracking();const pd=setCurrentInstance(nd),fd=callWithAsyncErrorHandling(qa,nd,Ra,dd);return pd(),resetTracking(),fd});return od?ld.unshift(ud):ld.push(ud),ud}}const createHook=Ra=>(qa,nd=currentInstance)=>{(!isInSSRComponentSetup||Ra==="sp")&&injectHook(Ra,(...od)=>qa(...od),nd)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(Ra,qa=currentInstance){injectHook("ec",Ra,qa)}const COMPONENTS="components";function resolveComponent(Ra,qa){return resolveAsset(COMPONENTS,Ra,!0,qa)||Ra}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(Ra){return isString$2(Ra)?resolveAsset(COMPONENTS,Ra,!1)||Ra:Ra||NULL_DYNAMIC_COMPONENT}function resolveAsset(Ra,qa,nd=!0,od=!1){const ld=currentRenderingInstance||currentInstance;if(ld){const ud=ld.type;{const pd=getComponentName(ud,!1);if(pd&&(pd===qa||pd===camelize(qa)||pd===capitalize(camelize(qa))))return ud}const dd=resolve$1(ld[Ra]||ud[Ra],qa)||resolve$1(ld.appContext[Ra],qa);return!dd&&od?ud:dd}}function resolve$1(Ra,qa){return Ra&&(Ra[qa]||Ra[camelize(qa)]||Ra[capitalize(camelize(qa))])}function renderList(Ra,qa,nd,od){let ld;const ud=nd,dd=isArray$2(Ra);if(dd||isString$2(Ra)){const pd=dd&&isReactive(Ra);let fd=!1;pd&&(fd=!isShallow(Ra),Ra=shallowReadArray(Ra)),ld=new Array(Ra.length);for(let md=0,vd=Ra.length;mdqa(pd,fd,void 0,ud));else{const pd=Object.keys(Ra);ld=new Array(pd.length);for(let fd=0,md=pd.length;fdisVNode(qa)?!(qa.type===Comment$2||qa.type===Fragment&&!ensureValidVNode(qa.children)):!0)?Ra:null}function toHandlers(Ra,qa){const nd={};for(const od in Ra)nd[toHandlerKey(od)]=Ra[od];return nd}const getPublicInstance=Ra=>Ra?isStatefulComponent(Ra)?getComponentPublicInstance(Ra):getPublicInstance(Ra.parent):null,publicPropertiesMap=extend$4(Object.create(null),{$:Ra=>Ra,$el:Ra=>Ra.vnode.el,$data:Ra=>Ra.data,$props:Ra=>Ra.props,$attrs:Ra=>Ra.attrs,$slots:Ra=>Ra.slots,$refs:Ra=>Ra.refs,$parent:Ra=>getPublicInstance(Ra.parent),$root:Ra=>getPublicInstance(Ra.root),$host:Ra=>Ra.ce,$emit:Ra=>Ra.emit,$options:Ra=>resolveMergedOptions(Ra),$forceUpdate:Ra=>Ra.f||(Ra.f=()=>{queueJob(Ra.update)}),$nextTick:Ra=>Ra.n||(Ra.n=nextTick$1.bind(Ra.proxy)),$watch:Ra=>instanceWatch.bind(Ra)}),hasSetupBinding=(Ra,qa)=>Ra!==EMPTY_OBJ&&!Ra.__isScriptSetup&&hasOwn$3(Ra,qa),PublicInstanceProxyHandlers={get({_:Ra},qa){if(qa==="__v_skip")return!0;const{ctx:nd,setupState:od,data:ld,props:ud,accessCache:dd,type:pd,appContext:fd}=Ra;let md;if(qa[0]!=="$"){const Od=dd[qa];if(Od!==void 0)switch(Od){case 1:return od[qa];case 2:return ld[qa];case 4:return nd[qa];case 3:return ud[qa]}else{if(hasSetupBinding(od,qa))return dd[qa]=1,od[qa];if(ld!==EMPTY_OBJ&&hasOwn$3(ld,qa))return dd[qa]=2,ld[qa];if((md=Ra.propsOptions[0])&&hasOwn$3(md,qa))return dd[qa]=3,ud[qa];if(nd!==EMPTY_OBJ&&hasOwn$3(nd,qa))return dd[qa]=4,nd[qa];shouldCacheAccess&&(dd[qa]=0)}}const vd=publicPropertiesMap[qa];let Ad,Nd;if(vd)return qa==="$attrs"&&track(Ra.attrs,"get",""),vd(Ra);if((Ad=pd.__cssModules)&&(Ad=Ad[qa]))return Ad;if(nd!==EMPTY_OBJ&&hasOwn$3(nd,qa))return dd[qa]=4,nd[qa];if(Nd=fd.config.globalProperties,hasOwn$3(Nd,qa))return Nd[qa]},set({_:Ra},qa,nd){const{data:od,setupState:ld,ctx:ud}=Ra;return hasSetupBinding(ld,qa)?(ld[qa]=nd,!0):od!==EMPTY_OBJ&&hasOwn$3(od,qa)?(od[qa]=nd,!0):hasOwn$3(Ra.props,qa)||qa[0]==="$"&&qa.slice(1)in Ra?!1:(ud[qa]=nd,!0)},has({_:{data:Ra,setupState:qa,accessCache:nd,ctx:od,appContext:ld,propsOptions:ud}},dd){let pd;return!!nd[dd]||Ra!==EMPTY_OBJ&&hasOwn$3(Ra,dd)||hasSetupBinding(qa,dd)||(pd=ud[0])&&hasOwn$3(pd,dd)||hasOwn$3(od,dd)||hasOwn$3(publicPropertiesMap,dd)||hasOwn$3(ld.config.globalProperties,dd)},defineProperty(Ra,qa,nd){return nd.get!=null?Ra._.accessCache[qa]=0:hasOwn$3(nd,"value")&&this.set(Ra,qa,nd.value,null),Reflect.defineProperty(Ra,qa,nd)}};function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const Ra=getCurrentInstance();return Ra.setupContext||(Ra.setupContext=createSetupContext(Ra))}function normalizePropsOrEmits(Ra){return isArray$2(Ra)?Ra.reduce((qa,nd)=>(qa[nd]=null,qa),{}):Ra}function mergeDefaults(Ra,qa){const nd=normalizePropsOrEmits(Ra);for(const od in qa){if(od.startsWith("__skip"))continue;let ld=nd[od];ld?isArray$2(ld)||isFunction$4(ld)?ld=nd[od]={type:ld,default:qa[od]}:ld.default=qa[od]:ld===null&&(ld=nd[od]={default:qa[od]}),ld&&qa[`__skip_${od}`]&&(ld.skipFactory=!0)}return nd}let shouldCacheAccess=!0;function applyOptions(Ra){const qa=resolveMergedOptions(Ra),nd=Ra.proxy,od=Ra.ctx;shouldCacheAccess=!1,qa.beforeCreate&&callHook$1(qa.beforeCreate,Ra,"bc");const{data:ld,computed:ud,methods:dd,watch:pd,provide:fd,inject:md,created:vd,beforeMount:Ad,mounted:Nd,beforeUpdate:Od,updated:kd,activated:Ld,deactivated:Gd,beforeDestroy:Ud,beforeUnmount:Fd,destroyed:jd,unmounted:qd,render:zd,renderTracked:Yd,renderTriggered:Jd,errorCaptured:yf,serverPrefetch:Xd,expose:pf,inheritAttrs:mf,components:Tf,directives:vf,filters:Af}=qa;if(md&&resolveInjections(md,od,null),dd)for(const If in dd){const Gf=dd[If];isFunction$4(Gf)&&(od[If]=Gf.bind(nd))}if(ld){const If=ld.call(nd,nd);isObject$6(If)&&(Ra.data=reactive(If))}if(shouldCacheAccess=!0,ud)for(const If in ud){const Gf=ud[If],Jf=isFunction$4(Gf)?Gf.bind(nd,nd):isFunction$4(Gf.get)?Gf.get.bind(nd,nd):NOOP,ih=!isFunction$4(Gf)&&isFunction$4(Gf.set)?Gf.set.bind(nd):NOOP,uh=computed({get:Jf,set:ih});Object.defineProperty(od,If,{enumerable:!0,configurable:!0,get:()=>uh.value,set:qf=>uh.value=qf})}if(pd)for(const If in pd)createWatcher(pd[If],od,nd,If);if(fd){const If=isFunction$4(fd)?fd.call(nd):fd;Reflect.ownKeys(If).forEach(Gf=>{provide(Gf,If[Gf])})}vd&&callHook$1(vd,Ra,"c");function Df(If,Gf){isArray$2(Gf)?Gf.forEach(Jf=>If(Jf.bind(nd))):Gf&&If(Gf.bind(nd))}if(Df(onBeforeMount,Ad),Df(onMounted,Nd),Df(onBeforeUpdate,Od),Df(onUpdated,kd),Df(onActivated,Ld),Df(onDeactivated,Gd),Df(onErrorCaptured,yf),Df(onRenderTracked,Yd),Df(onRenderTriggered,Jd),Df(onBeforeUnmount,Fd),Df(onUnmounted,qd),Df(onServerPrefetch,Xd),isArray$2(pf))if(pf.length){const If=Ra.exposed||(Ra.exposed={});pf.forEach(Gf=>{Object.defineProperty(If,Gf,{get:()=>nd[Gf],set:Jf=>nd[Gf]=Jf})})}else Ra.exposed||(Ra.exposed={});zd&&Ra.render===NOOP&&(Ra.render=zd),mf!=null&&(Ra.inheritAttrs=mf),Tf&&(Ra.components=Tf),vf&&(Ra.directives=vf),Xd&&markAsyncBoundary(Ra)}function resolveInjections(Ra,qa,nd=NOOP){isArray$2(Ra)&&(Ra=normalizeInject(Ra));for(const od in Ra){const ld=Ra[od];let ud;isObject$6(ld)?"default"in ld?ud=inject(ld.from||od,ld.default,!0):ud=inject(ld.from||od):ud=inject(ld),isRef(ud)?Object.defineProperty(qa,od,{enumerable:!0,configurable:!0,get:()=>ud.value,set:dd=>ud.value=dd}):qa[od]=ud}}function callHook$1(Ra,qa,nd){callWithAsyncErrorHandling(isArray$2(Ra)?Ra.map(od=>od.bind(qa.proxy)):Ra.bind(qa.proxy),qa,nd)}function createWatcher(Ra,qa,nd,od){let ld=od.includes(".")?createPathGetter(nd,od):()=>nd[od];if(isString$2(Ra)){const ud=qa[Ra];isFunction$4(ud)&&watch(ld,ud)}else if(isFunction$4(Ra))watch(ld,Ra.bind(nd));else if(isObject$6(Ra))if(isArray$2(Ra))Ra.forEach(ud=>createWatcher(ud,qa,nd,od));else{const ud=isFunction$4(Ra.handler)?Ra.handler.bind(nd):qa[Ra.handler];isFunction$4(ud)&&watch(ld,ud,Ra)}}function resolveMergedOptions(Ra){const qa=Ra.type,{mixins:nd,extends:od}=qa,{mixins:ld,optionsCache:ud,config:{optionMergeStrategies:dd}}=Ra.appContext,pd=ud.get(qa);let fd;return pd?fd=pd:!ld.length&&!nd&&!od?fd=qa:(fd={},ld.length&&ld.forEach(md=>mergeOptions(fd,md,dd,!0)),mergeOptions(fd,qa,dd)),isObject$6(qa)&&ud.set(qa,fd),fd}function mergeOptions(Ra,qa,nd,od=!1){const{mixins:ld,extends:ud}=qa;ud&&mergeOptions(Ra,ud,nd,!0),ld&&ld.forEach(dd=>mergeOptions(Ra,dd,nd,!0));for(const dd in qa)if(!(od&&dd==="expose")){const pd=internalOptionMergeStrats[dd]||nd&&nd[dd];Ra[dd]=pd?pd(Ra[dd],qa[dd]):qa[dd]}return Ra}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(Ra,qa){return qa?Ra?function(){return extend$4(isFunction$4(Ra)?Ra.call(this,this):Ra,isFunction$4(qa)?qa.call(this,this):qa)}:qa:Ra}function mergeInject(Ra,qa){return mergeObjectOptions(normalizeInject(Ra),normalizeInject(qa))}function normalizeInject(Ra){if(isArray$2(Ra)){const qa={};for(let nd=0;nd1)return nd&&isFunction$4(qa)?qa.call(od&&od.proxy):qa}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=Ra=>Object.getPrototypeOf(Ra)===internalObjectProto;function initProps(Ra,qa,nd,od=!1){const ld={},ud=createInternalObject();Ra.propsDefaults=Object.create(null),setFullProps(Ra,qa,ld,ud);for(const dd in Ra.propsOptions[0])dd in ld||(ld[dd]=void 0);nd?Ra.props=od?ld:shallowReactive(ld):Ra.type.props?Ra.props=ld:Ra.props=ud,Ra.attrs=ud}function updateProps(Ra,qa,nd,od){const{props:ld,attrs:ud,vnode:{patchFlag:dd}}=Ra,pd=toRaw(ld),[fd]=Ra.propsOptions;let md=!1;if((od||dd>0)&&!(dd&16)){if(dd&8){const vd=Ra.vnode.dynamicProps;for(let Ad=0;Ad{fd=!0;const[Nd,Od]=normalizePropsOptions(Ad,qa,!0);extend$4(dd,Nd),Od&&pd.push(...Od)};!nd&&qa.mixins.length&&qa.mixins.forEach(vd),Ra.extends&&vd(Ra.extends),Ra.mixins&&Ra.mixins.forEach(vd)}if(!ud&&!fd)return isObject$6(Ra)&&od.set(Ra,EMPTY_ARR),EMPTY_ARR;if(isArray$2(ud))for(let vd=0;vdRa[0]==="_"||Ra==="$stable",normalizeSlotValue=Ra=>isArray$2(Ra)?Ra.map(normalizeVNode):[normalizeVNode(Ra)],normalizeSlot=(Ra,qa,nd)=>{if(qa._n)return qa;const od=withCtx((...ld)=>normalizeSlotValue(qa(...ld)),nd);return od._c=!1,od},normalizeObjectSlots=(Ra,qa,nd)=>{const od=Ra._ctx;for(const ld in Ra){if(isInternalKey(ld))continue;const ud=Ra[ld];if(isFunction$4(ud))qa[ld]=normalizeSlot(ld,ud,od);else if(ud!=null){const dd=normalizeSlotValue(ud);qa[ld]=()=>dd}}},normalizeVNodeSlots=(Ra,qa)=>{const nd=normalizeSlotValue(qa);Ra.slots.default=()=>nd},assignSlots=(Ra,qa,nd)=>{for(const od in qa)(nd||od!=="_")&&(Ra[od]=qa[od])},initSlots=(Ra,qa,nd)=>{const od=Ra.slots=createInternalObject();if(Ra.vnode.shapeFlag&32){const ld=qa._;ld?(assignSlots(od,qa,nd),nd&&def$2(od,"_",ld,!0)):normalizeObjectSlots(qa,od)}else qa&&normalizeVNodeSlots(Ra,qa)},updateSlots=(Ra,qa,nd)=>{const{vnode:od,slots:ld}=Ra;let ud=!0,dd=EMPTY_OBJ;if(od.shapeFlag&32){const pd=qa._;pd?nd&&pd===1?ud=!1:assignSlots(ld,qa,nd):(ud=!qa.$stable,normalizeObjectSlots(qa,ld)),dd=qa}else qa&&(normalizeVNodeSlots(Ra,qa),dd={default:1});if(ud)for(const pd in ld)!isInternalKey(pd)&&dd[pd]==null&&delete ld[pd]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer$1(Ra){return baseCreateRenderer(Ra)}function baseCreateRenderer(Ra,qa){const nd=getGlobalThis();nd.__VUE__=!0;const{insert:od,remove:ld,patchProp:ud,createElement:dd,createText:pd,createComment:fd,setText:md,setElementText:vd,parentNode:Ad,nextSibling:Nd,setScopeId:Od=NOOP,insertStaticContent:kd}=Ra,Ld=(Rf,gh,Bh,th=null,$f=null,Uf=null,Zf=void 0,kh=null,Wh=!!gh.dynamicChildren)=>{if(Rf===gh)return;Rf&&!isSameVNodeType(Rf,gh)&&(th=Cf(Rf),qf(Rf,$f,Uf,!0),Rf=null),gh.patchFlag===-2&&(Wh=!1,gh.dynamicChildren=null);const{type:xh,ref:pm,shapeFlag:Jh}=gh;switch(xh){case Text$2:Gd(Rf,gh,Bh,th);break;case Comment$2:Ud(Rf,gh,Bh,th);break;case Static:Rf==null&&Fd(gh,Bh,th,Zf);break;case Fragment:Tf(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh);break;default:Jh&1?zd(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh):Jh&6?vf(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh):(Jh&64||Jh&128)&&xh.process(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh,sh)}pm!=null&&$f&&setRef(pm,Rf&&Rf.ref,Uf,gh||Rf,!gh)},Gd=(Rf,gh,Bh,th)=>{if(Rf==null)od(gh.el=pd(gh.children),Bh,th);else{const $f=gh.el=Rf.el;gh.children!==Rf.children&&md($f,gh.children)}},Ud=(Rf,gh,Bh,th)=>{Rf==null?od(gh.el=fd(gh.children||""),Bh,th):gh.el=Rf.el},Fd=(Rf,gh,Bh,th)=>{[Rf.el,Rf.anchor]=kd(Rf.children,gh,Bh,th,Rf.el,Rf.anchor)},jd=({el:Rf,anchor:gh},Bh,th)=>{let $f;for(;Rf&&Rf!==gh;)$f=Nd(Rf),od(Rf,Bh,th),Rf=$f;od(gh,Bh,th)},qd=({el:Rf,anchor:gh})=>{let Bh;for(;Rf&&Rf!==gh;)Bh=Nd(Rf),ld(Rf),Rf=Bh;ld(gh)},zd=(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh)=>{gh.type==="svg"?Zf="svg":gh.type==="math"&&(Zf="mathml"),Rf==null?Yd(gh,Bh,th,$f,Uf,Zf,kh,Wh):Xd(Rf,gh,$f,Uf,Zf,kh,Wh)},Yd=(Rf,gh,Bh,th,$f,Uf,Zf,kh)=>{let Wh,xh;const{props:pm,shapeFlag:Jh,transition:Om,dirs:Nm}=Rf;if(Wh=Rf.el=dd(Rf.type,Uf,pm&&pm.is,pm),Jh&8?vd(Wh,Rf.children):Jh&16&&yf(Rf.children,Wh,null,th,$f,resolveChildrenNamespace(Rf,Uf),Zf,kh),Nm&&invokeDirectiveHook(Rf,null,th,"created"),Jd(Wh,Rf,Rf.scopeId,Zf,th),pm){for(const Pm in pm)Pm!=="value"&&!isReservedProp(Pm)&&ud(Wh,Pm,null,pm[Pm],Uf,th);"value"in pm&&ud(Wh,"value",null,pm.value,Uf),(xh=pm.onVnodeBeforeMount)&&invokeVNodeHook(xh,th,Rf)}Nm&&invokeDirectiveHook(Rf,null,th,"beforeMount");const mm=needTransition($f,Om);mm&&Om.beforeEnter(Wh),od(Wh,gh,Bh),((xh=pm&&pm.onVnodeMounted)||mm||Nm)&&queuePostRenderEffect(()=>{xh&&invokeVNodeHook(xh,th,Rf),mm&&Om.enter(Wh),Nm&&invokeDirectiveHook(Rf,null,th,"mounted")},$f)},Jd=(Rf,gh,Bh,th,$f)=>{if(Bh&&Od(Rf,Bh),th)for(let Uf=0;Uf{for(let xh=Wh;xh{const kh=gh.el=Rf.el;let{patchFlag:Wh,dynamicChildren:xh,dirs:pm}=gh;Wh|=Rf.patchFlag&16;const Jh=Rf.props||EMPTY_OBJ,Om=gh.props||EMPTY_OBJ;let Nm;if(Bh&&toggleRecurse(Bh,!1),(Nm=Om.onVnodeBeforeUpdate)&&invokeVNodeHook(Nm,Bh,gh,Rf),pm&&invokeDirectiveHook(gh,Rf,Bh,"beforeUpdate"),Bh&&toggleRecurse(Bh,!0),(Jh.innerHTML&&Om.innerHTML==null||Jh.textContent&&Om.textContent==null)&&vd(kh,""),xh?pf(Rf.dynamicChildren,xh,kh,Bh,th,resolveChildrenNamespace(gh,$f),Uf):Zf||Gf(Rf,gh,kh,null,Bh,th,resolveChildrenNamespace(gh,$f),Uf,!1),Wh>0){if(Wh&16)mf(kh,Jh,Om,Bh,$f);else if(Wh&2&&Jh.class!==Om.class&&ud(kh,"class",null,Om.class,$f),Wh&4&&ud(kh,"style",Jh.style,Om.style,$f),Wh&8){const mm=gh.dynamicProps;for(let Pm=0;Pm{Nm&&invokeVNodeHook(Nm,Bh,gh,Rf),pm&&invokeDirectiveHook(gh,Rf,Bh,"updated")},th)},pf=(Rf,gh,Bh,th,$f,Uf,Zf)=>{for(let kh=0;kh{if(gh!==Bh){if(gh!==EMPTY_OBJ)for(const Uf in gh)!isReservedProp(Uf)&&!(Uf in Bh)&&ud(Rf,Uf,gh[Uf],null,$f,th);for(const Uf in Bh){if(isReservedProp(Uf))continue;const Zf=Bh[Uf],kh=gh[Uf];Zf!==kh&&Uf!=="value"&&ud(Rf,Uf,kh,Zf,$f,th)}"value"in Bh&&ud(Rf,"value",gh.value,Bh.value,$f)}},Tf=(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh)=>{const xh=gh.el=Rf?Rf.el:pd(""),pm=gh.anchor=Rf?Rf.anchor:pd("");let{patchFlag:Jh,dynamicChildren:Om,slotScopeIds:Nm}=gh;Nm&&(kh=kh?kh.concat(Nm):Nm),Rf==null?(od(xh,Bh,th),od(pm,Bh,th),yf(gh.children||[],Bh,pm,$f,Uf,Zf,kh,Wh)):Jh>0&&Jh&64&&Om&&Rf.dynamicChildren?(pf(Rf.dynamicChildren,Om,Bh,$f,Uf,Zf,kh),(gh.key!=null||$f&&gh===$f.subTree)&&traverseStaticChildren(Rf,gh,!0)):Gf(Rf,gh,Bh,pm,$f,Uf,Zf,kh,Wh)},vf=(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh)=>{gh.slotScopeIds=kh,Rf==null?gh.shapeFlag&512?$f.ctx.activate(gh,Bh,th,Zf,Wh):Af(gh,Bh,th,$f,Uf,Zf,Wh):Sf(Rf,gh,Wh)},Af=(Rf,gh,Bh,th,$f,Uf,Zf)=>{const kh=Rf.component=createComponentInstance(Rf,th,$f);if(isKeepAlive(Rf)&&(kh.ctx.renderer=sh),setupComponent(kh,!1,Zf),kh.asyncDep){if($f&&$f.registerDep(kh,Df,Zf),!Rf.el){const Wh=kh.subTree=createVNode(Comment$2);Ud(null,Wh,gh,Bh)}}else Df(kh,Rf,gh,Bh,$f,Uf,Zf)},Sf=(Rf,gh,Bh)=>{const th=gh.component=Rf.component;if(shouldUpdateComponent(Rf,gh,Bh))if(th.asyncDep&&!th.asyncResolved){If(th,gh,Bh);return}else th.next=gh,th.update();else gh.el=Rf.el,th.vnode=gh},Df=(Rf,gh,Bh,th,$f,Uf,Zf)=>{const kh=()=>{if(Rf.isMounted){let{next:Jh,bu:Om,u:Nm,parent:mm,vnode:Pm}=Rf;{const _h=locateNonHydratedAsyncRoot(Rf);if(_h){Jh&&(Jh.el=Pm.el,If(Rf,Jh,Zf)),_h.asyncDep.then(()=>{Rf.isUnmounted||kh()});return}}let Vm=Jh,yh;toggleRecurse(Rf,!1),Jh?(Jh.el=Pm.el,If(Rf,Jh,Zf)):Jh=Pm,Om&&invokeArrayFns(Om),(yh=Jh.props&&Jh.props.onVnodeBeforeUpdate)&&invokeVNodeHook(yh,mm,Jh,Pm),toggleRecurse(Rf,!0);const jf=renderComponentRoot(Rf),Lf=Rf.subTree;Rf.subTree=jf,Ld(Lf,jf,Ad(Lf.el),Cf(Lf),Rf,$f,Uf),Jh.el=jf.el,Vm===null&&updateHOCHostEl(Rf,jf.el),Nm&&queuePostRenderEffect(Nm,$f),(yh=Jh.props&&Jh.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(yh,mm,Jh,Pm),$f)}else{let Jh;const{el:Om,props:Nm}=gh,{bm:mm,m:Pm,parent:Vm,root:yh,type:jf}=Rf,Lf=isAsyncWrapper(gh);if(toggleRecurse(Rf,!1),mm&&invokeArrayFns(mm),!Lf&&(Jh=Nm&&Nm.onVnodeBeforeMount)&&invokeVNodeHook(Jh,Vm,gh),toggleRecurse(Rf,!0),Om&&dh){const _h=()=>{Rf.subTree=renderComponentRoot(Rf),dh(Om,Rf.subTree,Rf,$f,null)};Lf&&jf.__asyncHydrate?jf.__asyncHydrate(Om,Rf,_h):_h()}else{yh.ce&&yh.ce._injectChildStyle(jf);const _h=Rf.subTree=renderComponentRoot(Rf);Ld(null,_h,Bh,th,Rf,$f,Uf),gh.el=_h.el}if(Pm&&queuePostRenderEffect(Pm,$f),!Lf&&(Jh=Nm&&Nm.onVnodeMounted)){const _h=gh;queuePostRenderEffect(()=>invokeVNodeHook(Jh,Vm,_h),$f)}(gh.shapeFlag&256||Vm&&isAsyncWrapper(Vm.vnode)&&Vm.vnode.shapeFlag&256)&&Rf.a&&queuePostRenderEffect(Rf.a,$f),Rf.isMounted=!0,gh=Bh=th=null}};Rf.scope.on();const Wh=Rf.effect=new ReactiveEffect(kh);Rf.scope.off();const xh=Rf.update=Wh.run.bind(Wh),pm=Rf.job=Wh.runIfDirty.bind(Wh);pm.i=Rf,pm.id=Rf.uid,Wh.scheduler=()=>queueJob(pm),toggleRecurse(Rf,!0),xh()},If=(Rf,gh,Bh)=>{gh.component=Rf;const th=Rf.vnode.props;Rf.vnode=gh,Rf.next=null,updateProps(Rf,gh.props,th,Bh),updateSlots(Rf,gh.children,Bh),pauseTracking(),flushPreFlushCbs(Rf),resetTracking()},Gf=(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh=!1)=>{const xh=Rf&&Rf.children,pm=Rf?Rf.shapeFlag:0,Jh=gh.children,{patchFlag:Om,shapeFlag:Nm}=gh;if(Om>0){if(Om&128){ih(xh,Jh,Bh,th,$f,Uf,Zf,kh,Wh);return}else if(Om&256){Jf(xh,Jh,Bh,th,$f,Uf,Zf,kh,Wh);return}}Nm&8?(pm&16&&Kf(xh,$f,Uf),Jh!==xh&&vd(Bh,Jh)):pm&16?Nm&16?ih(xh,Jh,Bh,th,$f,Uf,Zf,kh,Wh):Kf(xh,$f,Uf,!0):(pm&8&&vd(Bh,""),Nm&16&&yf(Jh,Bh,th,$f,Uf,Zf,kh,Wh))},Jf=(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh)=>{Rf=Rf||EMPTY_ARR,gh=gh||EMPTY_ARR;const xh=Rf.length,pm=gh.length,Jh=Math.min(xh,pm);let Om;for(Om=0;Ompm?Kf(Rf,$f,Uf,!0,!1,Jh):yf(gh,Bh,th,$f,Uf,Zf,kh,Wh,Jh)},ih=(Rf,gh,Bh,th,$f,Uf,Zf,kh,Wh)=>{let xh=0;const pm=gh.length;let Jh=Rf.length-1,Om=pm-1;for(;xh<=Jh&&xh<=Om;){const Nm=Rf[xh],mm=gh[xh]=Wh?cloneIfMounted(gh[xh]):normalizeVNode(gh[xh]);if(isSameVNodeType(Nm,mm))Ld(Nm,mm,Bh,null,$f,Uf,Zf,kh,Wh);else break;xh++}for(;xh<=Jh&&xh<=Om;){const Nm=Rf[Jh],mm=gh[Om]=Wh?cloneIfMounted(gh[Om]):normalizeVNode(gh[Om]);if(isSameVNodeType(Nm,mm))Ld(Nm,mm,Bh,null,$f,Uf,Zf,kh,Wh);else break;Jh--,Om--}if(xh>Jh){if(xh<=Om){const Nm=Om+1,mm=NmOm)for(;xh<=Jh;)qf(Rf[xh],$f,Uf,!0),xh++;else{const Nm=xh,mm=xh,Pm=new Map;for(xh=mm;xh<=Om;xh++){const gm=gh[xh]=Wh?cloneIfMounted(gh[xh]):normalizeVNode(gh[xh]);gm.key!=null&&Pm.set(gm.key,xh)}let Vm,yh=0;const jf=Om-mm+1;let Lf=!1,_h=0;const Oh=new Array(jf);for(xh=0;xh=jf){qf(gm,$f,Uf,!0);continue}let Lm;if(gm.key!=null)Lm=Pm.get(gm.key);else for(Vm=mm;Vm<=Om;Vm++)if(Oh[Vm-mm]===0&&isSameVNodeType(gm,gh[Vm])){Lm=Vm;break}Lm===void 0?qf(gm,$f,Uf,!0):(Oh[Lm-mm]=xh+1,Lm>=_h?_h=Lm:Lf=!0,Ld(gm,gh[Lm],Bh,null,$f,Uf,Zf,kh,Wh),yh++)}const um=Lf?getSequence(Oh):EMPTY_ARR;for(Vm=um.length-1,xh=jf-1;xh>=0;xh--){const gm=mm+xh,Lm=gh[gm],Jm=gm+1{const{el:Uf,type:Zf,transition:kh,children:Wh,shapeFlag:xh}=Rf;if(xh&6){uh(Rf.component.subTree,gh,Bh,th);return}if(xh&128){Rf.suspense.move(gh,Bh,th);return}if(xh&64){Zf.move(Rf,gh,Bh,sh);return}if(Zf===Fragment){od(Uf,gh,Bh);for(let Jh=0;Jhkh.enter(Uf),$f);else{const{leave:Jh,delayLeave:Om,afterLeave:Nm}=kh,mm=()=>od(Uf,gh,Bh),Pm=()=>{Jh(Uf,()=>{mm(),Nm&&Nm()})};Om?Om(Uf,mm,Pm):Pm()}else od(Uf,gh,Bh)},qf=(Rf,gh,Bh,th=!1,$f=!1)=>{const{type:Uf,props:Zf,ref:kh,children:Wh,dynamicChildren:xh,shapeFlag:pm,patchFlag:Jh,dirs:Om,cacheIndex:Nm}=Rf;if(Jh===-2&&($f=!1),kh!=null&&setRef(kh,null,Bh,Rf,!0),Nm!=null&&(gh.renderCache[Nm]=void 0),pm&256){gh.ctx.deactivate(Rf);return}const mm=pm&1&&Om,Pm=!isAsyncWrapper(Rf);let Vm;if(Pm&&(Vm=Zf&&Zf.onVnodeBeforeUnmount)&&invokeVNodeHook(Vm,gh,Rf),pm&6)Yf(Rf.component,Bh,th);else{if(pm&128){Rf.suspense.unmount(Bh,th);return}mm&&invokeDirectiveHook(Rf,null,gh,"beforeUnmount"),pm&64?Rf.type.remove(Rf,gh,Bh,sh,th):xh&&!xh.hasOnce&&(Uf!==Fragment||Jh>0&&Jh&64)?Kf(xh,gh,Bh,!1,!0):(Uf===Fragment&&Jh&384||!$f&&pm&16)&&Kf(Wh,gh,Bh),th&&Pf(Rf)}(Pm&&(Vm=Zf&&Zf.onVnodeUnmounted)||mm)&&queuePostRenderEffect(()=>{Vm&&invokeVNodeHook(Vm,gh,Rf),mm&&invokeDirectiveHook(Rf,null,gh,"unmounted")},Bh)},Pf=Rf=>{const{type:gh,el:Bh,anchor:th,transition:$f}=Rf;if(gh===Fragment){Wf(Bh,th);return}if(gh===Static){qd(Rf);return}const Uf=()=>{ld(Bh),$f&&!$f.persisted&&$f.afterLeave&&$f.afterLeave()};if(Rf.shapeFlag&1&&$f&&!$f.persisted){const{leave:Zf,delayLeave:kh}=$f,Wh=()=>Zf(Bh,Uf);kh?kh(Rf.el,Uf,Wh):Wh()}else Uf()},Wf=(Rf,gh)=>{let Bh;for(;Rf!==gh;)Bh=Nd(Rf),ld(Rf),Rf=Bh;ld(gh)},Yf=(Rf,gh,Bh)=>{const{bum:th,scope:$f,job:Uf,subTree:Zf,um:kh,m:Wh,a:xh}=Rf;invalidateMount(Wh),invalidateMount(xh),th&&invokeArrayFns(th),$f.stop(),Uf&&(Uf.flags|=8,qf(Zf,Rf,gh,Bh)),kh&&queuePostRenderEffect(kh,gh),queuePostRenderEffect(()=>{Rf.isUnmounted=!0},gh),gh&&gh.pendingBranch&&!gh.isUnmounted&&Rf.asyncDep&&!Rf.asyncResolved&&Rf.suspenseId===gh.pendingId&&(gh.deps--,gh.deps===0&&gh.resolve())},Kf=(Rf,gh,Bh,th=!1,$f=!1,Uf=0)=>{for(let Zf=Uf;Zf{if(Rf.shapeFlag&6)return Cf(Rf.component.subTree);if(Rf.shapeFlag&128)return Rf.suspense.next();const gh=Nd(Rf.anchor||Rf.el),Bh=gh&&gh[TeleportEndKey];return Bh?Nd(Bh):gh};let xf=!1;const Xf=(Rf,gh,Bh)=>{Rf==null?gh._vnode&&qf(gh._vnode,null,null,!0):Ld(gh._vnode||null,Rf,gh,null,null,null,Bh),gh._vnode=Rf,xf||(xf=!0,flushPreFlushCbs(),flushPostFlushCbs(),xf=!1)},sh={p:Ld,um:qf,m:uh,r:Pf,mt:Af,mc:yf,pc:Gf,pbc:pf,n:Cf,o:Ra};let Ah,dh;return{render:Xf,hydrate:Ah,createApp:createAppAPI(Xf,Ah)}}function resolveChildrenNamespace({type:Ra,props:qa},nd){return nd==="svg"&&Ra==="foreignObject"||nd==="mathml"&&Ra==="annotation-xml"&&qa&&qa.encoding&&qa.encoding.includes("html")?void 0:nd}function toggleRecurse({effect:Ra,job:qa},nd){nd?(Ra.flags|=32,qa.flags|=4):(Ra.flags&=-33,qa.flags&=-5)}function needTransition(Ra,qa){return(!Ra||Ra&&!Ra.pendingBranch)&&qa&&!qa.persisted}function traverseStaticChildren(Ra,qa,nd=!1){const od=Ra.children,ld=qa.children;if(isArray$2(od)&&isArray$2(ld))for(let ud=0;ud>1,Ra[nd[pd]]0&&(qa[od]=nd[ud-1]),nd[ud]=od)}}for(ud=nd.length,dd=nd[ud-1];ud-- >0;)nd[ud]=dd,dd=qa[dd];return nd}function locateNonHydratedAsyncRoot(Ra){const qa=Ra.subTree.component;if(qa)return qa.asyncDep&&!qa.asyncResolved?qa:locateNonHydratedAsyncRoot(qa)}function invalidateMount(Ra){if(Ra)for(let qa=0;qainject(ssrContextKey);function watchEffect(Ra,qa){return doWatch(Ra,null,qa)}function watchPostEffect(Ra,qa){return doWatch(Ra,null,{flush:"post"})}function watch(Ra,qa,nd){return doWatch(Ra,qa,nd)}function doWatch(Ra,qa,nd=EMPTY_OBJ){const{immediate:od,deep:ld,flush:ud,once:dd}=nd,pd=extend$4({},nd),fd=qa&&od||!qa&&ud!=="post";let md;if(isInSSRComponentSetup){if(ud==="sync"){const Od=useSSRContext();md=Od.__watcherHandles||(Od.__watcherHandles=[])}else if(!fd){const Od=()=>{};return Od.stop=NOOP,Od.resume=NOOP,Od.pause=NOOP,Od}}const vd=currentInstance;pd.call=(Od,kd,Ld)=>callWithAsyncErrorHandling(Od,vd,kd,Ld);let Ad=!1;ud==="post"?pd.scheduler=Od=>{queuePostRenderEffect(Od,vd&&vd.suspense)}:ud!=="sync"&&(Ad=!0,pd.scheduler=(Od,kd)=>{kd?Od():queueJob(Od)}),pd.augmentJob=Od=>{qa&&(Od.flags|=4),Ad&&(Od.flags|=2,vd&&(Od.id=vd.uid,Od.i=vd))};const Nd=watch$1(Ra,qa,pd);return isInSSRComponentSetup&&(md?md.push(Nd):fd&&Nd()),Nd}function instanceWatch(Ra,qa,nd){const od=this.proxy,ld=isString$2(Ra)?Ra.includes(".")?createPathGetter(od,Ra):()=>od[Ra]:Ra.bind(od,od);let ud;isFunction$4(qa)?ud=qa:(ud=qa.handler,nd=qa);const dd=setCurrentInstance(this),pd=doWatch(ld,ud.bind(od),nd);return dd(),pd}function createPathGetter(Ra,qa){const nd=qa.split(".");return()=>{let od=Ra;for(let ld=0;ldqa==="modelValue"||qa==="model-value"?Ra.modelModifiers:Ra[`${qa}Modifiers`]||Ra[`${camelize(qa)}Modifiers`]||Ra[`${hyphenate(qa)}Modifiers`];function emit(Ra,qa,...nd){if(Ra.isUnmounted)return;const od=Ra.vnode.props||EMPTY_OBJ;let ld=nd;const ud=qa.startsWith("update:"),dd=ud&&getModelModifiers(od,qa.slice(7));dd&&(dd.trim&&(ld=nd.map(vd=>isString$2(vd)?vd.trim():vd)),dd.number&&(ld=nd.map(looseToNumber)));let pd,fd=od[pd=toHandlerKey(qa)]||od[pd=toHandlerKey(camelize(qa))];!fd&&ud&&(fd=od[pd=toHandlerKey(hyphenate(qa))]),fd&&callWithAsyncErrorHandling(fd,Ra,6,ld);const md=od[pd+"Once"];if(md){if(!Ra.emitted)Ra.emitted={};else if(Ra.emitted[pd])return;Ra.emitted[pd]=!0,callWithAsyncErrorHandling(md,Ra,6,ld)}}function normalizeEmitsOptions(Ra,qa,nd=!1){const od=qa.emitsCache,ld=od.get(Ra);if(ld!==void 0)return ld;const ud=Ra.emits;let dd={},pd=!1;if(!isFunction$4(Ra)){const fd=md=>{const vd=normalizeEmitsOptions(md,qa,!0);vd&&(pd=!0,extend$4(dd,vd))};!nd&&qa.mixins.length&&qa.mixins.forEach(fd),Ra.extends&&fd(Ra.extends),Ra.mixins&&Ra.mixins.forEach(fd)}return!ud&&!pd?(isObject$6(Ra)&&od.set(Ra,null),null):(isArray$2(ud)?ud.forEach(fd=>dd[fd]=null):extend$4(dd,ud),isObject$6(Ra)&&od.set(Ra,dd),dd)}function isEmitListener(Ra,qa){return!Ra||!isOn(qa)?!1:(qa=qa.slice(2).replace(/Once$/,""),hasOwn$3(Ra,qa[0].toLowerCase()+qa.slice(1))||hasOwn$3(Ra,hyphenate(qa))||hasOwn$3(Ra,qa))}function markAttrsAccessed(){}function renderComponentRoot(Ra){const{type:qa,vnode:nd,proxy:od,withProxy:ld,propsOptions:[ud],slots:dd,attrs:pd,emit:fd,render:md,renderCache:vd,props:Ad,data:Nd,setupState:Od,ctx:kd,inheritAttrs:Ld}=Ra,Gd=setCurrentRenderingInstance(Ra);let Ud,Fd;try{if(nd.shapeFlag&4){const qd=ld||od,zd=qd;Ud=normalizeVNode(md.call(zd,qd,vd,Ad,Od,Nd,kd)),Fd=pd}else{const qd=qa;Ud=normalizeVNode(qd.length>1?qd(Ad,{attrs:pd,slots:dd,emit:fd}):qd(Ad,null)),Fd=qa.props?pd:getFunctionalFallthrough(pd)}}catch(qd){blockStack.length=0,handleError$1(qd,Ra,1),Ud=createVNode(Comment$2)}let jd=Ud;if(Fd&&Ld!==!1){const qd=Object.keys(Fd),{shapeFlag:zd}=jd;qd.length&&zd&7&&(ud&&qd.some(isModelListener)&&(Fd=filterModelListeners(Fd,ud)),jd=cloneVNode(jd,Fd,!1,!0))}return nd.dirs&&(jd=cloneVNode(jd,null,!1,!0),jd.dirs=jd.dirs?jd.dirs.concat(nd.dirs):nd.dirs),nd.transition&&setTransitionHooks(jd,nd.transition),Ud=jd,setCurrentRenderingInstance(Gd),Ud}const getFunctionalFallthrough=Ra=>{let qa;for(const nd in Ra)(nd==="class"||nd==="style"||isOn(nd))&&((qa||(qa={}))[nd]=Ra[nd]);return qa},filterModelListeners=(Ra,qa)=>{const nd={};for(const od in Ra)(!isModelListener(od)||!(od.slice(9)in qa))&&(nd[od]=Ra[od]);return nd};function shouldUpdateComponent(Ra,qa,nd){const{props:od,children:ld,component:ud}=Ra,{props:dd,children:pd,patchFlag:fd}=qa,md=ud.emitsOptions;if(qa.dirs||qa.transition)return!0;if(nd&&fd>=0){if(fd&1024)return!0;if(fd&16)return od?hasPropsChanged(od,dd,md):!!dd;if(fd&8){const vd=qa.dynamicProps;for(let Ad=0;AdRa.__isSuspense;function queueEffectWithSuspense(Ra,qa){qa&&qa.pendingBranch?isArray$2(Ra)?qa.effects.push(...Ra):qa.effects.push(Ra):queuePostFlushCb(Ra)}const Fragment=Symbol.for("v-fgt"),Text$2=Symbol.for("v-txt"),Comment$2=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(Ra=!1){blockStack.push(currentBlock=Ra?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(Ra,qa=!1){isBlockTreeEnabled+=Ra,Ra<0&¤tBlock&&qa&&(currentBlock.hasOnce=!0)}function setupBlock(Ra){return Ra.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(Ra),Ra}function createElementBlock(Ra,qa,nd,od,ld,ud){return setupBlock(createBaseVNode(Ra,qa,nd,od,ld,ud,!0))}function createBlock(Ra,qa,nd,od,ld){return setupBlock(createVNode(Ra,qa,nd,od,ld,!0))}function isVNode(Ra){return Ra?Ra.__v_isVNode===!0:!1}function isSameVNodeType(Ra,qa){return Ra.type===qa.type&&Ra.key===qa.key}const normalizeKey=({key:Ra})=>Ra??null,normalizeRef=({ref:Ra,ref_key:qa,ref_for:nd})=>(typeof Ra=="number"&&(Ra=""+Ra),Ra!=null?isString$2(Ra)||isRef(Ra)||isFunction$4(Ra)?{i:currentRenderingInstance,r:Ra,k:qa,f:!!nd}:Ra:null);function createBaseVNode(Ra,qa=null,nd=null,od=0,ld=null,ud=Ra===Fragment?0:1,dd=!1,pd=!1){const fd={__v_isVNode:!0,__v_skip:!0,type:Ra,props:qa,key:qa&&normalizeKey(qa),ref:qa&&normalizeRef(qa),scopeId:currentScopeId,slotScopeIds:null,children:nd,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:ud,patchFlag:od,dynamicProps:ld,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return pd?(normalizeChildren(fd,nd),ud&128&&Ra.normalize(fd)):nd&&(fd.shapeFlag|=isString$2(nd)?8:16),isBlockTreeEnabled>0&&!dd&¤tBlock&&(fd.patchFlag>0||ud&6)&&fd.patchFlag!==32&¤tBlock.push(fd),fd}const createVNode=_createVNode;function _createVNode(Ra,qa=null,nd=null,od=0,ld=null,ud=!1){if((!Ra||Ra===NULL_DYNAMIC_COMPONENT)&&(Ra=Comment$2),isVNode(Ra)){const pd=cloneVNode(Ra,qa,!0);return nd&&normalizeChildren(pd,nd),isBlockTreeEnabled>0&&!ud&¤tBlock&&(pd.shapeFlag&6?currentBlock[currentBlock.indexOf(Ra)]=pd:currentBlock.push(pd)),pd.patchFlag=-2,pd}if(isClassComponent(Ra)&&(Ra=Ra.__vccOpts),qa){qa=guardReactiveProps(qa);let{class:pd,style:fd}=qa;pd&&!isString$2(pd)&&(qa.class=normalizeClass(pd)),isObject$6(fd)&&(isProxy(fd)&&!isArray$2(fd)&&(fd=extend$4({},fd)),qa.style=normalizeStyle(fd))}const dd=isString$2(Ra)?1:isSuspense(Ra)?128:isTeleport(Ra)?64:isObject$6(Ra)?4:isFunction$4(Ra)?2:0;return createBaseVNode(Ra,qa,nd,od,ld,dd,ud,!0)}function guardReactiveProps(Ra){return Ra?isProxy(Ra)||isInternalObject(Ra)?extend$4({},Ra):Ra:null}function cloneVNode(Ra,qa,nd=!1,od=!1){const{props:ld,ref:ud,patchFlag:dd,children:pd,transition:fd}=Ra,md=qa?mergeProps(ld||{},qa):ld,vd={__v_isVNode:!0,__v_skip:!0,type:Ra.type,props:md,key:md&&normalizeKey(md),ref:qa&&qa.ref?nd&&ud?isArray$2(ud)?ud.concat(normalizeRef(qa)):[ud,normalizeRef(qa)]:normalizeRef(qa):ud,scopeId:Ra.scopeId,slotScopeIds:Ra.slotScopeIds,children:pd,target:Ra.target,targetStart:Ra.targetStart,targetAnchor:Ra.targetAnchor,staticCount:Ra.staticCount,shapeFlag:Ra.shapeFlag,patchFlag:qa&&Ra.type!==Fragment?dd===-1?16:dd|16:dd,dynamicProps:Ra.dynamicProps,dynamicChildren:Ra.dynamicChildren,appContext:Ra.appContext,dirs:Ra.dirs,transition:fd,component:Ra.component,suspense:Ra.suspense,ssContent:Ra.ssContent&&cloneVNode(Ra.ssContent),ssFallback:Ra.ssFallback&&cloneVNode(Ra.ssFallback),el:Ra.el,anchor:Ra.anchor,ctx:Ra.ctx,ce:Ra.ce};return fd&&od&&setTransitionHooks(vd,fd.clone(vd)),vd}function createTextVNode(Ra=" ",qa=0){return createVNode(Text$2,null,Ra,qa)}function createCommentVNode(Ra="",qa=!1){return qa?(openBlock(),createBlock(Comment$2,null,Ra)):createVNode(Comment$2,null,Ra)}function normalizeVNode(Ra){return Ra==null||typeof Ra=="boolean"?createVNode(Comment$2):isArray$2(Ra)?createVNode(Fragment,null,Ra.slice()):isVNode(Ra)?cloneIfMounted(Ra):createVNode(Text$2,null,String(Ra))}function cloneIfMounted(Ra){return Ra.el===null&&Ra.patchFlag!==-1||Ra.memo?Ra:cloneVNode(Ra)}function normalizeChildren(Ra,qa){let nd=0;const{shapeFlag:od}=Ra;if(qa==null)qa=null;else if(isArray$2(qa))nd=16;else if(typeof qa=="object")if(od&65){const ld=qa.default;ld&&(ld._c&&(ld._d=!1),normalizeChildren(Ra,ld()),ld._c&&(ld._d=!0));return}else{nd=32;const ld=qa._;!ld&&!isInternalObject(qa)?qa._ctx=currentRenderingInstance:ld===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?qa._=1:(qa._=2,Ra.patchFlag|=1024))}else isFunction$4(qa)?(qa={default:qa,_ctx:currentRenderingInstance},nd=32):(qa=String(qa),od&64?(nd=16,qa=[createTextVNode(qa)]):nd=8);Ra.children=qa,Ra.shapeFlag|=nd}function mergeProps(...Ra){const qa={};for(let nd=0;ndcurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const Ra=getGlobalThis(),qa=(nd,od)=>{let ld;return(ld=Ra[nd])||(ld=Ra[nd]=[]),ld.push(od),ud=>{ld.length>1?ld.forEach(dd=>dd(ud)):ld[0](ud)}};internalSetCurrentInstance=qa("__VUE_INSTANCE_SETTERS__",nd=>currentInstance=nd),setInSSRSetupState=qa("__VUE_SSR_SETTERS__",nd=>isInSSRComponentSetup=nd)}const setCurrentInstance=Ra=>{const qa=currentInstance;return internalSetCurrentInstance(Ra),Ra.scope.on(),()=>{Ra.scope.off(),internalSetCurrentInstance(qa)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(Ra){return Ra.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(Ra,qa=!1,nd=!1){qa&&setInSSRSetupState(qa);const{props:od,children:ld}=Ra.vnode,ud=isStatefulComponent(Ra);initProps(Ra,od,ud,qa),initSlots(Ra,ld,nd);const dd=ud?setupStatefulComponent(Ra,qa):void 0;return qa&&setInSSRSetupState(!1),dd}function setupStatefulComponent(Ra,qa){const nd=Ra.type;Ra.accessCache=Object.create(null),Ra.proxy=new Proxy(Ra.ctx,PublicInstanceProxyHandlers);const{setup:od}=nd;if(od){pauseTracking();const ld=Ra.setupContext=od.length>1?createSetupContext(Ra):null,ud=setCurrentInstance(Ra),dd=callWithErrorHandling(od,Ra,0,[Ra.props,ld]),pd=isPromise(dd);if(resetTracking(),ud(),(pd||Ra.sp)&&!isAsyncWrapper(Ra)&&markAsyncBoundary(Ra),pd){if(dd.then(unsetCurrentInstance,unsetCurrentInstance),qa)return dd.then(fd=>{handleSetupResult(Ra,fd,qa)}).catch(fd=>{handleError$1(fd,Ra,0)});Ra.asyncDep=dd}else handleSetupResult(Ra,dd,qa)}else finishComponentSetup(Ra,qa)}function handleSetupResult(Ra,qa,nd){isFunction$4(qa)?Ra.type.__ssrInlineRender?Ra.ssrRender=qa:Ra.render=qa:isObject$6(qa)&&(Ra.setupState=proxyRefs(qa)),finishComponentSetup(Ra,nd)}let compile$2;function finishComponentSetup(Ra,qa,nd){const od=Ra.type;if(!Ra.render){if(!qa&&compile$2&&!od.render){const ld=od.template||resolveMergedOptions(Ra).template;if(ld){const{isCustomElement:ud,compilerOptions:dd}=Ra.appContext.config,{delimiters:pd,compilerOptions:fd}=od,md=extend$4(extend$4({isCustomElement:ud,delimiters:pd},dd),fd);od.render=compile$2(ld,md)}}Ra.render=od.render||NOOP}{const ld=setCurrentInstance(Ra);pauseTracking();try{applyOptions(Ra)}finally{resetTracking(),ld()}}}const attrsProxyHandlers={get(Ra,qa){return track(Ra,"get",""),Ra[qa]}};function createSetupContext(Ra){const qa=nd=>{Ra.exposed=nd||{}};return{attrs:new Proxy(Ra.attrs,attrsProxyHandlers),slots:Ra.slots,emit:Ra.emit,expose:qa}}function getComponentPublicInstance(Ra){return Ra.exposed?Ra.exposeProxy||(Ra.exposeProxy=new Proxy(proxyRefs(markRaw(Ra.exposed)),{get(qa,nd){if(nd in qa)return qa[nd];if(nd in publicPropertiesMap)return publicPropertiesMap[nd](Ra)},has(qa,nd){return nd in qa||nd in publicPropertiesMap}})):Ra.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=Ra=>Ra.replace(classifyRE,qa=>qa.toUpperCase()).replace(/[-_]/g,"");function getComponentName(Ra,qa=!0){return isFunction$4(Ra)?Ra.displayName||Ra.name:Ra.name||qa&&Ra.__name}function formatComponentName(Ra,qa,nd=!1){let od=getComponentName(qa);if(!od&&qa.__file){const ld=qa.__file.match(/([^/\\]+)\.\w+$/);ld&&(od=ld[1])}if(!od&&Ra&&Ra.parent){const ld=ud=>{for(const dd in ud)if(ud[dd]===qa)return dd};od=ld(Ra.components||Ra.parent.type.components)||ld(Ra.appContext.components)}return od?classify(od):nd?"App":"Anonymous"}function isClassComponent(Ra){return isFunction$4(Ra)&&"__vccOpts"in Ra}const computed=(Ra,qa)=>computed$1(Ra,qa,isInSSRComponentSetup);function h$2(Ra,qa,nd){const od=arguments.length;return od===2?isObject$6(qa)&&!isArray$2(qa)?isVNode(qa)?createVNode(Ra,null,[qa]):createVNode(Ra,qa):createVNode(Ra,null,qa):(od>3?nd=Array.prototype.slice.call(arguments,2):od===3&&isVNode(nd)&&(nd=[nd]),createVNode(Ra,qa,nd))}const version$4="3.5.13";/** +`],...formatTraceEntry(nd))}),qa}function formatTraceEntry({vnode:Ra,recurseCount:qa}){const nd=qa>0?`... (${qa} recursive calls)`:"",od=Ra.component?Ra.component.parent==null:!1,ld=` at <${formatComponentName(Ra.component,Ra.type,od)}`,ud=">"+nd;return Ra.props?[ld,...formatProps(Ra.props),ud]:[ld+ud]}function formatProps(Ra){const qa=[],nd=Object.keys(Ra);return nd.slice(0,3).forEach(od=>{qa.push(...formatProp(od,Ra[od]))}),nd.length>3&&qa.push(" ..."),qa}function formatProp(Ra,qa,nd){return isString$2(qa)?(qa=JSON.stringify(qa),nd?qa:[`${Ra}=${qa}`]):typeof qa=="number"||typeof qa=="boolean"||qa==null?nd?qa:[`${Ra}=${qa}`]:isRef(qa)?(qa=formatProp(Ra,toRaw(qa.value),!0),nd?qa:[`${Ra}=Ref<`,qa,">"]):isFunction$4(qa)?[`${Ra}=fn${qa.name?`<${qa.name}>`:""}`]:(qa=toRaw(qa),nd?qa:[`${Ra}=`,qa])}function callWithErrorHandling(Ra,qa,nd,od){try{return od?Ra(...od):Ra()}catch(ld){handleError$1(ld,qa,nd)}}function callWithAsyncErrorHandling(Ra,qa,nd,od){if(isFunction$4(Ra)){const ld=callWithErrorHandling(Ra,qa,nd,od);return ld&&isPromise(ld)&&ld.catch(ud=>{handleError$1(ud,qa,nd)}),ld}if(isArray$2(Ra)){const ld=[];for(let ud=0;ud>>1,ld=queue$2[od],ud=getId(ld);ud=getId(nd)?queue$2.push(Ra):queue$2.splice(findInsertionIndex(qa),0,Ra),Ra.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(Ra){isArray$2(Ra)?pendingPostFlushCbs.push(...Ra):activePostFlushCbs&&Ra.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,Ra):Ra.flags&1||(pendingPostFlushCbs.push(Ra),Ra.flags|=1),queueFlush()}function flushPreFlushCbs(Ra,qa,nd=flushIndex+1){for(;ndgetId(nd)-getId(od));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...qa);return}for(activePostFlushCbs=qa,postFlushIndex=0;postFlushIndexRa.id==null?Ra.flags&2?-1:1/0:Ra.id;function flushJobs(Ra){try{for(flushIndex=0;flushIndex{od._d&&setBlockTracking(-1);const ud=setCurrentRenderingInstance(qa);let dd;try{dd=Ra(...ld)}finally{setCurrentRenderingInstance(ud),od._d&&setBlockTracking(1)}return dd};return od._n=!0,od._c=!0,od._d=!0,od}function withDirectives(Ra,qa){if(currentRenderingInstance===null)return Ra;const nd=getComponentPublicInstance(currentRenderingInstance),od=Ra.dirs||(Ra.dirs=[]);for(let ld=0;ldRa.__isTeleport,isTeleportDisabled=Ra=>Ra&&(Ra.disabled||Ra.disabled===""),isTeleportDeferred=Ra=>Ra&&(Ra.defer||Ra.defer===""),isTargetSVG=Ra=>typeof SVGElement<"u"&&Ra instanceof SVGElement,isTargetMathML=Ra=>typeof MathMLElement=="function"&&Ra instanceof MathMLElement,resolveTarget=(Ra,qa)=>{const nd=Ra&&Ra.to;return isString$2(nd)?qa?qa(nd):null:nd},TeleportImpl={name:"Teleport",__isTeleport:!0,process(Ra,qa,nd,od,ld,ud,dd,pd,fd,md){const{mc:vd,pc:Ad,pbc:Nd,o:{insert:Od,querySelector:kd,createText:Ld,createComment:Gd}}=md,jd=isTeleportDisabled(qa.props);let{shapeFlag:Fd,children:Ud,dynamicChildren:qd}=qa;if(Ra==null){const zd=qa.el=Ld(""),Wd=qa.anchor=Ld("");Od(zd,nd,od),Od(Wd,nd,od);const Jd=(Xd,pf)=>{Fd&16&&(ld&&ld.isCE&&(ld.ce._teleportTarget=Xd),vd(Ud,Xd,pf,ld,ud,dd,pd,fd))},_f=()=>{const Xd=qa.target=resolveTarget(qa.props,kd),pf=prepareAnchor(Xd,qa,Ld,Od);Xd&&(dd!=="svg"&&isTargetSVG(Xd)?dd="svg":dd!=="mathml"&&isTargetMathML(Xd)&&(dd="mathml"),jd||(Jd(Xd,pf),updateCssVars(qa,!1)))};jd&&(Jd(nd,Wd),updateCssVars(qa,!0)),isTeleportDeferred(qa.props)?queuePostRenderEffect(()=>{_f(),qa.el.__isMounted=!0},ud):_f()}else{if(isTeleportDeferred(qa.props)&&!Ra.el.__isMounted){queuePostRenderEffect(()=>{TeleportImpl.process(Ra,qa,nd,od,ld,ud,dd,pd,fd,md),delete Ra.el.__isMounted},ud);return}qa.el=Ra.el,qa.targetStart=Ra.targetStart;const zd=qa.anchor=Ra.anchor,Wd=qa.target=Ra.target,Jd=qa.targetAnchor=Ra.targetAnchor,_f=isTeleportDisabled(Ra.props),Xd=_f?nd:Wd,pf=_f?zd:Jd;if(dd==="svg"||isTargetSVG(Wd)?dd="svg":(dd==="mathml"||isTargetMathML(Wd))&&(dd="mathml"),qd?(Nd(Ra.dynamicChildren,qd,Xd,ld,ud,dd,pd),traverseStaticChildren(Ra,qa,!0)):fd||Ad(Ra,qa,Xd,pf,ld,ud,dd,pd,!1),jd)_f?qa.props&&Ra.props&&qa.props.to!==Ra.props.to&&(qa.props.to=Ra.props.to):moveTeleport(qa,nd,zd,md,1);else if((qa.props&&qa.props.to)!==(Ra.props&&Ra.props.to)){const mf=qa.target=resolveTarget(qa.props,kd);mf&&moveTeleport(qa,mf,null,md,0)}else _f&&moveTeleport(qa,Wd,Jd,md,1);updateCssVars(qa,jd)}},remove(Ra,qa,nd,{um:od,o:{remove:ld}},ud){const{shapeFlag:dd,children:pd,anchor:fd,targetStart:md,targetAnchor:vd,target:Ad,props:Nd}=Ra;if(Ad&&(ld(md),ld(vd)),ud&&ld(fd),dd&16){const Od=ud||!isTeleportDisabled(Nd);for(let kd=0;kd{Ra.isMounted=!0}),onBeforeUnmount(()=>{Ra.isUnmounting=!0}),Ra}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=Ra=>{const qa=Ra.subTree;return qa.component?recursiveGetSubtree(qa.component):qa},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(Ra,{slots:qa}){const nd=getCurrentInstance(),od=useTransitionState();return()=>{const ld=qa.default&&getTransitionRawChildren(qa.default(),!0);if(!ld||!ld.length)return;const ud=findNonCommentChild(ld),dd=toRaw(Ra),{mode:pd}=dd;if(od.isLeaving)return emptyPlaceholder(ud);const fd=getInnerChild$1(ud);if(!fd)return emptyPlaceholder(ud);let md=resolveTransitionHooks(fd,dd,od,nd,Ad=>md=Ad);fd.type!==Comment$2&&setTransitionHooks(fd,md);let vd=nd.subTree&&getInnerChild$1(nd.subTree);if(vd&&vd.type!==Comment$2&&!isSameVNodeType(fd,vd)&&recursiveGetSubtree(nd).type!==Comment$2){let Ad=resolveTransitionHooks(vd,dd,od,nd);if(setTransitionHooks(vd,Ad),pd==="out-in"&&fd.type!==Comment$2)return od.isLeaving=!0,Ad.afterLeave=()=>{od.isLeaving=!1,nd.job.flags&8||nd.update(),delete Ad.afterLeave,vd=void 0},emptyPlaceholder(ud);pd==="in-out"&&fd.type!==Comment$2?Ad.delayLeave=(Nd,Od,kd)=>{const Ld=getLeavingNodesForType(od,vd);Ld[String(vd.key)]=vd,Nd[leaveCbKey]=()=>{Od(),Nd[leaveCbKey]=void 0,delete md.delayedLeave,vd=void 0},md.delayedLeave=()=>{kd(),delete md.delayedLeave,vd=void 0}}:vd=void 0}else vd&&(vd=void 0);return ud}}};function findNonCommentChild(Ra){let qa=Ra[0];if(Ra.length>1){for(const nd of Ra)if(nd.type!==Comment$2){qa=nd;break}}return qa}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(Ra,qa){const{leavingVNodes:nd}=Ra;let od=nd.get(qa.type);return od||(od=Object.create(null),nd.set(qa.type,od)),od}function resolveTransitionHooks(Ra,qa,nd,od,ld){const{appear:ud,mode:dd,persisted:pd=!1,onBeforeEnter:fd,onEnter:md,onAfterEnter:vd,onEnterCancelled:Ad,onBeforeLeave:Nd,onLeave:Od,onAfterLeave:kd,onLeaveCancelled:Ld,onBeforeAppear:Gd,onAppear:jd,onAfterAppear:Fd,onAppearCancelled:Ud}=qa,qd=String(Ra.key),zd=getLeavingNodesForType(nd,Ra),Wd=(Xd,pf)=>{Xd&&callWithAsyncErrorHandling(Xd,od,9,pf)},Jd=(Xd,pf)=>{const mf=pf[1];Wd(Xd,pf),isArray$2(Xd)?Xd.every(Sf=>Sf.length<=1)&&mf():Xd.length<=1&&mf()},_f={mode:dd,persisted:pd,beforeEnter(Xd){let pf=fd;if(!nd.isMounted)if(ud)pf=Gd||fd;else return;Xd[leaveCbKey]&&Xd[leaveCbKey](!0);const mf=zd[qd];mf&&isSameVNodeType(Ra,mf)&&mf.el[leaveCbKey]&&mf.el[leaveCbKey](),Wd(pf,[Xd])},enter(Xd){let pf=md,mf=vd,Sf=Ad;if(!nd.isMounted)if(ud)pf=jd||md,mf=Fd||vd,Sf=Ud||Ad;else return;let Tf=!1;const Af=Xd[enterCbKey]=Ef=>{Tf||(Tf=!0,Ef?Wd(Sf,[Xd]):Wd(mf,[Xd]),_f.delayedLeave&&_f.delayedLeave(),Xd[enterCbKey]=void 0)};pf?Jd(pf,[Xd,Af]):Af()},leave(Xd,pf){const mf=String(Ra.key);if(Xd[enterCbKey]&&Xd[enterCbKey](!0),nd.isUnmounting)return pf();Wd(Nd,[Xd]);let Sf=!1;const Tf=Xd[leaveCbKey]=Af=>{Sf||(Sf=!0,pf(),Af?Wd(Ld,[Xd]):Wd(kd,[Xd]),Xd[leaveCbKey]=void 0,zd[mf]===Ra&&delete zd[mf])};zd[mf]=Ra,Od?Jd(Od,[Xd,Tf]):Tf()},clone(Xd){const pf=resolveTransitionHooks(Xd,qa,nd,od,ld);return ld&&ld(pf),pf}};return _f}function emptyPlaceholder(Ra){if(isKeepAlive(Ra))return Ra=cloneVNode(Ra),Ra.children=null,Ra}function getInnerChild$1(Ra){if(!isKeepAlive(Ra))return isTeleport(Ra.type)&&Ra.children?findNonCommentChild(Ra.children):Ra;const{shapeFlag:qa,children:nd}=Ra;if(nd){if(qa&16)return nd[0];if(qa&32&&isFunction$4(nd.default))return nd.default()}}function setTransitionHooks(Ra,qa){Ra.shapeFlag&6&&Ra.component?(Ra.transition=qa,setTransitionHooks(Ra.component.subTree,qa)):Ra.shapeFlag&128?(Ra.ssContent.transition=qa.clone(Ra.ssContent),Ra.ssFallback.transition=qa.clone(Ra.ssFallback)):Ra.transition=qa}function getTransitionRawChildren(Ra,qa=!1,nd){let od=[],ld=0;for(let ud=0;ud1)for(let ud=0;udnd.value,set:ud=>nd.value=ud})}return nd}function setRef(Ra,qa,nd,od,ld=!1){if(isArray$2(Ra)){Ra.forEach((kd,Ld)=>setRef(kd,qa&&(isArray$2(qa)?qa[Ld]:qa),nd,od,ld));return}if(isAsyncWrapper(od)&&!ld){od.shapeFlag&512&&od.type.__asyncResolved&&od.component.subTree.component&&setRef(Ra,qa,nd,od.component.subTree);return}const ud=od.shapeFlag&4?getComponentPublicInstance(od.component):od.el,dd=ld?null:ud,{i:pd,r:fd}=Ra,md=qa&&qa.r,vd=pd.refs===EMPTY_OBJ?pd.refs={}:pd.refs,Ad=pd.setupState,Nd=toRaw(Ad),Od=Ad===EMPTY_OBJ?()=>!1:kd=>hasOwn$3(Nd,kd);if(md!=null&&md!==fd&&(isString$2(md)?(vd[md]=null,Od(md)&&(Ad[md]=null)):isRef(md)&&(md.value=null)),isFunction$4(fd))callWithErrorHandling(fd,pd,12,[dd,vd]);else{const kd=isString$2(fd),Ld=isRef(fd);if(kd||Ld){const Gd=()=>{if(Ra.f){const jd=kd?Od(fd)?Ad[fd]:vd[fd]:fd.value;ld?isArray$2(jd)&&remove$2(jd,ud):isArray$2(jd)?jd.includes(ud)||jd.push(ud):kd?(vd[fd]=[ud],Od(fd)&&(Ad[fd]=vd[fd])):(fd.value=[ud],Ra.k&&(vd[Ra.k]=fd.value))}else kd?(vd[fd]=dd,Od(fd)&&(Ad[fd]=dd)):Ld&&(fd.value=dd,Ra.k&&(vd[Ra.k]=dd))};dd?(Gd.id=-1,queuePostRenderEffect(Gd,nd)):Gd()}}}getGlobalThis().requestIdleCallback;getGlobalThis().cancelIdleCallback;const isAsyncWrapper=Ra=>!!Ra.type.__asyncLoader,isKeepAlive=Ra=>Ra.type.__isKeepAlive;function onActivated(Ra,qa){registerKeepAliveHook(Ra,"a",qa)}function onDeactivated(Ra,qa){registerKeepAliveHook(Ra,"da",qa)}function registerKeepAliveHook(Ra,qa,nd=currentInstance){const od=Ra.__wdc||(Ra.__wdc=()=>{let ld=nd;for(;ld;){if(ld.isDeactivated)return;ld=ld.parent}return Ra()});if(injectHook(qa,od,nd),nd){let ld=nd.parent;for(;ld&&ld.parent;)isKeepAlive(ld.parent.vnode)&&injectToKeepAliveRoot(od,qa,nd,ld),ld=ld.parent}}function injectToKeepAliveRoot(Ra,qa,nd,od){const ld=injectHook(qa,Ra,od,!0);onUnmounted(()=>{remove$2(od[qa],ld)},nd)}function injectHook(Ra,qa,nd=currentInstance,od=!1){if(nd){const ld=nd[Ra]||(nd[Ra]=[]),ud=qa.__weh||(qa.__weh=(...dd)=>{pauseTracking();const pd=setCurrentInstance(nd),fd=callWithAsyncErrorHandling(qa,nd,Ra,dd);return pd(),resetTracking(),fd});return od?ld.unshift(ud):ld.push(ud),ud}}const createHook=Ra=>(qa,nd=currentInstance)=>{(!isInSSRComponentSetup||Ra==="sp")&&injectHook(Ra,(...od)=>qa(...od),nd)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(Ra,qa=currentInstance){injectHook("ec",Ra,qa)}const COMPONENTS="components";function resolveComponent(Ra,qa){return resolveAsset(COMPONENTS,Ra,!0,qa)||Ra}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(Ra){return isString$2(Ra)?resolveAsset(COMPONENTS,Ra,!1)||Ra:Ra||NULL_DYNAMIC_COMPONENT}function resolveAsset(Ra,qa,nd=!0,od=!1){const ld=currentRenderingInstance||currentInstance;if(ld){const ud=ld.type;{const pd=getComponentName(ud,!1);if(pd&&(pd===qa||pd===camelize(qa)||pd===capitalize(camelize(qa))))return ud}const dd=resolve$1(ld[Ra]||ud[Ra],qa)||resolve$1(ld.appContext[Ra],qa);return!dd&&od?ud:dd}}function resolve$1(Ra,qa){return Ra&&(Ra[qa]||Ra[camelize(qa)]||Ra[capitalize(camelize(qa))])}function renderList(Ra,qa,nd,od){let ld;const ud=nd,dd=isArray$2(Ra);if(dd||isString$2(Ra)){const pd=dd&&isReactive(Ra);let fd=!1;pd&&(fd=!isShallow(Ra),Ra=shallowReadArray(Ra)),ld=new Array(Ra.length);for(let md=0,vd=Ra.length;mdqa(pd,fd,void 0,ud));else{const pd=Object.keys(Ra);ld=new Array(pd.length);for(let fd=0,md=pd.length;fdisVNode(qa)?!(qa.type===Comment$2||qa.type===Fragment&&!ensureValidVNode(qa.children)):!0)?Ra:null}function toHandlers(Ra,qa){const nd={};for(const od in Ra)nd[toHandlerKey(od)]=Ra[od];return nd}const getPublicInstance=Ra=>Ra?isStatefulComponent(Ra)?getComponentPublicInstance(Ra):getPublicInstance(Ra.parent):null,publicPropertiesMap=extend$4(Object.create(null),{$:Ra=>Ra,$el:Ra=>Ra.vnode.el,$data:Ra=>Ra.data,$props:Ra=>Ra.props,$attrs:Ra=>Ra.attrs,$slots:Ra=>Ra.slots,$refs:Ra=>Ra.refs,$parent:Ra=>getPublicInstance(Ra.parent),$root:Ra=>getPublicInstance(Ra.root),$host:Ra=>Ra.ce,$emit:Ra=>Ra.emit,$options:Ra=>resolveMergedOptions(Ra),$forceUpdate:Ra=>Ra.f||(Ra.f=()=>{queueJob(Ra.update)}),$nextTick:Ra=>Ra.n||(Ra.n=nextTick$1.bind(Ra.proxy)),$watch:Ra=>instanceWatch.bind(Ra)}),hasSetupBinding=(Ra,qa)=>Ra!==EMPTY_OBJ&&!Ra.__isScriptSetup&&hasOwn$3(Ra,qa),PublicInstanceProxyHandlers={get({_:Ra},qa){if(qa==="__v_skip")return!0;const{ctx:nd,setupState:od,data:ld,props:ud,accessCache:dd,type:pd,appContext:fd}=Ra;let md;if(qa[0]!=="$"){const Od=dd[qa];if(Od!==void 0)switch(Od){case 1:return od[qa];case 2:return ld[qa];case 4:return nd[qa];case 3:return ud[qa]}else{if(hasSetupBinding(od,qa))return dd[qa]=1,od[qa];if(ld!==EMPTY_OBJ&&hasOwn$3(ld,qa))return dd[qa]=2,ld[qa];if((md=Ra.propsOptions[0])&&hasOwn$3(md,qa))return dd[qa]=3,ud[qa];if(nd!==EMPTY_OBJ&&hasOwn$3(nd,qa))return dd[qa]=4,nd[qa];shouldCacheAccess&&(dd[qa]=0)}}const vd=publicPropertiesMap[qa];let Ad,Nd;if(vd)return qa==="$attrs"&&track(Ra.attrs,"get",""),vd(Ra);if((Ad=pd.__cssModules)&&(Ad=Ad[qa]))return Ad;if(nd!==EMPTY_OBJ&&hasOwn$3(nd,qa))return dd[qa]=4,nd[qa];if(Nd=fd.config.globalProperties,hasOwn$3(Nd,qa))return Nd[qa]},set({_:Ra},qa,nd){const{data:od,setupState:ld,ctx:ud}=Ra;return hasSetupBinding(ld,qa)?(ld[qa]=nd,!0):od!==EMPTY_OBJ&&hasOwn$3(od,qa)?(od[qa]=nd,!0):hasOwn$3(Ra.props,qa)||qa[0]==="$"&&qa.slice(1)in Ra?!1:(ud[qa]=nd,!0)},has({_:{data:Ra,setupState:qa,accessCache:nd,ctx:od,appContext:ld,propsOptions:ud}},dd){let pd;return!!nd[dd]||Ra!==EMPTY_OBJ&&hasOwn$3(Ra,dd)||hasSetupBinding(qa,dd)||(pd=ud[0])&&hasOwn$3(pd,dd)||hasOwn$3(od,dd)||hasOwn$3(publicPropertiesMap,dd)||hasOwn$3(ld.config.globalProperties,dd)},defineProperty(Ra,qa,nd){return nd.get!=null?Ra._.accessCache[qa]=0:hasOwn$3(nd,"value")&&this.set(Ra,qa,nd.value,null),Reflect.defineProperty(Ra,qa,nd)}};function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const Ra=getCurrentInstance();return Ra.setupContext||(Ra.setupContext=createSetupContext(Ra))}function normalizePropsOrEmits(Ra){return isArray$2(Ra)?Ra.reduce((qa,nd)=>(qa[nd]=null,qa),{}):Ra}function mergeDefaults(Ra,qa){const nd=normalizePropsOrEmits(Ra);for(const od in qa){if(od.startsWith("__skip"))continue;let ld=nd[od];ld?isArray$2(ld)||isFunction$4(ld)?ld=nd[od]={type:ld,default:qa[od]}:ld.default=qa[od]:ld===null&&(ld=nd[od]={default:qa[od]}),ld&&qa[`__skip_${od}`]&&(ld.skipFactory=!0)}return nd}let shouldCacheAccess=!0;function applyOptions(Ra){const qa=resolveMergedOptions(Ra),nd=Ra.proxy,od=Ra.ctx;shouldCacheAccess=!1,qa.beforeCreate&&callHook$1(qa.beforeCreate,Ra,"bc");const{data:ld,computed:ud,methods:dd,watch:pd,provide:fd,inject:md,created:vd,beforeMount:Ad,mounted:Nd,beforeUpdate:Od,updated:kd,activated:Ld,deactivated:Gd,beforeDestroy:jd,beforeUnmount:Fd,destroyed:Ud,unmounted:qd,render:zd,renderTracked:Wd,renderTriggered:Jd,errorCaptured:_f,serverPrefetch:Xd,expose:pf,inheritAttrs:mf,components:Sf,directives:Tf,filters:Af}=qa;if(md&&resolveInjections(md,od,null),dd)for(const If in dd){const Gf=dd[If];isFunction$4(Gf)&&(od[If]=Gf.bind(nd))}if(ld){const If=ld.call(nd,nd);isObject$9(If)&&(Ra.data=reactive(If))}if(shouldCacheAccess=!0,ud)for(const If in ud){const Gf=ud[If],Qf=isFunction$4(Gf)?Gf.bind(nd,nd):isFunction$4(Gf.get)?Gf.get.bind(nd,nd):NOOP,Xf=!isFunction$4(Gf)&&isFunction$4(Gf.set)?Gf.set.bind(nd):NOOP,ph=computed({get:Qf,set:Xf});Object.defineProperty(od,If,{enumerable:!0,configurable:!0,get:()=>ph.value,set:qf=>ph.value=qf})}if(pd)for(const If in pd)createWatcher(pd[If],od,nd,If);if(fd){const If=isFunction$4(fd)?fd.call(nd):fd;Reflect.ownKeys(If).forEach(Gf=>{provide(Gf,If[Gf])})}vd&&callHook$1(vd,Ra,"c");function Nf(If,Gf){isArray$2(Gf)?Gf.forEach(Qf=>If(Qf.bind(nd))):Gf&&If(Gf.bind(nd))}if(Nf(onBeforeMount,Ad),Nf(onMounted,Nd),Nf(onBeforeUpdate,Od),Nf(onUpdated,kd),Nf(onActivated,Ld),Nf(onDeactivated,Gd),Nf(onErrorCaptured,_f),Nf(onRenderTracked,Wd),Nf(onRenderTriggered,Jd),Nf(onBeforeUnmount,Fd),Nf(onUnmounted,qd),Nf(onServerPrefetch,Xd),isArray$2(pf))if(pf.length){const If=Ra.exposed||(Ra.exposed={});pf.forEach(Gf=>{Object.defineProperty(If,Gf,{get:()=>nd[Gf],set:Qf=>nd[Gf]=Qf})})}else Ra.exposed||(Ra.exposed={});zd&&Ra.render===NOOP&&(Ra.render=zd),mf!=null&&(Ra.inheritAttrs=mf),Sf&&(Ra.components=Sf),Tf&&(Ra.directives=Tf),Xd&&markAsyncBoundary(Ra)}function resolveInjections(Ra,qa,nd=NOOP){isArray$2(Ra)&&(Ra=normalizeInject(Ra));for(const od in Ra){const ld=Ra[od];let ud;isObject$9(ld)?"default"in ld?ud=inject(ld.from||od,ld.default,!0):ud=inject(ld.from||od):ud=inject(ld),isRef(ud)?Object.defineProperty(qa,od,{enumerable:!0,configurable:!0,get:()=>ud.value,set:dd=>ud.value=dd}):qa[od]=ud}}function callHook$1(Ra,qa,nd){callWithAsyncErrorHandling(isArray$2(Ra)?Ra.map(od=>od.bind(qa.proxy)):Ra.bind(qa.proxy),qa,nd)}function createWatcher(Ra,qa,nd,od){let ld=od.includes(".")?createPathGetter(nd,od):()=>nd[od];if(isString$2(Ra)){const ud=qa[Ra];isFunction$4(ud)&&watch(ld,ud)}else if(isFunction$4(Ra))watch(ld,Ra.bind(nd));else if(isObject$9(Ra))if(isArray$2(Ra))Ra.forEach(ud=>createWatcher(ud,qa,nd,od));else{const ud=isFunction$4(Ra.handler)?Ra.handler.bind(nd):qa[Ra.handler];isFunction$4(ud)&&watch(ld,ud,Ra)}}function resolveMergedOptions(Ra){const qa=Ra.type,{mixins:nd,extends:od}=qa,{mixins:ld,optionsCache:ud,config:{optionMergeStrategies:dd}}=Ra.appContext,pd=ud.get(qa);let fd;return pd?fd=pd:!ld.length&&!nd&&!od?fd=qa:(fd={},ld.length&&ld.forEach(md=>mergeOptions(fd,md,dd,!0)),mergeOptions(fd,qa,dd)),isObject$9(qa)&&ud.set(qa,fd),fd}function mergeOptions(Ra,qa,nd,od=!1){const{mixins:ld,extends:ud}=qa;ud&&mergeOptions(Ra,ud,nd,!0),ld&&ld.forEach(dd=>mergeOptions(Ra,dd,nd,!0));for(const dd in qa)if(!(od&&dd==="expose")){const pd=internalOptionMergeStrats[dd]||nd&&nd[dd];Ra[dd]=pd?pd(Ra[dd],qa[dd]):qa[dd]}return Ra}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(Ra,qa){return qa?Ra?function(){return extend$4(isFunction$4(Ra)?Ra.call(this,this):Ra,isFunction$4(qa)?qa.call(this,this):qa)}:qa:Ra}function mergeInject(Ra,qa){return mergeObjectOptions(normalizeInject(Ra),normalizeInject(qa))}function normalizeInject(Ra){if(isArray$2(Ra)){const qa={};for(let nd=0;nd1)return nd&&isFunction$4(qa)?qa.call(od&&od.proxy):qa}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=Ra=>Object.getPrototypeOf(Ra)===internalObjectProto;function initProps(Ra,qa,nd,od=!1){const ld={},ud=createInternalObject();Ra.propsDefaults=Object.create(null),setFullProps(Ra,qa,ld,ud);for(const dd in Ra.propsOptions[0])dd in ld||(ld[dd]=void 0);nd?Ra.props=od?ld:shallowReactive(ld):Ra.type.props?Ra.props=ld:Ra.props=ud,Ra.attrs=ud}function updateProps(Ra,qa,nd,od){const{props:ld,attrs:ud,vnode:{patchFlag:dd}}=Ra,pd=toRaw(ld),[fd]=Ra.propsOptions;let md=!1;if((od||dd>0)&&!(dd&16)){if(dd&8){const vd=Ra.vnode.dynamicProps;for(let Ad=0;Ad{fd=!0;const[Nd,Od]=normalizePropsOptions(Ad,qa,!0);extend$4(dd,Nd),Od&&pd.push(...Od)};!nd&&qa.mixins.length&&qa.mixins.forEach(vd),Ra.extends&&vd(Ra.extends),Ra.mixins&&Ra.mixins.forEach(vd)}if(!ud&&!fd)return isObject$9(Ra)&&od.set(Ra,EMPTY_ARR),EMPTY_ARR;if(isArray$2(ud))for(let vd=0;vdRa[0]==="_"||Ra==="$stable",normalizeSlotValue=Ra=>isArray$2(Ra)?Ra.map(normalizeVNode):[normalizeVNode(Ra)],normalizeSlot=(Ra,qa,nd)=>{if(qa._n)return qa;const od=withCtx((...ld)=>normalizeSlotValue(qa(...ld)),nd);return od._c=!1,od},normalizeObjectSlots=(Ra,qa,nd)=>{const od=Ra._ctx;for(const ld in Ra){if(isInternalKey(ld))continue;const ud=Ra[ld];if(isFunction$4(ud))qa[ld]=normalizeSlot(ld,ud,od);else if(ud!=null){const dd=normalizeSlotValue(ud);qa[ld]=()=>dd}}},normalizeVNodeSlots=(Ra,qa)=>{const nd=normalizeSlotValue(qa);Ra.slots.default=()=>nd},assignSlots=(Ra,qa,nd)=>{for(const od in qa)(nd||od!=="_")&&(Ra[od]=qa[od])},initSlots=(Ra,qa,nd)=>{const od=Ra.slots=createInternalObject();if(Ra.vnode.shapeFlag&32){const ld=qa._;ld?(assignSlots(od,qa,nd),nd&&def$2(od,"_",ld,!0)):normalizeObjectSlots(qa,od)}else qa&&normalizeVNodeSlots(Ra,qa)},updateSlots=(Ra,qa,nd)=>{const{vnode:od,slots:ld}=Ra;let ud=!0,dd=EMPTY_OBJ;if(od.shapeFlag&32){const pd=qa._;pd?nd&&pd===1?ud=!1:assignSlots(ld,qa,nd):(ud=!qa.$stable,normalizeObjectSlots(qa,ld)),dd=qa}else qa&&(normalizeVNodeSlots(Ra,qa),dd={default:1});if(ud)for(const pd in ld)!isInternalKey(pd)&&dd[pd]==null&&delete ld[pd]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer$1(Ra){return baseCreateRenderer(Ra)}function baseCreateRenderer(Ra,qa){const nd=getGlobalThis();nd.__VUE__=!0;const{insert:od,remove:ld,patchProp:ud,createElement:dd,createText:pd,createComment:fd,setText:md,setElementText:vd,parentNode:Ad,nextSibling:Nd,setScopeId:Od=NOOP,insertStaticContent:kd}=Ra,Ld=(Bf,Sh,Fh,uh=null,Pf=null,Uf=null,Zf=void 0,mh=null,Mh=!!Sh.dynamicChildren)=>{if(Bf===Sh)return;Bf&&!isSameVNodeType(Bf,Sh)&&(uh=Cf(Bf),qf(Bf,Pf,Uf,!0),Bf=null),Sh.patchFlag===-2&&(Mh=!1,Sh.dynamicChildren=null);const{type:_h,ref:pm,shapeFlag:Jh}=Sh;switch(_h){case Text$2:Gd(Bf,Sh,Fh,uh);break;case Comment$2:jd(Bf,Sh,Fh,uh);break;case Static:Bf==null&&Fd(Sh,Fh,uh,Zf);break;case Fragment:Sf(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh);break;default:Jh&1?zd(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh):Jh&6?Tf(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh):(Jh&64||Jh&128)&&_h.process(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh,dh)}pm!=null&&Pf&&setRef(pm,Bf&&Bf.ref,Uf,Sh||Bf,!Sh)},Gd=(Bf,Sh,Fh,uh)=>{if(Bf==null)od(Sh.el=pd(Sh.children),Fh,uh);else{const Pf=Sh.el=Bf.el;Sh.children!==Bf.children&&md(Pf,Sh.children)}},jd=(Bf,Sh,Fh,uh)=>{Bf==null?od(Sh.el=fd(Sh.children||""),Fh,uh):Sh.el=Bf.el},Fd=(Bf,Sh,Fh,uh)=>{[Bf.el,Bf.anchor]=kd(Bf.children,Sh,Fh,uh,Bf.el,Bf.anchor)},Ud=({el:Bf,anchor:Sh},Fh,uh)=>{let Pf;for(;Bf&&Bf!==Sh;)Pf=Nd(Bf),od(Bf,Fh,uh),Bf=Pf;od(Sh,Fh,uh)},qd=({el:Bf,anchor:Sh})=>{let Fh;for(;Bf&&Bf!==Sh;)Fh=Nd(Bf),ld(Bf),Bf=Fh;ld(Sh)},zd=(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh)=>{Sh.type==="svg"?Zf="svg":Sh.type==="math"&&(Zf="mathml"),Bf==null?Wd(Sh,Fh,uh,Pf,Uf,Zf,mh,Mh):Xd(Bf,Sh,Pf,Uf,Zf,mh,Mh)},Wd=(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh)=>{let Mh,_h;const{props:pm,shapeFlag:Jh,transition:Mm,dirs:Im}=Bf;if(Mh=Bf.el=dd(Bf.type,Uf,pm&&pm.is,pm),Jh&8?vd(Mh,Bf.children):Jh&16&&_f(Bf.children,Mh,null,uh,Pf,resolveChildrenNamespace(Bf,Uf),Zf,mh),Im&&invokeDirectiveHook(Bf,null,uh,"created"),Jd(Mh,Bf,Bf.scopeId,Zf,uh),pm){for(const Lm in pm)Lm!=="value"&&!isReservedProp(Lm)&&ud(Mh,Lm,null,pm[Lm],Uf,uh);"value"in pm&&ud(Mh,"value",null,pm.value,Uf),(_h=pm.onVnodeBeforeMount)&&invokeVNodeHook(_h,uh,Bf)}Im&&invokeDirectiveHook(Bf,null,uh,"beforeMount");const gm=needTransition(Pf,Mm);gm&&Mm.beforeEnter(Mh),od(Mh,Sh,Fh),((_h=pm&&pm.onVnodeMounted)||gm||Im)&&queuePostRenderEffect(()=>{_h&&invokeVNodeHook(_h,uh,Bf),gm&&Mm.enter(Mh),Im&&invokeDirectiveHook(Bf,null,uh,"mounted")},Pf)},Jd=(Bf,Sh,Fh,uh,Pf)=>{if(Fh&&Od(Bf,Fh),uh)for(let Uf=0;Uf{for(let _h=Mh;_h{const mh=Sh.el=Bf.el;let{patchFlag:Mh,dynamicChildren:_h,dirs:pm}=Sh;Mh|=Bf.patchFlag&16;const Jh=Bf.props||EMPTY_OBJ,Mm=Sh.props||EMPTY_OBJ;let Im;if(Fh&&toggleRecurse(Fh,!1),(Im=Mm.onVnodeBeforeUpdate)&&invokeVNodeHook(Im,Fh,Sh,Bf),pm&&invokeDirectiveHook(Sh,Bf,Fh,"beforeUpdate"),Fh&&toggleRecurse(Fh,!0),(Jh.innerHTML&&Mm.innerHTML==null||Jh.textContent&&Mm.textContent==null)&&vd(mh,""),_h?pf(Bf.dynamicChildren,_h,mh,Fh,uh,resolveChildrenNamespace(Sh,Pf),Uf):Zf||Gf(Bf,Sh,mh,null,Fh,uh,resolveChildrenNamespace(Sh,Pf),Uf,!1),Mh>0){if(Mh&16)mf(mh,Jh,Mm,Fh,Pf);else if(Mh&2&&Jh.class!==Mm.class&&ud(mh,"class",null,Mm.class,Pf),Mh&4&&ud(mh,"style",Jh.style,Mm.style,Pf),Mh&8){const gm=Sh.dynamicProps;for(let Lm=0;Lm{Im&&invokeVNodeHook(Im,Fh,Sh,Bf),pm&&invokeDirectiveHook(Sh,Bf,Fh,"updated")},uh)},pf=(Bf,Sh,Fh,uh,Pf,Uf,Zf)=>{for(let mh=0;mh{if(Sh!==Fh){if(Sh!==EMPTY_OBJ)for(const Uf in Sh)!isReservedProp(Uf)&&!(Uf in Fh)&&ud(Bf,Uf,Sh[Uf],null,Pf,uh);for(const Uf in Fh){if(isReservedProp(Uf))continue;const Zf=Fh[Uf],mh=Sh[Uf];Zf!==mh&&Uf!=="value"&&ud(Bf,Uf,mh,Zf,Pf,uh)}"value"in Fh&&ud(Bf,"value",Sh.value,Fh.value,Pf)}},Sf=(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh)=>{const _h=Sh.el=Bf?Bf.el:pd(""),pm=Sh.anchor=Bf?Bf.anchor:pd("");let{patchFlag:Jh,dynamicChildren:Mm,slotScopeIds:Im}=Sh;Im&&(mh=mh?mh.concat(Im):Im),Bf==null?(od(_h,Fh,uh),od(pm,Fh,uh),_f(Sh.children||[],Fh,pm,Pf,Uf,Zf,mh,Mh)):Jh>0&&Jh&64&&Mm&&Bf.dynamicChildren?(pf(Bf.dynamicChildren,Mm,Fh,Pf,Uf,Zf,mh),(Sh.key!=null||Pf&&Sh===Pf.subTree)&&traverseStaticChildren(Bf,Sh,!0)):Gf(Bf,Sh,Fh,pm,Pf,Uf,Zf,mh,Mh)},Tf=(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh)=>{Sh.slotScopeIds=mh,Bf==null?Sh.shapeFlag&512?Pf.ctx.activate(Sh,Fh,uh,Zf,Mh):Af(Sh,Fh,uh,Pf,Uf,Zf,Mh):Ef(Bf,Sh,Mh)},Af=(Bf,Sh,Fh,uh,Pf,Uf,Zf)=>{const mh=Bf.component=createComponentInstance(Bf,uh,Pf);if(isKeepAlive(Bf)&&(mh.ctx.renderer=dh),setupComponent(mh,!1,Zf),mh.asyncDep){if(Pf&&Pf.registerDep(mh,Nf,Zf),!Bf.el){const Mh=mh.subTree=createVNode(Comment$2);jd(null,Mh,Sh,Fh)}}else Nf(mh,Bf,Sh,Fh,Pf,Uf,Zf)},Ef=(Bf,Sh,Fh)=>{const uh=Sh.component=Bf.component;if(shouldUpdateComponent(Bf,Sh,Fh))if(uh.asyncDep&&!uh.asyncResolved){If(uh,Sh,Fh);return}else uh.next=Sh,uh.update();else Sh.el=Bf.el,uh.vnode=Sh},Nf=(Bf,Sh,Fh,uh,Pf,Uf,Zf)=>{const mh=()=>{if(Bf.isMounted){let{next:Jh,bu:Mm,u:Im,parent:gm,vnode:Lm}=Bf;{const sh=locateNonHydratedAsyncRoot(Bf);if(sh){Jh&&(Jh.el=Lm.el,If(Bf,Jh,Zf)),sh.asyncDep.then(()=>{Bf.isUnmounted||mh()});return}}let Vm=Jh,Th;toggleRecurse(Bf,!1),Jh?(Jh.el=Lm.el,If(Bf,Jh,Zf)):Jh=Lm,Mm&&invokeArrayFns(Mm),(Th=Jh.props&&Jh.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Th,gm,Jh,Lm),toggleRecurse(Bf,!0);const Rf=renderComponentRoot(Bf),wf=Bf.subTree;Bf.subTree=Rf,Ld(wf,Rf,Ad(wf.el),Cf(wf),Bf,Pf,Uf),Jh.el=Rf.el,Vm===null&&updateHOCHostEl(Bf,Rf.el),Im&&queuePostRenderEffect(Im,Pf),(Th=Jh.props&&Jh.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Th,gm,Jh,Lm),Pf)}else{let Jh;const{el:Mm,props:Im}=Sh,{bm:gm,m:Lm,parent:Vm,root:Th,type:Rf}=Bf,wf=isAsyncWrapper(Sh);if(toggleRecurse(Bf,!1),gm&&invokeArrayFns(gm),!wf&&(Jh=Im&&Im.onVnodeBeforeMount)&&invokeVNodeHook(Jh,Vm,Sh),toggleRecurse(Bf,!0),Mm&&th){const sh=()=>{Bf.subTree=renderComponentRoot(Bf),th(Mm,Bf.subTree,Bf,Pf,null)};wf&&Rf.__asyncHydrate?Rf.__asyncHydrate(Mm,Bf,sh):sh()}else{Th.ce&&Th.ce._injectChildStyle(Rf);const sh=Bf.subTree=renderComponentRoot(Bf);Ld(null,sh,Fh,uh,Bf,Pf,Uf),Sh.el=sh.el}if(Lm&&queuePostRenderEffect(Lm,Pf),!wf&&(Jh=Im&&Im.onVnodeMounted)){const sh=Sh;queuePostRenderEffect(()=>invokeVNodeHook(Jh,Vm,sh),Pf)}(Sh.shapeFlag&256||Vm&&isAsyncWrapper(Vm.vnode)&&Vm.vnode.shapeFlag&256)&&Bf.a&&queuePostRenderEffect(Bf.a,Pf),Bf.isMounted=!0,Sh=Fh=uh=null}};Bf.scope.on();const Mh=Bf.effect=new ReactiveEffect(mh);Bf.scope.off();const _h=Bf.update=Mh.run.bind(Mh),pm=Bf.job=Mh.runIfDirty.bind(Mh);pm.i=Bf,pm.id=Bf.uid,Mh.scheduler=()=>queueJob(pm),toggleRecurse(Bf,!0),_h()},If=(Bf,Sh,Fh)=>{Sh.component=Bf;const uh=Bf.vnode.props;Bf.vnode=Sh,Bf.next=null,updateProps(Bf,Sh.props,uh,Fh),updateSlots(Bf,Sh.children,Fh),pauseTracking(),flushPreFlushCbs(Bf),resetTracking()},Gf=(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh=!1)=>{const _h=Bf&&Bf.children,pm=Bf?Bf.shapeFlag:0,Jh=Sh.children,{patchFlag:Mm,shapeFlag:Im}=Sh;if(Mm>0){if(Mm&128){Xf(_h,Jh,Fh,uh,Pf,Uf,Zf,mh,Mh);return}else if(Mm&256){Qf(_h,Jh,Fh,uh,Pf,Uf,Zf,mh,Mh);return}}Im&8?(pm&16&&Kf(_h,Pf,Uf),Jh!==_h&&vd(Fh,Jh)):pm&16?Im&16?Xf(_h,Jh,Fh,uh,Pf,Uf,Zf,mh,Mh):Kf(_h,Pf,Uf,!0):(pm&8&&vd(Fh,""),Im&16&&_f(Jh,Fh,uh,Pf,Uf,Zf,mh,Mh))},Qf=(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh)=>{Bf=Bf||EMPTY_ARR,Sh=Sh||EMPTY_ARR;const _h=Bf.length,pm=Sh.length,Jh=Math.min(_h,pm);let Mm;for(Mm=0;Mmpm?Kf(Bf,Pf,Uf,!0,!1,Jh):_f(Sh,Fh,uh,Pf,Uf,Zf,mh,Mh,Jh)},Xf=(Bf,Sh,Fh,uh,Pf,Uf,Zf,mh,Mh)=>{let _h=0;const pm=Sh.length;let Jh=Bf.length-1,Mm=pm-1;for(;_h<=Jh&&_h<=Mm;){const Im=Bf[_h],gm=Sh[_h]=Mh?cloneIfMounted(Sh[_h]):normalizeVNode(Sh[_h]);if(isSameVNodeType(Im,gm))Ld(Im,gm,Fh,null,Pf,Uf,Zf,mh,Mh);else break;_h++}for(;_h<=Jh&&_h<=Mm;){const Im=Bf[Jh],gm=Sh[Mm]=Mh?cloneIfMounted(Sh[Mm]):normalizeVNode(Sh[Mm]);if(isSameVNodeType(Im,gm))Ld(Im,gm,Fh,null,Pf,Uf,Zf,mh,Mh);else break;Jh--,Mm--}if(_h>Jh){if(_h<=Mm){const Im=Mm+1,gm=ImMm)for(;_h<=Jh;)qf(Bf[_h],Pf,Uf,!0),_h++;else{const Im=_h,gm=_h,Lm=new Map;for(_h=gm;_h<=Mm;_h++){const om=Sh[_h]=Mh?cloneIfMounted(Sh[_h]):normalizeVNode(Sh[_h]);om.key!=null&&Lm.set(om.key,_h)}let Vm,Th=0;const Rf=Mm-gm+1;let wf=!1,sh=0;const xh=new Array(Rf);for(_h=0;_h=Rf){qf(om,Pf,Uf,!0);continue}let Dm;if(om.key!=null)Dm=Lm.get(om.key);else for(Vm=gm;Vm<=Mm;Vm++)if(xh[Vm-gm]===0&&isSameVNodeType(om,Sh[Vm])){Dm=Vm;break}Dm===void 0?qf(om,Pf,Uf,!0):(xh[Dm-gm]=_h+1,Dm>=sh?sh=Dm:wf=!0,Ld(om,Sh[Dm],Fh,null,Pf,Uf,Zf,mh,Mh),Th++)}const Wh=wf?getSequence(xh):EMPTY_ARR;for(Vm=Wh.length-1,_h=Rf-1;_h>=0;_h--){const om=gm+_h,Dm=Sh[om],zm=om+1{const{el:Uf,type:Zf,transition:mh,children:Mh,shapeFlag:_h}=Bf;if(_h&6){ph(Bf.component.subTree,Sh,Fh,uh);return}if(_h&128){Bf.suspense.move(Sh,Fh,uh);return}if(_h&64){Zf.move(Bf,Sh,Fh,dh);return}if(Zf===Fragment){od(Uf,Sh,Fh);for(let Jh=0;Jhmh.enter(Uf),Pf);else{const{leave:Jh,delayLeave:Mm,afterLeave:Im}=mh,gm=()=>od(Uf,Sh,Fh),Lm=()=>{Jh(Uf,()=>{gm(),Im&&Im()})};Mm?Mm(Uf,gm,Lm):Lm()}else od(Uf,Sh,Fh)},qf=(Bf,Sh,Fh,uh=!1,Pf=!1)=>{const{type:Uf,props:Zf,ref:mh,children:Mh,dynamicChildren:_h,shapeFlag:pm,patchFlag:Jh,dirs:Mm,cacheIndex:Im}=Bf;if(Jh===-2&&(Pf=!1),mh!=null&&setRef(mh,null,Fh,Bf,!0),Im!=null&&(Sh.renderCache[Im]=void 0),pm&256){Sh.ctx.deactivate(Bf);return}const gm=pm&1&&Mm,Lm=!isAsyncWrapper(Bf);let Vm;if(Lm&&(Vm=Zf&&Zf.onVnodeBeforeUnmount)&&invokeVNodeHook(Vm,Sh,Bf),pm&6)Jf(Bf.component,Fh,uh);else{if(pm&128){Bf.suspense.unmount(Fh,uh);return}gm&&invokeDirectiveHook(Bf,null,Sh,"beforeUnmount"),pm&64?Bf.type.remove(Bf,Sh,Fh,dh,uh):_h&&!_h.hasOnce&&(Uf!==Fragment||Jh>0&&Jh&64)?Kf(_h,Sh,Fh,!1,!0):(Uf===Fragment&&Jh&384||!Pf&&pm&16)&&Kf(Mh,Sh,Fh),uh&&Lf(Bf)}(Lm&&(Vm=Zf&&Zf.onVnodeUnmounted)||gm)&&queuePostRenderEffect(()=>{Vm&&invokeVNodeHook(Vm,Sh,Bf),gm&&invokeDirectiveHook(Bf,null,Sh,"unmounted")},Fh)},Lf=Bf=>{const{type:Sh,el:Fh,anchor:uh,transition:Pf}=Bf;if(Sh===Fragment){Wf(Fh,uh);return}if(Sh===Static){qd(Bf);return}const Uf=()=>{ld(Fh),Pf&&!Pf.persisted&&Pf.afterLeave&&Pf.afterLeave()};if(Bf.shapeFlag&1&&Pf&&!Pf.persisted){const{leave:Zf,delayLeave:mh}=Pf,Mh=()=>Zf(Fh,Uf);mh?mh(Bf.el,Uf,Mh):Mh()}else Uf()},Wf=(Bf,Sh)=>{let Fh;for(;Bf!==Sh;)Fh=Nd(Bf),ld(Bf),Bf=Fh;ld(Sh)},Jf=(Bf,Sh,Fh)=>{const{bum:uh,scope:Pf,job:Uf,subTree:Zf,um:mh,m:Mh,a:_h}=Bf;invalidateMount(Mh),invalidateMount(_h),uh&&invokeArrayFns(uh),Pf.stop(),Uf&&(Uf.flags|=8,qf(Zf,Bf,Sh,Fh)),mh&&queuePostRenderEffect(mh,Sh),queuePostRenderEffect(()=>{Bf.isUnmounted=!0},Sh),Sh&&Sh.pendingBranch&&!Sh.isUnmounted&&Bf.asyncDep&&!Bf.asyncResolved&&Bf.suspenseId===Sh.pendingId&&(Sh.deps--,Sh.deps===0&&Sh.resolve())},Kf=(Bf,Sh,Fh,uh=!1,Pf=!1,Uf=0)=>{for(let Zf=Uf;Zf{if(Bf.shapeFlag&6)return Cf(Bf.component.subTree);if(Bf.shapeFlag&128)return Bf.suspense.next();const Sh=Nd(Bf.anchor||Bf.el),Fh=Sh&&Sh[TeleportEndKey];return Fh?Nd(Fh):Sh};let xf=!1;const Yf=(Bf,Sh,Fh)=>{Bf==null?Sh._vnode&&qf(Sh._vnode,null,null,!0):Ld(Sh._vnode||null,Bf,Sh,null,null,null,Fh),Sh._vnode=Bf,xf||(xf=!0,flushPreFlushCbs(),flushPostFlushCbs(),xf=!1)},dh={p:Ld,um:qf,m:ph,r:Lf,mt:Af,mc:_f,pc:Gf,pbc:pf,n:Cf,o:Ra};let Rh,th;return{render:Yf,hydrate:Rh,createApp:createAppAPI(Yf,Rh)}}function resolveChildrenNamespace({type:Ra,props:qa},nd){return nd==="svg"&&Ra==="foreignObject"||nd==="mathml"&&Ra==="annotation-xml"&&qa&&qa.encoding&&qa.encoding.includes("html")?void 0:nd}function toggleRecurse({effect:Ra,job:qa},nd){nd?(Ra.flags|=32,qa.flags|=4):(Ra.flags&=-33,qa.flags&=-5)}function needTransition(Ra,qa){return(!Ra||Ra&&!Ra.pendingBranch)&&qa&&!qa.persisted}function traverseStaticChildren(Ra,qa,nd=!1){const od=Ra.children,ld=qa.children;if(isArray$2(od)&&isArray$2(ld))for(let ud=0;ud>1,Ra[nd[pd]]0&&(qa[od]=nd[ud-1]),nd[ud]=od)}}for(ud=nd.length,dd=nd[ud-1];ud-- >0;)nd[ud]=dd,dd=qa[dd];return nd}function locateNonHydratedAsyncRoot(Ra){const qa=Ra.subTree.component;if(qa)return qa.asyncDep&&!qa.asyncResolved?qa:locateNonHydratedAsyncRoot(qa)}function invalidateMount(Ra){if(Ra)for(let qa=0;qainject(ssrContextKey);function watchEffect(Ra,qa){return doWatch(Ra,null,qa)}function watchPostEffect(Ra,qa){return doWatch(Ra,null,{flush:"post"})}function watch(Ra,qa,nd){return doWatch(Ra,qa,nd)}function doWatch(Ra,qa,nd=EMPTY_OBJ){const{immediate:od,deep:ld,flush:ud,once:dd}=nd,pd=extend$4({},nd),fd=qa&&od||!qa&&ud!=="post";let md;if(isInSSRComponentSetup){if(ud==="sync"){const Od=useSSRContext();md=Od.__watcherHandles||(Od.__watcherHandles=[])}else if(!fd){const Od=()=>{};return Od.stop=NOOP,Od.resume=NOOP,Od.pause=NOOP,Od}}const vd=currentInstance;pd.call=(Od,kd,Ld)=>callWithAsyncErrorHandling(Od,vd,kd,Ld);let Ad=!1;ud==="post"?pd.scheduler=Od=>{queuePostRenderEffect(Od,vd&&vd.suspense)}:ud!=="sync"&&(Ad=!0,pd.scheduler=(Od,kd)=>{kd?Od():queueJob(Od)}),pd.augmentJob=Od=>{qa&&(Od.flags|=4),Ad&&(Od.flags|=2,vd&&(Od.id=vd.uid,Od.i=vd))};const Nd=watch$1(Ra,qa,pd);return isInSSRComponentSetup&&(md?md.push(Nd):fd&&Nd()),Nd}function instanceWatch(Ra,qa,nd){const od=this.proxy,ld=isString$2(Ra)?Ra.includes(".")?createPathGetter(od,Ra):()=>od[Ra]:Ra.bind(od,od);let ud;isFunction$4(qa)?ud=qa:(ud=qa.handler,nd=qa);const dd=setCurrentInstance(this),pd=doWatch(ld,ud.bind(od),nd);return dd(),pd}function createPathGetter(Ra,qa){const nd=qa.split(".");return()=>{let od=Ra;for(let ld=0;ldqa==="modelValue"||qa==="model-value"?Ra.modelModifiers:Ra[`${qa}Modifiers`]||Ra[`${camelize(qa)}Modifiers`]||Ra[`${hyphenate(qa)}Modifiers`];function emit(Ra,qa,...nd){if(Ra.isUnmounted)return;const od=Ra.vnode.props||EMPTY_OBJ;let ld=nd;const ud=qa.startsWith("update:"),dd=ud&&getModelModifiers(od,qa.slice(7));dd&&(dd.trim&&(ld=nd.map(vd=>isString$2(vd)?vd.trim():vd)),dd.number&&(ld=nd.map(looseToNumber)));let pd,fd=od[pd=toHandlerKey(qa)]||od[pd=toHandlerKey(camelize(qa))];!fd&&ud&&(fd=od[pd=toHandlerKey(hyphenate(qa))]),fd&&callWithAsyncErrorHandling(fd,Ra,6,ld);const md=od[pd+"Once"];if(md){if(!Ra.emitted)Ra.emitted={};else if(Ra.emitted[pd])return;Ra.emitted[pd]=!0,callWithAsyncErrorHandling(md,Ra,6,ld)}}function normalizeEmitsOptions(Ra,qa,nd=!1){const od=qa.emitsCache,ld=od.get(Ra);if(ld!==void 0)return ld;const ud=Ra.emits;let dd={},pd=!1;if(!isFunction$4(Ra)){const fd=md=>{const vd=normalizeEmitsOptions(md,qa,!0);vd&&(pd=!0,extend$4(dd,vd))};!nd&&qa.mixins.length&&qa.mixins.forEach(fd),Ra.extends&&fd(Ra.extends),Ra.mixins&&Ra.mixins.forEach(fd)}return!ud&&!pd?(isObject$9(Ra)&&od.set(Ra,null),null):(isArray$2(ud)?ud.forEach(fd=>dd[fd]=null):extend$4(dd,ud),isObject$9(Ra)&&od.set(Ra,dd),dd)}function isEmitListener(Ra,qa){return!Ra||!isOn(qa)?!1:(qa=qa.slice(2).replace(/Once$/,""),hasOwn$3(Ra,qa[0].toLowerCase()+qa.slice(1))||hasOwn$3(Ra,hyphenate(qa))||hasOwn$3(Ra,qa))}function markAttrsAccessed(){}function renderComponentRoot(Ra){const{type:qa,vnode:nd,proxy:od,withProxy:ld,propsOptions:[ud],slots:dd,attrs:pd,emit:fd,render:md,renderCache:vd,props:Ad,data:Nd,setupState:Od,ctx:kd,inheritAttrs:Ld}=Ra,Gd=setCurrentRenderingInstance(Ra);let jd,Fd;try{if(nd.shapeFlag&4){const qd=ld||od,zd=qd;jd=normalizeVNode(md.call(zd,qd,vd,Ad,Od,Nd,kd)),Fd=pd}else{const qd=qa;jd=normalizeVNode(qd.length>1?qd(Ad,{attrs:pd,slots:dd,emit:fd}):qd(Ad,null)),Fd=qa.props?pd:getFunctionalFallthrough(pd)}}catch(qd){blockStack.length=0,handleError$1(qd,Ra,1),jd=createVNode(Comment$2)}let Ud=jd;if(Fd&&Ld!==!1){const qd=Object.keys(Fd),{shapeFlag:zd}=Ud;qd.length&&zd&7&&(ud&&qd.some(isModelListener)&&(Fd=filterModelListeners(Fd,ud)),Ud=cloneVNode(Ud,Fd,!1,!0))}return nd.dirs&&(Ud=cloneVNode(Ud,null,!1,!0),Ud.dirs=Ud.dirs?Ud.dirs.concat(nd.dirs):nd.dirs),nd.transition&&setTransitionHooks(Ud,nd.transition),jd=Ud,setCurrentRenderingInstance(Gd),jd}const getFunctionalFallthrough=Ra=>{let qa;for(const nd in Ra)(nd==="class"||nd==="style"||isOn(nd))&&((qa||(qa={}))[nd]=Ra[nd]);return qa},filterModelListeners=(Ra,qa)=>{const nd={};for(const od in Ra)(!isModelListener(od)||!(od.slice(9)in qa))&&(nd[od]=Ra[od]);return nd};function shouldUpdateComponent(Ra,qa,nd){const{props:od,children:ld,component:ud}=Ra,{props:dd,children:pd,patchFlag:fd}=qa,md=ud.emitsOptions;if(qa.dirs||qa.transition)return!0;if(nd&&fd>=0){if(fd&1024)return!0;if(fd&16)return od?hasPropsChanged(od,dd,md):!!dd;if(fd&8){const vd=qa.dynamicProps;for(let Ad=0;AdRa.__isSuspense;function queueEffectWithSuspense(Ra,qa){qa&&qa.pendingBranch?isArray$2(Ra)?qa.effects.push(...Ra):qa.effects.push(Ra):queuePostFlushCb(Ra)}const Fragment=Symbol.for("v-fgt"),Text$2=Symbol.for("v-txt"),Comment$2=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(Ra=!1){blockStack.push(currentBlock=Ra?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(Ra,qa=!1){isBlockTreeEnabled+=Ra,Ra<0&¤tBlock&&qa&&(currentBlock.hasOnce=!0)}function setupBlock(Ra){return Ra.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(Ra),Ra}function createElementBlock(Ra,qa,nd,od,ld,ud){return setupBlock(createBaseVNode(Ra,qa,nd,od,ld,ud,!0))}function createBlock(Ra,qa,nd,od,ld){return setupBlock(createVNode(Ra,qa,nd,od,ld,!0))}function isVNode(Ra){return Ra?Ra.__v_isVNode===!0:!1}function isSameVNodeType(Ra,qa){return Ra.type===qa.type&&Ra.key===qa.key}const normalizeKey=({key:Ra})=>Ra??null,normalizeRef=({ref:Ra,ref_key:qa,ref_for:nd})=>(typeof Ra=="number"&&(Ra=""+Ra),Ra!=null?isString$2(Ra)||isRef(Ra)||isFunction$4(Ra)?{i:currentRenderingInstance,r:Ra,k:qa,f:!!nd}:Ra:null);function createBaseVNode(Ra,qa=null,nd=null,od=0,ld=null,ud=Ra===Fragment?0:1,dd=!1,pd=!1){const fd={__v_isVNode:!0,__v_skip:!0,type:Ra,props:qa,key:qa&&normalizeKey(qa),ref:qa&&normalizeRef(qa),scopeId:currentScopeId,slotScopeIds:null,children:nd,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:ud,patchFlag:od,dynamicProps:ld,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return pd?(normalizeChildren$1(fd,nd),ud&128&&Ra.normalize(fd)):nd&&(fd.shapeFlag|=isString$2(nd)?8:16),isBlockTreeEnabled>0&&!dd&¤tBlock&&(fd.patchFlag>0||ud&6)&&fd.patchFlag!==32&¤tBlock.push(fd),fd}const createVNode=_createVNode;function _createVNode(Ra,qa=null,nd=null,od=0,ld=null,ud=!1){if((!Ra||Ra===NULL_DYNAMIC_COMPONENT)&&(Ra=Comment$2),isVNode(Ra)){const pd=cloneVNode(Ra,qa,!0);return nd&&normalizeChildren$1(pd,nd),isBlockTreeEnabled>0&&!ud&¤tBlock&&(pd.shapeFlag&6?currentBlock[currentBlock.indexOf(Ra)]=pd:currentBlock.push(pd)),pd.patchFlag=-2,pd}if(isClassComponent(Ra)&&(Ra=Ra.__vccOpts),qa){qa=guardReactiveProps(qa);let{class:pd,style:fd}=qa;pd&&!isString$2(pd)&&(qa.class=normalizeClass(pd)),isObject$9(fd)&&(isProxy(fd)&&!isArray$2(fd)&&(fd=extend$4({},fd)),qa.style=normalizeStyle(fd))}const dd=isString$2(Ra)?1:isSuspense(Ra)?128:isTeleport(Ra)?64:isObject$9(Ra)?4:isFunction$4(Ra)?2:0;return createBaseVNode(Ra,qa,nd,od,ld,dd,ud,!0)}function guardReactiveProps(Ra){return Ra?isProxy(Ra)||isInternalObject(Ra)?extend$4({},Ra):Ra:null}function cloneVNode(Ra,qa,nd=!1,od=!1){const{props:ld,ref:ud,patchFlag:dd,children:pd,transition:fd}=Ra,md=qa?mergeProps(ld||{},qa):ld,vd={__v_isVNode:!0,__v_skip:!0,type:Ra.type,props:md,key:md&&normalizeKey(md),ref:qa&&qa.ref?nd&&ud?isArray$2(ud)?ud.concat(normalizeRef(qa)):[ud,normalizeRef(qa)]:normalizeRef(qa):ud,scopeId:Ra.scopeId,slotScopeIds:Ra.slotScopeIds,children:pd,target:Ra.target,targetStart:Ra.targetStart,targetAnchor:Ra.targetAnchor,staticCount:Ra.staticCount,shapeFlag:Ra.shapeFlag,patchFlag:qa&&Ra.type!==Fragment?dd===-1?16:dd|16:dd,dynamicProps:Ra.dynamicProps,dynamicChildren:Ra.dynamicChildren,appContext:Ra.appContext,dirs:Ra.dirs,transition:fd,component:Ra.component,suspense:Ra.suspense,ssContent:Ra.ssContent&&cloneVNode(Ra.ssContent),ssFallback:Ra.ssFallback&&cloneVNode(Ra.ssFallback),el:Ra.el,anchor:Ra.anchor,ctx:Ra.ctx,ce:Ra.ce};return fd&&od&&setTransitionHooks(vd,fd.clone(vd)),vd}function createTextVNode(Ra=" ",qa=0){return createVNode(Text$2,null,Ra,qa)}function createCommentVNode(Ra="",qa=!1){return qa?(openBlock(),createBlock(Comment$2,null,Ra)):createVNode(Comment$2,null,Ra)}function normalizeVNode(Ra){return Ra==null||typeof Ra=="boolean"?createVNode(Comment$2):isArray$2(Ra)?createVNode(Fragment,null,Ra.slice()):isVNode(Ra)?cloneIfMounted(Ra):createVNode(Text$2,null,String(Ra))}function cloneIfMounted(Ra){return Ra.el===null&&Ra.patchFlag!==-1||Ra.memo?Ra:cloneVNode(Ra)}function normalizeChildren$1(Ra,qa){let nd=0;const{shapeFlag:od}=Ra;if(qa==null)qa=null;else if(isArray$2(qa))nd=16;else if(typeof qa=="object")if(od&65){const ld=qa.default;ld&&(ld._c&&(ld._d=!1),normalizeChildren$1(Ra,ld()),ld._c&&(ld._d=!0));return}else{nd=32;const ld=qa._;!ld&&!isInternalObject(qa)?qa._ctx=currentRenderingInstance:ld===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?qa._=1:(qa._=2,Ra.patchFlag|=1024))}else isFunction$4(qa)?(qa={default:qa,_ctx:currentRenderingInstance},nd=32):(qa=String(qa),od&64?(nd=16,qa=[createTextVNode(qa)]):nd=8);Ra.children=qa,Ra.shapeFlag|=nd}function mergeProps(...Ra){const qa={};for(let nd=0;ndcurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const Ra=getGlobalThis(),qa=(nd,od)=>{let ld;return(ld=Ra[nd])||(ld=Ra[nd]=[]),ld.push(od),ud=>{ld.length>1?ld.forEach(dd=>dd(ud)):ld[0](ud)}};internalSetCurrentInstance=qa("__VUE_INSTANCE_SETTERS__",nd=>currentInstance=nd),setInSSRSetupState=qa("__VUE_SSR_SETTERS__",nd=>isInSSRComponentSetup=nd)}const setCurrentInstance=Ra=>{const qa=currentInstance;return internalSetCurrentInstance(Ra),Ra.scope.on(),()=>{Ra.scope.off(),internalSetCurrentInstance(qa)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(Ra){return Ra.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(Ra,qa=!1,nd=!1){qa&&setInSSRSetupState(qa);const{props:od,children:ld}=Ra.vnode,ud=isStatefulComponent(Ra);initProps(Ra,od,ud,qa),initSlots(Ra,ld,nd);const dd=ud?setupStatefulComponent(Ra,qa):void 0;return qa&&setInSSRSetupState(!1),dd}function setupStatefulComponent(Ra,qa){const nd=Ra.type;Ra.accessCache=Object.create(null),Ra.proxy=new Proxy(Ra.ctx,PublicInstanceProxyHandlers);const{setup:od}=nd;if(od){pauseTracking();const ld=Ra.setupContext=od.length>1?createSetupContext(Ra):null,ud=setCurrentInstance(Ra),dd=callWithErrorHandling(od,Ra,0,[Ra.props,ld]),pd=isPromise(dd);if(resetTracking(),ud(),(pd||Ra.sp)&&!isAsyncWrapper(Ra)&&markAsyncBoundary(Ra),pd){if(dd.then(unsetCurrentInstance,unsetCurrentInstance),qa)return dd.then(fd=>{handleSetupResult(Ra,fd,qa)}).catch(fd=>{handleError$1(fd,Ra,0)});Ra.asyncDep=dd}else handleSetupResult(Ra,dd,qa)}else finishComponentSetup(Ra,qa)}function handleSetupResult(Ra,qa,nd){isFunction$4(qa)?Ra.type.__ssrInlineRender?Ra.ssrRender=qa:Ra.render=qa:isObject$9(qa)&&(Ra.setupState=proxyRefs(qa)),finishComponentSetup(Ra,nd)}let compile$2;function finishComponentSetup(Ra,qa,nd){const od=Ra.type;if(!Ra.render){if(!qa&&compile$2&&!od.render){const ld=od.template||resolveMergedOptions(Ra).template;if(ld){const{isCustomElement:ud,compilerOptions:dd}=Ra.appContext.config,{delimiters:pd,compilerOptions:fd}=od,md=extend$4(extend$4({isCustomElement:ud,delimiters:pd},dd),fd);od.render=compile$2(ld,md)}}Ra.render=od.render||NOOP}{const ld=setCurrentInstance(Ra);pauseTracking();try{applyOptions(Ra)}finally{resetTracking(),ld()}}}const attrsProxyHandlers={get(Ra,qa){return track(Ra,"get",""),Ra[qa]}};function createSetupContext(Ra){const qa=nd=>{Ra.exposed=nd||{}};return{attrs:new Proxy(Ra.attrs,attrsProxyHandlers),slots:Ra.slots,emit:Ra.emit,expose:qa}}function getComponentPublicInstance(Ra){return Ra.exposed?Ra.exposeProxy||(Ra.exposeProxy=new Proxy(proxyRefs(markRaw(Ra.exposed)),{get(qa,nd){if(nd in qa)return qa[nd];if(nd in publicPropertiesMap)return publicPropertiesMap[nd](Ra)},has(qa,nd){return nd in qa||nd in publicPropertiesMap}})):Ra.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=Ra=>Ra.replace(classifyRE,qa=>qa.toUpperCase()).replace(/[-_]/g,"");function getComponentName(Ra,qa=!0){return isFunction$4(Ra)?Ra.displayName||Ra.name:Ra.name||qa&&Ra.__name}function formatComponentName(Ra,qa,nd=!1){let od=getComponentName(qa);if(!od&&qa.__file){const ld=qa.__file.match(/([^/\\]+)\.\w+$/);ld&&(od=ld[1])}if(!od&&Ra&&Ra.parent){const ld=ud=>{for(const dd in ud)if(ud[dd]===qa)return dd};od=ld(Ra.components||Ra.parent.type.components)||ld(Ra.appContext.components)}return od?classify(od):nd?"App":"Anonymous"}function isClassComponent(Ra){return isFunction$4(Ra)&&"__vccOpts"in Ra}const computed=(Ra,qa)=>computed$1(Ra,qa,isInSSRComponentSetup);function h$2(Ra,qa,nd){const od=arguments.length;return od===2?isObject$9(qa)&&!isArray$2(qa)?isVNode(qa)?createVNode(Ra,null,[qa]):createVNode(Ra,qa):createVNode(Ra,null,qa):(od>3?nd=Array.prototype.slice.call(arguments,2):od===3&&isVNode(nd)&&(nd=[nd]),createVNode(Ra,qa,nd))}const version$4="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let policy;const tt$5=typeof window<"u"&&window.trustedTypes;if(tt$5)try{policy=tt$5.createPolicy("vue",{createHTML:Ra=>Ra})}catch{}const unsafeToTrustedHTML=policy?Ra=>policy.createHTML(Ra):Ra=>Ra,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(Ra,qa,nd)=>{qa.insertBefore(Ra,nd||null)},remove:Ra=>{const qa=Ra.parentNode;qa&&qa.removeChild(Ra)},createElement:(Ra,qa,nd,od)=>{const ld=qa==="svg"?doc.createElementNS(svgNS,Ra):qa==="mathml"?doc.createElementNS(mathmlNS,Ra):nd?doc.createElement(Ra,{is:nd}):doc.createElement(Ra);return Ra==="select"&&od&&od.multiple!=null&&ld.setAttribute("multiple",od.multiple),ld},createText:Ra=>doc.createTextNode(Ra),createComment:Ra=>doc.createComment(Ra),setText:(Ra,qa)=>{Ra.nodeValue=qa},setElementText:(Ra,qa)=>{Ra.textContent=qa},parentNode:Ra=>Ra.parentNode,nextSibling:Ra=>Ra.nextSibling,querySelector:Ra=>doc.querySelector(Ra),setScopeId(Ra,qa){Ra.setAttribute(qa,"")},insertStaticContent(Ra,qa,nd,od,ld,ud){const dd=nd?nd.previousSibling:qa.lastChild;if(ld&&(ld===ud||ld.nextSibling))for(;qa.insertBefore(ld.cloneNode(!0),nd),!(ld===ud||!(ld=ld.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(od==="svg"?`${Ra}`:od==="mathml"?`${Ra}`:Ra);const pd=templateContainer.content;if(od==="svg"||od==="mathml"){const fd=pd.firstChild;for(;fd.firstChild;)pd.appendChild(fd.firstChild);pd.removeChild(fd)}qa.insertBefore(pd,nd)}return[dd?dd.nextSibling:qa.firstChild,nd?nd.previousSibling:qa.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$4({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=Ra=>(Ra.displayName="Transition",Ra.props=TransitionPropsValidators,Ra),Transition$1=decorate$1((Ra,{slots:qa})=>h$2(BaseTransition,resolveTransitionProps(Ra),qa)),callHook=(Ra,qa=[])=>{isArray$2(Ra)?Ra.forEach(nd=>nd(...qa)):Ra&&Ra(...qa)},hasExplicitCallback=Ra=>Ra?isArray$2(Ra)?Ra.some(qa=>qa.length>1):Ra.length>1:!1;function resolveTransitionProps(Ra){const qa={};for(const Tf in Ra)Tf in DOMTransitionPropsValidators||(qa[Tf]=Ra[Tf]);if(Ra.css===!1)return qa;const{name:nd="v",type:od,duration:ld,enterFromClass:ud=`${nd}-enter-from`,enterActiveClass:dd=`${nd}-enter-active`,enterToClass:pd=`${nd}-enter-to`,appearFromClass:fd=ud,appearActiveClass:md=dd,appearToClass:vd=pd,leaveFromClass:Ad=`${nd}-leave-from`,leaveActiveClass:Nd=`${nd}-leave-active`,leaveToClass:Od=`${nd}-leave-to`}=Ra,kd=normalizeDuration(ld),Ld=kd&&kd[0],Gd=kd&&kd[1],{onBeforeEnter:Ud,onEnter:Fd,onEnterCancelled:jd,onLeave:qd,onLeaveCancelled:zd,onBeforeAppear:Yd=Ud,onAppear:Jd=Fd,onAppearCancelled:yf=jd}=qa,Xd=(Tf,vf,Af,Sf)=>{Tf._enterCancelled=Sf,removeTransitionClass(Tf,vf?vd:pd),removeTransitionClass(Tf,vf?md:dd),Af&&Af()},pf=(Tf,vf)=>{Tf._isLeaving=!1,removeTransitionClass(Tf,Ad),removeTransitionClass(Tf,Od),removeTransitionClass(Tf,Nd),vf&&vf()},mf=Tf=>(vf,Af)=>{const Sf=Tf?Jd:Fd,Df=()=>Xd(vf,Tf,Af);callHook(Sf,[vf,Df]),nextFrame(()=>{removeTransitionClass(vf,Tf?fd:ud),addTransitionClass(vf,Tf?vd:pd),hasExplicitCallback(Sf)||whenTransitionEnds(vf,od,Ld,Df)})};return extend$4(qa,{onBeforeEnter(Tf){callHook(Ud,[Tf]),addTransitionClass(Tf,ud),addTransitionClass(Tf,dd)},onBeforeAppear(Tf){callHook(Yd,[Tf]),addTransitionClass(Tf,fd),addTransitionClass(Tf,md)},onEnter:mf(!1),onAppear:mf(!0),onLeave(Tf,vf){Tf._isLeaving=!0;const Af=()=>pf(Tf,vf);addTransitionClass(Tf,Ad),Tf._enterCancelled?(addTransitionClass(Tf,Nd),forceReflow()):(forceReflow(),addTransitionClass(Tf,Nd)),nextFrame(()=>{Tf._isLeaving&&(removeTransitionClass(Tf,Ad),addTransitionClass(Tf,Od),hasExplicitCallback(qd)||whenTransitionEnds(Tf,od,Gd,Af))}),callHook(qd,[Tf,Af])},onEnterCancelled(Tf){Xd(Tf,!1,void 0,!0),callHook(jd,[Tf])},onAppearCancelled(Tf){Xd(Tf,!0,void 0,!0),callHook(yf,[Tf])},onLeaveCancelled(Tf){pf(Tf),callHook(zd,[Tf])}})}function normalizeDuration(Ra){if(Ra==null)return null;if(isObject$6(Ra))return[NumberOf(Ra.enter),NumberOf(Ra.leave)];{const qa=NumberOf(Ra);return[qa,qa]}}function NumberOf(Ra){return toNumber$3(Ra)}function addTransitionClass(Ra,qa){qa.split(/\s+/).forEach(nd=>nd&&Ra.classList.add(nd)),(Ra[vtcKey]||(Ra[vtcKey]=new Set)).add(qa)}function removeTransitionClass(Ra,qa){qa.split(/\s+/).forEach(od=>od&&Ra.classList.remove(od));const nd=Ra[vtcKey];nd&&(nd.delete(qa),nd.size||(Ra[vtcKey]=void 0))}function nextFrame(Ra){requestAnimationFrame(()=>{requestAnimationFrame(Ra)})}let endId=0;function whenTransitionEnds(Ra,qa,nd,od){const ld=Ra._endId=++endId,ud=()=>{ld===Ra._endId&&od()};if(nd!=null)return setTimeout(ud,nd);const{type:dd,timeout:pd,propCount:fd}=getTransitionInfo(Ra,qa);if(!dd)return od();const md=dd+"end";let vd=0;const Ad=()=>{Ra.removeEventListener(md,Nd),ud()},Nd=Od=>{Od.target===Ra&&++vd>=fd&&Ad()};setTimeout(()=>{vd(nd[kd]||"").split(", "),ld=od(`${TRANSITION}Delay`),ud=od(`${TRANSITION}Duration`),dd=getTimeout(ld,ud),pd=od(`${ANIMATION}Delay`),fd=od(`${ANIMATION}Duration`),md=getTimeout(pd,fd);let vd=null,Ad=0,Nd=0;qa===TRANSITION?dd>0&&(vd=TRANSITION,Ad=dd,Nd=ud.length):qa===ANIMATION?md>0&&(vd=ANIMATION,Ad=md,Nd=fd.length):(Ad=Math.max(dd,md),vd=Ad>0?dd>md?TRANSITION:ANIMATION:null,Nd=vd?vd===TRANSITION?ud.length:fd.length:0);const Od=vd===TRANSITION&&/\b(transform|all)(,|$)/.test(od(`${TRANSITION}Property`).toString());return{type:vd,timeout:Ad,propCount:Nd,hasTransform:Od}}function getTimeout(Ra,qa){for(;Ra.lengthtoMs(nd)+toMs(Ra[od])))}function toMs(Ra){return Ra==="auto"?0:Number(Ra.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(Ra,qa,nd){const od=Ra[vtcKey];od&&(qa=(qa?[qa,...od]:[...od]).join(" ")),qa==null?Ra.removeAttribute("class"):nd?Ra.setAttribute("class",qa):Ra.className=qa}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={beforeMount(Ra,{value:qa},{transition:nd}){Ra[vShowOriginalDisplay]=Ra.style.display==="none"?"":Ra.style.display,nd&&qa?nd.beforeEnter(Ra):setDisplay(Ra,qa)},mounted(Ra,{value:qa},{transition:nd}){nd&&qa&&nd.enter(Ra)},updated(Ra,{value:qa,oldValue:nd},{transition:od}){!qa!=!nd&&(od?qa?(od.beforeEnter(Ra),setDisplay(Ra,!0),od.enter(Ra)):od.leave(Ra,()=>{setDisplay(Ra,!1)}):setDisplay(Ra,qa))},beforeUnmount(Ra,{value:qa}){setDisplay(Ra,qa)}};function setDisplay(Ra,qa){Ra.style.display=qa?Ra[vShowOriginalDisplay]:"none",Ra[vShowHidden]=!qa}const CSS_VAR_TEXT=Symbol(""),displayRE=/(^|;)\s*display\s*:/;function patchStyle(Ra,qa,nd){const od=Ra.style,ld=isString$2(nd);let ud=!1;if(nd&&!ld){if(qa)if(isString$2(qa))for(const dd of qa.split(";")){const pd=dd.slice(0,dd.indexOf(":")).trim();nd[pd]==null&&setStyle(od,pd,"")}else for(const dd in qa)nd[dd]==null&&setStyle(od,dd,"");for(const dd in nd)dd==="display"&&(ud=!0),setStyle(od,dd,nd[dd])}else if(ld){if(qa!==nd){const dd=od[CSS_VAR_TEXT];dd&&(nd+=";"+dd),od.cssText=nd,ud=displayRE.test(nd)}}else qa&&Ra.removeAttribute("style");vShowOriginalDisplay in Ra&&(Ra[vShowOriginalDisplay]=ud?od.display:"",Ra[vShowHidden]&&(od.display="none"))}const importantRE=/\s*!important$/;function setStyle(Ra,qa,nd){if(isArray$2(nd))nd.forEach(od=>setStyle(Ra,qa,od));else if(nd==null&&(nd=""),qa.startsWith("--"))Ra.setProperty(qa,nd);else{const od=autoPrefix(Ra,qa);importantRE.test(nd)?Ra.setProperty(hyphenate(od),nd.replace(importantRE,""),"important"):Ra[od]=nd}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(Ra,qa){const nd=prefixCache[qa];if(nd)return nd;let od=camelize(qa);if(od!=="filter"&&od in Ra)return prefixCache[qa]=od;od=capitalize(od);for(let ld=0;ldcachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(Ra,qa){const nd=od=>{if(!od._vts)od._vts=Date.now();else if(od._vts<=nd.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(od,nd.value),qa,5,[od])};return nd.value=Ra,nd.attached=getNow(),nd}function patchStopImmediatePropagation(Ra,qa){if(isArray$2(qa)){const nd=Ra.stopImmediatePropagation;return Ra.stopImmediatePropagation=()=>{nd.call(Ra),Ra._stopped=!0},qa.map(od=>ld=>!ld._stopped&&od&&od(ld))}else return qa}const isNativeOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&Ra.charCodeAt(2)>96&&Ra.charCodeAt(2)<123,patchProp=(Ra,qa,nd,od,ld,ud)=>{const dd=ld==="svg";qa==="class"?patchClass(Ra,od,dd):qa==="style"?patchStyle(Ra,nd,od):isOn(qa)?isModelListener(qa)||patchEvent(Ra,qa,nd,od,ud):(qa[0]==="."?(qa=qa.slice(1),!0):qa[0]==="^"?(qa=qa.slice(1),!1):shouldSetAsProp(Ra,qa,od,dd))?(patchDOMProp(Ra,qa,od),!Ra.tagName.includes("-")&&(qa==="value"||qa==="checked"||qa==="selected")&&patchAttr(Ra,qa,od,dd,ud,qa!=="value")):Ra._isVueCE&&(/[A-Z]/.test(qa)||!isString$2(od))?patchDOMProp(Ra,camelize(qa),od,ud,qa):(qa==="true-value"?Ra._trueValue=od:qa==="false-value"&&(Ra._falseValue=od),patchAttr(Ra,qa,od,dd))};function shouldSetAsProp(Ra,qa,nd,od){if(od)return!!(qa==="innerHTML"||qa==="textContent"||qa in Ra&&isNativeOn(qa)&&isFunction$4(nd));if(qa==="spellcheck"||qa==="draggable"||qa==="translate"||qa==="form"||qa==="list"&&Ra.tagName==="INPUT"||qa==="type"&&Ra.tagName==="TEXTAREA")return!1;if(qa==="width"||qa==="height"){const ld=Ra.tagName;if(ld==="IMG"||ld==="VIDEO"||ld==="CANVAS"||ld==="SOURCE")return!1}return isNativeOn(qa)&&isString$2(nd)?!1:qa in Ra}const getModelAssigner=Ra=>{const qa=Ra.props["onUpdate:modelValue"]||!1;return isArray$2(qa)?nd=>invokeArrayFns(qa,nd):qa};function onCompositionStart(Ra){Ra.target.composing=!0}function onCompositionEnd(Ra){const qa=Ra.target;qa.composing&&(qa.composing=!1,qa.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(Ra,{modifiers:{lazy:qa,trim:nd,number:od}},ld){Ra[assignKey]=getModelAssigner(ld);const ud=od||ld.props&&ld.props.type==="number";addEventListener(Ra,qa?"change":"input",dd=>{if(dd.target.composing)return;let pd=Ra.value;nd&&(pd=pd.trim()),ud&&(pd=looseToNumber(pd)),Ra[assignKey](pd)}),nd&&addEventListener(Ra,"change",()=>{Ra.value=Ra.value.trim()}),qa||(addEventListener(Ra,"compositionstart",onCompositionStart),addEventListener(Ra,"compositionend",onCompositionEnd),addEventListener(Ra,"change",onCompositionEnd))},mounted(Ra,{value:qa}){Ra.value=qa??""},beforeUpdate(Ra,{value:qa,oldValue:nd,modifiers:{lazy:od,trim:ld,number:ud}},dd){if(Ra[assignKey]=getModelAssigner(dd),Ra.composing)return;const pd=(ud||Ra.type==="number")&&!/^0\d/.test(Ra.value)?looseToNumber(Ra.value):Ra.value,fd=qa??"";pd!==fd&&(document.activeElement===Ra&&Ra.type!=="range"&&(od&&qa===nd||ld&&Ra.value.trim()===fd)||(Ra.value=fd))}},vModelSelect={deep:!0,created(Ra,{value:qa,modifiers:{number:nd}},od){const ld=isSet$1(qa);addEventListener(Ra,"change",()=>{const ud=Array.prototype.filter.call(Ra.options,dd=>dd.selected).map(dd=>nd?looseToNumber(getValue$1(dd)):getValue$1(dd));Ra[assignKey](Ra.multiple?ld?new Set(ud):ud:ud[0]),Ra._assigning=!0,nextTick$1(()=>{Ra._assigning=!1})}),Ra[assignKey]=getModelAssigner(od)},mounted(Ra,{value:qa}){setSelected(Ra,qa)},beforeUpdate(Ra,qa,nd){Ra[assignKey]=getModelAssigner(nd)},updated(Ra,{value:qa}){Ra._assigning||setSelected(Ra,qa)}};function setSelected(Ra,qa){const nd=Ra.multiple,od=isArray$2(qa);if(!(nd&&!od&&!isSet$1(qa))){for(let ld=0,ud=Ra.options.length;ldString(md)===String(pd)):dd.selected=looseIndexOf(qa,pd)>-1}else dd.selected=qa.has(pd);else if(looseEqual(getValue$1(dd),qa)){Ra.selectedIndex!==ld&&(Ra.selectedIndex=ld);return}}!nd&&Ra.selectedIndex!==-1&&(Ra.selectedIndex=-1)}}function getValue$1(Ra){return"_value"in Ra?Ra._value:Ra.value}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:Ra=>Ra.stopPropagation(),prevent:Ra=>Ra.preventDefault(),self:Ra=>Ra.target!==Ra.currentTarget,ctrl:Ra=>!Ra.ctrlKey,shift:Ra=>!Ra.shiftKey,alt:Ra=>!Ra.altKey,meta:Ra=>!Ra.metaKey,left:Ra=>"button"in Ra&&Ra.button!==0,middle:Ra=>"button"in Ra&&Ra.button!==1,right:Ra=>"button"in Ra&&Ra.button!==2,exact:(Ra,qa)=>systemModifiers.some(nd=>Ra[`${nd}Key`]&&!qa.includes(nd))},withModifiers=(Ra,qa)=>{const nd=Ra._withMods||(Ra._withMods={}),od=qa.join(".");return nd[od]||(nd[od]=(ld,...ud)=>{for(let dd=0;dd{const nd=Ra._withKeys||(Ra._withKeys={}),od=qa.join(".");return nd[od]||(nd[od]=ld=>{if(!("key"in ld))return;const ud=hyphenate(ld.key);if(qa.some(dd=>dd===ud||keyNames[dd]===ud))return Ra(ld)})},rendererOptions=extend$4({patchProp},nodeOps);let renderer$1;function ensureRenderer(){return renderer$1||(renderer$1=createRenderer$1(rendererOptions))}const createApp=(...Ra)=>{const qa=ensureRenderer().createApp(...Ra),{mount:nd}=qa;return qa.mount=od=>{const ld=normalizeContainer(od);if(!ld)return;const ud=qa._component;!isFunction$4(ud)&&!ud.render&&!ud.template&&(ud.template=ld.innerHTML),ld.nodeType===1&&(ld.textContent="");const dd=nd(ld,!1,resolveRootNamespace(ld));return ld instanceof Element&&(ld.removeAttribute("v-cloak"),ld.setAttribute("data-v-app","")),dd},qa};function resolveRootNamespace(Ra){if(Ra instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&Ra instanceof MathMLElement)return"mathml"}function normalizeContainer(Ra){return isString$2(Ra)?document.querySelector(Ra):Ra}var isVue2=!1;let activePinia;const setActivePinia=Ra=>activePinia=Ra,piniaSymbol=Symbol();function isPlainObject$3(Ra){return Ra&&typeof Ra=="object"&&Object.prototype.toString.call(Ra)==="[object Object]"&&typeof Ra.toJSON!="function"}var MutationType;(function(Ra){Ra.direct="direct",Ra.patchObject="patch object",Ra.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const Ra=effectScope(!0),qa=Ra.run(()=>ref$1({}));let nd=[],od=[];const ld=markRaw({install(ud){setActivePinia(ld),ld._a=ud,ud.provide(piniaSymbol,ld),ud.config.globalProperties.$pinia=ld,od.forEach(dd=>nd.push(dd)),od=[]},use(ud){return!this._a&&!isVue2?od.push(ud):nd.push(ud),this},_p:nd,_a:null,_e:Ra,_s:new Map,state:qa});return ld}const noop$6=()=>{};function addSubscription(Ra,qa,nd,od=noop$6){Ra.push(qa);const ld=()=>{const ud=Ra.indexOf(qa);ud>-1&&(Ra.splice(ud,1),od())};return!nd&&getCurrentScope()&&onScopeDispose(ld),ld}function triggerSubscriptions(Ra,...qa){Ra.slice().forEach(nd=>{nd(...qa)})}const fallbackRunWithContext=Ra=>Ra(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(Ra,qa){Ra instanceof Map&&qa instanceof Map?qa.forEach((nd,od)=>Ra.set(od,nd)):Ra instanceof Set&&qa instanceof Set&&qa.forEach(Ra.add,Ra);for(const nd in qa){if(!qa.hasOwnProperty(nd))continue;const od=qa[nd],ld=Ra[nd];isPlainObject$3(ld)&&isPlainObject$3(od)&&Ra.hasOwnProperty(nd)&&!isRef(od)&&!isReactive(od)?Ra[nd]=mergeReactiveObjects(ld,od):Ra[nd]=od}return Ra}const skipHydrateSymbol=Symbol();function shouldHydrate(Ra){return!isPlainObject$3(Ra)||!Ra.hasOwnProperty(skipHydrateSymbol)}const{assign}=Object;function isComputed(Ra){return!!(isRef(Ra)&&Ra.effect)}function createOptionsStore(Ra,qa,nd,od){const{state:ld,actions:ud,getters:dd}=qa,pd=nd.state.value[Ra];let fd;function md(){pd||(nd.state.value[Ra]=ld?ld():{});const vd=toRefs(nd.state.value[Ra]);return assign(vd,ud,Object.keys(dd||{}).reduce((Ad,Nd)=>(Ad[Nd]=markRaw(computed(()=>{setActivePinia(nd);const Od=nd._s.get(Ra);return dd[Nd].call(Od,Od)})),Ad),{}))}return fd=createSetupStore(Ra,md,qa,nd,od,!0),fd}function createSetupStore(Ra,qa,nd={},od,ld,ud){let dd;const pd=assign({actions:{}},nd),fd={deep:!0};let md,vd,Ad=[],Nd=[],Od;const kd=od.state.value[Ra];!ud&&!kd&&(od.state.value[Ra]={}),ref$1({});let Ld;function Gd(yf){let Xd;md=vd=!1,typeof yf=="function"?(yf(od.state.value[Ra]),Xd={type:MutationType.patchFunction,storeId:Ra,events:Od}):(mergeReactiveObjects(od.state.value[Ra],yf),Xd={type:MutationType.patchObject,payload:yf,storeId:Ra,events:Od});const pf=Ld=Symbol();nextTick$1().then(()=>{Ld===pf&&(md=!0)}),vd=!0,triggerSubscriptions(Ad,Xd,od.state.value[Ra])}const Ud=ud?function(){const{state:Xd}=nd,pf=Xd?Xd():{};this.$patch(mf=>{assign(mf,pf)})}:noop$6;function Fd(){dd.stop(),Ad=[],Nd=[],od._s.delete(Ra)}const jd=(yf,Xd="")=>{if(ACTION_MARKER in yf)return yf[ACTION_NAME]=Xd,yf;const pf=function(){setActivePinia(od);const mf=Array.from(arguments),Tf=[],vf=[];function Af(If){Tf.push(If)}function Sf(If){vf.push(If)}triggerSubscriptions(Nd,{args:mf,name:pf[ACTION_NAME],store:zd,after:Af,onError:Sf});let Df;try{Df=yf.apply(this&&this.$id===Ra?this:zd,mf)}catch(If){throw triggerSubscriptions(vf,If),If}return Df instanceof Promise?Df.then(If=>(triggerSubscriptions(Tf,If),If)).catch(If=>(triggerSubscriptions(vf,If),Promise.reject(If))):(triggerSubscriptions(Tf,Df),Df)};return pf[ACTION_MARKER]=!0,pf[ACTION_NAME]=Xd,pf},qd={_p:od,$id:Ra,$onAction:addSubscription.bind(null,Nd),$patch:Gd,$reset:Ud,$subscribe(yf,Xd={}){const pf=addSubscription(Ad,yf,Xd.detached,()=>mf()),mf=dd.run(()=>watch(()=>od.state.value[Ra],Tf=>{(Xd.flush==="sync"?vd:md)&&yf({storeId:Ra,type:MutationType.direct,events:Od},Tf)},assign({},fd,Xd)));return pf},$dispose:Fd},zd=reactive(qd);od._s.set(Ra,zd);const Jd=(od._a&&od._a.runWithContext||fallbackRunWithContext)(()=>od._e.run(()=>(dd=effectScope()).run(()=>qa({action:jd}))));for(const yf in Jd){const Xd=Jd[yf];if(isRef(Xd)&&!isComputed(Xd)||isReactive(Xd))ud||(kd&&shouldHydrate(Xd)&&(isRef(Xd)?Xd.value=kd[yf]:mergeReactiveObjects(Xd,kd[yf])),od.state.value[Ra][yf]=Xd);else if(typeof Xd=="function"){const pf=jd(Xd,yf);Jd[yf]=pf,pd.actions[yf]=Xd}}return assign(zd,Jd),assign(toRaw(zd),Jd),Object.defineProperty(zd,"$state",{get:()=>od.state.value[Ra],set:yf=>{Gd(Xd=>{assign(Xd,yf)})}}),od._p.forEach(yf=>{assign(zd,dd.run(()=>yf({store:zd,app:od._a,pinia:od,options:pd})))}),kd&&ud&&nd.hydrate&&nd.hydrate(zd.$state,kd),md=!0,vd=!0,zd}/*! #__NO_SIDE_EFFECTS__ */function defineStore(Ra,qa,nd){let od,ld;const ud=typeof qa=="function";typeof Ra=="string"?(od=Ra,ld=ud?nd:qa):(ld=Ra,od=Ra.id);function dd(pd,fd){const md=hasInjectionContext();return pd=pd||(md?inject(piniaSymbol,null):null),pd&&setActivePinia(pd),pd=activePinia,pd._s.has(od)||(ud?createSetupStore(od,qa,ld,pd):createOptionsStore(od,ld,pd)),pd._s.get(od)}return dd.$id=od,dd}function storeToRefs(Ra){{const qa=toRaw(Ra),nd={};for(const od in qa){const ld=qa[od];(isRef(ld)||isReactive(ld))&&(nd[od]=toRef$1(Ra,od))}return nd}}const sides=["top","right","bottom","left"],min$1=Math.min,max$2=Math.max,round=Math.round,floor=Math.floor,createCoords=Ra=>({x:Ra,y:Ra}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(Ra,qa,nd){return max$2(Ra,min$1(qa,nd))}function evaluate$1(Ra,qa){return typeof Ra=="function"?Ra(qa):Ra}function getSide(Ra){return Ra.split("-")[0]}function getAlignment(Ra){return Ra.split("-")[1]}function getOppositeAxis(Ra){return Ra==="x"?"y":"x"}function getAxisLength(Ra){return Ra==="y"?"height":"width"}function getSideAxis(Ra){return["top","bottom"].includes(getSide(Ra))?"y":"x"}function getAlignmentAxis(Ra){return getOppositeAxis(getSideAxis(Ra))}function getAlignmentSides(Ra,qa,nd){nd===void 0&&(nd=!1);const od=getAlignment(Ra),ld=getAlignmentAxis(Ra),ud=getAxisLength(ld);let dd=ld==="x"?od===(nd?"end":"start")?"right":"left":od==="start"?"bottom":"top";return qa.reference[ud]>qa.floating[ud]&&(dd=getOppositePlacement(dd)),[dd,getOppositePlacement(dd)]}function getExpandedPlacements(Ra){const qa=getOppositePlacement(Ra);return[getOppositeAlignmentPlacement(Ra),qa,getOppositeAlignmentPlacement(qa)]}function getOppositeAlignmentPlacement(Ra){return Ra.replace(/start|end/g,qa=>oppositeAlignmentMap[qa])}function getSideList(Ra,qa,nd){const od=["left","right"],ld=["right","left"],ud=["top","bottom"],dd=["bottom","top"];switch(Ra){case"top":case"bottom":return nd?qa?ld:od:qa?od:ld;case"left":case"right":return qa?ud:dd;default:return[]}}function getOppositeAxisPlacements(Ra,qa,nd,od){const ld=getAlignment(Ra);let ud=getSideList(getSide(Ra),nd==="start",od);return ld&&(ud=ud.map(dd=>dd+"-"+ld),qa&&(ud=ud.concat(ud.map(getOppositeAlignmentPlacement)))),ud}function getOppositePlacement(Ra){return Ra.replace(/left|right|bottom|top/g,qa=>oppositeSideMap[qa])}function expandPaddingObject(Ra){return{top:0,right:0,bottom:0,left:0,...Ra}}function getPaddingObject(Ra){return typeof Ra!="number"?expandPaddingObject(Ra):{top:Ra,right:Ra,bottom:Ra,left:Ra}}function rectToClientRect(Ra){const{x:qa,y:nd,width:od,height:ld}=Ra;return{width:od,height:ld,top:nd,left:qa,right:qa+od,bottom:nd+ld,x:qa,y:nd}}function computeCoordsFromPlacement(Ra,qa,nd){let{reference:od,floating:ld}=Ra;const ud=getSideAxis(qa),dd=getAlignmentAxis(qa),pd=getAxisLength(dd),fd=getSide(qa),md=ud==="y",vd=od.x+od.width/2-ld.width/2,Ad=od.y+od.height/2-ld.height/2,Nd=od[pd]/2-ld[pd]/2;let Od;switch(fd){case"top":Od={x:vd,y:od.y-ld.height};break;case"bottom":Od={x:vd,y:od.y+od.height};break;case"right":Od={x:od.x+od.width,y:Ad};break;case"left":Od={x:od.x-ld.width,y:Ad};break;default:Od={x:od.x,y:od.y}}switch(getAlignment(qa)){case"start":Od[dd]-=Nd*(nd&&md?-1:1);break;case"end":Od[dd]+=Nd*(nd&&md?-1:1);break}return Od}const computePosition$1=async(Ra,qa,nd)=>{const{placement:od="bottom",strategy:ld="absolute",middleware:ud=[],platform:dd}=nd,pd=ud.filter(Boolean),fd=await(dd.isRTL==null?void 0:dd.isRTL(qa));let md=await dd.getElementRects({reference:Ra,floating:qa,strategy:ld}),{x:vd,y:Ad}=computeCoordsFromPlacement(md,od,fd),Nd=od,Od={},kd=0;for(let Ld=0;Ld({name:"arrow",options:Ra,async fn(qa){const{x:nd,y:od,placement:ld,rects:ud,platform:dd,elements:pd,middlewareData:fd}=qa,{element:md,padding:vd=0}=evaluate$1(Ra,qa)||{};if(md==null)return{};const Ad=getPaddingObject(vd),Nd={x:nd,y:od},Od=getAlignmentAxis(ld),kd=getAxisLength(Od),Ld=await dd.getDimensions(md),Gd=Od==="y",Ud=Gd?"top":"left",Fd=Gd?"bottom":"right",jd=Gd?"clientHeight":"clientWidth",qd=ud.reference[kd]+ud.reference[Od]-Nd[Od]-ud.floating[kd],zd=Nd[Od]-ud.reference[Od],Yd=await(dd.getOffsetParent==null?void 0:dd.getOffsetParent(md));let Jd=Yd?Yd[jd]:0;(!Jd||!await(dd.isElement==null?void 0:dd.isElement(Yd)))&&(Jd=pd.floating[jd]||ud.floating[kd]);const yf=qd/2-zd/2,Xd=Jd/2-Ld[kd]/2-1,pf=min$1(Ad[Ud],Xd),mf=min$1(Ad[Fd],Xd),Tf=pf,vf=Jd-Ld[kd]-mf,Af=Jd/2-Ld[kd]/2+yf,Sf=clamp(Tf,Af,vf),Df=!fd.arrow&&getAlignment(ld)!=null&&Af!==Sf&&ud.reference[kd]/2-(AfAf<=0)){var mf,Tf;const Af=(((mf=ud.flip)==null?void 0:mf.index)||0)+1,Sf=Jd[Af];if(Sf)return{data:{index:Af,overflows:pf},reset:{placement:Sf}};let Df=(Tf=pf.filter(If=>If.overflows[0]<=0).sort((If,Gf)=>If.overflows[1]-Gf.overflows[1])[0])==null?void 0:Tf.placement;if(!Df)switch(Od){case"bestFit":{var vf;const If=(vf=pf.filter(Gf=>{if(Yd){const Jf=getSideAxis(Gf.placement);return Jf===Fd||Jf==="y"}return!0}).map(Gf=>[Gf.placement,Gf.overflows.filter(Jf=>Jf>0).reduce((Jf,ih)=>Jf+ih,0)]).sort((Gf,Jf)=>Gf[1]-Jf[1])[0])==null?void 0:vf[0];If&&(Df=If);break}case"initialPlacement":Df=pd;break}if(ld!==Df)return{reset:{placement:Df}}}return{}}}};function getSideOffsets(Ra,qa){return{top:Ra.top-qa.height,right:Ra.right-qa.width,bottom:Ra.bottom-qa.height,left:Ra.left-qa.width}}function isAnySideFullyClipped(Ra){return sides.some(qa=>Ra[qa]>=0)}const hide$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"hide",options:Ra,async fn(qa){const{rects:nd}=qa,{strategy:od="referenceHidden",...ld}=evaluate$1(Ra,qa);switch(od){case"referenceHidden":{const ud=await detectOverflow(qa,{...ld,elementContext:"reference"}),dd=getSideOffsets(ud,nd.reference);return{data:{referenceHiddenOffsets:dd,referenceHidden:isAnySideFullyClipped(dd)}}}case"escaped":{const ud=await detectOverflow(qa,{...ld,altBoundary:!0}),dd=getSideOffsets(ud,nd.floating);return{data:{escapedOffsets:dd,escaped:isAnySideFullyClipped(dd)}}}default:return{}}}}};async function convertValueToCoords(Ra,qa){const{placement:nd,platform:od,elements:ld}=Ra,ud=await(od.isRTL==null?void 0:od.isRTL(ld.floating)),dd=getSide(nd),pd=getAlignment(nd),fd=getSideAxis(nd)==="y",md=["left","top"].includes(dd)?-1:1,vd=ud&&fd?-1:1,Ad=evaluate$1(qa,Ra);let{mainAxis:Nd,crossAxis:Od,alignmentAxis:kd}=typeof Ad=="number"?{mainAxis:Ad,crossAxis:0,alignmentAxis:null}:{mainAxis:Ad.mainAxis||0,crossAxis:Ad.crossAxis||0,alignmentAxis:Ad.alignmentAxis};return pd&&typeof kd=="number"&&(Od=pd==="end"?kd*-1:kd),fd?{x:Od*vd,y:Nd*md}:{x:Nd*md,y:Od*vd}}const offset$1=function(Ra){return Ra===void 0&&(Ra=0),{name:"offset",options:Ra,async fn(qa){var nd,od;const{x:ld,y:ud,placement:dd,middlewareData:pd}=qa,fd=await convertValueToCoords(qa,Ra);return dd===((nd=pd.offset)==null?void 0:nd.placement)&&(od=pd.arrow)!=null&&od.alignmentOffset?{}:{x:ld+fd.x,y:ud+fd.y,data:{...fd,placement:dd}}}}},shift$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"shift",options:Ra,async fn(qa){const{x:nd,y:od,placement:ld}=qa,{mainAxis:ud=!0,crossAxis:dd=!1,limiter:pd={fn:Gd=>{let{x:Ud,y:Fd}=Gd;return{x:Ud,y:Fd}}},...fd}=evaluate$1(Ra,qa),md={x:nd,y:od},vd=await detectOverflow(qa,fd),Ad=getSideAxis(getSide(ld)),Nd=getOppositeAxis(Ad);let Od=md[Nd],kd=md[Ad];if(ud){const Gd=Nd==="y"?"top":"left",Ud=Nd==="y"?"bottom":"right",Fd=Od+vd[Gd],jd=Od-vd[Ud];Od=clamp(Fd,Od,jd)}if(dd){const Gd=Ad==="y"?"top":"left",Ud=Ad==="y"?"bottom":"right",Fd=kd+vd[Gd],jd=kd-vd[Ud];kd=clamp(Fd,kd,jd)}const Ld=pd.fn({...qa,[Nd]:Od,[Ad]:kd});return{...Ld,data:{x:Ld.x-nd,y:Ld.y-od,enabled:{[Nd]:ud,[Ad]:dd}}}}}},limitShift$1=function(Ra){return Ra===void 0&&(Ra={}),{options:Ra,fn(qa){const{x:nd,y:od,placement:ld,rects:ud,middlewareData:dd}=qa,{offset:pd=0,mainAxis:fd=!0,crossAxis:md=!0}=evaluate$1(Ra,qa),vd={x:nd,y:od},Ad=getSideAxis(ld),Nd=getOppositeAxis(Ad);let Od=vd[Nd],kd=vd[Ad];const Ld=evaluate$1(pd,qa),Gd=typeof Ld=="number"?{mainAxis:Ld,crossAxis:0}:{mainAxis:0,crossAxis:0,...Ld};if(fd){const jd=Nd==="y"?"height":"width",qd=ud.reference[Nd]-ud.floating[jd]+Gd.mainAxis,zd=ud.reference[Nd]+ud.reference[jd]-Gd.mainAxis;Odzd&&(Od=zd)}if(md){var Ud,Fd;const jd=Nd==="y"?"width":"height",qd=["top","left"].includes(getSide(ld)),zd=ud.reference[Ad]-ud.floating[jd]+(qd&&((Ud=dd.offset)==null?void 0:Ud[Ad])||0)+(qd?0:Gd.crossAxis),Yd=ud.reference[Ad]+ud.reference[jd]+(qd?0:((Fd=dd.offset)==null?void 0:Fd[Ad])||0)-(qd?Gd.crossAxis:0);kdYd&&(kd=Yd)}return{[Nd]:Od,[Ad]:kd}}}},size$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"size",options:Ra,async fn(qa){var nd,od;const{placement:ld,rects:ud,platform:dd,elements:pd}=qa,{apply:fd=()=>{},...md}=evaluate$1(Ra,qa),vd=await detectOverflow(qa,md),Ad=getSide(ld),Nd=getAlignment(ld),Od=getSideAxis(ld)==="y",{width:kd,height:Ld}=ud.floating;let Gd,Ud;Ad==="top"||Ad==="bottom"?(Gd=Ad,Ud=Nd===(await(dd.isRTL==null?void 0:dd.isRTL(pd.floating))?"start":"end")?"left":"right"):(Ud=Ad,Gd=Nd==="end"?"top":"bottom");const Fd=Ld-vd.top-vd.bottom,jd=kd-vd.left-vd.right,qd=min$1(Ld-vd[Gd],Fd),zd=min$1(kd-vd[Ud],jd),Yd=!qa.middlewareData.shift;let Jd=qd,yf=zd;if((nd=qa.middlewareData.shift)!=null&&nd.enabled.x&&(yf=jd),(od=qa.middlewareData.shift)!=null&&od.enabled.y&&(Jd=Fd),Yd&&!Nd){const pf=max$2(vd.left,0),mf=max$2(vd.right,0),Tf=max$2(vd.top,0),vf=max$2(vd.bottom,0);Od?yf=kd-2*(pf!==0||mf!==0?pf+mf:max$2(vd.left,vd.right)):Jd=Ld-2*(Tf!==0||vf!==0?Tf+vf:max$2(vd.top,vd.bottom))}await fd({...qa,availableWidth:yf,availableHeight:Jd});const Xd=await dd.getDimensions(pd.floating);return kd!==Xd.width||Ld!==Xd.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName(Ra){return isNode$2(Ra)?(Ra.nodeName||"").toLowerCase():"#document"}function getWindow(Ra){var qa;return(Ra==null||(qa=Ra.ownerDocument)==null?void 0:qa.defaultView)||window}function getDocumentElement(Ra){var qa;return(qa=(isNode$2(Ra)?Ra.ownerDocument:Ra.document)||window.document)==null?void 0:qa.documentElement}function isNode$2(Ra){return hasWindow()?Ra instanceof Node||Ra instanceof getWindow(Ra).Node:!1}function isElement$2(Ra){return hasWindow()?Ra instanceof Element||Ra instanceof getWindow(Ra).Element:!1}function isHTMLElement(Ra){return hasWindow()?Ra instanceof HTMLElement||Ra instanceof getWindow(Ra).HTMLElement:!1}function isShadowRoot(Ra){return!hasWindow()||typeof ShadowRoot>"u"?!1:Ra instanceof ShadowRoot||Ra instanceof getWindow(Ra).ShadowRoot}function isOverflowElement(Ra){const{overflow:qa,overflowX:nd,overflowY:od,display:ld}=getComputedStyle$1(Ra);return/auto|scroll|overlay|hidden|clip/.test(qa+od+nd)&&!["inline","contents"].includes(ld)}function isTableElement(Ra){return["table","td","th"].includes(getNodeName(Ra))}function isTopLayer(Ra){return[":popover-open",":modal"].some(qa=>{try{return Ra.matches(qa)}catch{return!1}})}function isContainingBlock(Ra){const qa=isWebKit(),nd=isElement$2(Ra)?getComputedStyle$1(Ra):Ra;return nd.transform!=="none"||nd.perspective!=="none"||(nd.containerType?nd.containerType!=="normal":!1)||!qa&&(nd.backdropFilter?nd.backdropFilter!=="none":!1)||!qa&&(nd.filter?nd.filter!=="none":!1)||["transform","perspective","filter"].some(od=>(nd.willChange||"").includes(od))||["paint","layout","strict","content"].some(od=>(nd.contain||"").includes(od))}function getContainingBlock(Ra){let qa=getParentNode(Ra);for(;isHTMLElement(qa)&&!isLastTraversableNode(qa);){if(isContainingBlock(qa))return qa;if(isTopLayer(qa))return null;qa=getParentNode(qa)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(Ra){return["html","body","#document"].includes(getNodeName(Ra))}function getComputedStyle$1(Ra){return getWindow(Ra).getComputedStyle(Ra)}function getNodeScroll(Ra){return isElement$2(Ra)?{scrollLeft:Ra.scrollLeft,scrollTop:Ra.scrollTop}:{scrollLeft:Ra.scrollX,scrollTop:Ra.scrollY}}function getParentNode(Ra){if(getNodeName(Ra)==="html")return Ra;const qa=Ra.assignedSlot||Ra.parentNode||isShadowRoot(Ra)&&Ra.host||getDocumentElement(Ra);return isShadowRoot(qa)?qa.host:qa}function getNearestOverflowAncestor(Ra){const qa=getParentNode(Ra);return isLastTraversableNode(qa)?Ra.ownerDocument?Ra.ownerDocument.body:Ra.body:isHTMLElement(qa)&&isOverflowElement(qa)?qa:getNearestOverflowAncestor(qa)}function getOverflowAncestors(Ra,qa,nd){var od;qa===void 0&&(qa=[]),nd===void 0&&(nd=!0);const ld=getNearestOverflowAncestor(Ra),ud=ld===((od=Ra.ownerDocument)==null?void 0:od.body),dd=getWindow(ld);if(ud){const pd=getFrameElement(dd);return qa.concat(dd,dd.visualViewport||[],isOverflowElement(ld)?ld:[],pd&&nd?getOverflowAncestors(pd):[])}return qa.concat(ld,getOverflowAncestors(ld,[],nd))}function getFrameElement(Ra){return Ra.parent&&Object.getPrototypeOf(Ra.parent)?Ra.frameElement:null}function getCssDimensions(Ra){const qa=getComputedStyle$1(Ra);let nd=parseFloat(qa.width)||0,od=parseFloat(qa.height)||0;const ld=isHTMLElement(Ra),ud=ld?Ra.offsetWidth:nd,dd=ld?Ra.offsetHeight:od,pd=round(nd)!==ud||round(od)!==dd;return pd&&(nd=ud,od=dd),{width:nd,height:od,$:pd}}function unwrapElement$1(Ra){return isElement$2(Ra)?Ra:Ra.contextElement}function getScale(Ra){const qa=unwrapElement$1(Ra);if(!isHTMLElement(qa))return createCoords(1);const nd=qa.getBoundingClientRect(),{width:od,height:ld,$:ud}=getCssDimensions(qa);let dd=(ud?round(nd.width):nd.width)/od,pd=(ud?round(nd.height):nd.height)/ld;return(!dd||!Number.isFinite(dd))&&(dd=1),(!pd||!Number.isFinite(pd))&&(pd=1),{x:dd,y:pd}}const noOffsets=createCoords(0);function getVisualOffsets(Ra){const qa=getWindow(Ra);return!isWebKit()||!qa.visualViewport?noOffsets:{x:qa.visualViewport.offsetLeft,y:qa.visualViewport.offsetTop}}function shouldAddVisualOffsets(Ra,qa,nd){return qa===void 0&&(qa=!1),!nd||qa&&nd!==getWindow(Ra)?!1:qa}function getBoundingClientRect(Ra,qa,nd,od){qa===void 0&&(qa=!1),nd===void 0&&(nd=!1);const ld=Ra.getBoundingClientRect(),ud=unwrapElement$1(Ra);let dd=createCoords(1);qa&&(od?isElement$2(od)&&(dd=getScale(od)):dd=getScale(Ra));const pd=shouldAddVisualOffsets(ud,nd,od)?getVisualOffsets(ud):createCoords(0);let fd=(ld.left+pd.x)/dd.x,md=(ld.top+pd.y)/dd.y,vd=ld.width/dd.x,Ad=ld.height/dd.y;if(ud){const Nd=getWindow(ud),Od=od&&isElement$2(od)?getWindow(od):od;let kd=Nd,Ld=getFrameElement(kd);for(;Ld&&od&&Od!==kd;){const Gd=getScale(Ld),Ud=Ld.getBoundingClientRect(),Fd=getComputedStyle$1(Ld),jd=Ud.left+(Ld.clientLeft+parseFloat(Fd.paddingLeft))*Gd.x,qd=Ud.top+(Ld.clientTop+parseFloat(Fd.paddingTop))*Gd.y;fd*=Gd.x,md*=Gd.y,vd*=Gd.x,Ad*=Gd.y,fd+=jd,md+=qd,kd=getWindow(Ld),Ld=getFrameElement(kd)}}return rectToClientRect({width:vd,height:Ad,x:fd,y:md})}function getWindowScrollBarX(Ra,qa){const nd=getNodeScroll(Ra).scrollLeft;return qa?qa.left+nd:getBoundingClientRect(getDocumentElement(Ra)).left+nd}function getHTMLOffset(Ra,qa,nd){nd===void 0&&(nd=!1);const od=Ra.getBoundingClientRect(),ld=od.left+qa.scrollLeft-(nd?0:getWindowScrollBarX(Ra,od)),ud=od.top+qa.scrollTop;return{x:ld,y:ud}}function convertOffsetParentRelativeRectToViewportRelativeRect(Ra){let{elements:qa,rect:nd,offsetParent:od,strategy:ld}=Ra;const ud=ld==="fixed",dd=getDocumentElement(od),pd=qa?isTopLayer(qa.floating):!1;if(od===dd||pd&&ud)return nd;let fd={scrollLeft:0,scrollTop:0},md=createCoords(1);const vd=createCoords(0),Ad=isHTMLElement(od);if((Ad||!Ad&&!ud)&&((getNodeName(od)!=="body"||isOverflowElement(dd))&&(fd=getNodeScroll(od)),isHTMLElement(od))){const Od=getBoundingClientRect(od);md=getScale(od),vd.x=Od.x+od.clientLeft,vd.y=Od.y+od.clientTop}const Nd=dd&&!Ad&&!ud?getHTMLOffset(dd,fd,!0):createCoords(0);return{width:nd.width*md.x,height:nd.height*md.y,x:nd.x*md.x-fd.scrollLeft*md.x+vd.x+Nd.x,y:nd.y*md.y-fd.scrollTop*md.y+vd.y+Nd.y}}function getClientRects(Ra){return Array.from(Ra.getClientRects())}function getDocumentRect(Ra){const qa=getDocumentElement(Ra),nd=getNodeScroll(Ra),od=Ra.ownerDocument.body,ld=max$2(qa.scrollWidth,qa.clientWidth,od.scrollWidth,od.clientWidth),ud=max$2(qa.scrollHeight,qa.clientHeight,od.scrollHeight,od.clientHeight);let dd=-nd.scrollLeft+getWindowScrollBarX(Ra);const pd=-nd.scrollTop;return getComputedStyle$1(od).direction==="rtl"&&(dd+=max$2(qa.clientWidth,od.clientWidth)-ld),{width:ld,height:ud,x:dd,y:pd}}function getViewportRect(Ra,qa){const nd=getWindow(Ra),od=getDocumentElement(Ra),ld=nd.visualViewport;let ud=od.clientWidth,dd=od.clientHeight,pd=0,fd=0;if(ld){ud=ld.width,dd=ld.height;const md=isWebKit();(!md||md&&qa==="fixed")&&(pd=ld.offsetLeft,fd=ld.offsetTop)}return{width:ud,height:dd,x:pd,y:fd}}function getInnerBoundingClientRect(Ra,qa){const nd=getBoundingClientRect(Ra,!0,qa==="fixed"),od=nd.top+Ra.clientTop,ld=nd.left+Ra.clientLeft,ud=isHTMLElement(Ra)?getScale(Ra):createCoords(1),dd=Ra.clientWidth*ud.x,pd=Ra.clientHeight*ud.y,fd=ld*ud.x,md=od*ud.y;return{width:dd,height:pd,x:fd,y:md}}function getClientRectFromClippingAncestor(Ra,qa,nd){let od;if(qa==="viewport")od=getViewportRect(Ra,nd);else if(qa==="document")od=getDocumentRect(getDocumentElement(Ra));else if(isElement$2(qa))od=getInnerBoundingClientRect(qa,nd);else{const ld=getVisualOffsets(Ra);od={x:qa.x-ld.x,y:qa.y-ld.y,width:qa.width,height:qa.height}}return rectToClientRect(od)}function hasFixedPositionAncestor(Ra,qa){const nd=getParentNode(Ra);return nd===qa||!isElement$2(nd)||isLastTraversableNode(nd)?!1:getComputedStyle$1(nd).position==="fixed"||hasFixedPositionAncestor(nd,qa)}function getClippingElementAncestors(Ra,qa){const nd=qa.get(Ra);if(nd)return nd;let od=getOverflowAncestors(Ra,[],!1).filter(pd=>isElement$2(pd)&&getNodeName(pd)!=="body"),ld=null;const ud=getComputedStyle$1(Ra).position==="fixed";let dd=ud?getParentNode(Ra):Ra;for(;isElement$2(dd)&&!isLastTraversableNode(dd);){const pd=getComputedStyle$1(dd),fd=isContainingBlock(dd);!fd&&pd.position==="fixed"&&(ld=null),(ud?!fd&&!ld:!fd&&pd.position==="static"&&!!ld&&["absolute","fixed"].includes(ld.position)||isOverflowElement(dd)&&!fd&&hasFixedPositionAncestor(Ra,dd))?od=od.filter(vd=>vd!==dd):ld=pd,dd=getParentNode(dd)}return qa.set(Ra,od),od}function getClippingRect(Ra){let{element:qa,boundary:nd,rootBoundary:od,strategy:ld}=Ra;const dd=[...nd==="clippingAncestors"?isTopLayer(qa)?[]:getClippingElementAncestors(qa,this._c):[].concat(nd),od],pd=dd[0],fd=dd.reduce((md,vd)=>{const Ad=getClientRectFromClippingAncestor(qa,vd,ld);return md.top=max$2(Ad.top,md.top),md.right=min$1(Ad.right,md.right),md.bottom=min$1(Ad.bottom,md.bottom),md.left=max$2(Ad.left,md.left),md},getClientRectFromClippingAncestor(qa,pd,ld));return{width:fd.right-fd.left,height:fd.bottom-fd.top,x:fd.left,y:fd.top}}function getDimensions(Ra){const{width:qa,height:nd}=getCssDimensions(Ra);return{width:qa,height:nd}}function getRectRelativeToOffsetParent(Ra,qa,nd){const od=isHTMLElement(qa),ld=getDocumentElement(qa),ud=nd==="fixed",dd=getBoundingClientRect(Ra,!0,ud,qa);let pd={scrollLeft:0,scrollTop:0};const fd=createCoords(0);if(od||!od&&!ud)if((getNodeName(qa)!=="body"||isOverflowElement(ld))&&(pd=getNodeScroll(qa)),od){const Nd=getBoundingClientRect(qa,!0,ud,qa);fd.x=Nd.x+qa.clientLeft,fd.y=Nd.y+qa.clientTop}else ld&&(fd.x=getWindowScrollBarX(ld));const md=ld&&!od&&!ud?getHTMLOffset(ld,pd):createCoords(0),vd=dd.left+pd.scrollLeft-fd.x-md.x,Ad=dd.top+pd.scrollTop-fd.y-md.y;return{x:vd,y:Ad,width:dd.width,height:dd.height}}function isStaticPositioned(Ra){return getComputedStyle$1(Ra).position==="static"}function getTrueOffsetParent(Ra,qa){if(!isHTMLElement(Ra)||getComputedStyle$1(Ra).position==="fixed")return null;if(qa)return qa(Ra);let nd=Ra.offsetParent;return getDocumentElement(Ra)===nd&&(nd=nd.ownerDocument.body),nd}function getOffsetParent(Ra,qa){const nd=getWindow(Ra);if(isTopLayer(Ra))return nd;if(!isHTMLElement(Ra)){let ld=getParentNode(Ra);for(;ld&&!isLastTraversableNode(ld);){if(isElement$2(ld)&&!isStaticPositioned(ld))return ld;ld=getParentNode(ld)}return nd}let od=getTrueOffsetParent(Ra,qa);for(;od&&isTableElement(od)&&isStaticPositioned(od);)od=getTrueOffsetParent(od,qa);return od&&isLastTraversableNode(od)&&isStaticPositioned(od)&&!isContainingBlock(od)?nd:od||getContainingBlock(Ra)||nd}const getElementRects=async function(Ra){const qa=this.getOffsetParent||getOffsetParent,nd=this.getDimensions,od=await nd(Ra.floating);return{reference:getRectRelativeToOffsetParent(Ra.reference,await qa(Ra.floating),Ra.strategy),floating:{x:0,y:0,width:od.width,height:od.height}}};function isRTL(Ra){return getComputedStyle$1(Ra).direction==="rtl"}const platform$3={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$2,isRTL};function observeMove(Ra,qa){let nd=null,od;const ld=getDocumentElement(Ra);function ud(){var pd;clearTimeout(od),(pd=nd)==null||pd.disconnect(),nd=null}function dd(pd,fd){pd===void 0&&(pd=!1),fd===void 0&&(fd=1),ud();const{left:md,top:vd,width:Ad,height:Nd}=Ra.getBoundingClientRect();if(pd||qa(),!Ad||!Nd)return;const Od=floor(vd),kd=floor(ld.clientWidth-(md+Ad)),Ld=floor(ld.clientHeight-(vd+Nd)),Gd=floor(md),Fd={rootMargin:-Od+"px "+-kd+"px "+-Ld+"px "+-Gd+"px",threshold:max$2(0,min$1(1,fd))||1};let jd=!0;function qd(zd){const Yd=zd[0].intersectionRatio;if(Yd!==fd){if(!jd)return dd();Yd?dd(!1,Yd):od=setTimeout(()=>{dd(!1,1e-7)},1e3)}jd=!1}try{nd=new IntersectionObserver(qd,{...Fd,root:ld.ownerDocument})}catch{nd=new IntersectionObserver(qd,Fd)}nd.observe(Ra)}return dd(!0),ud}function autoUpdate(Ra,qa,nd,od){od===void 0&&(od={});const{ancestorScroll:ld=!0,ancestorResize:ud=!0,elementResize:dd=typeof ResizeObserver=="function",layoutShift:pd=typeof IntersectionObserver=="function",animationFrame:fd=!1}=od,md=unwrapElement$1(Ra),vd=ld||ud?[...md?getOverflowAncestors(md):[],...getOverflowAncestors(qa)]:[];vd.forEach(Ud=>{ld&&Ud.addEventListener("scroll",nd,{passive:!0}),ud&&Ud.addEventListener("resize",nd)});const Ad=md&&pd?observeMove(md,nd):null;let Nd=-1,Od=null;dd&&(Od=new ResizeObserver(Ud=>{let[Fd]=Ud;Fd&&Fd.target===md&&Od&&(Od.unobserve(qa),cancelAnimationFrame(Nd),Nd=requestAnimationFrame(()=>{var jd;(jd=Od)==null||jd.observe(qa)})),nd()}),md&&!fd&&Od.observe(md),Od.observe(qa));let kd,Ld=fd?getBoundingClientRect(Ra):null;fd&&Gd();function Gd(){const Ud=getBoundingClientRect(Ra);Ld&&(Ud.x!==Ld.x||Ud.y!==Ld.y||Ud.width!==Ld.width||Ud.height!==Ld.height)&&nd(),Ld=Ud,kd=requestAnimationFrame(Gd)}return nd(),()=>{var Ud;vd.forEach(Fd=>{ld&&Fd.removeEventListener("scroll",nd),ud&&Fd.removeEventListener("resize",nd)}),Ad==null||Ad(),(Ud=Od)==null||Ud.disconnect(),Od=null,fd&&cancelAnimationFrame(kd)}}const offset=offset$1,shift=shift$1,flip=flip$1,size=size$1,hide=hide$1,arrow$1=arrow$2,limitShift=limitShift$1,computePosition=(Ra,qa,nd)=>{const od=new Map,ld={platform:platform$3,...nd},ud={...ld.platform,_c:od};return computePosition$1(Ra,qa,{...ld,platform:ud})};function isComponentPublicInstance(Ra){return Ra!=null&&typeof Ra=="object"&&"$el"in Ra}function unwrapElement(Ra){if(isComponentPublicInstance(Ra)){const qa=Ra.$el;return isNode$2(qa)&&getNodeName(qa)==="#comment"?null:qa}return Ra}function toValue$2(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function arrow(Ra){return{name:"arrow",options:Ra,fn(qa){const nd=unwrapElement(toValue$2(Ra.element));return nd==null?{}:arrow$1({element:nd,padding:Ra.padding}).fn(qa)}}}function getDPR(Ra){return typeof window>"u"?1:(Ra.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(Ra,qa){const nd=getDPR(Ra);return Math.round(qa*nd)/nd}function useFloating(Ra,qa,nd){nd===void 0&&(nd={});const od=nd.whileElementsMounted,ld=computed(()=>{var Jd;return(Jd=toValue$2(nd.open))!=null?Jd:!0}),ud=computed(()=>toValue$2(nd.middleware)),dd=computed(()=>{var Jd;return(Jd=toValue$2(nd.placement))!=null?Jd:"bottom"}),pd=computed(()=>{var Jd;return(Jd=toValue$2(nd.strategy))!=null?Jd:"absolute"}),fd=computed(()=>{var Jd;return(Jd=toValue$2(nd.transform))!=null?Jd:!0}),md=computed(()=>unwrapElement(Ra.value)),vd=computed(()=>unwrapElement(qa.value)),Ad=ref$1(0),Nd=ref$1(0),Od=ref$1(pd.value),kd=ref$1(dd.value),Ld=shallowRef({}),Gd=ref$1(!1),Ud=computed(()=>{const Jd={position:Od.value,left:"0",top:"0"};if(!vd.value)return Jd;const yf=roundByDPR(vd.value,Ad.value),Xd=roundByDPR(vd.value,Nd.value);return fd.value?{...Jd,transform:"translate("+yf+"px, "+Xd+"px)",...getDPR(vd.value)>=1.5&&{willChange:"transform"}}:{position:Od.value,left:yf+"px",top:Xd+"px"}});let Fd;function jd(){if(md.value==null||vd.value==null)return;const Jd=ld.value;computePosition(md.value,vd.value,{middleware:ud.value,placement:dd.value,strategy:pd.value}).then(yf=>{Ad.value=yf.x,Nd.value=yf.y,Od.value=yf.strategy,kd.value=yf.placement,Ld.value=yf.middlewareData,Gd.value=Jd!==!1})}function qd(){typeof Fd=="function"&&(Fd(),Fd=void 0)}function zd(){if(qd(),od===void 0){jd();return}if(md.value!=null&&vd.value!=null){Fd=od(md.value,vd.value,jd);return}}function Yd(){ld.value||(Gd.value=!1)}return watch([ud,dd,pd,ld],jd,{flush:"sync"}),watch([md,vd],zd,{flush:"sync"}),watch(ld,Yd,{flush:"sync"}),getCurrentScope()&&onScopeDispose(qd),{x:shallowReadonly(Ad),y:shallowReadonly(Nd),strategy:shallowReadonly(Od),placement:shallowReadonly(kd),middlewareData:shallowReadonly(Ld),isPositioned:shallowReadonly(Gd),floatingStyles:Ud,update:jd}}let $488c6ddbf4ef74c2$var$formatterCache=new Map,$488c6ddbf4ef74c2$var$supportsSignDisplay=!1;try{$488c6ddbf4ef74c2$var$supportsSignDisplay=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let $488c6ddbf4ef74c2$var$supportsUnit=!1;try{$488c6ddbf4ef74c2$var$supportsUnit=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $488c6ddbf4ef74c2$var$UNITS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5{format(qa){let nd="";if(!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null?nd=$488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter,this.options.signDisplay,qa):nd=this.numberFormatter.format(qa),this.options.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var od;let{unit:ld,unitDisplay:ud="short",locale:dd}=this.resolvedOptions();if(!ld)return nd;let pd=(od=$488c6ddbf4ef74c2$var$UNITS[ld])===null||od===void 0?void 0:od[ud];nd+=pd[dd]||pd.default}return nd}formatToParts(qa){return this.numberFormatter.formatToParts(qa)}formatRange(qa,nd){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(qa,nd);if(nd= start date");return`${this.format(qa)} – ${this.format(nd)}`}formatRangeToParts(qa,nd){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(qa,nd);if(nd= start date");let od=this.numberFormatter.formatToParts(qa),ld=this.numberFormatter.formatToParts(nd);return[...od.map(ud=>({...ud,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...ld.map(ud=>({...ud,source:"endRange"}))]}resolvedOptions(){let qa=this.numberFormatter.resolvedOptions();return!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null&&(qa={...qa,signDisplay:this.options.signDisplay}),!$488c6ddbf4ef74c2$var$supportsUnit&&this.options.style==="unit"&&(qa={...qa,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),qa}constructor(qa,nd={}){this.numberFormatter=$488c6ddbf4ef74c2$var$getCachedNumberFormatter(qa,nd),this.options=nd}}function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(Ra,qa={}){let{numberingSystem:nd}=qa;if(nd&&Ra.includes("-nu-")&&(Ra.includes("-u-")||(Ra+="-u-"),Ra+=`-nu-${nd}`),qa.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var od;let{unit:dd,unitDisplay:pd="short"}=qa;if(!dd)throw new Error('unit option must be provided with style: "unit"');if(!(!((od=$488c6ddbf4ef74c2$var$UNITS[dd])===null||od===void 0)&&od[pd]))throw new Error(`Unsupported unit ${dd} with unitDisplay = ${pd}`);qa={...qa,style:"decimal"}}let ld=Ra+(qa?Object.entries(qa).sort((dd,pd)=>dd[0]0||Object.is(nd,0):qa==="exceptZero"&&(Object.is(nd,-0)||Object.is(nd,0)?nd=Math.abs(nd):od=nd>0),od){let ld=Ra.format(-nd),ud=Ra.format(nd),dd=ld.replace(ud,"").replace(/\u200e|\u061C/,"");return[...dd].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),ld.replace(ud,"!!!").replace(dd,"+").replace("!!!",ud)}else return Ra.format(nd)}}const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX=new RegExp("^.*\\(.*\\).*$"),$6c7bd7858deea686$var$NUMBERING_SYSTEMS=["latn","arab","hanidec","deva","beng"];class $6c7bd7858deea686$export$cd11ab140839f11d{parse(qa){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,qa).parse(qa)}isValidPartialNumber(qa,nd,od){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,qa).isValidPartialNumber(qa,nd,od)}getNumberingSystem(qa){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,qa).options.numberingSystem}constructor(qa,nd={}){this.locale=qa,this.options=nd}}const $6c7bd7858deea686$var$numberParserCache=new Map;function $6c7bd7858deea686$var$getNumberParserImpl(Ra,qa,nd){let od=$6c7bd7858deea686$var$getCachedNumberParser(Ra,qa);if(!Ra.includes("-nu-")&&!od.isValidPartialNumber(nd)){for(let ld of $6c7bd7858deea686$var$NUMBERING_SYSTEMS)if(ld!==od.options.numberingSystem){let ud=$6c7bd7858deea686$var$getCachedNumberParser(Ra+(Ra.includes("-u-")?"-nu-":"-u-nu-")+ld,qa);if(ud.isValidPartialNumber(nd))return ud}}return od}function $6c7bd7858deea686$var$getCachedNumberParser(Ra,qa){let nd=Ra+(qa?Object.entries(qa).sort((ld,ud)=>ld[0]-1&&(nd=`-${nd}`)}let od=nd?+nd:NaN;if(isNaN(od))return NaN;if(this.options.style==="percent"){var ld,ud;let dd={...this.options,style:"decimal",minimumFractionDigits:Math.min(((ld=this.options.minimumFractionDigits)!==null&&ld!==void 0?ld:0)+2,20),maximumFractionDigits:Math.min(((ud=this.options.maximumFractionDigits)!==null&&ud!==void 0?ud:0)+2,20)};return new $6c7bd7858deea686$export$cd11ab140839f11d(this.locale,dd).parse(new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this.locale,dd).format(od))}return this.options.currencySign==="accounting"&&$6c7bd7858deea686$var$CURRENCY_SIGN_REGEX.test(qa)&&(od=-1*od),od}sanitize(qa){return qa=qa.replace(this.symbols.literals,""),this.symbols.minusSign&&(qa=qa.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(qa=qa.replace(",",this.symbols.decimal),qa=qa.replace("،",this.symbols.decimal)),this.symbols.group&&(qa=$6c7bd7858deea686$var$replaceAll(qa,".",this.symbols.group))),this.options.locale==="fr-FR"&&(qa=$6c7bd7858deea686$var$replaceAll(qa,"."," ")),qa}isValidPartialNumber(qa,nd=-1/0,od=1/0){return qa=this.sanitize(qa),this.symbols.minusSign&&qa.startsWith(this.symbols.minusSign)&&nd<0?qa=qa.slice(this.symbols.minusSign.length):this.symbols.plusSign&&qa.startsWith(this.symbols.plusSign)&&od>0&&(qa=qa.slice(this.symbols.plusSign.length)),this.symbols.group&&qa.startsWith(this.symbols.group)||this.symbols.decimal&&qa.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(qa=$6c7bd7858deea686$var$replaceAll(qa,this.symbols.group,"")),qa=qa.replace(this.symbols.numeral,""),this.symbols.decimal&&(qa=qa.replace(this.symbols.decimal,"")),qa.length===0)}constructor(qa,nd={}){this.locale=qa,this.formatter=new Intl.NumberFormat(qa,nd),this.options=this.formatter.resolvedOptions(),this.symbols=$6c7bd7858deea686$var$getSymbols(qa,this.formatter,this.options,nd);var od,ld;this.options.style==="percent"&&(((od=this.options.minimumFractionDigits)!==null&&od!==void 0?od:0)>18||((ld=this.options.maximumFractionDigits)!==null&&ld!==void 0?ld:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const $6c7bd7858deea686$var$nonLiteralParts=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),$6c7bd7858deea686$var$pluralNumbers=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $6c7bd7858deea686$var$getSymbols(Ra,qa,nd,od){var ld,ud,dd,pd;let fd=new Intl.NumberFormat(Ra,{...nd,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),md=fd.formatToParts(-10000.111),vd=fd.formatToParts(10000.111),Ad=$6c7bd7858deea686$var$pluralNumbers.map(pf=>fd.formatToParts(pf));var Nd;let Od=(Nd=(ld=md.find(pf=>pf.type==="minusSign"))===null||ld===void 0?void 0:ld.value)!==null&&Nd!==void 0?Nd:"-",kd=(ud=vd.find(pf=>pf.type==="plusSign"))===null||ud===void 0?void 0:ud.value;!kd&&((od==null?void 0:od.signDisplay)==="exceptZero"||(od==null?void 0:od.signDisplay)==="always")&&(kd="+");let Gd=(dd=new Intl.NumberFormat(Ra,{...nd,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(pf=>pf.type==="decimal"))===null||dd===void 0?void 0:dd.value,Ud=(pd=md.find(pf=>pf.type==="group"))===null||pd===void 0?void 0:pd.value,Fd=md.filter(pf=>!$6c7bd7858deea686$var$nonLiteralParts.has(pf.type)).map(pf=>$6c7bd7858deea686$var$escapeRegex(pf.value)),jd=Ad.flatMap(pf=>pf.filter(mf=>!$6c7bd7858deea686$var$nonLiteralParts.has(mf.type)).map(mf=>$6c7bd7858deea686$var$escapeRegex(mf.value))),qd=[...new Set([...Fd,...jd])].sort((pf,mf)=>mf.length-pf.length),zd=qd.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${qd.join("|")}|[\\p{White_Space}]`,"gu"),Yd=[...new Intl.NumberFormat(nd.locale,{useGrouping:!1}).format(9876543210)].reverse(),Jd=new Map(Yd.map((pf,mf)=>[pf,mf])),yf=new RegExp(`[${Yd.join("")}]`,"g");return{minusSign:Od,plusSign:kd,decimal:Gd,group:Ud,literals:zd,numeral:yf,index:pf=>String(Jd.get(pf))}}function $6c7bd7858deea686$var$replaceAll(Ra,qa,nd){return Ra.replaceAll?Ra.replaceAll(qa,nd):Ra.split(qa).join(nd)}function $6c7bd7858deea686$var$escapeRegex(Ra){return Ra.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q$7(Ra,qa){const nd=typeof Ra=="string"&&!qa?`${Ra}Context`:qa,od=Symbol(nd);return[ld=>{const ud=inject(od,ld);if(ud||ud===null)return ud;throw new Error(`Injection \`${od.toString()}\` not found. Component must be used within ${Array.isArray(Ra)?`one of the following components: ${Ra.join(", ")}`:`\`${Ra}\``}`)},ld=>(provide(od,ld),ld)]}function Ht$4(Ra,qa,nd){const od=nd.originalEvent.target,ld=new CustomEvent(Ra,{bubbles:!1,cancelable:!0,detail:nd});qa&&od.addEventListener(Ra,qa,{once:!0}),od.dispatchEvent(ld)}function Wt$4(Ra,qa=Number.NEGATIVE_INFINITY,nd=Number.POSITIVE_INFINITY){return Math.min(Math.max(Ra,qa),nd)}function Ea$1(Ra,qa){let nd=Ra;const od=qa.toString(),ld=od.indexOf("."),ud=ld>=0?od.length-ld:0;if(ud>0){const dd=10**ud;nd=Math.round(nd*dd)/dd}return nd}function Nr$4(Ra,qa,nd,od){qa=Number(qa),nd=Number(nd);const ld=(Ra-(Number.isNaN(qa)?0:qa))%od;let ud=Ea$1(Math.abs(ld)*2>=od?Ra+Math.sign(ld)*(od-Math.abs(ld)):Ra-ld,od);return Number.isNaN(qa)?!Number.isNaN(nd)&&ud>nd&&(ud=Math.floor(Ea$1(nd/od,od))*od):udnd&&(ud=qa+Math.floor(Ea$1((nd-qa)/od,od))*od),ud=Ea$1(ud,od),ud}function Kt$2(Ra){return Ra==null}function Jr$4(Ra,qa){var nd;const od=shallowRef();return watchEffect(()=>{od.value=Ra()},{...qa,flush:(nd=void 0)!=null?nd:"sync"}),readonly(od)}function ht$4(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function ia$1(){const Ra=new Set,qa=nd=>{Ra.delete(nd)};return{on:nd=>{Ra.add(nd);const od=()=>qa(nd);return ht$4(od),{off:od}},off:qa,trigger:(...nd)=>Promise.all(Array.from(Ra).map(od=>od(...nd)))}}function ei$4(Ra){let qa=!1,nd;const od=effectScope(!0);return(...ld)=>(qa||(nd=od.run(()=>Ra(...ld)),qa=!0),nd)}function xl$3(Ra){let qa=0,nd,od;const ld=()=>{qa-=1,od&&qa<=0&&(od.stop(),nd=void 0,od=void 0)};return(...ud)=>(qa+=1,nd||(od=effectScope(!0),nd=od.run(()=>Ra(...ud))),ht$4(ld),nd)}function Ke$4(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function ti$4(Ra){if(!isRef(Ra))return reactive(Ra);const qa=new Proxy({},{get(nd,od,ld){return unref(Reflect.get(Ra.value,od,ld))},set(nd,od,ld){return isRef(Ra.value[od])&&!isRef(ld)?Ra.value[od].value=ld:Ra.value[od]=ld,!0},deleteProperty(nd,od){return Reflect.deleteProperty(Ra.value,od)},has(nd,od){return Reflect.has(Ra.value,od)},ownKeys(){return Object.keys(Ra.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return reactive(qa)}function Sl$3(Ra){return ti$4(computed(Ra))}const qe$3=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ai$5=Ra=>typeof Ra<"u",oi$4=Object.prototype.toString,li$4=Ra=>oi$4.call(Ra)==="[object Object]",Va$1=()=>{},zo$1=si$4();function si$4(){var Ra,qa;return qe$3&&((Ra=window==null?void 0:window.navigator)==null?void 0:Ra.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((qa=window==null?void 0:window.navigator)==null?void 0:qa.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function El$3(Ra,qa){function nd(...od){return new Promise((ld,ud)=>{Promise.resolve(Ra(()=>qa.apply(this,od),{fn:qa,thisArg:this,args:od})).then(ld).catch(ud)})}return nd}const Pl$3=Ra=>Ra();function ii$5(Ra=Pl$3){const qa=ref$1(!0);function nd(){qa.value=!1}function od(){qa.value=!0}const ld=(...ud)=>{qa.value&&Ra(...ud)};return{isActive:readonly(qa),pause:nd,resume:od,eventFilter:ld}}function Dl$3(Ra){return getCurrentInstance()}function $t$4(Ra,qa=1e4){return customRef((nd,od)=>{let ld=Ke$4(Ra),ud;const dd=()=>setTimeout(()=>{ld=Ke$4(Ra),od()},Ke$4(qa));return ht$4(()=>{clearTimeout(ud)}),{get(){return nd(),ld},set(pd){ld=pd,od(),clearTimeout(ud),ud=dd()}}})}function ui$4(Ra,qa,nd={}){const{eventFilter:od=Pl$3,...ld}=nd;return watch(Ra,El$3(od,qa),ld)}function Ko$2(Ra,qa,nd={}){const{eventFilter:od,...ld}=nd,{eventFilter:ud,pause:dd,resume:pd,isActive:fd}=ii$5(od);return{stop:ui$4(Ra,qa,{...ld,eventFilter:ud}),pause:dd,resume:pd,isActive:fd}}function di$4(Ra,qa,...[nd]){const{flush:od="sync",deep:ld=!1,immediate:ud=!0,direction:dd="both",transform:pd={}}=nd||{},fd=[],md="ltr"in pd&&pd.ltr||(Ad=>Ad),vd="rtl"in pd&&pd.rtl||(Ad=>Ad);return(dd==="both"||dd==="ltr")&&fd.push(Ko$2(Ra,Ad=>{fd.forEach(Nd=>Nd.pause()),qa.value=md(Ad),fd.forEach(Nd=>Nd.resume())},{flush:od,deep:ld,immediate:ud})),(dd==="both"||dd==="rtl")&&fd.push(Ko$2(qa,Ad=>{fd.forEach(Nd=>Nd.pause()),Ra.value=vd(Ad),fd.forEach(Nd=>Nd.resume())},{flush:od,deep:ld,immediate:ud})),()=>{fd.forEach(Ad=>Ad.stop())}}function ci$5(Ra,qa){Dl$3()&&onBeforeUnmount(Ra,qa)}function Wn$3(Ra,qa,nd={}){const{immediate:od=!0}=nd,ld=ref$1(!1);let ud=null;function dd(){ud&&(clearTimeout(ud),ud=null)}function pd(){ld.value=!1,dd()}function fd(...md){dd(),ld.value=!0,ud=setTimeout(()=>{ld.value=!1,ud=null,Ra(...md)},Ke$4(qa))}return od&&(ld.value=!0,qe$3&&fd()),ht$4(pd),{isPending:readonly(ld),start:fd,stop:pd}}function $e$4(Ra){var qa;const nd=Ke$4(Ra);return(qa=nd==null?void 0:nd.$el)!=null?qa:nd}const qt$5=qe$3?window:void 0;function Le$6(...Ra){let qa,nd,od,ld;if(typeof Ra[0]=="string"||Array.isArray(Ra[0])?([nd,od,ld]=Ra,qa=qt$5):[qa,nd,od,ld]=Ra,!qa)return Va$1;Array.isArray(nd)||(nd=[nd]),Array.isArray(od)||(od=[od]);const ud=[],dd=()=>{ud.forEach(vd=>vd()),ud.length=0},pd=(vd,Ad,Nd,Od)=>(vd.addEventListener(Ad,Nd,Od),()=>vd.removeEventListener(Ad,Nd,Od)),fd=watch(()=>[$e$4(qa),Ke$4(ld)],([vd,Ad])=>{if(dd(),!vd)return;const Nd=li$4(Ad)?{...Ad}:Ad;ud.push(...nd.flatMap(Od=>od.map(kd=>pd(vd,Od,kd,Nd))))},{immediate:!0,flush:"post"}),md=()=>{fd(),dd()};return ht$4(md),md}function mi$2(Ra){return typeof Ra=="function"?Ra:typeof Ra=="string"?qa=>qa.key===Ra:Array.isArray(Ra)?qa=>Ra.includes(qa.key):()=>!0}function jn$3(...Ra){let qa,nd,od={};Ra.length===3?(qa=Ra[0],nd=Ra[1],od=Ra[2]):Ra.length===2?typeof Ra[1]=="object"?(qa=!0,nd=Ra[0],od=Ra[1]):(qa=Ra[0],nd=Ra[1]):(qa=!0,nd=Ra[0]);const{target:ld=qt$5,eventName:ud="keydown",passive:dd=!1,dedupe:pd=!1}=od,fd=mi$2(qa);return Le$6(ld,ud,md=>{md.repeat&&Ke$4(pd)||fd(md)&&nd(md)},dd)}function ja$1(){const Ra=ref$1(!1),qa=getCurrentInstance();return qa&&onMounted(()=>{Ra.value=!0},qa),Ra}function yi$3(Ra){return JSON.parse(JSON.stringify(Ra))}function ne$6(Ra,qa,nd,od={}){var ld,ud,dd;const{clone:pd=!1,passive:fd=!1,eventName:md,deep:vd=!1,defaultValue:Ad,shouldEmit:Nd}=od,Od=getCurrentInstance(),kd=nd||(Od==null?void 0:Od.emit)||((ld=Od==null?void 0:Od.$emit)==null?void 0:ld.bind(Od))||((dd=(ud=Od==null?void 0:Od.proxy)==null?void 0:ud.$emit)==null?void 0:dd.bind(Od==null?void 0:Od.proxy));let Ld=md;qa||(qa="modelValue"),Ld=Ld||`update:${qa.toString()}`;const Gd=jd=>pd?typeof pd=="function"?pd(jd):yi$3(jd):jd,Ud=()=>ai$5(Ra[qa])?Gd(Ra[qa]):Ad,Fd=jd=>{Nd?Nd(jd)&&kd(Ld,jd):kd(Ld,jd)};if(fd){const jd=Ud(),qd=ref$1(jd);let zd=!1;return watch(()=>Ra[qa],Yd=>{zd||(zd=!0,qd.value=Gd(Yd),nextTick$1(()=>zd=!1))}),watch(qd,Yd=>{!zd&&(Yd!==Ra[qa]||vd)&&Fd(Yd)},{deep:vd}),qd}else return computed({get(){return Ud()},set(jd){Fd(jd)}})}function Ua$3(Ra){return Ra?Ra.flatMap(qa=>qa.type===Fragment?Ua$3(qa.children):[qa]):[]}const Ci$2=["INPUT","TEXTAREA"];function Bt$5(Ra,qa,nd,od={}){if(!qa||od.enableIgnoredElement&&Ci$2.includes(qa.nodeName))return null;const{arrowKeyOptions:ld="both",attributeName:ud="[data-radix-vue-collection-item]",itemsArray:dd=[],loop:pd=!0,dir:fd="ltr",preventScroll:md=!0,focus:vd=!1}=od,[Ad,Nd,Od,kd,Ld,Gd]=[Ra.key==="ArrowRight",Ra.key==="ArrowLeft",Ra.key==="ArrowUp",Ra.key==="ArrowDown",Ra.key==="Home",Ra.key==="End"],Ud=Od||kd,Fd=Ad||Nd;if(!Ld&&!Gd&&(!Ud&&!Fd||ld==="vertical"&&Fd||ld==="horizontal"&&Ud))return null;const jd=nd?Array.from(nd.querySelectorAll(ud)):dd;if(!jd.length)return null;md&&Ra.preventDefault();let qd=null;return Fd||Ud?qd=Rl$3(jd,qa,{goForward:Ud?kd:fd==="ltr"?Ad:Nd,loop:pd}):Ld?qd=jd.at(0)||null:Gd&&(qd=jd.at(-1)||null),vd&&(qd==null||qd.focus()),qd}function Rl$3(Ra,qa,nd,od=Ra.length){if(--od===0)return null;const ld=Ra.indexOf(qa),ud=nd.goForward?ld+1:ld-1;if(!nd.loop&&(ud<0||ud>=Ra.length))return null;const dd=(ud+Ra.length)%Ra.length,pd=Ra[dd];return pd?pd.hasAttribute("disabled")&&pd.getAttribute("disabled")!=="false"?Rl$3(Ra,pd,nd,od):pd:null}function gn$4(Ra){if(Ra===null||typeof Ra!="object")return!1;const qa=Object.getPrototypeOf(Ra);return qa!==null&&qa!==Object.prototype&&Object.getPrototypeOf(qa)!==null||Symbol.iterator in Ra?!1:Symbol.toStringTag in Ra?Object.prototype.toString.call(Ra)==="[object Module]":!0}function Pn$4(Ra,qa,nd=".",od){if(!gn$4(qa))return Pn$4(Ra,{},nd);const ld=Object.assign({},qa);for(const ud in Ra){if(ud==="__proto__"||ud==="constructor")continue;const dd=Ra[ud];dd!=null&&(Array.isArray(dd)&&Array.isArray(ld[ud])?ld[ud]=[...dd,...ld[ud]]:gn$4(dd)&&gn$4(ld[ud])?ld[ud]=Pn$4(dd,ld[ud],(nd?`${nd}.`:"")+ud.toString()):ld[ud]=dd)}return ld}function wi$2(Ra){return(...qa)=>qa.reduce((nd,od)=>Pn$4(nd,od,""),{})}const _i$2=wi$2(),[Ga$2,xi$2]=Q$7("ConfigProvider");let Si$2="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ei$2=(Ra=21)=>{let qa="",nd=Ra;for(;nd--;)qa+=Si$2[Math.random()*64|0];return qa};const Pi$2=xl$3(()=>{const Ra=ref$1(new Map),qa=ref$1(),nd=computed(()=>{for(const dd of Ra.value.values())if(dd)return!0;return!1}),od=Ga$2({scrollBody:ref$1(!0)});let ld=null;const ud=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=qa.value??"",zo$1&&(ld==null||ld()),qa.value=void 0};return watch(nd,(dd,pd)=>{var fd;if(!qe$3)return;if(!dd){pd&&ud();return}qa.value===void 0&&(qa.value=document.body.style.overflow);const md=window.innerWidth-document.documentElement.clientWidth,vd={padding:md,margin:0},Ad=(fd=od.scrollBody)!=null&&fd.value?typeof od.scrollBody.value=="object"?_i$2({padding:od.scrollBody.value.padding===!0?md:od.scrollBody.value.padding,margin:od.scrollBody.value.margin===!0?md:od.scrollBody.value.margin},vd):vd:{padding:0,margin:0};md>0&&(document.body.style.paddingRight=typeof Ad.padding=="number"?`${Ad.padding}px`:String(Ad.padding),document.body.style.marginRight=typeof Ad.margin=="number"?`${Ad.margin}px`:String(Ad.margin),document.body.style.setProperty("--scrollbar-width",`${md}px`),document.body.style.overflow="hidden"),zo$1&&(ld=Le$6(document,"touchmove",Nd=>Di$3(Nd),{passive:!1})),nextTick$1(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),Ra});function ha$1(Ra){const qa=Ei$2(6),nd=Pi$2();nd.value.set(qa,Ra??!1);const od=computed({get:()=>nd.value.get(qa)??!1,set:ld=>nd.value.set(qa,ld)});return ci$5(()=>{nd.value.delete(qa)}),od}function Al$3(Ra){const qa=window.getComputedStyle(Ra);if(qa.overflowX==="scroll"||qa.overflowY==="scroll"||qa.overflowX==="auto"&&Ra.clientWidth1?!0:(qa.preventDefault&&qa.cancelable&&qa.preventDefault(),!1)}const $i$2="data-radix-vue-collection-item";function Me$7(Ra,qa=$i$2){const nd=Ra??Symbol();return{createCollection:od=>{const ld=ref$1([]);function ud(){const dd=$e$4(od);return dd?ld.value=Array.from(dd.querySelectorAll(`[${qa}]:not([data-disabled])`)):ld.value=[]}return onBeforeUpdate(()=>{ld.value=[]}),onMounted(ud),onUpdated(ud),watch(()=>od==null?void 0:od.value,ud,{immediate:!0}),provide(nd,ld),ld},injectCollection:()=>inject(nd,ref$1([]))}}function be$9(Ra){const qa=Ga$2({dir:ref$1("ltr")});return computed(()=>{var nd;return(Ra==null?void 0:Ra.value)||((nd=qa.dir)==null?void 0:nd.value)||"ltr"})}function Ae$6(Ra){const qa=getCurrentInstance(),nd=qa==null?void 0:qa.type.emits,od={};return nd!=null&&nd.length||console.warn(`No emitted event found. Please check component: ${qa==null?void 0:qa.type.__name}`),nd==null||nd.forEach(ld=>{od[toHandlerKey(camelize(ld))]=(...ud)=>Ra(ld,...ud)}),od}let bn$4=0;function Gn$4(){watchEffect(Ra=>{if(!qe$3)return;const qa=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",qa[0]??Ho$3()),document.body.insertAdjacentElement("beforeend",qa[1]??Ho$3()),bn$4++,Ra(()=>{bn$4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(nd=>nd.remove()),bn$4--})})}function Ho$3(){const Ra=document.createElement("span");return Ra.setAttribute("data-radix-focus-guard",""),Ra.tabIndex=0,Ra.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",Ra}function Je$4(Ra){return computed(()=>{var qa;return Ke$4(Ra)?!!((qa=$e$4(Ra))!=null&&qa.closest("form")):!0})}function It$4(Ra){const qa=getCurrentInstance(),nd=Object.keys((qa==null?void 0:qa.type.props)??{}).reduce((ld,ud)=>{const dd=(qa==null?void 0:qa.type.props[ud]).default;return dd!==void 0&&(ld[ud]=dd),ld},{}),od=toRef$1(Ra);return computed(()=>{const ld={},ud=(qa==null?void 0:qa.vnode.props)??{};return Object.keys(ud).forEach(dd=>{ld[camelize(dd)]=ud[dd]}),Object.keys({...nd,...ld}).reduce((dd,pd)=>(od.value[pd]!==void 0&&(dd[pd]=od.value[pd]),dd),{})})}function xe$5(Ra,qa){const nd=It$4(Ra),od=qa?Ae$6(qa):{};return computed(()=>({...nd.value,...od}))}function R$7(){const Ra=getCurrentInstance(),qa=ref$1(),nd=computed(()=>{var dd,pd;return["#text","#comment"].includes((dd=qa.value)==null?void 0:dd.$el.nodeName)?(pd=qa.value)==null?void 0:pd.$el.nextElementSibling:$e$4(qa)}),od=Object.assign({},Ra.exposed),ld={};for(const dd in Ra.props)Object.defineProperty(ld,dd,{enumerable:!0,configurable:!0,get:()=>Ra.props[dd]});if(Object.keys(od).length>0)for(const dd in od)Object.defineProperty(ld,dd,{enumerable:!0,configurable:!0,get:()=>od[dd]});Object.defineProperty(ld,"$el",{enumerable:!0,configurable:!0,get:()=>Ra.vnode.el}),Ra.exposed=ld;function ud(dd){qa.value=dd,!(dd instanceof Element||!dd)&&(Object.defineProperty(ld,"$el",{enumerable:!0,configurable:!0,get:()=>dd.$el}),Ra.exposed=ld)}return{forwardRef:ud,currentRef:qa,currentElement:nd}}function Ol$3(Ra,qa){const nd=$t$4(!1,300),od=ref$1(null),ld=ia$1();function ud(){od.value=null,nd.value=!1}function dd(pd,fd){const md=pd.currentTarget,vd={x:pd.clientX,y:pd.clientY},Ad=Bi$2(vd,md.getBoundingClientRect()),Nd=Ii$1(vd,Ad),Od=Ti$2(fd.getBoundingClientRect()),kd=Ai$2([...Nd,...Od]);od.value=kd,nd.value=!0}return watchEffect(pd=>{if(Ra.value&&qa.value){const fd=vd=>dd(vd,qa.value),md=vd=>dd(vd,Ra.value);Ra.value.addEventListener("pointerleave",fd),qa.value.addEventListener("pointerleave",md),pd(()=>{var vd,Ad;(vd=Ra.value)==null||vd.removeEventListener("pointerleave",fd),(Ad=qa.value)==null||Ad.removeEventListener("pointerleave",md)})}}),watchEffect(pd=>{var fd;if(od.value){const md=vd=>{var Ad,Nd;if(!od.value)return;const Od=vd.target,kd={x:vd.clientX,y:vd.clientY},Ld=((Ad=Ra.value)==null?void 0:Ad.contains(Od))||((Nd=qa.value)==null?void 0:Nd.contains(Od)),Gd=!Ri$1(kd,od.value),Ud=Od.hasAttribute("data-grace-area-trigger");Ld?ud():(Gd||Ud)&&(ud(),ld.trigger())};(fd=Ra.value)==null||fd.ownerDocument.addEventListener("pointermove",md),pd(()=>{var vd;return(vd=Ra.value)==null?void 0:vd.ownerDocument.removeEventListener("pointermove",md)})}}),{isPointerInTransit:nd,onPointerExit:ld.on}}function Bi$2(Ra,qa){const nd=Math.abs(qa.top-Ra.y),od=Math.abs(qa.bottom-Ra.y),ld=Math.abs(qa.right-Ra.x),ud=Math.abs(qa.left-Ra.x);switch(Math.min(nd,od,ld,ud)){case ud:return"left";case ld:return"right";case nd:return"top";case od:return"bottom";default:throw new Error("unreachable")}}function Ii$1(Ra,qa,nd=5){const od=[];switch(qa){case"top":od.push({x:Ra.x-nd,y:Ra.y+nd},{x:Ra.x+nd,y:Ra.y+nd});break;case"bottom":od.push({x:Ra.x-nd,y:Ra.y-nd},{x:Ra.x+nd,y:Ra.y-nd});break;case"left":od.push({x:Ra.x+nd,y:Ra.y-nd},{x:Ra.x+nd,y:Ra.y+nd});break;case"right":od.push({x:Ra.x-nd,y:Ra.y-nd},{x:Ra.x-nd,y:Ra.y+nd});break}return od}function Ti$2(Ra){const{top:qa,right:nd,bottom:od,left:ld}=Ra;return[{x:ld,y:qa},{x:nd,y:qa},{x:nd,y:od},{x:ld,y:od}]}function Ri$1(Ra,qa){const{x:nd,y:od}=Ra;let ld=!1;for(let ud=0,dd=qa.length-1;udod!=vd>od&&nd<(md-pd)*(od-fd)/(vd-fd)+pd&&(ld=!ld)}return ld}function Ai$2(Ra){const qa=Ra.slice();return qa.sort((nd,od)=>nd.xod.x?1:nd.yod.y?1:0),Oi$1(qa)}function Oi$1(Ra){if(Ra.length<=1)return Ra.slice();const qa=[];for(let od=0;od=2;){const ud=qa[qa.length-1],dd=qa[qa.length-2];if((ud.x-dd.x)*(ld.y-dd.y)>=(ud.y-dd.y)*(ld.x-dd.x))qa.pop();else break}qa.push(ld)}qa.pop();const nd=[];for(let od=Ra.length-1;od>=0;od--){const ld=Ra[od];for(;nd.length>=2;){const ud=nd[nd.length-1],dd=nd[nd.length-2];if((ud.x-dd.x)*(ld.y-dd.y)>=(ud.y-dd.y)*(ld.x-dd.x))nd.pop();else break}nd.push(ld)}return nd.pop(),qa.length===1&&nd.length===1&&qa[0].x===nd[0].x&&qa[0].y===nd[0].y?qa:qa.concat(nd)}var ki$2=function(Ra){if(typeof document>"u")return null;var qa=Array.isArray(Ra)?Ra[0]:Ra;return qa.ownerDocument.body},Nt$5=new WeakMap,Pa$2=new WeakMap,Da$1={},Cn$3=0,kl$3=function(Ra){return Ra&&(Ra.host||kl$3(Ra.parentNode))},Mi$2=function(Ra,qa){return qa.map(function(nd){if(Ra.contains(nd))return nd;var od=kl$3(nd);return od&&Ra.contains(od)?od:(console.error("aria-hidden",nd,"in not contained inside",Ra,". Doing nothing"),null)}).filter(function(nd){return!!nd})},Vi$1=function(Ra,qa,nd,od){var ld=Mi$2(qa,Array.isArray(Ra)?Ra:[Ra]);Da$1[nd]||(Da$1[nd]=new WeakMap);var ud=Da$1[nd],dd=[],pd=new Set,fd=new Set(ld),md=function(Ad){!Ad||pd.has(Ad)||(pd.add(Ad),md(Ad.parentNode))};ld.forEach(md);var vd=function(Ad){!Ad||fd.has(Ad)||Array.prototype.forEach.call(Ad.children,function(Nd){if(pd.has(Nd))vd(Nd);else try{var Od=Nd.getAttribute(od),kd=Od!==null&&Od!=="false",Ld=(Nt$5.get(Nd)||0)+1,Gd=(ud.get(Nd)||0)+1;Nt$5.set(Nd,Ld),ud.set(Nd,Gd),dd.push(Nd),Ld===1&&kd&&Pa$2.set(Nd,!0),Gd===1&&Nd.setAttribute(nd,"true"),kd||Nd.setAttribute(od,"true")}catch(Ud){console.error("aria-hidden: cannot operate on ",Nd,Ud)}})};return vd(qa),pd.clear(),Cn$3++,function(){dd.forEach(function(Ad){var Nd=Nt$5.get(Ad)-1,Od=ud.get(Ad)-1;Nt$5.set(Ad,Nd),ud.set(Ad,Od),Nd||(Pa$2.has(Ad)||Ad.removeAttribute(od),Pa$2.delete(Ad)),Od||Ad.removeAttribute(nd)}),Cn$3--,Cn$3||(Nt$5=new WeakMap,Nt$5=new WeakMap,Pa$2=new WeakMap,Da$1={})}},Fi$2=function(Ra,qa,nd){nd===void 0&&(nd="data-aria-hidden");var od=Array.from(Array.isArray(Ra)?Ra:[Ra]),ld=ki$2(Ra);return ld?(od.push.apply(od,Array.from(ld.querySelectorAll("[aria-live]"))),Vi$1(od,ld,nd,"aria-hidden")):function(){return null}};function ya$1(Ra){let qa;watch(()=>$e$4(Ra),nd=>{nd?qa=Fi$2(nd):qa&&qa()}),onUnmounted(()=>{qa&&qa()})}let Ni$1=0;function he$4(Ra,qa="radix"){if(Ra)return Ra;const nd=Ga$2({useId:void 0});return useId?`${qa}-${useId()}`:nd.useId?`${qa}-${nd.useId()}`:`${qa}-${++Ni$1}`}function Ml$3(Ra){const qa=ref$1(),nd=computed(()=>{var ld;return((ld=qa.value)==null?void 0:ld.width)??0}),od=computed(()=>{var ld;return((ld=qa.value)==null?void 0:ld.height)??0});return onMounted(()=>{const ld=$e$4(Ra);if(ld){qa.value={width:ld.offsetWidth,height:ld.offsetHeight};const ud=new ResizeObserver(dd=>{if(!Array.isArray(dd)||!dd.length)return;const pd=dd[0];let fd,md;if("borderBoxSize"in pd){const vd=pd.borderBoxSize,Ad=Array.isArray(vd)?vd[0]:vd;fd=Ad.inlineSize,md=Ad.blockSize}else fd=ld.offsetWidth,md=ld.offsetHeight;qa.value={width:fd,height:md}});return ud.observe(ld,{box:"border-box"}),()=>ud.unobserve(ld)}else qa.value=void 0}),{width:nd,height:od}}function Vl$3(Ra,qa){const nd=ref$1(Ra);function od(ld){return qa[nd.value][ld]??nd.value}return{state:nd,dispatch:ld=>{nd.value=od(ld)}}}function ga$2(Ra){const qa=$t$4("",1e3);return{search:qa,handleTypeaheadSearch:(nd,od)=>{var ld,ud;if(!(Ra!=null&&Ra.value)&&!od)return;qa.value=qa.value+nd;const dd=(Ra==null?void 0:Ra.value)??od,pd=document.activeElement,fd=((ud=(ld=dd.find(Nd=>Nd===pd))==null?void 0:ld.textContent)==null?void 0:ud.trim())??"",md=dd.map(Nd=>{var Od;return((Od=Nd.textContent)==null?void 0:Od.trim())??""}),vd=Yn$3(md,qa.value,fd),Ad=dd.find(Nd=>{var Od;return((Od=Nd.textContent)==null?void 0:Od.trim())===vd});return Ad&&Ad.focus(),Ad},resetTypeahead:()=>{qa.value=""}}}function qn$3(Ra,qa){return Ra.map((nd,od)=>Ra[(qa+od)%Ra.length])}function Yn$3(Ra,qa,nd){const od=qa.length>1&&Array.from(qa).every(pd=>pd===qa[0])?qa[0]:qa,ld=nd?Ra.indexOf(nd):-1;let ud=qn$3(Ra,Math.max(ld,0));od.length===1&&(ud=ud.filter(pd=>pd!==nd));const dd=ud.find(pd=>pd.toLowerCase().startsWith(od.toLowerCase()));return dd!==nd?dd:void 0}const Xn$4=defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(Ra,{attrs:qa,slots:nd}){return()=>{var od,ld;if(!nd.default)return null;const ud=Ua$3(nd.default()),dd=ud.findIndex(vd=>vd.type!==Comment$2);if(dd===-1)return ud;const pd=ud[dd];(od=pd.props)==null||delete od.ref;const fd=pd.props?mergeProps(qa,pd.props):qa;qa.class&&(ld=pd.props)!=null&&ld.class&&delete pd.props.class;const md=cloneVNode(pd,fd);for(const vd in fd)vd.startsWith("on")&&(md.props||(md.props={}),md.props[vd]=fd[vd]);return ud.length===1?md:(ud[dd]=md,ud)}}}),O$4=defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(Ra,{attrs:qa,slots:nd}){const od=Ra.asChild?"template":Ra.as;return typeof od=="string"&&["area","img","input"].includes(od)?()=>h$2(od,qa):od!=="template"?()=>h$2(Ra.as,qa,{default:nd.default}):()=>h$2(Xn$4,qa,{default:nd.default})}});function Ie$5(){const Ra=ref$1(),qa=computed(()=>{var nd,od;return["#text","#comment"].includes((nd=Ra.value)==null?void 0:nd.$el.nodeName)?(od=Ra.value)==null?void 0:od.$el.nextElementSibling:$e$4(Ra)});return{primitiveElement:Ra,currentElement:qa}}function Wi$2(Ra,qa){const nd=ref$1({}),od=ref$1("none"),ld=Ra.value?"mounted":"unmounted",{state:ud,dispatch:dd}=Vl$3(ld,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),pd=Nd=>{var Od;if(qe$3){const kd=new CustomEvent(Nd,{bubbles:!1,cancelable:!1});(Od=qa.value)==null||Od.dispatchEvent(kd)}};watch(Ra,async(Nd,Od)=>{var kd;const Ld=Od!==Nd;if(await nextTick$1(),Ld){const Gd=od.value,Ud=$a$2(qa.value);Nd?(dd("MOUNT"),pd("enter"),Ud==="none"&&pd("after-enter")):Ud==="none"||((kd=nd.value)==null?void 0:kd.display)==="none"?(dd("UNMOUNT"),pd("leave"),pd("after-leave")):Od&&Gd!==Ud?(dd("ANIMATION_OUT"),pd("leave")):(dd("UNMOUNT"),pd("after-leave"))}},{immediate:!0});const fd=Nd=>{const Od=$a$2(qa.value),kd=Od.includes(Nd.animationName),Ld=ud.value==="mounted"?"enter":"leave";Nd.target===qa.value&&kd&&(pd(`after-${Ld}`),dd("ANIMATION_END")),Nd.target===qa.value&&Od==="none"&&dd("ANIMATION_END")},md=Nd=>{Nd.target===qa.value&&(od.value=$a$2(qa.value))},vd=watch(qa,(Nd,Od)=>{Nd?(nd.value=getComputedStyle(Nd),Nd.addEventListener("animationstart",md),Nd.addEventListener("animationcancel",fd),Nd.addEventListener("animationend",fd)):(dd("ANIMATION_END"),Od==null||Od.removeEventListener("animationstart",md),Od==null||Od.removeEventListener("animationcancel",fd),Od==null||Od.removeEventListener("animationend",fd))},{immediate:!0}),Ad=watch(ud,()=>{const Nd=$a$2(qa.value);od.value=ud.value==="mounted"?Nd:"none"});return onUnmounted(()=>{vd(),Ad()}),{isPresent:computed(()=>["mounted","unmountSuspended"].includes(ud.value))}}function $a$2(Ra){return Ra&&getComputedStyle(Ra).animationName||"none"}const Pe$7=defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(Ra,{slots:qa,expose:nd}){var od;const{present:ld,forceMount:ud}=toRefs(Ra),dd=ref$1(),{isPresent:pd}=Wi$2(ld,dd);nd({present:pd});let fd=qa.default({present:pd});fd=Ua$3(fd||[]);const md=getCurrentInstance();if(fd&&(fd==null?void 0:fd.length)>1){const vd=(od=md==null?void 0:md.parent)!=null&&od.type.name?`<${md.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${vd}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(Ad=>` - ${Ad}`).join(` +**/let policy;const tt$5=typeof window<"u"&&window.trustedTypes;if(tt$5)try{policy=tt$5.createPolicy("vue",{createHTML:Ra=>Ra})}catch{}const unsafeToTrustedHTML=policy?Ra=>policy.createHTML(Ra):Ra=>Ra,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(Ra,qa,nd)=>{qa.insertBefore(Ra,nd||null)},remove:Ra=>{const qa=Ra.parentNode;qa&&qa.removeChild(Ra)},createElement:(Ra,qa,nd,od)=>{const ld=qa==="svg"?doc.createElementNS(svgNS,Ra):qa==="mathml"?doc.createElementNS(mathmlNS,Ra):nd?doc.createElement(Ra,{is:nd}):doc.createElement(Ra);return Ra==="select"&&od&&od.multiple!=null&&ld.setAttribute("multiple",od.multiple),ld},createText:Ra=>doc.createTextNode(Ra),createComment:Ra=>doc.createComment(Ra),setText:(Ra,qa)=>{Ra.nodeValue=qa},setElementText:(Ra,qa)=>{Ra.textContent=qa},parentNode:Ra=>Ra.parentNode,nextSibling:Ra=>Ra.nextSibling,querySelector:Ra=>doc.querySelector(Ra),setScopeId(Ra,qa){Ra.setAttribute(qa,"")},insertStaticContent(Ra,qa,nd,od,ld,ud){const dd=nd?nd.previousSibling:qa.lastChild;if(ld&&(ld===ud||ld.nextSibling))for(;qa.insertBefore(ld.cloneNode(!0),nd),!(ld===ud||!(ld=ld.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(od==="svg"?`${Ra}`:od==="mathml"?`${Ra}`:Ra);const pd=templateContainer.content;if(od==="svg"||od==="mathml"){const fd=pd.firstChild;for(;fd.firstChild;)pd.appendChild(fd.firstChild);pd.removeChild(fd)}qa.insertBefore(pd,nd)}return[dd?dd.nextSibling:qa.firstChild,nd?nd.previousSibling:qa.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$4({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=Ra=>(Ra.displayName="Transition",Ra.props=TransitionPropsValidators,Ra),Transition$1=decorate$1((Ra,{slots:qa})=>h$2(BaseTransition,resolveTransitionProps(Ra),qa)),callHook=(Ra,qa=[])=>{isArray$2(Ra)?Ra.forEach(nd=>nd(...qa)):Ra&&Ra(...qa)},hasExplicitCallback=Ra=>Ra?isArray$2(Ra)?Ra.some(qa=>qa.length>1):Ra.length>1:!1;function resolveTransitionProps(Ra){const qa={};for(const Sf in Ra)Sf in DOMTransitionPropsValidators||(qa[Sf]=Ra[Sf]);if(Ra.css===!1)return qa;const{name:nd="v",type:od,duration:ld,enterFromClass:ud=`${nd}-enter-from`,enterActiveClass:dd=`${nd}-enter-active`,enterToClass:pd=`${nd}-enter-to`,appearFromClass:fd=ud,appearActiveClass:md=dd,appearToClass:vd=pd,leaveFromClass:Ad=`${nd}-leave-from`,leaveActiveClass:Nd=`${nd}-leave-active`,leaveToClass:Od=`${nd}-leave-to`}=Ra,kd=normalizeDuration(ld),Ld=kd&&kd[0],Gd=kd&&kd[1],{onBeforeEnter:jd,onEnter:Fd,onEnterCancelled:Ud,onLeave:qd,onLeaveCancelled:zd,onBeforeAppear:Wd=jd,onAppear:Jd=Fd,onAppearCancelled:_f=Ud}=qa,Xd=(Sf,Tf,Af,Ef)=>{Sf._enterCancelled=Ef,removeTransitionClass(Sf,Tf?vd:pd),removeTransitionClass(Sf,Tf?md:dd),Af&&Af()},pf=(Sf,Tf)=>{Sf._isLeaving=!1,removeTransitionClass(Sf,Ad),removeTransitionClass(Sf,Od),removeTransitionClass(Sf,Nd),Tf&&Tf()},mf=Sf=>(Tf,Af)=>{const Ef=Sf?Jd:Fd,Nf=()=>Xd(Tf,Sf,Af);callHook(Ef,[Tf,Nf]),nextFrame(()=>{removeTransitionClass(Tf,Sf?fd:ud),addTransitionClass(Tf,Sf?vd:pd),hasExplicitCallback(Ef)||whenTransitionEnds(Tf,od,Ld,Nf)})};return extend$4(qa,{onBeforeEnter(Sf){callHook(jd,[Sf]),addTransitionClass(Sf,ud),addTransitionClass(Sf,dd)},onBeforeAppear(Sf){callHook(Wd,[Sf]),addTransitionClass(Sf,fd),addTransitionClass(Sf,md)},onEnter:mf(!1),onAppear:mf(!0),onLeave(Sf,Tf){Sf._isLeaving=!0;const Af=()=>pf(Sf,Tf);addTransitionClass(Sf,Ad),Sf._enterCancelled?(addTransitionClass(Sf,Nd),forceReflow()):(forceReflow(),addTransitionClass(Sf,Nd)),nextFrame(()=>{Sf._isLeaving&&(removeTransitionClass(Sf,Ad),addTransitionClass(Sf,Od),hasExplicitCallback(qd)||whenTransitionEnds(Sf,od,Gd,Af))}),callHook(qd,[Sf,Af])},onEnterCancelled(Sf){Xd(Sf,!1,void 0,!0),callHook(Ud,[Sf])},onAppearCancelled(Sf){Xd(Sf,!0,void 0,!0),callHook(_f,[Sf])},onLeaveCancelled(Sf){pf(Sf),callHook(zd,[Sf])}})}function normalizeDuration(Ra){if(Ra==null)return null;if(isObject$9(Ra))return[NumberOf(Ra.enter),NumberOf(Ra.leave)];{const qa=NumberOf(Ra);return[qa,qa]}}function NumberOf(Ra){return toNumber$5(Ra)}function addTransitionClass(Ra,qa){qa.split(/\s+/).forEach(nd=>nd&&Ra.classList.add(nd)),(Ra[vtcKey]||(Ra[vtcKey]=new Set)).add(qa)}function removeTransitionClass(Ra,qa){qa.split(/\s+/).forEach(od=>od&&Ra.classList.remove(od));const nd=Ra[vtcKey];nd&&(nd.delete(qa),nd.size||(Ra[vtcKey]=void 0))}function nextFrame(Ra){requestAnimationFrame(()=>{requestAnimationFrame(Ra)})}let endId=0;function whenTransitionEnds(Ra,qa,nd,od){const ld=Ra._endId=++endId,ud=()=>{ld===Ra._endId&&od()};if(nd!=null)return setTimeout(ud,nd);const{type:dd,timeout:pd,propCount:fd}=getTransitionInfo(Ra,qa);if(!dd)return od();const md=dd+"end";let vd=0;const Ad=()=>{Ra.removeEventListener(md,Nd),ud()},Nd=Od=>{Od.target===Ra&&++vd>=fd&&Ad()};setTimeout(()=>{vd(nd[kd]||"").split(", "),ld=od(`${TRANSITION}Delay`),ud=od(`${TRANSITION}Duration`),dd=getTimeout(ld,ud),pd=od(`${ANIMATION}Delay`),fd=od(`${ANIMATION}Duration`),md=getTimeout(pd,fd);let vd=null,Ad=0,Nd=0;qa===TRANSITION?dd>0&&(vd=TRANSITION,Ad=dd,Nd=ud.length):qa===ANIMATION?md>0&&(vd=ANIMATION,Ad=md,Nd=fd.length):(Ad=Math.max(dd,md),vd=Ad>0?dd>md?TRANSITION:ANIMATION:null,Nd=vd?vd===TRANSITION?ud.length:fd.length:0);const Od=vd===TRANSITION&&/\b(transform|all)(,|$)/.test(od(`${TRANSITION}Property`).toString());return{type:vd,timeout:Ad,propCount:Nd,hasTransform:Od}}function getTimeout(Ra,qa){for(;Ra.lengthtoMs(nd)+toMs(Ra[od])))}function toMs(Ra){return Ra==="auto"?0:Number(Ra.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(Ra,qa,nd){const od=Ra[vtcKey];od&&(qa=(qa?[qa,...od]:[...od]).join(" ")),qa==null?Ra.removeAttribute("class"):nd?Ra.setAttribute("class",qa):Ra.className=qa}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={beforeMount(Ra,{value:qa},{transition:nd}){Ra[vShowOriginalDisplay]=Ra.style.display==="none"?"":Ra.style.display,nd&&qa?nd.beforeEnter(Ra):setDisplay(Ra,qa)},mounted(Ra,{value:qa},{transition:nd}){nd&&qa&&nd.enter(Ra)},updated(Ra,{value:qa,oldValue:nd},{transition:od}){!qa!=!nd&&(od?qa?(od.beforeEnter(Ra),setDisplay(Ra,!0),od.enter(Ra)):od.leave(Ra,()=>{setDisplay(Ra,!1)}):setDisplay(Ra,qa))},beforeUnmount(Ra,{value:qa}){setDisplay(Ra,qa)}};function setDisplay(Ra,qa){Ra.style.display=qa?Ra[vShowOriginalDisplay]:"none",Ra[vShowHidden]=!qa}const CSS_VAR_TEXT=Symbol(""),displayRE=/(^|;)\s*display\s*:/;function patchStyle(Ra,qa,nd){const od=Ra.style,ld=isString$2(nd);let ud=!1;if(nd&&!ld){if(qa)if(isString$2(qa))for(const dd of qa.split(";")){const pd=dd.slice(0,dd.indexOf(":")).trim();nd[pd]==null&&setStyle(od,pd,"")}else for(const dd in qa)nd[dd]==null&&setStyle(od,dd,"");for(const dd in nd)dd==="display"&&(ud=!0),setStyle(od,dd,nd[dd])}else if(ld){if(qa!==nd){const dd=od[CSS_VAR_TEXT];dd&&(nd+=";"+dd),od.cssText=nd,ud=displayRE.test(nd)}}else qa&&Ra.removeAttribute("style");vShowOriginalDisplay in Ra&&(Ra[vShowOriginalDisplay]=ud?od.display:"",Ra[vShowHidden]&&(od.display="none"))}const importantRE=/\s*!important$/;function setStyle(Ra,qa,nd){if(isArray$2(nd))nd.forEach(od=>setStyle(Ra,qa,od));else if(nd==null&&(nd=""),qa.startsWith("--"))Ra.setProperty(qa,nd);else{const od=autoPrefix(Ra,qa);importantRE.test(nd)?Ra.setProperty(hyphenate(od),nd.replace(importantRE,""),"important"):Ra[od]=nd}}const prefixes$1=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(Ra,qa){const nd=prefixCache[qa];if(nd)return nd;let od=camelize(qa);if(od!=="filter"&&od in Ra)return prefixCache[qa]=od;od=capitalize(od);for(let ld=0;ldcachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(Ra,qa){const nd=od=>{if(!od._vts)od._vts=Date.now();else if(od._vts<=nd.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(od,nd.value),qa,5,[od])};return nd.value=Ra,nd.attached=getNow(),nd}function patchStopImmediatePropagation(Ra,qa){if(isArray$2(qa)){const nd=Ra.stopImmediatePropagation;return Ra.stopImmediatePropagation=()=>{nd.call(Ra),Ra._stopped=!0},qa.map(od=>ld=>!ld._stopped&&od&&od(ld))}else return qa}const isNativeOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&Ra.charCodeAt(2)>96&&Ra.charCodeAt(2)<123,patchProp=(Ra,qa,nd,od,ld,ud)=>{const dd=ld==="svg";qa==="class"?patchClass(Ra,od,dd):qa==="style"?patchStyle(Ra,nd,od):isOn(qa)?isModelListener(qa)||patchEvent(Ra,qa,nd,od,ud):(qa[0]==="."?(qa=qa.slice(1),!0):qa[0]==="^"?(qa=qa.slice(1),!1):shouldSetAsProp(Ra,qa,od,dd))?(patchDOMProp(Ra,qa,od),!Ra.tagName.includes("-")&&(qa==="value"||qa==="checked"||qa==="selected")&&patchAttr(Ra,qa,od,dd,ud,qa!=="value")):Ra._isVueCE&&(/[A-Z]/.test(qa)||!isString$2(od))?patchDOMProp(Ra,camelize(qa),od,ud,qa):(qa==="true-value"?Ra._trueValue=od:qa==="false-value"&&(Ra._falseValue=od),patchAttr(Ra,qa,od,dd))};function shouldSetAsProp(Ra,qa,nd,od){if(od)return!!(qa==="innerHTML"||qa==="textContent"||qa in Ra&&isNativeOn(qa)&&isFunction$4(nd));if(qa==="spellcheck"||qa==="draggable"||qa==="translate"||qa==="form"||qa==="list"&&Ra.tagName==="INPUT"||qa==="type"&&Ra.tagName==="TEXTAREA")return!1;if(qa==="width"||qa==="height"){const ld=Ra.tagName;if(ld==="IMG"||ld==="VIDEO"||ld==="CANVAS"||ld==="SOURCE")return!1}return isNativeOn(qa)&&isString$2(nd)?!1:qa in Ra}const getModelAssigner=Ra=>{const qa=Ra.props["onUpdate:modelValue"]||!1;return isArray$2(qa)?nd=>invokeArrayFns(qa,nd):qa};function onCompositionStart(Ra){Ra.target.composing=!0}function onCompositionEnd(Ra){const qa=Ra.target;qa.composing&&(qa.composing=!1,qa.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(Ra,{modifiers:{lazy:qa,trim:nd,number:od}},ld){Ra[assignKey]=getModelAssigner(ld);const ud=od||ld.props&&ld.props.type==="number";addEventListener(Ra,qa?"change":"input",dd=>{if(dd.target.composing)return;let pd=Ra.value;nd&&(pd=pd.trim()),ud&&(pd=looseToNumber(pd)),Ra[assignKey](pd)}),nd&&addEventListener(Ra,"change",()=>{Ra.value=Ra.value.trim()}),qa||(addEventListener(Ra,"compositionstart",onCompositionStart),addEventListener(Ra,"compositionend",onCompositionEnd),addEventListener(Ra,"change",onCompositionEnd))},mounted(Ra,{value:qa}){Ra.value=qa??""},beforeUpdate(Ra,{value:qa,oldValue:nd,modifiers:{lazy:od,trim:ld,number:ud}},dd){if(Ra[assignKey]=getModelAssigner(dd),Ra.composing)return;const pd=(ud||Ra.type==="number")&&!/^0\d/.test(Ra.value)?looseToNumber(Ra.value):Ra.value,fd=qa??"";pd!==fd&&(document.activeElement===Ra&&Ra.type!=="range"&&(od&&qa===nd||ld&&Ra.value.trim()===fd)||(Ra.value=fd))}},vModelSelect={deep:!0,created(Ra,{value:qa,modifiers:{number:nd}},od){const ld=isSet$1(qa);addEventListener(Ra,"change",()=>{const ud=Array.prototype.filter.call(Ra.options,dd=>dd.selected).map(dd=>nd?looseToNumber(getValue$1(dd)):getValue$1(dd));Ra[assignKey](Ra.multiple?ld?new Set(ud):ud:ud[0]),Ra._assigning=!0,nextTick$1(()=>{Ra._assigning=!1})}),Ra[assignKey]=getModelAssigner(od)},mounted(Ra,{value:qa}){setSelected(Ra,qa)},beforeUpdate(Ra,qa,nd){Ra[assignKey]=getModelAssigner(nd)},updated(Ra,{value:qa}){Ra._assigning||setSelected(Ra,qa)}};function setSelected(Ra,qa){const nd=Ra.multiple,od=isArray$2(qa);if(!(nd&&!od&&!isSet$1(qa))){for(let ld=0,ud=Ra.options.length;ldString(md)===String(pd)):dd.selected=looseIndexOf(qa,pd)>-1}else dd.selected=qa.has(pd);else if(looseEqual(getValue$1(dd),qa)){Ra.selectedIndex!==ld&&(Ra.selectedIndex=ld);return}}!nd&&Ra.selectedIndex!==-1&&(Ra.selectedIndex=-1)}}function getValue$1(Ra){return"_value"in Ra?Ra._value:Ra.value}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:Ra=>Ra.stopPropagation(),prevent:Ra=>Ra.preventDefault(),self:Ra=>Ra.target!==Ra.currentTarget,ctrl:Ra=>!Ra.ctrlKey,shift:Ra=>!Ra.shiftKey,alt:Ra=>!Ra.altKey,meta:Ra=>!Ra.metaKey,left:Ra=>"button"in Ra&&Ra.button!==0,middle:Ra=>"button"in Ra&&Ra.button!==1,right:Ra=>"button"in Ra&&Ra.button!==2,exact:(Ra,qa)=>systemModifiers.some(nd=>Ra[`${nd}Key`]&&!qa.includes(nd))},withModifiers=(Ra,qa)=>{const nd=Ra._withMods||(Ra._withMods={}),od=qa.join(".");return nd[od]||(nd[od]=(ld,...ud)=>{for(let dd=0;dd{const nd=Ra._withKeys||(Ra._withKeys={}),od=qa.join(".");return nd[od]||(nd[od]=ld=>{if(!("key"in ld))return;const ud=hyphenate(ld.key);if(qa.some(dd=>dd===ud||keyNames[dd]===ud))return Ra(ld)})},rendererOptions=extend$4({patchProp},nodeOps);let renderer$1;function ensureRenderer(){return renderer$1||(renderer$1=createRenderer$1(rendererOptions))}const createApp=(...Ra)=>{const qa=ensureRenderer().createApp(...Ra),{mount:nd}=qa;return qa.mount=od=>{const ld=normalizeContainer(od);if(!ld)return;const ud=qa._component;!isFunction$4(ud)&&!ud.render&&!ud.template&&(ud.template=ld.innerHTML),ld.nodeType===1&&(ld.textContent="");const dd=nd(ld,!1,resolveRootNamespace(ld));return ld instanceof Element&&(ld.removeAttribute("v-cloak"),ld.setAttribute("data-v-app","")),dd},qa};function resolveRootNamespace(Ra){if(Ra instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&Ra instanceof MathMLElement)return"mathml"}function normalizeContainer(Ra){return isString$2(Ra)?document.querySelector(Ra):Ra}var isVue2=!1;let activePinia;const setActivePinia=Ra=>activePinia=Ra,piniaSymbol=Symbol();function isPlainObject$5(Ra){return Ra&&typeof Ra=="object"&&Object.prototype.toString.call(Ra)==="[object Object]"&&typeof Ra.toJSON!="function"}var MutationType;(function(Ra){Ra.direct="direct",Ra.patchObject="patch object",Ra.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const Ra=effectScope(!0),qa=Ra.run(()=>ref$1({}));let nd=[],od=[];const ld=markRaw({install(ud){setActivePinia(ld),ld._a=ud,ud.provide(piniaSymbol,ld),ud.config.globalProperties.$pinia=ld,od.forEach(dd=>nd.push(dd)),od=[]},use(ud){return!this._a&&!isVue2?od.push(ud):nd.push(ud),this},_p:nd,_a:null,_e:Ra,_s:new Map,state:qa});return ld}const noop$6=()=>{};function addSubscription(Ra,qa,nd,od=noop$6){Ra.push(qa);const ld=()=>{const ud=Ra.indexOf(qa);ud>-1&&(Ra.splice(ud,1),od())};return!nd&&getCurrentScope()&&onScopeDispose(ld),ld}function triggerSubscriptions(Ra,...qa){Ra.slice().forEach(nd=>{nd(...qa)})}const fallbackRunWithContext=Ra=>Ra(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(Ra,qa){Ra instanceof Map&&qa instanceof Map?qa.forEach((nd,od)=>Ra.set(od,nd)):Ra instanceof Set&&qa instanceof Set&&qa.forEach(Ra.add,Ra);for(const nd in qa){if(!qa.hasOwnProperty(nd))continue;const od=qa[nd],ld=Ra[nd];isPlainObject$5(ld)&&isPlainObject$5(od)&&Ra.hasOwnProperty(nd)&&!isRef(od)&&!isReactive(od)?Ra[nd]=mergeReactiveObjects(ld,od):Ra[nd]=od}return Ra}const skipHydrateSymbol=Symbol();function shouldHydrate(Ra){return!isPlainObject$5(Ra)||!Ra.hasOwnProperty(skipHydrateSymbol)}const{assign}=Object;function isComputed(Ra){return!!(isRef(Ra)&&Ra.effect)}function createOptionsStore(Ra,qa,nd,od){const{state:ld,actions:ud,getters:dd}=qa,pd=nd.state.value[Ra];let fd;function md(){pd||(nd.state.value[Ra]=ld?ld():{});const vd=toRefs(nd.state.value[Ra]);return assign(vd,ud,Object.keys(dd||{}).reduce((Ad,Nd)=>(Ad[Nd]=markRaw(computed(()=>{setActivePinia(nd);const Od=nd._s.get(Ra);return dd[Nd].call(Od,Od)})),Ad),{}))}return fd=createSetupStore(Ra,md,qa,nd,od,!0),fd}function createSetupStore(Ra,qa,nd={},od,ld,ud){let dd;const pd=assign({actions:{}},nd),fd={deep:!0};let md,vd,Ad=[],Nd=[],Od;const kd=od.state.value[Ra];!ud&&!kd&&(od.state.value[Ra]={}),ref$1({});let Ld;function Gd(_f){let Xd;md=vd=!1,typeof _f=="function"?(_f(od.state.value[Ra]),Xd={type:MutationType.patchFunction,storeId:Ra,events:Od}):(mergeReactiveObjects(od.state.value[Ra],_f),Xd={type:MutationType.patchObject,payload:_f,storeId:Ra,events:Od});const pf=Ld=Symbol();nextTick$1().then(()=>{Ld===pf&&(md=!0)}),vd=!0,triggerSubscriptions(Ad,Xd,od.state.value[Ra])}const jd=ud?function(){const{state:Xd}=nd,pf=Xd?Xd():{};this.$patch(mf=>{assign(mf,pf)})}:noop$6;function Fd(){dd.stop(),Ad=[],Nd=[],od._s.delete(Ra)}const Ud=(_f,Xd="")=>{if(ACTION_MARKER in _f)return _f[ACTION_NAME]=Xd,_f;const pf=function(){setActivePinia(od);const mf=Array.from(arguments),Sf=[],Tf=[];function Af(If){Sf.push(If)}function Ef(If){Tf.push(If)}triggerSubscriptions(Nd,{args:mf,name:pf[ACTION_NAME],store:zd,after:Af,onError:Ef});let Nf;try{Nf=_f.apply(this&&this.$id===Ra?this:zd,mf)}catch(If){throw triggerSubscriptions(Tf,If),If}return Nf instanceof Promise?Nf.then(If=>(triggerSubscriptions(Sf,If),If)).catch(If=>(triggerSubscriptions(Tf,If),Promise.reject(If))):(triggerSubscriptions(Sf,Nf),Nf)};return pf[ACTION_MARKER]=!0,pf[ACTION_NAME]=Xd,pf},qd={_p:od,$id:Ra,$onAction:addSubscription.bind(null,Nd),$patch:Gd,$reset:jd,$subscribe(_f,Xd={}){const pf=addSubscription(Ad,_f,Xd.detached,()=>mf()),mf=dd.run(()=>watch(()=>od.state.value[Ra],Sf=>{(Xd.flush==="sync"?vd:md)&&_f({storeId:Ra,type:MutationType.direct,events:Od},Sf)},assign({},fd,Xd)));return pf},$dispose:Fd},zd=reactive(qd);od._s.set(Ra,zd);const Jd=(od._a&&od._a.runWithContext||fallbackRunWithContext)(()=>od._e.run(()=>(dd=effectScope()).run(()=>qa({action:Ud}))));for(const _f in Jd){const Xd=Jd[_f];if(isRef(Xd)&&!isComputed(Xd)||isReactive(Xd))ud||(kd&&shouldHydrate(Xd)&&(isRef(Xd)?Xd.value=kd[_f]:mergeReactiveObjects(Xd,kd[_f])),od.state.value[Ra][_f]=Xd);else if(typeof Xd=="function"){const pf=Ud(Xd,_f);Jd[_f]=pf,pd.actions[_f]=Xd}}return assign(zd,Jd),assign(toRaw(zd),Jd),Object.defineProperty(zd,"$state",{get:()=>od.state.value[Ra],set:_f=>{Gd(Xd=>{assign(Xd,_f)})}}),od._p.forEach(_f=>{assign(zd,dd.run(()=>_f({store:zd,app:od._a,pinia:od,options:pd})))}),kd&&ud&&nd.hydrate&&nd.hydrate(zd.$state,kd),md=!0,vd=!0,zd}/*! #__NO_SIDE_EFFECTS__ */function defineStore(Ra,qa,nd){let od,ld;const ud=typeof qa=="function";typeof Ra=="string"?(od=Ra,ld=ud?nd:qa):(ld=Ra,od=Ra.id);function dd(pd,fd){const md=hasInjectionContext();return pd=pd||(md?inject(piniaSymbol,null):null),pd&&setActivePinia(pd),pd=activePinia,pd._s.has(od)||(ud?createSetupStore(od,qa,ld,pd):createOptionsStore(od,ld,pd)),pd._s.get(od)}return dd.$id=od,dd}function storeToRefs(Ra){{const qa=toRaw(Ra),nd={};for(const od in qa){const ld=qa[od];(isRef(ld)||isReactive(ld))&&(nd[od]=toRef$1(Ra,od))}return nd}}const sides=["top","right","bottom","left"],min$1=Math.min,max$2=Math.max,round=Math.round,floor=Math.floor,createCoords=Ra=>({x:Ra,y:Ra}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(Ra,qa,nd){return max$2(Ra,min$1(qa,nd))}function evaluate$1(Ra,qa){return typeof Ra=="function"?Ra(qa):Ra}function getSide(Ra){return Ra.split("-")[0]}function getAlignment(Ra){return Ra.split("-")[1]}function getOppositeAxis(Ra){return Ra==="x"?"y":"x"}function getAxisLength(Ra){return Ra==="y"?"height":"width"}function getSideAxis(Ra){return["top","bottom"].includes(getSide(Ra))?"y":"x"}function getAlignmentAxis(Ra){return getOppositeAxis(getSideAxis(Ra))}function getAlignmentSides(Ra,qa,nd){nd===void 0&&(nd=!1);const od=getAlignment(Ra),ld=getAlignmentAxis(Ra),ud=getAxisLength(ld);let dd=ld==="x"?od===(nd?"end":"start")?"right":"left":od==="start"?"bottom":"top";return qa.reference[ud]>qa.floating[ud]&&(dd=getOppositePlacement(dd)),[dd,getOppositePlacement(dd)]}function getExpandedPlacements(Ra){const qa=getOppositePlacement(Ra);return[getOppositeAlignmentPlacement(Ra),qa,getOppositeAlignmentPlacement(qa)]}function getOppositeAlignmentPlacement(Ra){return Ra.replace(/start|end/g,qa=>oppositeAlignmentMap[qa])}function getSideList(Ra,qa,nd){const od=["left","right"],ld=["right","left"],ud=["top","bottom"],dd=["bottom","top"];switch(Ra){case"top":case"bottom":return nd?qa?ld:od:qa?od:ld;case"left":case"right":return qa?ud:dd;default:return[]}}function getOppositeAxisPlacements(Ra,qa,nd,od){const ld=getAlignment(Ra);let ud=getSideList(getSide(Ra),nd==="start",od);return ld&&(ud=ud.map(dd=>dd+"-"+ld),qa&&(ud=ud.concat(ud.map(getOppositeAlignmentPlacement)))),ud}function getOppositePlacement(Ra){return Ra.replace(/left|right|bottom|top/g,qa=>oppositeSideMap[qa])}function expandPaddingObject(Ra){return{top:0,right:0,bottom:0,left:0,...Ra}}function getPaddingObject(Ra){return typeof Ra!="number"?expandPaddingObject(Ra):{top:Ra,right:Ra,bottom:Ra,left:Ra}}function rectToClientRect(Ra){const{x:qa,y:nd,width:od,height:ld}=Ra;return{width:od,height:ld,top:nd,left:qa,right:qa+od,bottom:nd+ld,x:qa,y:nd}}function computeCoordsFromPlacement(Ra,qa,nd){let{reference:od,floating:ld}=Ra;const ud=getSideAxis(qa),dd=getAlignmentAxis(qa),pd=getAxisLength(dd),fd=getSide(qa),md=ud==="y",vd=od.x+od.width/2-ld.width/2,Ad=od.y+od.height/2-ld.height/2,Nd=od[pd]/2-ld[pd]/2;let Od;switch(fd){case"top":Od={x:vd,y:od.y-ld.height};break;case"bottom":Od={x:vd,y:od.y+od.height};break;case"right":Od={x:od.x+od.width,y:Ad};break;case"left":Od={x:od.x-ld.width,y:Ad};break;default:Od={x:od.x,y:od.y}}switch(getAlignment(qa)){case"start":Od[dd]-=Nd*(nd&&md?-1:1);break;case"end":Od[dd]+=Nd*(nd&&md?-1:1);break}return Od}const computePosition$1=async(Ra,qa,nd)=>{const{placement:od="bottom",strategy:ld="absolute",middleware:ud=[],platform:dd}=nd,pd=ud.filter(Boolean),fd=await(dd.isRTL==null?void 0:dd.isRTL(qa));let md=await dd.getElementRects({reference:Ra,floating:qa,strategy:ld}),{x:vd,y:Ad}=computeCoordsFromPlacement(md,od,fd),Nd=od,Od={},kd=0;for(let Ld=0;Ld({name:"arrow",options:Ra,async fn(qa){const{x:nd,y:od,placement:ld,rects:ud,platform:dd,elements:pd,middlewareData:fd}=qa,{element:md,padding:vd=0}=evaluate$1(Ra,qa)||{};if(md==null)return{};const Ad=getPaddingObject(vd),Nd={x:nd,y:od},Od=getAlignmentAxis(ld),kd=getAxisLength(Od),Ld=await dd.getDimensions(md),Gd=Od==="y",jd=Gd?"top":"left",Fd=Gd?"bottom":"right",Ud=Gd?"clientHeight":"clientWidth",qd=ud.reference[kd]+ud.reference[Od]-Nd[Od]-ud.floating[kd],zd=Nd[Od]-ud.reference[Od],Wd=await(dd.getOffsetParent==null?void 0:dd.getOffsetParent(md));let Jd=Wd?Wd[Ud]:0;(!Jd||!await(dd.isElement==null?void 0:dd.isElement(Wd)))&&(Jd=pd.floating[Ud]||ud.floating[kd]);const _f=qd/2-zd/2,Xd=Jd/2-Ld[kd]/2-1,pf=min$1(Ad[jd],Xd),mf=min$1(Ad[Fd],Xd),Sf=pf,Tf=Jd-Ld[kd]-mf,Af=Jd/2-Ld[kd]/2+_f,Ef=clamp(Sf,Af,Tf),Nf=!fd.arrow&&getAlignment(ld)!=null&&Af!==Ef&&ud.reference[kd]/2-(AfAf<=0)){var mf,Sf;const Af=(((mf=ud.flip)==null?void 0:mf.index)||0)+1,Ef=Jd[Af];if(Ef)return{data:{index:Af,overflows:pf},reset:{placement:Ef}};let Nf=(Sf=pf.filter(If=>If.overflows[0]<=0).sort((If,Gf)=>If.overflows[1]-Gf.overflows[1])[0])==null?void 0:Sf.placement;if(!Nf)switch(Od){case"bestFit":{var Tf;const If=(Tf=pf.filter(Gf=>{if(Wd){const Qf=getSideAxis(Gf.placement);return Qf===Fd||Qf==="y"}return!0}).map(Gf=>[Gf.placement,Gf.overflows.filter(Qf=>Qf>0).reduce((Qf,Xf)=>Qf+Xf,0)]).sort((Gf,Qf)=>Gf[1]-Qf[1])[0])==null?void 0:Tf[0];If&&(Nf=If);break}case"initialPlacement":Nf=pd;break}if(ld!==Nf)return{reset:{placement:Nf}}}return{}}}};function getSideOffsets(Ra,qa){return{top:Ra.top-qa.height,right:Ra.right-qa.width,bottom:Ra.bottom-qa.height,left:Ra.left-qa.width}}function isAnySideFullyClipped(Ra){return sides.some(qa=>Ra[qa]>=0)}const hide$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"hide",options:Ra,async fn(qa){const{rects:nd}=qa,{strategy:od="referenceHidden",...ld}=evaluate$1(Ra,qa);switch(od){case"referenceHidden":{const ud=await detectOverflow(qa,{...ld,elementContext:"reference"}),dd=getSideOffsets(ud,nd.reference);return{data:{referenceHiddenOffsets:dd,referenceHidden:isAnySideFullyClipped(dd)}}}case"escaped":{const ud=await detectOverflow(qa,{...ld,altBoundary:!0}),dd=getSideOffsets(ud,nd.floating);return{data:{escapedOffsets:dd,escaped:isAnySideFullyClipped(dd)}}}default:return{}}}}};async function convertValueToCoords(Ra,qa){const{placement:nd,platform:od,elements:ld}=Ra,ud=await(od.isRTL==null?void 0:od.isRTL(ld.floating)),dd=getSide(nd),pd=getAlignment(nd),fd=getSideAxis(nd)==="y",md=["left","top"].includes(dd)?-1:1,vd=ud&&fd?-1:1,Ad=evaluate$1(qa,Ra);let{mainAxis:Nd,crossAxis:Od,alignmentAxis:kd}=typeof Ad=="number"?{mainAxis:Ad,crossAxis:0,alignmentAxis:null}:{mainAxis:Ad.mainAxis||0,crossAxis:Ad.crossAxis||0,alignmentAxis:Ad.alignmentAxis};return pd&&typeof kd=="number"&&(Od=pd==="end"?kd*-1:kd),fd?{x:Od*vd,y:Nd*md}:{x:Nd*md,y:Od*vd}}const offset$1=function(Ra){return Ra===void 0&&(Ra=0),{name:"offset",options:Ra,async fn(qa){var nd,od;const{x:ld,y:ud,placement:dd,middlewareData:pd}=qa,fd=await convertValueToCoords(qa,Ra);return dd===((nd=pd.offset)==null?void 0:nd.placement)&&(od=pd.arrow)!=null&&od.alignmentOffset?{}:{x:ld+fd.x,y:ud+fd.y,data:{...fd,placement:dd}}}}},shift$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"shift",options:Ra,async fn(qa){const{x:nd,y:od,placement:ld}=qa,{mainAxis:ud=!0,crossAxis:dd=!1,limiter:pd={fn:Gd=>{let{x:jd,y:Fd}=Gd;return{x:jd,y:Fd}}},...fd}=evaluate$1(Ra,qa),md={x:nd,y:od},vd=await detectOverflow(qa,fd),Ad=getSideAxis(getSide(ld)),Nd=getOppositeAxis(Ad);let Od=md[Nd],kd=md[Ad];if(ud){const Gd=Nd==="y"?"top":"left",jd=Nd==="y"?"bottom":"right",Fd=Od+vd[Gd],Ud=Od-vd[jd];Od=clamp(Fd,Od,Ud)}if(dd){const Gd=Ad==="y"?"top":"left",jd=Ad==="y"?"bottom":"right",Fd=kd+vd[Gd],Ud=kd-vd[jd];kd=clamp(Fd,kd,Ud)}const Ld=pd.fn({...qa,[Nd]:Od,[Ad]:kd});return{...Ld,data:{x:Ld.x-nd,y:Ld.y-od,enabled:{[Nd]:ud,[Ad]:dd}}}}}},limitShift$1=function(Ra){return Ra===void 0&&(Ra={}),{options:Ra,fn(qa){const{x:nd,y:od,placement:ld,rects:ud,middlewareData:dd}=qa,{offset:pd=0,mainAxis:fd=!0,crossAxis:md=!0}=evaluate$1(Ra,qa),vd={x:nd,y:od},Ad=getSideAxis(ld),Nd=getOppositeAxis(Ad);let Od=vd[Nd],kd=vd[Ad];const Ld=evaluate$1(pd,qa),Gd=typeof Ld=="number"?{mainAxis:Ld,crossAxis:0}:{mainAxis:0,crossAxis:0,...Ld};if(fd){const Ud=Nd==="y"?"height":"width",qd=ud.reference[Nd]-ud.floating[Ud]+Gd.mainAxis,zd=ud.reference[Nd]+ud.reference[Ud]-Gd.mainAxis;Odzd&&(Od=zd)}if(md){var jd,Fd;const Ud=Nd==="y"?"width":"height",qd=["top","left"].includes(getSide(ld)),zd=ud.reference[Ad]-ud.floating[Ud]+(qd&&((jd=dd.offset)==null?void 0:jd[Ad])||0)+(qd?0:Gd.crossAxis),Wd=ud.reference[Ad]+ud.reference[Ud]+(qd?0:((Fd=dd.offset)==null?void 0:Fd[Ad])||0)-(qd?Gd.crossAxis:0);kdWd&&(kd=Wd)}return{[Nd]:Od,[Ad]:kd}}}},size$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"size",options:Ra,async fn(qa){var nd,od;const{placement:ld,rects:ud,platform:dd,elements:pd}=qa,{apply:fd=()=>{},...md}=evaluate$1(Ra,qa),vd=await detectOverflow(qa,md),Ad=getSide(ld),Nd=getAlignment(ld),Od=getSideAxis(ld)==="y",{width:kd,height:Ld}=ud.floating;let Gd,jd;Ad==="top"||Ad==="bottom"?(Gd=Ad,jd=Nd===(await(dd.isRTL==null?void 0:dd.isRTL(pd.floating))?"start":"end")?"left":"right"):(jd=Ad,Gd=Nd==="end"?"top":"bottom");const Fd=Ld-vd.top-vd.bottom,Ud=kd-vd.left-vd.right,qd=min$1(Ld-vd[Gd],Fd),zd=min$1(kd-vd[jd],Ud),Wd=!qa.middlewareData.shift;let Jd=qd,_f=zd;if((nd=qa.middlewareData.shift)!=null&&nd.enabled.x&&(_f=Ud),(od=qa.middlewareData.shift)!=null&&od.enabled.y&&(Jd=Fd),Wd&&!Nd){const pf=max$2(vd.left,0),mf=max$2(vd.right,0),Sf=max$2(vd.top,0),Tf=max$2(vd.bottom,0);Od?_f=kd-2*(pf!==0||mf!==0?pf+mf:max$2(vd.left,vd.right)):Jd=Ld-2*(Sf!==0||Tf!==0?Sf+Tf:max$2(vd.top,vd.bottom))}await fd({...qa,availableWidth:_f,availableHeight:Jd});const Xd=await dd.getDimensions(pd.floating);return kd!==Xd.width||Ld!==Xd.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName(Ra){return isNode$2(Ra)?(Ra.nodeName||"").toLowerCase():"#document"}function getWindow(Ra){var qa;return(Ra==null||(qa=Ra.ownerDocument)==null?void 0:qa.defaultView)||window}function getDocumentElement(Ra){var qa;return(qa=(isNode$2(Ra)?Ra.ownerDocument:Ra.document)||window.document)==null?void 0:qa.documentElement}function isNode$2(Ra){return hasWindow()?Ra instanceof Node||Ra instanceof getWindow(Ra).Node:!1}function isElement$2(Ra){return hasWindow()?Ra instanceof Element||Ra instanceof getWindow(Ra).Element:!1}function isHTMLElement(Ra){return hasWindow()?Ra instanceof HTMLElement||Ra instanceof getWindow(Ra).HTMLElement:!1}function isShadowRoot(Ra){return!hasWindow()||typeof ShadowRoot>"u"?!1:Ra instanceof ShadowRoot||Ra instanceof getWindow(Ra).ShadowRoot}function isOverflowElement(Ra){const{overflow:qa,overflowX:nd,overflowY:od,display:ld}=getComputedStyle$1(Ra);return/auto|scroll|overlay|hidden|clip/.test(qa+od+nd)&&!["inline","contents"].includes(ld)}function isTableElement(Ra){return["table","td","th"].includes(getNodeName(Ra))}function isTopLayer(Ra){return[":popover-open",":modal"].some(qa=>{try{return Ra.matches(qa)}catch{return!1}})}function isContainingBlock(Ra){const qa=isWebKit(),nd=isElement$2(Ra)?getComputedStyle$1(Ra):Ra;return nd.transform!=="none"||nd.perspective!=="none"||(nd.containerType?nd.containerType!=="normal":!1)||!qa&&(nd.backdropFilter?nd.backdropFilter!=="none":!1)||!qa&&(nd.filter?nd.filter!=="none":!1)||["transform","perspective","filter"].some(od=>(nd.willChange||"").includes(od))||["paint","layout","strict","content"].some(od=>(nd.contain||"").includes(od))}function getContainingBlock(Ra){let qa=getParentNode(Ra);for(;isHTMLElement(qa)&&!isLastTraversableNode(qa);){if(isContainingBlock(qa))return qa;if(isTopLayer(qa))return null;qa=getParentNode(qa)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(Ra){return["html","body","#document"].includes(getNodeName(Ra))}function getComputedStyle$1(Ra){return getWindow(Ra).getComputedStyle(Ra)}function getNodeScroll(Ra){return isElement$2(Ra)?{scrollLeft:Ra.scrollLeft,scrollTop:Ra.scrollTop}:{scrollLeft:Ra.scrollX,scrollTop:Ra.scrollY}}function getParentNode(Ra){if(getNodeName(Ra)==="html")return Ra;const qa=Ra.assignedSlot||Ra.parentNode||isShadowRoot(Ra)&&Ra.host||getDocumentElement(Ra);return isShadowRoot(qa)?qa.host:qa}function getNearestOverflowAncestor(Ra){const qa=getParentNode(Ra);return isLastTraversableNode(qa)?Ra.ownerDocument?Ra.ownerDocument.body:Ra.body:isHTMLElement(qa)&&isOverflowElement(qa)?qa:getNearestOverflowAncestor(qa)}function getOverflowAncestors(Ra,qa,nd){var od;qa===void 0&&(qa=[]),nd===void 0&&(nd=!0);const ld=getNearestOverflowAncestor(Ra),ud=ld===((od=Ra.ownerDocument)==null?void 0:od.body),dd=getWindow(ld);if(ud){const pd=getFrameElement(dd);return qa.concat(dd,dd.visualViewport||[],isOverflowElement(ld)?ld:[],pd&&nd?getOverflowAncestors(pd):[])}return qa.concat(ld,getOverflowAncestors(ld,[],nd))}function getFrameElement(Ra){return Ra.parent&&Object.getPrototypeOf(Ra.parent)?Ra.frameElement:null}function getCssDimensions(Ra){const qa=getComputedStyle$1(Ra);let nd=parseFloat(qa.width)||0,od=parseFloat(qa.height)||0;const ld=isHTMLElement(Ra),ud=ld?Ra.offsetWidth:nd,dd=ld?Ra.offsetHeight:od,pd=round(nd)!==ud||round(od)!==dd;return pd&&(nd=ud,od=dd),{width:nd,height:od,$:pd}}function unwrapElement$1(Ra){return isElement$2(Ra)?Ra:Ra.contextElement}function getScale(Ra){const qa=unwrapElement$1(Ra);if(!isHTMLElement(qa))return createCoords(1);const nd=qa.getBoundingClientRect(),{width:od,height:ld,$:ud}=getCssDimensions(qa);let dd=(ud?round(nd.width):nd.width)/od,pd=(ud?round(nd.height):nd.height)/ld;return(!dd||!Number.isFinite(dd))&&(dd=1),(!pd||!Number.isFinite(pd))&&(pd=1),{x:dd,y:pd}}const noOffsets=createCoords(0);function getVisualOffsets(Ra){const qa=getWindow(Ra);return!isWebKit()||!qa.visualViewport?noOffsets:{x:qa.visualViewport.offsetLeft,y:qa.visualViewport.offsetTop}}function shouldAddVisualOffsets(Ra,qa,nd){return qa===void 0&&(qa=!1),!nd||qa&&nd!==getWindow(Ra)?!1:qa}function getBoundingClientRect(Ra,qa,nd,od){qa===void 0&&(qa=!1),nd===void 0&&(nd=!1);const ld=Ra.getBoundingClientRect(),ud=unwrapElement$1(Ra);let dd=createCoords(1);qa&&(od?isElement$2(od)&&(dd=getScale(od)):dd=getScale(Ra));const pd=shouldAddVisualOffsets(ud,nd,od)?getVisualOffsets(ud):createCoords(0);let fd=(ld.left+pd.x)/dd.x,md=(ld.top+pd.y)/dd.y,vd=ld.width/dd.x,Ad=ld.height/dd.y;if(ud){const Nd=getWindow(ud),Od=od&&isElement$2(od)?getWindow(od):od;let kd=Nd,Ld=getFrameElement(kd);for(;Ld&&od&&Od!==kd;){const Gd=getScale(Ld),jd=Ld.getBoundingClientRect(),Fd=getComputedStyle$1(Ld),Ud=jd.left+(Ld.clientLeft+parseFloat(Fd.paddingLeft))*Gd.x,qd=jd.top+(Ld.clientTop+parseFloat(Fd.paddingTop))*Gd.y;fd*=Gd.x,md*=Gd.y,vd*=Gd.x,Ad*=Gd.y,fd+=Ud,md+=qd,kd=getWindow(Ld),Ld=getFrameElement(kd)}}return rectToClientRect({width:vd,height:Ad,x:fd,y:md})}function getWindowScrollBarX(Ra,qa){const nd=getNodeScroll(Ra).scrollLeft;return qa?qa.left+nd:getBoundingClientRect(getDocumentElement(Ra)).left+nd}function getHTMLOffset(Ra,qa,nd){nd===void 0&&(nd=!1);const od=Ra.getBoundingClientRect(),ld=od.left+qa.scrollLeft-(nd?0:getWindowScrollBarX(Ra,od)),ud=od.top+qa.scrollTop;return{x:ld,y:ud}}function convertOffsetParentRelativeRectToViewportRelativeRect(Ra){let{elements:qa,rect:nd,offsetParent:od,strategy:ld}=Ra;const ud=ld==="fixed",dd=getDocumentElement(od),pd=qa?isTopLayer(qa.floating):!1;if(od===dd||pd&&ud)return nd;let fd={scrollLeft:0,scrollTop:0},md=createCoords(1);const vd=createCoords(0),Ad=isHTMLElement(od);if((Ad||!Ad&&!ud)&&((getNodeName(od)!=="body"||isOverflowElement(dd))&&(fd=getNodeScroll(od)),isHTMLElement(od))){const Od=getBoundingClientRect(od);md=getScale(od),vd.x=Od.x+od.clientLeft,vd.y=Od.y+od.clientTop}const Nd=dd&&!Ad&&!ud?getHTMLOffset(dd,fd,!0):createCoords(0);return{width:nd.width*md.x,height:nd.height*md.y,x:nd.x*md.x-fd.scrollLeft*md.x+vd.x+Nd.x,y:nd.y*md.y-fd.scrollTop*md.y+vd.y+Nd.y}}function getClientRects(Ra){return Array.from(Ra.getClientRects())}function getDocumentRect(Ra){const qa=getDocumentElement(Ra),nd=getNodeScroll(Ra),od=Ra.ownerDocument.body,ld=max$2(qa.scrollWidth,qa.clientWidth,od.scrollWidth,od.clientWidth),ud=max$2(qa.scrollHeight,qa.clientHeight,od.scrollHeight,od.clientHeight);let dd=-nd.scrollLeft+getWindowScrollBarX(Ra);const pd=-nd.scrollTop;return getComputedStyle$1(od).direction==="rtl"&&(dd+=max$2(qa.clientWidth,od.clientWidth)-ld),{width:ld,height:ud,x:dd,y:pd}}function getViewportRect(Ra,qa){const nd=getWindow(Ra),od=getDocumentElement(Ra),ld=nd.visualViewport;let ud=od.clientWidth,dd=od.clientHeight,pd=0,fd=0;if(ld){ud=ld.width,dd=ld.height;const md=isWebKit();(!md||md&&qa==="fixed")&&(pd=ld.offsetLeft,fd=ld.offsetTop)}return{width:ud,height:dd,x:pd,y:fd}}function getInnerBoundingClientRect(Ra,qa){const nd=getBoundingClientRect(Ra,!0,qa==="fixed"),od=nd.top+Ra.clientTop,ld=nd.left+Ra.clientLeft,ud=isHTMLElement(Ra)?getScale(Ra):createCoords(1),dd=Ra.clientWidth*ud.x,pd=Ra.clientHeight*ud.y,fd=ld*ud.x,md=od*ud.y;return{width:dd,height:pd,x:fd,y:md}}function getClientRectFromClippingAncestor(Ra,qa,nd){let od;if(qa==="viewport")od=getViewportRect(Ra,nd);else if(qa==="document")od=getDocumentRect(getDocumentElement(Ra));else if(isElement$2(qa))od=getInnerBoundingClientRect(qa,nd);else{const ld=getVisualOffsets(Ra);od={x:qa.x-ld.x,y:qa.y-ld.y,width:qa.width,height:qa.height}}return rectToClientRect(od)}function hasFixedPositionAncestor(Ra,qa){const nd=getParentNode(Ra);return nd===qa||!isElement$2(nd)||isLastTraversableNode(nd)?!1:getComputedStyle$1(nd).position==="fixed"||hasFixedPositionAncestor(nd,qa)}function getClippingElementAncestors(Ra,qa){const nd=qa.get(Ra);if(nd)return nd;let od=getOverflowAncestors(Ra,[],!1).filter(pd=>isElement$2(pd)&&getNodeName(pd)!=="body"),ld=null;const ud=getComputedStyle$1(Ra).position==="fixed";let dd=ud?getParentNode(Ra):Ra;for(;isElement$2(dd)&&!isLastTraversableNode(dd);){const pd=getComputedStyle$1(dd),fd=isContainingBlock(dd);!fd&&pd.position==="fixed"&&(ld=null),(ud?!fd&&!ld:!fd&&pd.position==="static"&&!!ld&&["absolute","fixed"].includes(ld.position)||isOverflowElement(dd)&&!fd&&hasFixedPositionAncestor(Ra,dd))?od=od.filter(vd=>vd!==dd):ld=pd,dd=getParentNode(dd)}return qa.set(Ra,od),od}function getClippingRect(Ra){let{element:qa,boundary:nd,rootBoundary:od,strategy:ld}=Ra;const dd=[...nd==="clippingAncestors"?isTopLayer(qa)?[]:getClippingElementAncestors(qa,this._c):[].concat(nd),od],pd=dd[0],fd=dd.reduce((md,vd)=>{const Ad=getClientRectFromClippingAncestor(qa,vd,ld);return md.top=max$2(Ad.top,md.top),md.right=min$1(Ad.right,md.right),md.bottom=min$1(Ad.bottom,md.bottom),md.left=max$2(Ad.left,md.left),md},getClientRectFromClippingAncestor(qa,pd,ld));return{width:fd.right-fd.left,height:fd.bottom-fd.top,x:fd.left,y:fd.top}}function getDimensions(Ra){const{width:qa,height:nd}=getCssDimensions(Ra);return{width:qa,height:nd}}function getRectRelativeToOffsetParent(Ra,qa,nd){const od=isHTMLElement(qa),ld=getDocumentElement(qa),ud=nd==="fixed",dd=getBoundingClientRect(Ra,!0,ud,qa);let pd={scrollLeft:0,scrollTop:0};const fd=createCoords(0);if(od||!od&&!ud)if((getNodeName(qa)!=="body"||isOverflowElement(ld))&&(pd=getNodeScroll(qa)),od){const Nd=getBoundingClientRect(qa,!0,ud,qa);fd.x=Nd.x+qa.clientLeft,fd.y=Nd.y+qa.clientTop}else ld&&(fd.x=getWindowScrollBarX(ld));const md=ld&&!od&&!ud?getHTMLOffset(ld,pd):createCoords(0),vd=dd.left+pd.scrollLeft-fd.x-md.x,Ad=dd.top+pd.scrollTop-fd.y-md.y;return{x:vd,y:Ad,width:dd.width,height:dd.height}}function isStaticPositioned(Ra){return getComputedStyle$1(Ra).position==="static"}function getTrueOffsetParent(Ra,qa){if(!isHTMLElement(Ra)||getComputedStyle$1(Ra).position==="fixed")return null;if(qa)return qa(Ra);let nd=Ra.offsetParent;return getDocumentElement(Ra)===nd&&(nd=nd.ownerDocument.body),nd}function getOffsetParent(Ra,qa){const nd=getWindow(Ra);if(isTopLayer(Ra))return nd;if(!isHTMLElement(Ra)){let ld=getParentNode(Ra);for(;ld&&!isLastTraversableNode(ld);){if(isElement$2(ld)&&!isStaticPositioned(ld))return ld;ld=getParentNode(ld)}return nd}let od=getTrueOffsetParent(Ra,qa);for(;od&&isTableElement(od)&&isStaticPositioned(od);)od=getTrueOffsetParent(od,qa);return od&&isLastTraversableNode(od)&&isStaticPositioned(od)&&!isContainingBlock(od)?nd:od||getContainingBlock(Ra)||nd}const getElementRects=async function(Ra){const qa=this.getOffsetParent||getOffsetParent,nd=this.getDimensions,od=await nd(Ra.floating);return{reference:getRectRelativeToOffsetParent(Ra.reference,await qa(Ra.floating),Ra.strategy),floating:{x:0,y:0,width:od.width,height:od.height}}};function isRTL(Ra){return getComputedStyle$1(Ra).direction==="rtl"}const platform$3={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$2,isRTL};function observeMove(Ra,qa){let nd=null,od;const ld=getDocumentElement(Ra);function ud(){var pd;clearTimeout(od),(pd=nd)==null||pd.disconnect(),nd=null}function dd(pd,fd){pd===void 0&&(pd=!1),fd===void 0&&(fd=1),ud();const{left:md,top:vd,width:Ad,height:Nd}=Ra.getBoundingClientRect();if(pd||qa(),!Ad||!Nd)return;const Od=floor(vd),kd=floor(ld.clientWidth-(md+Ad)),Ld=floor(ld.clientHeight-(vd+Nd)),Gd=floor(md),Fd={rootMargin:-Od+"px "+-kd+"px "+-Ld+"px "+-Gd+"px",threshold:max$2(0,min$1(1,fd))||1};let Ud=!0;function qd(zd){const Wd=zd[0].intersectionRatio;if(Wd!==fd){if(!Ud)return dd();Wd?dd(!1,Wd):od=setTimeout(()=>{dd(!1,1e-7)},1e3)}Ud=!1}try{nd=new IntersectionObserver(qd,{...Fd,root:ld.ownerDocument})}catch{nd=new IntersectionObserver(qd,Fd)}nd.observe(Ra)}return dd(!0),ud}function autoUpdate(Ra,qa,nd,od){od===void 0&&(od={});const{ancestorScroll:ld=!0,ancestorResize:ud=!0,elementResize:dd=typeof ResizeObserver=="function",layoutShift:pd=typeof IntersectionObserver=="function",animationFrame:fd=!1}=od,md=unwrapElement$1(Ra),vd=ld||ud?[...md?getOverflowAncestors(md):[],...getOverflowAncestors(qa)]:[];vd.forEach(jd=>{ld&&jd.addEventListener("scroll",nd,{passive:!0}),ud&&jd.addEventListener("resize",nd)});const Ad=md&&pd?observeMove(md,nd):null;let Nd=-1,Od=null;dd&&(Od=new ResizeObserver(jd=>{let[Fd]=jd;Fd&&Fd.target===md&&Od&&(Od.unobserve(qa),cancelAnimationFrame(Nd),Nd=requestAnimationFrame(()=>{var Ud;(Ud=Od)==null||Ud.observe(qa)})),nd()}),md&&!fd&&Od.observe(md),Od.observe(qa));let kd,Ld=fd?getBoundingClientRect(Ra):null;fd&&Gd();function Gd(){const jd=getBoundingClientRect(Ra);Ld&&(jd.x!==Ld.x||jd.y!==Ld.y||jd.width!==Ld.width||jd.height!==Ld.height)&&nd(),Ld=jd,kd=requestAnimationFrame(Gd)}return nd(),()=>{var jd;vd.forEach(Fd=>{ld&&Fd.removeEventListener("scroll",nd),ud&&Fd.removeEventListener("resize",nd)}),Ad==null||Ad(),(jd=Od)==null||jd.disconnect(),Od=null,fd&&cancelAnimationFrame(kd)}}const offset=offset$1,shift=shift$1,flip=flip$1,size=size$1,hide=hide$1,arrow$1=arrow$2,limitShift=limitShift$1,computePosition=(Ra,qa,nd)=>{const od=new Map,ld={platform:platform$3,...nd},ud={...ld.platform,_c:od};return computePosition$1(Ra,qa,{...ld,platform:ud})};function isComponentPublicInstance(Ra){return Ra!=null&&typeof Ra=="object"&&"$el"in Ra}function unwrapElement(Ra){if(isComponentPublicInstance(Ra)){const qa=Ra.$el;return isNode$2(qa)&&getNodeName(qa)==="#comment"?null:qa}return Ra}function toValue$2(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function arrow(Ra){return{name:"arrow",options:Ra,fn(qa){const nd=unwrapElement(toValue$2(Ra.element));return nd==null?{}:arrow$1({element:nd,padding:Ra.padding}).fn(qa)}}}function getDPR(Ra){return typeof window>"u"?1:(Ra.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(Ra,qa){const nd=getDPR(Ra);return Math.round(qa*nd)/nd}function useFloating(Ra,qa,nd){nd===void 0&&(nd={});const od=nd.whileElementsMounted,ld=computed(()=>{var Jd;return(Jd=toValue$2(nd.open))!=null?Jd:!0}),ud=computed(()=>toValue$2(nd.middleware)),dd=computed(()=>{var Jd;return(Jd=toValue$2(nd.placement))!=null?Jd:"bottom"}),pd=computed(()=>{var Jd;return(Jd=toValue$2(nd.strategy))!=null?Jd:"absolute"}),fd=computed(()=>{var Jd;return(Jd=toValue$2(nd.transform))!=null?Jd:!0}),md=computed(()=>unwrapElement(Ra.value)),vd=computed(()=>unwrapElement(qa.value)),Ad=ref$1(0),Nd=ref$1(0),Od=ref$1(pd.value),kd=ref$1(dd.value),Ld=shallowRef({}),Gd=ref$1(!1),jd=computed(()=>{const Jd={position:Od.value,left:"0",top:"0"};if(!vd.value)return Jd;const _f=roundByDPR(vd.value,Ad.value),Xd=roundByDPR(vd.value,Nd.value);return fd.value?{...Jd,transform:"translate("+_f+"px, "+Xd+"px)",...getDPR(vd.value)>=1.5&&{willChange:"transform"}}:{position:Od.value,left:_f+"px",top:Xd+"px"}});let Fd;function Ud(){if(md.value==null||vd.value==null)return;const Jd=ld.value;computePosition(md.value,vd.value,{middleware:ud.value,placement:dd.value,strategy:pd.value}).then(_f=>{Ad.value=_f.x,Nd.value=_f.y,Od.value=_f.strategy,kd.value=_f.placement,Ld.value=_f.middlewareData,Gd.value=Jd!==!1})}function qd(){typeof Fd=="function"&&(Fd(),Fd=void 0)}function zd(){if(qd(),od===void 0){Ud();return}if(md.value!=null&&vd.value!=null){Fd=od(md.value,vd.value,Ud);return}}function Wd(){ld.value||(Gd.value=!1)}return watch([ud,dd,pd,ld],Ud,{flush:"sync"}),watch([md,vd],zd,{flush:"sync"}),watch(ld,Wd,{flush:"sync"}),getCurrentScope()&&onScopeDispose(qd),{x:shallowReadonly(Ad),y:shallowReadonly(Nd),strategy:shallowReadonly(Od),placement:shallowReadonly(kd),middlewareData:shallowReadonly(Ld),isPositioned:shallowReadonly(Gd),floatingStyles:jd,update:Ud}}let $488c6ddbf4ef74c2$var$formatterCache=new Map,$488c6ddbf4ef74c2$var$supportsSignDisplay=!1;try{$488c6ddbf4ef74c2$var$supportsSignDisplay=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let $488c6ddbf4ef74c2$var$supportsUnit=!1;try{$488c6ddbf4ef74c2$var$supportsUnit=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $488c6ddbf4ef74c2$var$UNITS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5{format(qa){let nd="";if(!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null?nd=$488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter,this.options.signDisplay,qa):nd=this.numberFormatter.format(qa),this.options.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var od;let{unit:ld,unitDisplay:ud="short",locale:dd}=this.resolvedOptions();if(!ld)return nd;let pd=(od=$488c6ddbf4ef74c2$var$UNITS[ld])===null||od===void 0?void 0:od[ud];nd+=pd[dd]||pd.default}return nd}formatToParts(qa){return this.numberFormatter.formatToParts(qa)}formatRange(qa,nd){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(qa,nd);if(nd= start date");return`${this.format(qa)} – ${this.format(nd)}`}formatRangeToParts(qa,nd){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(qa,nd);if(nd= start date");let od=this.numberFormatter.formatToParts(qa),ld=this.numberFormatter.formatToParts(nd);return[...od.map(ud=>({...ud,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...ld.map(ud=>({...ud,source:"endRange"}))]}resolvedOptions(){let qa=this.numberFormatter.resolvedOptions();return!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null&&(qa={...qa,signDisplay:this.options.signDisplay}),!$488c6ddbf4ef74c2$var$supportsUnit&&this.options.style==="unit"&&(qa={...qa,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),qa}constructor(qa,nd={}){this.numberFormatter=$488c6ddbf4ef74c2$var$getCachedNumberFormatter(qa,nd),this.options=nd}}function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(Ra,qa={}){let{numberingSystem:nd}=qa;if(nd&&Ra.includes("-nu-")&&(Ra.includes("-u-")||(Ra+="-u-"),Ra+=`-nu-${nd}`),qa.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var od;let{unit:dd,unitDisplay:pd="short"}=qa;if(!dd)throw new Error('unit option must be provided with style: "unit"');if(!(!((od=$488c6ddbf4ef74c2$var$UNITS[dd])===null||od===void 0)&&od[pd]))throw new Error(`Unsupported unit ${dd} with unitDisplay = ${pd}`);qa={...qa,style:"decimal"}}let ld=Ra+(qa?Object.entries(qa).sort((dd,pd)=>dd[0]0||Object.is(nd,0):qa==="exceptZero"&&(Object.is(nd,-0)||Object.is(nd,0)?nd=Math.abs(nd):od=nd>0),od){let ld=Ra.format(-nd),ud=Ra.format(nd),dd=ld.replace(ud,"").replace(/\u200e|\u061C/,"");return[...dd].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),ld.replace(ud,"!!!").replace(dd,"+").replace("!!!",ud)}else return Ra.format(nd)}}const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX=new RegExp("^.*\\(.*\\).*$"),$6c7bd7858deea686$var$NUMBERING_SYSTEMS=["latn","arab","hanidec","deva","beng"];class $6c7bd7858deea686$export$cd11ab140839f11d{parse(qa){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,qa).parse(qa)}isValidPartialNumber(qa,nd,od){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,qa).isValidPartialNumber(qa,nd,od)}getNumberingSystem(qa){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,qa).options.numberingSystem}constructor(qa,nd={}){this.locale=qa,this.options=nd}}const $6c7bd7858deea686$var$numberParserCache=new Map;function $6c7bd7858deea686$var$getNumberParserImpl(Ra,qa,nd){let od=$6c7bd7858deea686$var$getCachedNumberParser(Ra,qa);if(!Ra.includes("-nu-")&&!od.isValidPartialNumber(nd)){for(let ld of $6c7bd7858deea686$var$NUMBERING_SYSTEMS)if(ld!==od.options.numberingSystem){let ud=$6c7bd7858deea686$var$getCachedNumberParser(Ra+(Ra.includes("-u-")?"-nu-":"-u-nu-")+ld,qa);if(ud.isValidPartialNumber(nd))return ud}}return od}function $6c7bd7858deea686$var$getCachedNumberParser(Ra,qa){let nd=Ra+(qa?Object.entries(qa).sort((ld,ud)=>ld[0]-1&&(nd=`-${nd}`)}let od=nd?+nd:NaN;if(isNaN(od))return NaN;if(this.options.style==="percent"){var ld,ud;let dd={...this.options,style:"decimal",minimumFractionDigits:Math.min(((ld=this.options.minimumFractionDigits)!==null&&ld!==void 0?ld:0)+2,20),maximumFractionDigits:Math.min(((ud=this.options.maximumFractionDigits)!==null&&ud!==void 0?ud:0)+2,20)};return new $6c7bd7858deea686$export$cd11ab140839f11d(this.locale,dd).parse(new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this.locale,dd).format(od))}return this.options.currencySign==="accounting"&&$6c7bd7858deea686$var$CURRENCY_SIGN_REGEX.test(qa)&&(od=-1*od),od}sanitize(qa){return qa=qa.replace(this.symbols.literals,""),this.symbols.minusSign&&(qa=qa.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(qa=qa.replace(",",this.symbols.decimal),qa=qa.replace("،",this.symbols.decimal)),this.symbols.group&&(qa=$6c7bd7858deea686$var$replaceAll(qa,".",this.symbols.group))),this.options.locale==="fr-FR"&&(qa=$6c7bd7858deea686$var$replaceAll(qa,"."," ")),qa}isValidPartialNumber(qa,nd=-1/0,od=1/0){return qa=this.sanitize(qa),this.symbols.minusSign&&qa.startsWith(this.symbols.minusSign)&&nd<0?qa=qa.slice(this.symbols.minusSign.length):this.symbols.plusSign&&qa.startsWith(this.symbols.plusSign)&&od>0&&(qa=qa.slice(this.symbols.plusSign.length)),this.symbols.group&&qa.startsWith(this.symbols.group)||this.symbols.decimal&&qa.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(qa=$6c7bd7858deea686$var$replaceAll(qa,this.symbols.group,"")),qa=qa.replace(this.symbols.numeral,""),this.symbols.decimal&&(qa=qa.replace(this.symbols.decimal,"")),qa.length===0)}constructor(qa,nd={}){this.locale=qa,this.formatter=new Intl.NumberFormat(qa,nd),this.options=this.formatter.resolvedOptions(),this.symbols=$6c7bd7858deea686$var$getSymbols(qa,this.formatter,this.options,nd);var od,ld;this.options.style==="percent"&&(((od=this.options.minimumFractionDigits)!==null&&od!==void 0?od:0)>18||((ld=this.options.maximumFractionDigits)!==null&&ld!==void 0?ld:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const $6c7bd7858deea686$var$nonLiteralParts=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),$6c7bd7858deea686$var$pluralNumbers=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $6c7bd7858deea686$var$getSymbols(Ra,qa,nd,od){var ld,ud,dd,pd;let fd=new Intl.NumberFormat(Ra,{...nd,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),md=fd.formatToParts(-10000.111),vd=fd.formatToParts(10000.111),Ad=$6c7bd7858deea686$var$pluralNumbers.map(pf=>fd.formatToParts(pf));var Nd;let Od=(Nd=(ld=md.find(pf=>pf.type==="minusSign"))===null||ld===void 0?void 0:ld.value)!==null&&Nd!==void 0?Nd:"-",kd=(ud=vd.find(pf=>pf.type==="plusSign"))===null||ud===void 0?void 0:ud.value;!kd&&((od==null?void 0:od.signDisplay)==="exceptZero"||(od==null?void 0:od.signDisplay)==="always")&&(kd="+");let Gd=(dd=new Intl.NumberFormat(Ra,{...nd,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(pf=>pf.type==="decimal"))===null||dd===void 0?void 0:dd.value,jd=(pd=md.find(pf=>pf.type==="group"))===null||pd===void 0?void 0:pd.value,Fd=md.filter(pf=>!$6c7bd7858deea686$var$nonLiteralParts.has(pf.type)).map(pf=>$6c7bd7858deea686$var$escapeRegex(pf.value)),Ud=Ad.flatMap(pf=>pf.filter(mf=>!$6c7bd7858deea686$var$nonLiteralParts.has(mf.type)).map(mf=>$6c7bd7858deea686$var$escapeRegex(mf.value))),qd=[...new Set([...Fd,...Ud])].sort((pf,mf)=>mf.length-pf.length),zd=qd.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${qd.join("|")}|[\\p{White_Space}]`,"gu"),Wd=[...new Intl.NumberFormat(nd.locale,{useGrouping:!1}).format(9876543210)].reverse(),Jd=new Map(Wd.map((pf,mf)=>[pf,mf])),_f=new RegExp(`[${Wd.join("")}]`,"g");return{minusSign:Od,plusSign:kd,decimal:Gd,group:jd,literals:zd,numeral:_f,index:pf=>String(Jd.get(pf))}}function $6c7bd7858deea686$var$replaceAll(Ra,qa,nd){return Ra.replaceAll?Ra.replaceAll(qa,nd):Ra.split(qa).join(nd)}function $6c7bd7858deea686$var$escapeRegex(Ra){return Ra.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q$7(Ra,qa){const nd=typeof Ra=="string"&&!qa?`${Ra}Context`:qa,od=Symbol(nd);return[ld=>{const ud=inject(od,ld);if(ud||ud===null)return ud;throw new Error(`Injection \`${od.toString()}\` not found. Component must be used within ${Array.isArray(Ra)?`one of the following components: ${Ra.join(", ")}`:`\`${Ra}\``}`)},ld=>(provide(od,ld),ld)]}function Ht$4(Ra,qa,nd){const od=nd.originalEvent.target,ld=new CustomEvent(Ra,{bubbles:!1,cancelable:!0,detail:nd});qa&&od.addEventListener(Ra,qa,{once:!0}),od.dispatchEvent(ld)}function Wt$4(Ra,qa=Number.NEGATIVE_INFINITY,nd=Number.POSITIVE_INFINITY){return Math.min(Math.max(Ra,qa),nd)}function Ea$1(Ra,qa){let nd=Ra;const od=qa.toString(),ld=od.indexOf("."),ud=ld>=0?od.length-ld:0;if(ud>0){const dd=10**ud;nd=Math.round(nd*dd)/dd}return nd}function Nr$4(Ra,qa,nd,od){qa=Number(qa),nd=Number(nd);const ld=(Ra-(Number.isNaN(qa)?0:qa))%od;let ud=Ea$1(Math.abs(ld)*2>=od?Ra+Math.sign(ld)*(od-Math.abs(ld)):Ra-ld,od);return Number.isNaN(qa)?!Number.isNaN(nd)&&ud>nd&&(ud=Math.floor(Ea$1(nd/od,od))*od):udnd&&(ud=qa+Math.floor(Ea$1((nd-qa)/od,od))*od),ud=Ea$1(ud,od),ud}function Kt$2(Ra){return Ra==null}function Jr$4(Ra,qa){var nd;const od=shallowRef();return watchEffect(()=>{od.value=Ra()},{...qa,flush:(nd=void 0)!=null?nd:"sync"}),readonly(od)}function ht$4(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function ia$1(){const Ra=new Set,qa=nd=>{Ra.delete(nd)};return{on:nd=>{Ra.add(nd);const od=()=>qa(nd);return ht$4(od),{off:od}},off:qa,trigger:(...nd)=>Promise.all(Array.from(Ra).map(od=>od(...nd)))}}function ei$4(Ra){let qa=!1,nd;const od=effectScope(!0);return(...ld)=>(qa||(nd=od.run(()=>Ra(...ld)),qa=!0),nd)}function xl$3(Ra){let qa=0,nd,od;const ld=()=>{qa-=1,od&&qa<=0&&(od.stop(),nd=void 0,od=void 0)};return(...ud)=>(qa+=1,nd||(od=effectScope(!0),nd=od.run(()=>Ra(...ud))),ht$4(ld),nd)}function Ke$4(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function ti$4(Ra){if(!isRef(Ra))return reactive(Ra);const qa=new Proxy({},{get(nd,od,ld){return unref(Reflect.get(Ra.value,od,ld))},set(nd,od,ld){return isRef(Ra.value[od])&&!isRef(ld)?Ra.value[od].value=ld:Ra.value[od]=ld,!0},deleteProperty(nd,od){return Reflect.deleteProperty(Ra.value,od)},has(nd,od){return Reflect.has(Ra.value,od)},ownKeys(){return Object.keys(Ra.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return reactive(qa)}function Sl$3(Ra){return ti$4(computed(Ra))}const qe$3=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ai$5=Ra=>typeof Ra<"u",oi$4=Object.prototype.toString,li$4=Ra=>oi$4.call(Ra)==="[object Object]",Va$1=()=>{},zo$1=si$4();function si$4(){var Ra,qa;return qe$3&&((Ra=window==null?void 0:window.navigator)==null?void 0:Ra.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((qa=window==null?void 0:window.navigator)==null?void 0:qa.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function El$3(Ra,qa){function nd(...od){return new Promise((ld,ud)=>{Promise.resolve(Ra(()=>qa.apply(this,od),{fn:qa,thisArg:this,args:od})).then(ld).catch(ud)})}return nd}const Pl$3=Ra=>Ra();function ii$5(Ra=Pl$3){const qa=ref$1(!0);function nd(){qa.value=!1}function od(){qa.value=!0}const ld=(...ud)=>{qa.value&&Ra(...ud)};return{isActive:readonly(qa),pause:nd,resume:od,eventFilter:ld}}function Dl$3(Ra){return getCurrentInstance()}function $t$4(Ra,qa=1e4){return customRef((nd,od)=>{let ld=Ke$4(Ra),ud;const dd=()=>setTimeout(()=>{ld=Ke$4(Ra),od()},Ke$4(qa));return ht$4(()=>{clearTimeout(ud)}),{get(){return nd(),ld},set(pd){ld=pd,od(),clearTimeout(ud),ud=dd()}}})}function ui$4(Ra,qa,nd={}){const{eventFilter:od=Pl$3,...ld}=nd;return watch(Ra,El$3(od,qa),ld)}function Ko$2(Ra,qa,nd={}){const{eventFilter:od,...ld}=nd,{eventFilter:ud,pause:dd,resume:pd,isActive:fd}=ii$5(od);return{stop:ui$4(Ra,qa,{...ld,eventFilter:ud}),pause:dd,resume:pd,isActive:fd}}function di$4(Ra,qa,...[nd]){const{flush:od="sync",deep:ld=!1,immediate:ud=!0,direction:dd="both",transform:pd={}}=nd||{},fd=[],md="ltr"in pd&&pd.ltr||(Ad=>Ad),vd="rtl"in pd&&pd.rtl||(Ad=>Ad);return(dd==="both"||dd==="ltr")&&fd.push(Ko$2(Ra,Ad=>{fd.forEach(Nd=>Nd.pause()),qa.value=md(Ad),fd.forEach(Nd=>Nd.resume())},{flush:od,deep:ld,immediate:ud})),(dd==="both"||dd==="rtl")&&fd.push(Ko$2(qa,Ad=>{fd.forEach(Nd=>Nd.pause()),Ra.value=vd(Ad),fd.forEach(Nd=>Nd.resume())},{flush:od,deep:ld,immediate:ud})),()=>{fd.forEach(Ad=>Ad.stop())}}function ci$5(Ra,qa){Dl$3()&&onBeforeUnmount(Ra,qa)}function Wn$3(Ra,qa,nd={}){const{immediate:od=!0}=nd,ld=ref$1(!1);let ud=null;function dd(){ud&&(clearTimeout(ud),ud=null)}function pd(){ld.value=!1,dd()}function fd(...md){dd(),ld.value=!0,ud=setTimeout(()=>{ld.value=!1,ud=null,Ra(...md)},Ke$4(qa))}return od&&(ld.value=!0,qe$3&&fd()),ht$4(pd),{isPending:readonly(ld),start:fd,stop:pd}}function $e$4(Ra){var qa;const nd=Ke$4(Ra);return(qa=nd==null?void 0:nd.$el)!=null?qa:nd}const qt$5=qe$3?window:void 0;function Le$6(...Ra){let qa,nd,od,ld;if(typeof Ra[0]=="string"||Array.isArray(Ra[0])?([nd,od,ld]=Ra,qa=qt$5):[qa,nd,od,ld]=Ra,!qa)return Va$1;Array.isArray(nd)||(nd=[nd]),Array.isArray(od)||(od=[od]);const ud=[],dd=()=>{ud.forEach(vd=>vd()),ud.length=0},pd=(vd,Ad,Nd,Od)=>(vd.addEventListener(Ad,Nd,Od),()=>vd.removeEventListener(Ad,Nd,Od)),fd=watch(()=>[$e$4(qa),Ke$4(ld)],([vd,Ad])=>{if(dd(),!vd)return;const Nd=li$4(Ad)?{...Ad}:Ad;ud.push(...nd.flatMap(Od=>od.map(kd=>pd(vd,Od,kd,Nd))))},{immediate:!0,flush:"post"}),md=()=>{fd(),dd()};return ht$4(md),md}function mi$2(Ra){return typeof Ra=="function"?Ra:typeof Ra=="string"?qa=>qa.key===Ra:Array.isArray(Ra)?qa=>Ra.includes(qa.key):()=>!0}function jn$3(...Ra){let qa,nd,od={};Ra.length===3?(qa=Ra[0],nd=Ra[1],od=Ra[2]):Ra.length===2?typeof Ra[1]=="object"?(qa=!0,nd=Ra[0],od=Ra[1]):(qa=Ra[0],nd=Ra[1]):(qa=!0,nd=Ra[0]);const{target:ld=qt$5,eventName:ud="keydown",passive:dd=!1,dedupe:pd=!1}=od,fd=mi$2(qa);return Le$6(ld,ud,md=>{md.repeat&&Ke$4(pd)||fd(md)&&nd(md)},dd)}function ja$1(){const Ra=ref$1(!1),qa=getCurrentInstance();return qa&&onMounted(()=>{Ra.value=!0},qa),Ra}function yi$3(Ra){return JSON.parse(JSON.stringify(Ra))}function ne$6(Ra,qa,nd,od={}){var ld,ud,dd;const{clone:pd=!1,passive:fd=!1,eventName:md,deep:vd=!1,defaultValue:Ad,shouldEmit:Nd}=od,Od=getCurrentInstance(),kd=nd||(Od==null?void 0:Od.emit)||((ld=Od==null?void 0:Od.$emit)==null?void 0:ld.bind(Od))||((dd=(ud=Od==null?void 0:Od.proxy)==null?void 0:ud.$emit)==null?void 0:dd.bind(Od==null?void 0:Od.proxy));let Ld=md;qa||(qa="modelValue"),Ld=Ld||`update:${qa.toString()}`;const Gd=Ud=>pd?typeof pd=="function"?pd(Ud):yi$3(Ud):Ud,jd=()=>ai$5(Ra[qa])?Gd(Ra[qa]):Ad,Fd=Ud=>{Nd?Nd(Ud)&&kd(Ld,Ud):kd(Ld,Ud)};if(fd){const Ud=jd(),qd=ref$1(Ud);let zd=!1;return watch(()=>Ra[qa],Wd=>{zd||(zd=!0,qd.value=Gd(Wd),nextTick$1(()=>zd=!1))}),watch(qd,Wd=>{!zd&&(Wd!==Ra[qa]||vd)&&Fd(Wd)},{deep:vd}),qd}else return computed({get(){return jd()},set(Ud){Fd(Ud)}})}function Ua$3(Ra){return Ra?Ra.flatMap(qa=>qa.type===Fragment?Ua$3(qa.children):[qa]):[]}const Ci$2=["INPUT","TEXTAREA"];function Bt$5(Ra,qa,nd,od={}){if(!qa||od.enableIgnoredElement&&Ci$2.includes(qa.nodeName))return null;const{arrowKeyOptions:ld="both",attributeName:ud="[data-radix-vue-collection-item]",itemsArray:dd=[],loop:pd=!0,dir:fd="ltr",preventScroll:md=!0,focus:vd=!1}=od,[Ad,Nd,Od,kd,Ld,Gd]=[Ra.key==="ArrowRight",Ra.key==="ArrowLeft",Ra.key==="ArrowUp",Ra.key==="ArrowDown",Ra.key==="Home",Ra.key==="End"],jd=Od||kd,Fd=Ad||Nd;if(!Ld&&!Gd&&(!jd&&!Fd||ld==="vertical"&&Fd||ld==="horizontal"&&jd))return null;const Ud=nd?Array.from(nd.querySelectorAll(ud)):dd;if(!Ud.length)return null;md&&Ra.preventDefault();let qd=null;return Fd||jd?qd=Rl$3(Ud,qa,{goForward:jd?kd:fd==="ltr"?Ad:Nd,loop:pd}):Ld?qd=Ud.at(0)||null:Gd&&(qd=Ud.at(-1)||null),vd&&(qd==null||qd.focus()),qd}function Rl$3(Ra,qa,nd,od=Ra.length){if(--od===0)return null;const ld=Ra.indexOf(qa),ud=nd.goForward?ld+1:ld-1;if(!nd.loop&&(ud<0||ud>=Ra.length))return null;const dd=(ud+Ra.length)%Ra.length,pd=Ra[dd];return pd?pd.hasAttribute("disabled")&&pd.getAttribute("disabled")!=="false"?Rl$3(Ra,pd,nd,od):pd:null}function gn$4(Ra){if(Ra===null||typeof Ra!="object")return!1;const qa=Object.getPrototypeOf(Ra);return qa!==null&&qa!==Object.prototype&&Object.getPrototypeOf(qa)!==null||Symbol.iterator in Ra?!1:Symbol.toStringTag in Ra?Object.prototype.toString.call(Ra)==="[object Module]":!0}function Pn$4(Ra,qa,nd=".",od){if(!gn$4(qa))return Pn$4(Ra,{},nd);const ld=Object.assign({},qa);for(const ud in Ra){if(ud==="__proto__"||ud==="constructor")continue;const dd=Ra[ud];dd!=null&&(Array.isArray(dd)&&Array.isArray(ld[ud])?ld[ud]=[...dd,...ld[ud]]:gn$4(dd)&&gn$4(ld[ud])?ld[ud]=Pn$4(dd,ld[ud],(nd?`${nd}.`:"")+ud.toString()):ld[ud]=dd)}return ld}function wi$2(Ra){return(...qa)=>qa.reduce((nd,od)=>Pn$4(nd,od,""),{})}const _i$2=wi$2(),[Ga$2,xi$2]=Q$7("ConfigProvider");let Si$2="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ei$2=(Ra=21)=>{let qa="",nd=Ra;for(;nd--;)qa+=Si$2[Math.random()*64|0];return qa};const Pi$2=xl$3(()=>{const Ra=ref$1(new Map),qa=ref$1(),nd=computed(()=>{for(const dd of Ra.value.values())if(dd)return!0;return!1}),od=Ga$2({scrollBody:ref$1(!0)});let ld=null;const ud=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=qa.value??"",zo$1&&(ld==null||ld()),qa.value=void 0};return watch(nd,(dd,pd)=>{var fd;if(!qe$3)return;if(!dd){pd&&ud();return}qa.value===void 0&&(qa.value=document.body.style.overflow);const md=window.innerWidth-document.documentElement.clientWidth,vd={padding:md,margin:0},Ad=(fd=od.scrollBody)!=null&&fd.value?typeof od.scrollBody.value=="object"?_i$2({padding:od.scrollBody.value.padding===!0?md:od.scrollBody.value.padding,margin:od.scrollBody.value.margin===!0?md:od.scrollBody.value.margin},vd):vd:{padding:0,margin:0};md>0&&(document.body.style.paddingRight=typeof Ad.padding=="number"?`${Ad.padding}px`:String(Ad.padding),document.body.style.marginRight=typeof Ad.margin=="number"?`${Ad.margin}px`:String(Ad.margin),document.body.style.setProperty("--scrollbar-width",`${md}px`),document.body.style.overflow="hidden"),zo$1&&(ld=Le$6(document,"touchmove",Nd=>Di$3(Nd),{passive:!1})),nextTick$1(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),Ra});function ha$1(Ra){const qa=Ei$2(6),nd=Pi$2();nd.value.set(qa,Ra??!1);const od=computed({get:()=>nd.value.get(qa)??!1,set:ld=>nd.value.set(qa,ld)});return ci$5(()=>{nd.value.delete(qa)}),od}function Al$3(Ra){const qa=window.getComputedStyle(Ra);if(qa.overflowX==="scroll"||qa.overflowY==="scroll"||qa.overflowX==="auto"&&Ra.clientWidth1?!0:(qa.preventDefault&&qa.cancelable&&qa.preventDefault(),!1)}const $i$2="data-radix-vue-collection-item";function Me$7(Ra,qa=$i$2){const nd=Ra??Symbol();return{createCollection:od=>{const ld=ref$1([]);function ud(){const dd=$e$4(od);return dd?ld.value=Array.from(dd.querySelectorAll(`[${qa}]:not([data-disabled])`)):ld.value=[]}return onBeforeUpdate(()=>{ld.value=[]}),onMounted(ud),onUpdated(ud),watch(()=>od==null?void 0:od.value,ud,{immediate:!0}),provide(nd,ld),ld},injectCollection:()=>inject(nd,ref$1([]))}}function be$9(Ra){const qa=Ga$2({dir:ref$1("ltr")});return computed(()=>{var nd;return(Ra==null?void 0:Ra.value)||((nd=qa.dir)==null?void 0:nd.value)||"ltr"})}function Ae$6(Ra){const qa=getCurrentInstance(),nd=qa==null?void 0:qa.type.emits,od={};return nd!=null&&nd.length||console.warn(`No emitted event found. Please check component: ${qa==null?void 0:qa.type.__name}`),nd==null||nd.forEach(ld=>{od[toHandlerKey(camelize(ld))]=(...ud)=>Ra(ld,...ud)}),od}let bn$4=0;function Gn$4(){watchEffect(Ra=>{if(!qe$3)return;const qa=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",qa[0]??Ho$3()),document.body.insertAdjacentElement("beforeend",qa[1]??Ho$3()),bn$4++,Ra(()=>{bn$4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(nd=>nd.remove()),bn$4--})})}function Ho$3(){const Ra=document.createElement("span");return Ra.setAttribute("data-radix-focus-guard",""),Ra.tabIndex=0,Ra.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",Ra}function Je$4(Ra){return computed(()=>{var qa;return Ke$4(Ra)?!!((qa=$e$4(Ra))!=null&&qa.closest("form")):!0})}function It$4(Ra){const qa=getCurrentInstance(),nd=Object.keys((qa==null?void 0:qa.type.props)??{}).reduce((ld,ud)=>{const dd=(qa==null?void 0:qa.type.props[ud]).default;return dd!==void 0&&(ld[ud]=dd),ld},{}),od=toRef$1(Ra);return computed(()=>{const ld={},ud=(qa==null?void 0:qa.vnode.props)??{};return Object.keys(ud).forEach(dd=>{ld[camelize(dd)]=ud[dd]}),Object.keys({...nd,...ld}).reduce((dd,pd)=>(od.value[pd]!==void 0&&(dd[pd]=od.value[pd]),dd),{})})}function xe$5(Ra,qa){const nd=It$4(Ra),od=qa?Ae$6(qa):{};return computed(()=>({...nd.value,...od}))}function R$7(){const Ra=getCurrentInstance(),qa=ref$1(),nd=computed(()=>{var dd,pd;return["#text","#comment"].includes((dd=qa.value)==null?void 0:dd.$el.nodeName)?(pd=qa.value)==null?void 0:pd.$el.nextElementSibling:$e$4(qa)}),od=Object.assign({},Ra.exposed),ld={};for(const dd in Ra.props)Object.defineProperty(ld,dd,{enumerable:!0,configurable:!0,get:()=>Ra.props[dd]});if(Object.keys(od).length>0)for(const dd in od)Object.defineProperty(ld,dd,{enumerable:!0,configurable:!0,get:()=>od[dd]});Object.defineProperty(ld,"$el",{enumerable:!0,configurable:!0,get:()=>Ra.vnode.el}),Ra.exposed=ld;function ud(dd){qa.value=dd,!(dd instanceof Element||!dd)&&(Object.defineProperty(ld,"$el",{enumerable:!0,configurable:!0,get:()=>dd.$el}),Ra.exposed=ld)}return{forwardRef:ud,currentRef:qa,currentElement:nd}}function Ol$3(Ra,qa){const nd=$t$4(!1,300),od=ref$1(null),ld=ia$1();function ud(){od.value=null,nd.value=!1}function dd(pd,fd){const md=pd.currentTarget,vd={x:pd.clientX,y:pd.clientY},Ad=Bi$2(vd,md.getBoundingClientRect()),Nd=Ii$1(vd,Ad),Od=Ti$2(fd.getBoundingClientRect()),kd=Ai$2([...Nd,...Od]);od.value=kd,nd.value=!0}return watchEffect(pd=>{if(Ra.value&&qa.value){const fd=vd=>dd(vd,qa.value),md=vd=>dd(vd,Ra.value);Ra.value.addEventListener("pointerleave",fd),qa.value.addEventListener("pointerleave",md),pd(()=>{var vd,Ad;(vd=Ra.value)==null||vd.removeEventListener("pointerleave",fd),(Ad=qa.value)==null||Ad.removeEventListener("pointerleave",md)})}}),watchEffect(pd=>{var fd;if(od.value){const md=vd=>{var Ad,Nd;if(!od.value)return;const Od=vd.target,kd={x:vd.clientX,y:vd.clientY},Ld=((Ad=Ra.value)==null?void 0:Ad.contains(Od))||((Nd=qa.value)==null?void 0:Nd.contains(Od)),Gd=!Ri$1(kd,od.value),jd=Od.hasAttribute("data-grace-area-trigger");Ld?ud():(Gd||jd)&&(ud(),ld.trigger())};(fd=Ra.value)==null||fd.ownerDocument.addEventListener("pointermove",md),pd(()=>{var vd;return(vd=Ra.value)==null?void 0:vd.ownerDocument.removeEventListener("pointermove",md)})}}),{isPointerInTransit:nd,onPointerExit:ld.on}}function Bi$2(Ra,qa){const nd=Math.abs(qa.top-Ra.y),od=Math.abs(qa.bottom-Ra.y),ld=Math.abs(qa.right-Ra.x),ud=Math.abs(qa.left-Ra.x);switch(Math.min(nd,od,ld,ud)){case ud:return"left";case ld:return"right";case nd:return"top";case od:return"bottom";default:throw new Error("unreachable")}}function Ii$1(Ra,qa,nd=5){const od=[];switch(qa){case"top":od.push({x:Ra.x-nd,y:Ra.y+nd},{x:Ra.x+nd,y:Ra.y+nd});break;case"bottom":od.push({x:Ra.x-nd,y:Ra.y-nd},{x:Ra.x+nd,y:Ra.y-nd});break;case"left":od.push({x:Ra.x+nd,y:Ra.y-nd},{x:Ra.x+nd,y:Ra.y+nd});break;case"right":od.push({x:Ra.x-nd,y:Ra.y-nd},{x:Ra.x-nd,y:Ra.y+nd});break}return od}function Ti$2(Ra){const{top:qa,right:nd,bottom:od,left:ld}=Ra;return[{x:ld,y:qa},{x:nd,y:qa},{x:nd,y:od},{x:ld,y:od}]}function Ri$1(Ra,qa){const{x:nd,y:od}=Ra;let ld=!1;for(let ud=0,dd=qa.length-1;udod!=vd>od&&nd<(md-pd)*(od-fd)/(vd-fd)+pd&&(ld=!ld)}return ld}function Ai$2(Ra){const qa=Ra.slice();return qa.sort((nd,od)=>nd.xod.x?1:nd.yod.y?1:0),Oi$1(qa)}function Oi$1(Ra){if(Ra.length<=1)return Ra.slice();const qa=[];for(let od=0;od=2;){const ud=qa[qa.length-1],dd=qa[qa.length-2];if((ud.x-dd.x)*(ld.y-dd.y)>=(ud.y-dd.y)*(ld.x-dd.x))qa.pop();else break}qa.push(ld)}qa.pop();const nd=[];for(let od=Ra.length-1;od>=0;od--){const ld=Ra[od];for(;nd.length>=2;){const ud=nd[nd.length-1],dd=nd[nd.length-2];if((ud.x-dd.x)*(ld.y-dd.y)>=(ud.y-dd.y)*(ld.x-dd.x))nd.pop();else break}nd.push(ld)}return nd.pop(),qa.length===1&&nd.length===1&&qa[0].x===nd[0].x&&qa[0].y===nd[0].y?qa:qa.concat(nd)}var ki$2=function(Ra){if(typeof document>"u")return null;var qa=Array.isArray(Ra)?Ra[0]:Ra;return qa.ownerDocument.body},Nt$5=new WeakMap,Pa$2=new WeakMap,Da$1={},Cn$3=0,kl$3=function(Ra){return Ra&&(Ra.host||kl$3(Ra.parentNode))},Mi$2=function(Ra,qa){return qa.map(function(nd){if(Ra.contains(nd))return nd;var od=kl$3(nd);return od&&Ra.contains(od)?od:(console.error("aria-hidden",nd,"in not contained inside",Ra,". Doing nothing"),null)}).filter(function(nd){return!!nd})},Vi$1=function(Ra,qa,nd,od){var ld=Mi$2(qa,Array.isArray(Ra)?Ra:[Ra]);Da$1[nd]||(Da$1[nd]=new WeakMap);var ud=Da$1[nd],dd=[],pd=new Set,fd=new Set(ld),md=function(Ad){!Ad||pd.has(Ad)||(pd.add(Ad),md(Ad.parentNode))};ld.forEach(md);var vd=function(Ad){!Ad||fd.has(Ad)||Array.prototype.forEach.call(Ad.children,function(Nd){if(pd.has(Nd))vd(Nd);else try{var Od=Nd.getAttribute(od),kd=Od!==null&&Od!=="false",Ld=(Nt$5.get(Nd)||0)+1,Gd=(ud.get(Nd)||0)+1;Nt$5.set(Nd,Ld),ud.set(Nd,Gd),dd.push(Nd),Ld===1&&kd&&Pa$2.set(Nd,!0),Gd===1&&Nd.setAttribute(nd,"true"),kd||Nd.setAttribute(od,"true")}catch(jd){console.error("aria-hidden: cannot operate on ",Nd,jd)}})};return vd(qa),pd.clear(),Cn$3++,function(){dd.forEach(function(Ad){var Nd=Nt$5.get(Ad)-1,Od=ud.get(Ad)-1;Nt$5.set(Ad,Nd),ud.set(Ad,Od),Nd||(Pa$2.has(Ad)||Ad.removeAttribute(od),Pa$2.delete(Ad)),Od||Ad.removeAttribute(nd)}),Cn$3--,Cn$3||(Nt$5=new WeakMap,Nt$5=new WeakMap,Pa$2=new WeakMap,Da$1={})}},Fi$2=function(Ra,qa,nd){nd===void 0&&(nd="data-aria-hidden");var od=Array.from(Array.isArray(Ra)?Ra:[Ra]),ld=ki$2(Ra);return ld?(od.push.apply(od,Array.from(ld.querySelectorAll("[aria-live]"))),Vi$1(od,ld,nd,"aria-hidden")):function(){return null}};function ya$1(Ra){let qa;watch(()=>$e$4(Ra),nd=>{nd?qa=Fi$2(nd):qa&&qa()}),onUnmounted(()=>{qa&&qa()})}let Ni$1=0;function he$4(Ra,qa="radix"){if(Ra)return Ra;const nd=Ga$2({useId:void 0});return useId?`${qa}-${useId()}`:nd.useId?`${qa}-${nd.useId()}`:`${qa}-${++Ni$1}`}function Ml$3(Ra){const qa=ref$1(),nd=computed(()=>{var ld;return((ld=qa.value)==null?void 0:ld.width)??0}),od=computed(()=>{var ld;return((ld=qa.value)==null?void 0:ld.height)??0});return onMounted(()=>{const ld=$e$4(Ra);if(ld){qa.value={width:ld.offsetWidth,height:ld.offsetHeight};const ud=new ResizeObserver(dd=>{if(!Array.isArray(dd)||!dd.length)return;const pd=dd[0];let fd,md;if("borderBoxSize"in pd){const vd=pd.borderBoxSize,Ad=Array.isArray(vd)?vd[0]:vd;fd=Ad.inlineSize,md=Ad.blockSize}else fd=ld.offsetWidth,md=ld.offsetHeight;qa.value={width:fd,height:md}});return ud.observe(ld,{box:"border-box"}),()=>ud.unobserve(ld)}else qa.value=void 0}),{width:nd,height:od}}function Vl$3(Ra,qa){const nd=ref$1(Ra);function od(ld){return qa[nd.value][ld]??nd.value}return{state:nd,dispatch:ld=>{nd.value=od(ld)}}}function ga$2(Ra){const qa=$t$4("",1e3);return{search:qa,handleTypeaheadSearch:(nd,od)=>{var ld,ud;if(!(Ra!=null&&Ra.value)&&!od)return;qa.value=qa.value+nd;const dd=(Ra==null?void 0:Ra.value)??od,pd=document.activeElement,fd=((ud=(ld=dd.find(Nd=>Nd===pd))==null?void 0:ld.textContent)==null?void 0:ud.trim())??"",md=dd.map(Nd=>{var Od;return((Od=Nd.textContent)==null?void 0:Od.trim())??""}),vd=Yn$3(md,qa.value,fd),Ad=dd.find(Nd=>{var Od;return((Od=Nd.textContent)==null?void 0:Od.trim())===vd});return Ad&&Ad.focus(),Ad},resetTypeahead:()=>{qa.value=""}}}function qn$3(Ra,qa){return Ra.map((nd,od)=>Ra[(qa+od)%Ra.length])}function Yn$3(Ra,qa,nd){const od=qa.length>1&&Array.from(qa).every(pd=>pd===qa[0])?qa[0]:qa,ld=nd?Ra.indexOf(nd):-1;let ud=qn$3(Ra,Math.max(ld,0));od.length===1&&(ud=ud.filter(pd=>pd!==nd));const dd=ud.find(pd=>pd.toLowerCase().startsWith(od.toLowerCase()));return dd!==nd?dd:void 0}const Xn$4=defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(Ra,{attrs:qa,slots:nd}){return()=>{var od,ld;if(!nd.default)return null;const ud=Ua$3(nd.default()),dd=ud.findIndex(vd=>vd.type!==Comment$2);if(dd===-1)return ud;const pd=ud[dd];(od=pd.props)==null||delete od.ref;const fd=pd.props?mergeProps(qa,pd.props):qa;qa.class&&(ld=pd.props)!=null&&ld.class&&delete pd.props.class;const md=cloneVNode(pd,fd);for(const vd in fd)vd.startsWith("on")&&(md.props||(md.props={}),md.props[vd]=fd[vd]);return ud.length===1?md:(ud[dd]=md,ud)}}}),O$4=defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(Ra,{attrs:qa,slots:nd}){const od=Ra.asChild?"template":Ra.as;return typeof od=="string"&&["area","img","input"].includes(od)?()=>h$2(od,qa):od!=="template"?()=>h$2(Ra.as,qa,{default:nd.default}):()=>h$2(Xn$4,qa,{default:nd.default})}});function Ie$5(){const Ra=ref$1(),qa=computed(()=>{var nd,od;return["#text","#comment"].includes((nd=Ra.value)==null?void 0:nd.$el.nodeName)?(od=Ra.value)==null?void 0:od.$el.nextElementSibling:$e$4(Ra)});return{primitiveElement:Ra,currentElement:qa}}function Wi$2(Ra,qa){const nd=ref$1({}),od=ref$1("none"),ld=Ra.value?"mounted":"unmounted",{state:ud,dispatch:dd}=Vl$3(ld,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),pd=Nd=>{var Od;if(qe$3){const kd=new CustomEvent(Nd,{bubbles:!1,cancelable:!1});(Od=qa.value)==null||Od.dispatchEvent(kd)}};watch(Ra,async(Nd,Od)=>{var kd;const Ld=Od!==Nd;if(await nextTick$1(),Ld){const Gd=od.value,jd=$a$2(qa.value);Nd?(dd("MOUNT"),pd("enter"),jd==="none"&&pd("after-enter")):jd==="none"||((kd=nd.value)==null?void 0:kd.display)==="none"?(dd("UNMOUNT"),pd("leave"),pd("after-leave")):Od&&Gd!==jd?(dd("ANIMATION_OUT"),pd("leave")):(dd("UNMOUNT"),pd("after-leave"))}},{immediate:!0});const fd=Nd=>{const Od=$a$2(qa.value),kd=Od.includes(Nd.animationName),Ld=ud.value==="mounted"?"enter":"leave";Nd.target===qa.value&&kd&&(pd(`after-${Ld}`),dd("ANIMATION_END")),Nd.target===qa.value&&Od==="none"&&dd("ANIMATION_END")},md=Nd=>{Nd.target===qa.value&&(od.value=$a$2(qa.value))},vd=watch(qa,(Nd,Od)=>{Nd?(nd.value=getComputedStyle(Nd),Nd.addEventListener("animationstart",md),Nd.addEventListener("animationcancel",fd),Nd.addEventListener("animationend",fd)):(dd("ANIMATION_END"),Od==null||Od.removeEventListener("animationstart",md),Od==null||Od.removeEventListener("animationcancel",fd),Od==null||Od.removeEventListener("animationend",fd))},{immediate:!0}),Ad=watch(ud,()=>{const Nd=$a$2(qa.value);od.value=ud.value==="mounted"?Nd:"none"});return onUnmounted(()=>{vd(),Ad()}),{isPresent:computed(()=>["mounted","unmountSuspended"].includes(ud.value))}}function $a$2(Ra){return Ra&&getComputedStyle(Ra).animationName||"none"}const Pe$7=defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(Ra,{slots:qa,expose:nd}){var od;const{present:ld,forceMount:ud}=toRefs(Ra),dd=ref$1(),{isPresent:pd}=Wi$2(ld,dd);nd({present:pd});let fd=qa.default({present:pd});fd=Ua$3(fd||[]);const md=getCurrentInstance();if(fd&&(fd==null?void 0:fd.length)>1){const vd=(od=md==null?void 0:md.parent)!=null&&od.type.name?`<${md.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${vd}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(Ad=>` - ${Ad}`).join(` `)].join(` -`))}return()=>ud.value||ld.value||pd.value?h$2(qa.default({present:pd})[0],{ref:vd=>{const Ad=$e$4(vd);return typeof(Ad==null?void 0:Ad.hasAttribute)>"u"||(Ad!=null&&Ad.hasAttribute("data-radix-popper-content-wrapper")?dd.value=Ad.firstElementChild:dd.value=Ad),Ad}}):null}}),[et$5,Xi$1]=Q$7("DialogRoot"),Zi$2=defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=ne$6(nd,"open",qa,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),ld=ref$1(),ud=ref$1(),{modal:dd}=toRefs(nd);return Xi$1({open:od,modal:dd,openModal:()=>{od.value=!0},onOpenChange:pd=>{od.value=pd},onOpenToggle:()=>{od.value=!od.value},contentId:"",titleId:"",descriptionId:"",triggerElement:ld,contentElement:ud}),(pd,fd)=>renderSlot(pd.$slots,"default",{open:unref(od)})}}),Ji$3=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=et$5(),{forwardRef:od,currentElement:ld}=R$7();return nd.contentId||(nd.contentId=he$4(void 0,"radix-vue-dialog-content")),onMounted(()=>{nd.triggerElement.value=ld.value}),(ud,dd)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{ref:unref(od),type:ud.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":unref(nd).open.value||!1,"aria-controls":unref(nd).open.value?unref(nd).contentId:void 0,"data-state":unref(nd).open.value?"open":"closed",onClick:unref(nd).onOpenToggle}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),nt$4=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=ja$1();return(nd,od)=>unref(qa)||nd.forceMount?(openBlock(),createBlock(Teleport,{key:0,to:nd.to,disabled:nd.disabled},[renderSlot(nd.$slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),xv=defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Qi$1="dismissableLayer.pointerDownOutside",eu$2="dismissableLayer.focusOutside";function zl$3(Ra,qa){const nd=qa.closest("[data-dismissable-layer]"),od=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),ld=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(nd&&od===nd||ld.indexOf(od){});return watchEffect(dd=>{if(!qe$3)return;const pd=async md=>{const vd=md.target;if(qa!=null&&qa.value){if(zl$3(qa.value,vd)){ld.value=!1;return}if(md.target&&!ld.value){let Ad=function(){Ht$4(Qi$1,Ra,Nd)};const Nd={originalEvent:md};md.pointerType==="touch"?(od.removeEventListener("click",ud.value),ud.value=Ad,od.addEventListener("click",ud.value,{once:!0})):Ad()}else od.removeEventListener("click",ud.value);ld.value=!1}},fd=window.setTimeout(()=>{od.addEventListener("pointerdown",pd)},0);dd(()=>{window.clearTimeout(fd),od.removeEventListener("pointerdown",pd),od.removeEventListener("click",ud.value)})}),{onPointerDownCapture:()=>ld.value=!0}}function Hl$3(Ra,qa){var nd;const od=((nd=qa==null?void 0:qa.value)==null?void 0:nd.ownerDocument)??(globalThis==null?void 0:globalThis.document),ld=ref$1(!1);return watchEffect(ud=>{if(!qe$3)return;const dd=async pd=>{qa!=null&&qa.value&&(await nextTick$1(),!(!qa.value||zl$3(qa.value,pd.target))&&pd.target&&!ld.value&&Ht$4(eu$2,Ra,{originalEvent:pd}))};od.addEventListener("focusin",dd),ud(()=>od.removeEventListener("focusin",dd))}),{onFocusCapture:()=>ld.value=!0,onBlurCapture:()=>ld.value=!1}}const je$7=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yt$3=defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{forwardRef:ld,currentElement:ud}=R$7(),dd=computed(()=>{var kd;return((kd=ud.value)==null?void 0:kd.ownerDocument)??globalThis.document}),pd=computed(()=>je$7.layersRoot),fd=computed(()=>ud.value?Array.from(pd.value).indexOf(ud.value):-1),md=computed(()=>je$7.layersWithOutsidePointerEventsDisabled.size>0),vd=computed(()=>{const kd=Array.from(pd.value),[Ld]=[...je$7.layersWithOutsidePointerEventsDisabled].slice(-1),Gd=kd.indexOf(Ld);return fd.value>=Gd}),Ad=Kl$3(async kd=>{const Ld=[...je$7.branches].some(Gd=>Gd==null?void 0:Gd.contains(kd.target));!vd.value||Ld||(od("pointerDownOutside",kd),od("interactOutside",kd),await nextTick$1(),kd.defaultPrevented||od("dismiss"))},ud),Nd=Hl$3(kd=>{[...je$7.branches].some(Ld=>Ld==null?void 0:Ld.contains(kd.target))||(od("focusOutside",kd),od("interactOutside",kd),kd.defaultPrevented||od("dismiss"))},ud);jn$3("Escape",kd=>{fd.value===pd.value.size-1&&(od("escapeKeyDown",kd),kd.defaultPrevented||od("dismiss"))});let Od;return watchEffect(kd=>{ud.value&&(nd.disableOutsidePointerEvents&&(je$7.layersWithOutsidePointerEventsDisabled.size===0&&(Od=dd.value.body.style.pointerEvents,dd.value.body.style.pointerEvents="none"),je$7.layersWithOutsidePointerEventsDisabled.add(ud.value)),pd.value.add(ud.value),kd(()=>{nd.disableOutsidePointerEvents&&je$7.layersWithOutsidePointerEventsDisabled.size===1&&(dd.value.body.style.pointerEvents=Od)}))}),watchEffect(kd=>{kd(()=>{ud.value&&(pd.value.delete(ud.value),je$7.layersWithOutsidePointerEventsDisabled.delete(ud.value))})}),(kd,Ld)=>(openBlock(),createBlock(unref(O$4),{ref:unref(ld),"as-child":kd.asChild,as:kd.as,"data-dismissable-layer":"",style:normalizeStyle({pointerEvents:md.value?vd.value?"auto":"none":void 0}),onFocusCapture:unref(Nd).onFocusCapture,onBlurCapture:unref(Nd).onBlurCapture,onPointerdownCapture:unref(Ad).onPointerDownCapture},{default:withCtx(()=>[renderSlot(kd.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),wn$3="focusScope.autoFocusOnMount",_n$3="focusScope.autoFocusOnUnmount",Wo$2={bubbles:!1,cancelable:!0};function Oa$3(Ra,{select:qa=!1}={}){const nd=document.activeElement;for(const od of Ra)if(ct$4(od,{select:qa}),document.activeElement!==nd)return!0}function au$4(Ra){const qa=Jn$4(Ra),nd=jo$2(qa,Ra),od=jo$2(qa.reverse(),Ra);return[nd,od]}function Jn$4(Ra){const qa=[],nd=document.createTreeWalker(Ra,NodeFilter.SHOW_ELEMENT,{acceptNode:od=>{const ld=od.tagName==="INPUT"&&od.type==="hidden";return od.disabled||od.hidden||ld?NodeFilter.FILTER_SKIP:od.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;nd.nextNode();)qa.push(nd.currentNode);return qa}function jo$2(Ra,qa){for(const nd of Ra)if(!nu$4(nd,{upTo:qa}))return nd}function nu$4(Ra,{upTo:qa}){if(getComputedStyle(Ra).visibility==="hidden")return!0;for(;Ra;){if(qa!==void 0&&Ra===qa)return!1;if(getComputedStyle(Ra).display==="none")return!0;Ra=Ra.parentElement}return!1}function ou$3(Ra){return Ra instanceof HTMLInputElement&&"select"in Ra}function ct$4(Ra,{select:qa=!1}={}){if(Ra&&Ra.focus){const nd=document.activeElement;Ra.focus({preventScroll:!0}),Ra!==nd&&ou$3(Ra)&&qa&&Ra.select()}}const lu$3=ei$4(()=>ref$1([]));function su$3(){const Ra=lu$3();return{add(qa){const nd=Ra.value[0];qa!==nd&&(nd==null||nd.pause()),Ra.value=Uo$3(Ra.value,qa),Ra.value.unshift(qa)},remove(qa){var nd;Ra.value=Uo$3(Ra.value,qa),(nd=Ra.value[0])==null||nd.resume()}}}function Uo$3(Ra,qa){const nd=[...Ra],od=nd.indexOf(qa);return od!==-1&&nd.splice(od,1),nd}function ru$3(Ra){return Ra.filter(qa=>qa.tagName!=="A")}const Ya$2=defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{currentRef:ld,currentElement:ud}=R$7(),dd=ref$1(null),pd=su$3(),fd=reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});watchEffect(vd=>{if(!qe$3)return;const Ad=ud.value;if(!nd.trapped)return;function Nd(Gd){if(fd.paused||!Ad)return;const Ud=Gd.target;Ad.contains(Ud)?dd.value=Ud:ct$4(dd.value,{select:!0})}function Od(Gd){if(fd.paused||!Ad)return;const Ud=Gd.relatedTarget;Ud!==null&&(Ad.contains(Ud)||ct$4(dd.value,{select:!0}))}function kd(Gd){Ad.contains(dd.value)||ct$4(Ad)}document.addEventListener("focusin",Nd),document.addEventListener("focusout",Od);const Ld=new MutationObserver(kd);Ad&&Ld.observe(Ad,{childList:!0,subtree:!0}),vd(()=>{document.removeEventListener("focusin",Nd),document.removeEventListener("focusout",Od),Ld.disconnect()})}),watchEffect(async vd=>{const Ad=ud.value;if(await nextTick$1(),!Ad)return;pd.add(fd);const Nd=document.activeElement;if(!Ad.contains(Nd)){const Od=new CustomEvent(wn$3,Wo$2);Ad.addEventListener(wn$3,kd=>od("mountAutoFocus",kd)),Ad.dispatchEvent(Od),Od.defaultPrevented||(Oa$3(ru$3(Jn$4(Ad)),{select:!0}),document.activeElement===Nd&&ct$4(Ad))}vd(()=>{Ad.removeEventListener(wn$3,Ld=>od("mountAutoFocus",Ld));const Od=new CustomEvent(_n$3,Wo$2),kd=Ld=>{od("unmountAutoFocus",Ld)};Ad.addEventListener(_n$3,kd),Ad.dispatchEvent(Od),setTimeout(()=>{Od.defaultPrevented||ct$4(Nd??document.body,{select:!0}),Ad.removeEventListener(_n$3,kd),pd.remove(fd)},0)})});function md(vd){if(!nd.loop&&!nd.trapped||fd.paused)return;const Ad=vd.key==="Tab"&&!vd.altKey&&!vd.ctrlKey&&!vd.metaKey,Nd=document.activeElement;if(Ad&&Nd){const Od=vd.currentTarget,[kd,Ld]=au$4(Od);kd&&Ld?!vd.shiftKey&&Nd===Ld?(vd.preventDefault(),nd.loop&&ct$4(kd,{select:!0})):vd.shiftKey&&Nd===kd&&(vd.preventDefault(),nd.loop&&ct$4(Ld,{select:!0})):Nd===Od&&vd.preventDefault()}}return(vd,Ad)=>(openBlock(),createBlock(unref(O$4),{ref_key:"currentRef",ref:ld,tabindex:"-1","as-child":vd.asChild,as:vd.as,onKeydown:md},{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},8,["as-child","as"]))}}),iu$2="menu.itemSelect",Dn$3=["Enter"," "],uu$4=["ArrowDown","PageUp","Home"],Wl$3=["ArrowUp","PageDown","End"],du$3=[...uu$4,...Wl$3],cu$4={ltr:[...Dn$3,"ArrowRight"],rtl:[...Dn$3,"ArrowLeft"]},pu$3={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function Qn$4(Ra){return Ra?"open":"closed"}function Fa$1(Ra){return Ra==="indeterminate"}function eo$2(Ra){return Fa$1(Ra)?"indeterminate":Ra?"checked":"unchecked"}function $n$4(Ra){const qa=document.activeElement;for(const nd of Ra)if(nd===qa||(nd.focus(),document.activeElement!==qa))return}function fu$2(Ra,qa){const{x:nd,y:od}=Ra;let ld=!1;for(let ud=0,dd=qa.length-1;udod!=vd>od&&nd<(md-pd)*(od-fd)/(vd-fd)+pd&&(ld=!ld)}return ld}function vu$3(Ra,qa){if(!qa)return!1;const nd={x:Ra.clientX,y:Ra.clientY};return fu$2(nd,qa)}function ua$2(Ra){return Ra.pointerType==="mouse"}const jl$3=defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=et$5(),{forwardRef:ud,currentElement:dd}=R$7();return ld.titleId||(ld.titleId=he$4(void 0,"radix-vue-dialog-title")),ld.descriptionId||(ld.descriptionId=he$4(void 0,"radix-vue-dialog-description")),onMounted(()=>{ld.contentElement=dd,document.activeElement!==document.body&&(ld.triggerElement.value=document.activeElement)}),(pd,fd)=>(openBlock(),createBlock(unref(Ya$2),{"as-child":"",loop:"",trapped:nd.trapFocus,onMountAutoFocus:fd[5]||(fd[5]=md=>od("openAutoFocus",md)),onUnmountAutoFocus:fd[6]||(fd[6]=md=>od("closeAutoFocus",md))},{default:withCtx(()=>[createVNode(unref(yt$3),mergeProps({id:unref(ld).contentId,ref:unref(ud),as:pd.as,"as-child":pd.asChild,"disable-outside-pointer-events":pd.disableOutsidePointerEvents,role:"dialog","aria-describedby":unref(ld).descriptionId,"aria-labelledby":unref(ld).titleId,"data-state":unref(Qn$4)(unref(ld).open.value)},pd.$attrs,{onDismiss:fd[0]||(fd[0]=md=>unref(ld).onOpenChange(!1)),onEscapeKeyDown:fd[1]||(fd[1]=md=>od("escapeKeyDown",md)),onFocusOutside:fd[2]||(fd[2]=md=>od("focusOutside",md)),onInteractOutside:fd[3]||(fd[3]=md=>od("interactOutside",md)),onPointerDownOutside:fd[4]||(fd[4]=md=>od("pointerDownOutside",md))}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),gu$2=defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=et$5(),ud=Ae$6(od),{forwardRef:dd,currentElement:pd}=R$7();return ya$1(pd),(fd,md)=>(openBlock(),createBlock(jl$3,mergeProps({...nd,...unref(ud)},{ref:unref(dd),"trap-focus":unref(ld).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:md[0]||(md[0]=vd=>{var Ad;vd.defaultPrevented||(vd.preventDefault(),(Ad=unref(ld).triggerElement.value)==null||Ad.focus())}),onPointerDownOutside:md[1]||(md[1]=vd=>{const Ad=vd.detail.originalEvent,Nd=Ad.button===0&&Ad.ctrlKey===!0;(Ad.button===2||Nd)&&vd.preventDefault()}),onFocusOutside:md[2]||(md[2]=vd=>{vd.preventDefault()})}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["trap-focus"]))}}),bu$3=defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);R$7();const ld=et$5(),ud=ref$1(!1),dd=ref$1(!1);return(pd,fd)=>(openBlock(),createBlock(jl$3,mergeProps({...nd,...unref(od)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:fd[0]||(fd[0]=md=>{var vd;md.defaultPrevented||(ud.value||(vd=unref(ld).triggerElement.value)==null||vd.focus(),md.preventDefault()),ud.value=!1,dd.value=!1}),onInteractOutside:fd[1]||(fd[1]=md=>{var vd;md.defaultPrevented||(ud.value=!0,md.detail.originalEvent.type==="pointerdown"&&(dd.value=!0));const Ad=md.target;(vd=unref(ld).triggerElement.value)!=null&&vd.contains(Ad)&&md.preventDefault(),md.detail.originalEvent.type==="focusin"&&dd.value&&md.preventDefault()})}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16))}}),Cu$3=defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=et$5(),ud=Ae$6(od),{forwardRef:dd}=R$7();return(pd,fd)=>(openBlock(),createBlock(unref(Pe$7),{present:pd.forceMount||unref(ld).open.value},{default:withCtx(()=>[unref(ld).modal.value?(openBlock(),createBlock(gu$2,mergeProps({key:0,ref:unref(dd)},{...nd,...unref(ud),...pd.$attrs}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16)):(openBlock(),createBlock(bu$3,mergeProps({key:1,ref:unref(dd)},{...nd,...unref(ud),...pd.$attrs}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),wu$3=defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=et$5();return ha$1(!0),R$7(),(nd,od)=>(openBlock(),createBlock(unref(O$4),{as:nd.as,"as-child":nd.asChild,"data-state":unref(qa).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),_u$3=defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=et$5(),{forwardRef:nd}=R$7();return(od,ld)=>{var ud;return(ud=unref(qa))!=null&&ud.modal.value?(openBlock(),createBlock(unref(Pe$7),{key:0,present:od.forceMount||unref(qa).open.value},{default:withCtx(()=>[createVNode(wu$3,mergeProps(od.$attrs,{ref:unref(nd),as:od.as,"as-child":od.asChild}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):createCommentVNode("",!0)}}}),Ul$3=defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra;R$7();const nd=et$5();return(od,ld)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{type:od.as==="button"?"button":void 0,onClick:ld[0]||(ld[0]=ud=>unref(nd).onOpenChange(!1))}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["type"]))}}),xu$2=defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(Ra){const qa=Ra,nd=et$5();return R$7(),(od,ld)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{id:unref(nd).titleId}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["id"]))}}),Su$2=defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(Ra){const qa=Ra;R$7();const nd=et$5();return(od,ld)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{id:unref(nd).descriptionId}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["id"]))}}),Sv=defineComponent({__name:"AlertDialogRoot",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);return R$7(),(od,ld)=>(openBlock(),createBlock(unref(Zi$2),mergeProps(unref(nd),{modal:!0}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16))}}),Pv=defineComponent({__name:"AlertDialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[Eu$3,Pu$2]=Q$7("AlertDialogContent"),Dv=defineComponent({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);R$7();const ld=ref$1();return Pu$2({onCancelElementChange:ud=>{ld.value=ud}}),(ud,dd)=>(openBlock(),createBlock(unref(Cu$3),mergeProps({...nd,...unref(od)},{role:"alertdialog",onPointerDownOutside:dd[0]||(dd[0]=withModifiers(()=>{},["prevent"])),onInteractOutside:dd[1]||(dd[1]=withModifiers(()=>{},["prevent"])),onOpenAutoFocus:dd[2]||(dd[2]=()=>{nextTick$1(()=>{var pd;(pd=ld.value)==null||pd.focus({preventScroll:!0})})})}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),$v=defineComponent({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(_u$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Bv=defineComponent({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=Eu$3(),{forwardRef:od,currentElement:ld}=R$7();return onMounted(()=>{nd.onCancelElementChange(ld.value)}),(ud,dd)=>(openBlock(),createBlock(unref(Ul$3),mergeProps(qa,{ref:unref(od)}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Iv=defineComponent({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(xu$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Tv=defineComponent({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(Su$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Rv=defineComponent({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(Ul$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}});function Na$1(Ra){return Ra==="indeterminate"}function Yl$3(Ra){return Na$1(Ra)?"indeterminate":Ra?"checked":"unchecked"}const Yu$2=["value","checked","name","disabled","required"],[Xu$3,Zu$4]=Q$7("CheckboxRoot"),Vv=defineComponent({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{disabled:ld}=toRefs(nd),ud=ne$6(nd,"checked",od,{defaultValue:nd.defaultChecked,passive:nd.checked===void 0}),{forwardRef:dd,currentElement:pd}=R$7(),fd=Je$4(pd),md=computed(()=>{var vd;return nd.id&&pd.value?(vd=document.querySelector(`[for="${nd.id}"]`))==null?void 0:vd.innerText:void 0});return Zu$4({disabled:ld,state:ud}),(vd,Ad)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(vd.$attrs,{id:vd.id,ref:unref(dd),role:"checkbox","as-child":nd.asChild,as:vd.as,type:vd.as==="button"?"button":void 0,"aria-checked":unref(Na$1)(unref(ud))?"mixed":unref(ud),"aria-required":!1,"aria-label":vd.$attrs["aria-label"]||md.value,"data-state":unref(Yl$3)(unref(ud)),"data-disabled":unref(ld)?"":void 0,disabled:unref(ld),onKeydown:withKeys(withModifiers(()=>{},["prevent"]),["enter"]),onClick:Ad[0]||(Ad[0]=Nd=>ud.value=unref(Na$1)(unref(ud))?!0:!unref(ud))}),{default:withCtx(()=>[renderSlot(vd.$slots,"default",{checked:unref(ud)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-label","data-state","data-disabled","disabled","onKeydown"]),unref(fd)?(openBlock(),createElementBlock("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:vd.value,checked:!!unref(ud),name:nd.name,disabled:nd.disabled,required:nd.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,Yu$2)):createCommentVNode("",!0)],64))}}),Fv=defineComponent({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const{forwardRef:qa}=R$7(),nd=Xu$3();return(od,ld)=>(openBlock(),createBlock(unref(Pe$7),{present:od.forceMount||unref(Na$1)(unref(nd).state.value)||unref(nd).state.value===!0},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(qa),"data-state":unref(Yl$3)(unref(nd).state.value),"data-disabled":unref(nd).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":od.asChild,as:od.as},od.$attrs),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),[Xl$3,Ju$3]=Q$7("PopperRoot"),Tt$4=defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(Ra){const qa=ref$1();return Ju$3({anchor:qa,onAnchorChange:nd=>qa.value=nd}),(nd,od)=>renderSlot(nd.$slots,"default")}}),Rt$5=defineComponent({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{forwardRef:nd,currentElement:od}=R$7(),ld=Xl$3();return watchEffect(()=>{ld.onAnchorChange(qa.element??od.value)}),(ud,dd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(nd),as:ud.as,"as-child":ud.asChild},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as","as-child"]))}});function Qu$3(Ra){return Ra!==null}function ed(Ra){return{name:"transformOrigin",options:Ra,fn(qa){var nd,od,ld;const{placement:ud,rects:dd,middlewareData:pd}=qa,fd=((nd=pd.arrow)==null?void 0:nd.centerOffset)!==0,md=fd?0:Ra.arrowWidth,vd=fd?0:Ra.arrowHeight,[Ad,Nd]=Bn$3(ud),Od={start:"0%",center:"50%",end:"100%"}[Nd],kd=(((od=pd.arrow)==null?void 0:od.x)??0)+md/2,Ld=(((ld=pd.arrow)==null?void 0:ld.y)??0)+vd/2;let Gd="",Ud="";return Ad==="bottom"?(Gd=fd?Od:`${kd}px`,Ud=`${-vd}px`):Ad==="top"?(Gd=fd?Od:`${kd}px`,Ud=`${dd.floating.height+vd}px`):Ad==="right"?(Gd=`${-vd}px`,Ud=fd?Od:`${Ld}px`):Ad==="left"&&(Gd=`${dd.floating.width+vd}px`,Ud=fd?Od:`${Ld}px`),{data:{x:Gd,y:Ud}}}}}function Bn$3(Ra){const[qa,nd="center"]=Ra.split("-");return[qa,nd]}const Zl$3={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[td,ad$1]=Q$7("PopperContent"),Dt$4=defineComponent({inheritAttrs:!1,__name:"PopperContent",props:mergeDefaults({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...Zl$3}),emits:["placed"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=Xl$3(),{forwardRef:ud,currentElement:dd}=R$7(),pd=ref$1(),fd=ref$1(),{width:md,height:vd}=Ml$3(fd),Ad=computed(()=>nd.side+(nd.align!=="center"?`-${nd.align}`:"")),Nd=computed(()=>typeof nd.collisionPadding=="number"?nd.collisionPadding:{top:0,right:0,bottom:0,left:0,...nd.collisionPadding}),Od=computed(()=>Array.isArray(nd.collisionBoundary)?nd.collisionBoundary:[nd.collisionBoundary]),kd=computed(()=>({padding:Nd.value,boundary:Od.value.filter(Qu$3),altBoundary:Od.value.length>0})),Ld=Jr$4(()=>[offset({mainAxis:nd.sideOffset+vd.value,alignmentAxis:nd.alignOffset}),nd.prioritizePosition&&nd.avoidCollisions&&flip({...kd.value}),nd.avoidCollisions&&shift({mainAxis:!0,crossAxis:!!nd.prioritizePosition,limiter:nd.sticky==="partial"?limitShift():void 0,...kd.value}),!nd.prioritizePosition&&nd.avoidCollisions&&flip({...kd.value}),size({...kd.value,apply:({elements:pf,rects:mf,availableWidth:Tf,availableHeight:vf})=>{const{width:Af,height:Sf}=mf.reference,Df=pf.floating.style;Df.setProperty("--radix-popper-available-width",`${Tf}px`),Df.setProperty("--radix-popper-available-height",`${vf}px`),Df.setProperty("--radix-popper-anchor-width",`${Af}px`),Df.setProperty("--radix-popper-anchor-height",`${Sf}px`)}}),fd.value&&arrow({element:fd.value,padding:nd.arrowPadding}),ed({arrowWidth:md.value,arrowHeight:vd.value}),nd.hideWhenDetached&&hide({strategy:"referenceHidden",...kd.value})]),{floatingStyles:Gd,placement:Ud,isPositioned:Fd,middlewareData:jd}=useFloating(ld.anchor,pd,{strategy:"fixed",placement:Ad,whileElementsMounted:(...pf)=>autoUpdate(...pf,{animationFrame:nd.updatePositionStrategy==="always"}),middleware:Ld}),qd=computed(()=>Bn$3(Ud.value)[0]),zd=computed(()=>Bn$3(Ud.value)[1]);watchPostEffect(()=>{Fd.value&&od("placed")});const Yd=computed(()=>{var pf;return((pf=jd.value.arrow)==null?void 0:pf.centerOffset)!==0}),Jd=ref$1("");watchEffect(()=>{dd.value&&(Jd.value=window.getComputedStyle(dd.value).zIndex)});const yf=computed(()=>{var pf;return((pf=jd.value.arrow)==null?void 0:pf.x)??0}),Xd=computed(()=>{var pf;return((pf=jd.value.arrow)==null?void 0:pf.y)??0});return ad$1({placedSide:qd,onArrowChange:pf=>fd.value=pf,arrowX:yf,arrowY:Xd,shouldHideArrow:Yd}),(pf,mf)=>{var Tf,vf,Af;return openBlock(),createElementBlock("div",{ref_key:"floatingRef",ref:pd,"data-radix-popper-content-wrapper":"",style:normalizeStyle({...unref(Gd),transform:unref(Fd)?unref(Gd).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Jd.value,"--radix-popper-transform-origin":[(Tf=unref(jd).transformOrigin)==null?void 0:Tf.x,(vf=unref(jd).transformOrigin)==null?void 0:vf.y].join(" "),...((Af=unref(jd).hide)==null?void 0:Af.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[createVNode(unref(O$4),mergeProps({ref:unref(ud)},pf.$attrs,{"as-child":nd.asChild,as:pf.as,"data-side":qd.value,"data-align":zd.value,style:{animation:unref(Fd)?void 0:"none"}}),{default:withCtx(()=>[renderSlot(pf.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),Zt$4=defineComponent({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){return R$7(),(qa,nd)=>(openBlock(),createBlock(unref(O$4),{as:qa.as,"as-child":qa.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:withCtx(()=>[renderSlot(qa.$slots,"default")]),_:3},8,["as","as-child"]))}}),sd="data-radix-vue-collection-item",[ao$2,rd]=Q$7("CollectionProvider");function ba$3(Ra=sd){const qa=ref$1(new Map),nd=ref$1(),od=rd({collectionRef:nd,itemMap:qa,attrName:Ra}),{getItems:ld}=Qt$4(od),ud=computed(()=>Array.from(od.itemMap.value.values())),dd=computed(()=>od.itemMap.value.size);return{getItems:ld,reactiveItems:ud,itemMapSize:dd}}const Ca$1=defineComponent({name:"CollectionSlot",setup(Ra,{slots:qa}){const nd=ao$2(),{primitiveElement:od,currentElement:ld}=Ie$5();return watch(ld,()=>{nd.collectionRef.value=ld.value}),()=>h$2(Xn$4,{ref:od},qa)}}),Jt$5=defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(Ra,{slots:qa,attrs:nd}){const od=ao$2(),{primitiveElement:ld,currentElement:ud}=Ie$5();return watchEffect(dd=>{if(ud.value){const pd=markRaw(ud.value);od.itemMap.value.set(pd,{ref:ud.value,value:Ra.value}),dd(()=>od.itemMap.value.delete(pd))}}),()=>h$2(Xn$4,{...nd,[od.attrName]:"",ref:ld},qa)}});function Qt$4(Ra){const qa=Ra??ao$2();return{getItems:()=>{const nd=qa.collectionRef.value;if(!nd)return[];const od=Array.from(nd.querySelectorAll(`[${qa.attrName}]`));return Array.from(qa.itemMap.value.values()).sort((ld,ud)=>od.indexOf(ld.ref)-od.indexOf(ud.ref))}}}function Xa$2(Ra){const qa=Ga$2({nonce:ref$1()});return computed(()=>{var nd;return(Ra==null?void 0:Ra.value)||((nd=qa.nonce)==null?void 0:nd.value)})}const Za$1=defineComponent({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Rt$5),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}});function hd(){const Ra=ref$1(!1);return onMounted(()=>{Le$6("keydown",()=>{Ra.value=!0},{capture:!0,passive:!0}),Le$6(["pointerdown","pointermove"],()=>{Ra.value=!1},{capture:!0,passive:!0})}),Ra}const yd=xl$3(hd),[At$5,Ql$3]=Q$7(["MenuRoot","MenuSub"],"MenuContext"),[wa$1,gd]=Q$7("MenuRoot"),oo$4=defineComponent({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{modal:ld,dir:ud}=toRefs(nd),dd=be$9(ud),pd=ne$6(nd,"open",od),fd=ref$1(),md=yd();return Ql$3({open:pd,onOpenChange:vd=>{pd.value=vd},content:fd,onContentChange:vd=>{fd.value=vd}}),gd({onClose:()=>{pd.value=!1},isUsingKeyboardRef:md,dir:dd,modal:ld}),(vd,Ad)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3}))}}),bd$1="rovingFocusGroup.onEntryFocus",Cd={bubbles:!1,cancelable:!0},Ja={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wd(Ra,qa){return qa!=="rtl"?Ra:Ra==="ArrowLeft"?"ArrowRight":Ra==="ArrowRight"?"ArrowLeft":Ra}function es$2(Ra,qa,nd){const od=wd(Ra.key,nd);if(!(qa==="vertical"&&["ArrowLeft","ArrowRight"].includes(od))&&!(qa==="horizontal"&&["ArrowUp","ArrowDown"].includes(od)))return Ja[od]}function ts$1(Ra,qa=!1,nd){const od=(nd==null?void 0:nd.activeElement)??document.activeElement;for(const ld of Ra)if(ld===od||(ld.focus({preventScroll:qa}),document.activeElement!==od))return}function _d(Ra,qa){return Ra.map((nd,od)=>Ra[(qa+od)%Ra.length])}const[xd,Sd]=Q$7("RovingFocusGroup"),Ot$4=defineComponent({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(Ra,{expose:qa,emit:nd}){const od=Ra,ld=nd,{loop:ud,orientation:dd,dir:pd}=toRefs(od),fd=be$9(pd),md=ne$6(od,"currentTabStopId",ld,{defaultValue:od.defaultCurrentTabStopId,passive:od.currentTabStopId===void 0}),vd=ref$1(!1),Ad=ref$1(!1),Nd=ref$1(0),{getItems:Od}=ba$3();function kd(Gd){const Ud=!Ad.value;if(Gd.currentTarget&&Gd.target===Gd.currentTarget&&Ud&&!vd.value){const Fd=new CustomEvent(bd$1,Cd);if(Gd.currentTarget.dispatchEvent(Fd),ld("entryFocus",Fd),!Fd.defaultPrevented){const jd=Od().map(Jd=>Jd.ref).filter(Jd=>Jd.dataset.disabled!==""),qd=jd.find(Jd=>Jd.getAttribute("data-active")==="true"),zd=jd.find(Jd=>Jd.id===md.value),Yd=[qd,zd,...jd].filter(Boolean);ts$1(Yd,od.preventScrollOnEntryFocus)}}Ad.value=!1}function Ld(){setTimeout(()=>{Ad.value=!1},1)}return qa({getItems:Od}),Sd({loop:ud,dir:fd,orientation:dd,currentTabStopId:md,onItemFocus:Gd=>{md.value=Gd},onItemShiftTab:()=>{vd.value=!0},onFocusableItemAdd:()=>{Nd.value++},onFocusableItemRemove:()=>{Nd.value--}}),(Gd,Ud)=>(openBlock(),createBlock(unref(Ca$1),null,{default:withCtx(()=>[createVNode(unref(O$4),{tabindex:vd.value||Nd.value===0?-1:0,"data-orientation":unref(dd),as:Gd.as,"as-child":Gd.asChild,dir:unref(fd),style:{outline:"none"},onMousedown:Ud[0]||(Ud[0]=Fd=>Ad.value=!0),onMouseup:Ld,onFocus:kd,onBlur:Ud[1]||(Ud[1]=Fd=>vd.value=!1)},{default:withCtx(()=>[renderSlot(Gd.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),kt$4=defineComponent({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Ra,nd=xd(),od=computed(()=>qa.tabStopId||he$4()),ld=computed(()=>nd.currentTabStopId.value===od.value),{getItems:ud}=Qt$4(),{primitiveElement:dd,currentElement:pd}=Ie$5(),fd=computed(()=>{var vd;return(vd=pd.value)==null?void 0:vd.getRootNode()});onMounted(()=>{qa.focusable&&nd.onFocusableItemAdd()}),onUnmounted(()=>{qa.focusable&&nd.onFocusableItemRemove()});function md(vd){if(vd.key==="Tab"&&vd.shiftKey){nd.onItemShiftTab();return}if(vd.target!==vd.currentTarget)return;const Ad=es$2(vd,nd.orientation.value,nd.dir.value);if(Ad!==void 0){if(vd.metaKey||vd.ctrlKey||vd.altKey||!qa.allowShiftKey&&vd.shiftKey)return;vd.preventDefault();let Nd=[...ud().map(Od=>Od.ref).filter(Od=>Od.dataset.disabled!=="")];if(Ad==="last")Nd.reverse();else if(Ad==="prev"||Ad==="next"){Ad==="prev"&&Nd.reverse();const Od=Nd.indexOf(vd.currentTarget);Nd=nd.loop.value?_d(Nd,Od+1):Nd.slice(Od+1)}nextTick$1(()=>ts$1(Nd,!1,fd.value))}}return(vd,Ad)=>(openBlock(),createBlock(unref(Jt$5),null,{default:withCtx(()=>[createVNode(unref(O$4),{ref_key:"primitiveElement",ref:dd,tabindex:ld.value?0:-1,"data-orientation":unref(nd).orientation.value,"data-active":vd.active,"data-disabled":vd.focusable?void 0:"",as:vd.as,"as-child":vd.asChild,onMousedown:Ad[0]||(Ad[0]=Nd=>{vd.focusable?unref(nd).onItemFocus(od.value):Nd.preventDefault()}),onFocus:Ad[1]||(Ad[1]=Nd=>unref(nd).onItemFocus(od.value)),onKeydown:md},{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[lo$3,Ed]=Q$7("MenuContent"),so$2=defineComponent({__name:"MenuContentImpl",props:mergeDefaults({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...Zl$3}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=At$5(),ud=wa$1(),{trapFocus:dd,disableOutsidePointerEvents:pd,loop:fd}=toRefs(nd);Gn$4(),ha$1(pd.value);const md=ref$1(""),vd=ref$1(0),Ad=ref$1(0),Nd=ref$1(null),Od=ref$1("right"),kd=ref$1(0),Ld=ref$1(null),{createCollection:Gd}=Me$7(),{forwardRef:Ud,currentElement:Fd}=R$7(),jd=Gd(Fd);watch(Fd,pf=>{ld.onContentChange(pf)});const{handleTypeaheadSearch:qd}=ga$2(jd);onUnmounted(()=>{window.clearTimeout(vd.value)});function zd(pf){var mf,Tf;return Od.value===((mf=Nd.value)==null?void 0:mf.side)&&vu$3(pf,(Tf=Nd.value)==null?void 0:Tf.area)}async function Yd(pf){var mf;od("openAutoFocus",pf),!pf.defaultPrevented&&(pf.preventDefault(),(mf=Fd.value)==null||mf.focus({preventScroll:!0}))}function Jd(pf){if(pf.defaultPrevented)return;const mf=pf.target.closest("[data-radix-menu-content]")===pf.currentTarget,Tf=pf.ctrlKey||pf.altKey||pf.metaKey,vf=pf.key.length===1,Af=Bt$5(pf,document.activeElement,Fd.value,{loop:fd.value,arrowKeyOptions:"vertical",dir:ud==null?void 0:ud.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(Af)return Af==null?void 0:Af.focus();if(pf.code==="Space"||(mf&&(pf.key==="Tab"&&pf.preventDefault(),!Tf&&vf&&qd(pf.key)),pf.target!==Fd.value)||!du$3.includes(pf.key))return;pf.preventDefault();const Sf=jd.value;Wl$3.includes(pf.key)&&Sf.reverse(),$n$4(Sf)}function yf(pf){var mf,Tf;(Tf=(mf=pf==null?void 0:pf.currentTarget)==null?void 0:mf.contains)!=null&&Tf.call(mf,pf.target)||(window.clearTimeout(vd.value),md.value="")}function Xd(pf){var mf;if(!ua$2(pf))return;const Tf=pf.target,vf=kd.value!==pf.clientX;if((mf=pf==null?void 0:pf.currentTarget)!=null&&mf.contains(Tf)&&vf){const Af=pf.clientX>kd.value?"right":"left";Od.value=Af,kd.value=pf.clientX}}return Ed({onItemEnter:pf=>!!zd(pf),onItemLeave:pf=>{var mf;zd(pf)||((mf=Fd.value)==null||mf.focus(),Ld.value=null)},onTriggerLeave:pf=>!!zd(pf),searchRef:md,pointerGraceTimerRef:Ad,onPointerGraceIntentChange:pf=>{Nd.value=pf}}),(pf,mf)=>(openBlock(),createBlock(unref(Ya$2),{"as-child":"",trapped:unref(dd),onMountAutoFocus:Yd,onUnmountAutoFocus:mf[7]||(mf[7]=Tf=>od("closeAutoFocus",Tf))},{default:withCtx(()=>[createVNode(unref(yt$3),{"as-child":"","disable-outside-pointer-events":unref(pd),onEscapeKeyDown:mf[2]||(mf[2]=Tf=>od("escapeKeyDown",Tf)),onPointerDownOutside:mf[3]||(mf[3]=Tf=>od("pointerDownOutside",Tf)),onFocusOutside:mf[4]||(mf[4]=Tf=>od("focusOutside",Tf)),onInteractOutside:mf[5]||(mf[5]=Tf=>od("interactOutside",Tf)),onDismiss:mf[6]||(mf[6]=Tf=>od("dismiss"))},{default:withCtx(()=>[createVNode(unref(Ot$4),{"current-tab-stop-id":Ld.value,"onUpdate:currentTabStopId":mf[0]||(mf[0]=Tf=>Ld.value=Tf),"as-child":"",orientation:"vertical",dir:unref(ud).dir.value,loop:unref(fd),onEntryFocus:mf[1]||(mf[1]=Tf=>{od("entryFocus",Tf),unref(ud).isUsingKeyboardRef.value||Tf.preventDefault()})},{default:withCtx(()=>[createVNode(unref(Dt$4),{ref:unref(Ud),role:"menu",as:pf.as,"as-child":pf.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":unref(Qn$4)(unref(ld).open.value),dir:unref(ud).dir.value,side:pf.side,"side-offset":pf.sideOffset,align:pf.align,"align-offset":pf.alignOffset,"avoid-collisions":pf.avoidCollisions,"collision-boundary":pf.collisionBoundary,"collision-padding":pf.collisionPadding,"arrow-padding":pf.arrowPadding,"prioritize-position":pf.prioritizePosition,sticky:pf.sticky,"hide-when-detached":pf.hideWhenDetached,onKeydown:Jd,onBlur:yf,onPointermove:Xd},{default:withCtx(()=>[renderSlot(pf.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),as$2=defineComponent({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,nd=lo$3(),{forwardRef:od}=R$7(),ld=ref$1(!1);async function ud(pd){if(!pd.defaultPrevented&&ua$2(pd)){if(qa.disabled)nd.onItemLeave(pd);else if(!nd.onItemEnter(pd)){const fd=pd.currentTarget;fd==null||fd.focus({preventScroll:!0})}}}async function dd(pd){await nextTick$1(),!pd.defaultPrevented&&ua$2(pd)&&nd.onItemLeave(pd)}return(pd,fd)=>(openBlock(),createBlock(unref(Jt$5),null,{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(od),role:"menuitem",tabindex:"-1"},pd.$attrs,{as:pd.as,"as-child":pd.asChild,"data-radix-vue-collection-item":"","aria-disabled":pd.disabled||void 0,"data-disabled":pd.disabled?"":void 0,"data-highlighted":ld.value?"":void 0,onPointermove:ud,onPointerleave:dd,onFocus:fd[0]||(fd[0]=async md=>{await nextTick$1(),!(md.defaultPrevented||pd.disabled)&&(ld.value=!0)}),onBlur:fd[1]||(fd[1]=async md=>{await nextTick$1(),!md.defaultPrevented&&(ld.value=!1)})}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3}))}}),_a$3=defineComponent({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{forwardRef:ld,currentElement:ud}=R$7(),dd=wa$1(),pd=lo$3(),fd=ref$1(!1);async function md(){const vd=ud.value;if(!nd.disabled&&vd){const Ad=new CustomEvent(iu$2,{bubbles:!0,cancelable:!0});od("select",Ad),await nextTick$1(),Ad.defaultPrevented?fd.value=!1:dd.onClose()}}return(vd,Ad)=>(openBlock(),createBlock(as$2,mergeProps(nd,{ref:unref(ld),onClick:md,onPointerdown:Ad[0]||(Ad[0]=()=>{fd.value=!0}),onPointerup:Ad[1]||(Ad[1]=async Nd=>{var Od;await nextTick$1(),!Nd.defaultPrevented&&(fd.value||(Od=Nd.currentTarget)==null||Od.click())}),onKeydown:Ad[2]||(Ad[2]=async Nd=>{const Od=unref(pd).searchRef.value!=="";vd.disabled||Od&&Nd.key===" "||unref(Dn$3).includes(Nd.key)&&(Nd.currentTarget.click(),Nd.preventDefault())})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16))}}),[Pd,ns$2]=Q$7(["MenuCheckboxItem","MenuRadioItem"],"MenuItemIndicatorContext"),ro$2=defineComponent({__name:"MenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Pd({checked:ref$1(!1)});return(nd,od)=>(openBlock(),createBlock(unref(Pe$7),{present:nd.forceMount||unref(Fa$1)(unref(qa).checked.value)||unref(qa).checked.value===!0},{default:withCtx(()=>[createVNode(unref(O$4),{as:nd.as,"as-child":nd.asChild,"data-state":unref(eo$2)(unref(qa).checked.value)},{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},8,["as","as-child","data-state"])]),_:3},8,["present"]))}}),io$3=defineComponent({__name:"MenuCheckboxItem",props:{checked:{type:[Boolean,String],default:!1},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=ne$6(nd,"checked",od);return ns$2({checked:ld}),(ud,dd)=>(openBlock(),createBlock(_a$3,mergeProps({role:"menuitemcheckbox"},nd,{"aria-checked":unref(Fa$1)(unref(ld))?"mixed":unref(ld),"data-state":unref(eo$2)(unref(ld)),onSelect:dd[0]||(dd[0]=async pd=>{od("select",pd),unref(Fa$1)(unref(ld))?ld.value=!0:ld.value=!unref(ld)})}),{default:withCtx(()=>[renderSlot(ud.$slots,"default",{checked:unref(ld)})]),_:3},16,["aria-checked","data-state"]))}}),Dd=defineComponent({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=xe$5(nd,od),ud=At$5(),{forwardRef:dd,currentElement:pd}=R$7();return ya$1(pd),(fd,md)=>(openBlock(),createBlock(so$2,mergeProps(unref(ld),{ref:unref(dd),"trap-focus":unref(ud).open.value,"disable-outside-pointer-events":unref(ud).open.value,"disable-outside-scroll":!0,onDismiss:md[0]||(md[0]=vd=>unref(ud).onOpenChange(!1)),onFocusOutside:md[1]||(md[1]=withModifiers(vd=>od("focusOutside",vd),["prevent"]))}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),$d$1=defineComponent({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa),od=At$5();return(ld,ud)=>(openBlock(),createBlock(so$2,mergeProps(unref(nd),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:ud[0]||(ud[0]=dd=>unref(od).onOpenChange(!1))}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),uo$3=defineComponent({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa),od=At$5(),ld=wa$1();return(ud,dd)=>(openBlock(),createBlock(unref(Pe$7),{present:ud.forceMount||unref(od).open.value},{default:withCtx(()=>[unref(ld).modal.value?(openBlock(),createBlock(Dd,normalizeProps(mergeProps({key:0},{...ud.$attrs,...unref(nd)})),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16)):(openBlock(),createBlock($d$1,normalizeProps(mergeProps({key:1},{...ud.$attrs,...unref(nd)})),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Qa$1=defineComponent({__name:"MenuGroup",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(O$4),mergeProps({role:"group"},qa),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),po$2=defineComponent({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[Bd,Id]=Q$7("MenuRadioGroup"),fo$2=defineComponent({__name:"MenuRadioGroup",props:{modelValue:{default:""},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=ne$6(nd,"modelValue",qa);return Id({modelValue:od,onValueChange:ld=>{od.value=ld}}),(ld,ud)=>(openBlock(),createBlock(Qa$1,normalizeProps(guardReactiveProps(nd)),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{modelValue:unref(od)})]),_:3},16))}}),vo$1=defineComponent({__name:"MenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{value:ld}=toRefs(nd),ud=Bd(),dd=computed(()=>ud.modelValue.value===(ld==null?void 0:ld.value));return ns$2({checked:dd}),(pd,fd)=>(openBlock(),createBlock(_a$3,mergeProps({role:"menuitemradio"},nd,{"aria-checked":dd.value,"data-state":unref(eo$2)(dd.value),onSelect:fd[0]||(fd[0]=async md=>{od("select",md),unref(ud).onValueChange(unref(ld))})}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16,["aria-checked","data-state"]))}}),mo$3=defineComponent({__name:"MenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{role:"separator","aria-orientation":"horizontal"}),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[os$2,Td]=Q$7("MenuSub"),ho$2=defineComponent({__name:"MenuSub",props:{open:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=ne$6(nd,"open",qa,{defaultValue:!1,passive:nd.open===void 0}),ld=At$5(),ud=ref$1(),dd=ref$1();return watchEffect(pd=>{(ld==null?void 0:ld.open.value)===!1&&(od.value=!1),pd(()=>od.value=!1)}),Ql$3({open:od,onOpenChange:pd=>{od.value=pd},content:dd,onContentChange:pd=>{dd.value=pd}}),Td({triggerId:"",contentId:"",trigger:ud,onTriggerChange:pd=>{ud.value=pd}}),(pd,fd)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3}))}}),yo$3=defineComponent({__name:"MenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa),od=At$5(),ld=wa$1(),ud=os$2(),{forwardRef:dd,currentElement:pd}=R$7();return ud.contentId||(ud.contentId=he$4(void 0,"radix-vue-menu-sub-content")),(fd,md)=>(openBlock(),createBlock(unref(Pe$7),{present:fd.forceMount||unref(od).open.value},{default:withCtx(()=>[createVNode(so$2,mergeProps(unref(nd),{id:unref(ud).contentId,ref:unref(dd),"aria-labelledby":unref(ud).triggerId,align:"start",side:unref(ld).dir.value==="rtl"?"left":"right","disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:md[0]||(md[0]=withModifiers(vd=>{var Ad;unref(ld).isUsingKeyboardRef.value&&((Ad=unref(pd))==null||Ad.focus())},["prevent"])),onCloseAutoFocus:md[1]||(md[1]=withModifiers(()=>{},["prevent"])),onFocusOutside:md[2]||(md[2]=vd=>{vd.defaultPrevented||vd.target!==unref(ud).trigger.value&&unref(od).onOpenChange(!1)}),onEscapeKeyDown:md[3]||(md[3]=vd=>{unref(ld).onClose(),vd.preventDefault()}),onKeydown:md[4]||(md[4]=vd=>{var Ad,Nd;const Od=(Ad=vd.currentTarget)==null?void 0:Ad.contains(vd.target),kd=unref(pu$3)[unref(ld).dir.value].includes(vd.key);Od&&kd&&(unref(od).onOpenChange(!1),(Nd=unref(ud).trigger.value)==null||Nd.focus(),vd.preventDefault())})}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["id","aria-labelledby","side"])]),_:3},8,["present"]))}}),go$3=defineComponent({__name:"MenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,nd=At$5(),od=wa$1(),ld=os$2(),ud=lo$3(),dd=ref$1(null);ld.triggerId||(ld.triggerId=he$4(void 0,"radix-vue-menu-sub-trigger"));function pd(){dd.value&&window.clearTimeout(dd.value),dd.value=null}onUnmounted(()=>{pd()});function fd(Ad){!ua$2(Ad)||ud.onItemEnter(Ad)||!qa.disabled&&!nd.open.value&&!dd.value&&(ud.onPointerGraceIntentChange(null),dd.value=window.setTimeout(()=>{nd.onOpenChange(!0),pd()},100))}async function md(Ad){var Nd,Od;if(!ua$2(Ad))return;pd();const kd=(Nd=nd.content.value)==null?void 0:Nd.getBoundingClientRect();if(kd!=null&&kd.width){const Ld=(Od=nd.content.value)==null?void 0:Od.dataset.side,Gd=Ld==="right",Ud=Gd?-5:5,Fd=kd[Gd?"left":"right"],jd=kd[Gd?"right":"left"];ud.onPointerGraceIntentChange({area:[{x:Ad.clientX+Ud,y:Ad.clientY},{x:Fd,y:kd.top},{x:jd,y:kd.top},{x:jd,y:kd.bottom},{x:Fd,y:kd.bottom}],side:Ld}),window.clearTimeout(ud.pointerGraceTimerRef.value),ud.pointerGraceTimerRef.value=window.setTimeout(()=>ud.onPointerGraceIntentChange(null),300)}else{if(ud.onTriggerLeave(Ad))return;ud.onPointerGraceIntentChange(null)}}async function vd(Ad){var Nd;const Od=ud.searchRef.value!=="";qa.disabled||Od&&Ad.key===" "||cu$4[od.dir.value].includes(Ad.key)&&(nd.onOpenChange(!0),await nextTick$1(),(Nd=nd.content.value)==null||Nd.focus(),Ad.preventDefault())}return(Ad,Nd)=>(openBlock(),createBlock(Za$1,{"as-child":""},{default:withCtx(()=>[createVNode(as$2,mergeProps(qa,{id:unref(ld).triggerId,ref:Od=>{var kd;(kd=unref(ld))==null||kd.onTriggerChange(Od==null?void 0:Od.$el)},"aria-haspopup":"menu","aria-expanded":unref(nd).open.value,"aria-controls":unref(ld).contentId,"data-state":unref(Qn$4)(unref(nd).open.value),onClick:Nd[0]||(Nd[0]=async Od=>{qa.disabled||Od.defaultPrevented||(Od.currentTarget.focus(),unref(nd).open.value||unref(nd).onOpenChange(!0))}),onPointermove:fd,onPointerleave:md,onKeydown:vd}),{default:withCtx(()=>[renderSlot(Ad.$slots,"default")]),_:3},16,["id","aria-expanded","aria-controls","data-state"])]),_:3}))}}),[ls$2,Rd]=Q$7("ContextMenuRoot"),em$1=defineComponent({inheritAttrs:!1,__name:"ContextMenuRoot",props:{dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{dir:ld,modal:ud}=toRefs(nd);R$7();const dd=be$9(ld),pd=ref$1(!1);return Rd({open:pd,onOpenChange:fd=>{pd.value=fd},dir:dd,modal:ud}),watch(pd,fd=>{od("update:open",fd)}),(fd,md)=>(openBlock(),createBlock(unref(oo$4),{open:pd.value,"onUpdate:open":md[0]||(md[0]=vd=>pd.value=vd),dir:unref(dd),modal:unref(ud)},{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},8,["open","dir","modal"]))}});function Go$2(Ra){return Ra.pointerType!=="mouse"}const tm$1=defineComponent({inheritAttrs:!1,__name:"ContextMenuTrigger",props:{disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Ra,{disabled:nd}=toRefs(qa),{forwardRef:od}=R$7(),ld=ls$2(),ud=ref$1({x:0,y:0}),dd=computed(()=>({getBoundingClientRect:()=>({width:0,height:0,left:ud.value.x,right:ud.value.x,top:ud.value.y,bottom:ud.value.y,...ud.value})})),pd=ref$1(0);function fd(){window.clearTimeout(pd.value)}function md(Od){ud.value={x:Od.clientX,y:Od.clientY},ld.onOpenChange(!0)}async function vd(Od){nd.value||(await nextTick$1(),Od.defaultPrevented||(fd(),md(Od),Od.preventDefault()))}async function Ad(Od){nd.value||(await nextTick$1(),Go$2(Od)&&!Od.defaultPrevented&&(fd(),pd.value=window.setTimeout(()=>md(Od),700)))}async function Nd(Od){nd.value||(await nextTick$1(),Go$2(Od)&&!Od.defaultPrevented&&fd())}return(Od,kd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(Za$1),{as:"template",element:dd.value},null,8,["element"]),createVNode(unref(O$4),mergeProps({ref:unref(od),as:Od.as,"as-child":Od.asChild,"data-state":unref(ld).open.value?"open":"closed","data-disabled":unref(nd)?"":void 0,style:{WebkitTouchCallout:"none"}},Od.$attrs,{onContextmenu:vd,onPointerdown:Ad,onPointermove:Nd,onPointercancel:Nd,onPointerup:Nd}),{default:withCtx(()=>[renderSlot(Od.$slots,"default")]),_:3},16,["as","as-child","data-state","data-disabled"])],64))}}),am$1=defineComponent({__name:"ContextMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(po$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),nm$1=defineComponent({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},alignOffset:{default:0},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);R$7();const od=ls$2(),ld=ref$1(!1);return(ud,dd)=>(openBlock(),createBlock(unref(uo$3),mergeProps(unref(nd),{side:"right","side-offset":2,align:"start",style:{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:dd[0]||(dd[0]=pd=>{!pd.defaultPrevented&&ld.value&&pd.preventDefault(),ld.value=!1}),onInteractOutside:dd[1]||(dd[1]=pd=>{!pd.defaultPrevented&&!unref(od).modal.value&&(ld.value=!0)})}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),lm=defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(_a$3),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),rm$1=defineComponent({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(mo$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[is$4,oc$2]=Q$7("DropdownMenuRoot"),ah$1=defineComponent({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa;R$7();const ld=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),ud=ref$1(),{modal:dd,dir:pd}=toRefs(nd),fd=be$9(pd);return oc$2({open:ld,onOpenChange:md=>{ld.value=md},onOpenToggle:()=>{ld.value=!ld.value},triggerId:"",triggerElement:ud,contentId:"",modal:dd,dir:fd}),(md,vd)=>(openBlock(),createBlock(unref(oo$4),{open:unref(ld),"onUpdate:open":vd[0]||(vd[0]=Ad=>isRef(ld)?ld.value=Ad:null),dir:unref(fd),modal:unref(dd)},{default:withCtx(()=>[renderSlot(md.$slots,"default",{open:unref(ld)})]),_:3},8,["open","dir","modal"]))}}),nh=defineComponent({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=is$4(),{forwardRef:od,currentElement:ld}=R$7();return onMounted(()=>{nd.triggerElement=ld}),nd.triggerId||(nd.triggerId=he$4(void 0,"radix-vue-dropdown-menu-trigger")),(ud,dd)=>(openBlock(),createBlock(unref(Za$1),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{id:unref(nd).triggerId,ref:unref(od),type:ud.as==="button"?"button":void 0,"as-child":qa.asChild,as:ud.as,"aria-haspopup":"menu","aria-expanded":unref(nd).open.value,"aria-controls":unref(nd).open.value?unref(nd).contentId:void 0,"data-disabled":ud.disabled?"":void 0,disabled:ud.disabled,"data-state":unref(nd).open.value?"open":"closed",onClick:dd[0]||(dd[0]=async pd=>{var fd;!ud.disabled&&pd.button===0&&pd.ctrlKey===!1&&((fd=unref(nd))==null||fd.onOpenToggle(),await nextTick$1(),unref(nd).open.value&&pd.preventDefault())}),onKeydown:dd[1]||(dd[1]=withKeys(pd=>{ud.disabled||(["Enter"," "].includes(pd.key)&&unref(nd).onOpenToggle(),pd.key==="ArrowDown"&&unref(nd).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(pd.key)&&pd.preventDefault())},["enter","space","arrow-down"]))},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),oh=defineComponent({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(po$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),lh=defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);R$7();const od=is$4(),ld=ref$1(!1);function ud(dd){dd.defaultPrevented||(ld.value||setTimeout(()=>{var pd;(pd=od.triggerElement.value)==null||pd.focus()},0),ld.value=!1,dd.preventDefault())}return od.contentId||(od.contentId=he$4(void 0,"radix-vue-dropdown-menu-content")),(dd,pd)=>{var fd;return openBlock(),createBlock(unref(uo$3),mergeProps(unref(nd),{id:unref(od).contentId,"aria-labelledby":(fd=unref(od))==null?void 0:fd.triggerId,style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:ud,onInteractOutside:pd[0]||(pd[0]=md=>{var vd;if(md.defaultPrevented)return;const Ad=md.detail.originalEvent,Nd=Ad.button===0&&Ad.ctrlKey===!0,Od=Ad.button===2||Nd;(!unref(od).modal.value||Od)&&(ld.value=!0),(vd=unref(od).triggerElement.value)!=null&&vd.contains(md.target)&&md.preventDefault()})}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),rh=defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(_a$3),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),ch$1=defineComponent({__name:"DropdownMenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(ro$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),fh=defineComponent({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(fo$2),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),vh=defineComponent({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);return R$7(),(od,ld)=>(openBlock(),createBlock(unref(vo$1),normalizeProps(guardReactiveProps(unref(nd))),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16))}}),[wo$2,rc$3]=Q$7("HoverCardRoot"),Eh=defineComponent({__name:"HoverCardRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},openDelay:{default:700},closeDelay:{default:300}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{openDelay:ld,closeDelay:ud}=toRefs(nd);R$7();const dd=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),pd=ref$1(0),fd=ref$1(0),md=ref$1(!1),vd=ref$1(!1),Ad=ref$1(!1),Nd=ref$1();function Od(){clearTimeout(fd.value),pd.value=window.setTimeout(()=>dd.value=!0,ld.value)}function kd(){clearTimeout(pd.value),!md.value&&!vd.value&&(fd.value=window.setTimeout(()=>dd.value=!1,ud.value))}function Ld(){dd.value=!1}return rc$3({open:dd,onOpenChange(Gd){dd.value=Gd},onOpen:Od,onClose:kd,onDismiss:Ld,hasSelectionRef:md,isPointerDownOnContentRef:vd,isPointerInTransitRef:Ad,triggerElement:Nd}),(Gd,Ud)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(Gd.$slots,"default",{open:unref(dd)})]),_:3}))}});function Tn$3(Ra){return qa=>qa.pointerType==="touch"?void 0:Ra()}function ic$2(Ra){const qa=[],nd=document.createTreeWalker(Ra,NodeFilter.SHOW_ELEMENT,{acceptNode:od=>od.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;nd.nextNode();)qa.push(nd.currentNode);return qa}const Ph=defineComponent({__name:"HoverCardTrigger",props:{asChild:{type:Boolean},as:{default:"a"}},setup(Ra){const{forwardRef:qa,currentElement:nd}=R$7(),od=wo$2();od.triggerElement=nd;function ld(){setTimeout(()=>{!od.isPointerInTransitRef.value&&!od.open.value&&od.onClose()},0)}return(ud,dd)=>(openBlock(),createBlock(unref(Rt$5),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(qa),"as-child":ud.asChild,as:ud.as,"data-state":unref(od).open.value?"open":"closed","data-grace-area-trigger":"",onPointerenter:dd[0]||(dd[0]=pd=>unref(Tn$3)(unref(od).onOpen)(pd)),onPointerleave:dd[1]||(dd[1]=pd=>unref(Tn$3)(ld)(pd)),onFocus:dd[2]||(dd[2]=pd=>unref(od).onOpen()),onBlur:dd[3]||(dd[3]=pd=>unref(od).onClose())},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as-child","as","data-state"])]),_:3}))}}),Dh=defineComponent({__name:"HoverCardPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),uc$3=defineComponent({__name:"HoverCardContentImpl",props:{side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=It$4(nd),{forwardRef:ud,currentElement:dd}=R$7(),pd=wo$2(),{isPointerInTransit:fd,onPointerExit:md}=Ol$3(pd.triggerElement,dd);di$4(pd.isPointerInTransitRef,fd,{direction:"rtl"}),md(()=>{pd.onClose()});const vd=ref$1(!1);let Ad;watchEffect(Od=>{if(vd.value){const kd=document.body;Ad=kd.style.userSelect||kd.style.webkitUserSelect,kd.style.userSelect="none",kd.style.webkitUserSelect="none",Od(()=>{kd.style.userSelect=Ad,kd.style.webkitUserSelect=Ad})}});function Nd(){vd.value=!1,pd.isPointerDownOnContentRef.value=!1,nextTick$1(()=>{var Od;((Od=document.getSelection())==null?void 0:Od.toString())!==""&&(pd.hasSelectionRef.value=!0)})}return onMounted(()=>{dd.value&&(document.addEventListener("pointerup",Nd),ic$2(dd.value).forEach(Od=>Od.setAttribute("tabindex","-1")))}),onUnmounted(()=>{document.removeEventListener("pointerup",Nd),pd.hasSelectionRef.value=!1,pd.isPointerDownOnContentRef.value=!1}),(Od,kd)=>(openBlock(),createBlock(unref(yt$3),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:kd[1]||(kd[1]=Ld=>od("escapeKeyDown",Ld)),onPointerDownOutside:kd[2]||(kd[2]=Ld=>od("pointerDownOutside",Ld)),onFocusOutside:kd[3]||(kd[3]=withModifiers(Ld=>od("focusOutside",Ld),["prevent"])),onDismiss:unref(pd).onDismiss},{default:withCtx(()=>[createVNode(unref(Dt$4),mergeProps({...unref(ld),...Od.$attrs},{ref:unref(ud),"data-state":unref(pd).open.value?"open":"closed",style:{userSelect:vd.value?"text":void 0,WebkitUserSelect:vd.value?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"},onPointerdown:kd[0]||(kd[0]=Ld=>{Ld.currentTarget.contains(Ld.target)&&(vd.value=!0),unref(pd).hasSelectionRef.value=!1,unref(pd).isPointerDownOnContentRef.value=!0})}),{default:withCtx(()=>[renderSlot(Od.$slots,"default")]),_:3},16,["data-state","style"])]),_:3},8,["onDismiss"]))}}),$h=defineComponent({__name:"HoverCardContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa),{forwardRef:od}=R$7(),ld=wo$2();return(ud,dd)=>(openBlock(),createBlock(unref(Pe$7),{present:ud.forceMount||unref(ld).open.value},{default:withCtx(()=>[createVNode(uc$3,mergeProps(unref(nd),{ref:unref(od),onPointerenter:dd[0]||(dd[0]=pd=>unref(Tn$3)(unref(ld).onOpen)(pd))}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),Ih=defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{default:"label"}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{onMousedown:od[0]||(od[0]=ld=>{!ld.defaultPrevented&&ld.detail>1&&ld.preventDefault()})}),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[tn$4,Ic$2]=Q$7("MenubarRoot"),Nh=defineComponent({__name:"MenubarRoot",props:{modelValue:{},defaultValue:{},dir:{},loop:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{forwardRef:ld,currentElement:ud}=R$7(),{createCollection:dd}=Me$7("menubar");dd(ud);const pd=ne$6(nd,"modelValue",od,{defaultValue:nd.defaultValue??"",passive:nd.modelValue===void 0}),fd=ref$1(null),{dir:md,loop:vd}=toRefs(nd),Ad=be$9(md);return Ic$2({modelValue:pd,dir:Ad,loop:vd,onMenuOpen:Nd=>{pd.value=Nd,fd.value=Nd},onMenuClose:()=>{pd.value=""},onMenuToggle:Nd=>{pd.value=pd.value?"":Nd,fd.value=Nd}}),(Nd,Od)=>(openBlock(),createBlock(unref(Ot$4),{"current-tab-stop-id":fd.value,"onUpdate:currentTabStopId":Od[0]||(Od[0]=kd=>fd.value=kd),orientation:"horizontal",loop:unref(vd),dir:unref(Ad),"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(ld),role:"menubar"},{default:withCtx(()=>[renderSlot(Nd.$slots,"default",{modelValue:unref(pd)})]),_:3},512)]),_:3},8,["current-tab-stop-id","loop","dir"]))}}),[_o$2,Tc$1]=Q$7("MenubarMenu"),Lh=defineComponent({__name:"MenubarMenu",props:{value:{}},setup(Ra){const qa=he$4(Ra.value),nd=tn$4();R$7();const od=ref$1(),ld=ref$1(!1),ud=computed(()=>nd.modelValue.value===qa);return watch(ud,()=>{ud.value||(ld.value=!1)}),Tc$1({value:qa,triggerElement:od,triggerId:qa,contentId:"",wasKeyboardTriggerOpenRef:ld}),(dd,pd)=>(openBlock(),createBlock(unref(oo$4),{open:ud.value,modal:!1,dir:unref(nd).dir.value,"onUpdate:open":pd[0]||(pd[0]=fd=>{fd||unref(nd).onMenuClose()})},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},8,["open","dir"]))}}),zh=defineComponent({__name:"MenubarTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=tn$4(),nd=_o$2(),{forwardRef:od,currentElement:ld}=R$7(),ud=ref$1(!1),dd=computed(()=>qa.modelValue.value===nd.value);return onMounted(()=>{nd.triggerElement=ld}),(pd,fd)=>(openBlock(),createBlock(unref(kt$4),{"as-child":"",focusable:!pd.disabled,"tab-stop-id":unref(nd).value},{default:withCtx(()=>[createVNode(unref(Za$1),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{id:unref(nd).triggerId,ref:unref(od),as:pd.as,type:pd.as==="button"?"button":void 0,role:"menuitem","aria-haspopup":"menu","aria-expanded":dd.value,"aria-controls":dd.value?unref(nd).contentId:void 0,"data-highlighted":ud.value?"":void 0,"data-state":dd.value?"open":"closed","data-disabled":pd.disabled?"":void 0,disabled:pd.disabled,"data-value":unref(nd).value,"data-radix-vue-collection-item":"",onPointerdown:fd[0]||(fd[0]=md=>{!pd.disabled&&md.button===0&&md.ctrlKey===!1&&(unref(qa).onMenuOpen(unref(nd).value),dd.value||md.preventDefault())}),onPointerenter:fd[1]||(fd[1]=()=>{var md;unref(qa).modelValue.value&&!dd.value&&(unref(qa).onMenuOpen(unref(nd).value),(md=unref(ld))==null||md.focus())}),onKeydown:fd[2]||(fd[2]=withKeys(md=>{pd.disabled||(["Enter"," "].includes(md.key)&&unref(qa).onMenuToggle(unref(nd).value),md.key==="ArrowDown"&&unref(qa).onMenuOpen(unref(nd).value),["Enter"," ","ArrowDown"].includes(md.key)&&(unref(nd).wasKeyboardTriggerOpenRef.value=!0,md.preventDefault()))},["enter","space","arrow-down"])),onFocus:fd[3]||(fd[3]=md=>ud.value=!0),onBlur:fd[4]||(fd[4]=md=>ud.value=!1)},{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},8,["id","as","type","aria-expanded","aria-controls","data-highlighted","data-state","data-disabled","disabled","data-value"])]),_:3})]),_:3},8,["focusable","tab-stop-id"]))}}),Kh=defineComponent({__name:"MenubarPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(po$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Hh=defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);R$7();const od=tn$4(),ld=_o$2();ld.contentId||(ld.contentId=he$4(void 0,"radix-vue-menubar-content"));const{injectCollection:ud}=Me$7("menubar"),dd=ud(),pd=ref$1(!1);function fd(md){const vd=md.target.hasAttribute("data-radix-menubar-subtrigger"),Ad=(od.dir.value==="rtl"?"ArrowRight":"ArrowLeft")===md.key;if(!Ad&&vd)return;let Nd=dd.value.map(Ld=>Ld.dataset.value);Ad&&Nd.reverse();const Od=Nd.indexOf(ld.value);Nd=od.loop.value?qn$3(Nd,Od+1):Nd.slice(Od+1);const[kd]=Nd;kd&&od.onMenuOpen(kd)}return(md,vd)=>(openBlock(),createBlock(unref(uo$3),mergeProps(unref(nd),{id:unref(ld).contentId,"data-radix-menubar-content":"","aria-labelledby":unref(ld).triggerId,style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:vd[0]||(vd[0]=Ad=>{var Nd;!unref(od).modelValue.value&&!pd.value&&((Nd=unref(ld).triggerElement.value)==null||Nd.focus()),pd.value=!1,Ad.preventDefault()}),onFocusOutside:vd[1]||(vd[1]=Ad=>{const Nd=Ad.target;unref(dd).some(Od=>Od.contains(Nd))&&Ad.preventDefault()}),onInteractOutside:vd[2]||(vd[2]=Ad=>{pd.value=!0}),onEntryFocus:vd[3]||(vd[3]=Ad=>{unref(ld).wasKeyboardTriggerOpenRef.value||Ad.preventDefault()}),onKeydown:withKeys(fd,["arrow-right","arrow-left"])}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),jh=defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(_a$3),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),Gh=defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(mo$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),qh=defineComponent({__name:"MenubarCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(io$3),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),Yh=defineComponent({__name:"MenubarItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(ro$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Qh=defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa;R$7();const ld=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen??!1,passive:nd.open===void 0});return(ud,dd)=>(openBlock(),createBlock(unref(ho$2),{open:unref(ld),"onUpdate:open":dd[0]||(dd[0]=pd=>isRef(ld)?ld.value=pd:null)},{default:withCtx(()=>[renderSlot(ud.$slots,"default",{open:unref(ld)})]),_:3},8,["open"]))}}),ey=defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);R$7();const{injectCollection:od}=Me$7("menubar"),ld=tn$4(),ud=_o$2(),dd=od();function pd(fd){if(fd.target.hasAttribute("data-radix-menubar-subtrigger"))return;let md=dd.value.map(Nd=>Nd.dataset.value);const vd=md.indexOf(ud.value);md=ld.loop.value?qn$3(md,vd+1):md.slice(vd+1);const[Ad]=md;Ad&&ld.onMenuOpen(Ad)}return(fd,md)=>(openBlock(),createBlock(unref(yo$3),mergeProps(unref(nd),{"data-radix-menubar-content":"",style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onKeydown:withKeys(pd,["arrow-right"])}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16))}}),ty=defineComponent({__name:"MenubarSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(go$3),mergeProps(qa,{"data-radix-menubar-subtrigger":""}),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}});function ms$3(Ra){const{disabled:qa}=Ra,nd=ref$1(),od=ia$1(),ld=()=>window.clearTimeout(nd.value),ud=Nd=>{ld(),!qa.value&&(od.trigger(),nd.value=window.setTimeout(()=>{ud(60)},Nd))},dd=()=>{ud(400)},pd=()=>{ld()},fd=ref$1(!1),md=computed(()=>$e$4(Ra.target)),vd=Nd=>{Nd.button!==0||fd.value||(Nd.preventDefault(),fd.value=!0,dd())},Ad=()=>{fd.value=!1,pd()};return qe$3&&(Le$6(md||window,"pointerdown",vd),Le$6(window,"pointerup",Ad),Le$6(window,"pointercancel",Ad)),{isPressed:fd,onTrigger:od.on}}function Yo$2(Ra,qa=ref$1({})){return Sl$3(()=>new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(Ra.value,qa.value))}function Vc$2(Ra,qa=ref$1({})){return Sl$3(()=>new $6c7bd7858deea686$export$cd11ab140839f11d(Ra.value,qa.value))}function Xo$2(Ra,qa,nd){let od=Ra==="+"?qa+nd:qa-nd;if(qa%1!==0||nd%1!==0){const ld=qa.toString().split("."),ud=nd.toString().split("."),dd=ld[1]&&ld[1].length||0,pd=ud[1]&&ud[1].length||0,fd=10**Math.max(dd,pd);qa=Math.round(qa*fd),nd=Math.round(nd*fd),od=Ra==="+"?qa+nd:qa-nd,od/=fd}return od}const Fc$2=["value","name","disabled","required"],[Eo$2,Nc$2]=Q$7("NumberFieldRoot"),cy$1=defineComponent({inheritAttrs:!1,__name:"NumberFieldRoot",props:{defaultValue:{default:void 0},modelValue:{},min:{},max:{},step:{default:1},formatOptions:{},locale:{default:"en-US"},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{disabled:ld,min:ud,max:dd,step:pd,locale:fd,formatOptions:md,id:vd}=toRefs(nd),Ad=ne$6(nd,"modelValue",od,{defaultValue:nd.defaultValue,passive:nd.modelValue===void 0}),{primitiveElement:Nd,currentElement:Od}=Ie$5(),kd=Je$4(Od),Ld=ref$1(),Gd=computed(()=>vf(Ad.value)===ud.value||(ud.value&&!isNaN(Ad.value)?Xo$2("-",Ad.value,pd.value)vf(Ad.value)===dd.value||(dd.value&&!isNaN(Ad.value)?Xo$2("+",Ad.value,pd.value)>dd.value:!1));function Fd(Sf,Df=1){var If;const Gf=Jd.parse(((If=Ld.value)==null?void 0:If.value)??"");nd.disabled||(isNaN(Gf)?Ad.value=ud.value??0:Sf==="increase"?Ad.value=vf(Gf+(pd.value??1)*Df):Ad.value=vf(Gf-(pd.value??1)*Df))}function jd(Sf=1){Fd("increase",Sf)}function qd(Sf=1){Fd("decrease",Sf)}function zd(Sf){Sf==="min"&&ud.value!==void 0?Ad.value=vf(ud.value):Sf==="max"&&dd.value!==void 0&&(Ad.value=vf(dd.value))}const Yd=Yo$2(fd,md),Jd=Vc$2(fd,md),yf=computed(()=>Yd.resolvedOptions().maximumFractionDigits>0?"decimal":"numeric"),Xd=Yo$2(fd,md),pf=computed(()=>isNaN(Ad.value)?"":Xd.format(Ad.value));function mf(Sf){return Jd.isValidPartialNumber(Sf,ud.value,dd.value)}function Tf(Sf){Ld.value&&(Ld.value.value=Sf)}function vf(Sf){let Df;return pd.value===void 0||isNaN(pd.value)?Df=Wt$4(Sf,ud.value,dd.value):Df=Nr$4(Sf,ud.value,dd.value,pd.value),Df=Jd.parse(Yd.format(Df)),Df}function Af(Sf){const Df=Jd.parse(Sf);return Ad.value=vf(Df),Sf.length?Tf(pf.value):Tf(Sf)}return Nc$2({modelValue:Ad,handleDecrease:qd,handleIncrease:jd,handleMinMaxValue:zd,inputMode:yf,inputEl:Ld,onInputElement:Sf=>Ld.value=Sf,textValue:pf,validate:mf,applyInputValue:Af,disabled:ld,max:dd,min:ud,isDecreaseDisabled:Gd,isIncreaseDisabled:Ud,id:vd}),(Sf,Df)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(Sf.$attrs,{ref_key:"primitiveElement",ref:Nd,role:"group",as:Sf.as,"as-child":Sf.asChild,"data-disabled":unref(ld)?"":void 0}),{default:withCtx(()=>[renderSlot(Sf.$slots,"default",{modelValue:unref(Ad),textValue:pf.value})]),_:3},16,["as","as-child","data-disabled"]),unref(kd)?(openBlock(),createElementBlock("input",{key:0,type:"text",tabindex:"-1","aria-hidden":"true",value:unref(Ad),name:nd.name,disabled:nd.disabled,required:nd.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,Fc$2)):createCommentVNode("",!0)],64))}}),py$1=defineComponent({__name:"NumberFieldInput",props:{asChild:{type:Boolean},as:{default:"input"}},setup(Ra){const qa=Ra,{primitiveElement:nd,currentElement:od}=Ie$5(),ld=Eo$2();function ud(dd){dd.target===document.activeElement&&(Math.abs(dd.deltaY)<=Math.abs(dd.deltaX)||(dd.preventDefault(),dd.deltaY>0?ld.handleIncrease():dd.deltaY<0&&ld.handleDecrease()))}return onMounted(()=>{ld.onInputElement(od.value)}),(dd,pd)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{id:unref(ld).id.value,ref_key:"primitiveElement",ref:nd,role:"spinbutton",type:"text",tabindex:"0",value:unref(ld).textValue.value,inputmode:unref(ld).inputMode.value,disabled:unref(ld).disabled.value?"":void 0,"data-disabled":unref(ld).disabled.value?"":void 0,autocomplete:"off",autocorrect:"off",spellcheck:"false","aria-roledescription":"Number field","aria-valuenow":unref(ld).modelValue.value,"aria-valuemin":unref(ld).min.value,"aria-valuemax":unref(ld).max.value,onKeydown:[pd[0]||(pd[0]=withKeys(withModifiers(fd=>unref(ld).handleIncrease(),["prevent"]),["up"])),pd[1]||(pd[1]=withKeys(withModifiers(fd=>unref(ld).handleDecrease(),["prevent"]),["down"])),pd[2]||(pd[2]=withKeys(withModifiers(fd=>unref(ld).handleIncrease(10),["prevent"]),["page-up"])),pd[3]||(pd[3]=withKeys(withModifiers(fd=>unref(ld).handleDecrease(10),["prevent"]),["page-down"])),pd[4]||(pd[4]=withKeys(withModifiers(fd=>unref(ld).handleMinMaxValue("min"),["prevent"]),["home"])),pd[5]||(pd[5]=withKeys(withModifiers(fd=>unref(ld).handleMinMaxValue("max"),["prevent"]),["end"])),pd[7]||(pd[7]=withKeys(fd=>{var md;return unref(ld).applyInputValue((md=fd.target)==null?void 0:md.value)},["enter"]))],onWheel:ud,onBeforeinput:pd[6]||(pd[6]=fd=>{const md=fd.target;let vd=md.value.slice(0,md.selectionStart??void 0)+(fd.data??"")+md.value.slice(md.selectionEnd??void 0);unref(ld).validate(vd)||fd.preventDefault()}),onBlur:pd[8]||(pd[8]=fd=>{var md;return unref(ld).applyInputValue((md=fd.target)==null?void 0:md.value)})}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["id","value","inputmode","disabled","data-disabled","aria-valuenow","aria-valuemin","aria-valuemax"]))}}),fy$1=defineComponent({__name:"NumberFieldIncrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=Eo$2(),od=computed(()=>{var fd;return((fd=nd.disabled)==null?void 0:fd.value)||qa.disabled||nd.isIncreaseDisabled.value}),{primitiveElement:ld,currentElement:ud}=Ie$5(),{isPressed:dd,onTrigger:pd}=ms$3({target:ud,disabled:od});return pd(()=>{nd.handleIncrease()}),(fd,md)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{ref_key:"primitiveElement",ref:ld,tabindex:"-1","aria-label":"Increase",type:fd.as==="button"?"button":void 0,style:{userSelect:unref(dd)?"none":void 0},disabled:od.value?"":void 0,"data-disabled":od.value?"":void 0,"data-pressed":unref(dd)?"true":void 0,onContextmenu:md[0]||(md[0]=withModifiers(()=>{},["prevent"]))}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),vy$1=defineComponent({__name:"NumberFieldDecrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=Eo$2(),od=computed(()=>{var fd;return((fd=nd.disabled)==null?void 0:fd.value)||qa.disabled||nd.isDecreaseDisabled.value}),{primitiveElement:ld,currentElement:ud}=Ie$5(),{isPressed:dd,onTrigger:pd}=ms$3({target:ud,disabled:od});return pd(()=>{nd.handleDecrease()}),(fd,md)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{ref_key:"primitiveElement",ref:ld,tabindex:"-1","aria-label":"Decrease",type:fd.as==="button"?"button":void 0,style:{userSelect:unref(dd)?"none":void 0},disabled:od.value?"":void 0,"data-disabled":od.value?"":void 0,"data-pressed":unref(dd)?"true":void 0,onContextmenu:md[0]||(md[0]=withModifiers(()=>{},["prevent"]))}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),Tp$1=["default-value"],Rp$1=defineComponent({__name:"BubbleSelect",props:{autocomplete:{},autofocus:{type:Boolean},disabled:{type:Boolean},form:{},multiple:{type:Boolean},name:{},required:{type:Boolean},size:{},value:{}},setup(Ra){const qa=Ra,{value:nd}=toRefs(qa),od=ref$1();return(ld,ud)=>(openBlock(),createBlock(unref(Zt$4),{"as-child":""},{default:withCtx(()=>[withDirectives(createBaseVNode("select",mergeProps({ref_key:"selectElement",ref:od},qa,{"onUpdate:modelValue":ud[0]||(ud[0]=dd=>isRef(nd)?nd.value=dd:null),"default-value":unref(nd)}),[renderSlot(ld.$slots,"default")],16,Tp$1),[[vModelSelect,unref(nd)]])]),_:3}))}}),Ap$1={key:0,value:""},[bt$6,$s$2]=Q$7("SelectRoot"),[Op$1,kp$1]=Q$7("SelectRoot"),ky$1=defineComponent({__name:"SelectRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},defaultValue:{default:""},modelValue:{default:void 0},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=ne$6(nd,"modelValue",od,{defaultValue:nd.defaultValue,passive:nd.modelValue===void 0}),ud=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),dd=ref$1(),pd=ref$1(),fd=ref$1({x:0,y:0}),md=ref$1(!1),{required:vd,disabled:Ad,dir:Nd}=toRefs(nd),Od=be$9(Nd);$s$2({triggerElement:dd,onTriggerChange:Ud=>{dd.value=Ud},valueElement:pd,onValueElementChange:Ud=>{pd.value=Ud},valueElementHasChildren:md,onValueElementHasChildrenChange:Ud=>{md.value=Ud},contentId:"",modelValue:ld,onValueChange:Ud=>{ld.value=Ud},open:ud,required:vd,onOpenChange:Ud=>{ud.value=Ud},dir:Od,triggerPointerDownPosRef:fd,disabled:Ad});const kd=Je$4(dd),Ld=ref$1(new Set),Gd=computed(()=>Array.from(Ld.value).map(Ud=>{var Fd;return(Fd=Ud.props)==null?void 0:Fd.value}).join(";"));return kp$1({onNativeOptionAdd:Ud=>{Ld.value.add(Ud)},onNativeOptionRemove:Ud=>{Ld.value.delete(Ud)}}),(Ud,Fd)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(Ud.$slots,"default",{modelValue:unref(ld),open:unref(ud)}),unref(kd)?(openBlock(),createBlock(Rp$1,mergeProps({key:Gd.value},Ud.$attrs,{"aria-hidden":"true",tabindex:"-1",required:unref(vd),name:Ud.name,autocomplete:Ud.autocomplete,disabled:unref(Ad),value:unref(ld),onChange:Fd[0]||(Fd[0]=jd=>ld.value=jd.target.value)}),{default:withCtx(()=>[unref(ld)===void 0?(openBlock(),createElementBlock("option",Ap$1)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(Array.from(Ld.value),jd=>(openBlock(),createBlock(resolveDynamicComponent(jd),mergeProps({ref_for:!0},jd.props,{key:jd.key??""}),null,16))),128))]),_:1},16,["required","name","autocomplete","disabled","value"])):createCommentVNode("",!0)]),_:3}))}}),Mp$1=[" ","Enter","ArrowUp","ArrowDown"],Vp$1=[" ","Enter"],at$7=10;function Bs$3(Ra){return Ra===""||Kt$2(Ra)}const My=defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=bt$6(),od=computed(()=>{var Od;return((Od=nd.disabled)==null?void 0:Od.value)||qa.disabled}),{forwardRef:ld,currentElement:ud}=R$7();nd.contentId||(nd.contentId=he$4(void 0,"radix-vue-select-content")),onMounted(()=>{nd.triggerElement=ud});const{injectCollection:dd}=Me$7(),pd=dd(),{search:fd,handleTypeaheadSearch:md,resetTypeahead:vd}=ga$2(pd);function Ad(){od.value||(nd.onOpenChange(!0),vd())}function Nd(Od){Ad(),nd.triggerPointerDownPosRef.value={x:Math.round(Od.pageX),y:Math.round(Od.pageY)}}return(Od,kd)=>(openBlock(),createBlock(unref(Rt$5),{"as-child":""},{default:withCtx(()=>{var Ld,Gd,Ud,Fd;return[createVNode(unref(O$4),{ref:unref(ld),role:"combobox",type:Od.as==="button"?"button":void 0,"aria-controls":unref(nd).contentId,"aria-expanded":unref(nd).open.value||!1,"aria-required":(Ld=unref(nd).required)==null?void 0:Ld.value,"aria-autocomplete":"none",disabled:od.value,dir:(Gd=unref(nd))==null?void 0:Gd.dir.value,"data-state":(Ud=unref(nd))!=null&&Ud.open.value?"open":"closed","data-disabled":od.value?"":void 0,"data-placeholder":unref(Bs$3)((Fd=unref(nd).modelValue)==null?void 0:Fd.value)?"":void 0,"as-child":Od.asChild,as:Od.as,onClick:kd[0]||(kd[0]=jd=>{var qd;(qd=jd==null?void 0:jd.currentTarget)==null||qd.focus()}),onPointerdown:kd[1]||(kd[1]=jd=>{if(jd.pointerType==="touch")return jd.preventDefault();const qd=jd.target;qd.hasPointerCapture(jd.pointerId)&&qd.releasePointerCapture(jd.pointerId),jd.button===0&&jd.ctrlKey===!1&&(Nd(jd),jd.preventDefault())}),onPointerup:kd[2]||(kd[2]=withModifiers(jd=>{jd.pointerType==="touch"&&Nd(jd)},["prevent"])),onKeydown:kd[3]||(kd[3]=jd=>{const qd=unref(fd)!=="";!(jd.ctrlKey||jd.altKey||jd.metaKey)&&jd.key.length===1&&qd&&jd.key===" "||(unref(md)(jd.key),unref(Mp$1).includes(jd.key)&&(Ad(),jd.preventDefault()))})},{default:withCtx(()=>[renderSlot(Od.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3}))}}),Vy=defineComponent({__name:"SelectPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[$o$2,Fp$1]=Q$7("SelectItemAlignedPosition"),Np$1=defineComponent({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean},as:{}},emits:["placed"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{injectCollection:ld}=Me$7(),ud=bt$6(),dd=Ct$5(),pd=ld(),fd=ref$1(!1),md=ref$1(!0),vd=ref$1(),{forwardRef:Ad,currentElement:Nd}=R$7(),{viewport:Od,selectedItem:kd,selectedItemText:Ld,focusSelectedItem:Gd}=dd;function Ud(){if(ud.triggerElement.value&&ud.valueElement.value&&vd.value&&Nd.value&&Od!=null&&Od.value&&kd!=null&&kd.value&&Ld!=null&&Ld.value){const qd=ud.triggerElement.value.getBoundingClientRect(),zd=Nd.value.getBoundingClientRect(),Yd=ud.valueElement.value.getBoundingClientRect(),Jd=Ld.value.getBoundingClientRect();if(ud.dir.value!=="rtl"){const Cf=Jd.left-zd.left,xf=Yd.left-Cf,Xf=qd.left-xf,sh=qd.width+Xf,Ah=Math.max(sh,zd.width),dh=window.innerWidth-at$7,Rf=Wt$4(xf,at$7,dh-Ah);vd.value.style.minWidth=`${sh}px`,vd.value.style.left=`${Rf}px`}else{const Cf=zd.right-Jd.right,xf=window.innerWidth-Yd.right-Cf,Xf=window.innerWidth-qd.right-xf,sh=qd.width+Xf,Ah=Math.max(sh,zd.width),dh=window.innerWidth-at$7,Rf=Wt$4(xf,at$7,dh-Ah);vd.value.style.minWidth=`${sh}px`,vd.value.style.right=`${Rf}px`}const yf=pd.value,Xd=window.innerHeight-at$7*2,pf=Od.value.scrollHeight,mf=window.getComputedStyle(Nd.value),Tf=Number.parseInt(mf.borderTopWidth,10),vf=Number.parseInt(mf.paddingTop,10),Af=Number.parseInt(mf.borderBottomWidth,10),Sf=Number.parseInt(mf.paddingBottom,10),Df=Tf+vf+pf+Sf+Af,If=Math.min(kd.value.offsetHeight*5,Df),Gf=window.getComputedStyle(Od.value),Jf=Number.parseInt(Gf.paddingTop,10),ih=Number.parseInt(Gf.paddingBottom,10),uh=qd.top+qd.height/2-at$7,qf=Xd-uh,Pf=kd.value.offsetHeight/2,Wf=kd.value.offsetTop+Pf,Yf=Tf+vf+Wf,Kf=Df-Yf;if(Yf<=uh){const Cf=kd.value===yf[yf.length-1];vd.value.style.bottom="0px";const xf=Nd.value.clientHeight-Od.value.offsetTop-Od.value.offsetHeight,Xf=Math.max(qf,Pf+(Cf?ih:0)+xf+Af),sh=Yf+Xf;vd.value.style.height=`${sh}px`}else{const Cf=kd.value===yf[0];vd.value.style.top="0px";const xf=Math.max(uh,Tf+Od.value.offsetTop+(Cf?Jf:0)+Pf)+Kf;vd.value.style.height=`${xf}px`,Od.value.scrollTop=Yf-uh+Od.value.offsetTop}vd.value.style.margin=`${at$7}px 0`,vd.value.style.minHeight=`${If}px`,vd.value.style.maxHeight=`${Xd}px`,od("placed"),requestAnimationFrame(()=>fd.value=!0)}}const Fd=ref$1("");onMounted(async()=>{await nextTick$1(),Ud(),Nd.value&&(Fd.value=window.getComputedStyle(Nd.value).zIndex)});function jd(qd){qd&&md.value===!0&&(Ud(),Gd==null||Gd(),md.value=!1)}return Fp$1({contentWrapper:vd,shouldExpandOnScrollRef:fd,onScrollButtonChange:jd}),(qd,zd)=>(openBlock(),createElementBlock("div",{ref_key:"contentWrapperElement",ref:vd,style:normalizeStyle({display:"flex",flexDirection:"column",position:"fixed",zIndex:Fd.value})},[createVNode(unref(O$4),mergeProps({ref:unref(Ad),style:{boxSizing:"border-box",maxHeight:"100%"}},{...qd.$attrs,...nd}),{default:withCtx(()=>[renderSlot(qd.$slots,"default")]),_:3},16)],4))}}),Lp$1=defineComponent({__name:"SelectPopperPosition",props:{side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{default:at$7},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=It$4(Ra);return(nd,od)=>(openBlock(),createBlock(unref(Dt$4),mergeProps(unref(qa),{style:{boxSizing:"border-box","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Ft$5={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Ct$5,zp$1]=Q$7("SelectContent"),Kp$1=defineComponent({__name:"SelectContentImpl",props:{position:{default:"item-aligned"},bodyLock:{type:Boolean,default:!0},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=bt$6();Gn$4(),ha$1(nd.bodyLock);const{createCollection:ud}=Me$7(),dd=ref$1();ya$1(dd);const pd=ud(dd),{search:fd,handleTypeaheadSearch:md}=ga$2(pd),vd=ref$1(),Ad=ref$1(),Nd=ref$1(),Od=ref$1(!1),kd=ref$1(!1);function Ld(){Ad.value&&dd.value&&$n$4([Ad.value,dd.value])}watch(Od,()=>{Ld()});const{onOpenChange:Gd,triggerPointerDownPosRef:Ud}=ld;watchEffect(zd=>{if(!dd.value)return;let Yd={x:0,y:0};const Jd=Xd=>{var pf,mf;Yd={x:Math.abs(Math.round(Xd.pageX)-(((pf=Ud.value)==null?void 0:pf.x)??0)),y:Math.abs(Math.round(Xd.pageY)-(((mf=Ud.value)==null?void 0:mf.y)??0))}},yf=Xd=>{var pf;Xd.pointerType!=="touch"&&(Yd.x<=10&&Yd.y<=10?Xd.preventDefault():(pf=dd.value)!=null&&pf.contains(Xd.target)||Gd(!1),document.removeEventListener("pointermove",Jd),Ud.value=null)};Ud.value!==null&&(document.addEventListener("pointermove",Jd),document.addEventListener("pointerup",yf,{capture:!0,once:!0})),zd(()=>{document.removeEventListener("pointermove",Jd),document.removeEventListener("pointerup",yf,{capture:!0})})});function Fd(zd){const Yd=zd.ctrlKey||zd.altKey||zd.metaKey;if(zd.key==="Tab"&&zd.preventDefault(),!Yd&&zd.key.length===1&&md(zd.key),["ArrowUp","ArrowDown","Home","End"].includes(zd.key)){let Jd=pd.value;if(["ArrowUp","End"].includes(zd.key)&&(Jd=Jd.slice().reverse()),["ArrowUp","ArrowDown"].includes(zd.key)){const yf=zd.target,Xd=Jd.indexOf(yf);Jd=Jd.slice(Xd+1)}setTimeout(()=>$n$4(Jd)),zd.preventDefault()}}const jd=computed(()=>nd.position==="popper"?nd:{}),qd=It$4(jd.value);return zp$1({content:dd,viewport:vd,onViewportChange:zd=>{vd.value=zd},itemRefCallback:(zd,Yd,Jd)=>{var yf,Xd;const pf=!kd.value&&!Jd;(((yf=ld.modelValue)==null?void 0:yf.value)!==void 0&&((Xd=ld.modelValue)==null?void 0:Xd.value)===Yd||pf)&&(Ad.value=zd,pf&&(kd.value=!0))},selectedItem:Ad,selectedItemText:Nd,onItemLeave:()=>{var zd;(zd=dd.value)==null||zd.focus()},itemTextRefCallback:(zd,Yd,Jd)=>{var yf,Xd;const pf=!kd.value&&!Jd;(((yf=ld.modelValue)==null?void 0:yf.value)!==void 0&&((Xd=ld.modelValue)==null?void 0:Xd.value)===Yd||pf)&&(Nd.value=zd)},focusSelectedItem:Ld,position:nd.position,isPositioned:Od,searchRef:fd}),(zd,Yd)=>(openBlock(),createBlock(unref(Ya$2),{"as-child":"",onMountAutoFocus:Yd[6]||(Yd[6]=withModifiers(()=>{},["prevent"])),onUnmountAutoFocus:Yd[7]||(Yd[7]=Jd=>{var yf;od("closeAutoFocus",Jd),!Jd.defaultPrevented&&((yf=unref(ld).triggerElement.value)==null||yf.focus({preventScroll:!0}),Jd.preventDefault())})},{default:withCtx(()=>[createVNode(unref(yt$3),{"as-child":"","disable-outside-pointer-events":"",onFocusOutside:Yd[2]||(Yd[2]=withModifiers(()=>{},["prevent"])),onDismiss:Yd[3]||(Yd[3]=Jd=>unref(ld).onOpenChange(!1)),onEscapeKeyDown:Yd[4]||(Yd[4]=Jd=>od("escapeKeyDown",Jd)),onPointerDownOutside:Yd[5]||(Yd[5]=Jd=>od("pointerDownOutside",Jd))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(zd.position==="popper"?Lp$1:Np$1),mergeProps({...zd.$attrs,...unref(qd)},{id:unref(ld).contentId,ref:Jd=>{dd.value=unref($e$4)(Jd)},role:"listbox","data-state":unref(ld).open.value?"open":"closed",dir:unref(ld).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:Yd[0]||(Yd[0]=withModifiers(()=>{},["prevent"])),onPlaced:Yd[1]||(Yd[1]=Jd=>Od.value=!0),onKeydown:Fd}),{default:withCtx(()=>[renderSlot(zd.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3})]),_:3}))}}),Hp$1=defineComponent({inheritAttrs:!1,__name:"SelectProvider",props:{context:{}},setup(Ra){return $s$2(Ra.context),(qa,nd)=>renderSlot(qa.$slots,"default")}}),Wp$1={key:1},Fy=defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=xe$5(nd,qa),ld=bt$6(),ud=ref$1();onMounted(()=>{ud.value=new DocumentFragment});const dd=ref$1(),pd=computed(()=>nd.forceMount||ld.open.value);return(fd,md)=>{var vd;return pd.value?(openBlock(),createBlock(unref(Pe$7),{key:0,ref_key:"presenceRef",ref:dd,present:!0},{default:withCtx(()=>[createVNode(Kp$1,normalizeProps(guardReactiveProps({...unref(od),...fd.$attrs})),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16)]),_:3},512)):!((vd=dd.value)!=null&&vd.present)&&ud.value?(openBlock(),createElementBlock("div",Wp$1,[(openBlock(),createBlock(Teleport,{to:ud.value},[createVNode(Hp$1,{context:unref(ld)},{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):createCommentVNode("",!0)}}}),[Is$3,jp$1]=Q$7("SelectItem"),zy=defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{disabled:nd}=toRefs(qa),od=bt$6(),ld=Ct$5(Ft$5),{forwardRef:ud,currentElement:dd}=R$7(),pd=computed(()=>{var Ld;return((Ld=od.modelValue)==null?void 0:Ld.value)===qa.value}),fd=ref$1(!1),md=ref$1(qa.textValue??""),vd=he$4(void 0,"radix-vue-select-item-text");async function Ad(Ld){await nextTick$1(),!(Ld!=null&&Ld.defaultPrevented)&&(nd.value||(od.onValueChange(qa.value),od.onOpenChange(!1)))}async function Nd(Ld){var Gd;await nextTick$1(),!Ld.defaultPrevented&&(nd.value?(Gd=ld.onItemLeave)==null||Gd.call(ld):Ld.currentTarget.focus({preventScroll:!0}))}async function Od(Ld){var Gd;await nextTick$1(),!Ld.defaultPrevented&&Ld.currentTarget===document.activeElement&&((Gd=ld.onItemLeave)==null||Gd.call(ld))}async function kd(Ld){var Gd;await nextTick$1(),!(Ld.defaultPrevented||((Gd=ld.searchRef)==null?void 0:Gd.value)!==""&&Ld.key===" ")&&(Vp$1.includes(Ld.key)&&Ad(),Ld.key===" "&&Ld.preventDefault())}if(qa.value==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return onMounted(()=>{dd.value&&ld.itemRefCallback(dd.value,qa.value,qa.disabled)}),jp$1({value:qa.value,disabled:nd,textId:vd,isSelected:pd,onItemTextChange:Ld=>{md.value=((md.value||(Ld==null?void 0:Ld.textContent))??"").trim()}}),(Ld,Gd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(ud),role:"option","data-radix-vue-collection-item":"","aria-labelledby":unref(vd),"data-highlighted":fd.value?"":void 0,"aria-selected":pd.value,"data-state":pd.value?"checked":"unchecked","aria-disabled":unref(nd)||void 0,"data-disabled":unref(nd)?"":void 0,tabindex:unref(nd)?void 0:-1,as:Ld.as,"as-child":Ld.asChild,onFocus:Gd[0]||(Gd[0]=Ud=>fd.value=!0),onBlur:Gd[1]||(Gd[1]=Ud=>fd.value=!1),onPointerup:Ad,onPointerdown:Gd[2]||(Gd[2]=Ud=>{Ud.currentTarget.focus({preventScroll:!0})}),onTouchend:Gd[3]||(Gd[3]=withModifiers(()=>{},["prevent","stop"])),onPointermove:Nd,onPointerleave:Od,onKeydown:kd},{default:withCtx(()=>[renderSlot(Ld.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"]))}}),Ky=defineComponent({__name:"SelectItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Ra,nd=Is$3();return(od,ld)=>unref(nd).isSelected.value?(openBlock(),createBlock(unref(O$4),mergeProps({key:0,"aria-hidden":"true"},qa),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16)):createCommentVNode("",!0)}}),jy=defineComponent({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Ra,nd=bt$6(),od=Ct$5(Ft$5),ld=Op$1(),ud=Is$3(),{forwardRef:dd,currentElement:pd}=R$7(),fd=computed(()=>{var md;return h$2("option",{key:ud.value,value:ud.value,disabled:ud.disabled.value,textContent:(md=pd.value)==null?void 0:md.textContent})});return onMounted(()=>{pd.value&&(ud.onItemTextChange(pd.value),od.itemTextRefCallback(pd.value,ud.value,ud.disabled.value),ld.onNativeOptionAdd(fd.value))}),onBeforeUnmount(()=>{ld.onNativeOptionRemove(fd.value)}),(md,vd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps({id:unref(ud).textId,ref:unref(dd)},{...qa,...md.$attrs}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16,["id"]),unref(ud).isSelected.value&&unref(nd).valueElement.value&&!unref(nd).valueElementHasChildren.value?(openBlock(),createBlock(Teleport,{key:0,to:unref(nd).valueElement.value},[renderSlot(md.$slots,"default")],8,["to"])):createCommentVNode("",!0)],64))}}),Uy=defineComponent({__name:"SelectViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{nonce:nd}=toRefs(qa),od=Xa$2(nd),ld=Ct$5(Ft$5),ud=ld.position==="item-aligned"?$o$2():void 0,{forwardRef:dd,currentElement:pd}=R$7();onMounted(()=>{ld==null||ld.onViewportChange(pd.value)});const fd=ref$1(0);function md(vd){const Ad=vd.currentTarget,{shouldExpandOnScrollRef:Nd,contentWrapper:Od}=ud??{};if(Nd!=null&&Nd.value&&Od!=null&&Od.value){const kd=Math.abs(fd.value-Ad.scrollTop);if(kd>0){const Ld=window.innerHeight-at$7*2,Gd=Number.parseFloat(Od.value.style.minHeight),Ud=Number.parseFloat(Od.value.style.height),Fd=Math.max(Gd,Ud);if(Fd0?zd:0,Od.value.style.justifyContent="flex-end")}}}fd.value=Ad.scrollTop}return(vd,Ad)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps({ref:unref(dd),"data-radix-select-viewport":"",role:"presentation"},{...vd.$attrs,...qa},{style:{position:"relative",flex:1,overflow:"auto"},onScroll:md}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16),createVNode(unref(O$4),{as:"style",nonce:unref(od)},{default:withCtx(()=>[createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),Ts$3=defineComponent({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(Ra,{emit:qa}){const nd=qa,{injectCollection:od}=Me$7(),ld=od(),ud=Ct$5(Ft$5),dd=ref$1(null);function pd(){dd.value!==null&&(window.clearInterval(dd.value),dd.value=null)}watchEffect(()=>{const vd=ld.value.find(Ad=>Ad===document.activeElement);vd==null||vd.scrollIntoView({block:"nearest"})});function fd(){dd.value===null&&(dd.value=window.setInterval(()=>{nd("autoScroll")},50))}function md(){var vd;(vd=ud.onItemLeave)==null||vd.call(ud),dd.value===null&&(dd.value=window.setInterval(()=>{nd("autoScroll")},50))}return onBeforeUnmount(()=>pd()),(vd,Ad)=>{var Nd;return openBlock(),createBlock(unref(O$4),mergeProps({"aria-hidden":"true",style:{flexShrink:0}},(Nd=vd.$parent)==null?void 0:Nd.$props,{onPointerdown:fd,onPointermove:md,onPointerleave:Ad[0]||(Ad[0]=()=>{pd()})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16)}}}),Gy=defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ct$5(Ft$5),nd=qa.position==="item-aligned"?$o$2():void 0,{forwardRef:od,currentElement:ld}=R$7(),ud=ref$1(!1);return watchEffect(dd=>{var pd,fd;if((pd=qa.viewport)!=null&&pd.value&&(fd=qa.isPositioned)!=null&&fd.value){let md=function(){ud.value=vd.scrollTop>0};const vd=qa.viewport.value;md(),vd.addEventListener("scroll",md),dd(()=>vd.removeEventListener("scroll",md))}}),watch(ld,()=>{ld.value&&(nd==null||nd.onScrollButtonChange(ld.value))}),(dd,pd)=>ud.value?(openBlock(),createBlock(Ts$3,{key:0,ref:unref(od),onAutoScroll:pd[0]||(pd[0]=()=>{const{viewport:fd,selectedItem:md}=unref(qa);fd!=null&&fd.value&&md!=null&&md.value&&(fd.value.scrollTop=fd.value.scrollTop-md.value.offsetHeight)})},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},512)):createCommentVNode("",!0)}}),qy=defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ct$5(Ft$5),nd=qa.position==="item-aligned"?$o$2():void 0,{forwardRef:od,currentElement:ld}=R$7(),ud=ref$1(!1);return watchEffect(dd=>{var pd,fd;if((pd=qa.viewport)!=null&&pd.value&&(fd=qa.isPositioned)!=null&&fd.value){let md=function(){const Ad=vd.scrollHeight-vd.clientHeight;ud.value=Math.ceil(vd.scrollTop)vd.removeEventListener("scroll",md))}}),watch(ld,()=>{ld.value&&(nd==null||nd.onScrollButtonChange(ld.value))}),(dd,pd)=>ud.value?(openBlock(),createBlock(Ts$3,{key:0,ref:unref(od),onAutoScroll:pd[0]||(pd[0]=()=>{const{viewport:fd,selectedItem:md}=unref(qa);fd!=null&&fd.value&&md!=null&&md.value&&(fd.value.scrollTop=fd.value.scrollTop+md.value.offsetHeight)})},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},512)):createCommentVNode("",!0)}}),Yy=defineComponent({__name:"SelectValue",props:{placeholder:{default:""},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const{forwardRef:qa,currentElement:nd}=R$7(),od=bt$6(),ld=useSlots();return onBeforeMount(()=>{var ud;const dd=!!Ua$3((ud=ld==null?void 0:ld.default)==null?void 0:ud.call(ld)).length;od.onValueElementHasChildrenChange(dd)}),onMounted(()=>{od.valueElement=nd}),(ud,dd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(qa),as:ud.as,"as-child":ud.asChild,style:{pointerEvents:"none"}},{default:withCtx(()=>{var pd;return[unref(Bs$3)((pd=unref(od).modelValue)==null?void 0:pd.value)?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(ud.placeholder),1)],64)):renderSlot(ud.$slots,"default",{key:1})]}),_:3},8,["as","as-child"]))}}),Xy=defineComponent({__name:"SelectIcon",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){return(qa,nd)=>(openBlock(),createBlock(unref(O$4),{"aria-hidden":"true",as:qa.as,"as-child":qa.asChild},{default:withCtx(()=>[renderSlot(qa.$slots,"default",{},()=>[createTextVNode("▼")])]),_:3},8,["as","as-child"]))}}),Rs$1=defineComponent({__name:"BaseSeparator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,nd=["horizontal","vertical"];function od(pd){return nd.includes(pd)}const ld=computed(()=>od(qa.orientation)?qa.orientation:"horizontal"),ud=computed(()=>ld.value==="vertical"?qa.orientation:void 0),dd=computed(()=>qa.decorative?{role:"none"}:{"aria-orientation":ud.value,role:"separator"});return(pd,fd)=>(openBlock(),createBlock(unref(O$4),mergeProps({as:pd.as,"as-child":pd.asChild,"data-orientation":ld.value},dd.value),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),qp$1=defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(Rs$1,normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}});function hf(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}hf();const kf=["name","disabled","required","value","checked","data-state","data-disabled"],[Mf,Vf]=Q$7("SwitchRoot"),cg$1=defineComponent({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{disabled:ld}=toRefs(nd),ud=ne$6(nd,"checked",od,{defaultValue:nd.defaultChecked,passive:nd.checked===void 0});function dd(){ld.value||(ud.value=!ud.value)}const{forwardRef:pd,currentElement:fd}=R$7(),md=Je$4(fd),vd=computed(()=>{var Ad;return nd.id&&fd.value?(Ad=document.querySelector(`[for="${nd.id}"]`))==null?void 0:Ad.innerText:void 0});return Vf({checked:ud,toggleCheck:dd,disabled:ld}),(Ad,Nd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(Ad.$attrs,{id:Ad.id,ref:unref(pd),role:"switch",type:Ad.as==="button"?"button":void 0,value:Ad.value,"aria-label":Ad.$attrs["aria-label"]||vd.value,"aria-checked":unref(ud),"aria-required":Ad.required,"data-state":unref(ud)?"checked":"unchecked","data-disabled":unref(ld)?"":void 0,"as-child":Ad.asChild,as:Ad.as,disabled:unref(ld),onClick:dd,onKeydown:withKeys(withModifiers(dd,["prevent"]),["enter"])}),{default:withCtx(()=>[renderSlot(Ad.$slots,"default",{checked:unref(ud)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),unref(md)?(openBlock(),createElementBlock("input",{key:0,type:"checkbox",name:Ad.name,tabindex:"-1","aria-hidden":"true",disabled:unref(ld),required:Ad.required,value:Ad.value,checked:!!unref(ud),"data-state":unref(ud)?"checked":"unchecked","data-disabled":unref(ld)?"":void 0,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,kf)):createCommentVNode("",!0)],64))}}),pg=defineComponent({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Mf();return R$7(),(nd,od)=>{var ld;return openBlock(),createBlock(unref(O$4),{"data-state":(ld=unref(qa).checked)!=null&&ld.value?"checked":"unchecked","data-disabled":unref(qa).disabled.value?"":void 0,"as-child":nd.asChild,as:nd.as},{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}}),[pn$4,Ff]=Q$7("TabsRoot"),fg=defineComponent({__name:"TabsRoot",props:{defaultValue:{},orientation:{default:"horizontal"},dir:{},activationMode:{default:"automatic"},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{orientation:ld,dir:ud}=toRefs(nd),dd=be$9(ud);R$7();const pd=ne$6(nd,"modelValue",od,{defaultValue:nd.defaultValue,passive:nd.modelValue===void 0}),fd=ref$1();return Ff({modelValue:pd,changeModelValue:md=>{pd.value=md},orientation:ld,dir:dd,activationMode:nd.activationMode,baseId:he$4(void 0,"radix-vue-tabs"),tabsList:fd}),(md,vd)=>(openBlock(),createBlock(unref(O$4),{dir:unref(dd),"data-orientation":unref(ld),"as-child":md.asChild,as:md.as},{default:withCtx(()=>[renderSlot(md.$slots,"default",{modelValue:unref(pd)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),vg=defineComponent({__name:"TabsList",props:{loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{loop:nd}=toRefs(qa),{forwardRef:od,currentElement:ld}=R$7(),ud=pn$4();return ud.tabsList=ld,(dd,pd)=>(openBlock(),createBlock(unref(Ot$4),{"as-child":"",orientation:unref(ud).orientation.value,dir:unref(ud).dir.value,loop:unref(nd)},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(od),role:"tablist","as-child":dd.asChild,as:dd.as,"aria-orientation":unref(ud).orientation.value},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}});function or$3(Ra,qa){return`${Ra}-trigger-${qa}`}function lr$2(Ra,qa){return`${Ra}-content-${qa}`}const mg=defineComponent({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{forwardRef:nd}=R$7(),od=pn$4(),ld=computed(()=>or$3(od.baseId,qa.value)),ud=computed(()=>lr$2(od.baseId,qa.value)),dd=computed(()=>qa.value===od.modelValue.value),pd=ref$1(dd.value);return onMounted(()=>{requestAnimationFrame(()=>{pd.value=!1})}),(fd,md)=>(openBlock(),createBlock(unref(Pe$7),{present:dd.value,"force-mount":""},{default:withCtx(({present:vd})=>[createVNode(unref(O$4),{id:ud.value,ref:unref(nd),"as-child":fd.asChild,as:fd.as,role:"tabpanel","data-state":dd.value?"active":"inactive","data-orientation":unref(od).orientation.value,"aria-labelledby":ld.value,hidden:!vd.value,tabindex:"0",style:normalizeStyle({animationDuration:pd.value?"0s":void 0})},{default:withCtx(()=>[fd.forceMount||dd.value?renderSlot(fd.$slots,"default",{key:0}):createCommentVNode("",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),hg=defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,{forwardRef:nd}=R$7(),od=pn$4(),ld=computed(()=>or$3(od.baseId,qa.value)),ud=computed(()=>lr$2(od.baseId,qa.value)),dd=computed(()=>qa.value===od.modelValue.value);return(pd,fd)=>(openBlock(),createBlock(unref(kt$4),{"as-child":"",focusable:!pd.disabled,active:dd.value},{default:withCtx(()=>[createVNode(unref(O$4),{id:ld.value,ref:unref(nd),role:"tab",type:pd.as==="button"?"button":void 0,as:pd.as,"as-child":pd.asChild,"aria-selected":dd.value?"true":"false","aria-controls":ud.value,"data-state":dd.value?"active":"inactive",disabled:pd.disabled,"data-disabled":pd.disabled?"":void 0,"data-orientation":unref(od).orientation.value,onMousedown:fd[0]||(fd[0]=withModifiers(md=>{!pd.disabled&&md.ctrlKey===!1?unref(od).changeModelValue(pd.value):md.preventDefault()},["left"])),onKeydown:fd[1]||(fd[1]=withKeys(md=>unref(od).changeModelValue(pd.value),["enter","space"])),onFocus:fd[2]||(fd[2]=()=>{const md=unref(od).activationMode!=="manual";!dd.value&&!pd.disabled&&md&&unref(od).changeModelValue(pd.value)})},{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),dr$3="tooltip.open",[Oo$2,lv]=Q$7("TooltipProvider"),Mg=defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(Ra){const qa=Ra,{delayDuration:nd,skipDelayDuration:od,disableHoverableContent:ld,disableClosingTrigger:ud,ignoreNonKeyboardFocus:dd,disabled:pd}=toRefs(qa);R$7();const fd=ref$1(!0),md=ref$1(!1),{start:vd,stop:Ad}=Wn$3(()=>{fd.value=!0},od,{immediate:!1});return lv({isOpenDelayed:fd,delayDuration:nd,onOpen(){Ad(),fd.value=!1},onClose(){vd()},isPointerInTransitRef:md,disableHoverableContent:ld,disableClosingTrigger:ud,disabled:pd,ignoreNonKeyboardFocus:dd}),(Nd,Od)=>renderSlot(Nd.$slots,"default")}}),[mn$4,sv]=Q$7("TooltipRoot"),Vg=defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa;R$7();const ld=Oo$2(),ud=computed(()=>nd.disableHoverableContent??ld.disableHoverableContent.value),dd=computed(()=>nd.disableClosingTrigger??ld.disableClosingTrigger.value),pd=computed(()=>nd.disabled??ld.disabled.value),fd=computed(()=>nd.delayDuration??ld.delayDuration.value),md=computed(()=>nd.ignoreNonKeyboardFocus??ld.ignoreNonKeyboardFocus.value),vd=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen,passive:nd.open===void 0});watch(vd,jd=>{ld.onClose&&(jd?(ld.onOpen(),document.dispatchEvent(new CustomEvent(dr$3))):ld.onClose())});const Ad=ref$1(!1),Nd=ref$1(),Od=computed(()=>vd.value?Ad.value?"delayed-open":"instant-open":"closed"),{start:kd,stop:Ld}=Wn$3(()=>{Ad.value=!0,vd.value=!0},fd,{immediate:!1});function Gd(){Ld(),Ad.value=!1,vd.value=!0}function Ud(){Ld(),vd.value=!1}function Fd(){kd()}return sv({contentId:"",open:vd,stateAttribute:Od,trigger:Nd,onTriggerChange(jd){Nd.value=jd},onTriggerEnter(){ld.isOpenDelayed.value?Fd():Gd()},onTriggerLeave(){ud.value?Ud():Ld()},onOpen:Gd,onClose:Ud,disableHoverableContent:ud,disableClosingTrigger:dd,disabled:pd,ignoreNonKeyboardFocus:md}),(jd,qd)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(jd.$slots,"default",{open:unref(vd)})]),_:3}))}}),Fg=defineComponent({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=mn$4(),od=Oo$2();nd.contentId||(nd.contentId=he$4(void 0,"radix-vue-tooltip-content"));const{forwardRef:ld,currentElement:ud}=R$7(),dd=ref$1(!1),pd=ref$1(!1),fd=computed(()=>nd.disabled.value?{}:{click:Ld,focus:Od,pointermove:Ad,pointerleave:Nd,pointerdown:vd,blur:kd});onMounted(()=>{nd.onTriggerChange(ud.value)});function md(){setTimeout(()=>{dd.value=!1},1)}function vd(){dd.value=!0,document.addEventListener("pointerup",md,{once:!0})}function Ad(Gd){Gd.pointerType!=="touch"&&!pd.value&&!od.isPointerInTransitRef.value&&(nd.onTriggerEnter(),pd.value=!0)}function Nd(){nd.onTriggerLeave(),pd.value=!1}function Od(Gd){var Ud,Fd;dd.value||nd.ignoreNonKeyboardFocus.value&&!((Fd=(Ud=Gd.target).matches)!=null&&Fd.call(Ud,":focus-visible"))||nd.onOpen()}function kd(){nd.onClose()}function Ld(){nd.disableClosingTrigger.value||nd.onClose()}return(Gd,Ud)=>(openBlock(),createBlock(unref(Rt$5),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(ld),"aria-describedby":unref(nd).open.value?unref(nd).contentId:void 0,"data-state":unref(nd).stateAttribute.value,as:Gd.as,"as-child":qa.asChild,"data-grace-area-trigger":""},toHandlers(fd.value)),{default:withCtx(()=>[renderSlot(Gd.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),cr$4=defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=mn$4(),{forwardRef:ud}=R$7(),dd=useSlots(),pd=computed(()=>{var vd;return(vd=dd.default)==null?void 0:vd.call(dd)}),fd=computed(()=>{var vd;if(nd.ariaLabel)return nd.ariaLabel;let Ad="";function Nd(Od){typeof Od.children=="string"&&Od.type!==Comment$2?Ad+=Od.children:Array.isArray(Od.children)&&Od.children.forEach(kd=>Nd(kd))}return(vd=pd.value)==null||vd.forEach(Od=>Nd(Od)),Ad}),md=computed(()=>{const{ariaLabel:vd,...Ad}=nd;return Ad});return onMounted(()=>{Le$6(window,"scroll",vd=>{const Ad=vd.target;Ad!=null&&Ad.contains(ld.trigger.value)&&ld.onClose()}),Le$6(window,dr$3,ld.onClose)}),(vd,Ad)=>(openBlock(),createBlock(unref(yt$3),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:Ad[0]||(Ad[0]=Nd=>od("escapeKeyDown",Nd)),onPointerDownOutside:Ad[1]||(Ad[1]=Nd=>{var Od;unref(ld).disableClosingTrigger.value&&(Od=unref(ld).trigger.value)!=null&&Od.contains(Nd.target)&&Nd.preventDefault(),od("pointerDownOutside",Nd)}),onFocusOutside:Ad[2]||(Ad[2]=withModifiers(()=>{},["prevent"])),onDismiss:Ad[3]||(Ad[3]=Nd=>unref(ld).onClose())},{default:withCtx(()=>[createVNode(unref(Dt$4),mergeProps({ref:unref(ud),"data-state":unref(ld).stateAttribute.value},{...vd.$attrs,...md.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:withCtx(()=>[renderSlot(vd.$slots,"default"),createVNode(unref(Zt$4),{id:unref(ld).contentId,role:"tooltip"},{default:withCtx(()=>[createTextVNode(toDisplayString(fd.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),rv=defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(Ra){const qa=It$4(Ra),{forwardRef:nd,currentElement:od}=R$7(),{trigger:ld,onClose:ud}=mn$4(),dd=Oo$2(),{isPointerInTransit:pd,onPointerExit:fd}=Ol$3(ld,od);return dd.isPointerInTransitRef=pd,fd(()=>{ud()}),(md,vd)=>(openBlock(),createBlock(cr$4,mergeProps({ref:unref(nd)},unref(qa)),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),Ng=defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=mn$4(),ud=xe$5(nd,od),{forwardRef:dd}=R$7();return(pd,fd)=>(openBlock(),createBlock(unref(Pe$7),{present:pd.forceMount||unref(ld).open.value},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ld).disableHoverableContent.value?cr$4:rv),mergeProps({ref:unref(dd)},unref(ud)),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),zg=defineComponent({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$1r=defineComponent({__name:"AlertDialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Sv),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function r$2(Ra){var qa,nd,od="";if(typeof Ra=="string"||typeof Ra=="number")od+=Ra;else if(typeof Ra=="object")if(Array.isArray(Ra)){var ld=Ra.length;for(qa=0;qa{const qa=createClassMap(Ra),{conflictingClassGroups:nd,conflictingClassGroupModifiers:od}=Ra;return{getClassGroupId:dd=>{const pd=dd.split(CLASS_PART_SEPARATOR);return pd[0]===""&&pd.length!==1&&pd.shift(),getGroupRecursive(pd,qa)||getGroupIdForArbitraryProperty(dd)},getConflictingClassGroupIds:(dd,pd)=>{const fd=nd[dd]||[];return pd&&od[dd]?[...fd,...od[dd]]:fd}}},getGroupRecursive=(Ra,qa)=>{var dd;if(Ra.length===0)return qa.classGroupId;const nd=Ra[0],od=qa.nextPart.get(nd),ld=od?getGroupRecursive(Ra.slice(1),od):void 0;if(ld)return ld;if(qa.validators.length===0)return;const ud=Ra.join(CLASS_PART_SEPARATOR);return(dd=qa.validators.find(({validator:pd})=>pd(ud)))==null?void 0:dd.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=Ra=>{if(arbitraryPropertyRegex.test(Ra)){const qa=arbitraryPropertyRegex.exec(Ra)[1],nd=qa==null?void 0:qa.substring(0,qa.indexOf(":"));if(nd)return"arbitrary.."+nd}},createClassMap=Ra=>{const{theme:qa,prefix:nd}=Ra,od={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(Ra.classGroups),nd).forEach(([ud,dd])=>{processClassesRecursively(dd,od,ud,qa)}),od},processClassesRecursively=(Ra,qa,nd,od)=>{Ra.forEach(ld=>{if(typeof ld=="string"){const ud=ld===""?qa:getPart(qa,ld);ud.classGroupId=nd;return}if(typeof ld=="function"){if(isThemeGetter(ld)){processClassesRecursively(ld(od),qa,nd,od);return}qa.validators.push({validator:ld,classGroupId:nd});return}Object.entries(ld).forEach(([ud,dd])=>{processClassesRecursively(dd,getPart(qa,ud),nd,od)})})},getPart=(Ra,qa)=>{let nd=Ra;return qa.split(CLASS_PART_SEPARATOR).forEach(od=>{nd.nextPart.has(od)||nd.nextPart.set(od,{nextPart:new Map,validators:[]}),nd=nd.nextPart.get(od)}),nd},isThemeGetter=Ra=>Ra.isThemeGetter,getPrefixedClassGroupEntries=(Ra,qa)=>qa?Ra.map(([nd,od])=>{const ld=od.map(ud=>typeof ud=="string"?qa+ud:typeof ud=="object"?Object.fromEntries(Object.entries(ud).map(([dd,pd])=>[qa+dd,pd])):ud);return[nd,ld]}):Ra,createLruCache=Ra=>{if(Ra<1)return{get:()=>{},set:()=>{}};let qa=0,nd=new Map,od=new Map;const ld=(ud,dd)=>{nd.set(ud,dd),qa++,qa>Ra&&(qa=0,od=nd,nd=new Map)};return{get(ud){let dd=nd.get(ud);if(dd!==void 0)return dd;if((dd=od.get(ud))!==void 0)return ld(ud,dd),dd},set(ud,dd){nd.has(ud)?nd.set(ud,dd):ld(ud,dd)}}},IMPORTANT_MODIFIER="!",createParseClassName=Ra=>{const{separator:qa,experimentalParseClassName:nd}=Ra,od=qa.length===1,ld=qa[0],ud=qa.length,dd=pd=>{const fd=[];let md=0,vd=0,Ad;for(let Gd=0;Gdvd?Ad-vd:void 0;return{modifiers:fd,hasImportantModifier:Od,baseClassName:kd,maybePostfixModifierPosition:Ld}};return nd?pd=>nd({className:pd,parseClassName:dd}):dd},sortModifiers=Ra=>{if(Ra.length<=1)return Ra;const qa=[];let nd=[];return Ra.forEach(od=>{od[0]==="["?(qa.push(...nd.sort(),od),nd=[]):nd.push(od)}),qa.push(...nd.sort()),qa},createConfigUtils=Ra=>({cache:createLruCache(Ra.cacheSize),parseClassName:createParseClassName(Ra),...createClassGroupUtils(Ra)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(Ra,qa)=>{const{parseClassName:nd,getClassGroupId:od,getConflictingClassGroupIds:ld}=qa,ud=[],dd=Ra.trim().split(SPLIT_CLASSES_REGEX);let pd="";for(let fd=dd.length-1;fd>=0;fd-=1){const md=dd[fd],{modifiers:vd,hasImportantModifier:Ad,baseClassName:Nd,maybePostfixModifierPosition:Od}=nd(md);let kd=!!Od,Ld=od(kd?Nd.substring(0,Od):Nd);if(!Ld){if(!kd){pd=md+(pd.length>0?" "+pd:pd);continue}if(Ld=od(Nd),!Ld){pd=md+(pd.length>0?" "+pd:pd);continue}kd=!1}const Gd=sortModifiers(vd).join(":"),Ud=Ad?Gd+IMPORTANT_MODIFIER:Gd,Fd=Ud+Ld;if(ud.includes(Fd))continue;ud.push(Fd);const jd=ld(Ld,kd);for(let qd=0;qd0?" "+pd:pd)}return pd};function twJoin(){let Ra=0,qa,nd,od="";for(;Ra{if(typeof Ra=="string")return Ra;let qa,nd="";for(let od=0;odAd(vd),Ra());return nd=createConfigUtils(md),od=nd.cache.get,ld=nd.cache.set,ud=pd,pd(fd)}function pd(fd){const md=od(fd);if(md)return md;const vd=mergeClassList(fd,nd);return ld(fd,vd),vd}return function(){return ud(twJoin.apply(null,arguments))}}const fromTheme=Ra=>{const qa=nd=>nd[Ra]||[];return qa.isThemeGetter=!0,qa},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength$1=Ra=>isNumber$3(Ra)||stringLengths.has(Ra)||fractionRegex.test(Ra),isArbitraryLength=Ra=>getIsArbitraryValue(Ra,"length",isLengthOnly),isNumber$3=Ra=>!!Ra&&!Number.isNaN(Number(Ra)),isArbitraryNumber=Ra=>getIsArbitraryValue(Ra,"number",isNumber$3),isInteger$2=Ra=>!!Ra&&Number.isInteger(Number(Ra)),isPercent=Ra=>Ra.endsWith("%")&&isNumber$3(Ra.slice(0,-1)),isArbitraryValue=Ra=>arbitraryValueRegex.test(Ra),isTshirtSize=Ra=>tshirtUnitRegex.test(Ra),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=Ra=>getIsArbitraryValue(Ra,sizeLabels,isNever),isArbitraryPosition=Ra=>getIsArbitraryValue(Ra,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=Ra=>getIsArbitraryValue(Ra,imageLabels,isImage),isArbitraryShadow=Ra=>getIsArbitraryValue(Ra,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(Ra,qa,nd)=>{const od=arbitraryValueRegex.exec(Ra);return od?od[1]?typeof qa=="string"?od[1]===qa:qa.has(od[1]):nd(od[2]):!1},isLengthOnly=Ra=>lengthUnitRegex.test(Ra)&&!colorFunctionRegex.test(Ra),isNever=()=>!1,isShadow=Ra=>shadowRegex.test(Ra),isImage=Ra=>imageRegex.test(Ra),getDefaultConfig=()=>{const Ra=fromTheme("colors"),qa=fromTheme("spacing"),nd=fromTheme("blur"),od=fromTheme("brightness"),ld=fromTheme("borderColor"),ud=fromTheme("borderRadius"),dd=fromTheme("borderSpacing"),pd=fromTheme("borderWidth"),fd=fromTheme("contrast"),md=fromTheme("grayscale"),vd=fromTheme("hueRotate"),Ad=fromTheme("invert"),Nd=fromTheme("gap"),Od=fromTheme("gradientColorStops"),kd=fromTheme("gradientColorStopPositions"),Ld=fromTheme("inset"),Gd=fromTheme("margin"),Ud=fromTheme("opacity"),Fd=fromTheme("padding"),jd=fromTheme("saturate"),qd=fromTheme("scale"),zd=fromTheme("sepia"),Yd=fromTheme("skew"),Jd=fromTheme("space"),yf=fromTheme("translate"),Xd=()=>["auto","contain","none"],pf=()=>["auto","hidden","clip","visible","scroll"],mf=()=>["auto",isArbitraryValue,qa],Tf=()=>[isArbitraryValue,qa],vf=()=>["",isLength$1,isArbitraryLength],Af=()=>["auto",isNumber$3,isArbitraryValue],Sf=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Df=()=>["solid","dashed","dotted","double","none"],If=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Gf=()=>["start","end","center","between","around","evenly","stretch"],Jf=()=>["","0",isArbitraryValue],ih=()=>["auto","avoid","all","avoid-page","page","left","right","column"],uh=()=>[isNumber$3,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength$1,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:uh(),borderColor:[Ra],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:Tf(),borderWidth:vf(),contrast:uh(),grayscale:Jf(),hueRotate:uh(),invert:Jf(),gap:Tf(),gradientColorStops:[Ra],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:mf(),margin:mf(),opacity:uh(),padding:Tf(),saturate:uh(),scale:uh(),sepia:Jf(),skew:uh(),space:Tf(),translate:Tf()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":ih()}],"break-before":[{"break-before":ih()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Sf(),isArbitraryValue]}],overflow:[{overflow:pf()}],"overflow-x":[{"overflow-x":pf()}],"overflow-y":[{"overflow-y":pf()}],overscroll:[{overscroll:Xd()}],"overscroll-x":[{"overscroll-x":Xd()}],"overscroll-y":[{"overscroll-y":Xd()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[Ld]}],"inset-x":[{"inset-x":[Ld]}],"inset-y":[{"inset-y":[Ld]}],start:[{start:[Ld]}],end:[{end:[Ld]}],top:[{top:[Ld]}],right:[{right:[Ld]}],bottom:[{bottom:[Ld]}],left:[{left:[Ld]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger$2,isArbitraryValue]}],basis:[{basis:mf()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:Jf()}],shrink:[{shrink:Jf()}],order:[{order:["first","last","none",isInteger$2,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger$2,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":Af()}],"col-end":[{"col-end":Af()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger$2,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":Af()}],"row-end":[{"row-end":Af()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[Nd]}],"gap-x":[{"gap-x":[Nd]}],"gap-y":[{"gap-y":[Nd]}],"justify-content":[{justify:["normal",...Gf()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Gf(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Gf(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Fd]}],px:[{px:[Fd]}],py:[{py:[Fd]}],ps:[{ps:[Fd]}],pe:[{pe:[Fd]}],pt:[{pt:[Fd]}],pr:[{pr:[Fd]}],pb:[{pb:[Fd]}],pl:[{pl:[Fd]}],m:[{m:[Gd]}],mx:[{mx:[Gd]}],my:[{my:[Gd]}],ms:[{ms:[Gd]}],me:[{me:[Gd]}],mt:[{mt:[Gd]}],mr:[{mr:[Gd]}],mb:[{mb:[Gd]}],ml:[{ml:[Gd]}],"space-x":[{"space-x":[Jd]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Jd]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,qa]}],"min-w":[{"min-w":[isArbitraryValue,qa,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,qa,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,qa,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,qa,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,qa,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,qa,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber$3,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength$1,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[Ra]}],"placeholder-opacity":[{"placeholder-opacity":[Ud]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[Ra]}],"text-opacity":[{"text-opacity":[Ud]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Df(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength$1,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength$1,isArbitraryValue]}],"text-decoration-color":[{decoration:[Ra]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Tf()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[Ud]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Sf(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[Ra]}],"gradient-from-pos":[{from:[kd]}],"gradient-via-pos":[{via:[kd]}],"gradient-to-pos":[{to:[kd]}],"gradient-from":[{from:[Od]}],"gradient-via":[{via:[Od]}],"gradient-to":[{to:[Od]}],rounded:[{rounded:[ud]}],"rounded-s":[{"rounded-s":[ud]}],"rounded-e":[{"rounded-e":[ud]}],"rounded-t":[{"rounded-t":[ud]}],"rounded-r":[{"rounded-r":[ud]}],"rounded-b":[{"rounded-b":[ud]}],"rounded-l":[{"rounded-l":[ud]}],"rounded-ss":[{"rounded-ss":[ud]}],"rounded-se":[{"rounded-se":[ud]}],"rounded-ee":[{"rounded-ee":[ud]}],"rounded-es":[{"rounded-es":[ud]}],"rounded-tl":[{"rounded-tl":[ud]}],"rounded-tr":[{"rounded-tr":[ud]}],"rounded-br":[{"rounded-br":[ud]}],"rounded-bl":[{"rounded-bl":[ud]}],"border-w":[{border:[pd]}],"border-w-x":[{"border-x":[pd]}],"border-w-y":[{"border-y":[pd]}],"border-w-s":[{"border-s":[pd]}],"border-w-e":[{"border-e":[pd]}],"border-w-t":[{"border-t":[pd]}],"border-w-r":[{"border-r":[pd]}],"border-w-b":[{"border-b":[pd]}],"border-w-l":[{"border-l":[pd]}],"border-opacity":[{"border-opacity":[Ud]}],"border-style":[{border:[...Df(),"hidden"]}],"divide-x":[{"divide-x":[pd]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[pd]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[Ud]}],"divide-style":[{divide:Df()}],"border-color":[{border:[ld]}],"border-color-x":[{"border-x":[ld]}],"border-color-y":[{"border-y":[ld]}],"border-color-s":[{"border-s":[ld]}],"border-color-e":[{"border-e":[ld]}],"border-color-t":[{"border-t":[ld]}],"border-color-r":[{"border-r":[ld]}],"border-color-b":[{"border-b":[ld]}],"border-color-l":[{"border-l":[ld]}],"divide-color":[{divide:[ld]}],"outline-style":[{outline:["",...Df()]}],"outline-offset":[{"outline-offset":[isLength$1,isArbitraryValue]}],"outline-w":[{outline:[isLength$1,isArbitraryLength]}],"outline-color":[{outline:[Ra]}],"ring-w":[{ring:vf()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[Ra]}],"ring-opacity":[{"ring-opacity":[Ud]}],"ring-offset-w":[{"ring-offset":[isLength$1,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[Ra]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[Ud]}],"mix-blend":[{"mix-blend":[...If(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":If()}],filter:[{filter:["","none"]}],blur:[{blur:[nd]}],brightness:[{brightness:[od]}],contrast:[{contrast:[fd]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[md]}],"hue-rotate":[{"hue-rotate":[vd]}],invert:[{invert:[Ad]}],saturate:[{saturate:[jd]}],sepia:[{sepia:[zd]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[nd]}],"backdrop-brightness":[{"backdrop-brightness":[od]}],"backdrop-contrast":[{"backdrop-contrast":[fd]}],"backdrop-grayscale":[{"backdrop-grayscale":[md]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[vd]}],"backdrop-invert":[{"backdrop-invert":[Ad]}],"backdrop-opacity":[{"backdrop-opacity":[Ud]}],"backdrop-saturate":[{"backdrop-saturate":[jd]}],"backdrop-sepia":[{"backdrop-sepia":[zd]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[dd]}],"border-spacing-x":[{"border-spacing-x":[dd]}],"border-spacing-y":[{"border-spacing-y":[dd]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:uh()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:uh()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[qd]}],"scale-x":[{"scale-x":[qd]}],"scale-y":[{"scale-y":[qd]}],rotate:[{rotate:[isInteger$2,isArbitraryValue]}],"translate-x":[{"translate-x":[yf]}],"translate-y":[{"translate-y":[yf]}],"skew-x":[{"skew-x":[Yd]}],"skew-y":[{"skew-y":[Yd]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",Ra]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[Ra]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Tf()}],"scroll-mx":[{"scroll-mx":Tf()}],"scroll-my":[{"scroll-my":Tf()}],"scroll-ms":[{"scroll-ms":Tf()}],"scroll-me":[{"scroll-me":Tf()}],"scroll-mt":[{"scroll-mt":Tf()}],"scroll-mr":[{"scroll-mr":Tf()}],"scroll-mb":[{"scroll-mb":Tf()}],"scroll-ml":[{"scroll-ml":Tf()}],"scroll-p":[{"scroll-p":Tf()}],"scroll-px":[{"scroll-px":Tf()}],"scroll-py":[{"scroll-py":Tf()}],"scroll-ps":[{"scroll-ps":Tf()}],"scroll-pe":[{"scroll-pe":Tf()}],"scroll-pt":[{"scroll-pt":Tf()}],"scroll-pr":[{"scroll-pr":Tf()}],"scroll-pb":[{"scroll-pb":Tf()}],"scroll-pl":[{"scroll-pl":Tf()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[Ra,"none"]}],"stroke-w":[{stroke:[isLength$1,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[Ra,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig);function cn$5(...Ra){return twMerge(clsx(Ra))}const _sfc_main$1q=defineComponent({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(Pv),null,{default:withCtx(()=>[createVNode(unref($v),{class:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"}),createVNode(unref(Dv),mergeProps(unref(ud),{class:unref(cn$5)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$1p=defineComponent({__name:"AlertDialogFooter",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),falsyToString=Ra=>typeof Ra=="boolean"?`${Ra}`:Ra===0?"0":Ra,cx$1=clsx,cva=(Ra,qa)=>nd=>{var od;if((qa==null?void 0:qa.variants)==null)return cx$1(Ra,nd==null?void 0:nd.class,nd==null?void 0:nd.className);const{variants:ld,defaultVariants:ud}=qa,dd=Object.keys(ld).map(md=>{const vd=nd==null?void 0:nd[md],Ad=ud==null?void 0:ud[md];if(vd===null)return null;const Nd=falsyToString(vd)||falsyToString(Ad);return ld[md][Nd]}),pd=nd&&Object.entries(nd).reduce((md,vd)=>{let[Ad,Nd]=vd;return Nd===void 0||(md[Ad]=Nd),md},{}),fd=qa==null||(od=qa.compoundVariants)===null||od===void 0?void 0:od.reduce((md,vd)=>{let{class:Ad,className:Nd,...Od}=vd;return Object.entries(Od).every(kd=>{let[Ld,Gd]=kd;return Array.isArray(Gd)?Gd.includes({...ud,...pd}[Ld]):{...ud,...pd}[Ld]===Gd})?[...md,Ad,Nd]:md},[]);return cx$1(Ra,dd,fd,nd==null?void 0:nd.class,nd==null?void 0:nd.className)},_sfc_main$1o=defineComponent({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(O$4),{as:nd.as,"as-child":nd.asChild,class:normalizeClass(unref(cn$5)(unref(buttonVariants)({variant:nd.variant,size:nd.size}),qa.class))},{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),buttonVariants=cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),_sfc_main$1n=defineComponent({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Rv),mergeProps(nd.value,{class:unref(cn$5)(unref(buttonVariants)(),qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1m=defineComponent({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Bv),mergeProps(nd.value,{class:unref(cn$5)(unref(buttonVariants)({variant:"outline"}),"mt-2 sm:mt-0",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1l=defineComponent({__name:"AlertDialogHeader",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("flex flex-col gap-y-2 text-center sm:text-left",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$1k=defineComponent({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Tv),mergeProps(nd.value,{class:unref(cn$5)("text-sm text-muted-foreground",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1j=defineComponent({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Iv),mergeProps(nd.value,{class:unref(cn$5)("text-lg font-semibold",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$e={key:0,class:"loading"},_sfc_main$1i=defineComponent({__name:"RunLoading",setup(Ra){const qa=ref$1(!0);return onMounted(()=>{setTimeout(()=>{qa.value=!1},100)}),(nd,od)=>(openBlock(),createBlock(Transition$1,{name:"fade"},{default:withCtx(()=>[unref(qa)?(openBlock(),createElementBlock("div",_hoisted_1$e,od[0]||(od[0]=[createBaseVNode("strong",null,"致力于让 Markdown 编辑更简单",-1)]))):createCommentVNode("",!0)]),_:1}))}}),_export_sfc=(Ra,qa)=>{const nd=Ra.__vccOpts||Ra;for(const[od,ld]of qa)nd[od]=ld;return nd},__unplugin_components_13$1=_export_sfc(_sfc_main$1i,[["__scopeId","data-v-8781f9ec"]]),_sfc_main$1h=defineComponent({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Zi$2),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});/** +`))}return()=>ud.value||ld.value||pd.value?h$2(qa.default({present:pd})[0],{ref:vd=>{const Ad=$e$4(vd);return typeof(Ad==null?void 0:Ad.hasAttribute)>"u"||(Ad!=null&&Ad.hasAttribute("data-radix-popper-content-wrapper")?dd.value=Ad.firstElementChild:dd.value=Ad),Ad}}):null}}),[et$5,Xi$1]=Q$7("DialogRoot"),Zi$2=defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=ne$6(nd,"open",qa,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),ld=ref$1(),ud=ref$1(),{modal:dd}=toRefs(nd);return Xi$1({open:od,modal:dd,openModal:()=>{od.value=!0},onOpenChange:pd=>{od.value=pd},onOpenToggle:()=>{od.value=!od.value},contentId:"",titleId:"",descriptionId:"",triggerElement:ld,contentElement:ud}),(pd,fd)=>renderSlot(pd.$slots,"default",{open:unref(od)})}}),Ji$3=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=et$5(),{forwardRef:od,currentElement:ld}=R$7();return nd.contentId||(nd.contentId=he$4(void 0,"radix-vue-dialog-content")),onMounted(()=>{nd.triggerElement.value=ld.value}),(ud,dd)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{ref:unref(od),type:ud.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":unref(nd).open.value||!1,"aria-controls":unref(nd).open.value?unref(nd).contentId:void 0,"data-state":unref(nd).open.value?"open":"closed",onClick:unref(nd).onOpenToggle}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),nt$4=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=ja$1();return(nd,od)=>unref(qa)||nd.forceMount?(openBlock(),createBlock(Teleport,{key:0,to:nd.to,disabled:nd.disabled},[renderSlot(nd.$slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),xv=defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Qi$1="dismissableLayer.pointerDownOutside",eu$2="dismissableLayer.focusOutside";function zl$3(Ra,qa){const nd=qa.closest("[data-dismissable-layer]"),od=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),ld=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(nd&&od===nd||ld.indexOf(od){});return watchEffect(dd=>{if(!qe$3)return;const pd=async md=>{const vd=md.target;if(qa!=null&&qa.value){if(zl$3(qa.value,vd)){ld.value=!1;return}if(md.target&&!ld.value){let Ad=function(){Ht$4(Qi$1,Ra,Nd)};const Nd={originalEvent:md};md.pointerType==="touch"?(od.removeEventListener("click",ud.value),ud.value=Ad,od.addEventListener("click",ud.value,{once:!0})):Ad()}else od.removeEventListener("click",ud.value);ld.value=!1}},fd=window.setTimeout(()=>{od.addEventListener("pointerdown",pd)},0);dd(()=>{window.clearTimeout(fd),od.removeEventListener("pointerdown",pd),od.removeEventListener("click",ud.value)})}),{onPointerDownCapture:()=>ld.value=!0}}function Hl$3(Ra,qa){var nd;const od=((nd=qa==null?void 0:qa.value)==null?void 0:nd.ownerDocument)??(globalThis==null?void 0:globalThis.document),ld=ref$1(!1);return watchEffect(ud=>{if(!qe$3)return;const dd=async pd=>{qa!=null&&qa.value&&(await nextTick$1(),!(!qa.value||zl$3(qa.value,pd.target))&&pd.target&&!ld.value&&Ht$4(eu$2,Ra,{originalEvent:pd}))};od.addEventListener("focusin",dd),ud(()=>od.removeEventListener("focusin",dd))}),{onFocusCapture:()=>ld.value=!0,onBlurCapture:()=>ld.value=!1}}const je$7=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yt$3=defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{forwardRef:ld,currentElement:ud}=R$7(),dd=computed(()=>{var kd;return((kd=ud.value)==null?void 0:kd.ownerDocument)??globalThis.document}),pd=computed(()=>je$7.layersRoot),fd=computed(()=>ud.value?Array.from(pd.value).indexOf(ud.value):-1),md=computed(()=>je$7.layersWithOutsidePointerEventsDisabled.size>0),vd=computed(()=>{const kd=Array.from(pd.value),[Ld]=[...je$7.layersWithOutsidePointerEventsDisabled].slice(-1),Gd=kd.indexOf(Ld);return fd.value>=Gd}),Ad=Kl$3(async kd=>{const Ld=[...je$7.branches].some(Gd=>Gd==null?void 0:Gd.contains(kd.target));!vd.value||Ld||(od("pointerDownOutside",kd),od("interactOutside",kd),await nextTick$1(),kd.defaultPrevented||od("dismiss"))},ud),Nd=Hl$3(kd=>{[...je$7.branches].some(Ld=>Ld==null?void 0:Ld.contains(kd.target))||(od("focusOutside",kd),od("interactOutside",kd),kd.defaultPrevented||od("dismiss"))},ud);jn$3("Escape",kd=>{fd.value===pd.value.size-1&&(od("escapeKeyDown",kd),kd.defaultPrevented||od("dismiss"))});let Od;return watchEffect(kd=>{ud.value&&(nd.disableOutsidePointerEvents&&(je$7.layersWithOutsidePointerEventsDisabled.size===0&&(Od=dd.value.body.style.pointerEvents,dd.value.body.style.pointerEvents="none"),je$7.layersWithOutsidePointerEventsDisabled.add(ud.value)),pd.value.add(ud.value),kd(()=>{nd.disableOutsidePointerEvents&&je$7.layersWithOutsidePointerEventsDisabled.size===1&&(dd.value.body.style.pointerEvents=Od)}))}),watchEffect(kd=>{kd(()=>{ud.value&&(pd.value.delete(ud.value),je$7.layersWithOutsidePointerEventsDisabled.delete(ud.value))})}),(kd,Ld)=>(openBlock(),createBlock(unref(O$4),{ref:unref(ld),"as-child":kd.asChild,as:kd.as,"data-dismissable-layer":"",style:normalizeStyle({pointerEvents:md.value?vd.value?"auto":"none":void 0}),onFocusCapture:unref(Nd).onFocusCapture,onBlurCapture:unref(Nd).onBlurCapture,onPointerdownCapture:unref(Ad).onPointerDownCapture},{default:withCtx(()=>[renderSlot(kd.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),wn$3="focusScope.autoFocusOnMount",_n$3="focusScope.autoFocusOnUnmount",Wo$2={bubbles:!1,cancelable:!0};function Oa$3(Ra,{select:qa=!1}={}){const nd=document.activeElement;for(const od of Ra)if(ct$4(od,{select:qa}),document.activeElement!==nd)return!0}function au$4(Ra){const qa=Jn$4(Ra),nd=jo$2(qa,Ra),od=jo$2(qa.reverse(),Ra);return[nd,od]}function Jn$4(Ra){const qa=[],nd=document.createTreeWalker(Ra,NodeFilter.SHOW_ELEMENT,{acceptNode:od=>{const ld=od.tagName==="INPUT"&&od.type==="hidden";return od.disabled||od.hidden||ld?NodeFilter.FILTER_SKIP:od.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;nd.nextNode();)qa.push(nd.currentNode);return qa}function jo$2(Ra,qa){for(const nd of Ra)if(!nu$4(nd,{upTo:qa}))return nd}function nu$4(Ra,{upTo:qa}){if(getComputedStyle(Ra).visibility==="hidden")return!0;for(;Ra;){if(qa!==void 0&&Ra===qa)return!1;if(getComputedStyle(Ra).display==="none")return!0;Ra=Ra.parentElement}return!1}function ou$3(Ra){return Ra instanceof HTMLInputElement&&"select"in Ra}function ct$4(Ra,{select:qa=!1}={}){if(Ra&&Ra.focus){const nd=document.activeElement;Ra.focus({preventScroll:!0}),Ra!==nd&&ou$3(Ra)&&qa&&Ra.select()}}const lu$3=ei$4(()=>ref$1([]));function su$3(){const Ra=lu$3();return{add(qa){const nd=Ra.value[0];qa!==nd&&(nd==null||nd.pause()),Ra.value=Uo$3(Ra.value,qa),Ra.value.unshift(qa)},remove(qa){var nd;Ra.value=Uo$3(Ra.value,qa),(nd=Ra.value[0])==null||nd.resume()}}}function Uo$3(Ra,qa){const nd=[...Ra],od=nd.indexOf(qa);return od!==-1&&nd.splice(od,1),nd}function ru$3(Ra){return Ra.filter(qa=>qa.tagName!=="A")}const Ya$2=defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{currentRef:ld,currentElement:ud}=R$7(),dd=ref$1(null),pd=su$3(),fd=reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});watchEffect(vd=>{if(!qe$3)return;const Ad=ud.value;if(!nd.trapped)return;function Nd(Gd){if(fd.paused||!Ad)return;const jd=Gd.target;Ad.contains(jd)?dd.value=jd:ct$4(dd.value,{select:!0})}function Od(Gd){if(fd.paused||!Ad)return;const jd=Gd.relatedTarget;jd!==null&&(Ad.contains(jd)||ct$4(dd.value,{select:!0}))}function kd(Gd){Ad.contains(dd.value)||ct$4(Ad)}document.addEventListener("focusin",Nd),document.addEventListener("focusout",Od);const Ld=new MutationObserver(kd);Ad&&Ld.observe(Ad,{childList:!0,subtree:!0}),vd(()=>{document.removeEventListener("focusin",Nd),document.removeEventListener("focusout",Od),Ld.disconnect()})}),watchEffect(async vd=>{const Ad=ud.value;if(await nextTick$1(),!Ad)return;pd.add(fd);const Nd=document.activeElement;if(!Ad.contains(Nd)){const Od=new CustomEvent(wn$3,Wo$2);Ad.addEventListener(wn$3,kd=>od("mountAutoFocus",kd)),Ad.dispatchEvent(Od),Od.defaultPrevented||(Oa$3(ru$3(Jn$4(Ad)),{select:!0}),document.activeElement===Nd&&ct$4(Ad))}vd(()=>{Ad.removeEventListener(wn$3,Ld=>od("mountAutoFocus",Ld));const Od=new CustomEvent(_n$3,Wo$2),kd=Ld=>{od("unmountAutoFocus",Ld)};Ad.addEventListener(_n$3,kd),Ad.dispatchEvent(Od),setTimeout(()=>{Od.defaultPrevented||ct$4(Nd??document.body,{select:!0}),Ad.removeEventListener(_n$3,kd),pd.remove(fd)},0)})});function md(vd){if(!nd.loop&&!nd.trapped||fd.paused)return;const Ad=vd.key==="Tab"&&!vd.altKey&&!vd.ctrlKey&&!vd.metaKey,Nd=document.activeElement;if(Ad&&Nd){const Od=vd.currentTarget,[kd,Ld]=au$4(Od);kd&&Ld?!vd.shiftKey&&Nd===Ld?(vd.preventDefault(),nd.loop&&ct$4(kd,{select:!0})):vd.shiftKey&&Nd===kd&&(vd.preventDefault(),nd.loop&&ct$4(Ld,{select:!0})):Nd===Od&&vd.preventDefault()}}return(vd,Ad)=>(openBlock(),createBlock(unref(O$4),{ref_key:"currentRef",ref:ld,tabindex:"-1","as-child":vd.asChild,as:vd.as,onKeydown:md},{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},8,["as-child","as"]))}}),iu$2="menu.itemSelect",Dn$3=["Enter"," "],uu$4=["ArrowDown","PageUp","Home"],Wl$3=["ArrowUp","PageDown","End"],du$3=[...uu$4,...Wl$3],cu$4={ltr:[...Dn$3,"ArrowRight"],rtl:[...Dn$3,"ArrowLeft"]},pu$3={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function Qn$4(Ra){return Ra?"open":"closed"}function Fa$1(Ra){return Ra==="indeterminate"}function eo$2(Ra){return Fa$1(Ra)?"indeterminate":Ra?"checked":"unchecked"}function $n$4(Ra){const qa=document.activeElement;for(const nd of Ra)if(nd===qa||(nd.focus(),document.activeElement!==qa))return}function fu$2(Ra,qa){const{x:nd,y:od}=Ra;let ld=!1;for(let ud=0,dd=qa.length-1;udod!=vd>od&&nd<(md-pd)*(od-fd)/(vd-fd)+pd&&(ld=!ld)}return ld}function vu$3(Ra,qa){if(!qa)return!1;const nd={x:Ra.clientX,y:Ra.clientY};return fu$2(nd,qa)}function ua$2(Ra){return Ra.pointerType==="mouse"}const jl$3=defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=et$5(),{forwardRef:ud,currentElement:dd}=R$7();return ld.titleId||(ld.titleId=he$4(void 0,"radix-vue-dialog-title")),ld.descriptionId||(ld.descriptionId=he$4(void 0,"radix-vue-dialog-description")),onMounted(()=>{ld.contentElement=dd,document.activeElement!==document.body&&(ld.triggerElement.value=document.activeElement)}),(pd,fd)=>(openBlock(),createBlock(unref(Ya$2),{"as-child":"",loop:"",trapped:nd.trapFocus,onMountAutoFocus:fd[5]||(fd[5]=md=>od("openAutoFocus",md)),onUnmountAutoFocus:fd[6]||(fd[6]=md=>od("closeAutoFocus",md))},{default:withCtx(()=>[createVNode(unref(yt$3),mergeProps({id:unref(ld).contentId,ref:unref(ud),as:pd.as,"as-child":pd.asChild,"disable-outside-pointer-events":pd.disableOutsidePointerEvents,role:"dialog","aria-describedby":unref(ld).descriptionId,"aria-labelledby":unref(ld).titleId,"data-state":unref(Qn$4)(unref(ld).open.value)},pd.$attrs,{onDismiss:fd[0]||(fd[0]=md=>unref(ld).onOpenChange(!1)),onEscapeKeyDown:fd[1]||(fd[1]=md=>od("escapeKeyDown",md)),onFocusOutside:fd[2]||(fd[2]=md=>od("focusOutside",md)),onInteractOutside:fd[3]||(fd[3]=md=>od("interactOutside",md)),onPointerDownOutside:fd[4]||(fd[4]=md=>od("pointerDownOutside",md))}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),gu$2=defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=et$5(),ud=Ae$6(od),{forwardRef:dd,currentElement:pd}=R$7();return ya$1(pd),(fd,md)=>(openBlock(),createBlock(jl$3,mergeProps({...nd,...unref(ud)},{ref:unref(dd),"trap-focus":unref(ld).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:md[0]||(md[0]=vd=>{var Ad;vd.defaultPrevented||(vd.preventDefault(),(Ad=unref(ld).triggerElement.value)==null||Ad.focus())}),onPointerDownOutside:md[1]||(md[1]=vd=>{const Ad=vd.detail.originalEvent,Nd=Ad.button===0&&Ad.ctrlKey===!0;(Ad.button===2||Nd)&&vd.preventDefault()}),onFocusOutside:md[2]||(md[2]=vd=>{vd.preventDefault()})}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["trap-focus"]))}}),bu$3=defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);R$7();const ld=et$5(),ud=ref$1(!1),dd=ref$1(!1);return(pd,fd)=>(openBlock(),createBlock(jl$3,mergeProps({...nd,...unref(od)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:fd[0]||(fd[0]=md=>{var vd;md.defaultPrevented||(ud.value||(vd=unref(ld).triggerElement.value)==null||vd.focus(),md.preventDefault()),ud.value=!1,dd.value=!1}),onInteractOutside:fd[1]||(fd[1]=md=>{var vd;md.defaultPrevented||(ud.value=!0,md.detail.originalEvent.type==="pointerdown"&&(dd.value=!0));const Ad=md.target;(vd=unref(ld).triggerElement.value)!=null&&vd.contains(Ad)&&md.preventDefault(),md.detail.originalEvent.type==="focusin"&&dd.value&&md.preventDefault()})}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16))}}),Cu$3=defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=et$5(),ud=Ae$6(od),{forwardRef:dd}=R$7();return(pd,fd)=>(openBlock(),createBlock(unref(Pe$7),{present:pd.forceMount||unref(ld).open.value},{default:withCtx(()=>[unref(ld).modal.value?(openBlock(),createBlock(gu$2,mergeProps({key:0,ref:unref(dd)},{...nd,...unref(ud),...pd.$attrs}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16)):(openBlock(),createBlock(bu$3,mergeProps({key:1,ref:unref(dd)},{...nd,...unref(ud),...pd.$attrs}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),wu$3=defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=et$5();return ha$1(!0),R$7(),(nd,od)=>(openBlock(),createBlock(unref(O$4),{as:nd.as,"as-child":nd.asChild,"data-state":unref(qa).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),_u$3=defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=et$5(),{forwardRef:nd}=R$7();return(od,ld)=>{var ud;return(ud=unref(qa))!=null&&ud.modal.value?(openBlock(),createBlock(unref(Pe$7),{key:0,present:od.forceMount||unref(qa).open.value},{default:withCtx(()=>[createVNode(wu$3,mergeProps(od.$attrs,{ref:unref(nd),as:od.as,"as-child":od.asChild}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):createCommentVNode("",!0)}}}),Ul$3=defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra;R$7();const nd=et$5();return(od,ld)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{type:od.as==="button"?"button":void 0,onClick:ld[0]||(ld[0]=ud=>unref(nd).onOpenChange(!1))}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["type"]))}}),xu$2=defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(Ra){const qa=Ra,nd=et$5();return R$7(),(od,ld)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{id:unref(nd).titleId}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["id"]))}}),Su$2=defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(Ra){const qa=Ra;R$7();const nd=et$5();return(od,ld)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{id:unref(nd).descriptionId}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["id"]))}}),Sv=defineComponent({__name:"AlertDialogRoot",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);return R$7(),(od,ld)=>(openBlock(),createBlock(unref(Zi$2),mergeProps(unref(nd),{modal:!0}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16))}}),Pv=defineComponent({__name:"AlertDialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[Eu$3,Pu$2]=Q$7("AlertDialogContent"),Dv=defineComponent({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);R$7();const ld=ref$1();return Pu$2({onCancelElementChange:ud=>{ld.value=ud}}),(ud,dd)=>(openBlock(),createBlock(unref(Cu$3),mergeProps({...nd,...unref(od)},{role:"alertdialog",onPointerDownOutside:dd[0]||(dd[0]=withModifiers(()=>{},["prevent"])),onInteractOutside:dd[1]||(dd[1]=withModifiers(()=>{},["prevent"])),onOpenAutoFocus:dd[2]||(dd[2]=()=>{nextTick$1(()=>{var pd;(pd=ld.value)==null||pd.focus({preventScroll:!0})})})}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),$v=defineComponent({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(_u$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Bv=defineComponent({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=Eu$3(),{forwardRef:od,currentElement:ld}=R$7();return onMounted(()=>{nd.onCancelElementChange(ld.value)}),(ud,dd)=>(openBlock(),createBlock(unref(Ul$3),mergeProps(qa,{ref:unref(od)}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Iv=defineComponent({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(xu$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Tv=defineComponent({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(Su$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Rv=defineComponent({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(Ul$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}});function Na$1(Ra){return Ra==="indeterminate"}function Yl$3(Ra){return Na$1(Ra)?"indeterminate":Ra?"checked":"unchecked"}const Yu$2=["value","checked","name","disabled","required"],[Xu$3,Zu$4]=Q$7("CheckboxRoot"),Vv=defineComponent({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{disabled:ld}=toRefs(nd),ud=ne$6(nd,"checked",od,{defaultValue:nd.defaultChecked,passive:nd.checked===void 0}),{forwardRef:dd,currentElement:pd}=R$7(),fd=Je$4(pd),md=computed(()=>{var vd;return nd.id&&pd.value?(vd=document.querySelector(`[for="${nd.id}"]`))==null?void 0:vd.innerText:void 0});return Zu$4({disabled:ld,state:ud}),(vd,Ad)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(vd.$attrs,{id:vd.id,ref:unref(dd),role:"checkbox","as-child":nd.asChild,as:vd.as,type:vd.as==="button"?"button":void 0,"aria-checked":unref(Na$1)(unref(ud))?"mixed":unref(ud),"aria-required":!1,"aria-label":vd.$attrs["aria-label"]||md.value,"data-state":unref(Yl$3)(unref(ud)),"data-disabled":unref(ld)?"":void 0,disabled:unref(ld),onKeydown:withKeys(withModifiers(()=>{},["prevent"]),["enter"]),onClick:Ad[0]||(Ad[0]=Nd=>ud.value=unref(Na$1)(unref(ud))?!0:!unref(ud))}),{default:withCtx(()=>[renderSlot(vd.$slots,"default",{checked:unref(ud)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-label","data-state","data-disabled","disabled","onKeydown"]),unref(fd)?(openBlock(),createElementBlock("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:vd.value,checked:!!unref(ud),name:nd.name,disabled:nd.disabled,required:nd.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,Yu$2)):createCommentVNode("",!0)],64))}}),Fv=defineComponent({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const{forwardRef:qa}=R$7(),nd=Xu$3();return(od,ld)=>(openBlock(),createBlock(unref(Pe$7),{present:od.forceMount||unref(Na$1)(unref(nd).state.value)||unref(nd).state.value===!0},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(qa),"data-state":unref(Yl$3)(unref(nd).state.value),"data-disabled":unref(nd).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":od.asChild,as:od.as},od.$attrs),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),[Xl$3,Ju$3]=Q$7("PopperRoot"),Tt$4=defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(Ra){const qa=ref$1();return Ju$3({anchor:qa,onAnchorChange:nd=>qa.value=nd}),(nd,od)=>renderSlot(nd.$slots,"default")}}),Rt$5=defineComponent({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{forwardRef:nd,currentElement:od}=R$7(),ld=Xl$3();return watchEffect(()=>{ld.onAnchorChange(qa.element??od.value)}),(ud,dd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(nd),as:ud.as,"as-child":ud.asChild},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as","as-child"]))}});function Qu$3(Ra){return Ra!==null}function ed(Ra){return{name:"transformOrigin",options:Ra,fn(qa){var nd,od,ld;const{placement:ud,rects:dd,middlewareData:pd}=qa,fd=((nd=pd.arrow)==null?void 0:nd.centerOffset)!==0,md=fd?0:Ra.arrowWidth,vd=fd?0:Ra.arrowHeight,[Ad,Nd]=Bn$3(ud),Od={start:"0%",center:"50%",end:"100%"}[Nd],kd=(((od=pd.arrow)==null?void 0:od.x)??0)+md/2,Ld=(((ld=pd.arrow)==null?void 0:ld.y)??0)+vd/2;let Gd="",jd="";return Ad==="bottom"?(Gd=fd?Od:`${kd}px`,jd=`${-vd}px`):Ad==="top"?(Gd=fd?Od:`${kd}px`,jd=`${dd.floating.height+vd}px`):Ad==="right"?(Gd=`${-vd}px`,jd=fd?Od:`${Ld}px`):Ad==="left"&&(Gd=`${dd.floating.width+vd}px`,jd=fd?Od:`${Ld}px`),{data:{x:Gd,y:jd}}}}}function Bn$3(Ra){const[qa,nd="center"]=Ra.split("-");return[qa,nd]}const Zl$3={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[td,ad$1]=Q$7("PopperContent"),Dt$4=defineComponent({inheritAttrs:!1,__name:"PopperContent",props:mergeDefaults({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...Zl$3}),emits:["placed"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=Xl$3(),{forwardRef:ud,currentElement:dd}=R$7(),pd=ref$1(),fd=ref$1(),{width:md,height:vd}=Ml$3(fd),Ad=computed(()=>nd.side+(nd.align!=="center"?`-${nd.align}`:"")),Nd=computed(()=>typeof nd.collisionPadding=="number"?nd.collisionPadding:{top:0,right:0,bottom:0,left:0,...nd.collisionPadding}),Od=computed(()=>Array.isArray(nd.collisionBoundary)?nd.collisionBoundary:[nd.collisionBoundary]),kd=computed(()=>({padding:Nd.value,boundary:Od.value.filter(Qu$3),altBoundary:Od.value.length>0})),Ld=Jr$4(()=>[offset({mainAxis:nd.sideOffset+vd.value,alignmentAxis:nd.alignOffset}),nd.prioritizePosition&&nd.avoidCollisions&&flip({...kd.value}),nd.avoidCollisions&&shift({mainAxis:!0,crossAxis:!!nd.prioritizePosition,limiter:nd.sticky==="partial"?limitShift():void 0,...kd.value}),!nd.prioritizePosition&&nd.avoidCollisions&&flip({...kd.value}),size({...kd.value,apply:({elements:pf,rects:mf,availableWidth:Sf,availableHeight:Tf})=>{const{width:Af,height:Ef}=mf.reference,Nf=pf.floating.style;Nf.setProperty("--radix-popper-available-width",`${Sf}px`),Nf.setProperty("--radix-popper-available-height",`${Tf}px`),Nf.setProperty("--radix-popper-anchor-width",`${Af}px`),Nf.setProperty("--radix-popper-anchor-height",`${Ef}px`)}}),fd.value&&arrow({element:fd.value,padding:nd.arrowPadding}),ed({arrowWidth:md.value,arrowHeight:vd.value}),nd.hideWhenDetached&&hide({strategy:"referenceHidden",...kd.value})]),{floatingStyles:Gd,placement:jd,isPositioned:Fd,middlewareData:Ud}=useFloating(ld.anchor,pd,{strategy:"fixed",placement:Ad,whileElementsMounted:(...pf)=>autoUpdate(...pf,{animationFrame:nd.updatePositionStrategy==="always"}),middleware:Ld}),qd=computed(()=>Bn$3(jd.value)[0]),zd=computed(()=>Bn$3(jd.value)[1]);watchPostEffect(()=>{Fd.value&&od("placed")});const Wd=computed(()=>{var pf;return((pf=Ud.value.arrow)==null?void 0:pf.centerOffset)!==0}),Jd=ref$1("");watchEffect(()=>{dd.value&&(Jd.value=window.getComputedStyle(dd.value).zIndex)});const _f=computed(()=>{var pf;return((pf=Ud.value.arrow)==null?void 0:pf.x)??0}),Xd=computed(()=>{var pf;return((pf=Ud.value.arrow)==null?void 0:pf.y)??0});return ad$1({placedSide:qd,onArrowChange:pf=>fd.value=pf,arrowX:_f,arrowY:Xd,shouldHideArrow:Wd}),(pf,mf)=>{var Sf,Tf,Af;return openBlock(),createElementBlock("div",{ref_key:"floatingRef",ref:pd,"data-radix-popper-content-wrapper":"",style:normalizeStyle({...unref(Gd),transform:unref(Fd)?unref(Gd).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Jd.value,"--radix-popper-transform-origin":[(Sf=unref(Ud).transformOrigin)==null?void 0:Sf.x,(Tf=unref(Ud).transformOrigin)==null?void 0:Tf.y].join(" "),...((Af=unref(Ud).hide)==null?void 0:Af.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[createVNode(unref(O$4),mergeProps({ref:unref(ud)},pf.$attrs,{"as-child":nd.asChild,as:pf.as,"data-side":qd.value,"data-align":zd.value,style:{animation:unref(Fd)?void 0:"none"}}),{default:withCtx(()=>[renderSlot(pf.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),Zt$4=defineComponent({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){return R$7(),(qa,nd)=>(openBlock(),createBlock(unref(O$4),{as:qa.as,"as-child":qa.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:withCtx(()=>[renderSlot(qa.$slots,"default")]),_:3},8,["as","as-child"]))}}),sd="data-radix-vue-collection-item",[ao$2,rd]=Q$7("CollectionProvider");function ba$3(Ra=sd){const qa=ref$1(new Map),nd=ref$1(),od=rd({collectionRef:nd,itemMap:qa,attrName:Ra}),{getItems:ld}=Qt$4(od),ud=computed(()=>Array.from(od.itemMap.value.values())),dd=computed(()=>od.itemMap.value.size);return{getItems:ld,reactiveItems:ud,itemMapSize:dd}}const Ca$1=defineComponent({name:"CollectionSlot",setup(Ra,{slots:qa}){const nd=ao$2(),{primitiveElement:od,currentElement:ld}=Ie$5();return watch(ld,()=>{nd.collectionRef.value=ld.value}),()=>h$2(Xn$4,{ref:od},qa)}}),Jt$5=defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(Ra,{slots:qa,attrs:nd}){const od=ao$2(),{primitiveElement:ld,currentElement:ud}=Ie$5();return watchEffect(dd=>{if(ud.value){const pd=markRaw(ud.value);od.itemMap.value.set(pd,{ref:ud.value,value:Ra.value}),dd(()=>od.itemMap.value.delete(pd))}}),()=>h$2(Xn$4,{...nd,[od.attrName]:"",ref:ld},qa)}});function Qt$4(Ra){const qa=Ra??ao$2();return{getItems:()=>{const nd=qa.collectionRef.value;if(!nd)return[];const od=Array.from(nd.querySelectorAll(`[${qa.attrName}]`));return Array.from(qa.itemMap.value.values()).sort((ld,ud)=>od.indexOf(ld.ref)-od.indexOf(ud.ref))}}}function Xa$2(Ra){const qa=Ga$2({nonce:ref$1()});return computed(()=>{var nd;return(Ra==null?void 0:Ra.value)||((nd=qa.nonce)==null?void 0:nd.value)})}const Za$1=defineComponent({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Rt$5),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}});function hd(){const Ra=ref$1(!1);return onMounted(()=>{Le$6("keydown",()=>{Ra.value=!0},{capture:!0,passive:!0}),Le$6(["pointerdown","pointermove"],()=>{Ra.value=!1},{capture:!0,passive:!0})}),Ra}const yd=xl$3(hd),[At$5,Ql$3]=Q$7(["MenuRoot","MenuSub"],"MenuContext"),[wa$1,gd]=Q$7("MenuRoot"),oo$4=defineComponent({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{modal:ld,dir:ud}=toRefs(nd),dd=be$9(ud),pd=ne$6(nd,"open",od),fd=ref$1(),md=yd();return Ql$3({open:pd,onOpenChange:vd=>{pd.value=vd},content:fd,onContentChange:vd=>{fd.value=vd}}),gd({onClose:()=>{pd.value=!1},isUsingKeyboardRef:md,dir:dd,modal:ld}),(vd,Ad)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3}))}}),bd$1="rovingFocusGroup.onEntryFocus",Cd={bubbles:!1,cancelable:!0},Ja={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wd(Ra,qa){return qa!=="rtl"?Ra:Ra==="ArrowLeft"?"ArrowRight":Ra==="ArrowRight"?"ArrowLeft":Ra}function es$2(Ra,qa,nd){const od=wd(Ra.key,nd);if(!(qa==="vertical"&&["ArrowLeft","ArrowRight"].includes(od))&&!(qa==="horizontal"&&["ArrowUp","ArrowDown"].includes(od)))return Ja[od]}function ts$1(Ra,qa=!1,nd){const od=(nd==null?void 0:nd.activeElement)??document.activeElement;for(const ld of Ra)if(ld===od||(ld.focus({preventScroll:qa}),document.activeElement!==od))return}function _d(Ra,qa){return Ra.map((nd,od)=>Ra[(qa+od)%Ra.length])}const[xd,Sd]=Q$7("RovingFocusGroup"),Ot$4=defineComponent({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(Ra,{expose:qa,emit:nd}){const od=Ra,ld=nd,{loop:ud,orientation:dd,dir:pd}=toRefs(od),fd=be$9(pd),md=ne$6(od,"currentTabStopId",ld,{defaultValue:od.defaultCurrentTabStopId,passive:od.currentTabStopId===void 0}),vd=ref$1(!1),Ad=ref$1(!1),Nd=ref$1(0),{getItems:Od}=ba$3();function kd(Gd){const jd=!Ad.value;if(Gd.currentTarget&&Gd.target===Gd.currentTarget&&jd&&!vd.value){const Fd=new CustomEvent(bd$1,Cd);if(Gd.currentTarget.dispatchEvent(Fd),ld("entryFocus",Fd),!Fd.defaultPrevented){const Ud=Od().map(Jd=>Jd.ref).filter(Jd=>Jd.dataset.disabled!==""),qd=Ud.find(Jd=>Jd.getAttribute("data-active")==="true"),zd=Ud.find(Jd=>Jd.id===md.value),Wd=[qd,zd,...Ud].filter(Boolean);ts$1(Wd,od.preventScrollOnEntryFocus)}}Ad.value=!1}function Ld(){setTimeout(()=>{Ad.value=!1},1)}return qa({getItems:Od}),Sd({loop:ud,dir:fd,orientation:dd,currentTabStopId:md,onItemFocus:Gd=>{md.value=Gd},onItemShiftTab:()=>{vd.value=!0},onFocusableItemAdd:()=>{Nd.value++},onFocusableItemRemove:()=>{Nd.value--}}),(Gd,jd)=>(openBlock(),createBlock(unref(Ca$1),null,{default:withCtx(()=>[createVNode(unref(O$4),{tabindex:vd.value||Nd.value===0?-1:0,"data-orientation":unref(dd),as:Gd.as,"as-child":Gd.asChild,dir:unref(fd),style:{outline:"none"},onMousedown:jd[0]||(jd[0]=Fd=>Ad.value=!0),onMouseup:Ld,onFocus:kd,onBlur:jd[1]||(jd[1]=Fd=>vd.value=!1)},{default:withCtx(()=>[renderSlot(Gd.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),kt$4=defineComponent({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Ra,nd=xd(),od=computed(()=>qa.tabStopId||he$4()),ld=computed(()=>nd.currentTabStopId.value===od.value),{getItems:ud}=Qt$4(),{primitiveElement:dd,currentElement:pd}=Ie$5(),fd=computed(()=>{var vd;return(vd=pd.value)==null?void 0:vd.getRootNode()});onMounted(()=>{qa.focusable&&nd.onFocusableItemAdd()}),onUnmounted(()=>{qa.focusable&&nd.onFocusableItemRemove()});function md(vd){if(vd.key==="Tab"&&vd.shiftKey){nd.onItemShiftTab();return}if(vd.target!==vd.currentTarget)return;const Ad=es$2(vd,nd.orientation.value,nd.dir.value);if(Ad!==void 0){if(vd.metaKey||vd.ctrlKey||vd.altKey||!qa.allowShiftKey&&vd.shiftKey)return;vd.preventDefault();let Nd=[...ud().map(Od=>Od.ref).filter(Od=>Od.dataset.disabled!=="")];if(Ad==="last")Nd.reverse();else if(Ad==="prev"||Ad==="next"){Ad==="prev"&&Nd.reverse();const Od=Nd.indexOf(vd.currentTarget);Nd=nd.loop.value?_d(Nd,Od+1):Nd.slice(Od+1)}nextTick$1(()=>ts$1(Nd,!1,fd.value))}}return(vd,Ad)=>(openBlock(),createBlock(unref(Jt$5),null,{default:withCtx(()=>[createVNode(unref(O$4),{ref_key:"primitiveElement",ref:dd,tabindex:ld.value?0:-1,"data-orientation":unref(nd).orientation.value,"data-active":vd.active,"data-disabled":vd.focusable?void 0:"",as:vd.as,"as-child":vd.asChild,onMousedown:Ad[0]||(Ad[0]=Nd=>{vd.focusable?unref(nd).onItemFocus(od.value):Nd.preventDefault()}),onFocus:Ad[1]||(Ad[1]=Nd=>unref(nd).onItemFocus(od.value)),onKeydown:md},{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[lo$3,Ed]=Q$7("MenuContent"),so$2=defineComponent({__name:"MenuContentImpl",props:mergeDefaults({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...Zl$3}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=At$5(),ud=wa$1(),{trapFocus:dd,disableOutsidePointerEvents:pd,loop:fd}=toRefs(nd);Gn$4(),ha$1(pd.value);const md=ref$1(""),vd=ref$1(0),Ad=ref$1(0),Nd=ref$1(null),Od=ref$1("right"),kd=ref$1(0),Ld=ref$1(null),{createCollection:Gd}=Me$7(),{forwardRef:jd,currentElement:Fd}=R$7(),Ud=Gd(Fd);watch(Fd,pf=>{ld.onContentChange(pf)});const{handleTypeaheadSearch:qd}=ga$2(Ud);onUnmounted(()=>{window.clearTimeout(vd.value)});function zd(pf){var mf,Sf;return Od.value===((mf=Nd.value)==null?void 0:mf.side)&&vu$3(pf,(Sf=Nd.value)==null?void 0:Sf.area)}async function Wd(pf){var mf;od("openAutoFocus",pf),!pf.defaultPrevented&&(pf.preventDefault(),(mf=Fd.value)==null||mf.focus({preventScroll:!0}))}function Jd(pf){if(pf.defaultPrevented)return;const mf=pf.target.closest("[data-radix-menu-content]")===pf.currentTarget,Sf=pf.ctrlKey||pf.altKey||pf.metaKey,Tf=pf.key.length===1,Af=Bt$5(pf,document.activeElement,Fd.value,{loop:fd.value,arrowKeyOptions:"vertical",dir:ud==null?void 0:ud.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(Af)return Af==null?void 0:Af.focus();if(pf.code==="Space"||(mf&&(pf.key==="Tab"&&pf.preventDefault(),!Sf&&Tf&&qd(pf.key)),pf.target!==Fd.value)||!du$3.includes(pf.key))return;pf.preventDefault();const Ef=Ud.value;Wl$3.includes(pf.key)&&Ef.reverse(),$n$4(Ef)}function _f(pf){var mf,Sf;(Sf=(mf=pf==null?void 0:pf.currentTarget)==null?void 0:mf.contains)!=null&&Sf.call(mf,pf.target)||(window.clearTimeout(vd.value),md.value="")}function Xd(pf){var mf;if(!ua$2(pf))return;const Sf=pf.target,Tf=kd.value!==pf.clientX;if((mf=pf==null?void 0:pf.currentTarget)!=null&&mf.contains(Sf)&&Tf){const Af=pf.clientX>kd.value?"right":"left";Od.value=Af,kd.value=pf.clientX}}return Ed({onItemEnter:pf=>!!zd(pf),onItemLeave:pf=>{var mf;zd(pf)||((mf=Fd.value)==null||mf.focus(),Ld.value=null)},onTriggerLeave:pf=>!!zd(pf),searchRef:md,pointerGraceTimerRef:Ad,onPointerGraceIntentChange:pf=>{Nd.value=pf}}),(pf,mf)=>(openBlock(),createBlock(unref(Ya$2),{"as-child":"",trapped:unref(dd),onMountAutoFocus:Wd,onUnmountAutoFocus:mf[7]||(mf[7]=Sf=>od("closeAutoFocus",Sf))},{default:withCtx(()=>[createVNode(unref(yt$3),{"as-child":"","disable-outside-pointer-events":unref(pd),onEscapeKeyDown:mf[2]||(mf[2]=Sf=>od("escapeKeyDown",Sf)),onPointerDownOutside:mf[3]||(mf[3]=Sf=>od("pointerDownOutside",Sf)),onFocusOutside:mf[4]||(mf[4]=Sf=>od("focusOutside",Sf)),onInteractOutside:mf[5]||(mf[5]=Sf=>od("interactOutside",Sf)),onDismiss:mf[6]||(mf[6]=Sf=>od("dismiss"))},{default:withCtx(()=>[createVNode(unref(Ot$4),{"current-tab-stop-id":Ld.value,"onUpdate:currentTabStopId":mf[0]||(mf[0]=Sf=>Ld.value=Sf),"as-child":"",orientation:"vertical",dir:unref(ud).dir.value,loop:unref(fd),onEntryFocus:mf[1]||(mf[1]=Sf=>{od("entryFocus",Sf),unref(ud).isUsingKeyboardRef.value||Sf.preventDefault()})},{default:withCtx(()=>[createVNode(unref(Dt$4),{ref:unref(jd),role:"menu",as:pf.as,"as-child":pf.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":unref(Qn$4)(unref(ld).open.value),dir:unref(ud).dir.value,side:pf.side,"side-offset":pf.sideOffset,align:pf.align,"align-offset":pf.alignOffset,"avoid-collisions":pf.avoidCollisions,"collision-boundary":pf.collisionBoundary,"collision-padding":pf.collisionPadding,"arrow-padding":pf.arrowPadding,"prioritize-position":pf.prioritizePosition,sticky:pf.sticky,"hide-when-detached":pf.hideWhenDetached,onKeydown:Jd,onBlur:_f,onPointermove:Xd},{default:withCtx(()=>[renderSlot(pf.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),as$2=defineComponent({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,nd=lo$3(),{forwardRef:od}=R$7(),ld=ref$1(!1);async function ud(pd){if(!pd.defaultPrevented&&ua$2(pd)){if(qa.disabled)nd.onItemLeave(pd);else if(!nd.onItemEnter(pd)){const fd=pd.currentTarget;fd==null||fd.focus({preventScroll:!0})}}}async function dd(pd){await nextTick$1(),!pd.defaultPrevented&&ua$2(pd)&&nd.onItemLeave(pd)}return(pd,fd)=>(openBlock(),createBlock(unref(Jt$5),null,{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(od),role:"menuitem",tabindex:"-1"},pd.$attrs,{as:pd.as,"as-child":pd.asChild,"data-radix-vue-collection-item":"","aria-disabled":pd.disabled||void 0,"data-disabled":pd.disabled?"":void 0,"data-highlighted":ld.value?"":void 0,onPointermove:ud,onPointerleave:dd,onFocus:fd[0]||(fd[0]=async md=>{await nextTick$1(),!(md.defaultPrevented||pd.disabled)&&(ld.value=!0)}),onBlur:fd[1]||(fd[1]=async md=>{await nextTick$1(),!md.defaultPrevented&&(ld.value=!1)})}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3}))}}),_a$3=defineComponent({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{forwardRef:ld,currentElement:ud}=R$7(),dd=wa$1(),pd=lo$3(),fd=ref$1(!1);async function md(){const vd=ud.value;if(!nd.disabled&&vd){const Ad=new CustomEvent(iu$2,{bubbles:!0,cancelable:!0});od("select",Ad),await nextTick$1(),Ad.defaultPrevented?fd.value=!1:dd.onClose()}}return(vd,Ad)=>(openBlock(),createBlock(as$2,mergeProps(nd,{ref:unref(ld),onClick:md,onPointerdown:Ad[0]||(Ad[0]=()=>{fd.value=!0}),onPointerup:Ad[1]||(Ad[1]=async Nd=>{var Od;await nextTick$1(),!Nd.defaultPrevented&&(fd.value||(Od=Nd.currentTarget)==null||Od.click())}),onKeydown:Ad[2]||(Ad[2]=async Nd=>{const Od=unref(pd).searchRef.value!=="";vd.disabled||Od&&Nd.key===" "||unref(Dn$3).includes(Nd.key)&&(Nd.currentTarget.click(),Nd.preventDefault())})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16))}}),[Pd,ns$2]=Q$7(["MenuCheckboxItem","MenuRadioItem"],"MenuItemIndicatorContext"),ro$2=defineComponent({__name:"MenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Pd({checked:ref$1(!1)});return(nd,od)=>(openBlock(),createBlock(unref(Pe$7),{present:nd.forceMount||unref(Fa$1)(unref(qa).checked.value)||unref(qa).checked.value===!0},{default:withCtx(()=>[createVNode(unref(O$4),{as:nd.as,"as-child":nd.asChild,"data-state":unref(eo$2)(unref(qa).checked.value)},{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},8,["as","as-child","data-state"])]),_:3},8,["present"]))}}),io$3=defineComponent({__name:"MenuCheckboxItem",props:{checked:{type:[Boolean,String],default:!1},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=ne$6(nd,"checked",od);return ns$2({checked:ld}),(ud,dd)=>(openBlock(),createBlock(_a$3,mergeProps({role:"menuitemcheckbox"},nd,{"aria-checked":unref(Fa$1)(unref(ld))?"mixed":unref(ld),"data-state":unref(eo$2)(unref(ld)),onSelect:dd[0]||(dd[0]=async pd=>{od("select",pd),unref(Fa$1)(unref(ld))?ld.value=!0:ld.value=!unref(ld)})}),{default:withCtx(()=>[renderSlot(ud.$slots,"default",{checked:unref(ld)})]),_:3},16,["aria-checked","data-state"]))}}),Dd=defineComponent({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=xe$5(nd,od),ud=At$5(),{forwardRef:dd,currentElement:pd}=R$7();return ya$1(pd),(fd,md)=>(openBlock(),createBlock(so$2,mergeProps(unref(ld),{ref:unref(dd),"trap-focus":unref(ud).open.value,"disable-outside-pointer-events":unref(ud).open.value,"disable-outside-scroll":!0,onDismiss:md[0]||(md[0]=vd=>unref(ud).onOpenChange(!1)),onFocusOutside:md[1]||(md[1]=withModifiers(vd=>od("focusOutside",vd),["prevent"]))}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),$d$1=defineComponent({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa),od=At$5();return(ld,ud)=>(openBlock(),createBlock(so$2,mergeProps(unref(nd),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:ud[0]||(ud[0]=dd=>unref(od).onOpenChange(!1))}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),uo$3=defineComponent({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa),od=At$5(),ld=wa$1();return(ud,dd)=>(openBlock(),createBlock(unref(Pe$7),{present:ud.forceMount||unref(od).open.value},{default:withCtx(()=>[unref(ld).modal.value?(openBlock(),createBlock(Dd,normalizeProps(mergeProps({key:0},{...ud.$attrs,...unref(nd)})),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16)):(openBlock(),createBlock($d$1,normalizeProps(mergeProps({key:1},{...ud.$attrs,...unref(nd)})),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Qa$1=defineComponent({__name:"MenuGroup",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(O$4),mergeProps({role:"group"},qa),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),po$2=defineComponent({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[Bd,Id]=Q$7("MenuRadioGroup"),fo$2=defineComponent({__name:"MenuRadioGroup",props:{modelValue:{default:""},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=ne$6(nd,"modelValue",qa);return Id({modelValue:od,onValueChange:ld=>{od.value=ld}}),(ld,ud)=>(openBlock(),createBlock(Qa$1,normalizeProps(guardReactiveProps(nd)),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{modelValue:unref(od)})]),_:3},16))}}),vo$1=defineComponent({__name:"MenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{value:ld}=toRefs(nd),ud=Bd(),dd=computed(()=>ud.modelValue.value===(ld==null?void 0:ld.value));return ns$2({checked:dd}),(pd,fd)=>(openBlock(),createBlock(_a$3,mergeProps({role:"menuitemradio"},nd,{"aria-checked":dd.value,"data-state":unref(eo$2)(dd.value),onSelect:fd[0]||(fd[0]=async md=>{od("select",md),unref(ud).onValueChange(unref(ld))})}),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16,["aria-checked","data-state"]))}}),mo$3=defineComponent({__name:"MenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{role:"separator","aria-orientation":"horizontal"}),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[os$2,Td]=Q$7("MenuSub"),ho$2=defineComponent({__name:"MenuSub",props:{open:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=ne$6(nd,"open",qa,{defaultValue:!1,passive:nd.open===void 0}),ld=At$5(),ud=ref$1(),dd=ref$1();return watchEffect(pd=>{(ld==null?void 0:ld.open.value)===!1&&(od.value=!1),pd(()=>od.value=!1)}),Ql$3({open:od,onOpenChange:pd=>{od.value=pd},content:dd,onContentChange:pd=>{dd.value=pd}}),Td({triggerId:"",contentId:"",trigger:ud,onTriggerChange:pd=>{ud.value=pd}}),(pd,fd)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3}))}}),yo$3=defineComponent({__name:"MenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa),od=At$5(),ld=wa$1(),ud=os$2(),{forwardRef:dd,currentElement:pd}=R$7();return ud.contentId||(ud.contentId=he$4(void 0,"radix-vue-menu-sub-content")),(fd,md)=>(openBlock(),createBlock(unref(Pe$7),{present:fd.forceMount||unref(od).open.value},{default:withCtx(()=>[createVNode(so$2,mergeProps(unref(nd),{id:unref(ud).contentId,ref:unref(dd),"aria-labelledby":unref(ud).triggerId,align:"start",side:unref(ld).dir.value==="rtl"?"left":"right","disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:md[0]||(md[0]=withModifiers(vd=>{var Ad;unref(ld).isUsingKeyboardRef.value&&((Ad=unref(pd))==null||Ad.focus())},["prevent"])),onCloseAutoFocus:md[1]||(md[1]=withModifiers(()=>{},["prevent"])),onFocusOutside:md[2]||(md[2]=vd=>{vd.defaultPrevented||vd.target!==unref(ud).trigger.value&&unref(od).onOpenChange(!1)}),onEscapeKeyDown:md[3]||(md[3]=vd=>{unref(ld).onClose(),vd.preventDefault()}),onKeydown:md[4]||(md[4]=vd=>{var Ad,Nd;const Od=(Ad=vd.currentTarget)==null?void 0:Ad.contains(vd.target),kd=unref(pu$3)[unref(ld).dir.value].includes(vd.key);Od&&kd&&(unref(od).onOpenChange(!1),(Nd=unref(ud).trigger.value)==null||Nd.focus(),vd.preventDefault())})}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["id","aria-labelledby","side"])]),_:3},8,["present"]))}}),go$3=defineComponent({__name:"MenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,nd=At$5(),od=wa$1(),ld=os$2(),ud=lo$3(),dd=ref$1(null);ld.triggerId||(ld.triggerId=he$4(void 0,"radix-vue-menu-sub-trigger"));function pd(){dd.value&&window.clearTimeout(dd.value),dd.value=null}onUnmounted(()=>{pd()});function fd(Ad){!ua$2(Ad)||ud.onItemEnter(Ad)||!qa.disabled&&!nd.open.value&&!dd.value&&(ud.onPointerGraceIntentChange(null),dd.value=window.setTimeout(()=>{nd.onOpenChange(!0),pd()},100))}async function md(Ad){var Nd,Od;if(!ua$2(Ad))return;pd();const kd=(Nd=nd.content.value)==null?void 0:Nd.getBoundingClientRect();if(kd!=null&&kd.width){const Ld=(Od=nd.content.value)==null?void 0:Od.dataset.side,Gd=Ld==="right",jd=Gd?-5:5,Fd=kd[Gd?"left":"right"],Ud=kd[Gd?"right":"left"];ud.onPointerGraceIntentChange({area:[{x:Ad.clientX+jd,y:Ad.clientY},{x:Fd,y:kd.top},{x:Ud,y:kd.top},{x:Ud,y:kd.bottom},{x:Fd,y:kd.bottom}],side:Ld}),window.clearTimeout(ud.pointerGraceTimerRef.value),ud.pointerGraceTimerRef.value=window.setTimeout(()=>ud.onPointerGraceIntentChange(null),300)}else{if(ud.onTriggerLeave(Ad))return;ud.onPointerGraceIntentChange(null)}}async function vd(Ad){var Nd;const Od=ud.searchRef.value!=="";qa.disabled||Od&&Ad.key===" "||cu$4[od.dir.value].includes(Ad.key)&&(nd.onOpenChange(!0),await nextTick$1(),(Nd=nd.content.value)==null||Nd.focus(),Ad.preventDefault())}return(Ad,Nd)=>(openBlock(),createBlock(Za$1,{"as-child":""},{default:withCtx(()=>[createVNode(as$2,mergeProps(qa,{id:unref(ld).triggerId,ref:Od=>{var kd;(kd=unref(ld))==null||kd.onTriggerChange(Od==null?void 0:Od.$el)},"aria-haspopup":"menu","aria-expanded":unref(nd).open.value,"aria-controls":unref(ld).contentId,"data-state":unref(Qn$4)(unref(nd).open.value),onClick:Nd[0]||(Nd[0]=async Od=>{qa.disabled||Od.defaultPrevented||(Od.currentTarget.focus(),unref(nd).open.value||unref(nd).onOpenChange(!0))}),onPointermove:fd,onPointerleave:md,onKeydown:vd}),{default:withCtx(()=>[renderSlot(Ad.$slots,"default")]),_:3},16,["id","aria-expanded","aria-controls","data-state"])]),_:3}))}}),[ls$2,Rd]=Q$7("ContextMenuRoot"),em$1=defineComponent({inheritAttrs:!1,__name:"ContextMenuRoot",props:{dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{dir:ld,modal:ud}=toRefs(nd);R$7();const dd=be$9(ld),pd=ref$1(!1);return Rd({open:pd,onOpenChange:fd=>{pd.value=fd},dir:dd,modal:ud}),watch(pd,fd=>{od("update:open",fd)}),(fd,md)=>(openBlock(),createBlock(unref(oo$4),{open:pd.value,"onUpdate:open":md[0]||(md[0]=vd=>pd.value=vd),dir:unref(dd),modal:unref(ud)},{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},8,["open","dir","modal"]))}});function Go$2(Ra){return Ra.pointerType!=="mouse"}const tm$1=defineComponent({inheritAttrs:!1,__name:"ContextMenuTrigger",props:{disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Ra,{disabled:nd}=toRefs(qa),{forwardRef:od}=R$7(),ld=ls$2(),ud=ref$1({x:0,y:0}),dd=computed(()=>({getBoundingClientRect:()=>({width:0,height:0,left:ud.value.x,right:ud.value.x,top:ud.value.y,bottom:ud.value.y,...ud.value})})),pd=ref$1(0);function fd(){window.clearTimeout(pd.value)}function md(Od){ud.value={x:Od.clientX,y:Od.clientY},ld.onOpenChange(!0)}async function vd(Od){nd.value||(await nextTick$1(),Od.defaultPrevented||(fd(),md(Od),Od.preventDefault()))}async function Ad(Od){nd.value||(await nextTick$1(),Go$2(Od)&&!Od.defaultPrevented&&(fd(),pd.value=window.setTimeout(()=>md(Od),700)))}async function Nd(Od){nd.value||(await nextTick$1(),Go$2(Od)&&!Od.defaultPrevented&&fd())}return(Od,kd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(Za$1),{as:"template",element:dd.value},null,8,["element"]),createVNode(unref(O$4),mergeProps({ref:unref(od),as:Od.as,"as-child":Od.asChild,"data-state":unref(ld).open.value?"open":"closed","data-disabled":unref(nd)?"":void 0,style:{WebkitTouchCallout:"none"}},Od.$attrs,{onContextmenu:vd,onPointerdown:Ad,onPointermove:Nd,onPointercancel:Nd,onPointerup:Nd}),{default:withCtx(()=>[renderSlot(Od.$slots,"default")]),_:3},16,["as","as-child","data-state","data-disabled"])],64))}}),am$1=defineComponent({__name:"ContextMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(po$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),nm$1=defineComponent({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},alignOffset:{default:0},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);R$7();const od=ls$2(),ld=ref$1(!1);return(ud,dd)=>(openBlock(),createBlock(unref(uo$3),mergeProps(unref(nd),{side:"right","side-offset":2,align:"start",style:{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:dd[0]||(dd[0]=pd=>{!pd.defaultPrevented&&ld.value&&pd.preventDefault(),ld.value=!1}),onInteractOutside:dd[1]||(dd[1]=pd=>{!pd.defaultPrevented&&!unref(od).modal.value&&(ld.value=!0)})}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),lm=defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(_a$3),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),rm$1=defineComponent({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(mo$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[is$4,oc$2]=Q$7("DropdownMenuRoot"),ah$1=defineComponent({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa;R$7();const ld=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),ud=ref$1(),{modal:dd,dir:pd}=toRefs(nd),fd=be$9(pd);return oc$2({open:ld,onOpenChange:md=>{ld.value=md},onOpenToggle:()=>{ld.value=!ld.value},triggerId:"",triggerElement:ud,contentId:"",modal:dd,dir:fd}),(md,vd)=>(openBlock(),createBlock(unref(oo$4),{open:unref(ld),"onUpdate:open":vd[0]||(vd[0]=Ad=>isRef(ld)?ld.value=Ad:null),dir:unref(fd),modal:unref(dd)},{default:withCtx(()=>[renderSlot(md.$slots,"default",{open:unref(ld)})]),_:3},8,["open","dir","modal"]))}}),nh=defineComponent({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=is$4(),{forwardRef:od,currentElement:ld}=R$7();return onMounted(()=>{nd.triggerElement=ld}),nd.triggerId||(nd.triggerId=he$4(void 0,"radix-vue-dropdown-menu-trigger")),(ud,dd)=>(openBlock(),createBlock(unref(Za$1),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{id:unref(nd).triggerId,ref:unref(od),type:ud.as==="button"?"button":void 0,"as-child":qa.asChild,as:ud.as,"aria-haspopup":"menu","aria-expanded":unref(nd).open.value,"aria-controls":unref(nd).open.value?unref(nd).contentId:void 0,"data-disabled":ud.disabled?"":void 0,disabled:ud.disabled,"data-state":unref(nd).open.value?"open":"closed",onClick:dd[0]||(dd[0]=async pd=>{var fd;!ud.disabled&&pd.button===0&&pd.ctrlKey===!1&&((fd=unref(nd))==null||fd.onOpenToggle(),await nextTick$1(),unref(nd).open.value&&pd.preventDefault())}),onKeydown:dd[1]||(dd[1]=withKeys(pd=>{ud.disabled||(["Enter"," "].includes(pd.key)&&unref(nd).onOpenToggle(),pd.key==="ArrowDown"&&unref(nd).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(pd.key)&&pd.preventDefault())},["enter","space","arrow-down"]))},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),oh=defineComponent({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(po$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),lh=defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);R$7();const od=is$4(),ld=ref$1(!1);function ud(dd){dd.defaultPrevented||(ld.value||setTimeout(()=>{var pd;(pd=od.triggerElement.value)==null||pd.focus()},0),ld.value=!1,dd.preventDefault())}return od.contentId||(od.contentId=he$4(void 0,"radix-vue-dropdown-menu-content")),(dd,pd)=>{var fd;return openBlock(),createBlock(unref(uo$3),mergeProps(unref(nd),{id:unref(od).contentId,"aria-labelledby":(fd=unref(od))==null?void 0:fd.triggerId,style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:ud,onInteractOutside:pd[0]||(pd[0]=md=>{var vd;if(md.defaultPrevented)return;const Ad=md.detail.originalEvent,Nd=Ad.button===0&&Ad.ctrlKey===!0,Od=Ad.button===2||Nd;(!unref(od).modal.value||Od)&&(ld.value=!0),(vd=unref(od).triggerElement.value)!=null&&vd.contains(md.target)&&md.preventDefault()})}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),rh=defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(_a$3),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),ch$1=defineComponent({__name:"DropdownMenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(ro$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),fh=defineComponent({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(fo$2),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),vh=defineComponent({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);return R$7(),(od,ld)=>(openBlock(),createBlock(unref(vo$1),normalizeProps(guardReactiveProps(unref(nd))),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16))}}),[wo$2,rc$3]=Q$7("HoverCardRoot"),Eh=defineComponent({__name:"HoverCardRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},openDelay:{default:700},closeDelay:{default:300}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{openDelay:ld,closeDelay:ud}=toRefs(nd);R$7();const dd=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),pd=ref$1(0),fd=ref$1(0),md=ref$1(!1),vd=ref$1(!1),Ad=ref$1(!1),Nd=ref$1();function Od(){clearTimeout(fd.value),pd.value=window.setTimeout(()=>dd.value=!0,ld.value)}function kd(){clearTimeout(pd.value),!md.value&&!vd.value&&(fd.value=window.setTimeout(()=>dd.value=!1,ud.value))}function Ld(){dd.value=!1}return rc$3({open:dd,onOpenChange(Gd){dd.value=Gd},onOpen:Od,onClose:kd,onDismiss:Ld,hasSelectionRef:md,isPointerDownOnContentRef:vd,isPointerInTransitRef:Ad,triggerElement:Nd}),(Gd,jd)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(Gd.$slots,"default",{open:unref(dd)})]),_:3}))}});function Tn$3(Ra){return qa=>qa.pointerType==="touch"?void 0:Ra()}function ic$2(Ra){const qa=[],nd=document.createTreeWalker(Ra,NodeFilter.SHOW_ELEMENT,{acceptNode:od=>od.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;nd.nextNode();)qa.push(nd.currentNode);return qa}const Ph=defineComponent({__name:"HoverCardTrigger",props:{asChild:{type:Boolean},as:{default:"a"}},setup(Ra){const{forwardRef:qa,currentElement:nd}=R$7(),od=wo$2();od.triggerElement=nd;function ld(){setTimeout(()=>{!od.isPointerInTransitRef.value&&!od.open.value&&od.onClose()},0)}return(ud,dd)=>(openBlock(),createBlock(unref(Rt$5),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(qa),"as-child":ud.asChild,as:ud.as,"data-state":unref(od).open.value?"open":"closed","data-grace-area-trigger":"",onPointerenter:dd[0]||(dd[0]=pd=>unref(Tn$3)(unref(od).onOpen)(pd)),onPointerleave:dd[1]||(dd[1]=pd=>unref(Tn$3)(ld)(pd)),onFocus:dd[2]||(dd[2]=pd=>unref(od).onOpen()),onBlur:dd[3]||(dd[3]=pd=>unref(od).onClose())},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as-child","as","data-state"])]),_:3}))}}),Dh=defineComponent({__name:"HoverCardPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),uc$3=defineComponent({__name:"HoverCardContentImpl",props:{side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=It$4(nd),{forwardRef:ud,currentElement:dd}=R$7(),pd=wo$2(),{isPointerInTransit:fd,onPointerExit:md}=Ol$3(pd.triggerElement,dd);di$4(pd.isPointerInTransitRef,fd,{direction:"rtl"}),md(()=>{pd.onClose()});const vd=ref$1(!1);let Ad;watchEffect(Od=>{if(vd.value){const kd=document.body;Ad=kd.style.userSelect||kd.style.webkitUserSelect,kd.style.userSelect="none",kd.style.webkitUserSelect="none",Od(()=>{kd.style.userSelect=Ad,kd.style.webkitUserSelect=Ad})}});function Nd(){vd.value=!1,pd.isPointerDownOnContentRef.value=!1,nextTick$1(()=>{var Od;((Od=document.getSelection())==null?void 0:Od.toString())!==""&&(pd.hasSelectionRef.value=!0)})}return onMounted(()=>{dd.value&&(document.addEventListener("pointerup",Nd),ic$2(dd.value).forEach(Od=>Od.setAttribute("tabindex","-1")))}),onUnmounted(()=>{document.removeEventListener("pointerup",Nd),pd.hasSelectionRef.value=!1,pd.isPointerDownOnContentRef.value=!1}),(Od,kd)=>(openBlock(),createBlock(unref(yt$3),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:kd[1]||(kd[1]=Ld=>od("escapeKeyDown",Ld)),onPointerDownOutside:kd[2]||(kd[2]=Ld=>od("pointerDownOutside",Ld)),onFocusOutside:kd[3]||(kd[3]=withModifiers(Ld=>od("focusOutside",Ld),["prevent"])),onDismiss:unref(pd).onDismiss},{default:withCtx(()=>[createVNode(unref(Dt$4),mergeProps({...unref(ld),...Od.$attrs},{ref:unref(ud),"data-state":unref(pd).open.value?"open":"closed",style:{userSelect:vd.value?"text":void 0,WebkitUserSelect:vd.value?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"},onPointerdown:kd[0]||(kd[0]=Ld=>{Ld.currentTarget.contains(Ld.target)&&(vd.value=!0),unref(pd).hasSelectionRef.value=!1,unref(pd).isPointerDownOnContentRef.value=!0})}),{default:withCtx(()=>[renderSlot(Od.$slots,"default")]),_:3},16,["data-state","style"])]),_:3},8,["onDismiss"]))}}),$h=defineComponent({__name:"HoverCardContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa),{forwardRef:od}=R$7(),ld=wo$2();return(ud,dd)=>(openBlock(),createBlock(unref(Pe$7),{present:ud.forceMount||unref(ld).open.value},{default:withCtx(()=>[createVNode(uc$3,mergeProps(unref(nd),{ref:unref(od),onPointerenter:dd[0]||(dd[0]=pd=>unref(Tn$3)(unref(ld).onOpen)(pd))}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),Ih=defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{default:"label"}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{onMousedown:od[0]||(od[0]=ld=>{!ld.defaultPrevented&&ld.detail>1&&ld.preventDefault()})}),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[tn$4,Ic$2]=Q$7("MenubarRoot"),Nh=defineComponent({__name:"MenubarRoot",props:{modelValue:{},defaultValue:{},dir:{},loop:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{forwardRef:ld,currentElement:ud}=R$7(),{createCollection:dd}=Me$7("menubar");dd(ud);const pd=ne$6(nd,"modelValue",od,{defaultValue:nd.defaultValue??"",passive:nd.modelValue===void 0}),fd=ref$1(null),{dir:md,loop:vd}=toRefs(nd),Ad=be$9(md);return Ic$2({modelValue:pd,dir:Ad,loop:vd,onMenuOpen:Nd=>{pd.value=Nd,fd.value=Nd},onMenuClose:()=>{pd.value=""},onMenuToggle:Nd=>{pd.value=pd.value?"":Nd,fd.value=Nd}}),(Nd,Od)=>(openBlock(),createBlock(unref(Ot$4),{"current-tab-stop-id":fd.value,"onUpdate:currentTabStopId":Od[0]||(Od[0]=kd=>fd.value=kd),orientation:"horizontal",loop:unref(vd),dir:unref(Ad),"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(ld),role:"menubar"},{default:withCtx(()=>[renderSlot(Nd.$slots,"default",{modelValue:unref(pd)})]),_:3},512)]),_:3},8,["current-tab-stop-id","loop","dir"]))}}),[_o$2,Tc$1]=Q$7("MenubarMenu"),Lh=defineComponent({__name:"MenubarMenu",props:{value:{}},setup(Ra){const qa=he$4(Ra.value),nd=tn$4();R$7();const od=ref$1(),ld=ref$1(!1),ud=computed(()=>nd.modelValue.value===qa);return watch(ud,()=>{ud.value||(ld.value=!1)}),Tc$1({value:qa,triggerElement:od,triggerId:qa,contentId:"",wasKeyboardTriggerOpenRef:ld}),(dd,pd)=>(openBlock(),createBlock(unref(oo$4),{open:ud.value,modal:!1,dir:unref(nd).dir.value,"onUpdate:open":pd[0]||(pd[0]=fd=>{fd||unref(nd).onMenuClose()})},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},8,["open","dir"]))}}),zh=defineComponent({__name:"MenubarTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=tn$4(),nd=_o$2(),{forwardRef:od,currentElement:ld}=R$7(),ud=ref$1(!1),dd=computed(()=>qa.modelValue.value===nd.value);return onMounted(()=>{nd.triggerElement=ld}),(pd,fd)=>(openBlock(),createBlock(unref(kt$4),{"as-child":"",focusable:!pd.disabled,"tab-stop-id":unref(nd).value},{default:withCtx(()=>[createVNode(unref(Za$1),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{id:unref(nd).triggerId,ref:unref(od),as:pd.as,type:pd.as==="button"?"button":void 0,role:"menuitem","aria-haspopup":"menu","aria-expanded":dd.value,"aria-controls":dd.value?unref(nd).contentId:void 0,"data-highlighted":ud.value?"":void 0,"data-state":dd.value?"open":"closed","data-disabled":pd.disabled?"":void 0,disabled:pd.disabled,"data-value":unref(nd).value,"data-radix-vue-collection-item":"",onPointerdown:fd[0]||(fd[0]=md=>{!pd.disabled&&md.button===0&&md.ctrlKey===!1&&(unref(qa).onMenuOpen(unref(nd).value),dd.value||md.preventDefault())}),onPointerenter:fd[1]||(fd[1]=()=>{var md;unref(qa).modelValue.value&&!dd.value&&(unref(qa).onMenuOpen(unref(nd).value),(md=unref(ld))==null||md.focus())}),onKeydown:fd[2]||(fd[2]=withKeys(md=>{pd.disabled||(["Enter"," "].includes(md.key)&&unref(qa).onMenuToggle(unref(nd).value),md.key==="ArrowDown"&&unref(qa).onMenuOpen(unref(nd).value),["Enter"," ","ArrowDown"].includes(md.key)&&(unref(nd).wasKeyboardTriggerOpenRef.value=!0,md.preventDefault()))},["enter","space","arrow-down"])),onFocus:fd[3]||(fd[3]=md=>ud.value=!0),onBlur:fd[4]||(fd[4]=md=>ud.value=!1)},{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},8,["id","as","type","aria-expanded","aria-controls","data-highlighted","data-state","data-disabled","disabled","data-value"])]),_:3})]),_:3},8,["focusable","tab-stop-id"]))}}),Kh=defineComponent({__name:"MenubarPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(po$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Hh=defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);R$7();const od=tn$4(),ld=_o$2();ld.contentId||(ld.contentId=he$4(void 0,"radix-vue-menubar-content"));const{injectCollection:ud}=Me$7("menubar"),dd=ud(),pd=ref$1(!1);function fd(md){const vd=md.target.hasAttribute("data-radix-menubar-subtrigger"),Ad=(od.dir.value==="rtl"?"ArrowRight":"ArrowLeft")===md.key;if(!Ad&&vd)return;let Nd=dd.value.map(Ld=>Ld.dataset.value);Ad&&Nd.reverse();const Od=Nd.indexOf(ld.value);Nd=od.loop.value?qn$3(Nd,Od+1):Nd.slice(Od+1);const[kd]=Nd;kd&&od.onMenuOpen(kd)}return(md,vd)=>(openBlock(),createBlock(unref(uo$3),mergeProps(unref(nd),{id:unref(ld).contentId,"data-radix-menubar-content":"","aria-labelledby":unref(ld).triggerId,style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:vd[0]||(vd[0]=Ad=>{var Nd;!unref(od).modelValue.value&&!pd.value&&((Nd=unref(ld).triggerElement.value)==null||Nd.focus()),pd.value=!1,Ad.preventDefault()}),onFocusOutside:vd[1]||(vd[1]=Ad=>{const Nd=Ad.target;unref(dd).some(Od=>Od.contains(Nd))&&Ad.preventDefault()}),onInteractOutside:vd[2]||(vd[2]=Ad=>{pd.value=!0}),onEntryFocus:vd[3]||(vd[3]=Ad=>{unref(ld).wasKeyboardTriggerOpenRef.value||Ad.preventDefault()}),onKeydown:withKeys(fd,["arrow-right","arrow-left"])}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),jh=defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(_a$3),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),Gh=defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(mo$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),qh=defineComponent({__name:"MenubarCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=Ae$6(qa);return R$7(),(ld,ud)=>(openBlock(),createBlock(unref(io$3),normalizeProps(guardReactiveProps({...nd,...unref(od)})),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16))}}),Yh=defineComponent({__name:"MenubarItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(ro$2),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Qh=defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa;R$7();const ld=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen??!1,passive:nd.open===void 0});return(ud,dd)=>(openBlock(),createBlock(unref(ho$2),{open:unref(ld),"onUpdate:open":dd[0]||(dd[0]=pd=>isRef(ld)?ld.value=pd:null)},{default:withCtx(()=>[renderSlot(ud.$slots,"default",{open:unref(ld)})]),_:3},8,["open"]))}}),ey=defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=xe$5(Ra,qa);R$7();const{injectCollection:od}=Me$7("menubar"),ld=tn$4(),ud=_o$2(),dd=od();function pd(fd){if(fd.target.hasAttribute("data-radix-menubar-subtrigger"))return;let md=dd.value.map(Nd=>Nd.dataset.value);const vd=md.indexOf(ud.value);md=ld.loop.value?qn$3(md,vd+1):md.slice(vd+1);const[Ad]=md;Ad&&ld.onMenuOpen(Ad)}return(fd,md)=>(openBlock(),createBlock(unref(yo$3),mergeProps(unref(nd),{"data-radix-menubar-content":"",style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onKeydown:withKeys(pd,["arrow-right"])}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16))}}),ty=defineComponent({__name:"MenubarSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return R$7(),(nd,od)=>(openBlock(),createBlock(unref(go$3),mergeProps(qa,{"data-radix-menubar-subtrigger":""}),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}});function ms$3(Ra){const{disabled:qa}=Ra,nd=ref$1(),od=ia$1(),ld=()=>window.clearTimeout(nd.value),ud=Nd=>{ld(),!qa.value&&(od.trigger(),nd.value=window.setTimeout(()=>{ud(60)},Nd))},dd=()=>{ud(400)},pd=()=>{ld()},fd=ref$1(!1),md=computed(()=>$e$4(Ra.target)),vd=Nd=>{Nd.button!==0||fd.value||(Nd.preventDefault(),fd.value=!0,dd())},Ad=()=>{fd.value=!1,pd()};return qe$3&&(Le$6(md||window,"pointerdown",vd),Le$6(window,"pointerup",Ad),Le$6(window,"pointercancel",Ad)),{isPressed:fd,onTrigger:od.on}}function Yo$2(Ra,qa=ref$1({})){return Sl$3(()=>new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(Ra.value,qa.value))}function Vc$2(Ra,qa=ref$1({})){return Sl$3(()=>new $6c7bd7858deea686$export$cd11ab140839f11d(Ra.value,qa.value))}function Xo$2(Ra,qa,nd){let od=Ra==="+"?qa+nd:qa-nd;if(qa%1!==0||nd%1!==0){const ld=qa.toString().split("."),ud=nd.toString().split("."),dd=ld[1]&&ld[1].length||0,pd=ud[1]&&ud[1].length||0,fd=10**Math.max(dd,pd);qa=Math.round(qa*fd),nd=Math.round(nd*fd),od=Ra==="+"?qa+nd:qa-nd,od/=fd}return od}const Fc$2=["value","name","disabled","required"],[Eo$2,Nc$2]=Q$7("NumberFieldRoot"),cy$1=defineComponent({inheritAttrs:!1,__name:"NumberFieldRoot",props:{defaultValue:{default:void 0},modelValue:{},min:{},max:{},step:{default:1},formatOptions:{},locale:{default:"en-US"},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{disabled:ld,min:ud,max:dd,step:pd,locale:fd,formatOptions:md,id:vd}=toRefs(nd),Ad=ne$6(nd,"modelValue",od,{defaultValue:nd.defaultValue,passive:nd.modelValue===void 0}),{primitiveElement:Nd,currentElement:Od}=Ie$5(),kd=Je$4(Od),Ld=ref$1(),Gd=computed(()=>Tf(Ad.value)===ud.value||(ud.value&&!isNaN(Ad.value)?Xo$2("-",Ad.value,pd.value)Tf(Ad.value)===dd.value||(dd.value&&!isNaN(Ad.value)?Xo$2("+",Ad.value,pd.value)>dd.value:!1));function Fd(Ef,Nf=1){var If;const Gf=Jd.parse(((If=Ld.value)==null?void 0:If.value)??"");nd.disabled||(isNaN(Gf)?Ad.value=ud.value??0:Ef==="increase"?Ad.value=Tf(Gf+(pd.value??1)*Nf):Ad.value=Tf(Gf-(pd.value??1)*Nf))}function Ud(Ef=1){Fd("increase",Ef)}function qd(Ef=1){Fd("decrease",Ef)}function zd(Ef){Ef==="min"&&ud.value!==void 0?Ad.value=Tf(ud.value):Ef==="max"&&dd.value!==void 0&&(Ad.value=Tf(dd.value))}const Wd=Yo$2(fd,md),Jd=Vc$2(fd,md),_f=computed(()=>Wd.resolvedOptions().maximumFractionDigits>0?"decimal":"numeric"),Xd=Yo$2(fd,md),pf=computed(()=>isNaN(Ad.value)?"":Xd.format(Ad.value));function mf(Ef){return Jd.isValidPartialNumber(Ef,ud.value,dd.value)}function Sf(Ef){Ld.value&&(Ld.value.value=Ef)}function Tf(Ef){let Nf;return pd.value===void 0||isNaN(pd.value)?Nf=Wt$4(Ef,ud.value,dd.value):Nf=Nr$4(Ef,ud.value,dd.value,pd.value),Nf=Jd.parse(Wd.format(Nf)),Nf}function Af(Ef){const Nf=Jd.parse(Ef);return Ad.value=Tf(Nf),Ef.length?Sf(pf.value):Sf(Ef)}return Nc$2({modelValue:Ad,handleDecrease:qd,handleIncrease:Ud,handleMinMaxValue:zd,inputMode:_f,inputEl:Ld,onInputElement:Ef=>Ld.value=Ef,textValue:pf,validate:mf,applyInputValue:Af,disabled:ld,max:dd,min:ud,isDecreaseDisabled:Gd,isIncreaseDisabled:jd,id:vd}),(Ef,Nf)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(Ef.$attrs,{ref_key:"primitiveElement",ref:Nd,role:"group",as:Ef.as,"as-child":Ef.asChild,"data-disabled":unref(ld)?"":void 0}),{default:withCtx(()=>[renderSlot(Ef.$slots,"default",{modelValue:unref(Ad),textValue:pf.value})]),_:3},16,["as","as-child","data-disabled"]),unref(kd)?(openBlock(),createElementBlock("input",{key:0,type:"text",tabindex:"-1","aria-hidden":"true",value:unref(Ad),name:nd.name,disabled:nd.disabled,required:nd.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,Fc$2)):createCommentVNode("",!0)],64))}}),py$1=defineComponent({__name:"NumberFieldInput",props:{asChild:{type:Boolean},as:{default:"input"}},setup(Ra){const qa=Ra,{primitiveElement:nd,currentElement:od}=Ie$5(),ld=Eo$2();function ud(dd){dd.target===document.activeElement&&(Math.abs(dd.deltaY)<=Math.abs(dd.deltaX)||(dd.preventDefault(),dd.deltaY>0?ld.handleIncrease():dd.deltaY<0&&ld.handleDecrease()))}return onMounted(()=>{ld.onInputElement(od.value)}),(dd,pd)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{id:unref(ld).id.value,ref_key:"primitiveElement",ref:nd,role:"spinbutton",type:"text",tabindex:"0",value:unref(ld).textValue.value,inputmode:unref(ld).inputMode.value,disabled:unref(ld).disabled.value?"":void 0,"data-disabled":unref(ld).disabled.value?"":void 0,autocomplete:"off",autocorrect:"off",spellcheck:"false","aria-roledescription":"Number field","aria-valuenow":unref(ld).modelValue.value,"aria-valuemin":unref(ld).min.value,"aria-valuemax":unref(ld).max.value,onKeydown:[pd[0]||(pd[0]=withKeys(withModifiers(fd=>unref(ld).handleIncrease(),["prevent"]),["up"])),pd[1]||(pd[1]=withKeys(withModifiers(fd=>unref(ld).handleDecrease(),["prevent"]),["down"])),pd[2]||(pd[2]=withKeys(withModifiers(fd=>unref(ld).handleIncrease(10),["prevent"]),["page-up"])),pd[3]||(pd[3]=withKeys(withModifiers(fd=>unref(ld).handleDecrease(10),["prevent"]),["page-down"])),pd[4]||(pd[4]=withKeys(withModifiers(fd=>unref(ld).handleMinMaxValue("min"),["prevent"]),["home"])),pd[5]||(pd[5]=withKeys(withModifiers(fd=>unref(ld).handleMinMaxValue("max"),["prevent"]),["end"])),pd[7]||(pd[7]=withKeys(fd=>{var md;return unref(ld).applyInputValue((md=fd.target)==null?void 0:md.value)},["enter"]))],onWheel:ud,onBeforeinput:pd[6]||(pd[6]=fd=>{const md=fd.target;let vd=md.value.slice(0,md.selectionStart??void 0)+(fd.data??"")+md.value.slice(md.selectionEnd??void 0);unref(ld).validate(vd)||fd.preventDefault()}),onBlur:pd[8]||(pd[8]=fd=>{var md;return unref(ld).applyInputValue((md=fd.target)==null?void 0:md.value)})}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["id","value","inputmode","disabled","data-disabled","aria-valuenow","aria-valuemin","aria-valuemax"]))}}),fy$1=defineComponent({__name:"NumberFieldIncrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=Eo$2(),od=computed(()=>{var fd;return((fd=nd.disabled)==null?void 0:fd.value)||qa.disabled||nd.isIncreaseDisabled.value}),{primitiveElement:ld,currentElement:ud}=Ie$5(),{isPressed:dd,onTrigger:pd}=ms$3({target:ud,disabled:od});return pd(()=>{nd.handleIncrease()}),(fd,md)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{ref_key:"primitiveElement",ref:ld,tabindex:"-1","aria-label":"Increase",type:fd.as==="button"?"button":void 0,style:{userSelect:unref(dd)?"none":void 0},disabled:od.value?"":void 0,"data-disabled":od.value?"":void 0,"data-pressed":unref(dd)?"true":void 0,onContextmenu:md[0]||(md[0]=withModifiers(()=>{},["prevent"]))}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),vy$1=defineComponent({__name:"NumberFieldDecrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=Eo$2(),od=computed(()=>{var fd;return((fd=nd.disabled)==null?void 0:fd.value)||qa.disabled||nd.isDecreaseDisabled.value}),{primitiveElement:ld,currentElement:ud}=Ie$5(),{isPressed:dd,onTrigger:pd}=ms$3({target:ud,disabled:od});return pd(()=>{nd.handleDecrease()}),(fd,md)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{ref_key:"primitiveElement",ref:ld,tabindex:"-1","aria-label":"Decrease",type:fd.as==="button"?"button":void 0,style:{userSelect:unref(dd)?"none":void 0},disabled:od.value?"":void 0,"data-disabled":od.value?"":void 0,"data-pressed":unref(dd)?"true":void 0,onContextmenu:md[0]||(md[0]=withModifiers(()=>{},["prevent"]))}),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),Tp$1=["default-value"],Rp$1=defineComponent({__name:"BubbleSelect",props:{autocomplete:{},autofocus:{type:Boolean},disabled:{type:Boolean},form:{},multiple:{type:Boolean},name:{},required:{type:Boolean},size:{},value:{}},setup(Ra){const qa=Ra,{value:nd}=toRefs(qa),od=ref$1();return(ld,ud)=>(openBlock(),createBlock(unref(Zt$4),{"as-child":""},{default:withCtx(()=>[withDirectives(createBaseVNode("select",mergeProps({ref_key:"selectElement",ref:od},qa,{"onUpdate:modelValue":ud[0]||(ud[0]=dd=>isRef(nd)?nd.value=dd:null),"default-value":unref(nd)}),[renderSlot(ld.$slots,"default")],16,Tp$1),[[vModelSelect,unref(nd)]])]),_:3}))}}),Ap$1={key:0,value:""},[bt$6,$s$2]=Q$7("SelectRoot"),[Op$1,kp$1]=Q$7("SelectRoot"),ky$1=defineComponent({__name:"SelectRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},defaultValue:{default:""},modelValue:{default:void 0},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=ne$6(nd,"modelValue",od,{defaultValue:nd.defaultValue,passive:nd.modelValue===void 0}),ud=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),dd=ref$1(),pd=ref$1(),fd=ref$1({x:0,y:0}),md=ref$1(!1),{required:vd,disabled:Ad,dir:Nd}=toRefs(nd),Od=be$9(Nd);$s$2({triggerElement:dd,onTriggerChange:jd=>{dd.value=jd},valueElement:pd,onValueElementChange:jd=>{pd.value=jd},valueElementHasChildren:md,onValueElementHasChildrenChange:jd=>{md.value=jd},contentId:"",modelValue:ld,onValueChange:jd=>{ld.value=jd},open:ud,required:vd,onOpenChange:jd=>{ud.value=jd},dir:Od,triggerPointerDownPosRef:fd,disabled:Ad});const kd=Je$4(dd),Ld=ref$1(new Set),Gd=computed(()=>Array.from(Ld.value).map(jd=>{var Fd;return(Fd=jd.props)==null?void 0:Fd.value}).join(";"));return kp$1({onNativeOptionAdd:jd=>{Ld.value.add(jd)},onNativeOptionRemove:jd=>{Ld.value.delete(jd)}}),(jd,Fd)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(jd.$slots,"default",{modelValue:unref(ld),open:unref(ud)}),unref(kd)?(openBlock(),createBlock(Rp$1,mergeProps({key:Gd.value},jd.$attrs,{"aria-hidden":"true",tabindex:"-1",required:unref(vd),name:jd.name,autocomplete:jd.autocomplete,disabled:unref(Ad),value:unref(ld),onChange:Fd[0]||(Fd[0]=Ud=>ld.value=Ud.target.value)}),{default:withCtx(()=>[unref(ld)===void 0?(openBlock(),createElementBlock("option",Ap$1)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(Array.from(Ld.value),Ud=>(openBlock(),createBlock(resolveDynamicComponent(Ud),mergeProps({ref_for:!0},Ud.props,{key:Ud.key??""}),null,16))),128))]),_:1},16,["required","name","autocomplete","disabled","value"])):createCommentVNode("",!0)]),_:3}))}}),Mp$1=[" ","Enter","ArrowUp","ArrowDown"],Vp$1=[" ","Enter"],at$7=10;function Bs$3(Ra){return Ra===""||Kt$2(Ra)}const My=defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=bt$6(),od=computed(()=>{var Od;return((Od=nd.disabled)==null?void 0:Od.value)||qa.disabled}),{forwardRef:ld,currentElement:ud}=R$7();nd.contentId||(nd.contentId=he$4(void 0,"radix-vue-select-content")),onMounted(()=>{nd.triggerElement=ud});const{injectCollection:dd}=Me$7(),pd=dd(),{search:fd,handleTypeaheadSearch:md,resetTypeahead:vd}=ga$2(pd);function Ad(){od.value||(nd.onOpenChange(!0),vd())}function Nd(Od){Ad(),nd.triggerPointerDownPosRef.value={x:Math.round(Od.pageX),y:Math.round(Od.pageY)}}return(Od,kd)=>(openBlock(),createBlock(unref(Rt$5),{"as-child":""},{default:withCtx(()=>{var Ld,Gd,jd,Fd;return[createVNode(unref(O$4),{ref:unref(ld),role:"combobox",type:Od.as==="button"?"button":void 0,"aria-controls":unref(nd).contentId,"aria-expanded":unref(nd).open.value||!1,"aria-required":(Ld=unref(nd).required)==null?void 0:Ld.value,"aria-autocomplete":"none",disabled:od.value,dir:(Gd=unref(nd))==null?void 0:Gd.dir.value,"data-state":(jd=unref(nd))!=null&&jd.open.value?"open":"closed","data-disabled":od.value?"":void 0,"data-placeholder":unref(Bs$3)((Fd=unref(nd).modelValue)==null?void 0:Fd.value)?"":void 0,"as-child":Od.asChild,as:Od.as,onClick:kd[0]||(kd[0]=Ud=>{var qd;(qd=Ud==null?void 0:Ud.currentTarget)==null||qd.focus()}),onPointerdown:kd[1]||(kd[1]=Ud=>{if(Ud.pointerType==="touch")return Ud.preventDefault();const qd=Ud.target;qd.hasPointerCapture(Ud.pointerId)&&qd.releasePointerCapture(Ud.pointerId),Ud.button===0&&Ud.ctrlKey===!1&&(Nd(Ud),Ud.preventDefault())}),onPointerup:kd[2]||(kd[2]=withModifiers(Ud=>{Ud.pointerType==="touch"&&Nd(Ud)},["prevent"])),onKeydown:kd[3]||(kd[3]=Ud=>{const qd=unref(fd)!=="";!(Ud.ctrlKey||Ud.altKey||Ud.metaKey)&&Ud.key.length===1&&qd&&Ud.key===" "||(unref(md)(Ud.key),unref(Mp$1).includes(Ud.key)&&(Ad(),Ud.preventDefault()))})},{default:withCtx(()=>[renderSlot(Od.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3}))}}),Vy=defineComponent({__name:"SelectPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),[$o$2,Fp$1]=Q$7("SelectItemAlignedPosition"),Np$1=defineComponent({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean},as:{}},emits:["placed"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{injectCollection:ld}=Me$7(),ud=bt$6(),dd=Ct$5(),pd=ld(),fd=ref$1(!1),md=ref$1(!0),vd=ref$1(),{forwardRef:Ad,currentElement:Nd}=R$7(),{viewport:Od,selectedItem:kd,selectedItemText:Ld,focusSelectedItem:Gd}=dd;function jd(){if(ud.triggerElement.value&&ud.valueElement.value&&vd.value&&Nd.value&&Od!=null&&Od.value&&kd!=null&&kd.value&&Ld!=null&&Ld.value){const qd=ud.triggerElement.value.getBoundingClientRect(),zd=Nd.value.getBoundingClientRect(),Wd=ud.valueElement.value.getBoundingClientRect(),Jd=Ld.value.getBoundingClientRect();if(ud.dir.value!=="rtl"){const Cf=Jd.left-zd.left,xf=Wd.left-Cf,Yf=qd.left-xf,dh=qd.width+Yf,Rh=Math.max(dh,zd.width),th=window.innerWidth-at$7,Bf=Wt$4(xf,at$7,th-Rh);vd.value.style.minWidth=`${dh}px`,vd.value.style.left=`${Bf}px`}else{const Cf=zd.right-Jd.right,xf=window.innerWidth-Wd.right-Cf,Yf=window.innerWidth-qd.right-xf,dh=qd.width+Yf,Rh=Math.max(dh,zd.width),th=window.innerWidth-at$7,Bf=Wt$4(xf,at$7,th-Rh);vd.value.style.minWidth=`${dh}px`,vd.value.style.right=`${Bf}px`}const _f=pd.value,Xd=window.innerHeight-at$7*2,pf=Od.value.scrollHeight,mf=window.getComputedStyle(Nd.value),Sf=Number.parseInt(mf.borderTopWidth,10),Tf=Number.parseInt(mf.paddingTop,10),Af=Number.parseInt(mf.borderBottomWidth,10),Ef=Number.parseInt(mf.paddingBottom,10),Nf=Sf+Tf+pf+Ef+Af,If=Math.min(kd.value.offsetHeight*5,Nf),Gf=window.getComputedStyle(Od.value),Qf=Number.parseInt(Gf.paddingTop,10),Xf=Number.parseInt(Gf.paddingBottom,10),ph=qd.top+qd.height/2-at$7,qf=Xd-ph,Lf=kd.value.offsetHeight/2,Wf=kd.value.offsetTop+Lf,Jf=Sf+Tf+Wf,Kf=Nf-Jf;if(Jf<=ph){const Cf=kd.value===_f[_f.length-1];vd.value.style.bottom="0px";const xf=Nd.value.clientHeight-Od.value.offsetTop-Od.value.offsetHeight,Yf=Math.max(qf,Lf+(Cf?Xf:0)+xf+Af),dh=Jf+Yf;vd.value.style.height=`${dh}px`}else{const Cf=kd.value===_f[0];vd.value.style.top="0px";const xf=Math.max(ph,Sf+Od.value.offsetTop+(Cf?Qf:0)+Lf)+Kf;vd.value.style.height=`${xf}px`,Od.value.scrollTop=Jf-ph+Od.value.offsetTop}vd.value.style.margin=`${at$7}px 0`,vd.value.style.minHeight=`${If}px`,vd.value.style.maxHeight=`${Xd}px`,od("placed"),requestAnimationFrame(()=>fd.value=!0)}}const Fd=ref$1("");onMounted(async()=>{await nextTick$1(),jd(),Nd.value&&(Fd.value=window.getComputedStyle(Nd.value).zIndex)});function Ud(qd){qd&&md.value===!0&&(jd(),Gd==null||Gd(),md.value=!1)}return Fp$1({contentWrapper:vd,shouldExpandOnScrollRef:fd,onScrollButtonChange:Ud}),(qd,zd)=>(openBlock(),createElementBlock("div",{ref_key:"contentWrapperElement",ref:vd,style:normalizeStyle({display:"flex",flexDirection:"column",position:"fixed",zIndex:Fd.value})},[createVNode(unref(O$4),mergeProps({ref:unref(Ad),style:{boxSizing:"border-box",maxHeight:"100%"}},{...qd.$attrs,...nd}),{default:withCtx(()=>[renderSlot(qd.$slots,"default")]),_:3},16)],4))}}),Lp$1=defineComponent({__name:"SelectPopperPosition",props:{side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{default:at$7},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=It$4(Ra);return(nd,od)=>(openBlock(),createBlock(unref(Dt$4),mergeProps(unref(qa),{style:{boxSizing:"border-box","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Ft$5={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Ct$5,zp$1]=Q$7("SelectContent"),Kp$1=defineComponent({__name:"SelectContentImpl",props:{position:{default:"item-aligned"},bodyLock:{type:Boolean,default:!0},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=bt$6();Gn$4(),ha$1(nd.bodyLock);const{createCollection:ud}=Me$7(),dd=ref$1();ya$1(dd);const pd=ud(dd),{search:fd,handleTypeaheadSearch:md}=ga$2(pd),vd=ref$1(),Ad=ref$1(),Nd=ref$1(),Od=ref$1(!1),kd=ref$1(!1);function Ld(){Ad.value&&dd.value&&$n$4([Ad.value,dd.value])}watch(Od,()=>{Ld()});const{onOpenChange:Gd,triggerPointerDownPosRef:jd}=ld;watchEffect(zd=>{if(!dd.value)return;let Wd={x:0,y:0};const Jd=Xd=>{var pf,mf;Wd={x:Math.abs(Math.round(Xd.pageX)-(((pf=jd.value)==null?void 0:pf.x)??0)),y:Math.abs(Math.round(Xd.pageY)-(((mf=jd.value)==null?void 0:mf.y)??0))}},_f=Xd=>{var pf;Xd.pointerType!=="touch"&&(Wd.x<=10&&Wd.y<=10?Xd.preventDefault():(pf=dd.value)!=null&&pf.contains(Xd.target)||Gd(!1),document.removeEventListener("pointermove",Jd),jd.value=null)};jd.value!==null&&(document.addEventListener("pointermove",Jd),document.addEventListener("pointerup",_f,{capture:!0,once:!0})),zd(()=>{document.removeEventListener("pointermove",Jd),document.removeEventListener("pointerup",_f,{capture:!0})})});function Fd(zd){const Wd=zd.ctrlKey||zd.altKey||zd.metaKey;if(zd.key==="Tab"&&zd.preventDefault(),!Wd&&zd.key.length===1&&md(zd.key),["ArrowUp","ArrowDown","Home","End"].includes(zd.key)){let Jd=pd.value;if(["ArrowUp","End"].includes(zd.key)&&(Jd=Jd.slice().reverse()),["ArrowUp","ArrowDown"].includes(zd.key)){const _f=zd.target,Xd=Jd.indexOf(_f);Jd=Jd.slice(Xd+1)}setTimeout(()=>$n$4(Jd)),zd.preventDefault()}}const Ud=computed(()=>nd.position==="popper"?nd:{}),qd=It$4(Ud.value);return zp$1({content:dd,viewport:vd,onViewportChange:zd=>{vd.value=zd},itemRefCallback:(zd,Wd,Jd)=>{var _f,Xd;const pf=!kd.value&&!Jd;(((_f=ld.modelValue)==null?void 0:_f.value)!==void 0&&((Xd=ld.modelValue)==null?void 0:Xd.value)===Wd||pf)&&(Ad.value=zd,pf&&(kd.value=!0))},selectedItem:Ad,selectedItemText:Nd,onItemLeave:()=>{var zd;(zd=dd.value)==null||zd.focus()},itemTextRefCallback:(zd,Wd,Jd)=>{var _f,Xd;const pf=!kd.value&&!Jd;(((_f=ld.modelValue)==null?void 0:_f.value)!==void 0&&((Xd=ld.modelValue)==null?void 0:Xd.value)===Wd||pf)&&(Nd.value=zd)},focusSelectedItem:Ld,position:nd.position,isPositioned:Od,searchRef:fd}),(zd,Wd)=>(openBlock(),createBlock(unref(Ya$2),{"as-child":"",onMountAutoFocus:Wd[6]||(Wd[6]=withModifiers(()=>{},["prevent"])),onUnmountAutoFocus:Wd[7]||(Wd[7]=Jd=>{var _f;od("closeAutoFocus",Jd),!Jd.defaultPrevented&&((_f=unref(ld).triggerElement.value)==null||_f.focus({preventScroll:!0}),Jd.preventDefault())})},{default:withCtx(()=>[createVNode(unref(yt$3),{"as-child":"","disable-outside-pointer-events":"",onFocusOutside:Wd[2]||(Wd[2]=withModifiers(()=>{},["prevent"])),onDismiss:Wd[3]||(Wd[3]=Jd=>unref(ld).onOpenChange(!1)),onEscapeKeyDown:Wd[4]||(Wd[4]=Jd=>od("escapeKeyDown",Jd)),onPointerDownOutside:Wd[5]||(Wd[5]=Jd=>od("pointerDownOutside",Jd))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(zd.position==="popper"?Lp$1:Np$1),mergeProps({...zd.$attrs,...unref(qd)},{id:unref(ld).contentId,ref:Jd=>{dd.value=unref($e$4)(Jd)},role:"listbox","data-state":unref(ld).open.value?"open":"closed",dir:unref(ld).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:Wd[0]||(Wd[0]=withModifiers(()=>{},["prevent"])),onPlaced:Wd[1]||(Wd[1]=Jd=>Od.value=!0),onKeydown:Fd}),{default:withCtx(()=>[renderSlot(zd.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3})]),_:3}))}}),Hp$1=defineComponent({inheritAttrs:!1,__name:"SelectProvider",props:{context:{}},setup(Ra){return $s$2(Ra.context),(qa,nd)=>renderSlot(qa.$slots,"default")}}),Wp$1={key:1},Fy=defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=xe$5(nd,qa),ld=bt$6(),ud=ref$1();onMounted(()=>{ud.value=new DocumentFragment});const dd=ref$1(),pd=computed(()=>nd.forceMount||ld.open.value);return(fd,md)=>{var vd;return pd.value?(openBlock(),createBlock(unref(Pe$7),{key:0,ref_key:"presenceRef",ref:dd,present:!0},{default:withCtx(()=>[createVNode(Kp$1,normalizeProps(guardReactiveProps({...unref(od),...fd.$attrs})),{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},16)]),_:3},512)):!((vd=dd.value)!=null&&vd.present)&&ud.value?(openBlock(),createElementBlock("div",Wp$1,[(openBlock(),createBlock(Teleport,{to:ud.value},[createVNode(Hp$1,{context:unref(ld)},{default:withCtx(()=>[renderSlot(fd.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):createCommentVNode("",!0)}}}),[Is$3,jp$1]=Q$7("SelectItem"),zy=defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{disabled:nd}=toRefs(qa),od=bt$6(),ld=Ct$5(Ft$5),{forwardRef:ud,currentElement:dd}=R$7(),pd=computed(()=>{var Ld;return((Ld=od.modelValue)==null?void 0:Ld.value)===qa.value}),fd=ref$1(!1),md=ref$1(qa.textValue??""),vd=he$4(void 0,"radix-vue-select-item-text");async function Ad(Ld){await nextTick$1(),!(Ld!=null&&Ld.defaultPrevented)&&(nd.value||(od.onValueChange(qa.value),od.onOpenChange(!1)))}async function Nd(Ld){var Gd;await nextTick$1(),!Ld.defaultPrevented&&(nd.value?(Gd=ld.onItemLeave)==null||Gd.call(ld):Ld.currentTarget.focus({preventScroll:!0}))}async function Od(Ld){var Gd;await nextTick$1(),!Ld.defaultPrevented&&Ld.currentTarget===document.activeElement&&((Gd=ld.onItemLeave)==null||Gd.call(ld))}async function kd(Ld){var Gd;await nextTick$1(),!(Ld.defaultPrevented||((Gd=ld.searchRef)==null?void 0:Gd.value)!==""&&Ld.key===" ")&&(Vp$1.includes(Ld.key)&&Ad(),Ld.key===" "&&Ld.preventDefault())}if(qa.value==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return onMounted(()=>{dd.value&&ld.itemRefCallback(dd.value,qa.value,qa.disabled)}),jp$1({value:qa.value,disabled:nd,textId:vd,isSelected:pd,onItemTextChange:Ld=>{md.value=((md.value||(Ld==null?void 0:Ld.textContent))??"").trim()}}),(Ld,Gd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(ud),role:"option","data-radix-vue-collection-item":"","aria-labelledby":unref(vd),"data-highlighted":fd.value?"":void 0,"aria-selected":pd.value,"data-state":pd.value?"checked":"unchecked","aria-disabled":unref(nd)||void 0,"data-disabled":unref(nd)?"":void 0,tabindex:unref(nd)?void 0:-1,as:Ld.as,"as-child":Ld.asChild,onFocus:Gd[0]||(Gd[0]=jd=>fd.value=!0),onBlur:Gd[1]||(Gd[1]=jd=>fd.value=!1),onPointerup:Ad,onPointerdown:Gd[2]||(Gd[2]=jd=>{jd.currentTarget.focus({preventScroll:!0})}),onTouchend:Gd[3]||(Gd[3]=withModifiers(()=>{},["prevent","stop"])),onPointermove:Nd,onPointerleave:Od,onKeydown:kd},{default:withCtx(()=>[renderSlot(Ld.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"]))}}),Ky=defineComponent({__name:"SelectItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Ra,nd=Is$3();return(od,ld)=>unref(nd).isSelected.value?(openBlock(),createBlock(unref(O$4),mergeProps({key:0,"aria-hidden":"true"},qa),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16)):createCommentVNode("",!0)}}),jy=defineComponent({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Ra,nd=bt$6(),od=Ct$5(Ft$5),ld=Op$1(),ud=Is$3(),{forwardRef:dd,currentElement:pd}=R$7(),fd=computed(()=>{var md;return h$2("option",{key:ud.value,value:ud.value,disabled:ud.disabled.value,textContent:(md=pd.value)==null?void 0:md.textContent})});return onMounted(()=>{pd.value&&(ud.onItemTextChange(pd.value),od.itemTextRefCallback(pd.value,ud.value,ud.disabled.value),ld.onNativeOptionAdd(fd.value))}),onBeforeUnmount(()=>{ld.onNativeOptionRemove(fd.value)}),(md,vd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps({id:unref(ud).textId,ref:unref(dd)},{...qa,...md.$attrs}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16,["id"]),unref(ud).isSelected.value&&unref(nd).valueElement.value&&!unref(nd).valueElementHasChildren.value?(openBlock(),createBlock(Teleport,{key:0,to:unref(nd).valueElement.value},[renderSlot(md.$slots,"default")],8,["to"])):createCommentVNode("",!0)],64))}}),Uy=defineComponent({__name:"SelectViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{nonce:nd}=toRefs(qa),od=Xa$2(nd),ld=Ct$5(Ft$5),ud=ld.position==="item-aligned"?$o$2():void 0,{forwardRef:dd,currentElement:pd}=R$7();onMounted(()=>{ld==null||ld.onViewportChange(pd.value)});const fd=ref$1(0);function md(vd){const Ad=vd.currentTarget,{shouldExpandOnScrollRef:Nd,contentWrapper:Od}=ud??{};if(Nd!=null&&Nd.value&&Od!=null&&Od.value){const kd=Math.abs(fd.value-Ad.scrollTop);if(kd>0){const Ld=window.innerHeight-at$7*2,Gd=Number.parseFloat(Od.value.style.minHeight),jd=Number.parseFloat(Od.value.style.height),Fd=Math.max(Gd,jd);if(Fd0?zd:0,Od.value.style.justifyContent="flex-end")}}}fd.value=Ad.scrollTop}return(vd,Ad)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps({ref:unref(dd),"data-radix-select-viewport":"",role:"presentation"},{...vd.$attrs,...qa},{style:{position:"relative",flex:1,overflow:"auto"},onScroll:md}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16),createVNode(unref(O$4),{as:"style",nonce:unref(od)},{default:withCtx(()=>[createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),Ts$3=defineComponent({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(Ra,{emit:qa}){const nd=qa,{injectCollection:od}=Me$7(),ld=od(),ud=Ct$5(Ft$5),dd=ref$1(null);function pd(){dd.value!==null&&(window.clearInterval(dd.value),dd.value=null)}watchEffect(()=>{const vd=ld.value.find(Ad=>Ad===document.activeElement);vd==null||vd.scrollIntoView({block:"nearest"})});function fd(){dd.value===null&&(dd.value=window.setInterval(()=>{nd("autoScroll")},50))}function md(){var vd;(vd=ud.onItemLeave)==null||vd.call(ud),dd.value===null&&(dd.value=window.setInterval(()=>{nd("autoScroll")},50))}return onBeforeUnmount(()=>pd()),(vd,Ad)=>{var Nd;return openBlock(),createBlock(unref(O$4),mergeProps({"aria-hidden":"true",style:{flexShrink:0}},(Nd=vd.$parent)==null?void 0:Nd.$props,{onPointerdown:fd,onPointermove:md,onPointerleave:Ad[0]||(Ad[0]=()=>{pd()})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16)}}}),Gy=defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ct$5(Ft$5),nd=qa.position==="item-aligned"?$o$2():void 0,{forwardRef:od,currentElement:ld}=R$7(),ud=ref$1(!1);return watchEffect(dd=>{var pd,fd;if((pd=qa.viewport)!=null&&pd.value&&(fd=qa.isPositioned)!=null&&fd.value){let md=function(){ud.value=vd.scrollTop>0};const vd=qa.viewport.value;md(),vd.addEventListener("scroll",md),dd(()=>vd.removeEventListener("scroll",md))}}),watch(ld,()=>{ld.value&&(nd==null||nd.onScrollButtonChange(ld.value))}),(dd,pd)=>ud.value?(openBlock(),createBlock(Ts$3,{key:0,ref:unref(od),onAutoScroll:pd[0]||(pd[0]=()=>{const{viewport:fd,selectedItem:md}=unref(qa);fd!=null&&fd.value&&md!=null&&md.value&&(fd.value.scrollTop=fd.value.scrollTop-md.value.offsetHeight)})},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},512)):createCommentVNode("",!0)}}),qy=defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ct$5(Ft$5),nd=qa.position==="item-aligned"?$o$2():void 0,{forwardRef:od,currentElement:ld}=R$7(),ud=ref$1(!1);return watchEffect(dd=>{var pd,fd;if((pd=qa.viewport)!=null&&pd.value&&(fd=qa.isPositioned)!=null&&fd.value){let md=function(){const Ad=vd.scrollHeight-vd.clientHeight;ud.value=Math.ceil(vd.scrollTop)vd.removeEventListener("scroll",md))}}),watch(ld,()=>{ld.value&&(nd==null||nd.onScrollButtonChange(ld.value))}),(dd,pd)=>ud.value?(openBlock(),createBlock(Ts$3,{key:0,ref:unref(od),onAutoScroll:pd[0]||(pd[0]=()=>{const{viewport:fd,selectedItem:md}=unref(qa);fd!=null&&fd.value&&md!=null&&md.value&&(fd.value.scrollTop=fd.value.scrollTop+md.value.offsetHeight)})},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},512)):createCommentVNode("",!0)}}),Yy=defineComponent({__name:"SelectValue",props:{placeholder:{default:""},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const{forwardRef:qa,currentElement:nd}=R$7(),od=bt$6(),ld=useSlots();return onBeforeMount(()=>{var ud;const dd=!!Ua$3((ud=ld==null?void 0:ld.default)==null?void 0:ud.call(ld)).length;od.onValueElementHasChildrenChange(dd)}),onMounted(()=>{od.valueElement=nd}),(ud,dd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(qa),as:ud.as,"as-child":ud.asChild,style:{pointerEvents:"none"}},{default:withCtx(()=>{var pd;return[unref(Bs$3)((pd=unref(od).modelValue)==null?void 0:pd.value)?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(ud.placeholder),1)],64)):renderSlot(ud.$slots,"default",{key:1})]}),_:3},8,["as","as-child"]))}}),Xy=defineComponent({__name:"SelectIcon",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){return(qa,nd)=>(openBlock(),createBlock(unref(O$4),{"aria-hidden":"true",as:qa.as,"as-child":qa.asChild},{default:withCtx(()=>[renderSlot(qa.$slots,"default",{},()=>[createTextVNode("▼")])]),_:3},8,["as","as-child"]))}}),Rs$1=defineComponent({__name:"BaseSeparator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,nd=["horizontal","vertical"];function od(pd){return nd.includes(pd)}const ld=computed(()=>od(qa.orientation)?qa.orientation:"horizontal"),ud=computed(()=>ld.value==="vertical"?qa.orientation:void 0),dd=computed(()=>qa.decorative?{role:"none"}:{"aria-orientation":ud.value,role:"separator"});return(pd,fd)=>(openBlock(),createBlock(unref(O$4),mergeProps({as:pd.as,"as-child":pd.asChild,"data-orientation":ld.value},dd.value),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),qp$1=defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(Rs$1,normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}});function hf(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}hf();const kf=["name","disabled","required","value","checked","data-state","data-disabled"],[Mf,Vf]=Q$7("SwitchRoot"),cg$1=defineComponent({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{disabled:ld}=toRefs(nd),ud=ne$6(nd,"checked",od,{defaultValue:nd.defaultChecked,passive:nd.checked===void 0});function dd(){ld.value||(ud.value=!ud.value)}const{forwardRef:pd,currentElement:fd}=R$7(),md=Je$4(fd),vd=computed(()=>{var Ad;return nd.id&&fd.value?(Ad=document.querySelector(`[for="${nd.id}"]`))==null?void 0:Ad.innerText:void 0});return Vf({checked:ud,toggleCheck:dd,disabled:ld}),(Ad,Nd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(Ad.$attrs,{id:Ad.id,ref:unref(pd),role:"switch",type:Ad.as==="button"?"button":void 0,value:Ad.value,"aria-label":Ad.$attrs["aria-label"]||vd.value,"aria-checked":unref(ud),"aria-required":Ad.required,"data-state":unref(ud)?"checked":"unchecked","data-disabled":unref(ld)?"":void 0,"as-child":Ad.asChild,as:Ad.as,disabled:unref(ld),onClick:dd,onKeydown:withKeys(withModifiers(dd,["prevent"]),["enter"])}),{default:withCtx(()=>[renderSlot(Ad.$slots,"default",{checked:unref(ud)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),unref(md)?(openBlock(),createElementBlock("input",{key:0,type:"checkbox",name:Ad.name,tabindex:"-1","aria-hidden":"true",disabled:unref(ld),required:Ad.required,value:Ad.value,checked:!!unref(ud),"data-state":unref(ud)?"checked":"unchecked","data-disabled":unref(ld)?"":void 0,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,kf)):createCommentVNode("",!0)],64))}}),pg=defineComponent({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const qa=Mf();return R$7(),(nd,od)=>{var ld;return openBlock(),createBlock(unref(O$4),{"data-state":(ld=unref(qa).checked)!=null&&ld.value?"checked":"unchecked","data-disabled":unref(qa).disabled.value?"":void 0,"as-child":nd.asChild,as:nd.as},{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}}),[pn$4,Ff]=Q$7("TabsRoot"),fg=defineComponent({__name:"TabsRoot",props:{defaultValue:{},orientation:{default:"horizontal"},dir:{},activationMode:{default:"automatic"},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,{orientation:ld,dir:ud}=toRefs(nd),dd=be$9(ud);R$7();const pd=ne$6(nd,"modelValue",od,{defaultValue:nd.defaultValue,passive:nd.modelValue===void 0}),fd=ref$1();return Ff({modelValue:pd,changeModelValue:md=>{pd.value=md},orientation:ld,dir:dd,activationMode:nd.activationMode,baseId:he$4(void 0,"radix-vue-tabs"),tabsList:fd}),(md,vd)=>(openBlock(),createBlock(unref(O$4),{dir:unref(dd),"data-orientation":unref(ld),"as-child":md.asChild,as:md.as},{default:withCtx(()=>[renderSlot(md.$slots,"default",{modelValue:unref(pd)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),vg=defineComponent({__name:"TabsList",props:{loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{loop:nd}=toRefs(qa),{forwardRef:od,currentElement:ld}=R$7(),ud=pn$4();return ud.tabsList=ld,(dd,pd)=>(openBlock(),createBlock(unref(Ot$4),{"as-child":"",orientation:unref(ud).orientation.value,dir:unref(ud).dir.value,loop:unref(nd)},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(od),role:"tablist","as-child":dd.asChild,as:dd.as,"aria-orientation":unref(ud).orientation.value},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}});function or$3(Ra,qa){return`${Ra}-trigger-${qa}`}function lr$2(Ra,qa){return`${Ra}-content-${qa}`}const mg=defineComponent({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra,{forwardRef:nd}=R$7(),od=pn$4(),ld=computed(()=>or$3(od.baseId,qa.value)),ud=computed(()=>lr$2(od.baseId,qa.value)),dd=computed(()=>qa.value===od.modelValue.value),pd=ref$1(dd.value);return onMounted(()=>{requestAnimationFrame(()=>{pd.value=!1})}),(fd,md)=>(openBlock(),createBlock(unref(Pe$7),{present:dd.value,"force-mount":""},{default:withCtx(({present:vd})=>[createVNode(unref(O$4),{id:ud.value,ref:unref(nd),"as-child":fd.asChild,as:fd.as,role:"tabpanel","data-state":dd.value?"active":"inactive","data-orientation":unref(od).orientation.value,"aria-labelledby":ld.value,hidden:!vd.value,tabindex:"0",style:normalizeStyle({animationDuration:pd.value?"0s":void 0})},{default:withCtx(()=>[fd.forceMount||dd.value?renderSlot(fd.$slots,"default",{key:0}):createCommentVNode("",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),hg=defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,{forwardRef:nd}=R$7(),od=pn$4(),ld=computed(()=>or$3(od.baseId,qa.value)),ud=computed(()=>lr$2(od.baseId,qa.value)),dd=computed(()=>qa.value===od.modelValue.value);return(pd,fd)=>(openBlock(),createBlock(unref(kt$4),{"as-child":"",focusable:!pd.disabled,active:dd.value},{default:withCtx(()=>[createVNode(unref(O$4),{id:ld.value,ref:unref(nd),role:"tab",type:pd.as==="button"?"button":void 0,as:pd.as,"as-child":pd.asChild,"aria-selected":dd.value?"true":"false","aria-controls":ud.value,"data-state":dd.value?"active":"inactive",disabled:pd.disabled,"data-disabled":pd.disabled?"":void 0,"data-orientation":unref(od).orientation.value,onMousedown:fd[0]||(fd[0]=withModifiers(md=>{!pd.disabled&&md.ctrlKey===!1?unref(od).changeModelValue(pd.value):md.preventDefault()},["left"])),onKeydown:fd[1]||(fd[1]=withKeys(md=>unref(od).changeModelValue(pd.value),["enter","space"])),onFocus:fd[2]||(fd[2]=()=>{const md=unref(od).activationMode!=="manual";!dd.value&&!pd.disabled&&md&&unref(od).changeModelValue(pd.value)})},{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),dr$3="tooltip.open",[Oo$2,lv]=Q$7("TooltipProvider"),Mg=defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(Ra){const qa=Ra,{delayDuration:nd,skipDelayDuration:od,disableHoverableContent:ld,disableClosingTrigger:ud,ignoreNonKeyboardFocus:dd,disabled:pd}=toRefs(qa);R$7();const fd=ref$1(!0),md=ref$1(!1),{start:vd,stop:Ad}=Wn$3(()=>{fd.value=!0},od,{immediate:!1});return lv({isOpenDelayed:fd,delayDuration:nd,onOpen(){Ad(),fd.value=!1},onClose(){vd()},isPointerInTransitRef:md,disableHoverableContent:ld,disableClosingTrigger:ud,disabled:pd,ignoreNonKeyboardFocus:dd}),(Nd,Od)=>renderSlot(Nd.$slots,"default")}}),[mn$4,sv]=Q$7("TooltipRoot"),Vg=defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa;R$7();const ld=Oo$2(),ud=computed(()=>nd.disableHoverableContent??ld.disableHoverableContent.value),dd=computed(()=>nd.disableClosingTrigger??ld.disableClosingTrigger.value),pd=computed(()=>nd.disabled??ld.disabled.value),fd=computed(()=>nd.delayDuration??ld.delayDuration.value),md=computed(()=>nd.ignoreNonKeyboardFocus??ld.ignoreNonKeyboardFocus.value),vd=ne$6(nd,"open",od,{defaultValue:nd.defaultOpen,passive:nd.open===void 0});watch(vd,Ud=>{ld.onClose&&(Ud?(ld.onOpen(),document.dispatchEvent(new CustomEvent(dr$3))):ld.onClose())});const Ad=ref$1(!1),Nd=ref$1(),Od=computed(()=>vd.value?Ad.value?"delayed-open":"instant-open":"closed"),{start:kd,stop:Ld}=Wn$3(()=>{Ad.value=!0,vd.value=!0},fd,{immediate:!1});function Gd(){Ld(),Ad.value=!1,vd.value=!0}function jd(){Ld(),vd.value=!1}function Fd(){kd()}return sv({contentId:"",open:vd,stateAttribute:Od,trigger:Nd,onTriggerChange(Ud){Nd.value=Ud},onTriggerEnter(){ld.isOpenDelayed.value?Fd():Gd()},onTriggerLeave(){ud.value?jd():Ld()},onOpen:Gd,onClose:jd,disableHoverableContent:ud,disableClosingTrigger:dd,disabled:pd,ignoreNonKeyboardFocus:md}),(Ud,qd)=>(openBlock(),createBlock(unref(Tt$4),null,{default:withCtx(()=>[renderSlot(Ud.$slots,"default",{open:unref(vd)})]),_:3}))}}),Fg=defineComponent({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=mn$4(),od=Oo$2();nd.contentId||(nd.contentId=he$4(void 0,"radix-vue-tooltip-content"));const{forwardRef:ld,currentElement:ud}=R$7(),dd=ref$1(!1),pd=ref$1(!1),fd=computed(()=>nd.disabled.value?{}:{click:Ld,focus:Od,pointermove:Ad,pointerleave:Nd,pointerdown:vd,blur:kd});onMounted(()=>{nd.onTriggerChange(ud.value)});function md(){setTimeout(()=>{dd.value=!1},1)}function vd(){dd.value=!0,document.addEventListener("pointerup",md,{once:!0})}function Ad(Gd){Gd.pointerType!=="touch"&&!pd.value&&!od.isPointerInTransitRef.value&&(nd.onTriggerEnter(),pd.value=!0)}function Nd(){nd.onTriggerLeave(),pd.value=!1}function Od(Gd){var jd,Fd;dd.value||nd.ignoreNonKeyboardFocus.value&&!((Fd=(jd=Gd.target).matches)!=null&&Fd.call(jd,":focus-visible"))||nd.onOpen()}function kd(){nd.onClose()}function Ld(){nd.disableClosingTrigger.value||nd.onClose()}return(Gd,jd)=>(openBlock(),createBlock(unref(Rt$5),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(ld),"aria-describedby":unref(nd).open.value?unref(nd).contentId:void 0,"data-state":unref(nd).stateAttribute.value,as:Gd.as,"as-child":qa.asChild,"data-grace-area-trigger":""},toHandlers(fd.value)),{default:withCtx(()=>[renderSlot(Gd.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),cr$4=defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=mn$4(),{forwardRef:ud}=R$7(),dd=useSlots(),pd=computed(()=>{var vd;return(vd=dd.default)==null?void 0:vd.call(dd)}),fd=computed(()=>{var vd;if(nd.ariaLabel)return nd.ariaLabel;let Ad="";function Nd(Od){typeof Od.children=="string"&&Od.type!==Comment$2?Ad+=Od.children:Array.isArray(Od.children)&&Od.children.forEach(kd=>Nd(kd))}return(vd=pd.value)==null||vd.forEach(Od=>Nd(Od)),Ad}),md=computed(()=>{const{ariaLabel:vd,...Ad}=nd;return Ad});return onMounted(()=>{Le$6(window,"scroll",vd=>{const Ad=vd.target;Ad!=null&&Ad.contains(ld.trigger.value)&&ld.onClose()}),Le$6(window,dr$3,ld.onClose)}),(vd,Ad)=>(openBlock(),createBlock(unref(yt$3),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:Ad[0]||(Ad[0]=Nd=>od("escapeKeyDown",Nd)),onPointerDownOutside:Ad[1]||(Ad[1]=Nd=>{var Od;unref(ld).disableClosingTrigger.value&&(Od=unref(ld).trigger.value)!=null&&Od.contains(Nd.target)&&Nd.preventDefault(),od("pointerDownOutside",Nd)}),onFocusOutside:Ad[2]||(Ad[2]=withModifiers(()=>{},["prevent"])),onDismiss:Ad[3]||(Ad[3]=Nd=>unref(ld).onClose())},{default:withCtx(()=>[createVNode(unref(Dt$4),mergeProps({ref:unref(ud),"data-state":unref(ld).stateAttribute.value},{...vd.$attrs,...md.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:withCtx(()=>[renderSlot(vd.$slots,"default"),createVNode(unref(Zt$4),{id:unref(ld).contentId,role:"tooltip"},{default:withCtx(()=>[createTextVNode(toDisplayString(fd.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),rv=defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(Ra){const qa=It$4(Ra),{forwardRef:nd,currentElement:od}=R$7(),{trigger:ld,onClose:ud}=mn$4(),dd=Oo$2(),{isPointerInTransit:pd,onPointerExit:fd}=Ol$3(ld,od);return dd.isPointerInTransitRef=pd,fd(()=>{ud()}),(md,vd)=>(openBlock(),createBlock(cr$4,mergeProps({ref:unref(nd)},unref(qa)),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),Ng=defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=mn$4(),ud=xe$5(nd,od),{forwardRef:dd}=R$7();return(pd,fd)=>(openBlock(),createBlock(unref(Pe$7),{present:pd.forceMount||unref(ld).open.value},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ld).disableHoverableContent.value?cr$4:rv),mergeProps({ref:unref(dd)},unref(ud)),{default:withCtx(()=>[renderSlot(pd.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),zg=defineComponent({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$1r=defineComponent({__name:"AlertDialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Sv),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function r$2(Ra){var qa,nd,od="";if(typeof Ra=="string"||typeof Ra=="number")od+=Ra;else if(typeof Ra=="object")if(Array.isArray(Ra)){var ld=Ra.length;for(qa=0;qa{const qa=createClassMap(Ra),{conflictingClassGroups:nd,conflictingClassGroupModifiers:od}=Ra;return{getClassGroupId:dd=>{const pd=dd.split(CLASS_PART_SEPARATOR);return pd[0]===""&&pd.length!==1&&pd.shift(),getGroupRecursive(pd,qa)||getGroupIdForArbitraryProperty(dd)},getConflictingClassGroupIds:(dd,pd)=>{const fd=nd[dd]||[];return pd&&od[dd]?[...fd,...od[dd]]:fd}}},getGroupRecursive=(Ra,qa)=>{var dd;if(Ra.length===0)return qa.classGroupId;const nd=Ra[0],od=qa.nextPart.get(nd),ld=od?getGroupRecursive(Ra.slice(1),od):void 0;if(ld)return ld;if(qa.validators.length===0)return;const ud=Ra.join(CLASS_PART_SEPARATOR);return(dd=qa.validators.find(({validator:pd})=>pd(ud)))==null?void 0:dd.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=Ra=>{if(arbitraryPropertyRegex.test(Ra)){const qa=arbitraryPropertyRegex.exec(Ra)[1],nd=qa==null?void 0:qa.substring(0,qa.indexOf(":"));if(nd)return"arbitrary.."+nd}},createClassMap=Ra=>{const{theme:qa,prefix:nd}=Ra,od={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(Ra.classGroups),nd).forEach(([ud,dd])=>{processClassesRecursively(dd,od,ud,qa)}),od},processClassesRecursively=(Ra,qa,nd,od)=>{Ra.forEach(ld=>{if(typeof ld=="string"){const ud=ld===""?qa:getPart(qa,ld);ud.classGroupId=nd;return}if(typeof ld=="function"){if(isThemeGetter(ld)){processClassesRecursively(ld(od),qa,nd,od);return}qa.validators.push({validator:ld,classGroupId:nd});return}Object.entries(ld).forEach(([ud,dd])=>{processClassesRecursively(dd,getPart(qa,ud),nd,od)})})},getPart=(Ra,qa)=>{let nd=Ra;return qa.split(CLASS_PART_SEPARATOR).forEach(od=>{nd.nextPart.has(od)||nd.nextPart.set(od,{nextPart:new Map,validators:[]}),nd=nd.nextPart.get(od)}),nd},isThemeGetter=Ra=>Ra.isThemeGetter,getPrefixedClassGroupEntries=(Ra,qa)=>qa?Ra.map(([nd,od])=>{const ld=od.map(ud=>typeof ud=="string"?qa+ud:typeof ud=="object"?Object.fromEntries(Object.entries(ud).map(([dd,pd])=>[qa+dd,pd])):ud);return[nd,ld]}):Ra,createLruCache=Ra=>{if(Ra<1)return{get:()=>{},set:()=>{}};let qa=0,nd=new Map,od=new Map;const ld=(ud,dd)=>{nd.set(ud,dd),qa++,qa>Ra&&(qa=0,od=nd,nd=new Map)};return{get(ud){let dd=nd.get(ud);if(dd!==void 0)return dd;if((dd=od.get(ud))!==void 0)return ld(ud,dd),dd},set(ud,dd){nd.has(ud)?nd.set(ud,dd):ld(ud,dd)}}},IMPORTANT_MODIFIER="!",createParseClassName=Ra=>{const{separator:qa,experimentalParseClassName:nd}=Ra,od=qa.length===1,ld=qa[0],ud=qa.length,dd=pd=>{const fd=[];let md=0,vd=0,Ad;for(let Gd=0;Gdvd?Ad-vd:void 0;return{modifiers:fd,hasImportantModifier:Od,baseClassName:kd,maybePostfixModifierPosition:Ld}};return nd?pd=>nd({className:pd,parseClassName:dd}):dd},sortModifiers=Ra=>{if(Ra.length<=1)return Ra;const qa=[];let nd=[];return Ra.forEach(od=>{od[0]==="["?(qa.push(...nd.sort(),od),nd=[]):nd.push(od)}),qa.push(...nd.sort()),qa},createConfigUtils=Ra=>({cache:createLruCache(Ra.cacheSize),parseClassName:createParseClassName(Ra),...createClassGroupUtils(Ra)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(Ra,qa)=>{const{parseClassName:nd,getClassGroupId:od,getConflictingClassGroupIds:ld}=qa,ud=[],dd=Ra.trim().split(SPLIT_CLASSES_REGEX);let pd="";for(let fd=dd.length-1;fd>=0;fd-=1){const md=dd[fd],{modifiers:vd,hasImportantModifier:Ad,baseClassName:Nd,maybePostfixModifierPosition:Od}=nd(md);let kd=!!Od,Ld=od(kd?Nd.substring(0,Od):Nd);if(!Ld){if(!kd){pd=md+(pd.length>0?" "+pd:pd);continue}if(Ld=od(Nd),!Ld){pd=md+(pd.length>0?" "+pd:pd);continue}kd=!1}const Gd=sortModifiers(vd).join(":"),jd=Ad?Gd+IMPORTANT_MODIFIER:Gd,Fd=jd+Ld;if(ud.includes(Fd))continue;ud.push(Fd);const Ud=ld(Ld,kd);for(let qd=0;qd0?" "+pd:pd)}return pd};function twJoin(){let Ra=0,qa,nd,od="";for(;Ra{if(typeof Ra=="string")return Ra;let qa,nd="";for(let od=0;odAd(vd),Ra());return nd=createConfigUtils(md),od=nd.cache.get,ld=nd.cache.set,ud=pd,pd(fd)}function pd(fd){const md=od(fd);if(md)return md;const vd=mergeClassList(fd,nd);return ld(fd,vd),vd}return function(){return ud(twJoin.apply(null,arguments))}}const fromTheme=Ra=>{const qa=nd=>nd[Ra]||[];return qa.isThemeGetter=!0,qa},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength$1=Ra=>isNumber$3(Ra)||stringLengths.has(Ra)||fractionRegex.test(Ra),isArbitraryLength=Ra=>getIsArbitraryValue(Ra,"length",isLengthOnly),isNumber$3=Ra=>!!Ra&&!Number.isNaN(Number(Ra)),isArbitraryNumber=Ra=>getIsArbitraryValue(Ra,"number",isNumber$3),isInteger$2=Ra=>!!Ra&&Number.isInteger(Number(Ra)),isPercent=Ra=>Ra.endsWith("%")&&isNumber$3(Ra.slice(0,-1)),isArbitraryValue=Ra=>arbitraryValueRegex.test(Ra),isTshirtSize=Ra=>tshirtUnitRegex.test(Ra),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=Ra=>getIsArbitraryValue(Ra,sizeLabels,isNever),isArbitraryPosition=Ra=>getIsArbitraryValue(Ra,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=Ra=>getIsArbitraryValue(Ra,imageLabels,isImage),isArbitraryShadow=Ra=>getIsArbitraryValue(Ra,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(Ra,qa,nd)=>{const od=arbitraryValueRegex.exec(Ra);return od?od[1]?typeof qa=="string"?od[1]===qa:qa.has(od[1]):nd(od[2]):!1},isLengthOnly=Ra=>lengthUnitRegex.test(Ra)&&!colorFunctionRegex.test(Ra),isNever=()=>!1,isShadow=Ra=>shadowRegex.test(Ra),isImage=Ra=>imageRegex.test(Ra),getDefaultConfig=()=>{const Ra=fromTheme("colors"),qa=fromTheme("spacing"),nd=fromTheme("blur"),od=fromTheme("brightness"),ld=fromTheme("borderColor"),ud=fromTheme("borderRadius"),dd=fromTheme("borderSpacing"),pd=fromTheme("borderWidth"),fd=fromTheme("contrast"),md=fromTheme("grayscale"),vd=fromTheme("hueRotate"),Ad=fromTheme("invert"),Nd=fromTheme("gap"),Od=fromTheme("gradientColorStops"),kd=fromTheme("gradientColorStopPositions"),Ld=fromTheme("inset"),Gd=fromTheme("margin"),jd=fromTheme("opacity"),Fd=fromTheme("padding"),Ud=fromTheme("saturate"),qd=fromTheme("scale"),zd=fromTheme("sepia"),Wd=fromTheme("skew"),Jd=fromTheme("space"),_f=fromTheme("translate"),Xd=()=>["auto","contain","none"],pf=()=>["auto","hidden","clip","visible","scroll"],mf=()=>["auto",isArbitraryValue,qa],Sf=()=>[isArbitraryValue,qa],Tf=()=>["",isLength$1,isArbitraryLength],Af=()=>["auto",isNumber$3,isArbitraryValue],Ef=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Nf=()=>["solid","dashed","dotted","double","none"],If=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Gf=()=>["start","end","center","between","around","evenly","stretch"],Qf=()=>["","0",isArbitraryValue],Xf=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ph=()=>[isNumber$3,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength$1,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:ph(),borderColor:[Ra],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:Sf(),borderWidth:Tf(),contrast:ph(),grayscale:Qf(),hueRotate:ph(),invert:Qf(),gap:Sf(),gradientColorStops:[Ra],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:mf(),margin:mf(),opacity:ph(),padding:Sf(),saturate:ph(),scale:ph(),sepia:Qf(),skew:ph(),space:Sf(),translate:Sf()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":Xf()}],"break-before":[{"break-before":Xf()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ef(),isArbitraryValue]}],overflow:[{overflow:pf()}],"overflow-x":[{"overflow-x":pf()}],"overflow-y":[{"overflow-y":pf()}],overscroll:[{overscroll:Xd()}],"overscroll-x":[{"overscroll-x":Xd()}],"overscroll-y":[{"overscroll-y":Xd()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[Ld]}],"inset-x":[{"inset-x":[Ld]}],"inset-y":[{"inset-y":[Ld]}],start:[{start:[Ld]}],end:[{end:[Ld]}],top:[{top:[Ld]}],right:[{right:[Ld]}],bottom:[{bottom:[Ld]}],left:[{left:[Ld]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger$2,isArbitraryValue]}],basis:[{basis:mf()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:Qf()}],shrink:[{shrink:Qf()}],order:[{order:["first","last","none",isInteger$2,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger$2,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":Af()}],"col-end":[{"col-end":Af()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger$2,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":Af()}],"row-end":[{"row-end":Af()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[Nd]}],"gap-x":[{"gap-x":[Nd]}],"gap-y":[{"gap-y":[Nd]}],"justify-content":[{justify:["normal",...Gf()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Gf(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Gf(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Fd]}],px:[{px:[Fd]}],py:[{py:[Fd]}],ps:[{ps:[Fd]}],pe:[{pe:[Fd]}],pt:[{pt:[Fd]}],pr:[{pr:[Fd]}],pb:[{pb:[Fd]}],pl:[{pl:[Fd]}],m:[{m:[Gd]}],mx:[{mx:[Gd]}],my:[{my:[Gd]}],ms:[{ms:[Gd]}],me:[{me:[Gd]}],mt:[{mt:[Gd]}],mr:[{mr:[Gd]}],mb:[{mb:[Gd]}],ml:[{ml:[Gd]}],"space-x":[{"space-x":[Jd]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Jd]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,qa]}],"min-w":[{"min-w":[isArbitraryValue,qa,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,qa,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,qa,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,qa,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,qa,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,qa,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber$3,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength$1,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[Ra]}],"placeholder-opacity":[{"placeholder-opacity":[jd]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[Ra]}],"text-opacity":[{"text-opacity":[jd]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Nf(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength$1,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength$1,isArbitraryValue]}],"text-decoration-color":[{decoration:[Ra]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Sf()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[jd]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ef(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[Ra]}],"gradient-from-pos":[{from:[kd]}],"gradient-via-pos":[{via:[kd]}],"gradient-to-pos":[{to:[kd]}],"gradient-from":[{from:[Od]}],"gradient-via":[{via:[Od]}],"gradient-to":[{to:[Od]}],rounded:[{rounded:[ud]}],"rounded-s":[{"rounded-s":[ud]}],"rounded-e":[{"rounded-e":[ud]}],"rounded-t":[{"rounded-t":[ud]}],"rounded-r":[{"rounded-r":[ud]}],"rounded-b":[{"rounded-b":[ud]}],"rounded-l":[{"rounded-l":[ud]}],"rounded-ss":[{"rounded-ss":[ud]}],"rounded-se":[{"rounded-se":[ud]}],"rounded-ee":[{"rounded-ee":[ud]}],"rounded-es":[{"rounded-es":[ud]}],"rounded-tl":[{"rounded-tl":[ud]}],"rounded-tr":[{"rounded-tr":[ud]}],"rounded-br":[{"rounded-br":[ud]}],"rounded-bl":[{"rounded-bl":[ud]}],"border-w":[{border:[pd]}],"border-w-x":[{"border-x":[pd]}],"border-w-y":[{"border-y":[pd]}],"border-w-s":[{"border-s":[pd]}],"border-w-e":[{"border-e":[pd]}],"border-w-t":[{"border-t":[pd]}],"border-w-r":[{"border-r":[pd]}],"border-w-b":[{"border-b":[pd]}],"border-w-l":[{"border-l":[pd]}],"border-opacity":[{"border-opacity":[jd]}],"border-style":[{border:[...Nf(),"hidden"]}],"divide-x":[{"divide-x":[pd]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[pd]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[jd]}],"divide-style":[{divide:Nf()}],"border-color":[{border:[ld]}],"border-color-x":[{"border-x":[ld]}],"border-color-y":[{"border-y":[ld]}],"border-color-s":[{"border-s":[ld]}],"border-color-e":[{"border-e":[ld]}],"border-color-t":[{"border-t":[ld]}],"border-color-r":[{"border-r":[ld]}],"border-color-b":[{"border-b":[ld]}],"border-color-l":[{"border-l":[ld]}],"divide-color":[{divide:[ld]}],"outline-style":[{outline:["",...Nf()]}],"outline-offset":[{"outline-offset":[isLength$1,isArbitraryValue]}],"outline-w":[{outline:[isLength$1,isArbitraryLength]}],"outline-color":[{outline:[Ra]}],"ring-w":[{ring:Tf()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[Ra]}],"ring-opacity":[{"ring-opacity":[jd]}],"ring-offset-w":[{"ring-offset":[isLength$1,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[Ra]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[jd]}],"mix-blend":[{"mix-blend":[...If(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":If()}],filter:[{filter:["","none"]}],blur:[{blur:[nd]}],brightness:[{brightness:[od]}],contrast:[{contrast:[fd]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[md]}],"hue-rotate":[{"hue-rotate":[vd]}],invert:[{invert:[Ad]}],saturate:[{saturate:[Ud]}],sepia:[{sepia:[zd]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[nd]}],"backdrop-brightness":[{"backdrop-brightness":[od]}],"backdrop-contrast":[{"backdrop-contrast":[fd]}],"backdrop-grayscale":[{"backdrop-grayscale":[md]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[vd]}],"backdrop-invert":[{"backdrop-invert":[Ad]}],"backdrop-opacity":[{"backdrop-opacity":[jd]}],"backdrop-saturate":[{"backdrop-saturate":[Ud]}],"backdrop-sepia":[{"backdrop-sepia":[zd]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[dd]}],"border-spacing-x":[{"border-spacing-x":[dd]}],"border-spacing-y":[{"border-spacing-y":[dd]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:ph()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:ph()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[qd]}],"scale-x":[{"scale-x":[qd]}],"scale-y":[{"scale-y":[qd]}],rotate:[{rotate:[isInteger$2,isArbitraryValue]}],"translate-x":[{"translate-x":[_f]}],"translate-y":[{"translate-y":[_f]}],"skew-x":[{"skew-x":[Wd]}],"skew-y":[{"skew-y":[Wd]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",Ra]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[Ra]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Sf()}],"scroll-mx":[{"scroll-mx":Sf()}],"scroll-my":[{"scroll-my":Sf()}],"scroll-ms":[{"scroll-ms":Sf()}],"scroll-me":[{"scroll-me":Sf()}],"scroll-mt":[{"scroll-mt":Sf()}],"scroll-mr":[{"scroll-mr":Sf()}],"scroll-mb":[{"scroll-mb":Sf()}],"scroll-ml":[{"scroll-ml":Sf()}],"scroll-p":[{"scroll-p":Sf()}],"scroll-px":[{"scroll-px":Sf()}],"scroll-py":[{"scroll-py":Sf()}],"scroll-ps":[{"scroll-ps":Sf()}],"scroll-pe":[{"scroll-pe":Sf()}],"scroll-pt":[{"scroll-pt":Sf()}],"scroll-pr":[{"scroll-pr":Sf()}],"scroll-pb":[{"scroll-pb":Sf()}],"scroll-pl":[{"scroll-pl":Sf()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[Ra,"none"]}],"stroke-w":[{stroke:[isLength$1,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[Ra,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig);function cn$5(...Ra){return twMerge(clsx(Ra))}const _sfc_main$1q=defineComponent({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(Pv),null,{default:withCtx(()=>[createVNode(unref($v),{class:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"}),createVNode(unref(Dv),mergeProps(unref(ud),{class:unref(cn$5)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$1p=defineComponent({__name:"AlertDialogFooter",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),falsyToString=Ra=>typeof Ra=="boolean"?`${Ra}`:Ra===0?"0":Ra,cx$1=clsx,cva=(Ra,qa)=>nd=>{var od;if((qa==null?void 0:qa.variants)==null)return cx$1(Ra,nd==null?void 0:nd.class,nd==null?void 0:nd.className);const{variants:ld,defaultVariants:ud}=qa,dd=Object.keys(ld).map(md=>{const vd=nd==null?void 0:nd[md],Ad=ud==null?void 0:ud[md];if(vd===null)return null;const Nd=falsyToString(vd)||falsyToString(Ad);return ld[md][Nd]}),pd=nd&&Object.entries(nd).reduce((md,vd)=>{let[Ad,Nd]=vd;return Nd===void 0||(md[Ad]=Nd),md},{}),fd=qa==null||(od=qa.compoundVariants)===null||od===void 0?void 0:od.reduce((md,vd)=>{let{class:Ad,className:Nd,...Od}=vd;return Object.entries(Od).every(kd=>{let[Ld,Gd]=kd;return Array.isArray(Gd)?Gd.includes({...ud,...pd}[Ld]):{...ud,...pd}[Ld]===Gd})?[...md,Ad,Nd]:md},[]);return cx$1(Ra,dd,fd,nd==null?void 0:nd.class,nd==null?void 0:nd.className)},_sfc_main$1o=defineComponent({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(O$4),{as:nd.as,"as-child":nd.asChild,class:normalizeClass(unref(cn$5)(unref(buttonVariants)({variant:nd.variant,size:nd.size}),qa.class))},{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),buttonVariants=cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),_sfc_main$1n=defineComponent({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Rv),mergeProps(nd.value,{class:unref(cn$5)(unref(buttonVariants)(),qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1m=defineComponent({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Bv),mergeProps(nd.value,{class:unref(cn$5)(unref(buttonVariants)({variant:"outline"}),"mt-2 sm:mt-0",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1l=defineComponent({__name:"AlertDialogHeader",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("flex flex-col gap-y-2 text-center sm:text-left",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$1k=defineComponent({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Tv),mergeProps(nd.value,{class:unref(cn$5)("text-sm text-muted-foreground",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1j=defineComponent({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Iv),mergeProps(nd.value,{class:unref(cn$5)("text-lg font-semibold",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$f={key:0,class:"loading"},_sfc_main$1i=defineComponent({__name:"RunLoading",setup(Ra){const qa=ref$1(!0);return onMounted(()=>{setTimeout(()=>{qa.value=!1},100)}),(nd,od)=>(openBlock(),createBlock(Transition$1,{name:"fade"},{default:withCtx(()=>[unref(qa)?(openBlock(),createElementBlock("div",_hoisted_1$f,od[0]||(od[0]=[createBaseVNode("strong",null,"致力于让 Markdown 编辑更简单",-1)]))):createCommentVNode("",!0)]),_:1}))}}),_export_sfc=(Ra,qa)=>{const nd=Ra.__vccOpts||Ra;for(const[od,ld]of qa)nd[od]=ld;return nd},__unplugin_components_13$1=_export_sfc(_sfc_main$1i,[["__scopeId","data-v-8781f9ec"]]),_sfc_main$1h=defineComponent({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Zi$2),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});/** * @license lucide-vue-next v0.462.0 - ISC * * This source code is licensed under the ISC license. @@ -155,7 +155,7 @@ var PN=Object.defineProperty;var vC=Ra=>{throw TypeError(Ra)};var LN=(Ra,qa,nd)= * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const X$7=createLucideIcon("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_sfc_main$1g=defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(xv),null,{default:withCtx(()=>[createVNode(unref(_u$3),{class:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"}),createVNode(unref(Cu$3),mergeProps(unref(ud),{class:unref(cn$5)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default"),createVNode(unref(Ul$3),{class:"data-[state=open]:bg-accent ring-offset-background data-[state=open]:text-muted-foreground focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity disabled:pointer-events-none hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2"},{default:withCtx(()=>[createVNode(unref(X$7),{class:"h-4 w-4"}),pd[0]||(pd[0]=createBaseVNode("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),_sfc_main$1f=defineComponent({__name:"DialogFooter",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",qa.class))},[renderSlot(nd.$slots,"default")],2))}});function tryOnScopeDispose(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function createEventHook(){const Ra=new Set,qa=ld=>{Ra.delete(ld)};return{on:ld=>{Ra.add(ld);const ud=()=>qa(ld);return tryOnScopeDispose(ud),{off:ud}},off:qa,trigger:(...ld)=>Promise.all(Array.from(Ra).map(ud=>ud(...ld)))}}function toValue(Ra){return typeof Ra=="function"?Ra():unref(Ra)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef=Ra=>typeof Ra<"u",toString$3=Object.prototype.toString,isObject$5=Ra=>toString$3.call(Ra)==="[object Object]",noop$5=()=>{},hasOwn$2=(Ra,qa)=>Object.prototype.hasOwnProperty.call(Ra,qa);function createFilterWrapper(Ra,qa){function nd(...od){return new Promise((ld,ud)=>{Promise.resolve(Ra(()=>qa.apply(this,od),{fn:qa,thisArg:this,args:od})).then(ld).catch(ud)})}return nd}const bypassFilter=Ra=>Ra();function pausableFilter(Ra=bypassFilter){const qa=ref$1(!0);function nd(){qa.value=!1}function od(){qa.value=!0}const ld=(...ud)=>{qa.value&&Ra(...ud)};return{isActive:readonly(qa),pause:nd,resume:od,eventFilter:ld}}function createSingletonPromise(Ra){let qa;function nd(){return qa||(qa=Ra()),qa}return nd.reset=async()=>{const od=qa;qa=void 0,od&&await od},nd}function getLifeCycleTarget(Ra){return getCurrentInstance()}function toRef(...Ra){if(Ra.length!==1)return toRef$1(...Ra);const qa=Ra[0];return typeof qa=="function"?readonly(customRef(()=>({get:qa,set:noop$5}))):ref$1(qa)}function watchWithFilter(Ra,qa,nd={}){const{eventFilter:od=bypassFilter,...ld}=nd;return watch(Ra,createFilterWrapper(od,qa),ld)}function watchPausable(Ra,qa,nd={}){const{eventFilter:od,...ld}=nd,{eventFilter:ud,pause:dd,resume:pd,isActive:fd}=pausableFilter(od);return{stop:watchWithFilter(Ra,qa,{...ld,eventFilter:ud}),pause:dd,resume:pd,isActive:fd}}function tryOnMounted(Ra,qa=!0,nd){getLifeCycleTarget()?onMounted(Ra,nd):qa?Ra():nextTick$1(Ra)}function useTimeoutFn(Ra,qa,nd={}){const{immediate:od=!0}=nd,ld=ref$1(!1);let ud=null;function dd(){ud&&(clearTimeout(ud),ud=null)}function pd(){ld.value=!1,dd()}function fd(...md){dd(),ld.value=!0,ud=setTimeout(()=>{ld.value=!1,ud=null,Ra(...md)},toValue(qa))}return od&&(ld.value=!0,isClient&&fd()),tryOnScopeDispose(pd),{isPending:readonly(ld),start:fd,stop:pd}}function useToggle(Ra=!1,qa={}){const{truthyValue:nd=!0,falsyValue:od=!1}=qa,ld=isRef(Ra),ud=ref$1(Ra);function dd(pd){if(arguments.length)return ud.value=pd,ud.value;{const fd=toValue(nd);return ud.value=ud.value===fd?toValue(od):fd,ud.value}}return ld?dd:[ud,dd]}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0,defaultNavigator=isClient?window.navigator:void 0;function unrefElement(Ra){var qa;const nd=toValue(Ra);return(qa=nd==null?void 0:nd.$el)!=null?qa:nd}function useEventListener(...Ra){let qa,nd,od,ld;if(typeof Ra[0]=="string"||Array.isArray(Ra[0])?([nd,od,ld]=Ra,qa=defaultWindow):[qa,nd,od,ld]=Ra,!qa)return noop$5;Array.isArray(nd)||(nd=[nd]),Array.isArray(od)||(od=[od]);const ud=[],dd=()=>{ud.forEach(vd=>vd()),ud.length=0},pd=(vd,Ad,Nd,Od)=>(vd.addEventListener(Ad,Nd,Od),()=>vd.removeEventListener(Ad,Nd,Od)),fd=watch(()=>[unrefElement(qa),toValue(ld)],([vd,Ad])=>{if(dd(),!vd)return;const Nd=isObject$5(Ad)?{...Ad}:Ad;ud.push(...nd.flatMap(Od=>od.map(kd=>pd(vd,Od,kd,Nd))))},{immediate:!0,flush:"post"}),md=()=>{fd(),dd()};return tryOnScopeDispose(md),md}function useMounted(){const Ra=ref$1(!1),qa=getCurrentInstance();return qa&&onMounted(()=>{Ra.value=!0},qa),Ra}function useSupported(Ra){const qa=useMounted();return computed(()=>(qa.value,!!Ra()))}function useMediaQuery(Ra,qa={}){const{window:nd=defaultWindow}=qa,od=useSupported(()=>nd&&"matchMedia"in nd&&typeof nd.matchMedia=="function");let ld;const ud=ref$1(!1),dd=md=>{ud.value=md.matches},pd=()=>{ld&&("removeEventListener"in ld?ld.removeEventListener("change",dd):ld.removeListener(dd))},fd=watchEffect(()=>{od.value&&(pd(),ld=nd.matchMedia(toValue(Ra)),"addEventListener"in ld?ld.addEventListener("change",dd):ld.addListener(dd),ud.value=ld.matches)});return tryOnScopeDispose(()=>{fd(),pd(),ld=void 0}),ud}function usePermission(Ra,qa={}){const{controls:nd=!1,navigator:od=defaultNavigator}=qa,ld=useSupported(()=>od&&"permissions"in od),ud=shallowRef(),dd=typeof Ra=="string"?{name:Ra}:Ra,pd=shallowRef(),fd=()=>{var vd,Ad;pd.value=(Ad=(vd=ud.value)==null?void 0:vd.state)!=null?Ad:"prompt"};useEventListener(ud,"change",fd);const md=createSingletonPromise(async()=>{if(ld.value){if(!ud.value)try{ud.value=await od.permissions.query(dd)}catch{ud.value=void 0}finally{fd()}if(nd)return toRaw(ud.value)}});return md(),nd?{state:pd,isSupported:ld,query:md}:pd}function useClipboard(Ra={}){const{navigator:qa=defaultNavigator,read:nd=!1,source:od,copiedDuring:ld=1500,legacy:ud=!1}=Ra,dd=useSupported(()=>qa&&"clipboard"in qa),pd=usePermission("clipboard-read"),fd=usePermission("clipboard-write"),md=computed(()=>dd.value||ud),vd=ref$1(""),Ad=ref$1(!1),Nd=useTimeoutFn(()=>Ad.value=!1,ld);function Od(){dd.value&&Ud(pd.value)?qa.clipboard.readText().then(Fd=>{vd.value=Fd}):vd.value=Gd()}md.value&&nd&&useEventListener(["copy","cut"],Od);async function kd(Fd=toValue(od)){md.value&&Fd!=null&&(dd.value&&Ud(fd.value)?await qa.clipboard.writeText(Fd):Ld(Fd),vd.value=Fd,Ad.value=!0,Nd.start())}function Ld(Fd){const jd=document.createElement("textarea");jd.value=Fd??"",jd.style.position="absolute",jd.style.opacity="0",document.body.appendChild(jd),jd.select(),document.execCommand("copy"),jd.remove()}function Gd(){var Fd,jd,qd;return(qd=(jd=(Fd=document==null?void 0:document.getSelection)==null?void 0:Fd.call(document))==null?void 0:jd.toString())!=null?qd:""}function Ud(Fd){return Fd==="granted"||Fd==="prompt"}return{isSupported:md,text:vd,copied:Ad,copy:kd}}function cloneFnJSON(Ra){return JSON.parse(JSON.stringify(Ra))}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$1<"u"?global$1:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(Ra,qa){return handlers[Ra]||qa}function usePreferredDark(Ra){return useMediaQuery("(prefers-color-scheme: dark)",Ra)}function guessSerializerType(Ra){return Ra==null?"any":Ra instanceof Set?"set":Ra instanceof Map?"map":Ra instanceof Date?"date":typeof Ra=="boolean"?"boolean":typeof Ra=="string"?"string":typeof Ra=="object"?"object":Number.isNaN(Ra)?"any":"number"}const StorageSerializers={boolean:{read:Ra=>Ra==="true",write:Ra=>String(Ra)},object:{read:Ra=>JSON.parse(Ra),write:Ra=>JSON.stringify(Ra)},number:{read:Ra=>Number.parseFloat(Ra),write:Ra=>String(Ra)},any:{read:Ra=>Ra,write:Ra=>String(Ra)},string:{read:Ra=>Ra,write:Ra=>String(Ra)},map:{read:Ra=>new Map(JSON.parse(Ra)),write:Ra=>JSON.stringify(Array.from(Ra.entries()))},set:{read:Ra=>new Set(JSON.parse(Ra)),write:Ra=>JSON.stringify(Array.from(Ra))},date:{read:Ra=>new Date(Ra),write:Ra=>Ra.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(Ra,qa,nd,od={}){var ld;const{flush:ud="pre",deep:dd=!0,listenToStorageChanges:pd=!0,writeDefaults:fd=!0,mergeDefaults:md=!1,shallow:vd,window:Ad=defaultWindow,eventFilter:Nd,onError:Od=pf=>{console.error(pf)},initOnMounted:kd}=od,Ld=(vd?shallowRef:ref$1)(typeof qa=="function"?qa():qa);if(!nd)try{nd=getSSRHandler("getDefaultStorage",()=>{var pf;return(pf=defaultWindow)==null?void 0:pf.localStorage})()}catch(pf){Od(pf)}if(!nd)return Ld;const Gd=toValue(qa),Ud=guessSerializerType(Gd),Fd=(ld=od.serializer)!=null?ld:StorageSerializers[Ud],{pause:jd,resume:qd}=watchPausable(Ld,()=>Yd(Ld.value),{flush:ud,deep:dd,eventFilter:Nd});Ad&&pd&&tryOnMounted(()=>{nd instanceof Storage?useEventListener(Ad,"storage",yf):useEventListener(Ad,customStorageEventName,Xd),kd&&yf()}),kd||yf();function zd(pf,mf){if(Ad){const Tf={key:Ra,oldValue:pf,newValue:mf,storageArea:nd};Ad.dispatchEvent(nd instanceof Storage?new StorageEvent("storage",Tf):new CustomEvent(customStorageEventName,{detail:Tf}))}}function Yd(pf){try{const mf=nd.getItem(Ra);if(pf==null)zd(mf,null),nd.removeItem(Ra);else{const Tf=Fd.write(pf);mf!==Tf&&(nd.setItem(Ra,Tf),zd(mf,Tf))}}catch(mf){Od(mf)}}function Jd(pf){const mf=pf?pf.newValue:nd.getItem(Ra);if(mf==null)return fd&&Gd!=null&&nd.setItem(Ra,Fd.write(Gd)),Gd;if(!pf&&md){const Tf=Fd.read(mf);return typeof md=="function"?md(Tf,Gd):Ud==="object"&&!Array.isArray(Tf)?{...Gd,...Tf}:Tf}else return typeof mf!="string"?mf:Fd.read(mf)}function yf(pf){if(!(pf&&pf.storageArea!==nd)){if(pf&&pf.key==null){Ld.value=Gd;return}if(!(pf&&pf.key!==Ra)){jd();try{(pf==null?void 0:pf.newValue)!==Fd.write(Ld.value)&&(Ld.value=Jd(pf))}catch(mf){Od(mf)}finally{pf?nextTick$1(qd):qd()}}}}function Xd(pf){yf(pf.detail)}return Ld}const CSS_DISABLE_TRANS="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function useColorMode(Ra={}){const{selector:qa="html",attribute:nd="class",initialValue:od="auto",window:ld=defaultWindow,storage:ud,storageKey:dd="vueuse-color-scheme",listenToStorageChanges:pd=!0,storageRef:fd,emitAuto:md,disableTransition:vd=!0}=Ra,Ad={auto:"",light:"light",dark:"dark",...Ra.modes||{}},Nd=usePreferredDark({window:ld}),Od=computed(()=>Nd.value?"dark":"light"),kd=fd||(dd==null?toRef(od):useStorage(dd,od,ud,{window:ld,listenToStorageChanges:pd})),Ld=computed(()=>kd.value==="auto"?Od.value:kd.value),Gd=getSSRHandler("updateHTMLAttrs",(qd,zd,Yd)=>{const Jd=typeof qd=="string"?ld==null?void 0:ld.document.querySelector(qd):unrefElement(qd);if(!Jd)return;const yf=new Set,Xd=new Set;let pf=null;if(zd==="class"){const Tf=Yd.split(/\s/g);Object.values(Ad).flatMap(vf=>(vf||"").split(/\s/g)).filter(Boolean).forEach(vf=>{Tf.includes(vf)?yf.add(vf):Xd.add(vf)})}else pf={key:zd,value:Yd};if(yf.size===0&&Xd.size===0&&pf===null)return;let mf;vd&&(mf=ld.document.createElement("style"),mf.appendChild(document.createTextNode(CSS_DISABLE_TRANS)),ld.document.head.appendChild(mf));for(const Tf of yf)Jd.classList.add(Tf);for(const Tf of Xd)Jd.classList.remove(Tf);pf&&Jd.setAttribute(pf.key,pf.value),vd&&(ld.getComputedStyle(mf).opacity,document.head.removeChild(mf))});function Ud(qd){var zd;Gd(qa,nd,(zd=Ad[qd])!=null?zd:qd)}function Fd(qd){Ra.onChanged?Ra.onChanged(qd,Ud):Ud(qd)}watch(Ld,Fd,{flush:"post",immediate:!0}),tryOnMounted(()=>Fd(Ld.value));const jd=computed({get(){return md?kd.value:Ld.value},set(qd){kd.value=qd}});return Object.assign(jd,{store:kd,system:Od,state:Ld})}function useDark(Ra={}){const{valueDark:qa="dark",valueLight:nd=""}=Ra,od=useColorMode({...Ra,onChanged:(dd,pd)=>{var fd;Ra.onChanged?(fd=Ra.onChanged)==null||fd.call(Ra,dd==="dark",pd,dd):pd(dd)},modes:{dark:qa,light:nd}}),ld=computed(()=>od.system.value);return computed({get(){return od.value==="dark"},set(dd){const pd=dd?"dark":"light";ld.value===pd?od.value="auto":od.value=pd}})}const DEFAULT_OPTIONS={multiple:!0,accept:"*",reset:!1,directory:!1};function useFileDialog(Ra={}){const{document:qa=defaultDocument}=Ra,nd=ref$1(null),{on:od,trigger:ld}=createEventHook(),{on:ud,trigger:dd}=createEventHook();let pd;qa&&(pd=qa.createElement("input"),pd.type="file",pd.onchange=vd=>{const Ad=vd.target;nd.value=Ad.files,ld(nd.value)},pd.oncancel=()=>{dd()});const fd=()=>{nd.value=null,pd&&pd.value&&(pd.value="",ld(null))},md=vd=>{if(!pd)return;const Ad={...DEFAULT_OPTIONS,...Ra,...vd};pd.multiple=Ad.multiple,pd.accept=Ad.accept,pd.webkitdirectory=Ad.directory,hasOwn$2(Ad,"capture")&&(pd.capture=Ad.capture),Ad.reset&&fd(),pd.click()};return{files:readonly(nd),open:md,reset:fd,onCancel:ud,onChange:od}}function useLocalStorage(Ra,qa,nd={}){const{window:od=defaultWindow}=nd;return useStorage(Ra,qa,od==null?void 0:od.localStorage,nd)}function useVModel(Ra,qa,nd,od={}){var ld,ud,dd;const{clone:pd=!1,passive:fd=!1,eventName:md,deep:vd=!1,defaultValue:Ad,shouldEmit:Nd}=od,Od=getCurrentInstance(),kd=nd||(Od==null?void 0:Od.emit)||((ld=Od==null?void 0:Od.$emit)==null?void 0:ld.bind(Od))||((dd=(ud=Od==null?void 0:Od.proxy)==null?void 0:ud.$emit)==null?void 0:dd.bind(Od==null?void 0:Od.proxy));let Ld=md;Ld=Ld||`update:${qa.toString()}`;const Gd=jd=>pd?typeof pd=="function"?pd(jd):cloneFnJSON(jd):jd,Ud=()=>isDef(Ra[qa])?Gd(Ra[qa]):Ad,Fd=jd=>{Nd?Nd(jd)&&kd(Ld,jd):kd(Ld,jd)};if(fd){const jd=Ud(),qd=ref$1(jd);let zd=!1;return watch(()=>Ra[qa],Yd=>{zd||(zd=!0,qd.value=Gd(Yd),nextTick$1(()=>zd=!1))}),watch(qd,Yd=>{!zd&&(Yd!==Ra[qa]||vd)&&Fd(Yd)},{deep:vd}),qd}else return computed({get(){return Ud()},set(jd){Fd(jd)}})}const _sfc_main$1e=defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},setup(Ra,{emit:qa}){const nd=Ra,ld=useVModel(nd,"modelValue",qa,{passive:!0,defaultValue:nd.defaultValue});return(ud,dd)=>withDirectives((openBlock(),createElementBlock("input",{"onUpdate:modelValue":dd[0]||(dd[0]=pd=>isRef(ld)?ld.value=pd:null),class:normalizeClass(unref(cn$5)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",nd.class))},null,2)),[[vModelText,unref(ld)]])}}),_sfc_main$1d=defineComponent({__name:"NumberField",props:{defaultValue:{},modelValue:{},min:{},max:{},step:{},formatOptions:{},locale:{},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(cy$1),mergeProps(unref(ud),{class:unref(cn$5)("grid gap-1.5",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1c=defineComponent({__name:"NumberFieldContent",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("relative [&>[data-slot=input]]:has-[[data-slot=increment]]:pr-5 [&>[data-slot=input]]:has-[[data-slot=decrement]]:pl-5",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$1b=defineComponent({__name:"NumberFieldIncrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(fy$1),mergeProps({"data-slot":"increment"},unref(od),{class:unref(cn$5)("absolute top-1/2 -translate-y-1/2 right-0 disabled:cursor-not-allowed disabled:opacity-20 p-3",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{},()=>[createVNode(unref(Plus),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),_sfc_main$1a=defineComponent({__name:"NumberFieldInput",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(py$1),{"data-slot":"input",class:normalizeClass(unref(cn$5)("flex h-10 w-full rounded-md border border-input bg-background py-2 text-sm text-center ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",qa.class))},null,8,["class"]))}}),_sfc_main$19=defineComponent({__name:"NumberFieldDecrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(vy$1),mergeProps({"data-slot":"decrement"},unref(od),{class:unref(cn$5)("absolute top-1/2 -translate-y-1/2 left-0 p-3 disabled:cursor-not-allowed disabled:opacity-20",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{},()=>[createVNode(unref(Minus),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),_sfc_main$18=defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Ih),mergeProps(nd.value,{class:unref(cn$5)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$17=defineComponent({__name:"DialogHeader",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("flex flex-col gap-y-1.5 text-center sm:text-left",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$16=defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(xu$2),mergeProps(unref(od),{class:unref(cn$5)("text-lg font-semibold leading-none tracking-tight",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),DEFAULT_CONTENT=`# 探索 Markdown 的奇妙世界 + */const X$7=createLucideIcon("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_sfc_main$1g=defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(xv),null,{default:withCtx(()=>[createVNode(unref(_u$3),{class:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"}),createVNode(unref(Cu$3),mergeProps(unref(ud),{class:unref(cn$5)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default"),createVNode(unref(Ul$3),{class:"data-[state=open]:bg-accent ring-offset-background data-[state=open]:text-muted-foreground focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity disabled:pointer-events-none hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2"},{default:withCtx(()=>[createVNode(unref(X$7),{class:"h-4 w-4"}),pd[0]||(pd[0]=createBaseVNode("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),_sfc_main$1f=defineComponent({__name:"DialogFooter",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",qa.class))},[renderSlot(nd.$slots,"default")],2))}});function tryOnScopeDispose(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function createEventHook(){const Ra=new Set,qa=ld=>{Ra.delete(ld)};return{on:ld=>{Ra.add(ld);const ud=()=>qa(ld);return tryOnScopeDispose(ud),{off:ud}},off:qa,trigger:(...ld)=>Promise.all(Array.from(Ra).map(ud=>ud(...ld)))}}function toValue(Ra){return typeof Ra=="function"?Ra():unref(Ra)}const isClient$1=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef=Ra=>typeof Ra<"u",toString$4=Object.prototype.toString,isObject$8=Ra=>toString$4.call(Ra)==="[object Object]",noop$5=()=>{},hasOwn$2=(Ra,qa)=>Object.prototype.hasOwnProperty.call(Ra,qa);function createFilterWrapper(Ra,qa){function nd(...od){return new Promise((ld,ud)=>{Promise.resolve(Ra(()=>qa.apply(this,od),{fn:qa,thisArg:this,args:od})).then(ld).catch(ud)})}return nd}const bypassFilter=Ra=>Ra();function pausableFilter(Ra=bypassFilter){const qa=ref$1(!0);function nd(){qa.value=!1}function od(){qa.value=!0}const ld=(...ud)=>{qa.value&&Ra(...ud)};return{isActive:readonly(qa),pause:nd,resume:od,eventFilter:ld}}function createSingletonPromise(Ra){let qa;function nd(){return qa||(qa=Ra()),qa}return nd.reset=async()=>{const od=qa;qa=void 0,od&&await od},nd}function getLifeCycleTarget(Ra){return getCurrentInstance()}function toRef(...Ra){if(Ra.length!==1)return toRef$1(...Ra);const qa=Ra[0];return typeof qa=="function"?readonly(customRef(()=>({get:qa,set:noop$5}))):ref$1(qa)}function watchWithFilter(Ra,qa,nd={}){const{eventFilter:od=bypassFilter,...ld}=nd;return watch(Ra,createFilterWrapper(od,qa),ld)}function watchPausable(Ra,qa,nd={}){const{eventFilter:od,...ld}=nd,{eventFilter:ud,pause:dd,resume:pd,isActive:fd}=pausableFilter(od);return{stop:watchWithFilter(Ra,qa,{...ld,eventFilter:ud}),pause:dd,resume:pd,isActive:fd}}function tryOnMounted(Ra,qa=!0,nd){getLifeCycleTarget()?onMounted(Ra,nd):qa?Ra():nextTick$1(Ra)}function useTimeoutFn(Ra,qa,nd={}){const{immediate:od=!0}=nd,ld=ref$1(!1);let ud=null;function dd(){ud&&(clearTimeout(ud),ud=null)}function pd(){ld.value=!1,dd()}function fd(...md){dd(),ld.value=!0,ud=setTimeout(()=>{ld.value=!1,ud=null,Ra(...md)},toValue(qa))}return od&&(ld.value=!0,isClient$1&&fd()),tryOnScopeDispose(pd),{isPending:readonly(ld),start:fd,stop:pd}}function useToggle(Ra=!1,qa={}){const{truthyValue:nd=!0,falsyValue:od=!1}=qa,ld=isRef(Ra),ud=ref$1(Ra);function dd(pd){if(arguments.length)return ud.value=pd,ud.value;{const fd=toValue(nd);return ud.value=ud.value===fd?toValue(od):fd,ud.value}}return ld?dd:[ud,dd]}const defaultWindow=isClient$1?window:void 0,defaultDocument=isClient$1?window.document:void 0,defaultNavigator=isClient$1?window.navigator:void 0;function unrefElement(Ra){var qa;const nd=toValue(Ra);return(qa=nd==null?void 0:nd.$el)!=null?qa:nd}function useEventListener(...Ra){let qa,nd,od,ld;if(typeof Ra[0]=="string"||Array.isArray(Ra[0])?([nd,od,ld]=Ra,qa=defaultWindow):[qa,nd,od,ld]=Ra,!qa)return noop$5;Array.isArray(nd)||(nd=[nd]),Array.isArray(od)||(od=[od]);const ud=[],dd=()=>{ud.forEach(vd=>vd()),ud.length=0},pd=(vd,Ad,Nd,Od)=>(vd.addEventListener(Ad,Nd,Od),()=>vd.removeEventListener(Ad,Nd,Od)),fd=watch(()=>[unrefElement(qa),toValue(ld)],([vd,Ad])=>{if(dd(),!vd)return;const Nd=isObject$8(Ad)?{...Ad}:Ad;ud.push(...nd.flatMap(Od=>od.map(kd=>pd(vd,Od,kd,Nd))))},{immediate:!0,flush:"post"}),md=()=>{fd(),dd()};return tryOnScopeDispose(md),md}function useMounted(){const Ra=ref$1(!1),qa=getCurrentInstance();return qa&&onMounted(()=>{Ra.value=!0},qa),Ra}function useSupported(Ra){const qa=useMounted();return computed(()=>(qa.value,!!Ra()))}function useMediaQuery(Ra,qa={}){const{window:nd=defaultWindow}=qa,od=useSupported(()=>nd&&"matchMedia"in nd&&typeof nd.matchMedia=="function");let ld;const ud=ref$1(!1),dd=md=>{ud.value=md.matches},pd=()=>{ld&&("removeEventListener"in ld?ld.removeEventListener("change",dd):ld.removeListener(dd))},fd=watchEffect(()=>{od.value&&(pd(),ld=nd.matchMedia(toValue(Ra)),"addEventListener"in ld?ld.addEventListener("change",dd):ld.addListener(dd),ud.value=ld.matches)});return tryOnScopeDispose(()=>{fd(),pd(),ld=void 0}),ud}function usePermission(Ra,qa={}){const{controls:nd=!1,navigator:od=defaultNavigator}=qa,ld=useSupported(()=>od&&"permissions"in od),ud=shallowRef(),dd=typeof Ra=="string"?{name:Ra}:Ra,pd=shallowRef(),fd=()=>{var vd,Ad;pd.value=(Ad=(vd=ud.value)==null?void 0:vd.state)!=null?Ad:"prompt"};useEventListener(ud,"change",fd);const md=createSingletonPromise(async()=>{if(ld.value){if(!ud.value)try{ud.value=await od.permissions.query(dd)}catch{ud.value=void 0}finally{fd()}if(nd)return toRaw(ud.value)}});return md(),nd?{state:pd,isSupported:ld,query:md}:pd}function useClipboard(Ra={}){const{navigator:qa=defaultNavigator,read:nd=!1,source:od,copiedDuring:ld=1500,legacy:ud=!1}=Ra,dd=useSupported(()=>qa&&"clipboard"in qa),pd=usePermission("clipboard-read"),fd=usePermission("clipboard-write"),md=computed(()=>dd.value||ud),vd=ref$1(""),Ad=ref$1(!1),Nd=useTimeoutFn(()=>Ad.value=!1,ld);function Od(){dd.value&&jd(pd.value)?qa.clipboard.readText().then(Fd=>{vd.value=Fd}):vd.value=Gd()}md.value&&nd&&useEventListener(["copy","cut"],Od);async function kd(Fd=toValue(od)){md.value&&Fd!=null&&(dd.value&&jd(fd.value)?await qa.clipboard.writeText(Fd):Ld(Fd),vd.value=Fd,Ad.value=!0,Nd.start())}function Ld(Fd){const Ud=document.createElement("textarea");Ud.value=Fd??"",Ud.style.position="absolute",Ud.style.opacity="0",document.body.appendChild(Ud),Ud.select(),document.execCommand("copy"),Ud.remove()}function Gd(){var Fd,Ud,qd;return(qd=(Ud=(Fd=document==null?void 0:document.getSelection)==null?void 0:Fd.call(document))==null?void 0:Ud.toString())!=null?qd:""}function jd(Fd){return Fd==="granted"||Fd==="prompt"}return{isSupported:md,text:vd,copied:Ad,copy:kd}}function cloneFnJSON(Ra){return JSON.parse(JSON.stringify(Ra))}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global$1<"u"?global$1:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(Ra,qa){return handlers[Ra]||qa}function usePreferredDark(Ra){return useMediaQuery("(prefers-color-scheme: dark)",Ra)}function guessSerializerType(Ra){return Ra==null?"any":Ra instanceof Set?"set":Ra instanceof Map?"map":Ra instanceof Date?"date":typeof Ra=="boolean"?"boolean":typeof Ra=="string"?"string":typeof Ra=="object"?"object":Number.isNaN(Ra)?"any":"number"}const StorageSerializers={boolean:{read:Ra=>Ra==="true",write:Ra=>String(Ra)},object:{read:Ra=>JSON.parse(Ra),write:Ra=>JSON.stringify(Ra)},number:{read:Ra=>Number.parseFloat(Ra),write:Ra=>String(Ra)},any:{read:Ra=>Ra,write:Ra=>String(Ra)},string:{read:Ra=>Ra,write:Ra=>String(Ra)},map:{read:Ra=>new Map(JSON.parse(Ra)),write:Ra=>JSON.stringify(Array.from(Ra.entries()))},set:{read:Ra=>new Set(JSON.parse(Ra)),write:Ra=>JSON.stringify(Array.from(Ra))},date:{read:Ra=>new Date(Ra),write:Ra=>Ra.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(Ra,qa,nd,od={}){var ld;const{flush:ud="pre",deep:dd=!0,listenToStorageChanges:pd=!0,writeDefaults:fd=!0,mergeDefaults:md=!1,shallow:vd,window:Ad=defaultWindow,eventFilter:Nd,onError:Od=pf=>{console.error(pf)},initOnMounted:kd}=od,Ld=(vd?shallowRef:ref$1)(typeof qa=="function"?qa():qa);if(!nd)try{nd=getSSRHandler("getDefaultStorage",()=>{var pf;return(pf=defaultWindow)==null?void 0:pf.localStorage})()}catch(pf){Od(pf)}if(!nd)return Ld;const Gd=toValue(qa),jd=guessSerializerType(Gd),Fd=(ld=od.serializer)!=null?ld:StorageSerializers[jd],{pause:Ud,resume:qd}=watchPausable(Ld,()=>Wd(Ld.value),{flush:ud,deep:dd,eventFilter:Nd});Ad&&pd&&tryOnMounted(()=>{nd instanceof Storage?useEventListener(Ad,"storage",_f):useEventListener(Ad,customStorageEventName,Xd),kd&&_f()}),kd||_f();function zd(pf,mf){if(Ad){const Sf={key:Ra,oldValue:pf,newValue:mf,storageArea:nd};Ad.dispatchEvent(nd instanceof Storage?new StorageEvent("storage",Sf):new CustomEvent(customStorageEventName,{detail:Sf}))}}function Wd(pf){try{const mf=nd.getItem(Ra);if(pf==null)zd(mf,null),nd.removeItem(Ra);else{const Sf=Fd.write(pf);mf!==Sf&&(nd.setItem(Ra,Sf),zd(mf,Sf))}}catch(mf){Od(mf)}}function Jd(pf){const mf=pf?pf.newValue:nd.getItem(Ra);if(mf==null)return fd&&Gd!=null&&nd.setItem(Ra,Fd.write(Gd)),Gd;if(!pf&&md){const Sf=Fd.read(mf);return typeof md=="function"?md(Sf,Gd):jd==="object"&&!Array.isArray(Sf)?{...Gd,...Sf}:Sf}else return typeof mf!="string"?mf:Fd.read(mf)}function _f(pf){if(!(pf&&pf.storageArea!==nd)){if(pf&&pf.key==null){Ld.value=Gd;return}if(!(pf&&pf.key!==Ra)){Ud();try{(pf==null?void 0:pf.newValue)!==Fd.write(Ld.value)&&(Ld.value=Jd(pf))}catch(mf){Od(mf)}finally{pf?nextTick$1(qd):qd()}}}}function Xd(pf){_f(pf.detail)}return Ld}const CSS_DISABLE_TRANS="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function useColorMode(Ra={}){const{selector:qa="html",attribute:nd="class",initialValue:od="auto",window:ld=defaultWindow,storage:ud,storageKey:dd="vueuse-color-scheme",listenToStorageChanges:pd=!0,storageRef:fd,emitAuto:md,disableTransition:vd=!0}=Ra,Ad={auto:"",light:"light",dark:"dark",...Ra.modes||{}},Nd=usePreferredDark({window:ld}),Od=computed(()=>Nd.value?"dark":"light"),kd=fd||(dd==null?toRef(od):useStorage(dd,od,ud,{window:ld,listenToStorageChanges:pd})),Ld=computed(()=>kd.value==="auto"?Od.value:kd.value),Gd=getSSRHandler("updateHTMLAttrs",(qd,zd,Wd)=>{const Jd=typeof qd=="string"?ld==null?void 0:ld.document.querySelector(qd):unrefElement(qd);if(!Jd)return;const _f=new Set,Xd=new Set;let pf=null;if(zd==="class"){const Sf=Wd.split(/\s/g);Object.values(Ad).flatMap(Tf=>(Tf||"").split(/\s/g)).filter(Boolean).forEach(Tf=>{Sf.includes(Tf)?_f.add(Tf):Xd.add(Tf)})}else pf={key:zd,value:Wd};if(_f.size===0&&Xd.size===0&&pf===null)return;let mf;vd&&(mf=ld.document.createElement("style"),mf.appendChild(document.createTextNode(CSS_DISABLE_TRANS)),ld.document.head.appendChild(mf));for(const Sf of _f)Jd.classList.add(Sf);for(const Sf of Xd)Jd.classList.remove(Sf);pf&&Jd.setAttribute(pf.key,pf.value),vd&&(ld.getComputedStyle(mf).opacity,document.head.removeChild(mf))});function jd(qd){var zd;Gd(qa,nd,(zd=Ad[qd])!=null?zd:qd)}function Fd(qd){Ra.onChanged?Ra.onChanged(qd,jd):jd(qd)}watch(Ld,Fd,{flush:"post",immediate:!0}),tryOnMounted(()=>Fd(Ld.value));const Ud=computed({get(){return md?kd.value:Ld.value},set(qd){kd.value=qd}});return Object.assign(Ud,{store:kd,system:Od,state:Ld})}function useDark(Ra={}){const{valueDark:qa="dark",valueLight:nd=""}=Ra,od=useColorMode({...Ra,onChanged:(dd,pd)=>{var fd;Ra.onChanged?(fd=Ra.onChanged)==null||fd.call(Ra,dd==="dark",pd,dd):pd(dd)},modes:{dark:qa,light:nd}}),ld=computed(()=>od.system.value);return computed({get(){return od.value==="dark"},set(dd){const pd=dd?"dark":"light";ld.value===pd?od.value="auto":od.value=pd}})}const DEFAULT_OPTIONS={multiple:!0,accept:"*",reset:!1,directory:!1};function useFileDialog(Ra={}){const{document:qa=defaultDocument}=Ra,nd=ref$1(null),{on:od,trigger:ld}=createEventHook(),{on:ud,trigger:dd}=createEventHook();let pd;qa&&(pd=qa.createElement("input"),pd.type="file",pd.onchange=vd=>{const Ad=vd.target;nd.value=Ad.files,ld(nd.value)},pd.oncancel=()=>{dd()});const fd=()=>{nd.value=null,pd&&pd.value&&(pd.value="",ld(null))},md=vd=>{if(!pd)return;const Ad={...DEFAULT_OPTIONS,...Ra,...vd};pd.multiple=Ad.multiple,pd.accept=Ad.accept,pd.webkitdirectory=Ad.directory,hasOwn$2(Ad,"capture")&&(pd.capture=Ad.capture),Ad.reset&&fd(),pd.click()};return{files:readonly(nd),open:md,reset:fd,onCancel:ud,onChange:od}}function useLocalStorage(Ra,qa,nd={}){const{window:od=defaultWindow}=nd;return useStorage(Ra,qa,od==null?void 0:od.localStorage,nd)}function useVModel$1(Ra,qa,nd,od={}){var ld,ud,dd;const{clone:pd=!1,passive:fd=!1,eventName:md,deep:vd=!1,defaultValue:Ad,shouldEmit:Nd}=od,Od=getCurrentInstance(),kd=nd||(Od==null?void 0:Od.emit)||((ld=Od==null?void 0:Od.$emit)==null?void 0:ld.bind(Od))||((dd=(ud=Od==null?void 0:Od.proxy)==null?void 0:ud.$emit)==null?void 0:dd.bind(Od==null?void 0:Od.proxy));let Ld=md;Ld=Ld||`update:${qa.toString()}`;const Gd=Ud=>pd?typeof pd=="function"?pd(Ud):cloneFnJSON(Ud):Ud,jd=()=>isDef(Ra[qa])?Gd(Ra[qa]):Ad,Fd=Ud=>{Nd?Nd(Ud)&&kd(Ld,Ud):kd(Ld,Ud)};if(fd){const Ud=jd(),qd=ref$1(Ud);let zd=!1;return watch(()=>Ra[qa],Wd=>{zd||(zd=!0,qd.value=Gd(Wd),nextTick$1(()=>zd=!1))}),watch(qd,Wd=>{!zd&&(Wd!==Ra[qa]||vd)&&Fd(Wd)},{deep:vd}),qd}else return computed({get(){return jd()},set(Ud){Fd(Ud)}})}const _sfc_main$1e=defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},setup(Ra,{emit:qa}){const nd=Ra,ld=useVModel$1(nd,"modelValue",qa,{passive:!0,defaultValue:nd.defaultValue});return(ud,dd)=>withDirectives((openBlock(),createElementBlock("input",{"onUpdate:modelValue":dd[0]||(dd[0]=pd=>isRef(ld)?ld.value=pd:null),class:normalizeClass(unref(cn$5)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",nd.class))},null,2)),[[vModelText,unref(ld)]])}}),_sfc_main$1d=defineComponent({__name:"NumberField",props:{defaultValue:{},modelValue:{},min:{},max:{},step:{},formatOptions:{},locale:{},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(cy$1),mergeProps(unref(ud),{class:unref(cn$5)("grid gap-1.5",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1c=defineComponent({__name:"NumberFieldContent",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("relative [&>[data-slot=input]]:has-[[data-slot=increment]]:pr-5 [&>[data-slot=input]]:has-[[data-slot=decrement]]:pl-5",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$1b=defineComponent({__name:"NumberFieldIncrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(fy$1),mergeProps({"data-slot":"increment"},unref(od),{class:unref(cn$5)("absolute top-1/2 -translate-y-1/2 right-0 disabled:cursor-not-allowed disabled:opacity-20 p-3",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{},()=>[createVNode(unref(Plus),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),_sfc_main$1a=defineComponent({__name:"NumberFieldInput",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(py$1),{"data-slot":"input",class:normalizeClass(unref(cn$5)("flex h-10 w-full rounded-md border border-input bg-background py-2 text-sm text-center ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",qa.class))},null,8,["class"]))}}),_sfc_main$19=defineComponent({__name:"NumberFieldDecrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(vy$1),mergeProps({"data-slot":"decrement"},unref(od),{class:unref(cn$5)("absolute top-1/2 -translate-y-1/2 left-0 p-3 disabled:cursor-not-allowed disabled:opacity-20",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{},()=>[createVNode(unref(Minus),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),_sfc_main$18=defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(Ih),mergeProps(nd.value,{class:unref(cn$5)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$17=defineComponent({__name:"DialogHeader",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("flex flex-col gap-y-1.5 text-center sm:text-left",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$16=defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(xu$2),mergeProps(unref(od),{class:unref(cn$5)("text-lg font-semibold leading-none tracking-tight",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),DEFAULT_CONTENT=`# 探索 Markdown 的奇妙世界 欢迎来到 Markdown 的奇妙世界!无论你是写作爱好者、开发者、博主,还是想要简单记录点什么的人,Markdown 都能成为你新的好伙伴。它不仅让写作变得简单明了,还能轻松地将内容转化为漂亮的网页格式。今天,我们将全面探讨 Markdown 的基础和进阶语法,让你在这个过程中充分享受写作的乐趣! @@ -466,26 +466,26 @@ code { /* 代码块外层样式 */ code_pre { } -`,githubConfig={username:"bucketio",repoList:Array.from({length:20},(Ra,qa)=>`img${qa}`),branch:"main",accessTokenList:["ghp_sqQg5y7XC7Fy8XdoocsmdVEYRiRiTZPvbwzTL4MRjQc","ghp_jB5JXzBjpGbgzdoocsmdogWfSHhfCKGVstozw1cAsPv","ghp_zvy8wkHo259g7doocsmdJnUKOQd1WO1SPzZ9G0O9cJD","ghp_DnCJc2Ms0RVZ1doocsmdiWOAN78FurfSeD1Pv2Y28pO","ghp_EsMYDv9WVjXWP5doocsmd1nnDml2DEP95rOiz44bSo0","ghp_L4isHf01nllOOdoocsmdHBGoDG6jscCA09WV44QDvlg","ghp_qWciwYXHPakAUGdoocsmdBOBZdRcV08JThKey3mBZNJ","ghp_rxkvIO08wVL2DMdoocsmd2jDEhcatp2rfVyhd3A7RiS","ghp_1RvkWKboSxr0yVdoocsmd7OtBCpecYwoV6deh3utifJ","ghp_cduanDnAug60ngdoocsmdF1uDstXUi6S9RMhY1qdada","ghp_q6mxuJIkqAcsCXdoocsmdkkjWvzGlMVRuy5zI0IWNDx","ghp_Pv4npPeJpChKFMTdoocsmdCQneopUcqJrqrjl3vrt9A","ghp_gKMCFqMaQiLTqhjdoocsmd7BJE8RyK6AdRw4b42CutS","ghp_2oShgb33qFlqBmadoocsmdludmuLYxBFY5bao1XrsVo","ghp_eYyd3kxWTZmsV8doocsmdDFbAa7AEGQTJgmOd0GUmtY"]},giteeConfig={username:"filesss",repoList:Array.from({length:20},(Ra,qa)=>`img${qa}`),branch:"main",accessTokenList:["ed5fc9866bd6c2fdoocsmddd433f806fd2f399c","5448ffebbbf1151doocsmdc4e337cf814fc8a62","25b05efd2557ca2doocsmd75b5c0835e3395911","11628c7a5aef015doocsmd2eeff9fb9566f0458","cb2f5145ed938dedoocsmdbd063b4ed244eecf8","d8c0b57500672c1doocsmd55f48b866b5ebcd98","78c56eadb88e453doocsmd43ddd95753351771a","03e1a688003948fdoocsmda16fcf41e6f03f1f0","c49121cf4d191fbdoocsmdd6a7877ed537e474a","adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff","116c94549ca4a0ddoocsmd192653af5c0694616","ecf30ed7f2eb184doocsmd51ea4ec8300371d9e","5837cf2bd5afd93doocsmd73904bed31934949e","b5b7e1c7d57e01fdoocsmd5266f552574297d78","684d55564ffbd0bdoocsmd7d747e5cc23aed6d6","3fc04a9d272ab71doocsmd010c56cb57d88d2ba"]},fontFamilyOptions=[{label:"无衬线",value:"-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif",desc:"字体123Abc"},{label:"衬线",value:"Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif",desc:"字体123Abc"},{label:"等宽",value:"Menlo, Monaco, 'Courier New', monospace",desc:"字体123Abc"}],fontSizeOptions=[{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:"更大"}],colorOptions=[{label:"经典蓝",value:"#0F4C81",desc:"稳重冷静"},{label:"翡翠绿",value:"#009874",desc:"自然平衡"},{label:"活力橘",value:"#FA5151",desc:"热情活力"},{label:"柠檬黄",value:"#FECE00",desc:"明亮温暖"},{label:"薰衣紫",value:"#92617E",desc:"优雅神秘"},{label:"天空蓝",value:"#55C9EA",desc:"清爽自由"},{label:"玫瑰金",value:"#B76E79",desc:"奢华现代"},{label:"橄榄绿",value:"#556B2F",desc:"沉稳自然"},{label:"石墨黑",value:"#333333",desc:"内敛极简"},{label:"雾烟灰",value:"#A9A9A9",desc:"柔和低调"},{label:"樱花粉",value:"#FFB7C5",desc:"浪漫甜美"}],codeBlockUrlPrefix="https://cdn.bootcdn.net/ajax/libs/highlight.js/11.10.0/styles/",codeBlockThemeList=["1c-light.min.css","a11y-dark.min.css","a11y-light.min.css","agate.min.css","an-old-hope.min.css","androidstudio.min.css","arduino-light.min.css","arta.min.css","ascetic.min.css","atom-one-dark-reasonable.min.css","atom-one-dark.min.css","atom-one-light.min.css","brown-paper.min.css","codepen-embed.min.css","color-brewer.min.css","dark.min.css","default.min.css","devibeans.min.css","docco.min.css","far.min.css","felipec.min.css","foundation.min.css","github-dark-dimmed.min.css","github-dark.min.css","github.min.css","gml.min.css","googlecode.min.css","gradient-dark.min.css","gradient-light.min.css","grayscale.min.css","hybrid.min.css","idea.min.css","intellij-light.min.css","ir-black.min.css","isbl-editor-dark.min.css","isbl-editor-light.min.css","kimbie-dark.min.css","kimbie-light.min.css","lightfair.min.css","lioshi.min.css","magula.min.css","mono-blue.min.css","monokai-sublime.min.css","monokai.min.css","night-owl.min.css","nnfx-dark.min.css","nnfx-light.min.css","nord.min.css","obsidian.min.css","panda-syntax-dark.min.css","panda-syntax-light.min.css","paraiso-dark.min.css","paraiso-light.min.css","pojoaque.min.css","purebasic.min.css","qtcreator-dark.min.css","qtcreator-light.min.css","rainbow.min.css","routeros.min.css","school-book.min.css","shades-of-purple.min.css","srcery.min.css","stackoverflow-dark.min.css","stackoverflow-light.min.css","sunburst.min.css","tokyo-night-dark.min.css","tokyo-night-light.min.css","tomorrow-night-blue.min.css","tomorrow-night-bright.min.css","vs.min.css","vs2015.min.css","xcode.min.css","xt256.min.css"].sort(),codeBlockThemeOptions=codeBlockThemeList.map(Ra=>{const qa=Ra.replace(".min.css",""),nd=`${codeBlockUrlPrefix}${Ra}`;return{label:qa,value:nd,desc:""}}),legendOptions=[{label:"title 优先",value:"title-alt",desc:""},{label:"alt 优先",value:"alt-title",desc:""},{label:"只显示 title",value:"title",desc:""},{label:"只显示 alt",value:"alt",desc:""},{label:"不显示",value:"none",desc:""}];function debounce(Ra,qa,{signal:nd,edges:od}={}){let ld,ud=null;const dd=od!=null&&od.includes("leading"),pd=od==null||od.includes("trailing"),fd=()=>{ud!==null&&(Ra.apply(ld,ud),ld=void 0,ud=null)},md=()=>{pd&&fd(),Od()};let vd=null;const Ad=()=>{vd!=null&&clearTimeout(vd),vd=setTimeout(()=>{vd=null,md()},qa)},Nd=()=>{vd!==null&&(clearTimeout(vd),vd=null)},Od=()=>{Nd(),ld=void 0,ud=null},kd=()=>{Nd(),fd()},Ld=function(...Gd){if(nd!=null&&nd.aborted)return;ld=this,ud=Gd;const Ud=vd==null;Ad(),dd&&Ud&&fd()};return Ld.schedule=Ad,Ld.cancel=Od,Ld.flush=kd,nd==null||nd.addEventListener("abort",Od,{once:!0}),Ld}function throttle$1(Ra,qa,{signal:nd,edges:od=["leading","trailing"]}={}){let ld=null;const ud=debounce(Ra,qa,{signal:nd,edges:od}),dd=function(...pd){ld==null?ld=Date.now():Date.now()-ld>=qa&&(ld=Date.now(),ud.cancel(),ud(...pd)),ud(...pd)};return dd.cancel=ud.cancel,dd.flush=ud.flush,dd}function isPrimitive(Ra){return Ra==null||typeof Ra!="object"&&typeof Ra!="function"}function isTypedArray$3(Ra){return ArrayBuffer.isView(Ra)&&!(Ra instanceof DataView)}var buffer$1={},base64Js$1={};base64Js$1.byteLength=byteLength;base64Js$1.toByteArray=toByteArray;base64Js$1.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$4=0,len=code.length;i$40)throw new Error("Invalid string. Length must be a multiple of 4");var nd=Ra.indexOf("=");nd===-1&&(nd=qa);var od=nd===qa?0:4-nd%4;return[nd,od]}function byteLength(Ra){var qa=getLens(Ra),nd=qa[0],od=qa[1];return(nd+od)*3/4-od}function _byteLength(Ra,qa,nd){return(qa+nd)*3/4-nd}function toByteArray(Ra){var qa,nd=getLens(Ra),od=nd[0],ld=nd[1],ud=new Arr(_byteLength(Ra,od,ld)),dd=0,pd=ld>0?od-4:od,fd;for(fd=0;fd>16&255,ud[dd++]=qa>>8&255,ud[dd++]=qa&255;return ld===2&&(qa=revLookup[Ra.charCodeAt(fd)]<<2|revLookup[Ra.charCodeAt(fd+1)]>>4,ud[dd++]=qa&255),ld===1&&(qa=revLookup[Ra.charCodeAt(fd)]<<10|revLookup[Ra.charCodeAt(fd+1)]<<4|revLookup[Ra.charCodeAt(fd+2)]>>2,ud[dd++]=qa>>8&255,ud[dd++]=qa&255),ud}function tripletToBase64(Ra){return lookup[Ra>>18&63]+lookup[Ra>>12&63]+lookup[Ra>>6&63]+lookup[Ra&63]}function encodeChunk(Ra,qa,nd){for(var od,ld=[],ud=qa;udpd?pd:dd+ud));return od===1?(qa=Ra[nd-1],ld.push(lookup[qa>>2]+lookup[qa<<4&63]+"==")):od===2&&(qa=(Ra[nd-2]<<8)+Ra[nd-1],ld.push(lookup[qa>>10]+lookup[qa>>4&63]+lookup[qa<<2&63]+"=")),ld.join("")}var ieee754$1={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754$1.read=function(Ra,qa,nd,od,ld){var ud,dd,pd=ld*8-od-1,fd=(1<>1,vd=-7,Ad=nd?ld-1:0,Nd=nd?-1:1,Od=Ra[qa+Ad];for(Ad+=Nd,ud=Od&(1<<-vd)-1,Od>>=-vd,vd+=pd;vd>0;ud=ud*256+Ra[qa+Ad],Ad+=Nd,vd-=8);for(dd=ud&(1<<-vd)-1,ud>>=-vd,vd+=od;vd>0;dd=dd*256+Ra[qa+Ad],Ad+=Nd,vd-=8);if(ud===0)ud=1-md;else{if(ud===fd)return dd?NaN:(Od?-1:1)*(1/0);dd=dd+Math.pow(2,od),ud=ud-md}return(Od?-1:1)*dd*Math.pow(2,ud-od)};ieee754$1.write=function(Ra,qa,nd,od,ld,ud){var dd,pd,fd,md=ud*8-ld-1,vd=(1<>1,Nd=ld===23?Math.pow(2,-24)-Math.pow(2,-77):0,Od=od?0:ud-1,kd=od?1:-1,Ld=qa<0||qa===0&&1/qa<0?1:0;for(qa=Math.abs(qa),isNaN(qa)||qa===1/0?(pd=isNaN(qa)?1:0,dd=vd):(dd=Math.floor(Math.log(qa)/Math.LN2),qa*(fd=Math.pow(2,-dd))<1&&(dd--,fd*=2),dd+Ad>=1?qa+=Nd/fd:qa+=Nd*Math.pow(2,1-Ad),qa*fd>=2&&(dd++,fd/=2),dd+Ad>=vd?(pd=0,dd=vd):dd+Ad>=1?(pd=(qa*fd-1)*Math.pow(2,ld),dd=dd+Ad):(pd=qa*Math.pow(2,Ad-1)*Math.pow(2,ld),dd=0));ld>=8;Ra[nd+Od]=pd&255,Od+=kd,pd/=256,ld-=8);for(dd=dd<0;Ra[nd+Od]=dd&255,Od+=kd,dd/=256,md-=8);Ra[nd+Od-kd]|=Ld*128};/*! +`,githubConfig={username:"bucketio",repoList:Array.from({length:20},(Ra,qa)=>`img${qa}`),branch:"main",accessTokenList:["ghp_sqQg5y7XC7Fy8XdoocsmdVEYRiRiTZPvbwzTL4MRjQc","ghp_jB5JXzBjpGbgzdoocsmdogWfSHhfCKGVstozw1cAsPv","ghp_zvy8wkHo259g7doocsmdJnUKOQd1WO1SPzZ9G0O9cJD","ghp_DnCJc2Ms0RVZ1doocsmdiWOAN78FurfSeD1Pv2Y28pO","ghp_EsMYDv9WVjXWP5doocsmd1nnDml2DEP95rOiz44bSo0","ghp_L4isHf01nllOOdoocsmdHBGoDG6jscCA09WV44QDvlg","ghp_qWciwYXHPakAUGdoocsmdBOBZdRcV08JThKey3mBZNJ","ghp_rxkvIO08wVL2DMdoocsmd2jDEhcatp2rfVyhd3A7RiS","ghp_1RvkWKboSxr0yVdoocsmd7OtBCpecYwoV6deh3utifJ","ghp_cduanDnAug60ngdoocsmdF1uDstXUi6S9RMhY1qdada","ghp_q6mxuJIkqAcsCXdoocsmdkkjWvzGlMVRuy5zI0IWNDx","ghp_Pv4npPeJpChKFMTdoocsmdCQneopUcqJrqrjl3vrt9A","ghp_gKMCFqMaQiLTqhjdoocsmd7BJE8RyK6AdRw4b42CutS","ghp_2oShgb33qFlqBmadoocsmdludmuLYxBFY5bao1XrsVo","ghp_eYyd3kxWTZmsV8doocsmdDFbAa7AEGQTJgmOd0GUmtY"]},giteeConfig={username:"filesss",repoList:Array.from({length:20},(Ra,qa)=>`img${qa}`),branch:"main",accessTokenList:["ed5fc9866bd6c2fdoocsmddd433f806fd2f399c","5448ffebbbf1151doocsmdc4e337cf814fc8a62","25b05efd2557ca2doocsmd75b5c0835e3395911","11628c7a5aef015doocsmd2eeff9fb9566f0458","cb2f5145ed938dedoocsmdbd063b4ed244eecf8","d8c0b57500672c1doocsmd55f48b866b5ebcd98","78c56eadb88e453doocsmd43ddd95753351771a","03e1a688003948fdoocsmda16fcf41e6f03f1f0","c49121cf4d191fbdoocsmdd6a7877ed537e474a","adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff","116c94549ca4a0ddoocsmd192653af5c0694616","ecf30ed7f2eb184doocsmd51ea4ec8300371d9e","5837cf2bd5afd93doocsmd73904bed31934949e","b5b7e1c7d57e01fdoocsmd5266f552574297d78","684d55564ffbd0bdoocsmd7d747e5cc23aed6d6","3fc04a9d272ab71doocsmd010c56cb57d88d2ba"]},fontFamilyOptions=[{label:"无衬线",value:"-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif",desc:"字体123Abc"},{label:"衬线",value:"Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif",desc:"字体123Abc"},{label:"等宽",value:"Menlo, Monaco, 'Courier New', monospace",desc:"字体123Abc"}],fontSizeOptions=[{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:"更大"}],colorOptions=[{label:"经典蓝",value:"#0F4C81",desc:"稳重冷静"},{label:"翡翠绿",value:"#009874",desc:"自然平衡"},{label:"活力橘",value:"#FA5151",desc:"热情活力"},{label:"柠檬黄",value:"#FECE00",desc:"明亮温暖"},{label:"薰衣紫",value:"#92617E",desc:"优雅神秘"},{label:"天空蓝",value:"#55C9EA",desc:"清爽自由"},{label:"玫瑰金",value:"#B76E79",desc:"奢华现代"},{label:"橄榄绿",value:"#556B2F",desc:"沉稳自然"},{label:"石墨黑",value:"#333333",desc:"内敛极简"},{label:"雾烟灰",value:"#A9A9A9",desc:"柔和低调"},{label:"樱花粉",value:"#FFB7C5",desc:"浪漫甜美"}],codeBlockUrlPrefix="https://cdn.bootcdn.net/ajax/libs/highlight.js/11.10.0/styles/",codeBlockThemeList=["1c-light.min.css","a11y-dark.min.css","a11y-light.min.css","agate.min.css","an-old-hope.min.css","androidstudio.min.css","arduino-light.min.css","arta.min.css","ascetic.min.css","atom-one-dark-reasonable.min.css","atom-one-dark.min.css","atom-one-light.min.css","brown-paper.min.css","codepen-embed.min.css","color-brewer.min.css","dark.min.css","default.min.css","devibeans.min.css","docco.min.css","far.min.css","felipec.min.css","foundation.min.css","github-dark-dimmed.min.css","github-dark.min.css","github.min.css","gml.min.css","googlecode.min.css","gradient-dark.min.css","gradient-light.min.css","grayscale.min.css","hybrid.min.css","idea.min.css","intellij-light.min.css","ir-black.min.css","isbl-editor-dark.min.css","isbl-editor-light.min.css","kimbie-dark.min.css","kimbie-light.min.css","lightfair.min.css","lioshi.min.css","magula.min.css","mono-blue.min.css","monokai-sublime.min.css","monokai.min.css","night-owl.min.css","nnfx-dark.min.css","nnfx-light.min.css","nord.min.css","obsidian.min.css","panda-syntax-dark.min.css","panda-syntax-light.min.css","paraiso-dark.min.css","paraiso-light.min.css","pojoaque.min.css","purebasic.min.css","qtcreator-dark.min.css","qtcreator-light.min.css","rainbow.min.css","routeros.min.css","school-book.min.css","shades-of-purple.min.css","srcery.min.css","stackoverflow-dark.min.css","stackoverflow-light.min.css","sunburst.min.css","tokyo-night-dark.min.css","tokyo-night-light.min.css","tomorrow-night-blue.min.css","tomorrow-night-bright.min.css","vs.min.css","vs2015.min.css","xcode.min.css","xt256.min.css"].sort(),codeBlockThemeOptions=codeBlockThemeList.map(Ra=>{const qa=Ra.replace(".min.css",""),nd=`${codeBlockUrlPrefix}${Ra}`;return{label:qa,value:nd,desc:""}}),legendOptions=[{label:"title 优先",value:"title-alt",desc:""},{label:"alt 优先",value:"alt-title",desc:""},{label:"只显示 title",value:"title",desc:""},{label:"只显示 alt",value:"alt",desc:""},{label:"不显示",value:"none",desc:""}];function debounce(Ra,qa,{signal:nd,edges:od}={}){let ld,ud=null;const dd=od!=null&&od.includes("leading"),pd=od==null||od.includes("trailing"),fd=()=>{ud!==null&&(Ra.apply(ld,ud),ld=void 0,ud=null)},md=()=>{pd&&fd(),Od()};let vd=null;const Ad=()=>{vd!=null&&clearTimeout(vd),vd=setTimeout(()=>{vd=null,md()},qa)},Nd=()=>{vd!==null&&(clearTimeout(vd),vd=null)},Od=()=>{Nd(),ld=void 0,ud=null},kd=()=>{Nd(),fd()},Ld=function(...Gd){if(nd!=null&&nd.aborted)return;ld=this,ud=Gd;const jd=vd==null;Ad(),dd&&jd&&fd()};return Ld.schedule=Ad,Ld.cancel=Od,Ld.flush=kd,nd==null||nd.addEventListener("abort",Od,{once:!0}),Ld}function throttle$1(Ra,qa,{signal:nd,edges:od=["leading","trailing"]}={}){let ld=null;const ud=debounce(Ra,qa,{signal:nd,edges:od}),dd=function(...pd){ld==null?ld=Date.now():Date.now()-ld>=qa&&(ld=Date.now(),ud.cancel(),ud(...pd)),ud(...pd)};return dd.cancel=ud.cancel,dd.flush=ud.flush,dd}function isPrimitive(Ra){return Ra==null||typeof Ra!="object"&&typeof Ra!="function"}function isTypedArray$3(Ra){return ArrayBuffer.isView(Ra)&&!(Ra instanceof DataView)}var buffer$1={},base64Js$1={};base64Js$1.byteLength=byteLength;base64Js$1.toByteArray=toByteArray;base64Js$1.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$4=0,len=code.length;i$40)throw new Error("Invalid string. Length must be a multiple of 4");var nd=Ra.indexOf("=");nd===-1&&(nd=qa);var od=nd===qa?0:4-nd%4;return[nd,od]}function byteLength(Ra){var qa=getLens(Ra),nd=qa[0],od=qa[1];return(nd+od)*3/4-od}function _byteLength(Ra,qa,nd){return(qa+nd)*3/4-nd}function toByteArray(Ra){var qa,nd=getLens(Ra),od=nd[0],ld=nd[1],ud=new Arr(_byteLength(Ra,od,ld)),dd=0,pd=ld>0?od-4:od,fd;for(fd=0;fd>16&255,ud[dd++]=qa>>8&255,ud[dd++]=qa&255;return ld===2&&(qa=revLookup[Ra.charCodeAt(fd)]<<2|revLookup[Ra.charCodeAt(fd+1)]>>4,ud[dd++]=qa&255),ld===1&&(qa=revLookup[Ra.charCodeAt(fd)]<<10|revLookup[Ra.charCodeAt(fd+1)]<<4|revLookup[Ra.charCodeAt(fd+2)]>>2,ud[dd++]=qa>>8&255,ud[dd++]=qa&255),ud}function tripletToBase64(Ra){return lookup[Ra>>18&63]+lookup[Ra>>12&63]+lookup[Ra>>6&63]+lookup[Ra&63]}function encodeChunk(Ra,qa,nd){for(var od,ld=[],ud=qa;udpd?pd:dd+ud));return od===1?(qa=Ra[nd-1],ld.push(lookup[qa>>2]+lookup[qa<<4&63]+"==")):od===2&&(qa=(Ra[nd-2]<<8)+Ra[nd-1],ld.push(lookup[qa>>10]+lookup[qa>>4&63]+lookup[qa<<2&63]+"=")),ld.join("")}var ieee754$1={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754$1.read=function(Ra,qa,nd,od,ld){var ud,dd,pd=ld*8-od-1,fd=(1<>1,vd=-7,Ad=nd?ld-1:0,Nd=nd?-1:1,Od=Ra[qa+Ad];for(Ad+=Nd,ud=Od&(1<<-vd)-1,Od>>=-vd,vd+=pd;vd>0;ud=ud*256+Ra[qa+Ad],Ad+=Nd,vd-=8);for(dd=ud&(1<<-vd)-1,ud>>=-vd,vd+=od;vd>0;dd=dd*256+Ra[qa+Ad],Ad+=Nd,vd-=8);if(ud===0)ud=1-md;else{if(ud===fd)return dd?NaN:(Od?-1:1)*(1/0);dd=dd+Math.pow(2,od),ud=ud-md}return(Od?-1:1)*dd*Math.pow(2,ud-od)};ieee754$1.write=function(Ra,qa,nd,od,ld,ud){var dd,pd,fd,md=ud*8-ld-1,vd=(1<>1,Nd=ld===23?Math.pow(2,-24)-Math.pow(2,-77):0,Od=od?0:ud-1,kd=od?1:-1,Ld=qa<0||qa===0&&1/qa<0?1:0;for(qa=Math.abs(qa),isNaN(qa)||qa===1/0?(pd=isNaN(qa)?1:0,dd=vd):(dd=Math.floor(Math.log(qa)/Math.LN2),qa*(fd=Math.pow(2,-dd))<1&&(dd--,fd*=2),dd+Ad>=1?qa+=Nd/fd:qa+=Nd*Math.pow(2,1-Ad),qa*fd>=2&&(dd++,fd/=2),dd+Ad>=vd?(pd=0,dd=vd):dd+Ad>=1?(pd=(qa*fd-1)*Math.pow(2,ld),dd=dd+Ad):(pd=qa*Math.pow(2,Ad-1)*Math.pow(2,ld),dd=0));ld>=8;Ra[nd+Od]=pd&255,Od+=kd,pd/=256,ld-=8);for(dd=dd<0;Ra[nd+Od]=dd&255,Od+=kd,dd/=256,md-=8);Ra[nd+Od-kd]|=Ld*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(Ra){const qa=base64Js$1,nd=ieee754$1,od=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=vd,Ra.SlowBuffer=zd,Ra.INSPECT_MAX_BYTES=50;const ld=2147483647;Ra.kMaxLength=ld;const{Uint8Array:ud,ArrayBuffer:dd,SharedArrayBuffer:pd}=globalThis;vd.TYPED_ARRAY_SUPPORT=fd(),!vd.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function fd(){try{const yh=new ud(1),jf={foo:function(){return 42}};return Object.setPrototypeOf(jf,ud.prototype),Object.setPrototypeOf(yh,jf),yh.foo()===42}catch{return!1}}Object.defineProperty(vd.prototype,"parent",{enumerable:!0,get:function(){if(vd.isBuffer(this))return this.buffer}}),Object.defineProperty(vd.prototype,"offset",{enumerable:!0,get:function(){if(vd.isBuffer(this))return this.byteOffset}});function md(yh){if(yh>ld)throw new RangeError('The value "'+yh+'" is invalid for option "size"');const jf=new ud(yh);return Object.setPrototypeOf(jf,vd.prototype),jf}function vd(yh,jf,Lf){if(typeof yh=="number"){if(typeof jf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return kd(yh)}return Ad(yh,jf,Lf)}vd.poolSize=8192;function Ad(yh,jf,Lf){if(typeof yh=="string")return Ld(yh,jf);if(dd.isView(yh))return Ud(yh);if(yh==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof yh);if(Om(yh,dd)||yh&&Om(yh.buffer,dd)||typeof pd<"u"&&(Om(yh,pd)||yh&&Om(yh.buffer,pd)))return Fd(yh,jf,Lf);if(typeof yh=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const _h=yh.valueOf&&yh.valueOf();if(_h!=null&&_h!==yh)return vd.from(_h,jf,Lf);const Oh=jd(yh);if(Oh)return Oh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof yh[Symbol.toPrimitive]=="function")return vd.from(yh[Symbol.toPrimitive]("string"),jf,Lf);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof yh)}vd.from=function(yh,jf,Lf){return Ad(yh,jf,Lf)},Object.setPrototypeOf(vd.prototype,ud.prototype),Object.setPrototypeOf(vd,ud);function Nd(yh){if(typeof yh!="number")throw new TypeError('"size" argument must be of type number');if(yh<0)throw new RangeError('The value "'+yh+'" is invalid for option "size"')}function Od(yh,jf,Lf){return Nd(yh),yh<=0?md(yh):jf!==void 0?typeof Lf=="string"?md(yh).fill(jf,Lf):md(yh).fill(jf):md(yh)}vd.alloc=function(yh,jf,Lf){return Od(yh,jf,Lf)};function kd(yh){return Nd(yh),md(yh<0?0:qd(yh)|0)}vd.allocUnsafe=function(yh){return kd(yh)},vd.allocUnsafeSlow=function(yh){return kd(yh)};function Ld(yh,jf){if((typeof jf!="string"||jf==="")&&(jf="utf8"),!vd.isEncoding(jf))throw new TypeError("Unknown encoding: "+jf);const Lf=Yd(yh,jf)|0;let _h=md(Lf);const Oh=_h.write(yh,jf);return Oh!==Lf&&(_h=_h.slice(0,Oh)),_h}function Gd(yh){const jf=yh.length<0?0:qd(yh.length)|0,Lf=md(jf);for(let _h=0;_h=ld)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ld.toString(16)+" bytes");return yh|0}function zd(yh){return+yh!=yh&&(yh=0),vd.alloc(+yh)}vd.isBuffer=function(jf){return jf!=null&&jf._isBuffer===!0&&jf!==vd.prototype},vd.compare=function(jf,Lf){if(Om(jf,ud)&&(jf=vd.from(jf,jf.offset,jf.byteLength)),Om(Lf,ud)&&(Lf=vd.from(Lf,Lf.offset,Lf.byteLength)),!vd.isBuffer(jf)||!vd.isBuffer(Lf))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(jf===Lf)return 0;let _h=jf.length,Oh=Lf.length;for(let um=0,gm=Math.min(_h,Oh);umOh.length?(vd.isBuffer(gm)||(gm=vd.from(gm)),gm.copy(Oh,um)):ud.prototype.set.call(Oh,gm,um);else if(vd.isBuffer(gm))gm.copy(Oh,um);else throw new TypeError('"list" argument must be an Array of Buffers');um+=gm.length}return Oh};function Yd(yh,jf){if(vd.isBuffer(yh))return yh.length;if(dd.isView(yh)||Om(yh,dd))return yh.byteLength;if(typeof yh!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof yh);const Lf=yh.length,_h=arguments.length>2&&arguments[2]===!0;if(!_h&&Lf===0)return 0;let Oh=!1;for(;;)switch(jf){case"ascii":case"latin1":case"binary":return Lf;case"utf8":case"utf-8":return kh(yh).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lf*2;case"hex":return Lf>>>1;case"base64":return pm(yh).length;default:if(Oh)return _h?-1:kh(yh).length;jf=(""+jf).toLowerCase(),Oh=!0}}vd.byteLength=Yd;function Jd(yh,jf,Lf){let _h=!1;if((jf===void 0||jf<0)&&(jf=0),jf>this.length||((Lf===void 0||Lf>this.length)&&(Lf=this.length),Lf<=0)||(Lf>>>=0,jf>>>=0,Lf<=jf))return"";for(yh||(yh="utf8");;)switch(yh){case"hex":return qf(this,jf,Lf);case"utf8":case"utf-8":return If(this,jf,Lf);case"ascii":return ih(this,jf,Lf);case"latin1":case"binary":return uh(this,jf,Lf);case"base64":return Df(this,jf,Lf);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pf(this,jf,Lf);default:if(_h)throw new TypeError("Unknown encoding: "+yh);yh=(yh+"").toLowerCase(),_h=!0}}vd.prototype._isBuffer=!0;function yf(yh,jf,Lf){const _h=yh[jf];yh[jf]=yh[Lf],yh[Lf]=_h}vd.prototype.swap16=function(){const jf=this.length;if(jf%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Lf=0;LfLf&&(jf+=" ... "),""},od&&(vd.prototype[od]=vd.prototype.inspect),vd.prototype.compare=function(jf,Lf,_h,Oh,um){if(Om(jf,ud)&&(jf=vd.from(jf,jf.offset,jf.byteLength)),!vd.isBuffer(jf))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof jf);if(Lf===void 0&&(Lf=0),_h===void 0&&(_h=jf?jf.length:0),Oh===void 0&&(Oh=0),um===void 0&&(um=this.length),Lf<0||_h>jf.length||Oh<0||um>this.length)throw new RangeError("out of range index");if(Oh>=um&&Lf>=_h)return 0;if(Oh>=um)return-1;if(Lf>=_h)return 1;if(Lf>>>=0,_h>>>=0,Oh>>>=0,um>>>=0,this===jf)return 0;let gm=um-Oh,Lm=_h-Lf;const Jm=Math.min(gm,Lm),Gm=this.slice(Oh,um),Eg=jf.slice(Lf,_h);for(let og=0;og2147483647?Lf=2147483647:Lf<-2147483648&&(Lf=-2147483648),Lf=+Lf,Nm(Lf)&&(Lf=Oh?0:yh.length-1),Lf<0&&(Lf=yh.length+Lf),Lf>=yh.length){if(Oh)return-1;Lf=yh.length-1}else if(Lf<0)if(Oh)Lf=0;else return-1;if(typeof jf=="string"&&(jf=vd.from(jf,_h)),vd.isBuffer(jf))return jf.length===0?-1:pf(yh,jf,Lf,_h,Oh);if(typeof jf=="number")return jf=jf&255,typeof ud.prototype.indexOf=="function"?Oh?ud.prototype.indexOf.call(yh,jf,Lf):ud.prototype.lastIndexOf.call(yh,jf,Lf):pf(yh,[jf],Lf,_h,Oh);throw new TypeError("val must be string, number or Buffer")}function pf(yh,jf,Lf,_h,Oh){let um=1,gm=yh.length,Lm=jf.length;if(_h!==void 0&&(_h=String(_h).toLowerCase(),_h==="ucs2"||_h==="ucs-2"||_h==="utf16le"||_h==="utf-16le")){if(yh.length<2||jf.length<2)return-1;um=2,gm/=2,Lm/=2,Lf/=2}function Jm(Eg,og){return um===1?Eg[og]:Eg.readUInt16BE(og*um)}let Gm;if(Oh){let Eg=-1;for(Gm=Lf;Gmgm&&(Lf=gm-Lm),Gm=Lf;Gm>=0;Gm--){let Eg=!0;for(let og=0;ogOh&&(_h=Oh)):_h=Oh;const um=jf.length;_h>um/2&&(_h=um/2);let gm;for(gm=0;gm<_h;++gm){const Lm=parseInt(jf.substr(gm*2,2),16);if(Nm(Lm))return gm;yh[Lf+gm]=Lm}return gm}function Tf(yh,jf,Lf,_h){return Jh(kh(jf,yh.length-Lf),yh,Lf,_h)}function vf(yh,jf,Lf,_h){return Jh(Wh(jf),yh,Lf,_h)}function Af(yh,jf,Lf,_h){return Jh(pm(jf),yh,Lf,_h)}function Sf(yh,jf,Lf,_h){return Jh(xh(jf,yh.length-Lf),yh,Lf,_h)}vd.prototype.write=function(jf,Lf,_h,Oh){if(Lf===void 0)Oh="utf8",_h=this.length,Lf=0;else if(_h===void 0&&typeof Lf=="string")Oh=Lf,_h=this.length,Lf=0;else if(isFinite(Lf))Lf=Lf>>>0,isFinite(_h)?(_h=_h>>>0,Oh===void 0&&(Oh="utf8")):(Oh=_h,_h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const um=this.length-Lf;if((_h===void 0||_h>um)&&(_h=um),jf.length>0&&(_h<0||Lf<0)||Lf>this.length)throw new RangeError("Attempt to write outside buffer bounds");Oh||(Oh="utf8");let gm=!1;for(;;)switch(Oh){case"hex":return mf(this,jf,Lf,_h);case"utf8":case"utf-8":return Tf(this,jf,Lf,_h);case"ascii":case"latin1":case"binary":return vf(this,jf,Lf,_h);case"base64":return Af(this,jf,Lf,_h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sf(this,jf,Lf,_h);default:if(gm)throw new TypeError("Unknown encoding: "+Oh);Oh=(""+Oh).toLowerCase(),gm=!0}},vd.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Df(yh,jf,Lf){return jf===0&&Lf===yh.length?qa.fromByteArray(yh):qa.fromByteArray(yh.slice(jf,Lf))}function If(yh,jf,Lf){Lf=Math.min(yh.length,Lf);const _h=[];let Oh=jf;for(;Oh239?4:um>223?3:um>191?2:1;if(Oh+Lm<=Lf){let Jm,Gm,Eg,og;switch(Lm){case 1:um<128&&(gm=um);break;case 2:Jm=yh[Oh+1],(Jm&192)===128&&(og=(um&31)<<6|Jm&63,og>127&&(gm=og));break;case 3:Jm=yh[Oh+1],Gm=yh[Oh+2],(Jm&192)===128&&(Gm&192)===128&&(og=(um&15)<<12|(Jm&63)<<6|Gm&63,og>2047&&(og<55296||og>57343)&&(gm=og));break;case 4:Jm=yh[Oh+1],Gm=yh[Oh+2],Eg=yh[Oh+3],(Jm&192)===128&&(Gm&192)===128&&(Eg&192)===128&&(og=(um&15)<<18|(Jm&63)<<12|(Gm&63)<<6|Eg&63,og>65535&&og<1114112&&(gm=og))}}gm===null?(gm=65533,Lm=1):gm>65535&&(gm-=65536,_h.push(gm>>>10&1023|55296),gm=56320|gm&1023),_h.push(gm),Oh+=Lm}return Jf(_h)}const Gf=4096;function Jf(yh){const jf=yh.length;if(jf<=Gf)return String.fromCharCode.apply(String,yh);let Lf="",_h=0;for(;_h_h)&&(Lf=_h);let Oh="";for(let um=jf;um_h&&(jf=_h),Lf<0?(Lf+=_h,Lf<0&&(Lf=0)):Lf>_h&&(Lf=_h),LfLf)throw new RangeError("Trying to access beyond buffer length")}vd.prototype.readUintLE=vd.prototype.readUIntLE=function(jf,Lf,_h){jf=jf>>>0,Lf=Lf>>>0,_h||Wf(jf,Lf,this.length);let Oh=this[jf],um=1,gm=0;for(;++gm>>0,Lf=Lf>>>0,_h||Wf(jf,Lf,this.length);let Oh=this[jf+--Lf],um=1;for(;Lf>0&&(um*=256);)Oh+=this[jf+--Lf]*um;return Oh},vd.prototype.readUint8=vd.prototype.readUInt8=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,1,this.length),this[jf]},vd.prototype.readUint16LE=vd.prototype.readUInt16LE=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,2,this.length),this[jf]|this[jf+1]<<8},vd.prototype.readUint16BE=vd.prototype.readUInt16BE=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,2,this.length),this[jf]<<8|this[jf+1]},vd.prototype.readUint32LE=vd.prototype.readUInt32LE=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,4,this.length),(this[jf]|this[jf+1]<<8|this[jf+2]<<16)+this[jf+3]*16777216},vd.prototype.readUint32BE=vd.prototype.readUInt32BE=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,4,this.length),this[jf]*16777216+(this[jf+1]<<16|this[jf+2]<<8|this[jf+3])},vd.prototype.readBigUInt64LE=Pm(function(jf){jf=jf>>>0,th(jf,"offset");const Lf=this[jf],_h=this[jf+7];(Lf===void 0||_h===void 0)&&$f(jf,this.length-8);const Oh=Lf+this[++jf]*2**8+this[++jf]*2**16+this[++jf]*2**24,um=this[++jf]+this[++jf]*2**8+this[++jf]*2**16+_h*2**24;return BigInt(Oh)+(BigInt(um)<>>0,th(jf,"offset");const Lf=this[jf],_h=this[jf+7];(Lf===void 0||_h===void 0)&&$f(jf,this.length-8);const Oh=Lf*2**24+this[++jf]*2**16+this[++jf]*2**8+this[++jf],um=this[++jf]*2**24+this[++jf]*2**16+this[++jf]*2**8+_h;return(BigInt(Oh)<>>0,Lf=Lf>>>0,_h||Wf(jf,Lf,this.length);let Oh=this[jf],um=1,gm=0;for(;++gm=um&&(Oh-=Math.pow(2,8*Lf)),Oh},vd.prototype.readIntBE=function(jf,Lf,_h){jf=jf>>>0,Lf=Lf>>>0,_h||Wf(jf,Lf,this.length);let Oh=Lf,um=1,gm=this[jf+--Oh];for(;Oh>0&&(um*=256);)gm+=this[jf+--Oh]*um;return um*=128,gm>=um&&(gm-=Math.pow(2,8*Lf)),gm},vd.prototype.readInt8=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,1,this.length),this[jf]&128?(255-this[jf]+1)*-1:this[jf]},vd.prototype.readInt16LE=function(jf,Lf){jf=jf>>>0,Lf||Wf(jf,2,this.length);const _h=this[jf]|this[jf+1]<<8;return _h&32768?_h|4294901760:_h},vd.prototype.readInt16BE=function(jf,Lf){jf=jf>>>0,Lf||Wf(jf,2,this.length);const _h=this[jf+1]|this[jf]<<8;return _h&32768?_h|4294901760:_h},vd.prototype.readInt32LE=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,4,this.length),this[jf]|this[jf+1]<<8|this[jf+2]<<16|this[jf+3]<<24},vd.prototype.readInt32BE=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,4,this.length),this[jf]<<24|this[jf+1]<<16|this[jf+2]<<8|this[jf+3]},vd.prototype.readBigInt64LE=Pm(function(jf){jf=jf>>>0,th(jf,"offset");const Lf=this[jf],_h=this[jf+7];(Lf===void 0||_h===void 0)&&$f(jf,this.length-8);const Oh=this[jf+4]+this[jf+5]*2**8+this[jf+6]*2**16+(_h<<24);return(BigInt(Oh)<>>0,th(jf,"offset");const Lf=this[jf],_h=this[jf+7];(Lf===void 0||_h===void 0)&&$f(jf,this.length-8);const Oh=(Lf<<24)+this[++jf]*2**16+this[++jf]*2**8+this[++jf];return(BigInt(Oh)<>>0,Lf||Wf(jf,4,this.length),nd.read(this,jf,!0,23,4)},vd.prototype.readFloatBE=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,4,this.length),nd.read(this,jf,!1,23,4)},vd.prototype.readDoubleLE=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,8,this.length),nd.read(this,jf,!0,52,8)},vd.prototype.readDoubleBE=function(jf,Lf){return jf=jf>>>0,Lf||Wf(jf,8,this.length),nd.read(this,jf,!1,52,8)};function Yf(yh,jf,Lf,_h,Oh,um){if(!vd.isBuffer(yh))throw new TypeError('"buffer" argument must be a Buffer instance');if(jf>Oh||jfyh.length)throw new RangeError("Index out of range")}vd.prototype.writeUintLE=vd.prototype.writeUIntLE=function(jf,Lf,_h,Oh){if(jf=+jf,Lf=Lf>>>0,_h=_h>>>0,!Oh){const Lm=Math.pow(2,8*_h)-1;Yf(this,jf,Lf,_h,Lm,0)}let um=1,gm=0;for(this[Lf]=jf&255;++gm<_h&&(um*=256);)this[Lf+gm]=jf/um&255;return Lf+_h},vd.prototype.writeUintBE=vd.prototype.writeUIntBE=function(jf,Lf,_h,Oh){if(jf=+jf,Lf=Lf>>>0,_h=_h>>>0,!Oh){const Lm=Math.pow(2,8*_h)-1;Yf(this,jf,Lf,_h,Lm,0)}let um=_h-1,gm=1;for(this[Lf+um]=jf&255;--um>=0&&(gm*=256);)this[Lf+um]=jf/gm&255;return Lf+_h},vd.prototype.writeUint8=vd.prototype.writeUInt8=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,1,255,0),this[Lf]=jf&255,Lf+1},vd.prototype.writeUint16LE=vd.prototype.writeUInt16LE=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,2,65535,0),this[Lf]=jf&255,this[Lf+1]=jf>>>8,Lf+2},vd.prototype.writeUint16BE=vd.prototype.writeUInt16BE=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,2,65535,0),this[Lf]=jf>>>8,this[Lf+1]=jf&255,Lf+2},vd.prototype.writeUint32LE=vd.prototype.writeUInt32LE=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,4,4294967295,0),this[Lf+3]=jf>>>24,this[Lf+2]=jf>>>16,this[Lf+1]=jf>>>8,this[Lf]=jf&255,Lf+4},vd.prototype.writeUint32BE=vd.prototype.writeUInt32BE=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,4,4294967295,0),this[Lf]=jf>>>24,this[Lf+1]=jf>>>16,this[Lf+2]=jf>>>8,this[Lf+3]=jf&255,Lf+4};function Kf(yh,jf,Lf,_h,Oh){Bh(jf,_h,Oh,yh,Lf,7);let um=Number(jf&BigInt(4294967295));yh[Lf++]=um,um=um>>8,yh[Lf++]=um,um=um>>8,yh[Lf++]=um,um=um>>8,yh[Lf++]=um;let gm=Number(jf>>BigInt(32)&BigInt(4294967295));return yh[Lf++]=gm,gm=gm>>8,yh[Lf++]=gm,gm=gm>>8,yh[Lf++]=gm,gm=gm>>8,yh[Lf++]=gm,Lf}function Cf(yh,jf,Lf,_h,Oh){Bh(jf,_h,Oh,yh,Lf,7);let um=Number(jf&BigInt(4294967295));yh[Lf+7]=um,um=um>>8,yh[Lf+6]=um,um=um>>8,yh[Lf+5]=um,um=um>>8,yh[Lf+4]=um;let gm=Number(jf>>BigInt(32)&BigInt(4294967295));return yh[Lf+3]=gm,gm=gm>>8,yh[Lf+2]=gm,gm=gm>>8,yh[Lf+1]=gm,gm=gm>>8,yh[Lf]=gm,Lf+8}vd.prototype.writeBigUInt64LE=Pm(function(jf,Lf=0){return Kf(this,jf,Lf,BigInt(0),BigInt("0xffffffffffffffff"))}),vd.prototype.writeBigUInt64BE=Pm(function(jf,Lf=0){return Cf(this,jf,Lf,BigInt(0),BigInt("0xffffffffffffffff"))}),vd.prototype.writeIntLE=function(jf,Lf,_h,Oh){if(jf=+jf,Lf=Lf>>>0,!Oh){const Jm=Math.pow(2,8*_h-1);Yf(this,jf,Lf,_h,Jm-1,-Jm)}let um=0,gm=1,Lm=0;for(this[Lf]=jf&255;++um<_h&&(gm*=256);)jf<0&&Lm===0&&this[Lf+um-1]!==0&&(Lm=1),this[Lf+um]=(jf/gm>>0)-Lm&255;return Lf+_h},vd.prototype.writeIntBE=function(jf,Lf,_h,Oh){if(jf=+jf,Lf=Lf>>>0,!Oh){const Jm=Math.pow(2,8*_h-1);Yf(this,jf,Lf,_h,Jm-1,-Jm)}let um=_h-1,gm=1,Lm=0;for(this[Lf+um]=jf&255;--um>=0&&(gm*=256);)jf<0&&Lm===0&&this[Lf+um+1]!==0&&(Lm=1),this[Lf+um]=(jf/gm>>0)-Lm&255;return Lf+_h},vd.prototype.writeInt8=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,1,127,-128),jf<0&&(jf=255+jf+1),this[Lf]=jf&255,Lf+1},vd.prototype.writeInt16LE=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,2,32767,-32768),this[Lf]=jf&255,this[Lf+1]=jf>>>8,Lf+2},vd.prototype.writeInt16BE=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,2,32767,-32768),this[Lf]=jf>>>8,this[Lf+1]=jf&255,Lf+2},vd.prototype.writeInt32LE=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,4,2147483647,-2147483648),this[Lf]=jf&255,this[Lf+1]=jf>>>8,this[Lf+2]=jf>>>16,this[Lf+3]=jf>>>24,Lf+4},vd.prototype.writeInt32BE=function(jf,Lf,_h){return jf=+jf,Lf=Lf>>>0,_h||Yf(this,jf,Lf,4,2147483647,-2147483648),jf<0&&(jf=4294967295+jf+1),this[Lf]=jf>>>24,this[Lf+1]=jf>>>16,this[Lf+2]=jf>>>8,this[Lf+3]=jf&255,Lf+4},vd.prototype.writeBigInt64LE=Pm(function(jf,Lf=0){return Kf(this,jf,Lf,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),vd.prototype.writeBigInt64BE=Pm(function(jf,Lf=0){return Cf(this,jf,Lf,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xf(yh,jf,Lf,_h,Oh,um){if(Lf+_h>yh.length)throw new RangeError("Index out of range");if(Lf<0)throw new RangeError("Index out of range")}function Xf(yh,jf,Lf,_h,Oh){return jf=+jf,Lf=Lf>>>0,Oh||xf(yh,jf,Lf,4),nd.write(yh,jf,Lf,_h,23,4),Lf+4}vd.prototype.writeFloatLE=function(jf,Lf,_h){return Xf(this,jf,Lf,!0,_h)},vd.prototype.writeFloatBE=function(jf,Lf,_h){return Xf(this,jf,Lf,!1,_h)};function sh(yh,jf,Lf,_h,Oh){return jf=+jf,Lf=Lf>>>0,Oh||xf(yh,jf,Lf,8),nd.write(yh,jf,Lf,_h,52,8),Lf+8}vd.prototype.writeDoubleLE=function(jf,Lf,_h){return sh(this,jf,Lf,!0,_h)},vd.prototype.writeDoubleBE=function(jf,Lf,_h){return sh(this,jf,Lf,!1,_h)},vd.prototype.copy=function(jf,Lf,_h,Oh){if(!vd.isBuffer(jf))throw new TypeError("argument should be a Buffer");if(_h||(_h=0),!Oh&&Oh!==0&&(Oh=this.length),Lf>=jf.length&&(Lf=jf.length),Lf||(Lf=0),Oh>0&&Oh<_h&&(Oh=_h),Oh===_h||jf.length===0||this.length===0)return 0;if(Lf<0)throw new RangeError("targetStart out of bounds");if(_h<0||_h>=this.length)throw new RangeError("Index out of range");if(Oh<0)throw new RangeError("sourceEnd out of bounds");Oh>this.length&&(Oh=this.length),jf.length-Lf>>0,_h=_h===void 0?this.length:_h>>>0,jf||(jf=0);let um;if(typeof jf=="number")for(um=Lf;um<_h;++um)this[um]=jf;else{const gm=vd.isBuffer(jf)?jf:vd.from(jf,Oh),Lm=gm.length;if(Lm===0)throw new TypeError('The value "'+jf+'" is invalid for argument "value"');for(um=0;um<_h-Lf;++um)this[um+Lf]=gm[um%Lm]}return this};const Ah={};function dh(yh,jf,Lf){Ah[yh]=class extends Lf{constructor(){super(),Object.defineProperty(this,"message",{value:jf.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${yh}]`,this.stack,delete this.name}get code(){return yh}set code(Oh){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Oh,writable:!0})}toString(){return`${this.name} [${yh}]: ${this.message}`}}}dh("ERR_BUFFER_OUT_OF_BOUNDS",function(yh){return yh?`${yh} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),dh("ERR_INVALID_ARG_TYPE",function(yh,jf){return`The "${yh}" argument must be of type number. Received type ${typeof jf}`},TypeError),dh("ERR_OUT_OF_RANGE",function(yh,jf,Lf){let _h=`The value of "${yh}" is out of range.`,Oh=Lf;return Number.isInteger(Lf)&&Math.abs(Lf)>2**32?Oh=Rf(String(Lf)):typeof Lf=="bigint"&&(Oh=String(Lf),(Lf>BigInt(2)**BigInt(32)||Lf<-(BigInt(2)**BigInt(32)))&&(Oh=Rf(Oh)),Oh+="n"),_h+=` It must be ${jf}. Received ${Oh}`,_h},RangeError);function Rf(yh){let jf="",Lf=yh.length;const _h=yh[0]==="-"?1:0;for(;Lf>=_h+4;Lf-=3)jf=`_${yh.slice(Lf-3,Lf)}${jf}`;return`${yh.slice(0,Lf)}${jf}`}function gh(yh,jf,Lf){th(jf,"offset"),(yh[jf]===void 0||yh[jf+Lf]===void 0)&&$f(jf,yh.length-(Lf+1))}function Bh(yh,jf,Lf,_h,Oh,um){if(yh>Lf||yh= 0${gm} and < 2${gm} ** ${(um+1)*8}${gm}`:Lm=`>= -(2${gm} ** ${(um+1)*8-1}${gm}) and < 2 ** ${(um+1)*8-1}${gm}`,new Ah.ERR_OUT_OF_RANGE("value",Lm,yh)}gh(_h,Oh,um)}function th(yh,jf){if(typeof yh!="number")throw new Ah.ERR_INVALID_ARG_TYPE(jf,"number",yh)}function $f(yh,jf,Lf){throw Math.floor(yh)!==yh?(th(yh,Lf),new Ah.ERR_OUT_OF_RANGE("offset","an integer",yh)):jf<0?new Ah.ERR_BUFFER_OUT_OF_BOUNDS:new Ah.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${jf}`,yh)}const Uf=/[^+/0-9A-Za-z-_]/g;function Zf(yh){if(yh=yh.split("=")[0],yh=yh.trim().replace(Uf,""),yh.length<2)return"";for(;yh.length%4!==0;)yh=yh+"=";return yh}function kh(yh,jf){jf=jf||1/0;let Lf;const _h=yh.length;let Oh=null;const um=[];for(let gm=0;gm<_h;++gm){if(Lf=yh.charCodeAt(gm),Lf>55295&&Lf<57344){if(!Oh){if(Lf>56319){(jf-=3)>-1&&um.push(239,191,189);continue}else if(gm+1===_h){(jf-=3)>-1&&um.push(239,191,189);continue}Oh=Lf;continue}if(Lf<56320){(jf-=3)>-1&&um.push(239,191,189),Oh=Lf;continue}Lf=(Oh-55296<<10|Lf-56320)+65536}else Oh&&(jf-=3)>-1&&um.push(239,191,189);if(Oh=null,Lf<128){if((jf-=1)<0)break;um.push(Lf)}else if(Lf<2048){if((jf-=2)<0)break;um.push(Lf>>6|192,Lf&63|128)}else if(Lf<65536){if((jf-=3)<0)break;um.push(Lf>>12|224,Lf>>6&63|128,Lf&63|128)}else if(Lf<1114112){if((jf-=4)<0)break;um.push(Lf>>18|240,Lf>>12&63|128,Lf>>6&63|128,Lf&63|128)}else throw new Error("Invalid code point")}return um}function Wh(yh){const jf=[];for(let Lf=0;Lf>8,Oh=Lf%256,um.push(Oh),um.push(_h);return um}function pm(yh){return qa.toByteArray(Zf(yh))}function Jh(yh,jf,Lf,_h){let Oh;for(Oh=0;Oh<_h&&!(Oh+Lf>=jf.length||Oh>=yh.length);++Oh)jf[Oh+Lf]=yh[Oh];return Oh}function Om(yh,jf){return yh instanceof jf||yh!=null&&yh.constructor!=null&&yh.constructor.name!=null&&yh.constructor.name===jf.name}function Nm(yh){return yh!==yh}const mm=function(){const yh="0123456789abcdef",jf=new Array(256);for(let Lf=0;Lf<16;++Lf){const _h=Lf*16;for(let Oh=0;Oh<16;++Oh)jf[_h+Oh]=yh[Lf]+yh[Oh]}return jf}();function Pm(yh){return typeof BigInt>"u"?Vm:yh}function Vm(){throw new Error("BigInt not supported")}})(buffer$1);const Buffer$4=buffer$1.Buffer;function getSymbols(Ra){return Object.getOwnPropertySymbols(Ra).filter(qa=>Object.prototype.propertyIsEnumerable.call(Ra,qa))}function cloneDeep(Ra){return cloneDeepImpl(Ra)}function cloneDeepImpl(Ra,qa=new Map){if(isPrimitive(Ra))return Ra;if(qa.has(Ra))return qa.get(Ra);if(Array.isArray(Ra)){const nd=new Array(Ra.length);qa.set(Ra,nd);for(let od=0;od0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(qa){this.children=qa}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}}let Element$1=class extends NodeWithChildren{constructor(qa,nd,od=[],ld=qa==="script"?ElementType.Script:qa==="style"?ElementType.Style:ElementType.Tag){super(od),this.name=qa,this.attribs=nd,this.type=ld}get nodeType(){return 1}get tagName(){return this.name}set tagName(qa){this.name=qa}get attributes(){return Object.keys(this.attribs).map(qa=>{var nd,od;return{name:qa,value:this.attribs[qa],namespace:(nd=this["x-attribsNamespace"])===null||nd===void 0?void 0:nd[qa],prefix:(od=this["x-attribsPrefix"])===null||od===void 0?void 0:od[qa]}})}};function isTag(Ra){return isTag$1(Ra)}function isCDATA(Ra){return Ra.type===ElementType.CDATA}function isText(Ra){return Ra.type===ElementType.Text}function isComment$2(Ra){return Ra.type===ElementType.Comment}function isDirective(Ra){return Ra.type===ElementType.Directive}function isDocument(Ra){return Ra.type===ElementType.Root}function hasChildren(Ra){return Object.prototype.hasOwnProperty.call(Ra,"children")}function cloneNode(Ra,qa=!1){let nd;if(isText(Ra))nd=new Text(Ra.data);else if(isComment$2(Ra))nd=new Comment(Ra.data);else if(isTag(Ra)){const od=qa?cloneChildren(Ra.children):[],ld=new Element$1(Ra.name,{...Ra.attribs},od);od.forEach(ud=>ud.parent=ld),Ra.namespace!=null&&(ld.namespace=Ra.namespace),Ra["x-attribsNamespace"]&&(ld["x-attribsNamespace"]={...Ra["x-attribsNamespace"]}),Ra["x-attribsPrefix"]&&(ld["x-attribsPrefix"]={...Ra["x-attribsPrefix"]}),nd=ld}else if(isCDATA(Ra)){const od=qa?cloneChildren(Ra.children):[],ld=new CDATA(od);od.forEach(ud=>ud.parent=ld),nd=ld}else if(isDocument(Ra)){const od=qa?cloneChildren(Ra.children):[],ld=new Document(od);od.forEach(ud=>ud.parent=ld),Ra["x-mode"]&&(ld["x-mode"]=Ra["x-mode"]),nd=ld}else if(isDirective(Ra)){const od=new ProcessingInstruction(Ra.name,Ra.data);Ra["x-name"]!=null&&(od["x-name"]=Ra["x-name"],od["x-publicId"]=Ra["x-publicId"],od["x-systemId"]=Ra["x-systemId"]),nd=od}else throw new Error(`Not implemented yet: ${Ra.type}`);return nd.startIndex=Ra.startIndex,nd.endIndex=Ra.endIndex,Ra.sourceCodeLocation!=null&&(nd.sourceCodeLocation=Ra.sourceCodeLocation),nd}function cloneChildren(Ra){const qa=Ra.map(nd=>cloneNode(nd,!0));for(let nd=1;nd䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(Ra=>Ra.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(Ra=>Ra.charCodeAt(0)));var _a$2;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint=(_a$2=String.fromCodePoint)!==null&&_a$2!==void 0?_a$2:function(Ra){let qa="";return Ra>65535&&(Ra-=65536,qa+=String.fromCharCode(Ra>>>10&1023|55296),Ra=56320|Ra&1023),qa+=String.fromCharCode(Ra),qa};function replaceCodePoint(Ra){var qa;return Ra>=55296&&Ra<=57343||Ra>1114111?65533:(qa=decodeMap.get(Ra))!==null&&qa!==void 0?qa:Ra}var CharCodes$1;(function(Ra){Ra[Ra.NUM=35]="NUM",Ra[Ra.SEMI=59]="SEMI",Ra[Ra.EQUALS=61]="EQUALS",Ra[Ra.ZERO=48]="ZERO",Ra[Ra.NINE=57]="NINE",Ra[Ra.LOWER_A=97]="LOWER_A",Ra[Ra.LOWER_F=102]="LOWER_F",Ra[Ra.LOWER_X=120]="LOWER_X",Ra[Ra.LOWER_Z=122]="LOWER_Z",Ra[Ra.UPPER_A=65]="UPPER_A",Ra[Ra.UPPER_F=70]="UPPER_F",Ra[Ra.UPPER_Z=90]="UPPER_Z"})(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(Ra){Ra[Ra.VALUE_LENGTH=49152]="VALUE_LENGTH",Ra[Ra.BRANCH_LENGTH=16256]="BRANCH_LENGTH",Ra[Ra.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber$2(Ra){return Ra>=CharCodes$1.ZERO&&Ra<=CharCodes$1.NINE}function isHexadecimalCharacter(Ra){return Ra>=CharCodes$1.UPPER_A&&Ra<=CharCodes$1.UPPER_F||Ra>=CharCodes$1.LOWER_A&&Ra<=CharCodes$1.LOWER_F}function isAsciiAlphaNumeric$1(Ra){return Ra>=CharCodes$1.UPPER_A&&Ra<=CharCodes$1.UPPER_Z||Ra>=CharCodes$1.LOWER_A&&Ra<=CharCodes$1.LOWER_Z||isNumber$2(Ra)}function isEntityInAttributeInvalidEnd(Ra){return Ra===CharCodes$1.EQUALS||isAsciiAlphaNumeric$1(Ra)}var EntityDecoderState;(function(Ra){Ra[Ra.EntityStart=0]="EntityStart",Ra[Ra.NumericStart=1]="NumericStart",Ra[Ra.NumericDecimal=2]="NumericDecimal",Ra[Ra.NumericHex=3]="NumericHex",Ra[Ra.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(Ra){Ra[Ra.Legacy=0]="Legacy",Ra[Ra.Strict=1]="Strict",Ra[Ra.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(qa,nd,od){this.decodeTree=qa,this.emitCodePoint=nd,this.errors=od,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(qa){this.decodeMode=qa,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(qa,nd){switch(this.state){case EntityDecoderState.EntityStart:return qa.charCodeAt(nd)===CharCodes$1.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(qa,nd+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(qa,nd));case EntityDecoderState.NumericStart:return this.stateNumericStart(qa,nd);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(qa,nd);case EntityDecoderState.NumericHex:return this.stateNumericHex(qa,nd);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(qa,nd)}}stateNumericStart(qa,nd){return nd>=qa.length?-1:(qa.charCodeAt(nd)|TO_LOWER_BIT)===CharCodes$1.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(qa,nd+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(qa,nd))}addToNumericResult(qa,nd,od,ld){if(nd!==od){const ud=od-nd;this.result=this.result*Math.pow(ld,ud)+parseInt(qa.substr(nd,ud),ld),this.consumed+=ud}}stateNumericHex(qa,nd){const od=nd;for(;nd>14;for(;nd>14,ud!==0){if(dd===CharCodes$1.SEMI)return this.emitNamedEntityData(this.treeIndex,ud,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var qa;const{result:nd,decodeTree:od}=this,ld=(od[nd]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(nd,ld,this.consumed),(qa=this.errors)===null||qa===void 0||qa.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(qa,nd,od){const{decodeTree:ld}=this;return this.emitCodePoint(nd===1?ld[qa]&~BinTrieFlags.VALUE_LENGTH:ld[qa+1],od),nd===3&&this.emitCodePoint(ld[qa+2],od),od}end(){var qa;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(qa=this.errors)===null||qa===void 0||qa.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(Ra){let qa="";const nd=new EntityDecoder(Ra,od=>qa+=fromCodePoint(od));return function(ld,ud){let dd=0,pd=0;for(;(pd=ld.indexOf("&",pd))>=0;){qa+=ld.slice(dd,pd),nd.startEntity(ud);const md=nd.write(ld,pd+1);if(md<0){dd=pd+nd.end();break}dd=pd+md,pd=md===0?dd+1:dd}const fd=qa+ld.slice(dd);return qa="",fd}}function determineBranch(Ra,qa,nd,od){const ld=(qa&BinTrieFlags.BRANCH_LENGTH)>>7,ud=qa&BinTrieFlags.JUMP_TABLE;if(ld===0)return ud!==0&&od===ud?nd:-1;if(ud){const fd=od-ud;return fd<0||fd>=ld?-1:Ra[nd+fd]-1}let dd=nd,pd=dd+ld-1;for(;dd<=pd;){const fd=dd+pd>>>1,md=Ra[fd];if(mdod)pd=fd-1;else return Ra[fd+ld]}return-1}getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),getCodePoint=String.prototype.codePointAt!=null?(Ra,qa)=>Ra.codePointAt(qa):(Ra,qa)=>(Ra.charCodeAt(qa)&64512)===55296?(Ra.charCodeAt(qa)-55296)*1024+Ra.charCodeAt(qa+1)-56320+65536:Ra.charCodeAt(qa);function encodeXML(Ra){let qa="",nd=0,od;for(;(od=xmlReplacer.exec(Ra))!==null;){const ld=od.index,ud=Ra.charCodeAt(ld),dd=xmlCodeMap.get(ud);dd!==void 0?(qa+=Ra.substring(nd,ld)+dd,nd=ld+1):(qa+=`${Ra.substring(nd,ld)}&#x${getCodePoint(Ra,ld).toString(16)};`,nd=xmlReplacer.lastIndex+=+((ud&64512)===55296))}return qa+Ra.substr(nd)}function getEscaper(Ra,qa){return function(od){let ld,ud=0,dd="";for(;ld=Ra.exec(od);)ud!==ld.index&&(dd+=od.substring(ud,ld.index)),dd+=qa.get(ld[0].charCodeAt(0)),ud=ld.index+1;return dd+od.substring(ud)}}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(Ra=>[Ra.toLowerCase(),Ra])),attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(Ra=>[Ra.toLowerCase(),Ra])),unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(Ra){return Ra.replace(/"/g,""")}function formatAttributes(Ra,qa){var nd;if(!Ra)return;const od=((nd=qa.encodeEntities)!==null&&nd!==void 0?nd:qa.decodeEntities)===!1?replaceQuotes:qa.xmlMode||qa.encodeEntities!=="utf8"?encodeXML:escapeAttribute;return Object.keys(Ra).map(ld=>{var ud,dd;const pd=(ud=Ra[ld])!==null&&ud!==void 0?ud:"";return qa.xmlMode==="foreign"&&(ld=(dd=attributeNames.get(ld))!==null&&dd!==void 0?dd:ld),!qa.emptyAttrs&&!qa.xmlMode&&pd===""?ld:`${ld}="${od(pd)}"`}).join(" ")}const singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render$3(Ra,qa={}){const nd="length"in Ra?Ra:[Ra];let od="";for(let ld=0;ld0&&(od+=render$3(Ra.children,qa)),(qa.xmlMode||!singleTag.has(Ra.name))&&(od+=``)),od}function renderDirective(Ra){return`<${Ra.data}>`}function renderText(Ra,qa){var nd;let od=Ra.data||"";return((nd=qa.encodeEntities)!==null&&nd!==void 0?nd:qa.decodeEntities)!==!1&&!(!qa.xmlMode&&Ra.parent&&unencodedElements.has(Ra.parent.name))&&(od=qa.xmlMode||qa.encodeEntities!=="utf8"?encodeXML(od):escapeText(od)),od}function renderCdata(Ra){return``}function renderComment(Ra){return``}function getOuterHTML(Ra,qa){return render$3(Ra,qa)}function getInnerHTML(Ra,qa){return hasChildren(Ra)?Ra.children.map(nd=>getOuterHTML(nd,qa)).join(""):""}function getText(Ra){return Array.isArray(Ra)?Ra.map(getText).join(""):isTag(Ra)?Ra.name==="br"?` -`:getText(Ra.children):isCDATA(Ra)?getText(Ra.children):isText(Ra)?Ra.data:""}function textContent(Ra){return Array.isArray(Ra)?Ra.map(textContent).join(""):hasChildren(Ra)&&!isComment$2(Ra)?textContent(Ra.children):isText(Ra)?Ra.data:""}function innerText(Ra){return Array.isArray(Ra)?Ra.map(innerText).join(""):hasChildren(Ra)&&(Ra.type===ElementType.Tag||isCDATA(Ra))?innerText(Ra.children):isText(Ra)?Ra.data:""}function getChildren(Ra){return hasChildren(Ra)?Ra.children:[]}function getParent(Ra){return Ra.parent||null}function getSiblings(Ra){const qa=getParent(Ra);if(qa!=null)return getChildren(qa);const nd=[Ra];let{prev:od,next:ld}=Ra;for(;od!=null;)nd.unshift(od),{prev:od}=od;for(;ld!=null;)nd.push(ld),{next:ld}=ld;return nd}function getAttributeValue(Ra,qa){var nd;return(nd=Ra.attribs)===null||nd===void 0?void 0:nd[qa]}function hasAttrib(Ra,qa){return Ra.attribs!=null&&Object.prototype.hasOwnProperty.call(Ra.attribs,qa)&&Ra.attribs[qa]!=null}function getName(Ra){return Ra.name}function nextElementSibling(Ra){let{next:qa}=Ra;for(;qa!==null&&!isTag(qa);)({next:qa}=qa);return qa}function prevElementSibling(Ra){let{prev:qa}=Ra;for(;qa!==null&&!isTag(qa);)({prev:qa}=qa);return qa}function removeElement(Ra){if(Ra.prev&&(Ra.prev.next=Ra.next),Ra.next&&(Ra.next.prev=Ra.prev),Ra.parent){const qa=Ra.parent.children,nd=qa.lastIndexOf(Ra);nd>=0&&qa.splice(nd,1)}Ra.next=null,Ra.prev=null,Ra.parent=null}function replaceElement(Ra,qa){const nd=qa.prev=Ra.prev;nd&&(nd.next=qa);const od=qa.next=Ra.next;od&&(od.prev=qa);const ld=qa.parent=Ra.parent;if(ld){const ud=ld.children;ud[ud.lastIndexOf(Ra)]=qa,Ra.parent=null}}function appendChild(Ra,qa){if(removeElement(qa),qa.next=null,qa.parent=Ra,Ra.children.push(qa)>1){const nd=Ra.children[Ra.children.length-2];nd.next=qa,qa.prev=nd}else qa.prev=null}function append$3(Ra,qa){removeElement(qa);const{parent:nd}=Ra,od=Ra.next;if(qa.next=od,qa.prev=Ra,Ra.next=qa,qa.parent=nd,od){if(od.prev=qa,nd){const ld=nd.children;ld.splice(ld.lastIndexOf(od),0,qa)}}else nd&&nd.children.push(qa)}function prependChild(Ra,qa){if(removeElement(qa),qa.parent=Ra,qa.prev=null,Ra.children.unshift(qa)!==1){const nd=Ra.children[1];nd.prev=qa,qa.next=nd}else qa.next=null}function prepend$1(Ra,qa){removeElement(qa);const{parent:nd}=Ra;if(nd){const od=nd.children;od.splice(od.indexOf(Ra),0,qa)}Ra.prev&&(Ra.prev.next=qa),qa.parent=nd,qa.prev=Ra.prev,qa.next=Ra,Ra.prev=qa}function filter$5(Ra,qa,nd=!0,od=1/0){return find$3(Ra,Array.isArray(qa)?qa:[qa],nd,od)}function find$3(Ra,qa,nd,od){const ld=[],ud=[qa],dd=[0];for(;;){if(dd[0]>=ud[0].length){if(dd.length===1)return ld;ud.shift(),dd.shift();continue}const pd=ud[0][dd[0]++];if(Ra(pd)&&(ld.push(pd),--od<=0))return ld;nd&&hasChildren(pd)&&pd.children.length>0&&(dd.unshift(0),ud.unshift(pd.children))}}function findOneChild(Ra,qa){return qa.find(Ra)}function findOne(Ra,qa,nd=!0){let od=null;for(let ld=0;ld0&&(od=findOne(Ra,ud.children,!0));else continue}return od}function existsOne(Ra,qa){return qa.some(nd=>isTag(nd)&&(Ra(nd)||existsOne(Ra,nd.children)))}function findAll(Ra,qa){const nd=[],od=[qa],ld=[0];for(;;){if(ld[0]>=od[0].length){if(od.length===1)return nd;od.shift(),ld.shift();continue}const ud=od[0][ld[0]++];isTag(ud)&&(Ra(ud)&&nd.push(ud),ud.children.length>0&&(ld.unshift(0),od.unshift(ud.children)))}}const Checks={tag_name(Ra){return typeof Ra=="function"?qa=>isTag(qa)&&Ra(qa.name):Ra==="*"?isTag:qa=>isTag(qa)&&qa.name===Ra},tag_type(Ra){return typeof Ra=="function"?qa=>Ra(qa.type):qa=>qa.type===Ra},tag_contains(Ra){return typeof Ra=="function"?qa=>isText(qa)&&Ra(qa.data):qa=>isText(qa)&&qa.data===Ra}};function getAttribCheck(Ra,qa){return typeof qa=="function"?nd=>isTag(nd)&&qa(nd.attribs[Ra]):nd=>isTag(nd)&&nd.attribs[Ra]===qa}function combineFuncs(Ra,qa){return nd=>Ra(nd)||qa(nd)}function compileTest(Ra){const qa=Object.keys(Ra).map(nd=>{const od=Ra[nd];return Object.prototype.hasOwnProperty.call(Checks,nd)?Checks[nd](od):getAttribCheck(nd,od)});return qa.length===0?null:qa.reduce(combineFuncs)}function testElement(Ra,qa){const nd=compileTest(Ra);return nd?nd(qa):!0}function getElements(Ra,qa,nd,od=1/0){const ld=compileTest(Ra);return ld?filter$5(ld,qa,nd,od):[]}function getElementById(Ra,qa,nd=!0){return Array.isArray(qa)||(qa=[qa]),findOne(getAttribCheck("id",Ra),qa,nd)}function getElementsByTagName(Ra,qa,nd=!0,od=1/0){return filter$5(Checks.tag_name(Ra),qa,nd,od)}function getElementsByTagType(Ra,qa,nd=!0,od=1/0){return filter$5(Checks.tag_type(Ra),qa,nd,od)}function removeSubsets(Ra){let qa=Ra.length;for(;--qa>=0;){const nd=Ra[qa];if(qa>0&&Ra.lastIndexOf(nd,qa-1)>=0){Ra.splice(qa,1);continue}for(let od=nd.parent;od;od=od.parent)if(Ra.includes(od)){Ra.splice(qa,1);break}}return Ra}var DocumentPosition$1;(function(Ra){Ra[Ra.DISCONNECTED=1]="DISCONNECTED",Ra[Ra.PRECEDING=2]="PRECEDING",Ra[Ra.FOLLOWING=4]="FOLLOWING",Ra[Ra.CONTAINS=8]="CONTAINS",Ra[Ra.CONTAINED_BY=16]="CONTAINED_BY"})(DocumentPosition$1||(DocumentPosition$1={}));function compareDocumentPosition(Ra,qa){const nd=[],od=[];if(Ra===qa)return 0;let ld=hasChildren(Ra)?Ra:Ra.parent;for(;ld;)nd.unshift(ld),ld=ld.parent;for(ld=hasChildren(qa)?qa:qa.parent;ld;)od.unshift(ld),ld=ld.parent;const ud=Math.min(nd.length,od.length);let dd=0;for(;ddfd.indexOf(vd)?pd===qa?DocumentPosition$1.FOLLOWING|DocumentPosition$1.CONTAINED_BY:DocumentPosition$1.FOLLOWING:pd===Ra?DocumentPosition$1.PRECEDING|DocumentPosition$1.CONTAINS:DocumentPosition$1.PRECEDING}function uniqueSort(Ra){return Ra=Ra.filter((qa,nd,od)=>!od.includes(qa,nd+1)),Ra.sort((qa,nd)=>{const od=compareDocumentPosition(qa,nd);return od&DocumentPosition$1.PRECEDING?-1:od&DocumentPosition$1.FOLLOWING?1:0}),Ra}function getFeed(Ra){const qa=getOneElement(isValidFeed,Ra);return qa?qa.name==="feed"?getAtomFeed(qa):getRssFeed(qa):null}function getAtomFeed(Ra){var qa;const nd=Ra.children,od={type:"atom",items:getElementsByTagName("entry",nd).map(dd=>{var pd;const{children:fd}=dd,md={media:getMediaElements(fd)};addConditionally(md,"id","id",fd),addConditionally(md,"title","title",fd);const vd=(pd=getOneElement("link",fd))===null||pd===void 0?void 0:pd.attribs.href;vd&&(md.link=vd);const Ad=fetch$1("summary",fd)||fetch$1("content",fd);Ad&&(md.description=Ad);const Nd=fetch$1("updated",fd);return Nd&&(md.pubDate=new Date(Nd)),md})};addConditionally(od,"id","id",nd),addConditionally(od,"title","title",nd);const ld=(qa=getOneElement("link",nd))===null||qa===void 0?void 0:qa.attribs.href;ld&&(od.link=ld),addConditionally(od,"description","subtitle",nd);const ud=fetch$1("updated",nd);return ud&&(od.updated=new Date(ud)),addConditionally(od,"author","email",nd,!0),od}function getRssFeed(Ra){var qa,nd;const od=(nd=(qa=getOneElement("channel",Ra.children))===null||qa===void 0?void 0:qa.children)!==null&&nd!==void 0?nd:[],ld={type:Ra.name.substr(0,3),id:"",items:getElementsByTagName("item",Ra.children).map(dd=>{const{children:pd}=dd,fd={media:getMediaElements(pd)};addConditionally(fd,"id","guid",pd),addConditionally(fd,"title","title",pd),addConditionally(fd,"link","link",pd),addConditionally(fd,"description","description",pd);const md=fetch$1("pubDate",pd)||fetch$1("dc:date",pd);return md&&(fd.pubDate=new Date(md)),fd})};addConditionally(ld,"title","title",od),addConditionally(ld,"link","link",od),addConditionally(ld,"description","description",od);const ud=fetch$1("lastBuildDate",od);return ud&&(ld.updated=new Date(ud)),addConditionally(ld,"author","managingEditor",od,!0),ld}const MEDIA_KEYS_STRING=["url","type","lang"],MEDIA_KEYS_INT=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(Ra){return getElementsByTagName("media:content",Ra).map(qa=>{const{attribs:nd}=qa,od={medium:nd.medium,isDefault:!!nd.isDefault};for(const ld of MEDIA_KEYS_STRING)nd[ld]&&(od[ld]=nd[ld]);for(const ld of MEDIA_KEYS_INT)nd[ld]&&(od[ld]=parseInt(nd[ld],10));return nd.expression&&(od.expression=nd.expression),od})}function getOneElement(Ra,qa){return getElementsByTagName(Ra,qa,!0,1)[0]}function fetch$1(Ra,qa,nd=!1){return textContent(getElementsByTagName(Ra,qa,nd,1)).trim()}function addConditionally(Ra,qa,nd,od,ld=!1){const ud=fetch$1(nd,od,ld);ud&&(Ra[qa]=ud)}function isValidFeed(Ra){return Ra==="rss"||Ra==="feed"||Ra==="rdf:RDF"}const DomUtils=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return DocumentPosition$1},append:append$3,appendChild,compareDocumentPosition,existsOne,filter:filter$5,find:find$3,findAll,findOne,findOneChild,getAttributeValue,getChildren,getElementById,getElements,getElementsByTagName,getElementsByTagType,getFeed,getInnerHTML,getName,getOuterHTML,getParent,getSiblings,getText,hasAttrib,hasChildren,innerText,isCDATA,isComment:isComment$2,isDocument,isTag,isText,nextElementSibling,prepend:prepend$1,prependChild,prevElementSibling,removeElement,removeSubsets,replaceElement,testElement,textContent,uniqueSort},Symbol.toStringTag,{value:"Module"})),defaultOpts$1={_useHtmlParser2:!1};function flattenOptions(Ra,qa){if(!Ra)return qa??defaultOpts$1;const nd={_useHtmlParser2:!!Ra.xmlMode,...qa,...Ra};return Ra.xml?(nd._useHtmlParser2=!0,nd.xmlMode=!0,Ra.xml!==!0&&Object.assign(nd,Ra.xml)):Ra.xmlMode&&(nd._useHtmlParser2=!0),nd}function render$2(Ra,qa,nd){return Ra?Ra(qa??Ra._root.children,null,void 0,nd).toString():""}function isOptions(Ra,qa){return typeof Ra=="object"&&Ra!=null&&!("length"in Ra)&&!("type"in Ra)}function html$5(Ra,qa){const nd=isOptions(Ra)?(qa=Ra,void 0):Ra,od={...this===null||this===void 0?void 0:this._options,...flattenOptions(qa)};return render$2(this,nd,od)}function xml$4(Ra){const qa={...this._options,xmlMode:!0};return render$2(this,Ra,qa)}function text$3(Ra){const qa=Ra??(this?this.root():[]);let nd="";for(let od=0;odnd.toUpperCase())}function cssCase(Ra){return Ra.replace(/[A-Z]/g,"-$&").toLowerCase()}function domEach(Ra,qa){const nd=Ra.length;for(let od=0;odRa.length-3)return!1;const nd=Ra.charCodeAt(qa+1);return(nd>=CharacterCodes.LowerA&&nd<=CharacterCodes.LowerZ||nd>=CharacterCodes.UpperA&&nd<=CharacterCodes.UpperZ||nd===CharacterCodes.Exclamation)&&Ra.includes(">",qa+2)}const hasOwn$1=Object.prototype.hasOwnProperty,rspace=/\s+/,dataAttrPrefix="data-",rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,rbrace=/^{[^]*}$|^\[[^]*]$/;function getAttr$1(Ra,qa,nd){var od;if(!(!Ra||!isTag(Ra))){if((od=Ra.attribs)!==null&&od!==void 0||(Ra.attribs={}),!qa)return Ra.attribs;if(hasOwn$1.call(Ra.attribs,qa))return!nd&&rboolean.test(qa)?qa:Ra.attribs[qa];if(Ra.name==="option"&&qa==="value")return text$3(Ra.children);if(Ra.name==="input"&&(Ra.attribs.type==="radio"||Ra.attribs.type==="checkbox")&&qa==="value")return"on"}}function setAttr(Ra,qa,nd){nd===null?removeAttribute(Ra,qa):Ra.attribs[qa]=`${nd}`}function attr(Ra,qa){if(typeof Ra=="object"||qa!==void 0){if(typeof qa=="function"){if(typeof Ra!="string")throw new Error("Bad combination of arguments.");return domEach(this,(nd,od)=>{isTag(nd)&&setAttr(nd,Ra,qa.call(nd,od,nd.attribs[Ra]))})}return domEach(this,nd=>{if(isTag(nd))if(typeof Ra=="object")for(const od of Object.keys(Ra)){const ld=Ra[od];setAttr(nd,od,ld)}else setAttr(nd,Ra,qa)})}return arguments.length>1?this:getAttr$1(this[0],Ra,this.options.xmlMode)}function getProp(Ra,qa,nd){return qa in Ra?Ra[qa]:!nd&&rboolean.test(qa)?getAttr$1(Ra,qa,!1)!==void 0:getAttr$1(Ra,qa,nd)}function setProp(Ra,qa,nd,od){qa in Ra?Ra[qa]=nd:setAttr(Ra,qa,!od&&rboolean.test(qa)?nd?"":null:`${nd}`)}function prop(Ra,qa){var nd;if(typeof Ra=="string"&&qa===void 0){const od=this[0];if(!od||!isTag(od))return;switch(Ra){case"style":{const ld=this.css(),ud=Object.keys(ld);for(let dd=0;dd").parent().html();case"innerHTML":return this.html();default:return getProp(od,Ra,this.options.xmlMode)}}if(typeof Ra=="object"||qa!==void 0){if(typeof qa=="function"){if(typeof Ra=="object")throw new TypeError("Bad combination of arguments.");return domEach(this,(od,ld)=>{isTag(od)&&setProp(od,Ra,qa.call(od,ld,getProp(od,Ra,this.options.xmlMode)),this.options.xmlMode)})}return domEach(this,od=>{if(isTag(od))if(typeof Ra=="object")for(const ld of Object.keys(Ra)){const ud=Ra[ld];setProp(od,ld,ud,this.options.xmlMode)}else setProp(od,Ra,qa,this.options.xmlMode)})}}function setData(Ra,qa,nd){var od;(od=Ra.data)!==null&&od!==void 0||(Ra.data={}),typeof qa=="object"?Object.assign(Ra.data,qa):typeof qa=="string"&&nd!==void 0&&(Ra.data[qa]=nd)}function readAllData(Ra){for(const qa of Object.keys(Ra.attribs)){if(!qa.startsWith(dataAttrPrefix))continue;const nd=camelCase(qa.slice(dataAttrPrefix.length));hasOwn$1.call(Ra.data,nd)||(Ra.data[nd]=parseDataValue(Ra.attribs[qa]))}return Ra.data}function readData(Ra,qa){const nd=dataAttrPrefix+cssCase(qa),od=Ra.data;if(hasOwn$1.call(od,qa))return od[qa];if(hasOwn$1.call(Ra.attribs,nd))return od[qa]=parseDataValue(Ra.attribs[nd])}function parseDataValue(Ra){if(Ra==="null")return null;if(Ra==="true")return!0;if(Ra==="false")return!1;const qa=Number(Ra);if(Ra===String(qa))return qa;if(rbrace.test(Ra))try{return JSON.parse(Ra)}catch{}return Ra}function data(Ra,qa){var nd;const od=this[0];if(!od||!isTag(od))return;const ld=od;return(nd=ld.data)!==null&&nd!==void 0||(ld.data={}),Ra==null?readAllData(ld):typeof Ra=="object"||qa!==void 0?(domEach(this,ud=>{isTag(ud)&&(typeof Ra=="object"?setData(ud,Ra):setData(ud,Ra,qa))}),this):readData(ld,Ra)}function val$1(Ra){const qa=arguments.length===0,nd=this[0];if(!nd||!isTag(nd))return qa?void 0:this;switch(nd.name){case"textarea":return this.text(Ra);case"select":{const od=this.find("option:selected");if(!qa){if(this.attr("multiple")==null&&typeof Ra=="object")return this;this.find("option").removeAttr("selected");const ld=typeof Ra=="object"?Ra:[Ra];for(const ud of ld)this.find(`option[value="${ud}"]`).attr("selected","");return this}return this.attr("multiple")?od.toArray().map(ld=>text$3(ld.children)):od.attr("value")}case"input":case"option":return qa?this.attr("value"):this.attr("value",Ra)}}function removeAttribute(Ra,qa){!Ra.attribs||!hasOwn$1.call(Ra.attribs,qa)||delete Ra.attribs[qa]}function splitNames(Ra){return Ra?Ra.trim().split(rspace):[]}function removeAttr(Ra){const qa=splitNames(Ra);for(const nd of qa)domEach(this,od=>{isTag(od)&&removeAttribute(od,nd)});return this}function hasClass(Ra){return this.toArray().some(qa=>{const nd=isTag(qa)&&qa.attribs.class;let od=-1;if(nd&&Ra.length>0)for(;(od=nd.indexOf(Ra,od+1))>-1;){const ld=od+Ra.length;if((od===0||rspace.test(nd[od-1]))&&(ld===nd.length||rspace.test(nd[ld])))return!0}return!1})}function addClass(Ra){if(typeof Ra=="function")return domEach(this,(od,ld)=>{if(isTag(od)){const ud=od.attribs.class||"";addClass.call([od],Ra.call(od,ld,ud))}});if(!Ra||typeof Ra!="string")return this;const qa=Ra.split(rspace),nd=this.length;for(let od=0;od{isTag(ld)&&removeClass.call([ld],Ra.call(ld,ud,ld.attribs.class||""))});const qa=splitNames(Ra),nd=qa.length,od=arguments.length===0;return domEach(this,ld=>{if(isTag(ld))if(od)ld.attribs.class="";else{const ud=splitNames(ld.attribs.class);let dd=!1;for(let pd=0;pd=0&&(ud.splice(fd,1),dd=!0,pd--)}dd&&(ld.attribs.class=ud.join(" "))}})}function toggleClass(Ra,qa){if(typeof Ra=="function")return domEach(this,(dd,pd)=>{isTag(dd)&&toggleClass.call([dd],Ra.call(dd,pd,dd.attribs.class||"",qa),qa)});if(!Ra||typeof Ra!="string")return this;const nd=Ra.split(rspace),od=nd.length,ld=typeof qa=="boolean"?qa?1:-1:0,ud=this.length;for(let dd=0;dd=0&&vd<0?fd.push(nd[md]):ld<=0&&vd>=0&&fd.splice(vd,1)}pd.attribs.class=fd.join(" ")}return this}const Attributes=Object.freeze(Object.defineProperty({__proto__:null,addClass,attr,data,hasClass,prop,removeAttr,removeClass,toggleClass,val:val$1},Symbol.toStringTag,{value:"Module"}));var SelectorType$2;(function(Ra){Ra.Attribute="attribute",Ra.Pseudo="pseudo",Ra.PseudoElement="pseudo-element",Ra.Tag="tag",Ra.Universal="universal",Ra.Adjacent="adjacent",Ra.Child="child",Ra.Descendant="descendant",Ra.Parent="parent",Ra.Sibling="sibling",Ra.ColumnCombinator="column-combinator"})(SelectorType$2||(SelectorType$2={}));var AttributeAction;(function(Ra){Ra.Any="any",Ra.Element="element",Ra.End="end",Ra.Equals="equals",Ra.Exists="exists",Ra.Hyphen="hyphen",Ra.Not="not",Ra.Start="start"})(AttributeAction||(AttributeAction={}));const reName=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,reEscape=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,actionTypes=new Map([[126,AttributeAction.Element],[94,AttributeAction.Start],[36,AttributeAction.End],[42,AttributeAction.Any],[33,AttributeAction.Not],[124,AttributeAction.Hyphen]]),unpackPseudos=new Set(["has","not","matches","is","where","host","host-context"]);function isTraversal$1(Ra){switch(Ra.type){case SelectorType$2.Adjacent:case SelectorType$2.Child:case SelectorType$2.Descendant:case SelectorType$2.Parent:case SelectorType$2.Sibling:case SelectorType$2.ColumnCombinator:return!0;default:return!1}}const stripQuotesFromPseudos=new Set(["contains","icontains"]);function funescape(Ra,qa,nd){const od=parseInt(qa,16)-65536;return od!==od||nd?qa:od<0?String.fromCharCode(od+65536):String.fromCharCode(od>>10|55296,od&1023|56320)}function unescapeCSS(Ra){return Ra.replace(reEscape,funescape)}function isQuote(Ra){return Ra===39||Ra===34}function isWhitespace$4(Ra){return Ra===32||Ra===9||Ra===10||Ra===12||Ra===13}function parse$8(Ra){const qa=[],nd=parseSelector(qa,`${Ra}`,0);if(nd0&&nd0&&isTraversal$1(od[od.length-1]))throw new Error("Did not expect successive traversals.")}function md(Nd){if(od.length>0&&od[od.length-1].type===SelectorType$2.Descendant){od[od.length-1].type=Nd;return}fd(),od.push({type:Nd})}function vd(Nd,Od){od.push({type:SelectorType$2.Attribute,name:Nd,action:Od,value:ld(1),namespace:null,ignoreCase:"quirks"})}function Ad(){if(od.length&&od[od.length-1].type===SelectorType$2.Descendant&&od.pop(),od.length===0)throw new Error("Empty sub-selector");Ra.push(od)}if(ud(0),qa.length===nd)return nd;e:for(;nd=0&&od>=1)):Ra.type===SelectorType$2.Pseudo&&(Ra.data?Ra.name==="has"||Ra.name==="contains"?od=0:Array.isArray(Ra.data)?(od=Math.min(...Ra.data.map(ld=>Math.min(...ld.map(getProcedure)))),od<0&&(od=0)):od=2:od=3),od}const reChars=/[-[\]{}()*+?.,\\^$|#\s]/g;function escapeRegex(Ra){return Ra.replace(reChars,"\\$&")}const caseInsensitiveAttributes=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function shouldIgnoreCase(Ra,qa){return typeof Ra.ignoreCase=="boolean"?Ra.ignoreCase:Ra.ignoreCase==="quirks"?!!qa.quirksMode:!qa.xmlMode&&caseInsensitiveAttributes.has(Ra.name)}const attributeRules={equals(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;return shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),dd=>{const pd=od.getAttributeValue(dd,ld);return pd!=null&&pd.length===ud.length&&pd.toLowerCase()===ud&&Ra(dd)}):dd=>od.getAttributeValue(dd,ld)===ud&&Ra(dd)},hyphen(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;const dd=ud.length;return shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),function(fd){const md=od.getAttributeValue(fd,ld);return md!=null&&(md.length===dd||md.charAt(dd)==="-")&&md.substr(0,dd).toLowerCase()===ud&&Ra(fd)}):function(fd){const md=od.getAttributeValue(fd,ld);return md!=null&&(md.length===dd||md.charAt(dd)==="-")&&md.substr(0,dd)===ud&&Ra(fd)}},element(Ra,qa,nd){const{adapter:od}=nd,{name:ld,value:ud}=qa;if(/\s/.test(ud))return boolbase$1.falseFunc;const dd=new RegExp(`(?:^|\\s)${escapeRegex(ud)}(?:$|\\s)`,shouldIgnoreCase(qa,nd)?"i":"");return function(fd){const md=od.getAttributeValue(fd,ld);return md!=null&&md.length>=ud.length&&dd.test(md)&&Ra(fd)}},exists(Ra,{name:qa},{adapter:nd}){return od=>nd.hasAttrib(od,qa)&&Ra(od)},start(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;const dd=ud.length;return dd===0?boolbase$1.falseFunc:shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),pd=>{const fd=od.getAttributeValue(pd,ld);return fd!=null&&fd.length>=dd&&fd.substr(0,dd).toLowerCase()===ud&&Ra(pd)}):pd=>{var fd;return!!(!((fd=od.getAttributeValue(pd,ld))===null||fd===void 0)&&fd.startsWith(ud))&&Ra(pd)}},end(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;const dd=-ud.length;return dd===0?boolbase$1.falseFunc:shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),pd=>{var fd;return((fd=od.getAttributeValue(pd,ld))===null||fd===void 0?void 0:fd.substr(dd).toLowerCase())===ud&&Ra(pd)}):pd=>{var fd;return!!(!((fd=od.getAttributeValue(pd,ld))===null||fd===void 0)&&fd.endsWith(ud))&&Ra(pd)}},any(Ra,qa,nd){const{adapter:od}=nd,{name:ld,value:ud}=qa;if(ud==="")return boolbase$1.falseFunc;if(shouldIgnoreCase(qa,nd)){const dd=new RegExp(escapeRegex(ud),"i");return function(fd){const md=od.getAttributeValue(fd,ld);return md!=null&&md.length>=ud.length&&dd.test(md)&&Ra(fd)}}return dd=>{var pd;return!!(!((pd=od.getAttributeValue(dd,ld))===null||pd===void 0)&&pd.includes(ud))&&Ra(dd)}},not(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;return ud===""?dd=>!!od.getAttributeValue(dd,ld)&&Ra(dd):shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),dd=>{const pd=od.getAttributeValue(dd,ld);return(pd==null||pd.length!==ud.length||pd.toLowerCase()!==ud)&&Ra(dd)}):dd=>od.getAttributeValue(dd,ld)!==ud&&Ra(dd)}},whitespace$1=new Set([9,10,12,13,32]),ZERO=48,NINE=57;function parse$7(Ra){if(Ra=Ra.trim().toLowerCase(),Ra==="even")return[2,0];if(Ra==="odd")return[2,1];let qa=0,nd=0,od=ud(),ld=dd();if(qa=ZERO&&Ra.charCodeAt(qa)<=NINE;)md=md*10+(Ra.charCodeAt(qa)-ZERO),qa++;return qa===fd?null:md}function pd(){for(;qaud<=nd;if(qa===0)return ud=>ud===nd;if(qa===1)return nd<0?boolbase$1.trueFunc:ud=>ud>=nd;const od=Math.abs(qa),ld=(nd%od+od)%od;return qa>1?ud=>ud>=nd&&ud%od===ld:ud=>ud<=nd&&ud%od===ld}function nthCheck(Ra){return compile$1(parse$7(Ra))}function getChildFunc(Ra,qa){return nd=>{const od=qa.getParent(nd);return od!=null&&qa.isTag(od)&&Ra(nd)}}const filters={contains(Ra,qa,{adapter:nd}){return function(ld){return Ra(ld)&&nd.getText(ld).includes(qa)}},icontains(Ra,qa,{adapter:nd}){const od=qa.toLowerCase();return function(ud){return Ra(ud)&&nd.getText(ud).toLowerCase().includes(od)}},"nth-child"(Ra,qa,{adapter:nd,equals:od}){const ld=nthCheck(qa);return ld===boolbase$1.falseFunc?boolbase$1.falseFunc:ld===boolbase$1.trueFunc?getChildFunc(Ra,nd):function(dd){const pd=nd.getSiblings(dd);let fd=0;for(let md=0;md=0&&!od(dd,pd[md]);md--)nd.isTag(pd[md])&&fd++;return ld(fd)&&Ra(dd)}},"nth-of-type"(Ra,qa,{adapter:nd,equals:od}){const ld=nthCheck(qa);return ld===boolbase$1.falseFunc?boolbase$1.falseFunc:ld===boolbase$1.trueFunc?getChildFunc(Ra,nd):function(dd){const pd=nd.getSiblings(dd);let fd=0;for(let md=0;md=0;md--){const vd=pd[md];if(od(dd,vd))break;nd.isTag(vd)&&nd.getName(vd)===nd.getName(dd)&&fd++}return ld(fd)&&Ra(dd)}},root(Ra,qa,{adapter:nd}){return od=>{const ld=nd.getParent(od);return(ld==null||!nd.isTag(ld))&&Ra(od)}},scope(Ra,qa,nd,od){const{equals:ld}=nd;return!od||od.length===0?filters.root(Ra,qa,nd):od.length===1?ud=>ld(od[0],ud)&&Ra(ud):ud=>od.includes(ud)&&Ra(ud)},hover:dynamicStatePseudo("isHovered"),visited:dynamicStatePseudo("isVisited"),active:dynamicStatePseudo("isActive")};function dynamicStatePseudo(Ra){return function(nd,od,{adapter:ld}){const ud=ld[Ra];return typeof ud!="function"?boolbase$1.falseFunc:function(pd){return ud(pd)&&nd(pd)}}}const pseudos={empty(Ra,{adapter:qa}){return!qa.getChildren(Ra).some(nd=>qa.isTag(nd)||qa.getText(nd)!=="")},"first-child"(Ra,{adapter:qa,equals:nd}){if(qa.prevElementSibling)return qa.prevElementSibling(Ra)==null;const od=qa.getSiblings(Ra).find(ld=>qa.isTag(ld));return od!=null&&nd(Ra,od)},"last-child"(Ra,{adapter:qa,equals:nd}){const od=qa.getSiblings(Ra);for(let ld=od.length-1;ld>=0;ld--){if(nd(Ra,od[ld]))return!0;if(qa.isTag(od[ld]))break}return!1},"first-of-type"(Ra,{adapter:qa,equals:nd}){const od=qa.getSiblings(Ra),ld=qa.getName(Ra);for(let ud=0;ud=0;ud--){const dd=od[ud];if(nd(Ra,dd))return!0;if(qa.isTag(dd)&&qa.getName(dd)===ld)break}return!1},"only-of-type"(Ra,{adapter:qa,equals:nd}){const od=qa.getName(Ra);return qa.getSiblings(Ra).every(ld=>nd(Ra,ld)||!qa.isTag(ld)||qa.getName(ld)!==od)},"only-child"(Ra,{adapter:qa,equals:nd}){return qa.getSiblings(Ra).every(od=>nd(Ra,od)||!qa.isTag(od))}};function verifyPseudoArgs(Ra,qa,nd,od){if(nd===null){if(Ra.length>od)throw new Error(`Pseudo-class :${qa} requires an argument`)}else if(Ra.length===od)throw new Error(`Pseudo-class :${qa} doesn't have any arguments`)}const aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is( + */(function(Ra){const qa=base64Js$1,nd=ieee754$1,od=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=vd,Ra.SlowBuffer=zd,Ra.INSPECT_MAX_BYTES=50;const ld=2147483647;Ra.kMaxLength=ld;const{Uint8Array:ud,ArrayBuffer:dd,SharedArrayBuffer:pd}=globalThis;vd.TYPED_ARRAY_SUPPORT=fd(),!vd.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function fd(){try{const Th=new ud(1),Rf={foo:function(){return 42}};return Object.setPrototypeOf(Rf,ud.prototype),Object.setPrototypeOf(Th,Rf),Th.foo()===42}catch{return!1}}Object.defineProperty(vd.prototype,"parent",{enumerable:!0,get:function(){if(vd.isBuffer(this))return this.buffer}}),Object.defineProperty(vd.prototype,"offset",{enumerable:!0,get:function(){if(vd.isBuffer(this))return this.byteOffset}});function md(Th){if(Th>ld)throw new RangeError('The value "'+Th+'" is invalid for option "size"');const Rf=new ud(Th);return Object.setPrototypeOf(Rf,vd.prototype),Rf}function vd(Th,Rf,wf){if(typeof Th=="number"){if(typeof Rf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return kd(Th)}return Ad(Th,Rf,wf)}vd.poolSize=8192;function Ad(Th,Rf,wf){if(typeof Th=="string")return Ld(Th,Rf);if(dd.isView(Th))return jd(Th);if(Th==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Th);if(Mm(Th,dd)||Th&&Mm(Th.buffer,dd)||typeof pd<"u"&&(Mm(Th,pd)||Th&&Mm(Th.buffer,pd)))return Fd(Th,Rf,wf);if(typeof Th=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const sh=Th.valueOf&&Th.valueOf();if(sh!=null&&sh!==Th)return vd.from(sh,Rf,wf);const xh=Ud(Th);if(xh)return xh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Th[Symbol.toPrimitive]=="function")return vd.from(Th[Symbol.toPrimitive]("string"),Rf,wf);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Th)}vd.from=function(Th,Rf,wf){return Ad(Th,Rf,wf)},Object.setPrototypeOf(vd.prototype,ud.prototype),Object.setPrototypeOf(vd,ud);function Nd(Th){if(typeof Th!="number")throw new TypeError('"size" argument must be of type number');if(Th<0)throw new RangeError('The value "'+Th+'" is invalid for option "size"')}function Od(Th,Rf,wf){return Nd(Th),Th<=0?md(Th):Rf!==void 0?typeof wf=="string"?md(Th).fill(Rf,wf):md(Th).fill(Rf):md(Th)}vd.alloc=function(Th,Rf,wf){return Od(Th,Rf,wf)};function kd(Th){return Nd(Th),md(Th<0?0:qd(Th)|0)}vd.allocUnsafe=function(Th){return kd(Th)},vd.allocUnsafeSlow=function(Th){return kd(Th)};function Ld(Th,Rf){if((typeof Rf!="string"||Rf==="")&&(Rf="utf8"),!vd.isEncoding(Rf))throw new TypeError("Unknown encoding: "+Rf);const wf=Wd(Th,Rf)|0;let sh=md(wf);const xh=sh.write(Th,Rf);return xh!==wf&&(sh=sh.slice(0,xh)),sh}function Gd(Th){const Rf=Th.length<0?0:qd(Th.length)|0,wf=md(Rf);for(let sh=0;sh=ld)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ld.toString(16)+" bytes");return Th|0}function zd(Th){return+Th!=Th&&(Th=0),vd.alloc(+Th)}vd.isBuffer=function(Rf){return Rf!=null&&Rf._isBuffer===!0&&Rf!==vd.prototype},vd.compare=function(Rf,wf){if(Mm(Rf,ud)&&(Rf=vd.from(Rf,Rf.offset,Rf.byteLength)),Mm(wf,ud)&&(wf=vd.from(wf,wf.offset,wf.byteLength)),!vd.isBuffer(Rf)||!vd.isBuffer(wf))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Rf===wf)return 0;let sh=Rf.length,xh=wf.length;for(let Wh=0,om=Math.min(sh,xh);Whxh.length?(vd.isBuffer(om)||(om=vd.from(om)),om.copy(xh,Wh)):ud.prototype.set.call(xh,om,Wh);else if(vd.isBuffer(om))om.copy(xh,Wh);else throw new TypeError('"list" argument must be an Array of Buffers');Wh+=om.length}return xh};function Wd(Th,Rf){if(vd.isBuffer(Th))return Th.length;if(dd.isView(Th)||Mm(Th,dd))return Th.byteLength;if(typeof Th!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Th);const wf=Th.length,sh=arguments.length>2&&arguments[2]===!0;if(!sh&&wf===0)return 0;let xh=!1;for(;;)switch(Rf){case"ascii":case"latin1":case"binary":return wf;case"utf8":case"utf-8":return mh(Th).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wf*2;case"hex":return wf>>>1;case"base64":return pm(Th).length;default:if(xh)return sh?-1:mh(Th).length;Rf=(""+Rf).toLowerCase(),xh=!0}}vd.byteLength=Wd;function Jd(Th,Rf,wf){let sh=!1;if((Rf===void 0||Rf<0)&&(Rf=0),Rf>this.length||((wf===void 0||wf>this.length)&&(wf=this.length),wf<=0)||(wf>>>=0,Rf>>>=0,wf<=Rf))return"";for(Th||(Th="utf8");;)switch(Th){case"hex":return qf(this,Rf,wf);case"utf8":case"utf-8":return If(this,Rf,wf);case"ascii":return Xf(this,Rf,wf);case"latin1":case"binary":return ph(this,Rf,wf);case"base64":return Nf(this,Rf,wf);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lf(this,Rf,wf);default:if(sh)throw new TypeError("Unknown encoding: "+Th);Th=(Th+"").toLowerCase(),sh=!0}}vd.prototype._isBuffer=!0;function _f(Th,Rf,wf){const sh=Th[Rf];Th[Rf]=Th[wf],Th[wf]=sh}vd.prototype.swap16=function(){const Rf=this.length;if(Rf%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let wf=0;wfwf&&(Rf+=" ... "),""},od&&(vd.prototype[od]=vd.prototype.inspect),vd.prototype.compare=function(Rf,wf,sh,xh,Wh){if(Mm(Rf,ud)&&(Rf=vd.from(Rf,Rf.offset,Rf.byteLength)),!vd.isBuffer(Rf))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Rf);if(wf===void 0&&(wf=0),sh===void 0&&(sh=Rf?Rf.length:0),xh===void 0&&(xh=0),Wh===void 0&&(Wh=this.length),wf<0||sh>Rf.length||xh<0||Wh>this.length)throw new RangeError("out of range index");if(xh>=Wh&&wf>=sh)return 0;if(xh>=Wh)return-1;if(wf>=sh)return 1;if(wf>>>=0,sh>>>=0,xh>>>=0,Wh>>>=0,this===Rf)return 0;let om=Wh-xh,Dm=sh-wf;const zm=Math.min(om,Dm),jm=this.slice(xh,Wh),ig=Rf.slice(wf,sh);for(let Zm=0;Zm2147483647?wf=2147483647:wf<-2147483648&&(wf=-2147483648),wf=+wf,Im(wf)&&(wf=xh?0:Th.length-1),wf<0&&(wf=Th.length+wf),wf>=Th.length){if(xh)return-1;wf=Th.length-1}else if(wf<0)if(xh)wf=0;else return-1;if(typeof Rf=="string"&&(Rf=vd.from(Rf,sh)),vd.isBuffer(Rf))return Rf.length===0?-1:pf(Th,Rf,wf,sh,xh);if(typeof Rf=="number")return Rf=Rf&255,typeof ud.prototype.indexOf=="function"?xh?ud.prototype.indexOf.call(Th,Rf,wf):ud.prototype.lastIndexOf.call(Th,Rf,wf):pf(Th,[Rf],wf,sh,xh);throw new TypeError("val must be string, number or Buffer")}function pf(Th,Rf,wf,sh,xh){let Wh=1,om=Th.length,Dm=Rf.length;if(sh!==void 0&&(sh=String(sh).toLowerCase(),sh==="ucs2"||sh==="ucs-2"||sh==="utf16le"||sh==="utf-16le")){if(Th.length<2||Rf.length<2)return-1;Wh=2,om/=2,Dm/=2,wf/=2}function zm(ig,Zm){return Wh===1?ig[Zm]:ig.readUInt16BE(Zm*Wh)}let jm;if(xh){let ig=-1;for(jm=wf;jmom&&(wf=om-Dm),jm=wf;jm>=0;jm--){let ig=!0;for(let Zm=0;Zmxh&&(sh=xh)):sh=xh;const Wh=Rf.length;sh>Wh/2&&(sh=Wh/2);let om;for(om=0;om>>0,isFinite(sh)?(sh=sh>>>0,xh===void 0&&(xh="utf8")):(xh=sh,sh=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Wh=this.length-wf;if((sh===void 0||sh>Wh)&&(sh=Wh),Rf.length>0&&(sh<0||wf<0)||wf>this.length)throw new RangeError("Attempt to write outside buffer bounds");xh||(xh="utf8");let om=!1;for(;;)switch(xh){case"hex":return mf(this,Rf,wf,sh);case"utf8":case"utf-8":return Sf(this,Rf,wf,sh);case"ascii":case"latin1":case"binary":return Tf(this,Rf,wf,sh);case"base64":return Af(this,Rf,wf,sh);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ef(this,Rf,wf,sh);default:if(om)throw new TypeError("Unknown encoding: "+xh);xh=(""+xh).toLowerCase(),om=!0}},vd.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Nf(Th,Rf,wf){return Rf===0&&wf===Th.length?qa.fromByteArray(Th):qa.fromByteArray(Th.slice(Rf,wf))}function If(Th,Rf,wf){wf=Math.min(Th.length,wf);const sh=[];let xh=Rf;for(;xh239?4:Wh>223?3:Wh>191?2:1;if(xh+Dm<=wf){let zm,jm,ig,Zm;switch(Dm){case 1:Wh<128&&(om=Wh);break;case 2:zm=Th[xh+1],(zm&192)===128&&(Zm=(Wh&31)<<6|zm&63,Zm>127&&(om=Zm));break;case 3:zm=Th[xh+1],jm=Th[xh+2],(zm&192)===128&&(jm&192)===128&&(Zm=(Wh&15)<<12|(zm&63)<<6|jm&63,Zm>2047&&(Zm<55296||Zm>57343)&&(om=Zm));break;case 4:zm=Th[xh+1],jm=Th[xh+2],ig=Th[xh+3],(zm&192)===128&&(jm&192)===128&&(ig&192)===128&&(Zm=(Wh&15)<<18|(zm&63)<<12|(jm&63)<<6|ig&63,Zm>65535&&Zm<1114112&&(om=Zm))}}om===null?(om=65533,Dm=1):om>65535&&(om-=65536,sh.push(om>>>10&1023|55296),om=56320|om&1023),sh.push(om),xh+=Dm}return Qf(sh)}const Gf=4096;function Qf(Th){const Rf=Th.length;if(Rf<=Gf)return String.fromCharCode.apply(String,Th);let wf="",sh=0;for(;shsh)&&(wf=sh);let xh="";for(let Wh=Rf;Whsh&&(Rf=sh),wf<0?(wf+=sh,wf<0&&(wf=0)):wf>sh&&(wf=sh),wfwf)throw new RangeError("Trying to access beyond buffer length")}vd.prototype.readUintLE=vd.prototype.readUIntLE=function(Rf,wf,sh){Rf=Rf>>>0,wf=wf>>>0,sh||Wf(Rf,wf,this.length);let xh=this[Rf],Wh=1,om=0;for(;++om>>0,wf=wf>>>0,sh||Wf(Rf,wf,this.length);let xh=this[Rf+--wf],Wh=1;for(;wf>0&&(Wh*=256);)xh+=this[Rf+--wf]*Wh;return xh},vd.prototype.readUint8=vd.prototype.readUInt8=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,1,this.length),this[Rf]},vd.prototype.readUint16LE=vd.prototype.readUInt16LE=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,2,this.length),this[Rf]|this[Rf+1]<<8},vd.prototype.readUint16BE=vd.prototype.readUInt16BE=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,2,this.length),this[Rf]<<8|this[Rf+1]},vd.prototype.readUint32LE=vd.prototype.readUInt32LE=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,4,this.length),(this[Rf]|this[Rf+1]<<8|this[Rf+2]<<16)+this[Rf+3]*16777216},vd.prototype.readUint32BE=vd.prototype.readUInt32BE=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,4,this.length),this[Rf]*16777216+(this[Rf+1]<<16|this[Rf+2]<<8|this[Rf+3])},vd.prototype.readBigUInt64LE=Lm(function(Rf){Rf=Rf>>>0,uh(Rf,"offset");const wf=this[Rf],sh=this[Rf+7];(wf===void 0||sh===void 0)&&Pf(Rf,this.length-8);const xh=wf+this[++Rf]*2**8+this[++Rf]*2**16+this[++Rf]*2**24,Wh=this[++Rf]+this[++Rf]*2**8+this[++Rf]*2**16+sh*2**24;return BigInt(xh)+(BigInt(Wh)<>>0,uh(Rf,"offset");const wf=this[Rf],sh=this[Rf+7];(wf===void 0||sh===void 0)&&Pf(Rf,this.length-8);const xh=wf*2**24+this[++Rf]*2**16+this[++Rf]*2**8+this[++Rf],Wh=this[++Rf]*2**24+this[++Rf]*2**16+this[++Rf]*2**8+sh;return(BigInt(xh)<>>0,wf=wf>>>0,sh||Wf(Rf,wf,this.length);let xh=this[Rf],Wh=1,om=0;for(;++om=Wh&&(xh-=Math.pow(2,8*wf)),xh},vd.prototype.readIntBE=function(Rf,wf,sh){Rf=Rf>>>0,wf=wf>>>0,sh||Wf(Rf,wf,this.length);let xh=wf,Wh=1,om=this[Rf+--xh];for(;xh>0&&(Wh*=256);)om+=this[Rf+--xh]*Wh;return Wh*=128,om>=Wh&&(om-=Math.pow(2,8*wf)),om},vd.prototype.readInt8=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,1,this.length),this[Rf]&128?(255-this[Rf]+1)*-1:this[Rf]},vd.prototype.readInt16LE=function(Rf,wf){Rf=Rf>>>0,wf||Wf(Rf,2,this.length);const sh=this[Rf]|this[Rf+1]<<8;return sh&32768?sh|4294901760:sh},vd.prototype.readInt16BE=function(Rf,wf){Rf=Rf>>>0,wf||Wf(Rf,2,this.length);const sh=this[Rf+1]|this[Rf]<<8;return sh&32768?sh|4294901760:sh},vd.prototype.readInt32LE=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,4,this.length),this[Rf]|this[Rf+1]<<8|this[Rf+2]<<16|this[Rf+3]<<24},vd.prototype.readInt32BE=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,4,this.length),this[Rf]<<24|this[Rf+1]<<16|this[Rf+2]<<8|this[Rf+3]},vd.prototype.readBigInt64LE=Lm(function(Rf){Rf=Rf>>>0,uh(Rf,"offset");const wf=this[Rf],sh=this[Rf+7];(wf===void 0||sh===void 0)&&Pf(Rf,this.length-8);const xh=this[Rf+4]+this[Rf+5]*2**8+this[Rf+6]*2**16+(sh<<24);return(BigInt(xh)<>>0,uh(Rf,"offset");const wf=this[Rf],sh=this[Rf+7];(wf===void 0||sh===void 0)&&Pf(Rf,this.length-8);const xh=(wf<<24)+this[++Rf]*2**16+this[++Rf]*2**8+this[++Rf];return(BigInt(xh)<>>0,wf||Wf(Rf,4,this.length),nd.read(this,Rf,!0,23,4)},vd.prototype.readFloatBE=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,4,this.length),nd.read(this,Rf,!1,23,4)},vd.prototype.readDoubleLE=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,8,this.length),nd.read(this,Rf,!0,52,8)},vd.prototype.readDoubleBE=function(Rf,wf){return Rf=Rf>>>0,wf||Wf(Rf,8,this.length),nd.read(this,Rf,!1,52,8)};function Jf(Th,Rf,wf,sh,xh,Wh){if(!vd.isBuffer(Th))throw new TypeError('"buffer" argument must be a Buffer instance');if(Rf>xh||RfTh.length)throw new RangeError("Index out of range")}vd.prototype.writeUintLE=vd.prototype.writeUIntLE=function(Rf,wf,sh,xh){if(Rf=+Rf,wf=wf>>>0,sh=sh>>>0,!xh){const Dm=Math.pow(2,8*sh)-1;Jf(this,Rf,wf,sh,Dm,0)}let Wh=1,om=0;for(this[wf]=Rf&255;++om>>0,sh=sh>>>0,!xh){const Dm=Math.pow(2,8*sh)-1;Jf(this,Rf,wf,sh,Dm,0)}let Wh=sh-1,om=1;for(this[wf+Wh]=Rf&255;--Wh>=0&&(om*=256);)this[wf+Wh]=Rf/om&255;return wf+sh},vd.prototype.writeUint8=vd.prototype.writeUInt8=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,1,255,0),this[wf]=Rf&255,wf+1},vd.prototype.writeUint16LE=vd.prototype.writeUInt16LE=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,2,65535,0),this[wf]=Rf&255,this[wf+1]=Rf>>>8,wf+2},vd.prototype.writeUint16BE=vd.prototype.writeUInt16BE=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,2,65535,0),this[wf]=Rf>>>8,this[wf+1]=Rf&255,wf+2},vd.prototype.writeUint32LE=vd.prototype.writeUInt32LE=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,4,4294967295,0),this[wf+3]=Rf>>>24,this[wf+2]=Rf>>>16,this[wf+1]=Rf>>>8,this[wf]=Rf&255,wf+4},vd.prototype.writeUint32BE=vd.prototype.writeUInt32BE=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,4,4294967295,0),this[wf]=Rf>>>24,this[wf+1]=Rf>>>16,this[wf+2]=Rf>>>8,this[wf+3]=Rf&255,wf+4};function Kf(Th,Rf,wf,sh,xh){Fh(Rf,sh,xh,Th,wf,7);let Wh=Number(Rf&BigInt(4294967295));Th[wf++]=Wh,Wh=Wh>>8,Th[wf++]=Wh,Wh=Wh>>8,Th[wf++]=Wh,Wh=Wh>>8,Th[wf++]=Wh;let om=Number(Rf>>BigInt(32)&BigInt(4294967295));return Th[wf++]=om,om=om>>8,Th[wf++]=om,om=om>>8,Th[wf++]=om,om=om>>8,Th[wf++]=om,wf}function Cf(Th,Rf,wf,sh,xh){Fh(Rf,sh,xh,Th,wf,7);let Wh=Number(Rf&BigInt(4294967295));Th[wf+7]=Wh,Wh=Wh>>8,Th[wf+6]=Wh,Wh=Wh>>8,Th[wf+5]=Wh,Wh=Wh>>8,Th[wf+4]=Wh;let om=Number(Rf>>BigInt(32)&BigInt(4294967295));return Th[wf+3]=om,om=om>>8,Th[wf+2]=om,om=om>>8,Th[wf+1]=om,om=om>>8,Th[wf]=om,wf+8}vd.prototype.writeBigUInt64LE=Lm(function(Rf,wf=0){return Kf(this,Rf,wf,BigInt(0),BigInt("0xffffffffffffffff"))}),vd.prototype.writeBigUInt64BE=Lm(function(Rf,wf=0){return Cf(this,Rf,wf,BigInt(0),BigInt("0xffffffffffffffff"))}),vd.prototype.writeIntLE=function(Rf,wf,sh,xh){if(Rf=+Rf,wf=wf>>>0,!xh){const zm=Math.pow(2,8*sh-1);Jf(this,Rf,wf,sh,zm-1,-zm)}let Wh=0,om=1,Dm=0;for(this[wf]=Rf&255;++Wh>0)-Dm&255;return wf+sh},vd.prototype.writeIntBE=function(Rf,wf,sh,xh){if(Rf=+Rf,wf=wf>>>0,!xh){const zm=Math.pow(2,8*sh-1);Jf(this,Rf,wf,sh,zm-1,-zm)}let Wh=sh-1,om=1,Dm=0;for(this[wf+Wh]=Rf&255;--Wh>=0&&(om*=256);)Rf<0&&Dm===0&&this[wf+Wh+1]!==0&&(Dm=1),this[wf+Wh]=(Rf/om>>0)-Dm&255;return wf+sh},vd.prototype.writeInt8=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,1,127,-128),Rf<0&&(Rf=255+Rf+1),this[wf]=Rf&255,wf+1},vd.prototype.writeInt16LE=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,2,32767,-32768),this[wf]=Rf&255,this[wf+1]=Rf>>>8,wf+2},vd.prototype.writeInt16BE=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,2,32767,-32768),this[wf]=Rf>>>8,this[wf+1]=Rf&255,wf+2},vd.prototype.writeInt32LE=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,4,2147483647,-2147483648),this[wf]=Rf&255,this[wf+1]=Rf>>>8,this[wf+2]=Rf>>>16,this[wf+3]=Rf>>>24,wf+4},vd.prototype.writeInt32BE=function(Rf,wf,sh){return Rf=+Rf,wf=wf>>>0,sh||Jf(this,Rf,wf,4,2147483647,-2147483648),Rf<0&&(Rf=4294967295+Rf+1),this[wf]=Rf>>>24,this[wf+1]=Rf>>>16,this[wf+2]=Rf>>>8,this[wf+3]=Rf&255,wf+4},vd.prototype.writeBigInt64LE=Lm(function(Rf,wf=0){return Kf(this,Rf,wf,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),vd.prototype.writeBigInt64BE=Lm(function(Rf,wf=0){return Cf(this,Rf,wf,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function xf(Th,Rf,wf,sh,xh,Wh){if(wf+sh>Th.length)throw new RangeError("Index out of range");if(wf<0)throw new RangeError("Index out of range")}function Yf(Th,Rf,wf,sh,xh){return Rf=+Rf,wf=wf>>>0,xh||xf(Th,Rf,wf,4),nd.write(Th,Rf,wf,sh,23,4),wf+4}vd.prototype.writeFloatLE=function(Rf,wf,sh){return Yf(this,Rf,wf,!0,sh)},vd.prototype.writeFloatBE=function(Rf,wf,sh){return Yf(this,Rf,wf,!1,sh)};function dh(Th,Rf,wf,sh,xh){return Rf=+Rf,wf=wf>>>0,xh||xf(Th,Rf,wf,8),nd.write(Th,Rf,wf,sh,52,8),wf+8}vd.prototype.writeDoubleLE=function(Rf,wf,sh){return dh(this,Rf,wf,!0,sh)},vd.prototype.writeDoubleBE=function(Rf,wf,sh){return dh(this,Rf,wf,!1,sh)},vd.prototype.copy=function(Rf,wf,sh,xh){if(!vd.isBuffer(Rf))throw new TypeError("argument should be a Buffer");if(sh||(sh=0),!xh&&xh!==0&&(xh=this.length),wf>=Rf.length&&(wf=Rf.length),wf||(wf=0),xh>0&&xh=this.length)throw new RangeError("Index out of range");if(xh<0)throw new RangeError("sourceEnd out of bounds");xh>this.length&&(xh=this.length),Rf.length-wf>>0,sh=sh===void 0?this.length:sh>>>0,Rf||(Rf=0);let Wh;if(typeof Rf=="number")for(Wh=wf;Wh2**32?xh=Bf(String(wf)):typeof wf=="bigint"&&(xh=String(wf),(wf>BigInt(2)**BigInt(32)||wf<-(BigInt(2)**BigInt(32)))&&(xh=Bf(xh)),xh+="n"),sh+=` It must be ${Rf}. Received ${xh}`,sh},RangeError);function Bf(Th){let Rf="",wf=Th.length;const sh=Th[0]==="-"?1:0;for(;wf>=sh+4;wf-=3)Rf=`_${Th.slice(wf-3,wf)}${Rf}`;return`${Th.slice(0,wf)}${Rf}`}function Sh(Th,Rf,wf){uh(Rf,"offset"),(Th[Rf]===void 0||Th[Rf+wf]===void 0)&&Pf(Rf,Th.length-(wf+1))}function Fh(Th,Rf,wf,sh,xh,Wh){if(Th>wf||Th= 0${om} and < 2${om} ** ${(Wh+1)*8}${om}`:Dm=`>= -(2${om} ** ${(Wh+1)*8-1}${om}) and < 2 ** ${(Wh+1)*8-1}${om}`,new Rh.ERR_OUT_OF_RANGE("value",Dm,Th)}Sh(sh,xh,Wh)}function uh(Th,Rf){if(typeof Th!="number")throw new Rh.ERR_INVALID_ARG_TYPE(Rf,"number",Th)}function Pf(Th,Rf,wf){throw Math.floor(Th)!==Th?(uh(Th,wf),new Rh.ERR_OUT_OF_RANGE("offset","an integer",Th)):Rf<0?new Rh.ERR_BUFFER_OUT_OF_BOUNDS:new Rh.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Rf}`,Th)}const Uf=/[^+/0-9A-Za-z-_]/g;function Zf(Th){if(Th=Th.split("=")[0],Th=Th.trim().replace(Uf,""),Th.length<2)return"";for(;Th.length%4!==0;)Th=Th+"=";return Th}function mh(Th,Rf){Rf=Rf||1/0;let wf;const sh=Th.length;let xh=null;const Wh=[];for(let om=0;om55295&&wf<57344){if(!xh){if(wf>56319){(Rf-=3)>-1&&Wh.push(239,191,189);continue}else if(om+1===sh){(Rf-=3)>-1&&Wh.push(239,191,189);continue}xh=wf;continue}if(wf<56320){(Rf-=3)>-1&&Wh.push(239,191,189),xh=wf;continue}wf=(xh-55296<<10|wf-56320)+65536}else xh&&(Rf-=3)>-1&&Wh.push(239,191,189);if(xh=null,wf<128){if((Rf-=1)<0)break;Wh.push(wf)}else if(wf<2048){if((Rf-=2)<0)break;Wh.push(wf>>6|192,wf&63|128)}else if(wf<65536){if((Rf-=3)<0)break;Wh.push(wf>>12|224,wf>>6&63|128,wf&63|128)}else if(wf<1114112){if((Rf-=4)<0)break;Wh.push(wf>>18|240,wf>>12&63|128,wf>>6&63|128,wf&63|128)}else throw new Error("Invalid code point")}return Wh}function Mh(Th){const Rf=[];for(let wf=0;wf>8,xh=wf%256,Wh.push(xh),Wh.push(sh);return Wh}function pm(Th){return qa.toByteArray(Zf(Th))}function Jh(Th,Rf,wf,sh){let xh;for(xh=0;xh=Rf.length||xh>=Th.length);++xh)Rf[xh+wf]=Th[xh];return xh}function Mm(Th,Rf){return Th instanceof Rf||Th!=null&&Th.constructor!=null&&Th.constructor.name!=null&&Th.constructor.name===Rf.name}function Im(Th){return Th!==Th}const gm=function(){const Th="0123456789abcdef",Rf=new Array(256);for(let wf=0;wf<16;++wf){const sh=wf*16;for(let xh=0;xh<16;++xh)Rf[sh+xh]=Th[wf]+Th[xh]}return Rf}();function Lm(Th){return typeof BigInt>"u"?Vm:Th}function Vm(){throw new Error("BigInt not supported")}})(buffer$1);const Buffer$4=buffer$1.Buffer;function getSymbols(Ra){return Object.getOwnPropertySymbols(Ra).filter(qa=>Object.prototype.propertyIsEnumerable.call(Ra,qa))}function cloneDeep(Ra){return cloneDeepImpl(Ra)}function cloneDeepImpl(Ra,qa=new Map){if(isPrimitive(Ra))return Ra;if(qa.has(Ra))return qa.get(Ra);if(Array.isArray(Ra)){const nd=new Array(Ra.length);qa.set(Ra,nd);for(let od=0;od0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(qa){this.children=qa}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}}let Element$1=class extends NodeWithChildren{constructor(qa,nd,od=[],ld=qa==="script"?ElementType.Script:qa==="style"?ElementType.Style:ElementType.Tag){super(od),this.name=qa,this.attribs=nd,this.type=ld}get nodeType(){return 1}get tagName(){return this.name}set tagName(qa){this.name=qa}get attributes(){return Object.keys(this.attribs).map(qa=>{var nd,od;return{name:qa,value:this.attribs[qa],namespace:(nd=this["x-attribsNamespace"])===null||nd===void 0?void 0:nd[qa],prefix:(od=this["x-attribsPrefix"])===null||od===void 0?void 0:od[qa]}})}};function isTag(Ra){return isTag$1(Ra)}function isCDATA(Ra){return Ra.type===ElementType.CDATA}function isText(Ra){return Ra.type===ElementType.Text}function isComment$2(Ra){return Ra.type===ElementType.Comment}function isDirective(Ra){return Ra.type===ElementType.Directive}function isDocument(Ra){return Ra.type===ElementType.Root}function hasChildren(Ra){return Object.prototype.hasOwnProperty.call(Ra,"children")}function cloneNode(Ra,qa=!1){let nd;if(isText(Ra))nd=new Text(Ra.data);else if(isComment$2(Ra))nd=new Comment(Ra.data);else if(isTag(Ra)){const od=qa?cloneChildren(Ra.children):[],ld=new Element$1(Ra.name,{...Ra.attribs},od);od.forEach(ud=>ud.parent=ld),Ra.namespace!=null&&(ld.namespace=Ra.namespace),Ra["x-attribsNamespace"]&&(ld["x-attribsNamespace"]={...Ra["x-attribsNamespace"]}),Ra["x-attribsPrefix"]&&(ld["x-attribsPrefix"]={...Ra["x-attribsPrefix"]}),nd=ld}else if(isCDATA(Ra)){const od=qa?cloneChildren(Ra.children):[],ld=new CDATA(od);od.forEach(ud=>ud.parent=ld),nd=ld}else if(isDocument(Ra)){const od=qa?cloneChildren(Ra.children):[],ld=new Document(od);od.forEach(ud=>ud.parent=ld),Ra["x-mode"]&&(ld["x-mode"]=Ra["x-mode"]),nd=ld}else if(isDirective(Ra)){const od=new ProcessingInstruction(Ra.name,Ra.data);Ra["x-name"]!=null&&(od["x-name"]=Ra["x-name"],od["x-publicId"]=Ra["x-publicId"],od["x-systemId"]=Ra["x-systemId"]),nd=od}else throw new Error(`Not implemented yet: ${Ra.type}`);return nd.startIndex=Ra.startIndex,nd.endIndex=Ra.endIndex,Ra.sourceCodeLocation!=null&&(nd.sourceCodeLocation=Ra.sourceCodeLocation),nd}function cloneChildren(Ra){const qa=Ra.map(nd=>cloneNode(nd,!0));for(let nd=1;nd䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(Ra=>Ra.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(Ra=>Ra.charCodeAt(0)));var _a$2;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint=(_a$2=String.fromCodePoint)!==null&&_a$2!==void 0?_a$2:function(Ra){let qa="";return Ra>65535&&(Ra-=65536,qa+=String.fromCharCode(Ra>>>10&1023|55296),Ra=56320|Ra&1023),qa+=String.fromCharCode(Ra),qa};function replaceCodePoint(Ra){var qa;return Ra>=55296&&Ra<=57343||Ra>1114111?65533:(qa=decodeMap.get(Ra))!==null&&qa!==void 0?qa:Ra}var CharCodes$1;(function(Ra){Ra[Ra.NUM=35]="NUM",Ra[Ra.SEMI=59]="SEMI",Ra[Ra.EQUALS=61]="EQUALS",Ra[Ra.ZERO=48]="ZERO",Ra[Ra.NINE=57]="NINE",Ra[Ra.LOWER_A=97]="LOWER_A",Ra[Ra.LOWER_F=102]="LOWER_F",Ra[Ra.LOWER_X=120]="LOWER_X",Ra[Ra.LOWER_Z=122]="LOWER_Z",Ra[Ra.UPPER_A=65]="UPPER_A",Ra[Ra.UPPER_F=70]="UPPER_F",Ra[Ra.UPPER_Z=90]="UPPER_Z"})(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(Ra){Ra[Ra.VALUE_LENGTH=49152]="VALUE_LENGTH",Ra[Ra.BRANCH_LENGTH=16256]="BRANCH_LENGTH",Ra[Ra.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber$2(Ra){return Ra>=CharCodes$1.ZERO&&Ra<=CharCodes$1.NINE}function isHexadecimalCharacter(Ra){return Ra>=CharCodes$1.UPPER_A&&Ra<=CharCodes$1.UPPER_F||Ra>=CharCodes$1.LOWER_A&&Ra<=CharCodes$1.LOWER_F}function isAsciiAlphaNumeric$1(Ra){return Ra>=CharCodes$1.UPPER_A&&Ra<=CharCodes$1.UPPER_Z||Ra>=CharCodes$1.LOWER_A&&Ra<=CharCodes$1.LOWER_Z||isNumber$2(Ra)}function isEntityInAttributeInvalidEnd(Ra){return Ra===CharCodes$1.EQUALS||isAsciiAlphaNumeric$1(Ra)}var EntityDecoderState;(function(Ra){Ra[Ra.EntityStart=0]="EntityStart",Ra[Ra.NumericStart=1]="NumericStart",Ra[Ra.NumericDecimal=2]="NumericDecimal",Ra[Ra.NumericHex=3]="NumericHex",Ra[Ra.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(Ra){Ra[Ra.Legacy=0]="Legacy",Ra[Ra.Strict=1]="Strict",Ra[Ra.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(qa,nd,od){this.decodeTree=qa,this.emitCodePoint=nd,this.errors=od,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(qa){this.decodeMode=qa,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(qa,nd){switch(this.state){case EntityDecoderState.EntityStart:return qa.charCodeAt(nd)===CharCodes$1.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(qa,nd+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(qa,nd));case EntityDecoderState.NumericStart:return this.stateNumericStart(qa,nd);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(qa,nd);case EntityDecoderState.NumericHex:return this.stateNumericHex(qa,nd);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(qa,nd)}}stateNumericStart(qa,nd){return nd>=qa.length?-1:(qa.charCodeAt(nd)|TO_LOWER_BIT)===CharCodes$1.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(qa,nd+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(qa,nd))}addToNumericResult(qa,nd,od,ld){if(nd!==od){const ud=od-nd;this.result=this.result*Math.pow(ld,ud)+parseInt(qa.substr(nd,ud),ld),this.consumed+=ud}}stateNumericHex(qa,nd){const od=nd;for(;nd>14;for(;nd>14,ud!==0){if(dd===CharCodes$1.SEMI)return this.emitNamedEntityData(this.treeIndex,ud,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var qa;const{result:nd,decodeTree:od}=this,ld=(od[nd]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(nd,ld,this.consumed),(qa=this.errors)===null||qa===void 0||qa.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(qa,nd,od){const{decodeTree:ld}=this;return this.emitCodePoint(nd===1?ld[qa]&~BinTrieFlags.VALUE_LENGTH:ld[qa+1],od),nd===3&&this.emitCodePoint(ld[qa+2],od),od}end(){var qa;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(qa=this.errors)===null||qa===void 0||qa.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(Ra){let qa="";const nd=new EntityDecoder(Ra,od=>qa+=fromCodePoint(od));return function(ld,ud){let dd=0,pd=0;for(;(pd=ld.indexOf("&",pd))>=0;){qa+=ld.slice(dd,pd),nd.startEntity(ud);const md=nd.write(ld,pd+1);if(md<0){dd=pd+nd.end();break}dd=pd+md,pd=md===0?dd+1:dd}const fd=qa+ld.slice(dd);return qa="",fd}}function determineBranch(Ra,qa,nd,od){const ld=(qa&BinTrieFlags.BRANCH_LENGTH)>>7,ud=qa&BinTrieFlags.JUMP_TABLE;if(ld===0)return ud!==0&&od===ud?nd:-1;if(ud){const fd=od-ud;return fd<0||fd>=ld?-1:Ra[nd+fd]-1}let dd=nd,pd=dd+ld-1;for(;dd<=pd;){const fd=dd+pd>>>1,md=Ra[fd];if(mdod)pd=fd-1;else return Ra[fd+ld]}return-1}getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),getCodePoint=String.prototype.codePointAt!=null?(Ra,qa)=>Ra.codePointAt(qa):(Ra,qa)=>(Ra.charCodeAt(qa)&64512)===55296?(Ra.charCodeAt(qa)-55296)*1024+Ra.charCodeAt(qa+1)-56320+65536:Ra.charCodeAt(qa);function encodeXML(Ra){let qa="",nd=0,od;for(;(od=xmlReplacer.exec(Ra))!==null;){const ld=od.index,ud=Ra.charCodeAt(ld),dd=xmlCodeMap.get(ud);dd!==void 0?(qa+=Ra.substring(nd,ld)+dd,nd=ld+1):(qa+=`${Ra.substring(nd,ld)}&#x${getCodePoint(Ra,ld).toString(16)};`,nd=xmlReplacer.lastIndex+=+((ud&64512)===55296))}return qa+Ra.substr(nd)}function getEscaper(Ra,qa){return function(od){let ld,ud=0,dd="";for(;ld=Ra.exec(od);)ud!==ld.index&&(dd+=od.substring(ud,ld.index)),dd+=qa.get(ld[0].charCodeAt(0)),ud=ld.index+1;return dd+od.substring(ud)}}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(Ra=>[Ra.toLowerCase(),Ra])),attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(Ra=>[Ra.toLowerCase(),Ra])),unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(Ra){return Ra.replace(/"/g,""")}function formatAttributes(Ra,qa){var nd;if(!Ra)return;const od=((nd=qa.encodeEntities)!==null&&nd!==void 0?nd:qa.decodeEntities)===!1?replaceQuotes:qa.xmlMode||qa.encodeEntities!=="utf8"?encodeXML:escapeAttribute;return Object.keys(Ra).map(ld=>{var ud,dd;const pd=(ud=Ra[ld])!==null&&ud!==void 0?ud:"";return qa.xmlMode==="foreign"&&(ld=(dd=attributeNames.get(ld))!==null&&dd!==void 0?dd:ld),!qa.emptyAttrs&&!qa.xmlMode&&pd===""?ld:`${ld}="${od(pd)}"`}).join(" ")}const singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render$3(Ra,qa={}){const nd="length"in Ra?Ra:[Ra];let od="";for(let ld=0;ld0&&(od+=render$3(Ra.children,qa)),(qa.xmlMode||!singleTag.has(Ra.name))&&(od+=``)),od}function renderDirective(Ra){return`<${Ra.data}>`}function renderText(Ra,qa){var nd;let od=Ra.data||"";return((nd=qa.encodeEntities)!==null&&nd!==void 0?nd:qa.decodeEntities)!==!1&&!(!qa.xmlMode&&Ra.parent&&unencodedElements.has(Ra.parent.name))&&(od=qa.xmlMode||qa.encodeEntities!=="utf8"?encodeXML(od):escapeText(od)),od}function renderCdata(Ra){return``}function renderComment(Ra){return``}function getOuterHTML(Ra,qa){return render$3(Ra,qa)}function getInnerHTML(Ra,qa){return hasChildren(Ra)?Ra.children.map(nd=>getOuterHTML(nd,qa)).join(""):""}function getText(Ra){return Array.isArray(Ra)?Ra.map(getText).join(""):isTag(Ra)?Ra.name==="br"?` +`:getText(Ra.children):isCDATA(Ra)?getText(Ra.children):isText(Ra)?Ra.data:""}function textContent(Ra){return Array.isArray(Ra)?Ra.map(textContent).join(""):hasChildren(Ra)&&!isComment$2(Ra)?textContent(Ra.children):isText(Ra)?Ra.data:""}function innerText(Ra){return Array.isArray(Ra)?Ra.map(innerText).join(""):hasChildren(Ra)&&(Ra.type===ElementType.Tag||isCDATA(Ra))?innerText(Ra.children):isText(Ra)?Ra.data:""}function getChildren(Ra){return hasChildren(Ra)?Ra.children:[]}function getParent(Ra){return Ra.parent||null}function getSiblings(Ra){const qa=getParent(Ra);if(qa!=null)return getChildren(qa);const nd=[Ra];let{prev:od,next:ld}=Ra;for(;od!=null;)nd.unshift(od),{prev:od}=od;for(;ld!=null;)nd.push(ld),{next:ld}=ld;return nd}function getAttributeValue(Ra,qa){var nd;return(nd=Ra.attribs)===null||nd===void 0?void 0:nd[qa]}function hasAttrib(Ra,qa){return Ra.attribs!=null&&Object.prototype.hasOwnProperty.call(Ra.attribs,qa)&&Ra.attribs[qa]!=null}function getName(Ra){return Ra.name}function nextElementSibling(Ra){let{next:qa}=Ra;for(;qa!==null&&!isTag(qa);)({next:qa}=qa);return qa}function prevElementSibling(Ra){let{prev:qa}=Ra;for(;qa!==null&&!isTag(qa);)({prev:qa}=qa);return qa}function removeElement(Ra){if(Ra.prev&&(Ra.prev.next=Ra.next),Ra.next&&(Ra.next.prev=Ra.prev),Ra.parent){const qa=Ra.parent.children,nd=qa.lastIndexOf(Ra);nd>=0&&qa.splice(nd,1)}Ra.next=null,Ra.prev=null,Ra.parent=null}function replaceElement(Ra,qa){const nd=qa.prev=Ra.prev;nd&&(nd.next=qa);const od=qa.next=Ra.next;od&&(od.prev=qa);const ld=qa.parent=Ra.parent;if(ld){const ud=ld.children;ud[ud.lastIndexOf(Ra)]=qa,Ra.parent=null}}function appendChild(Ra,qa){if(removeElement(qa),qa.next=null,qa.parent=Ra,Ra.children.push(qa)>1){const nd=Ra.children[Ra.children.length-2];nd.next=qa,qa.prev=nd}else qa.prev=null}function append$3(Ra,qa){removeElement(qa);const{parent:nd}=Ra,od=Ra.next;if(qa.next=od,qa.prev=Ra,Ra.next=qa,qa.parent=nd,od){if(od.prev=qa,nd){const ld=nd.children;ld.splice(ld.lastIndexOf(od),0,qa)}}else nd&&nd.children.push(qa)}function prependChild(Ra,qa){if(removeElement(qa),qa.parent=Ra,qa.prev=null,Ra.children.unshift(qa)!==1){const nd=Ra.children[1];nd.prev=qa,qa.next=nd}else qa.next=null}function prepend$1(Ra,qa){removeElement(qa);const{parent:nd}=Ra;if(nd){const od=nd.children;od.splice(od.indexOf(Ra),0,qa)}Ra.prev&&(Ra.prev.next=qa),qa.parent=nd,qa.prev=Ra.prev,qa.next=Ra,Ra.prev=qa}function filter$5(Ra,qa,nd=!0,od=1/0){return find$3(Ra,Array.isArray(qa)?qa:[qa],nd,od)}function find$3(Ra,qa,nd,od){const ld=[],ud=[qa],dd=[0];for(;;){if(dd[0]>=ud[0].length){if(dd.length===1)return ld;ud.shift(),dd.shift();continue}const pd=ud[0][dd[0]++];if(Ra(pd)&&(ld.push(pd),--od<=0))return ld;nd&&hasChildren(pd)&&pd.children.length>0&&(dd.unshift(0),ud.unshift(pd.children))}}function findOneChild(Ra,qa){return qa.find(Ra)}function findOne(Ra,qa,nd=!0){let od=null;for(let ld=0;ld0&&(od=findOne(Ra,ud.children,!0));else continue}return od}function existsOne(Ra,qa){return qa.some(nd=>isTag(nd)&&(Ra(nd)||existsOne(Ra,nd.children)))}function findAll(Ra,qa){const nd=[],od=[qa],ld=[0];for(;;){if(ld[0]>=od[0].length){if(od.length===1)return nd;od.shift(),ld.shift();continue}const ud=od[0][ld[0]++];isTag(ud)&&(Ra(ud)&&nd.push(ud),ud.children.length>0&&(ld.unshift(0),od.unshift(ud.children)))}}const Checks={tag_name(Ra){return typeof Ra=="function"?qa=>isTag(qa)&&Ra(qa.name):Ra==="*"?isTag:qa=>isTag(qa)&&qa.name===Ra},tag_type(Ra){return typeof Ra=="function"?qa=>Ra(qa.type):qa=>qa.type===Ra},tag_contains(Ra){return typeof Ra=="function"?qa=>isText(qa)&&Ra(qa.data):qa=>isText(qa)&&qa.data===Ra}};function getAttribCheck(Ra,qa){return typeof qa=="function"?nd=>isTag(nd)&&qa(nd.attribs[Ra]):nd=>isTag(nd)&&nd.attribs[Ra]===qa}function combineFuncs(Ra,qa){return nd=>Ra(nd)||qa(nd)}function compileTest(Ra){const qa=Object.keys(Ra).map(nd=>{const od=Ra[nd];return Object.prototype.hasOwnProperty.call(Checks,nd)?Checks[nd](od):getAttribCheck(nd,od)});return qa.length===0?null:qa.reduce(combineFuncs)}function testElement(Ra,qa){const nd=compileTest(Ra);return nd?nd(qa):!0}function getElements(Ra,qa,nd,od=1/0){const ld=compileTest(Ra);return ld?filter$5(ld,qa,nd,od):[]}function getElementById(Ra,qa,nd=!0){return Array.isArray(qa)||(qa=[qa]),findOne(getAttribCheck("id",Ra),qa,nd)}function getElementsByTagName(Ra,qa,nd=!0,od=1/0){return filter$5(Checks.tag_name(Ra),qa,nd,od)}function getElementsByTagType(Ra,qa,nd=!0,od=1/0){return filter$5(Checks.tag_type(Ra),qa,nd,od)}function removeSubsets(Ra){let qa=Ra.length;for(;--qa>=0;){const nd=Ra[qa];if(qa>0&&Ra.lastIndexOf(nd,qa-1)>=0){Ra.splice(qa,1);continue}for(let od=nd.parent;od;od=od.parent)if(Ra.includes(od)){Ra.splice(qa,1);break}}return Ra}var DocumentPosition$1;(function(Ra){Ra[Ra.DISCONNECTED=1]="DISCONNECTED",Ra[Ra.PRECEDING=2]="PRECEDING",Ra[Ra.FOLLOWING=4]="FOLLOWING",Ra[Ra.CONTAINS=8]="CONTAINS",Ra[Ra.CONTAINED_BY=16]="CONTAINED_BY"})(DocumentPosition$1||(DocumentPosition$1={}));function compareDocumentPosition(Ra,qa){const nd=[],od=[];if(Ra===qa)return 0;let ld=hasChildren(Ra)?Ra:Ra.parent;for(;ld;)nd.unshift(ld),ld=ld.parent;for(ld=hasChildren(qa)?qa:qa.parent;ld;)od.unshift(ld),ld=ld.parent;const ud=Math.min(nd.length,od.length);let dd=0;for(;ddfd.indexOf(vd)?pd===qa?DocumentPosition$1.FOLLOWING|DocumentPosition$1.CONTAINED_BY:DocumentPosition$1.FOLLOWING:pd===Ra?DocumentPosition$1.PRECEDING|DocumentPosition$1.CONTAINS:DocumentPosition$1.PRECEDING}function uniqueSort(Ra){return Ra=Ra.filter((qa,nd,od)=>!od.includes(qa,nd+1)),Ra.sort((qa,nd)=>{const od=compareDocumentPosition(qa,nd);return od&DocumentPosition$1.PRECEDING?-1:od&DocumentPosition$1.FOLLOWING?1:0}),Ra}function getFeed(Ra){const qa=getOneElement(isValidFeed,Ra);return qa?qa.name==="feed"?getAtomFeed(qa):getRssFeed(qa):null}function getAtomFeed(Ra){var qa;const nd=Ra.children,od={type:"atom",items:getElementsByTagName("entry",nd).map(dd=>{var pd;const{children:fd}=dd,md={media:getMediaElements(fd)};addConditionally(md,"id","id",fd),addConditionally(md,"title","title",fd);const vd=(pd=getOneElement("link",fd))===null||pd===void 0?void 0:pd.attribs.href;vd&&(md.link=vd);const Ad=fetch$1("summary",fd)||fetch$1("content",fd);Ad&&(md.description=Ad);const Nd=fetch$1("updated",fd);return Nd&&(md.pubDate=new Date(Nd)),md})};addConditionally(od,"id","id",nd),addConditionally(od,"title","title",nd);const ld=(qa=getOneElement("link",nd))===null||qa===void 0?void 0:qa.attribs.href;ld&&(od.link=ld),addConditionally(od,"description","subtitle",nd);const ud=fetch$1("updated",nd);return ud&&(od.updated=new Date(ud)),addConditionally(od,"author","email",nd,!0),od}function getRssFeed(Ra){var qa,nd;const od=(nd=(qa=getOneElement("channel",Ra.children))===null||qa===void 0?void 0:qa.children)!==null&&nd!==void 0?nd:[],ld={type:Ra.name.substr(0,3),id:"",items:getElementsByTagName("item",Ra.children).map(dd=>{const{children:pd}=dd,fd={media:getMediaElements(pd)};addConditionally(fd,"id","guid",pd),addConditionally(fd,"title","title",pd),addConditionally(fd,"link","link",pd),addConditionally(fd,"description","description",pd);const md=fetch$1("pubDate",pd)||fetch$1("dc:date",pd);return md&&(fd.pubDate=new Date(md)),fd})};addConditionally(ld,"title","title",od),addConditionally(ld,"link","link",od),addConditionally(ld,"description","description",od);const ud=fetch$1("lastBuildDate",od);return ud&&(ld.updated=new Date(ud)),addConditionally(ld,"author","managingEditor",od,!0),ld}const MEDIA_KEYS_STRING=["url","type","lang"],MEDIA_KEYS_INT=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(Ra){return getElementsByTagName("media:content",Ra).map(qa=>{const{attribs:nd}=qa,od={medium:nd.medium,isDefault:!!nd.isDefault};for(const ld of MEDIA_KEYS_STRING)nd[ld]&&(od[ld]=nd[ld]);for(const ld of MEDIA_KEYS_INT)nd[ld]&&(od[ld]=parseInt(nd[ld],10));return nd.expression&&(od.expression=nd.expression),od})}function getOneElement(Ra,qa){return getElementsByTagName(Ra,qa,!0,1)[0]}function fetch$1(Ra,qa,nd=!1){return textContent(getElementsByTagName(Ra,qa,nd,1)).trim()}function addConditionally(Ra,qa,nd,od,ld=!1){const ud=fetch$1(nd,od,ld);ud&&(Ra[qa]=ud)}function isValidFeed(Ra){return Ra==="rss"||Ra==="feed"||Ra==="rdf:RDF"}const DomUtils=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return DocumentPosition$1},append:append$3,appendChild,compareDocumentPosition,existsOne,filter:filter$5,find:find$3,findAll,findOne,findOneChild,getAttributeValue,getChildren,getElementById,getElements,getElementsByTagName,getElementsByTagType,getFeed,getInnerHTML,getName,getOuterHTML,getParent,getSiblings,getText,hasAttrib,hasChildren,innerText,isCDATA,isComment:isComment$2,isDocument,isTag,isText,nextElementSibling,prepend:prepend$1,prependChild,prevElementSibling,removeElement,removeSubsets,replaceElement,testElement,textContent,uniqueSort},Symbol.toStringTag,{value:"Module"})),defaultOpts$1={_useHtmlParser2:!1};function flattenOptions(Ra,qa){if(!Ra)return qa??defaultOpts$1;const nd={_useHtmlParser2:!!Ra.xmlMode,...qa,...Ra};return Ra.xml?(nd._useHtmlParser2=!0,nd.xmlMode=!0,Ra.xml!==!0&&Object.assign(nd,Ra.xml)):Ra.xmlMode&&(nd._useHtmlParser2=!0),nd}function render$2(Ra,qa,nd){return Ra?Ra(qa??Ra._root.children,null,void 0,nd).toString():""}function isOptions(Ra,qa){return typeof Ra=="object"&&Ra!=null&&!("length"in Ra)&&!("type"in Ra)}function html$5(Ra,qa){const nd=isOptions(Ra)?(qa=Ra,void 0):Ra,od={...this===null||this===void 0?void 0:this._options,...flattenOptions(qa)};return render$2(this,nd,od)}function xml$4(Ra){const qa={...this._options,xmlMode:!0};return render$2(this,Ra,qa)}function text$3(Ra){const qa=Ra??(this?this.root():[]);let nd="";for(let od=0;odnd.toUpperCase())}function cssCase(Ra){return Ra.replace(/[A-Z]/g,"-$&").toLowerCase()}function domEach(Ra,qa){const nd=Ra.length;for(let od=0;odRa.length-3)return!1;const nd=Ra.charCodeAt(qa+1);return(nd>=CharacterCodes.LowerA&&nd<=CharacterCodes.LowerZ||nd>=CharacterCodes.UpperA&&nd<=CharacterCodes.UpperZ||nd===CharacterCodes.Exclamation)&&Ra.includes(">",qa+2)}const hasOwn$1=Object.prototype.hasOwnProperty,rspace=/\s+/,dataAttrPrefix="data-",rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,rbrace=/^{[^]*}$|^\[[^]*]$/;function getAttr$1(Ra,qa,nd){var od;if(!(!Ra||!isTag(Ra))){if((od=Ra.attribs)!==null&&od!==void 0||(Ra.attribs={}),!qa)return Ra.attribs;if(hasOwn$1.call(Ra.attribs,qa))return!nd&&rboolean.test(qa)?qa:Ra.attribs[qa];if(Ra.name==="option"&&qa==="value")return text$3(Ra.children);if(Ra.name==="input"&&(Ra.attribs.type==="radio"||Ra.attribs.type==="checkbox")&&qa==="value")return"on"}}function setAttr(Ra,qa,nd){nd===null?removeAttribute(Ra,qa):Ra.attribs[qa]=`${nd}`}function attr(Ra,qa){if(typeof Ra=="object"||qa!==void 0){if(typeof qa=="function"){if(typeof Ra!="string")throw new Error("Bad combination of arguments.");return domEach(this,(nd,od)=>{isTag(nd)&&setAttr(nd,Ra,qa.call(nd,od,nd.attribs[Ra]))})}return domEach(this,nd=>{if(isTag(nd))if(typeof Ra=="object")for(const od of Object.keys(Ra)){const ld=Ra[od];setAttr(nd,od,ld)}else setAttr(nd,Ra,qa)})}return arguments.length>1?this:getAttr$1(this[0],Ra,this.options.xmlMode)}function getProp(Ra,qa,nd){return qa in Ra?Ra[qa]:!nd&&rboolean.test(qa)?getAttr$1(Ra,qa,!1)!==void 0:getAttr$1(Ra,qa,nd)}function setProp(Ra,qa,nd,od){qa in Ra?Ra[qa]=nd:setAttr(Ra,qa,!od&&rboolean.test(qa)?nd?"":null:`${nd}`)}function prop(Ra,qa){var nd;if(typeof Ra=="string"&&qa===void 0){const od=this[0];if(!od||!isTag(od))return;switch(Ra){case"style":{const ld=this.css(),ud=Object.keys(ld);for(let dd=0;dd").parent().html();case"innerHTML":return this.html();default:return getProp(od,Ra,this.options.xmlMode)}}if(typeof Ra=="object"||qa!==void 0){if(typeof qa=="function"){if(typeof Ra=="object")throw new TypeError("Bad combination of arguments.");return domEach(this,(od,ld)=>{isTag(od)&&setProp(od,Ra,qa.call(od,ld,getProp(od,Ra,this.options.xmlMode)),this.options.xmlMode)})}return domEach(this,od=>{if(isTag(od))if(typeof Ra=="object")for(const ld of Object.keys(Ra)){const ud=Ra[ld];setProp(od,ld,ud,this.options.xmlMode)}else setProp(od,Ra,qa,this.options.xmlMode)})}}function setData(Ra,qa,nd){var od;(od=Ra.data)!==null&&od!==void 0||(Ra.data={}),typeof qa=="object"?Object.assign(Ra.data,qa):typeof qa=="string"&&nd!==void 0&&(Ra.data[qa]=nd)}function readAllData(Ra){for(const qa of Object.keys(Ra.attribs)){if(!qa.startsWith(dataAttrPrefix))continue;const nd=camelCase$1(qa.slice(dataAttrPrefix.length));hasOwn$1.call(Ra.data,nd)||(Ra.data[nd]=parseDataValue(Ra.attribs[qa]))}return Ra.data}function readData(Ra,qa){const nd=dataAttrPrefix+cssCase(qa),od=Ra.data;if(hasOwn$1.call(od,qa))return od[qa];if(hasOwn$1.call(Ra.attribs,nd))return od[qa]=parseDataValue(Ra.attribs[nd])}function parseDataValue(Ra){if(Ra==="null")return null;if(Ra==="true")return!0;if(Ra==="false")return!1;const qa=Number(Ra);if(Ra===String(qa))return qa;if(rbrace.test(Ra))try{return JSON.parse(Ra)}catch{}return Ra}function data(Ra,qa){var nd;const od=this[0];if(!od||!isTag(od))return;const ld=od;return(nd=ld.data)!==null&&nd!==void 0||(ld.data={}),Ra==null?readAllData(ld):typeof Ra=="object"||qa!==void 0?(domEach(this,ud=>{isTag(ud)&&(typeof Ra=="object"?setData(ud,Ra):setData(ud,Ra,qa))}),this):readData(ld,Ra)}function val$1(Ra){const qa=arguments.length===0,nd=this[0];if(!nd||!isTag(nd))return qa?void 0:this;switch(nd.name){case"textarea":return this.text(Ra);case"select":{const od=this.find("option:selected");if(!qa){if(this.attr("multiple")==null&&typeof Ra=="object")return this;this.find("option").removeAttr("selected");const ld=typeof Ra=="object"?Ra:[Ra];for(const ud of ld)this.find(`option[value="${ud}"]`).attr("selected","");return this}return this.attr("multiple")?od.toArray().map(ld=>text$3(ld.children)):od.attr("value")}case"input":case"option":return qa?this.attr("value"):this.attr("value",Ra)}}function removeAttribute(Ra,qa){!Ra.attribs||!hasOwn$1.call(Ra.attribs,qa)||delete Ra.attribs[qa]}function splitNames(Ra){return Ra?Ra.trim().split(rspace):[]}function removeAttr(Ra){const qa=splitNames(Ra);for(const nd of qa)domEach(this,od=>{isTag(od)&&removeAttribute(od,nd)});return this}function hasClass(Ra){return this.toArray().some(qa=>{const nd=isTag(qa)&&qa.attribs.class;let od=-1;if(nd&&Ra.length>0)for(;(od=nd.indexOf(Ra,od+1))>-1;){const ld=od+Ra.length;if((od===0||rspace.test(nd[od-1]))&&(ld===nd.length||rspace.test(nd[ld])))return!0}return!1})}function addClass(Ra){if(typeof Ra=="function")return domEach(this,(od,ld)=>{if(isTag(od)){const ud=od.attribs.class||"";addClass.call([od],Ra.call(od,ld,ud))}});if(!Ra||typeof Ra!="string")return this;const qa=Ra.split(rspace),nd=this.length;for(let od=0;od{isTag(ld)&&removeClass.call([ld],Ra.call(ld,ud,ld.attribs.class||""))});const qa=splitNames(Ra),nd=qa.length,od=arguments.length===0;return domEach(this,ld=>{if(isTag(ld))if(od)ld.attribs.class="";else{const ud=splitNames(ld.attribs.class);let dd=!1;for(let pd=0;pd=0&&(ud.splice(fd,1),dd=!0,pd--)}dd&&(ld.attribs.class=ud.join(" "))}})}function toggleClass(Ra,qa){if(typeof Ra=="function")return domEach(this,(dd,pd)=>{isTag(dd)&&toggleClass.call([dd],Ra.call(dd,pd,dd.attribs.class||"",qa),qa)});if(!Ra||typeof Ra!="string")return this;const nd=Ra.split(rspace),od=nd.length,ld=typeof qa=="boolean"?qa?1:-1:0,ud=this.length;for(let dd=0;dd=0&&vd<0?fd.push(nd[md]):ld<=0&&vd>=0&&fd.splice(vd,1)}pd.attribs.class=fd.join(" ")}return this}const Attributes=Object.freeze(Object.defineProperty({__proto__:null,addClass,attr,data,hasClass,prop,removeAttr,removeClass,toggleClass,val:val$1},Symbol.toStringTag,{value:"Module"}));var SelectorType$2;(function(Ra){Ra.Attribute="attribute",Ra.Pseudo="pseudo",Ra.PseudoElement="pseudo-element",Ra.Tag="tag",Ra.Universal="universal",Ra.Adjacent="adjacent",Ra.Child="child",Ra.Descendant="descendant",Ra.Parent="parent",Ra.Sibling="sibling",Ra.ColumnCombinator="column-combinator"})(SelectorType$2||(SelectorType$2={}));var AttributeAction;(function(Ra){Ra.Any="any",Ra.Element="element",Ra.End="end",Ra.Equals="equals",Ra.Exists="exists",Ra.Hyphen="hyphen",Ra.Not="not",Ra.Start="start"})(AttributeAction||(AttributeAction={}));const reName=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,reEscape=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,actionTypes=new Map([[126,AttributeAction.Element],[94,AttributeAction.Start],[36,AttributeAction.End],[42,AttributeAction.Any],[33,AttributeAction.Not],[124,AttributeAction.Hyphen]]),unpackPseudos=new Set(["has","not","matches","is","where","host","host-context"]);function isTraversal$1(Ra){switch(Ra.type){case SelectorType$2.Adjacent:case SelectorType$2.Child:case SelectorType$2.Descendant:case SelectorType$2.Parent:case SelectorType$2.Sibling:case SelectorType$2.ColumnCombinator:return!0;default:return!1}}const stripQuotesFromPseudos=new Set(["contains","icontains"]);function funescape(Ra,qa,nd){const od=parseInt(qa,16)-65536;return od!==od||nd?qa:od<0?String.fromCharCode(od+65536):String.fromCharCode(od>>10|55296,od&1023|56320)}function unescapeCSS(Ra){return Ra.replace(reEscape,funescape)}function isQuote(Ra){return Ra===39||Ra===34}function isWhitespace$4(Ra){return Ra===32||Ra===9||Ra===10||Ra===12||Ra===13}function parse$8(Ra){const qa=[],nd=parseSelector(qa,`${Ra}`,0);if(nd0&&nd0&&isTraversal$1(od[od.length-1]))throw new Error("Did not expect successive traversals.")}function md(Nd){if(od.length>0&&od[od.length-1].type===SelectorType$2.Descendant){od[od.length-1].type=Nd;return}fd(),od.push({type:Nd})}function vd(Nd,Od){od.push({type:SelectorType$2.Attribute,name:Nd,action:Od,value:ld(1),namespace:null,ignoreCase:"quirks"})}function Ad(){if(od.length&&od[od.length-1].type===SelectorType$2.Descendant&&od.pop(),od.length===0)throw new Error("Empty sub-selector");Ra.push(od)}if(ud(0),qa.length===nd)return nd;e:for(;nd=0&&od>=1)):Ra.type===SelectorType$2.Pseudo&&(Ra.data?Ra.name==="has"||Ra.name==="contains"?od=0:Array.isArray(Ra.data)?(od=Math.min(...Ra.data.map(ld=>Math.min(...ld.map(getProcedure)))),od<0&&(od=0)):od=2:od=3),od}const reChars=/[-[\]{}()*+?.,\\^$|#\s]/g;function escapeRegex(Ra){return Ra.replace(reChars,"\\$&")}const caseInsensitiveAttributes=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function shouldIgnoreCase(Ra,qa){return typeof Ra.ignoreCase=="boolean"?Ra.ignoreCase:Ra.ignoreCase==="quirks"?!!qa.quirksMode:!qa.xmlMode&&caseInsensitiveAttributes.has(Ra.name)}const attributeRules={equals(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;return shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),dd=>{const pd=od.getAttributeValue(dd,ld);return pd!=null&&pd.length===ud.length&&pd.toLowerCase()===ud&&Ra(dd)}):dd=>od.getAttributeValue(dd,ld)===ud&&Ra(dd)},hyphen(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;const dd=ud.length;return shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),function(fd){const md=od.getAttributeValue(fd,ld);return md!=null&&(md.length===dd||md.charAt(dd)==="-")&&md.substr(0,dd).toLowerCase()===ud&&Ra(fd)}):function(fd){const md=od.getAttributeValue(fd,ld);return md!=null&&(md.length===dd||md.charAt(dd)==="-")&&md.substr(0,dd)===ud&&Ra(fd)}},element(Ra,qa,nd){const{adapter:od}=nd,{name:ld,value:ud}=qa;if(/\s/.test(ud))return boolbase$1.falseFunc;const dd=new RegExp(`(?:^|\\s)${escapeRegex(ud)}(?:$|\\s)`,shouldIgnoreCase(qa,nd)?"i":"");return function(fd){const md=od.getAttributeValue(fd,ld);return md!=null&&md.length>=ud.length&&dd.test(md)&&Ra(fd)}},exists(Ra,{name:qa},{adapter:nd}){return od=>nd.hasAttrib(od,qa)&&Ra(od)},start(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;const dd=ud.length;return dd===0?boolbase$1.falseFunc:shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),pd=>{const fd=od.getAttributeValue(pd,ld);return fd!=null&&fd.length>=dd&&fd.substr(0,dd).toLowerCase()===ud&&Ra(pd)}):pd=>{var fd;return!!(!((fd=od.getAttributeValue(pd,ld))===null||fd===void 0)&&fd.startsWith(ud))&&Ra(pd)}},end(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;const dd=-ud.length;return dd===0?boolbase$1.falseFunc:shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),pd=>{var fd;return((fd=od.getAttributeValue(pd,ld))===null||fd===void 0?void 0:fd.substr(dd).toLowerCase())===ud&&Ra(pd)}):pd=>{var fd;return!!(!((fd=od.getAttributeValue(pd,ld))===null||fd===void 0)&&fd.endsWith(ud))&&Ra(pd)}},any(Ra,qa,nd){const{adapter:od}=nd,{name:ld,value:ud}=qa;if(ud==="")return boolbase$1.falseFunc;if(shouldIgnoreCase(qa,nd)){const dd=new RegExp(escapeRegex(ud),"i");return function(fd){const md=od.getAttributeValue(fd,ld);return md!=null&&md.length>=ud.length&&dd.test(md)&&Ra(fd)}}return dd=>{var pd;return!!(!((pd=od.getAttributeValue(dd,ld))===null||pd===void 0)&&pd.includes(ud))&&Ra(dd)}},not(Ra,qa,nd){const{adapter:od}=nd,{name:ld}=qa;let{value:ud}=qa;return ud===""?dd=>!!od.getAttributeValue(dd,ld)&&Ra(dd):shouldIgnoreCase(qa,nd)?(ud=ud.toLowerCase(),dd=>{const pd=od.getAttributeValue(dd,ld);return(pd==null||pd.length!==ud.length||pd.toLowerCase()!==ud)&&Ra(dd)}):dd=>od.getAttributeValue(dd,ld)!==ud&&Ra(dd)}},whitespace$1=new Set([9,10,12,13,32]),ZERO=48,NINE=57;function parse$7(Ra){if(Ra=Ra.trim().toLowerCase(),Ra==="even")return[2,0];if(Ra==="odd")return[2,1];let qa=0,nd=0,od=ud(),ld=dd();if(qa=ZERO&&Ra.charCodeAt(qa)<=NINE;)md=md*10+(Ra.charCodeAt(qa)-ZERO),qa++;return qa===fd?null:md}function pd(){for(;qaud<=nd;if(qa===0)return ud=>ud===nd;if(qa===1)return nd<0?boolbase$1.trueFunc:ud=>ud>=nd;const od=Math.abs(qa),ld=(nd%od+od)%od;return qa>1?ud=>ud>=nd&&ud%od===ld:ud=>ud<=nd&&ud%od===ld}function nthCheck(Ra){return compile$1(parse$7(Ra))}function getChildFunc(Ra,qa){return nd=>{const od=qa.getParent(nd);return od!=null&&qa.isTag(od)&&Ra(nd)}}const filters={contains(Ra,qa,{adapter:nd}){return function(ld){return Ra(ld)&&nd.getText(ld).includes(qa)}},icontains(Ra,qa,{adapter:nd}){const od=qa.toLowerCase();return function(ud){return Ra(ud)&&nd.getText(ud).toLowerCase().includes(od)}},"nth-child"(Ra,qa,{adapter:nd,equals:od}){const ld=nthCheck(qa);return ld===boolbase$1.falseFunc?boolbase$1.falseFunc:ld===boolbase$1.trueFunc?getChildFunc(Ra,nd):function(dd){const pd=nd.getSiblings(dd);let fd=0;for(let md=0;md=0&&!od(dd,pd[md]);md--)nd.isTag(pd[md])&&fd++;return ld(fd)&&Ra(dd)}},"nth-of-type"(Ra,qa,{adapter:nd,equals:od}){const ld=nthCheck(qa);return ld===boolbase$1.falseFunc?boolbase$1.falseFunc:ld===boolbase$1.trueFunc?getChildFunc(Ra,nd):function(dd){const pd=nd.getSiblings(dd);let fd=0;for(let md=0;md=0;md--){const vd=pd[md];if(od(dd,vd))break;nd.isTag(vd)&&nd.getName(vd)===nd.getName(dd)&&fd++}return ld(fd)&&Ra(dd)}},root(Ra,qa,{adapter:nd}){return od=>{const ld=nd.getParent(od);return(ld==null||!nd.isTag(ld))&&Ra(od)}},scope(Ra,qa,nd,od){const{equals:ld}=nd;return!od||od.length===0?filters.root(Ra,qa,nd):od.length===1?ud=>ld(od[0],ud)&&Ra(ud):ud=>od.includes(ud)&&Ra(ud)},hover:dynamicStatePseudo("isHovered"),visited:dynamicStatePseudo("isVisited"),active:dynamicStatePseudo("isActive")};function dynamicStatePseudo(Ra){return function(nd,od,{adapter:ld}){const ud=ld[Ra];return typeof ud!="function"?boolbase$1.falseFunc:function(pd){return ud(pd)&&nd(pd)}}}const pseudos={empty(Ra,{adapter:qa}){return!qa.getChildren(Ra).some(nd=>qa.isTag(nd)||qa.getText(nd)!=="")},"first-child"(Ra,{adapter:qa,equals:nd}){if(qa.prevElementSibling)return qa.prevElementSibling(Ra)==null;const od=qa.getSiblings(Ra).find(ld=>qa.isTag(ld));return od!=null&&nd(Ra,od)},"last-child"(Ra,{adapter:qa,equals:nd}){const od=qa.getSiblings(Ra);for(let ld=od.length-1;ld>=0;ld--){if(nd(Ra,od[ld]))return!0;if(qa.isTag(od[ld]))break}return!1},"first-of-type"(Ra,{adapter:qa,equals:nd}){const od=qa.getSiblings(Ra),ld=qa.getName(Ra);for(let ud=0;ud=0;ud--){const dd=od[ud];if(nd(Ra,dd))return!0;if(qa.isTag(dd)&&qa.getName(dd)===ld)break}return!1},"only-of-type"(Ra,{adapter:qa,equals:nd}){const od=qa.getName(Ra);return qa.getSiblings(Ra).every(ld=>nd(Ra,ld)||!qa.isTag(ld)||qa.getName(ld)!==od)},"only-child"(Ra,{adapter:qa,equals:nd}){return qa.getSiblings(Ra).every(od=>nd(Ra,od)||!qa.isTag(od))}};function verifyPseudoArgs(Ra,qa,nd,od){if(nd===null){if(Ra.length>od)throw new Error(`Pseudo-class :${qa} requires an argument`)}else if(Ra.length===od)throw new Error(`Pseudo-class :${qa} doesn't have any arguments`)}const aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is( :is(button, input, select, textarea, optgroup, option)[disabled], optgroup[disabled] > option, fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *) - )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},PLACEHOLDER_ELEMENT={};function ensureIsTag(Ra,qa){return Ra===boolbase$1.falseFunc?boolbase$1.falseFunc:nd=>qa.isTag(nd)&&Ra(nd)}function getNextSiblings(Ra,qa){const nd=qa.getSiblings(Ra);if(nd.length<=1)return[];const od=nd.indexOf(Ra);return od<0||od===nd.length-1?[]:nd.slice(od+1).filter(qa.isTag)}function copyOptions(Ra){return{xmlMode:!!Ra.xmlMode,lowerCaseAttributeNames:!!Ra.lowerCaseAttributeNames,lowerCaseTags:!!Ra.lowerCaseTags,quirksMode:!!Ra.quirksMode,cacheResults:!!Ra.cacheResults,pseudos:Ra.pseudos,adapter:Ra.adapter,equals:Ra.equals}}const is$3=(Ra,qa,nd,od,ld)=>{const ud=ld(qa,copyOptions(nd),od);return ud===boolbase$1.trueFunc?Ra:ud===boolbase$1.falseFunc?boolbase$1.falseFunc:dd=>ud(dd)&&Ra(dd)},subselects={is:is$3,matches:is$3,where:is$3,not(Ra,qa,nd,od,ld){const ud=ld(qa,copyOptions(nd),od);return ud===boolbase$1.falseFunc?Ra:ud===boolbase$1.trueFunc?boolbase$1.falseFunc:dd=>!ud(dd)&&Ra(dd)},has(Ra,qa,nd,od,ld){const{adapter:ud}=nd,dd=copyOptions(nd);dd.relativeSelector=!0;const pd=qa.some(vd=>vd.some(isTraversal))?[PLACEHOLDER_ELEMENT]:void 0,fd=ld(qa,dd,pd);if(fd===boolbase$1.falseFunc)return boolbase$1.falseFunc;const md=ensureIsTag(fd,ud);if(pd&&fd!==boolbase$1.trueFunc){const{shouldTestNextSiblings:vd=!1}=fd;return Ad=>{if(!Ra(Ad))return!1;pd[0]=Ad;const Nd=ud.getChildren(Ad),Od=vd?[...Nd,...getNextSiblings(Ad,ud)]:Nd;return ud.existsOne(md,Od)}}return vd=>Ra(vd)&&ud.existsOne(md,ud.getChildren(vd))}};function compilePseudoSelector(Ra,qa,nd,od,ld){var ud;const{name:dd,data:pd}=qa;if(Array.isArray(pd)){if(!(dd in subselects))throw new Error(`Unknown pseudo-class :${dd}(${pd})`);return subselects[dd](Ra,pd,nd,od,ld)}const fd=(ud=nd.pseudos)===null||ud===void 0?void 0:ud[dd],md=typeof fd=="string"?fd:aliases[dd];if(typeof md=="string"){if(pd!=null)throw new Error(`Pseudo ${dd} doesn't have any arguments`);const vd=parse$8(md);return subselects.is(Ra,vd,nd,od,ld)}if(typeof fd=="function")return verifyPseudoArgs(fd,dd,pd,1),vd=>fd(vd,pd)&&Ra(vd);if(dd in filters)return filters[dd](Ra,pd,nd,od);if(dd in pseudos){const vd=pseudos[dd];return verifyPseudoArgs(vd,dd,pd,2),Ad=>vd(Ad,nd,pd)&&Ra(Ad)}throw new Error(`Unknown pseudo-class :${dd}`)}function getElementParent(Ra,qa){const nd=qa.getParent(Ra);return nd&&qa.isTag(nd)?nd:null}function compileGeneralSelector(Ra,qa,nd,od,ld){const{adapter:ud,equals:dd}=nd;switch(qa.type){case SelectorType$2.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case SelectorType$2.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case SelectorType$2.Attribute:{if(qa.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!nd.xmlMode||nd.lowerCaseAttributeNames)&&(qa.name=qa.name.toLowerCase()),attributeRules[qa.action](Ra,qa,nd)}case SelectorType$2.Pseudo:return compilePseudoSelector(Ra,qa,nd,od,ld);case SelectorType$2.Tag:{if(qa.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:pd}=qa;return(!nd.xmlMode||nd.lowerCaseTags)&&(pd=pd.toLowerCase()),function(md){return ud.getName(md)===pd&&Ra(md)}}case SelectorType$2.Descendant:{if(nd.cacheResults===!1||typeof WeakSet>"u")return function(md){let vd=md;for(;vd=getElementParent(vd,ud);)if(Ra(vd))return!0;return!1};const pd=new WeakSet;return function(md){let vd=md;for(;vd=getElementParent(vd,ud);)if(!pd.has(vd)){if(ud.isTag(vd)&&Ra(vd))return!0;pd.add(vd)}return!1}}case"_flexibleDescendant":return function(fd){let md=fd;do if(Ra(md))return!0;while(md=getElementParent(md,ud));return!1};case SelectorType$2.Parent:return function(fd){return ud.getChildren(fd).some(md=>ud.isTag(md)&&Ra(md))};case SelectorType$2.Child:return function(fd){const md=ud.getParent(fd);return md!=null&&ud.isTag(md)&&Ra(md)};case SelectorType$2.Sibling:return function(fd){const md=ud.getSiblings(fd);for(let vd=0;vdqa.some(includesScopePseudo)))}const DESCENDANT_TOKEN={type:SelectorType$2.Descendant},FLEXIBLE_DESCENDANT_TOKEN={type:"_flexibleDescendant"},SCOPE_TOKEN={type:SelectorType$2.Pseudo,name:"scope",data:null};function absolutize(Ra,{adapter:qa},nd){const od=!!(nd!=null&&nd.every(ld=>{const ud=qa.isTag(ld)&&qa.getParent(ld);return ld===PLACEHOLDER_ELEMENT||ud&&qa.isTag(ud)}));for(const ld of Ra){if(!(ld.length>0&&isTraversal(ld[0])&&ld[0].type!==SelectorType$2.Descendant))if(od&&!ld.some(includesScopePseudo))ld.unshift(DESCENDANT_TOKEN);else continue;ld.unshift(SCOPE_TOKEN)}}function compileToken(Ra,qa,nd){var od;Ra.forEach(sortByProcedure),nd=(od=qa.context)!==null&&od!==void 0?od:nd;const ld=Array.isArray(nd),ud=nd&&(Array.isArray(nd)?nd:[nd]);if(qa.relativeSelector!==!1)absolutize(Ra,qa,ud);else if(Ra.some(fd=>fd.length>0&&isTraversal(fd[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let dd=!1;const pd=Ra.map(fd=>{if(fd.length>=2){const[md,vd]=fd;md.type!==SelectorType$2.Pseudo||md.name!=="scope"||(ld&&vd.type===SelectorType$2.Descendant?fd[1]=FLEXIBLE_DESCENDANT_TOKEN:(vd.type===SelectorType$2.Adjacent||vd.type===SelectorType$2.Sibling)&&(dd=!0))}return compileRules(fd,qa,ud)}).reduce(reduceRules,boolbase$1.falseFunc);return pd.shouldTestNextSiblings=dd,pd}function compileRules(Ra,qa,nd){var od;return Ra.reduce((ld,ud)=>ld===boolbase$1.falseFunc?boolbase$1.falseFunc:compileGeneralSelector(ld,ud,qa,nd,compileToken),(od=qa.rootFunc)!==null&&od!==void 0?od:boolbase$1.trueFunc)}function reduceRules(Ra,qa){return qa===boolbase$1.falseFunc||Ra===boolbase$1.trueFunc?Ra:Ra===boolbase$1.falseFunc||qa===boolbase$1.trueFunc?qa:function(od){return Ra(od)||qa(od)}}const defaultEquals=(Ra,qa)=>Ra===qa,defaultOptions$6={adapter:DomUtils,equals:defaultEquals};function convertOptionFormats(Ra){var qa,nd,od,ld;const ud=Ra??defaultOptions$6;return(qa=ud.adapter)!==null&&qa!==void 0||(ud.adapter=DomUtils),(nd=ud.equals)!==null&&nd!==void 0||(ud.equals=(ld=(od=ud.adapter)===null||od===void 0?void 0:od.equals)!==null&&ld!==void 0?ld:defaultEquals),ud}function wrapCompile(Ra){return function(nd,od,ld){const ud=convertOptionFormats(od);return Ra(nd,ud,ld)}}const _compileToken=wrapCompile(compileToken);function prepareContext(Ra,qa,nd=!1){return nd&&(Ra=appendNextSiblings(Ra,qa)),Array.isArray(Ra)?qa.removeSubsets(Ra):qa.getChildren(Ra)}function appendNextSiblings(Ra,qa){const nd=Array.isArray(Ra)?Ra.slice(0):[Ra],od=nd.length;for(let ld=0;ldqa.some(isFilter)):!1}function getLimit(Ra,qa,nd){const od=qa!=null?parseInt(qa,10):NaN;switch(Ra){case"first":return 1;case"nth":case"eq":return isFinite(od)?od>=0?od+1:1/0:0;case"lt":return isFinite(od)?od>=0?Math.min(od,nd):1/0:0;case"gt":return isFinite(od)?1/0:0;case"odd":return 2*nd;case"even":return 2*nd-1;case"last":case"not":return 1/0}}function getDocumentRoot(Ra){for(;Ra.parent;)Ra=Ra.parent;return Ra}function groupSelectors(Ra){const qa=[],nd=[];for(const od of Ra)od.some(isFilter)?qa.push(od):nd.push(od);return[nd,qa]}const UNIVERSAL_SELECTOR={type:SelectorType$2.Universal,namespace:null},SCOPE_PSEUDO={type:SelectorType$2.Pseudo,name:"scope",data:null};function is$2(Ra,qa,nd={}){return some$2([Ra],qa,nd)}function some$2(Ra,qa,nd={}){if(typeof qa=="function")return Ra.some(qa);const[od,ld]=groupSelectors(parse$8(qa));return od.length>0&&Ra.some(_compileToken(od,nd))||ld.some(ud=>filterBySelector(ud,Ra,nd).length>0)}function filterByPosition(Ra,qa,nd,od){const ld=typeof nd=="string"?parseInt(nd,10):NaN;switch(Ra){case"first":case"lt":return qa;case"last":return qa.length>0?[qa[qa.length-1]]:qa;case"nth":case"eq":return isFinite(ld)&&Math.abs(ld)dd%2===0);case"odd":return qa.filter((ud,dd)=>dd%2===1);case"not":{const ud=new Set(filterParsed(nd,qa,od));return qa.filter(dd=>!ud.has(dd))}}}function filter$4(Ra,qa,nd={}){return filterParsed(parse$8(Ra),qa,nd)}function filterParsed(Ra,qa,nd){if(qa.length===0)return[];const[od,ld]=groupSelectors(Ra);let ud;if(od.length){const dd=filterElements(qa,od,nd);if(ld.length===0)return dd;dd.length&&(ud=new Set(dd))}for(let dd=0;ddisTag(vd)&&!ud.has(vd)):qa).length===0)break;const md=filterBySelector(pd,qa,nd);if(md.length)if(ud)md.forEach(vd=>ud.add(vd));else{if(dd===ld.length-1)return md;ud=new Set(md)}}return typeof ud<"u"?ud.size===qa.length?qa:qa.filter(dd=>ud.has(dd)):[]}function filterBySelector(Ra,qa,nd){var od;if(Ra.some(isTraversal$1)){const ld=(od=nd.root)!==null&&od!==void 0?od:getDocumentRoot(qa[0]),ud={...nd,context:qa,relativeSelector:!1};return Ra.push(SCOPE_PSEUDO),findFilterElements(ld,Ra,ud,!0,qa.length)}return findFilterElements(qa,Ra,nd,!1,qa.length)}function select$1(Ra,qa,nd={},od=1/0){if(typeof Ra=="function")return find$2(qa,Ra);const[ld,ud]=groupSelectors(parse$8(Ra)),dd=ud.map(pd=>findFilterElements(qa,pd,nd,!0,od));return ld.length&&dd.push(findElements(qa,ld,nd,od)),dd.length===0?[]:dd.length===1?dd[0]:uniqueSort(dd.reduce((pd,fd)=>[...pd,...fd]))}function findFilterElements(Ra,qa,nd,od,ld){const ud=qa.findIndex(isFilter),dd=qa.slice(0,ud),pd=qa[ud],fd=qa.length-1===ud?ld:1/0,md=getLimit(pd.name,pd.data,fd);if(md===0)return[];const Ad=(dd.length===0&&!Array.isArray(Ra)?getChildren(Ra).filter(isTag):dd.length===0?(Array.isArray(Ra)?Ra:[Ra]).filter(isTag):od||dd.some(isTraversal$1)?findElements(Ra,[dd],nd,md):filterElements(Ra,[dd],nd)).slice(0,md);let Nd=filterByPosition(pd.name,Ad,pd.data,nd);if(Nd.length===0||qa.length===ud+1)return Nd;const Od=qa.slice(ud+1),kd=Od.some(isTraversal$1);if(kd){if(isTraversal$1(Od[0])){const{type:Ld}=Od[0];(Ld===SelectorType$2.Sibling||Ld===SelectorType$2.Adjacent)&&(Nd=prepareContext(Nd,DomUtils,!0)),Od.unshift(UNIVERSAL_SELECTOR)}nd={...nd,relativeSelector:!1,rootFunc:Ld=>Nd.includes(Ld)}}else nd.rootFunc&&nd.rootFunc!==boolbase.trueFunc&&(nd={...nd,rootFunc:boolbase.trueFunc});return Od.some(isFilter)?findFilterElements(Nd,Od,nd,!1,ld):kd?findElements(Nd,[Od],nd,ld):filterElements(Nd,[Od],nd)}function findElements(Ra,qa,nd,od){const ld=_compileToken(qa,nd,Ra);return find$2(Ra,ld,od)}function find$2(Ra,qa,nd=1/0){const od=prepareContext(Ra,DomUtils,qa.shouldTestNextSiblings);return find$3(ld=>isTag(ld)&&qa(ld),od,!0,nd)}function filterElements(Ra,qa,nd){const od=(Array.isArray(Ra)?Ra:[Ra]).filter(isTag);if(od.length===0)return od;const ld=_compileToken(qa,nd);return ld===boolbase.trueFunc?od:od.filter(ld)}const reSiblingSelector=/^\s*[+~]/;function find$1(Ra){if(!Ra)return this._make([]);if(typeof Ra!="string"){const qa=isCheerio(Ra)?Ra.toArray():[Ra],nd=this.toArray();return this._make(qa.filter(od=>nd.some(ld=>contains(ld,od))))}return this._findBySelector(Ra,Number.POSITIVE_INFINITY)}function _findBySelector(Ra,qa){var nd;const od=this.toArray(),ld=reSiblingSelector.test(Ra)?od:this.children().toArray(),ud={context:od,root:(nd=this._root)===null||nd===void 0?void 0:nd[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(select$1(Ra,ld,ud,qa))}function _getMatcher(Ra){return function(qa,...nd){return function(od){var ld;let ud=Ra(qa,this);return od&&(ud=filterArray$1(ud,od,this.options.xmlMode,(ld=this._root)===null||ld===void 0?void 0:ld[0])),this._make(this.length>1&&ud.length>1?nd.reduce((dd,pd)=>pd(dd),ud):ud)}}}const _matcher=_getMatcher((Ra,qa)=>{let nd=[];for(let od=0;od0&&(nd=nd.concat(ld))}return nd}),_singleMatcher=_getMatcher((Ra,qa)=>{const nd=[];for(let od=0;od{const dd=[];return domEach(ud,pd=>{for(let fd;(fd=ld(pd))&&!(nd!=null&&nd(fd,dd.length));pd=fd)dd.push(fd)}),dd})(Ra,...qa);return function(ld,ud){nd=typeof ld=="string"?pd=>is$2(pd,ld,this.options):ld?getFilterFn(ld):null;const dd=od.call(this,ud);return nd=null,dd}}function _removeDuplicates(Ra){return Ra.length>1?Array.from(new Set(Ra)):Ra}const parent$1=_singleMatcher(({parent:Ra})=>Ra&&!isDocument(Ra)?Ra:null,_removeDuplicates),parents=_matcher(Ra=>{const qa=[];for(;Ra.parent&&!isDocument(Ra.parent);)qa.push(Ra.parent),Ra=Ra.parent;return qa},uniqueSort,Ra=>Ra.reverse()),parentsUntil=_matchUntil(({parent:Ra})=>Ra&&!isDocument(Ra)?Ra:null,uniqueSort,Ra=>Ra.reverse());function closest(Ra){var qa;const nd=[];if(!Ra)return this._make(nd);const od={xmlMode:this.options.xmlMode,root:(qa=this._root)===null||qa===void 0?void 0:qa[0]},ld=typeof Ra=="string"?ud=>is$2(ud,Ra,od):getFilterFn(Ra);return domEach(this,ud=>{for(ud&&!isDocument(ud)&&!isTag(ud)&&(ud=ud.parent);ud&&isTag(ud);){if(ld(ud,0)){nd.includes(ud)||nd.push(ud);break}ud=ud.parent}}),this._make(nd)}const next$1=_singleMatcher(Ra=>nextElementSibling(Ra)),nextAll=_matcher(Ra=>{const qa=[];for(;Ra.next;)Ra=Ra.next,isTag(Ra)&&qa.push(Ra);return qa},_removeDuplicates),nextUntil=_matchUntil(Ra=>nextElementSibling(Ra),_removeDuplicates),prev$1=_singleMatcher(Ra=>prevElementSibling(Ra)),prevAll=_matcher(Ra=>{const qa=[];for(;Ra.prev;)Ra=Ra.prev,isTag(Ra)&&qa.push(Ra);return qa},_removeDuplicates),prevUntil=_matchUntil(Ra=>prevElementSibling(Ra),_removeDuplicates),siblings=_matcher(Ra=>getSiblings(Ra).filter(qa=>isTag(qa)&&qa!==Ra),uniqueSort),children$2=_matcher(Ra=>getChildren(Ra).filter(isTag),_removeDuplicates);function contents(){const Ra=this.toArray().reduce((qa,nd)=>hasChildren(nd)?qa.concat(nd.children):qa,[]);return this._make(Ra)}function each$1(Ra){let qa=0;const nd=this.length;for(;qaRa.call(qa,nd,qa):isCheerio(Ra)?qa=>Array.prototype.includes.call(Ra,qa):function(qa){return Ra===qa}}function filter$3(Ra){var qa;return this._make(filterArray$1(this.toArray(),Ra,this.options.xmlMode,(qa=this._root)===null||qa===void 0?void 0:qa[0]))}function filterArray$1(Ra,qa,nd,od){return typeof qa=="string"?filter$4(qa,Ra,{xmlMode:nd,root:od}):Ra.filter(getFilterFn(qa))}function is$1(Ra){const qa=this.toArray();return typeof Ra=="string"?some$2(qa.filter(isTag),Ra,this.options):Ra?qa.some(getFilterFn(Ra)):!1}function not$1(Ra){let qa=this.toArray();if(typeof Ra=="string"){const nd=new Set(filter$4(Ra,qa,this.options));qa=qa.filter(od=>!nd.has(od))}else{const nd=getFilterFn(Ra);qa=qa.filter((od,ld)=>!nd(od,ld))}return this._make(qa)}function has(Ra){return this.filter(typeof Ra=="string"?`:has(${Ra})`:(qa,nd)=>this._make(nd).find(Ra).length>0)}function first(){return this.length>1?this._make(this[0]):this}function last(){return this.length>0?this._make(this[this.length-1]):this}function eq$1(Ra){var qa;return Ra=+Ra,Ra===0&&this.length<=1?this:(Ra<0&&(Ra=this.length+Ra),this._make((qa=this[Ra])!==null&&qa!==void 0?qa:[]))}function get$2(Ra){return Ra==null?this.toArray():this[Ra<0?this.length+Ra:Ra]}function toArray$4(){return Array.prototype.slice.call(this)}function index$1(Ra){let qa,nd;return Ra==null?(qa=this.parent().children(),nd=this[0]):typeof Ra=="string"?(qa=this._make(Ra),nd=this[0]):(qa=this,nd=isCheerio(Ra)?Ra[0]:Ra),Array.prototype.indexOf.call(qa,nd)}function slice$1(Ra,qa){return this._make(Array.prototype.slice.call(this,Ra,qa))}function end(){var Ra;return(Ra=this.prevObject)!==null&&Ra!==void 0?Ra:this._make([])}function add(Ra,qa){const nd=this._make(Ra,qa),od=uniqueSort([...this.get(),...nd.get()]);return this._make(od)}function addBack(Ra){return this.prevObject?this.add(Ra?this.prevObject.filter(Ra):this.prevObject):this}const Traversing=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector,add,addBack,children:children$2,closest,contents,each:each$1,end,eq:eq$1,filter:filter$3,filterArray:filterArray$1,find:find$1,first,get:get$2,has,index:index$1,is:is$1,last,map:map$5,next:next$1,nextAll,nextUntil,not:not$1,parent:parent$1,parents,parentsUntil,prev:prev$1,prevAll,prevUntil,siblings,slice:slice$1,toArray:toArray$4},Symbol.toStringTag,{value:"Module"}));function getParse(Ra){return function(nd,od,ld,ud){if(typeof Buffer$4<"u"&&Buffer$4.isBuffer(nd)&&(nd=nd.toString()),typeof nd=="string")return Ra(nd,od,ld,ud);const dd=nd;if(!Array.isArray(dd)&&isDocument(dd))return dd;const pd=new Document([]);return update(dd,pd),pd}}function update(Ra,qa){const nd=Array.isArray(Ra)?Ra:[Ra];qa?qa.children=nd:qa=null;for(let od=0;od{if(!hasChildren(od))return;const ud=typeof qa[0]=="function"?qa[0].call(od,ld,this._render(od.children)):qa,dd=this._makeDomArray(ud,ld=Ra.length?null:Ra[qa+nd];for(let vd=0;vd-1&&(Nd.children.splice(kd,1),ld===Nd&&qa>kd&&pd[0]--)}Ad.parent=ld,Ad.prev&&(Ad.prev.next=(ud=Ad.next)!==null&&ud!==void 0?ud:null),Ad.next&&(Ad.next.prev=(dd=Ad.prev)!==null&&dd!==void 0?dd:null),Ad.prev=vd===0?fd:od[vd-1],Ad.next=vd===od.length-1?md:od[vd+1]}return fd&&(fd.next=od[0]),md&&(md.prev=od[od.length-1]),Ra.splice(...pd)}function appendTo(Ra){return(isCheerio(Ra)?Ra:this._make(Ra)).append(this),this}function prependTo(Ra){return(isCheerio(Ra)?Ra:this._make(Ra)).prepend(this),this}const append$2=_insert((Ra,qa,nd)=>{uniqueSplice(qa,qa.length,0,Ra,nd)}),prepend=_insert((Ra,qa,nd)=>{uniqueSplice(qa,0,0,Ra,nd)});function _wrap(Ra){return function(qa){const nd=this.length-1,od=this.parents().last();for(let ld=0;ld{const{parent:od}=Ra;if(!od)return;const ld=od.children,ud=ld.indexOf(Ra);update([Ra],qa),uniqueSplice(ld,ud,0,nd,od)}),wrapInner=_wrap((Ra,qa,nd)=>{hasChildren(Ra)&&(update(Ra.children,qa),update(nd,Ra))});function unwrap(Ra){return this.parent(Ra).not("body").each((qa,nd)=>{this._make(nd).replaceWith(nd.children)}),this}function wrapAll(Ra){const qa=this[0];if(qa){const nd=this._make(typeof Ra=="function"?Ra.call(qa,0,qa):Ra).insertBefore(qa);let od;for(let ud=0;ud{if(!hasChildren(nd)||!nd.parent)return;const ld=nd.parent.children,ud=ld.indexOf(nd);if(ud<0)return;const dd=typeof Ra[0]=="function"?Ra[0].call(nd,od,this._render(nd.children)):Ra,pd=this._makeDomArray(dd,od{if(!hasChildren(nd)||!nd.parent)return;const ld=nd.parent.children,ud=ld.indexOf(nd);if(ud<0)return;const dd=typeof Ra[0]=="function"?Ra[0].call(nd,od,this._render(nd.children)):Ra,pd=this._makeDomArray(dd,od{const ld=this.clone().toArray(),{parent:ud}=od;if(!ud)return;const dd=ud.children,pd=dd.indexOf(od);pd<0||(uniqueSplice(dd,pd,0,ld,ud),nd.push(...ld))}),this._make(nd)}function remove$1(Ra){const qa=Ra?this.filter(Ra):this;return domEach(qa,nd=>{removeElement(nd),nd.prev=nd.next=nd.parent=null}),this}function replaceWith(Ra){return domEach(this,(qa,nd)=>{const{parent:od}=qa;if(!od)return;const ld=od.children,ud=typeof Ra=="function"?Ra.call(qa,nd,qa):Ra,dd=this._makeDomArray(ud);update(dd,null);const pd=ld.indexOf(qa);uniqueSplice(ld,pd,1,dd,od),dd.includes(qa)||(qa.parent=qa.prev=qa.next=null)})}function empty$1(){return domEach(this,Ra=>{if(hasChildren(Ra)){for(const qa of Ra.children)qa.next=qa.prev=qa.parent=null;Ra.children.length=0}})}function html$4(Ra){if(Ra===void 0){const qa=this[0];return!qa||!hasChildren(qa)?null:this._render(qa.children)}return domEach(this,qa=>{if(!hasChildren(qa))return;for(const od of qa.children)od.next=od.prev=od.parent=null;const nd=isCheerio(Ra)?Ra.toArray():this._parse(`${Ra}`,this.options,!1,qa).children;update(nd,qa)})}function toString$2(){return this._render(this)}function text$2(Ra){return Ra===void 0?text$3(this):typeof Ra=="function"?domEach(this,(qa,nd)=>this._make(qa).text(Ra.call(qa,nd,text$3([qa])))):domEach(this,qa=>{if(!hasChildren(qa))return;for(const od of qa.children)od.next=od.prev=od.parent=null;const nd=new Text(`${Ra}`);update(nd,qa)})}function clone$1(){const Ra=Array.prototype.map.call(this.get(),nd=>cloneNode(nd,!0)),qa=new Document(Ra);for(const nd of Ra)nd.parent=qa;return this._make(Ra)}const Manipulation=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray,after,append:append$2,appendTo,before,clone:clone$1,empty:empty$1,html:html$4,insertAfter,insertBefore,prepend,prependTo,remove:remove$1,replaceWith,text:text$2,toString:toString$2,unwrap,wrap:wrap$1,wrapAll,wrapInner},Symbol.toStringTag,{value:"Module"}));function css$1(Ra,qa){if(Ra!=null&&qa!=null||typeof Ra=="object"&&!Array.isArray(Ra))return domEach(this,(nd,od)=>{isTag(nd)&&setCss(nd,Ra,qa,od)});if(this.length!==0)return getCss(this[0],Ra)}function setCss(Ra,qa,nd,od){if(typeof qa=="string"){const ld=getCss(Ra),ud=typeof nd=="function"?nd.call(Ra,od,ld[qa]):nd;ud===""?delete ld[qa]:ud!=null&&(ld[qa]=ud),Ra.attribs.style=stringify$3(ld)}else if(typeof qa=="object"){const ld=Object.keys(qa);for(let ud=0;ud`${qa}${qa?" ":""}${nd}: ${Ra[nd]};`,"")}function parse$6(Ra){if(Ra=(Ra||"").trim(),!Ra)return{};const qa={};let nd;for(const od of Ra.split(";")){const ld=od.indexOf(":");if(ld<1||ld===od.length-1){const ud=od.trimEnd();ud.length>0&&nd!==void 0&&(qa[nd]+=`;${ud}`)}else nd=od.slice(0,ld).trim(),qa[nd]=od.slice(ld+1).trim()}return qa}const Css=Object.freeze(Object.defineProperty({__proto__:null,css:css$1},Symbol.toStringTag,{value:"Module"})),submittableSelector="input,select,textarea,keygen",r20=/%20/g,rCRLF=/\r?\n/g;function serialize$1(){return this.serializeArray().map(nd=>`${encodeURIComponent(nd.name)}=${encodeURIComponent(nd.value)}`).join("&").replace(r20,"+")}function serializeArray(){return this.map((Ra,qa)=>{const nd=this._make(qa);return isTag(qa)&&qa.name==="form"?nd.find(submittableSelector).toArray():nd.filter(submittableSelector).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((Ra,qa)=>{var nd;const od=this._make(qa),ld=od.attr("name"),ud=(nd=od.val())!==null&&nd!==void 0?nd:"";return Array.isArray(ud)?ud.map(dd=>({name:ld,value:dd.replace(rCRLF,`\r + )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},PLACEHOLDER_ELEMENT={};function ensureIsTag(Ra,qa){return Ra===boolbase$1.falseFunc?boolbase$1.falseFunc:nd=>qa.isTag(nd)&&Ra(nd)}function getNextSiblings(Ra,qa){const nd=qa.getSiblings(Ra);if(nd.length<=1)return[];const od=nd.indexOf(Ra);return od<0||od===nd.length-1?[]:nd.slice(od+1).filter(qa.isTag)}function copyOptions(Ra){return{xmlMode:!!Ra.xmlMode,lowerCaseAttributeNames:!!Ra.lowerCaseAttributeNames,lowerCaseTags:!!Ra.lowerCaseTags,quirksMode:!!Ra.quirksMode,cacheResults:!!Ra.cacheResults,pseudos:Ra.pseudos,adapter:Ra.adapter,equals:Ra.equals}}const is$3=(Ra,qa,nd,od,ld)=>{const ud=ld(qa,copyOptions(nd),od);return ud===boolbase$1.trueFunc?Ra:ud===boolbase$1.falseFunc?boolbase$1.falseFunc:dd=>ud(dd)&&Ra(dd)},subselects={is:is$3,matches:is$3,where:is$3,not(Ra,qa,nd,od,ld){const ud=ld(qa,copyOptions(nd),od);return ud===boolbase$1.falseFunc?Ra:ud===boolbase$1.trueFunc?boolbase$1.falseFunc:dd=>!ud(dd)&&Ra(dd)},has(Ra,qa,nd,od,ld){const{adapter:ud}=nd,dd=copyOptions(nd);dd.relativeSelector=!0;const pd=qa.some(vd=>vd.some(isTraversal))?[PLACEHOLDER_ELEMENT]:void 0,fd=ld(qa,dd,pd);if(fd===boolbase$1.falseFunc)return boolbase$1.falseFunc;const md=ensureIsTag(fd,ud);if(pd&&fd!==boolbase$1.trueFunc){const{shouldTestNextSiblings:vd=!1}=fd;return Ad=>{if(!Ra(Ad))return!1;pd[0]=Ad;const Nd=ud.getChildren(Ad),Od=vd?[...Nd,...getNextSiblings(Ad,ud)]:Nd;return ud.existsOne(md,Od)}}return vd=>Ra(vd)&&ud.existsOne(md,ud.getChildren(vd))}};function compilePseudoSelector(Ra,qa,nd,od,ld){var ud;const{name:dd,data:pd}=qa;if(Array.isArray(pd)){if(!(dd in subselects))throw new Error(`Unknown pseudo-class :${dd}(${pd})`);return subselects[dd](Ra,pd,nd,od,ld)}const fd=(ud=nd.pseudos)===null||ud===void 0?void 0:ud[dd],md=typeof fd=="string"?fd:aliases[dd];if(typeof md=="string"){if(pd!=null)throw new Error(`Pseudo ${dd} doesn't have any arguments`);const vd=parse$8(md);return subselects.is(Ra,vd,nd,od,ld)}if(typeof fd=="function")return verifyPseudoArgs(fd,dd,pd,1),vd=>fd(vd,pd)&&Ra(vd);if(dd in filters)return filters[dd](Ra,pd,nd,od);if(dd in pseudos){const vd=pseudos[dd];return verifyPseudoArgs(vd,dd,pd,2),Ad=>vd(Ad,nd,pd)&&Ra(Ad)}throw new Error(`Unknown pseudo-class :${dd}`)}function getElementParent(Ra,qa){const nd=qa.getParent(Ra);return nd&&qa.isTag(nd)?nd:null}function compileGeneralSelector(Ra,qa,nd,od,ld){const{adapter:ud,equals:dd}=nd;switch(qa.type){case SelectorType$2.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case SelectorType$2.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case SelectorType$2.Attribute:{if(qa.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!nd.xmlMode||nd.lowerCaseAttributeNames)&&(qa.name=qa.name.toLowerCase()),attributeRules[qa.action](Ra,qa,nd)}case SelectorType$2.Pseudo:return compilePseudoSelector(Ra,qa,nd,od,ld);case SelectorType$2.Tag:{if(qa.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:pd}=qa;return(!nd.xmlMode||nd.lowerCaseTags)&&(pd=pd.toLowerCase()),function(md){return ud.getName(md)===pd&&Ra(md)}}case SelectorType$2.Descendant:{if(nd.cacheResults===!1||typeof WeakSet>"u")return function(md){let vd=md;for(;vd=getElementParent(vd,ud);)if(Ra(vd))return!0;return!1};const pd=new WeakSet;return function(md){let vd=md;for(;vd=getElementParent(vd,ud);)if(!pd.has(vd)){if(ud.isTag(vd)&&Ra(vd))return!0;pd.add(vd)}return!1}}case"_flexibleDescendant":return function(fd){let md=fd;do if(Ra(md))return!0;while(md=getElementParent(md,ud));return!1};case SelectorType$2.Parent:return function(fd){return ud.getChildren(fd).some(md=>ud.isTag(md)&&Ra(md))};case SelectorType$2.Child:return function(fd){const md=ud.getParent(fd);return md!=null&&ud.isTag(md)&&Ra(md)};case SelectorType$2.Sibling:return function(fd){const md=ud.getSiblings(fd);for(let vd=0;vdqa.some(includesScopePseudo)))}const DESCENDANT_TOKEN={type:SelectorType$2.Descendant},FLEXIBLE_DESCENDANT_TOKEN={type:"_flexibleDescendant"},SCOPE_TOKEN={type:SelectorType$2.Pseudo,name:"scope",data:null};function absolutize(Ra,{adapter:qa},nd){const od=!!(nd!=null&&nd.every(ld=>{const ud=qa.isTag(ld)&&qa.getParent(ld);return ld===PLACEHOLDER_ELEMENT||ud&&qa.isTag(ud)}));for(const ld of Ra){if(!(ld.length>0&&isTraversal(ld[0])&&ld[0].type!==SelectorType$2.Descendant))if(od&&!ld.some(includesScopePseudo))ld.unshift(DESCENDANT_TOKEN);else continue;ld.unshift(SCOPE_TOKEN)}}function compileToken(Ra,qa,nd){var od;Ra.forEach(sortByProcedure),nd=(od=qa.context)!==null&&od!==void 0?od:nd;const ld=Array.isArray(nd),ud=nd&&(Array.isArray(nd)?nd:[nd]);if(qa.relativeSelector!==!1)absolutize(Ra,qa,ud);else if(Ra.some(fd=>fd.length>0&&isTraversal(fd[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let dd=!1;const pd=Ra.map(fd=>{if(fd.length>=2){const[md,vd]=fd;md.type!==SelectorType$2.Pseudo||md.name!=="scope"||(ld&&vd.type===SelectorType$2.Descendant?fd[1]=FLEXIBLE_DESCENDANT_TOKEN:(vd.type===SelectorType$2.Adjacent||vd.type===SelectorType$2.Sibling)&&(dd=!0))}return compileRules(fd,qa,ud)}).reduce(reduceRules,boolbase$1.falseFunc);return pd.shouldTestNextSiblings=dd,pd}function compileRules(Ra,qa,nd){var od;return Ra.reduce((ld,ud)=>ld===boolbase$1.falseFunc?boolbase$1.falseFunc:compileGeneralSelector(ld,ud,qa,nd,compileToken),(od=qa.rootFunc)!==null&&od!==void 0?od:boolbase$1.trueFunc)}function reduceRules(Ra,qa){return qa===boolbase$1.falseFunc||Ra===boolbase$1.trueFunc?Ra:Ra===boolbase$1.falseFunc||qa===boolbase$1.trueFunc?qa:function(od){return Ra(od)||qa(od)}}const defaultEquals=(Ra,qa)=>Ra===qa,defaultOptions$6={adapter:DomUtils,equals:defaultEquals};function convertOptionFormats(Ra){var qa,nd,od,ld;const ud=Ra??defaultOptions$6;return(qa=ud.adapter)!==null&&qa!==void 0||(ud.adapter=DomUtils),(nd=ud.equals)!==null&&nd!==void 0||(ud.equals=(ld=(od=ud.adapter)===null||od===void 0?void 0:od.equals)!==null&&ld!==void 0?ld:defaultEquals),ud}function wrapCompile(Ra){return function(nd,od,ld){const ud=convertOptionFormats(od);return Ra(nd,ud,ld)}}const _compileToken=wrapCompile(compileToken);function prepareContext(Ra,qa,nd=!1){return nd&&(Ra=appendNextSiblings(Ra,qa)),Array.isArray(Ra)?qa.removeSubsets(Ra):qa.getChildren(Ra)}function appendNextSiblings(Ra,qa){const nd=Array.isArray(Ra)?Ra.slice(0):[Ra],od=nd.length;for(let ld=0;ldqa.some(isFilter)):!1}function getLimit(Ra,qa,nd){const od=qa!=null?parseInt(qa,10):NaN;switch(Ra){case"first":return 1;case"nth":case"eq":return isFinite(od)?od>=0?od+1:1/0:0;case"lt":return isFinite(od)?od>=0?Math.min(od,nd):1/0:0;case"gt":return isFinite(od)?1/0:0;case"odd":return 2*nd;case"even":return 2*nd-1;case"last":case"not":return 1/0}}function getDocumentRoot(Ra){for(;Ra.parent;)Ra=Ra.parent;return Ra}function groupSelectors(Ra){const qa=[],nd=[];for(const od of Ra)od.some(isFilter)?qa.push(od):nd.push(od);return[nd,qa]}const UNIVERSAL_SELECTOR={type:SelectorType$2.Universal,namespace:null},SCOPE_PSEUDO={type:SelectorType$2.Pseudo,name:"scope",data:null};function is$2(Ra,qa,nd={}){return some$2([Ra],qa,nd)}function some$2(Ra,qa,nd={}){if(typeof qa=="function")return Ra.some(qa);const[od,ld]=groupSelectors(parse$8(qa));return od.length>0&&Ra.some(_compileToken(od,nd))||ld.some(ud=>filterBySelector(ud,Ra,nd).length>0)}function filterByPosition(Ra,qa,nd,od){const ld=typeof nd=="string"?parseInt(nd,10):NaN;switch(Ra){case"first":case"lt":return qa;case"last":return qa.length>0?[qa[qa.length-1]]:qa;case"nth":case"eq":return isFinite(ld)&&Math.abs(ld)dd%2===0);case"odd":return qa.filter((ud,dd)=>dd%2===1);case"not":{const ud=new Set(filterParsed(nd,qa,od));return qa.filter(dd=>!ud.has(dd))}}}function filter$4(Ra,qa,nd={}){return filterParsed(parse$8(Ra),qa,nd)}function filterParsed(Ra,qa,nd){if(qa.length===0)return[];const[od,ld]=groupSelectors(Ra);let ud;if(od.length){const dd=filterElements(qa,od,nd);if(ld.length===0)return dd;dd.length&&(ud=new Set(dd))}for(let dd=0;ddisTag(vd)&&!ud.has(vd)):qa).length===0)break;const md=filterBySelector(pd,qa,nd);if(md.length)if(ud)md.forEach(vd=>ud.add(vd));else{if(dd===ld.length-1)return md;ud=new Set(md)}}return typeof ud<"u"?ud.size===qa.length?qa:qa.filter(dd=>ud.has(dd)):[]}function filterBySelector(Ra,qa,nd){var od;if(Ra.some(isTraversal$1)){const ld=(od=nd.root)!==null&&od!==void 0?od:getDocumentRoot(qa[0]),ud={...nd,context:qa,relativeSelector:!1};return Ra.push(SCOPE_PSEUDO),findFilterElements(ld,Ra,ud,!0,qa.length)}return findFilterElements(qa,Ra,nd,!1,qa.length)}function select$1(Ra,qa,nd={},od=1/0){if(typeof Ra=="function")return find$2(qa,Ra);const[ld,ud]=groupSelectors(parse$8(Ra)),dd=ud.map(pd=>findFilterElements(qa,pd,nd,!0,od));return ld.length&&dd.push(findElements(qa,ld,nd,od)),dd.length===0?[]:dd.length===1?dd[0]:uniqueSort(dd.reduce((pd,fd)=>[...pd,...fd]))}function findFilterElements(Ra,qa,nd,od,ld){const ud=qa.findIndex(isFilter),dd=qa.slice(0,ud),pd=qa[ud],fd=qa.length-1===ud?ld:1/0,md=getLimit(pd.name,pd.data,fd);if(md===0)return[];const Ad=(dd.length===0&&!Array.isArray(Ra)?getChildren(Ra).filter(isTag):dd.length===0?(Array.isArray(Ra)?Ra:[Ra]).filter(isTag):od||dd.some(isTraversal$1)?findElements(Ra,[dd],nd,md):filterElements(Ra,[dd],nd)).slice(0,md);let Nd=filterByPosition(pd.name,Ad,pd.data,nd);if(Nd.length===0||qa.length===ud+1)return Nd;const Od=qa.slice(ud+1),kd=Od.some(isTraversal$1);if(kd){if(isTraversal$1(Od[0])){const{type:Ld}=Od[0];(Ld===SelectorType$2.Sibling||Ld===SelectorType$2.Adjacent)&&(Nd=prepareContext(Nd,DomUtils,!0)),Od.unshift(UNIVERSAL_SELECTOR)}nd={...nd,relativeSelector:!1,rootFunc:Ld=>Nd.includes(Ld)}}else nd.rootFunc&&nd.rootFunc!==boolbase.trueFunc&&(nd={...nd,rootFunc:boolbase.trueFunc});return Od.some(isFilter)?findFilterElements(Nd,Od,nd,!1,ld):kd?findElements(Nd,[Od],nd,ld):filterElements(Nd,[Od],nd)}function findElements(Ra,qa,nd,od){const ld=_compileToken(qa,nd,Ra);return find$2(Ra,ld,od)}function find$2(Ra,qa,nd=1/0){const od=prepareContext(Ra,DomUtils,qa.shouldTestNextSiblings);return find$3(ld=>isTag(ld)&&qa(ld),od,!0,nd)}function filterElements(Ra,qa,nd){const od=(Array.isArray(Ra)?Ra:[Ra]).filter(isTag);if(od.length===0)return od;const ld=_compileToken(qa,nd);return ld===boolbase.trueFunc?od:od.filter(ld)}const reSiblingSelector=/^\s*[+~]/;function find$1(Ra){if(!Ra)return this._make([]);if(typeof Ra!="string"){const qa=isCheerio(Ra)?Ra.toArray():[Ra],nd=this.toArray();return this._make(qa.filter(od=>nd.some(ld=>contains(ld,od))))}return this._findBySelector(Ra,Number.POSITIVE_INFINITY)}function _findBySelector(Ra,qa){var nd;const od=this.toArray(),ld=reSiblingSelector.test(Ra)?od:this.children().toArray(),ud={context:od,root:(nd=this._root)===null||nd===void 0?void 0:nd[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(select$1(Ra,ld,ud,qa))}function _getMatcher(Ra){return function(qa,...nd){return function(od){var ld;let ud=Ra(qa,this);return od&&(ud=filterArray$1(ud,od,this.options.xmlMode,(ld=this._root)===null||ld===void 0?void 0:ld[0])),this._make(this.length>1&&ud.length>1?nd.reduce((dd,pd)=>pd(dd),ud):ud)}}}const _matcher=_getMatcher((Ra,qa)=>{let nd=[];for(let od=0;od0&&(nd=nd.concat(ld))}return nd}),_singleMatcher=_getMatcher((Ra,qa)=>{const nd=[];for(let od=0;od{const dd=[];return domEach(ud,pd=>{for(let fd;(fd=ld(pd))&&!(nd!=null&&nd(fd,dd.length));pd=fd)dd.push(fd)}),dd})(Ra,...qa);return function(ld,ud){nd=typeof ld=="string"?pd=>is$2(pd,ld,this.options):ld?getFilterFn(ld):null;const dd=od.call(this,ud);return nd=null,dd}}function _removeDuplicates(Ra){return Ra.length>1?Array.from(new Set(Ra)):Ra}const parent$1=_singleMatcher(({parent:Ra})=>Ra&&!isDocument(Ra)?Ra:null,_removeDuplicates),parents=_matcher(Ra=>{const qa=[];for(;Ra.parent&&!isDocument(Ra.parent);)qa.push(Ra.parent),Ra=Ra.parent;return qa},uniqueSort,Ra=>Ra.reverse()),parentsUntil=_matchUntil(({parent:Ra})=>Ra&&!isDocument(Ra)?Ra:null,uniqueSort,Ra=>Ra.reverse());function closest(Ra){var qa;const nd=[];if(!Ra)return this._make(nd);const od={xmlMode:this.options.xmlMode,root:(qa=this._root)===null||qa===void 0?void 0:qa[0]},ld=typeof Ra=="string"?ud=>is$2(ud,Ra,od):getFilterFn(Ra);return domEach(this,ud=>{for(ud&&!isDocument(ud)&&!isTag(ud)&&(ud=ud.parent);ud&&isTag(ud);){if(ld(ud,0)){nd.includes(ud)||nd.push(ud);break}ud=ud.parent}}),this._make(nd)}const next$1=_singleMatcher(Ra=>nextElementSibling(Ra)),nextAll=_matcher(Ra=>{const qa=[];for(;Ra.next;)Ra=Ra.next,isTag(Ra)&&qa.push(Ra);return qa},_removeDuplicates),nextUntil=_matchUntil(Ra=>nextElementSibling(Ra),_removeDuplicates),prev$1=_singleMatcher(Ra=>prevElementSibling(Ra)),prevAll=_matcher(Ra=>{const qa=[];for(;Ra.prev;)Ra=Ra.prev,isTag(Ra)&&qa.push(Ra);return qa},_removeDuplicates),prevUntil=_matchUntil(Ra=>prevElementSibling(Ra),_removeDuplicates),siblings=_matcher(Ra=>getSiblings(Ra).filter(qa=>isTag(qa)&&qa!==Ra),uniqueSort),children$2=_matcher(Ra=>getChildren(Ra).filter(isTag),_removeDuplicates);function contents(){const Ra=this.toArray().reduce((qa,nd)=>hasChildren(nd)?qa.concat(nd.children):qa,[]);return this._make(Ra)}function each$1(Ra){let qa=0;const nd=this.length;for(;qaRa.call(qa,nd,qa):isCheerio(Ra)?qa=>Array.prototype.includes.call(Ra,qa):function(qa){return Ra===qa}}function filter$3(Ra){var qa;return this._make(filterArray$1(this.toArray(),Ra,this.options.xmlMode,(qa=this._root)===null||qa===void 0?void 0:qa[0]))}function filterArray$1(Ra,qa,nd,od){return typeof qa=="string"?filter$4(qa,Ra,{xmlMode:nd,root:od}):Ra.filter(getFilterFn(qa))}function is$1(Ra){const qa=this.toArray();return typeof Ra=="string"?some$2(qa.filter(isTag),Ra,this.options):Ra?qa.some(getFilterFn(Ra)):!1}function not$1(Ra){let qa=this.toArray();if(typeof Ra=="string"){const nd=new Set(filter$4(Ra,qa,this.options));qa=qa.filter(od=>!nd.has(od))}else{const nd=getFilterFn(Ra);qa=qa.filter((od,ld)=>!nd(od,ld))}return this._make(qa)}function has(Ra){return this.filter(typeof Ra=="string"?`:has(${Ra})`:(qa,nd)=>this._make(nd).find(Ra).length>0)}function first(){return this.length>1?this._make(this[0]):this}function last(){return this.length>0?this._make(this[this.length-1]):this}function eq$1(Ra){var qa;return Ra=+Ra,Ra===0&&this.length<=1?this:(Ra<0&&(Ra=this.length+Ra),this._make((qa=this[Ra])!==null&&qa!==void 0?qa:[]))}function get$2(Ra){return Ra==null?this.toArray():this[Ra<0?this.length+Ra:Ra]}function toArray$5(){return Array.prototype.slice.call(this)}function index$1(Ra){let qa,nd;return Ra==null?(qa=this.parent().children(),nd=this[0]):typeof Ra=="string"?(qa=this._make(Ra),nd=this[0]):(qa=this,nd=isCheerio(Ra)?Ra[0]:Ra),Array.prototype.indexOf.call(qa,nd)}function slice$1(Ra,qa){return this._make(Array.prototype.slice.call(this,Ra,qa))}function end(){var Ra;return(Ra=this.prevObject)!==null&&Ra!==void 0?Ra:this._make([])}function add(Ra,qa){const nd=this._make(Ra,qa),od=uniqueSort([...this.get(),...nd.get()]);return this._make(od)}function addBack(Ra){return this.prevObject?this.add(Ra?this.prevObject.filter(Ra):this.prevObject):this}const Traversing=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector,add,addBack,children:children$2,closest,contents,each:each$1,end,eq:eq$1,filter:filter$3,filterArray:filterArray$1,find:find$1,first,get:get$2,has,index:index$1,is:is$1,last,map:map$5,next:next$1,nextAll,nextUntil,not:not$1,parent:parent$1,parents,parentsUntil,prev:prev$1,prevAll,prevUntil,siblings,slice:slice$1,toArray:toArray$5},Symbol.toStringTag,{value:"Module"}));function getParse(Ra){return function(nd,od,ld,ud){if(typeof Buffer$4<"u"&&Buffer$4.isBuffer(nd)&&(nd=nd.toString()),typeof nd=="string")return Ra(nd,od,ld,ud);const dd=nd;if(!Array.isArray(dd)&&isDocument(dd))return dd;const pd=new Document([]);return update(dd,pd),pd}}function update(Ra,qa){const nd=Array.isArray(Ra)?Ra:[Ra];qa?qa.children=nd:qa=null;for(let od=0;od{if(!hasChildren(od))return;const ud=typeof qa[0]=="function"?qa[0].call(od,ld,this._render(od.children)):qa,dd=this._makeDomArray(ud,ld=Ra.length?null:Ra[qa+nd];for(let vd=0;vd-1&&(Nd.children.splice(kd,1),ld===Nd&&qa>kd&&pd[0]--)}Ad.parent=ld,Ad.prev&&(Ad.prev.next=(ud=Ad.next)!==null&&ud!==void 0?ud:null),Ad.next&&(Ad.next.prev=(dd=Ad.prev)!==null&&dd!==void 0?dd:null),Ad.prev=vd===0?fd:od[vd-1],Ad.next=vd===od.length-1?md:od[vd+1]}return fd&&(fd.next=od[0]),md&&(md.prev=od[od.length-1]),Ra.splice(...pd)}function appendTo(Ra){return(isCheerio(Ra)?Ra:this._make(Ra)).append(this),this}function prependTo(Ra){return(isCheerio(Ra)?Ra:this._make(Ra)).prepend(this),this}const append$2=_insert((Ra,qa,nd)=>{uniqueSplice(qa,qa.length,0,Ra,nd)}),prepend=_insert((Ra,qa,nd)=>{uniqueSplice(qa,0,0,Ra,nd)});function _wrap(Ra){return function(qa){const nd=this.length-1,od=this.parents().last();for(let ld=0;ld{const{parent:od}=Ra;if(!od)return;const ld=od.children,ud=ld.indexOf(Ra);update([Ra],qa),uniqueSplice(ld,ud,0,nd,od)}),wrapInner=_wrap((Ra,qa,nd)=>{hasChildren(Ra)&&(update(Ra.children,qa),update(nd,Ra))});function unwrap(Ra){return this.parent(Ra).not("body").each((qa,nd)=>{this._make(nd).replaceWith(nd.children)}),this}function wrapAll(Ra){const qa=this[0];if(qa){const nd=this._make(typeof Ra=="function"?Ra.call(qa,0,qa):Ra).insertBefore(qa);let od;for(let ud=0;ud{if(!hasChildren(nd)||!nd.parent)return;const ld=nd.parent.children,ud=ld.indexOf(nd);if(ud<0)return;const dd=typeof Ra[0]=="function"?Ra[0].call(nd,od,this._render(nd.children)):Ra,pd=this._makeDomArray(dd,od{if(!hasChildren(nd)||!nd.parent)return;const ld=nd.parent.children,ud=ld.indexOf(nd);if(ud<0)return;const dd=typeof Ra[0]=="function"?Ra[0].call(nd,od,this._render(nd.children)):Ra,pd=this._makeDomArray(dd,od{const ld=this.clone().toArray(),{parent:ud}=od;if(!ud)return;const dd=ud.children,pd=dd.indexOf(od);pd<0||(uniqueSplice(dd,pd,0,ld,ud),nd.push(...ld))}),this._make(nd)}function remove$1(Ra){const qa=Ra?this.filter(Ra):this;return domEach(qa,nd=>{removeElement(nd),nd.prev=nd.next=nd.parent=null}),this}function replaceWith(Ra){return domEach(this,(qa,nd)=>{const{parent:od}=qa;if(!od)return;const ld=od.children,ud=typeof Ra=="function"?Ra.call(qa,nd,qa):Ra,dd=this._makeDomArray(ud);update(dd,null);const pd=ld.indexOf(qa);uniqueSplice(ld,pd,1,dd,od),dd.includes(qa)||(qa.parent=qa.prev=qa.next=null)})}function empty$1(){return domEach(this,Ra=>{if(hasChildren(Ra)){for(const qa of Ra.children)qa.next=qa.prev=qa.parent=null;Ra.children.length=0}})}function html$4(Ra){if(Ra===void 0){const qa=this[0];return!qa||!hasChildren(qa)?null:this._render(qa.children)}return domEach(this,qa=>{if(!hasChildren(qa))return;for(const od of qa.children)od.next=od.prev=od.parent=null;const nd=isCheerio(Ra)?Ra.toArray():this._parse(`${Ra}`,this.options,!1,qa).children;update(nd,qa)})}function toString$3(){return this._render(this)}function text$2(Ra){return Ra===void 0?text$3(this):typeof Ra=="function"?domEach(this,(qa,nd)=>this._make(qa).text(Ra.call(qa,nd,text$3([qa])))):domEach(this,qa=>{if(!hasChildren(qa))return;for(const od of qa.children)od.next=od.prev=od.parent=null;const nd=new Text(`${Ra}`);update(nd,qa)})}function clone$2(){const Ra=Array.prototype.map.call(this.get(),nd=>cloneNode(nd,!0)),qa=new Document(Ra);for(const nd of Ra)nd.parent=qa;return this._make(Ra)}const Manipulation=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray,after,append:append$2,appendTo,before,clone:clone$2,empty:empty$1,html:html$4,insertAfter,insertBefore,prepend,prependTo,remove:remove$1,replaceWith,text:text$2,toString:toString$3,unwrap,wrap:wrap$1,wrapAll,wrapInner},Symbol.toStringTag,{value:"Module"}));function css$1(Ra,qa){if(Ra!=null&&qa!=null||typeof Ra=="object"&&!Array.isArray(Ra))return domEach(this,(nd,od)=>{isTag(nd)&&setCss(nd,Ra,qa,od)});if(this.length!==0)return getCss(this[0],Ra)}function setCss(Ra,qa,nd,od){if(typeof qa=="string"){const ld=getCss(Ra),ud=typeof nd=="function"?nd.call(Ra,od,ld[qa]):nd;ud===""?delete ld[qa]:ud!=null&&(ld[qa]=ud),Ra.attribs.style=stringify$3(ld)}else if(typeof qa=="object"){const ld=Object.keys(qa);for(let ud=0;ud`${qa}${qa?" ":""}${nd}: ${Ra[nd]};`,"")}function parse$6(Ra){if(Ra=(Ra||"").trim(),!Ra)return{};const qa={};let nd;for(const od of Ra.split(";")){const ld=od.indexOf(":");if(ld<1||ld===od.length-1){const ud=od.trimEnd();ud.length>0&&nd!==void 0&&(qa[nd]+=`;${ud}`)}else nd=od.slice(0,ld).trim(),qa[nd]=od.slice(ld+1).trim()}return qa}const Css=Object.freeze(Object.defineProperty({__proto__:null,css:css$1},Symbol.toStringTag,{value:"Module"})),submittableSelector="input,select,textarea,keygen",r20=/%20/g,rCRLF=/\r?\n/g;function serialize$1(){return this.serializeArray().map(nd=>`${encodeURIComponent(nd.name)}=${encodeURIComponent(nd.value)}`).join("&").replace(r20,"+")}function serializeArray(){return this.map((Ra,qa)=>{const nd=this._make(qa);return isTag(qa)&&qa.name==="form"?nd.find(submittableSelector).toArray():nd.filter(submittableSelector).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((Ra,qa)=>{var nd;const od=this._make(qa),ld=od.attr("name"),ud=(nd=od.val())!==null&&nd!==void 0?nd:"";return Array.isArray(ud)?ud.map(dd=>({name:ld,value:dd.replace(rCRLF,`\r `)})):{name:ld,value:ud.replace(rCRLF,`\r -`)}}).toArray()}const Forms=Object.freeze(Object.defineProperty({__proto__:null,serialize:serialize$1,serializeArray},Symbol.toStringTag,{value:"Module"}));function getExtractDescr(Ra){var qa;return typeof Ra=="string"?{selector:Ra,value:"textContent"}:{selector:Ra.selector,value:(qa=Ra.value)!==null&&qa!==void 0?qa:"textContent"}}function extract(Ra){const qa={};for(const nd in Ra){const od=Ra[nd],ld=Array.isArray(od),{selector:ud,value:dd}=getExtractDescr(ld?od[0]:od),pd=typeof dd=="function"?dd:typeof dd=="string"?fd=>this._make(fd).prop(dd):fd=>this._make(fd).extract(dd);if(ld)qa[nd]=this._findBySelector(ud,Number.POSITIVE_INFINITY).map((fd,md)=>pd(md,nd,qa)).get();else{const fd=this._findBySelector(ud,1);qa[nd]=fd.length>0?pd(fd[0],nd,qa):void 0}}return qa}const Extract=Object.freeze(Object.defineProperty({__proto__:null,extract},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(qa,nd,od){if(this.length=0,this.options=od,this._root=nd,qa){for(let ld=0;ld=55296&&Ra<=57343}function isSurrogatePair(Ra){return Ra>=56320&&Ra<=57343}function getSurrogatePairCodePoint(Ra,qa){return(Ra-55296)*1024+9216+qa}function isControlCodePoint(Ra){return Ra!==32&&Ra!==10&&Ra!==13&&Ra!==9&&Ra!==12&&Ra>=1&&Ra<=31||Ra>=127&&Ra<=159}function isUndefinedCodePoint(Ra){return Ra>=64976&&Ra<=65007||UNDEFINED_CODE_POINTS.has(Ra)}var ERR;(function(Ra){Ra.controlCharacterInInputStream="control-character-in-input-stream",Ra.noncharacterInInputStream="noncharacter-in-input-stream",Ra.surrogateInInputStream="surrogate-in-input-stream",Ra.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",Ra.endTagWithAttributes="end-tag-with-attributes",Ra.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",Ra.unexpectedSolidusInTag="unexpected-solidus-in-tag",Ra.unexpectedNullCharacter="unexpected-null-character",Ra.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",Ra.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",Ra.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",Ra.missingEndTagName="missing-end-tag-name",Ra.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",Ra.unknownNamedCharacterReference="unknown-named-character-reference",Ra.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",Ra.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",Ra.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",Ra.eofBeforeTagName="eof-before-tag-name",Ra.eofInTag="eof-in-tag",Ra.missingAttributeValue="missing-attribute-value",Ra.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",Ra.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",Ra.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",Ra.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",Ra.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",Ra.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",Ra.missingDoctypePublicIdentifier="missing-doctype-public-identifier",Ra.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",Ra.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",Ra.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",Ra.cdataInHtmlContent="cdata-in-html-content",Ra.incorrectlyOpenedComment="incorrectly-opened-comment",Ra.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",Ra.eofInDoctype="eof-in-doctype",Ra.nestedComment="nested-comment",Ra.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",Ra.eofInComment="eof-in-comment",Ra.incorrectlyClosedComment="incorrectly-closed-comment",Ra.eofInCdata="eof-in-cdata",Ra.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",Ra.nullCharacterReference="null-character-reference",Ra.surrogateCharacterReference="surrogate-character-reference",Ra.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",Ra.controlCharacterReference="control-character-reference",Ra.noncharacterCharacterReference="noncharacter-character-reference",Ra.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",Ra.missingDoctypeName="missing-doctype-name",Ra.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",Ra.duplicateAttribute="duplicate-attribute",Ra.nonConformingDoctype="non-conforming-doctype",Ra.missingDoctype="missing-doctype",Ra.misplacedDoctype="misplaced-doctype",Ra.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",Ra.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",Ra.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",Ra.openElementsLeftAfterEof="open-elements-left-after-eof",Ra.abandonedHeadElementChild="abandoned-head-element-child",Ra.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",Ra.nestedNoscriptInHead="nested-noscript-in-head",Ra.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ERR||(ERR={}));const DEFAULT_BUFFER_WATERLINE=65536;class Preprocessor{constructor(qa){this.handler=qa,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(qa,nd){const{line:od,col:ld,offset:ud}=this,dd=ld+nd,pd=ud+nd;return{code:qa,startLine:od,endLine:od,startCol:dd,endCol:dd,startOffset:pd,endOffset:pd}}_err(qa){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(qa,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(qa){if(this.pos!==this.html.length-1){const nd=this.html.charCodeAt(this.pos+1);if(isSurrogatePair(nd))return this.pos++,this._addGap(),getSurrogatePairCodePoint(qa,nd)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,CODE_POINTS.EOF;return this._err(ERR.surrogateInInputStream),qa}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(qa,nd){this.html.length>0?this.html+=qa:this.html=qa,this.endOfChunkHit=!1,this.lastChunkWritten=nd}insertHtmlAtCurrentPos(qa){this.html=this.html.substring(0,this.pos+1)+qa+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(qa,nd){if(this.pos+qa.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(nd)return this.html.startsWith(qa,this.pos);for(let od=0;od=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;const od=this.html.charCodeAt(nd);return od===CODE_POINTS.CARRIAGE_RETURN?CODE_POINTS.LINE_FEED:od}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;let qa=this.html.charCodeAt(this.pos);return qa===CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,CODE_POINTS.LINE_FEED):qa===CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,isSurrogate(qa)&&(qa=this._processSurrogate(qa)),this.handler.onParseError===null||qa>31&&qa<127||qa===CODE_POINTS.LINE_FEED||qa===CODE_POINTS.CARRIAGE_RETURN||qa>159&&qa<64976||this._checkForProblematicCharacters(qa),qa)}_checkForProblematicCharacters(qa){isControlCodePoint(qa)?this._err(ERR.controlCharacterInInputStream):isUndefinedCodePoint(qa)&&this._err(ERR.noncharacterInInputStream)}retreat(qa){for(this.pos-=qa;this.pos=0;nd--)if(Ra.attrs[nd].name===qa)return Ra.attrs[nd].value;return null}var NS;(function(Ra){Ra.HTML="http://www.w3.org/1999/xhtml",Ra.MATHML="http://www.w3.org/1998/Math/MathML",Ra.SVG="http://www.w3.org/2000/svg",Ra.XLINK="http://www.w3.org/1999/xlink",Ra.XML="http://www.w3.org/XML/1998/namespace",Ra.XMLNS="http://www.w3.org/2000/xmlns/"})(NS||(NS={}));var ATTRS;(function(Ra){Ra.TYPE="type",Ra.ACTION="action",Ra.ENCODING="encoding",Ra.PROMPT="prompt",Ra.NAME="name",Ra.COLOR="color",Ra.FACE="face",Ra.SIZE="size"})(ATTRS||(ATTRS={}));var DOCUMENT_MODE;(function(Ra){Ra.NO_QUIRKS="no-quirks",Ra.QUIRKS="quirks",Ra.LIMITED_QUIRKS="limited-quirks"})(DOCUMENT_MODE||(DOCUMENT_MODE={}));var TAG_NAMES;(function(Ra){Ra.A="a",Ra.ADDRESS="address",Ra.ANNOTATION_XML="annotation-xml",Ra.APPLET="applet",Ra.AREA="area",Ra.ARTICLE="article",Ra.ASIDE="aside",Ra.B="b",Ra.BASE="base",Ra.BASEFONT="basefont",Ra.BGSOUND="bgsound",Ra.BIG="big",Ra.BLOCKQUOTE="blockquote",Ra.BODY="body",Ra.BR="br",Ra.BUTTON="button",Ra.CAPTION="caption",Ra.CENTER="center",Ra.CODE="code",Ra.COL="col",Ra.COLGROUP="colgroup",Ra.DD="dd",Ra.DESC="desc",Ra.DETAILS="details",Ra.DIALOG="dialog",Ra.DIR="dir",Ra.DIV="div",Ra.DL="dl",Ra.DT="dt",Ra.EM="em",Ra.EMBED="embed",Ra.FIELDSET="fieldset",Ra.FIGCAPTION="figcaption",Ra.FIGURE="figure",Ra.FONT="font",Ra.FOOTER="footer",Ra.FOREIGN_OBJECT="foreignObject",Ra.FORM="form",Ra.FRAME="frame",Ra.FRAMESET="frameset",Ra.H1="h1",Ra.H2="h2",Ra.H3="h3",Ra.H4="h4",Ra.H5="h5",Ra.H6="h6",Ra.HEAD="head",Ra.HEADER="header",Ra.HGROUP="hgroup",Ra.HR="hr",Ra.HTML="html",Ra.I="i",Ra.IMG="img",Ra.IMAGE="image",Ra.INPUT="input",Ra.IFRAME="iframe",Ra.KEYGEN="keygen",Ra.LABEL="label",Ra.LI="li",Ra.LINK="link",Ra.LISTING="listing",Ra.MAIN="main",Ra.MALIGNMARK="malignmark",Ra.MARQUEE="marquee",Ra.MATH="math",Ra.MENU="menu",Ra.META="meta",Ra.MGLYPH="mglyph",Ra.MI="mi",Ra.MO="mo",Ra.MN="mn",Ra.MS="ms",Ra.MTEXT="mtext",Ra.NAV="nav",Ra.NOBR="nobr",Ra.NOFRAMES="noframes",Ra.NOEMBED="noembed",Ra.NOSCRIPT="noscript",Ra.OBJECT="object",Ra.OL="ol",Ra.OPTGROUP="optgroup",Ra.OPTION="option",Ra.P="p",Ra.PARAM="param",Ra.PLAINTEXT="plaintext",Ra.PRE="pre",Ra.RB="rb",Ra.RP="rp",Ra.RT="rt",Ra.RTC="rtc",Ra.RUBY="ruby",Ra.S="s",Ra.SCRIPT="script",Ra.SEARCH="search",Ra.SECTION="section",Ra.SELECT="select",Ra.SOURCE="source",Ra.SMALL="small",Ra.SPAN="span",Ra.STRIKE="strike",Ra.STRONG="strong",Ra.STYLE="style",Ra.SUB="sub",Ra.SUMMARY="summary",Ra.SUP="sup",Ra.TABLE="table",Ra.TBODY="tbody",Ra.TEMPLATE="template",Ra.TEXTAREA="textarea",Ra.TFOOT="tfoot",Ra.TD="td",Ra.TH="th",Ra.THEAD="thead",Ra.TITLE="title",Ra.TR="tr",Ra.TRACK="track",Ra.TT="tt",Ra.U="u",Ra.UL="ul",Ra.SVG="svg",Ra.VAR="var",Ra.WBR="wbr",Ra.XMP="xmp"})(TAG_NAMES||(TAG_NAMES={}));var TAG_ID;(function(Ra){Ra[Ra.UNKNOWN=0]="UNKNOWN",Ra[Ra.A=1]="A",Ra[Ra.ADDRESS=2]="ADDRESS",Ra[Ra.ANNOTATION_XML=3]="ANNOTATION_XML",Ra[Ra.APPLET=4]="APPLET",Ra[Ra.AREA=5]="AREA",Ra[Ra.ARTICLE=6]="ARTICLE",Ra[Ra.ASIDE=7]="ASIDE",Ra[Ra.B=8]="B",Ra[Ra.BASE=9]="BASE",Ra[Ra.BASEFONT=10]="BASEFONT",Ra[Ra.BGSOUND=11]="BGSOUND",Ra[Ra.BIG=12]="BIG",Ra[Ra.BLOCKQUOTE=13]="BLOCKQUOTE",Ra[Ra.BODY=14]="BODY",Ra[Ra.BR=15]="BR",Ra[Ra.BUTTON=16]="BUTTON",Ra[Ra.CAPTION=17]="CAPTION",Ra[Ra.CENTER=18]="CENTER",Ra[Ra.CODE=19]="CODE",Ra[Ra.COL=20]="COL",Ra[Ra.COLGROUP=21]="COLGROUP",Ra[Ra.DD=22]="DD",Ra[Ra.DESC=23]="DESC",Ra[Ra.DETAILS=24]="DETAILS",Ra[Ra.DIALOG=25]="DIALOG",Ra[Ra.DIR=26]="DIR",Ra[Ra.DIV=27]="DIV",Ra[Ra.DL=28]="DL",Ra[Ra.DT=29]="DT",Ra[Ra.EM=30]="EM",Ra[Ra.EMBED=31]="EMBED",Ra[Ra.FIELDSET=32]="FIELDSET",Ra[Ra.FIGCAPTION=33]="FIGCAPTION",Ra[Ra.FIGURE=34]="FIGURE",Ra[Ra.FONT=35]="FONT",Ra[Ra.FOOTER=36]="FOOTER",Ra[Ra.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Ra[Ra.FORM=38]="FORM",Ra[Ra.FRAME=39]="FRAME",Ra[Ra.FRAMESET=40]="FRAMESET",Ra[Ra.H1=41]="H1",Ra[Ra.H2=42]="H2",Ra[Ra.H3=43]="H3",Ra[Ra.H4=44]="H4",Ra[Ra.H5=45]="H5",Ra[Ra.H6=46]="H6",Ra[Ra.HEAD=47]="HEAD",Ra[Ra.HEADER=48]="HEADER",Ra[Ra.HGROUP=49]="HGROUP",Ra[Ra.HR=50]="HR",Ra[Ra.HTML=51]="HTML",Ra[Ra.I=52]="I",Ra[Ra.IMG=53]="IMG",Ra[Ra.IMAGE=54]="IMAGE",Ra[Ra.INPUT=55]="INPUT",Ra[Ra.IFRAME=56]="IFRAME",Ra[Ra.KEYGEN=57]="KEYGEN",Ra[Ra.LABEL=58]="LABEL",Ra[Ra.LI=59]="LI",Ra[Ra.LINK=60]="LINK",Ra[Ra.LISTING=61]="LISTING",Ra[Ra.MAIN=62]="MAIN",Ra[Ra.MALIGNMARK=63]="MALIGNMARK",Ra[Ra.MARQUEE=64]="MARQUEE",Ra[Ra.MATH=65]="MATH",Ra[Ra.MENU=66]="MENU",Ra[Ra.META=67]="META",Ra[Ra.MGLYPH=68]="MGLYPH",Ra[Ra.MI=69]="MI",Ra[Ra.MO=70]="MO",Ra[Ra.MN=71]="MN",Ra[Ra.MS=72]="MS",Ra[Ra.MTEXT=73]="MTEXT",Ra[Ra.NAV=74]="NAV",Ra[Ra.NOBR=75]="NOBR",Ra[Ra.NOFRAMES=76]="NOFRAMES",Ra[Ra.NOEMBED=77]="NOEMBED",Ra[Ra.NOSCRIPT=78]="NOSCRIPT",Ra[Ra.OBJECT=79]="OBJECT",Ra[Ra.OL=80]="OL",Ra[Ra.OPTGROUP=81]="OPTGROUP",Ra[Ra.OPTION=82]="OPTION",Ra[Ra.P=83]="P",Ra[Ra.PARAM=84]="PARAM",Ra[Ra.PLAINTEXT=85]="PLAINTEXT",Ra[Ra.PRE=86]="PRE",Ra[Ra.RB=87]="RB",Ra[Ra.RP=88]="RP",Ra[Ra.RT=89]="RT",Ra[Ra.RTC=90]="RTC",Ra[Ra.RUBY=91]="RUBY",Ra[Ra.S=92]="S",Ra[Ra.SCRIPT=93]="SCRIPT",Ra[Ra.SEARCH=94]="SEARCH",Ra[Ra.SECTION=95]="SECTION",Ra[Ra.SELECT=96]="SELECT",Ra[Ra.SOURCE=97]="SOURCE",Ra[Ra.SMALL=98]="SMALL",Ra[Ra.SPAN=99]="SPAN",Ra[Ra.STRIKE=100]="STRIKE",Ra[Ra.STRONG=101]="STRONG",Ra[Ra.STYLE=102]="STYLE",Ra[Ra.SUB=103]="SUB",Ra[Ra.SUMMARY=104]="SUMMARY",Ra[Ra.SUP=105]="SUP",Ra[Ra.TABLE=106]="TABLE",Ra[Ra.TBODY=107]="TBODY",Ra[Ra.TEMPLATE=108]="TEMPLATE",Ra[Ra.TEXTAREA=109]="TEXTAREA",Ra[Ra.TFOOT=110]="TFOOT",Ra[Ra.TD=111]="TD",Ra[Ra.TH=112]="TH",Ra[Ra.THEAD=113]="THEAD",Ra[Ra.TITLE=114]="TITLE",Ra[Ra.TR=115]="TR",Ra[Ra.TRACK=116]="TRACK",Ra[Ra.TT=117]="TT",Ra[Ra.U=118]="U",Ra[Ra.UL=119]="UL",Ra[Ra.SVG=120]="SVG",Ra[Ra.VAR=121]="VAR",Ra[Ra.WBR=122]="WBR",Ra[Ra.XMP=123]="XMP"})(TAG_ID||(TAG_ID={}));const TAG_NAME_TO_ID=new Map([[TAG_NAMES.A,TAG_ID.A],[TAG_NAMES.ADDRESS,TAG_ID.ADDRESS],[TAG_NAMES.ANNOTATION_XML,TAG_ID.ANNOTATION_XML],[TAG_NAMES.APPLET,TAG_ID.APPLET],[TAG_NAMES.AREA,TAG_ID.AREA],[TAG_NAMES.ARTICLE,TAG_ID.ARTICLE],[TAG_NAMES.ASIDE,TAG_ID.ASIDE],[TAG_NAMES.B,TAG_ID.B],[TAG_NAMES.BASE,TAG_ID.BASE],[TAG_NAMES.BASEFONT,TAG_ID.BASEFONT],[TAG_NAMES.BGSOUND,TAG_ID.BGSOUND],[TAG_NAMES.BIG,TAG_ID.BIG],[TAG_NAMES.BLOCKQUOTE,TAG_ID.BLOCKQUOTE],[TAG_NAMES.BODY,TAG_ID.BODY],[TAG_NAMES.BR,TAG_ID.BR],[TAG_NAMES.BUTTON,TAG_ID.BUTTON],[TAG_NAMES.CAPTION,TAG_ID.CAPTION],[TAG_NAMES.CENTER,TAG_ID.CENTER],[TAG_NAMES.CODE,TAG_ID.CODE],[TAG_NAMES.COL,TAG_ID.COL],[TAG_NAMES.COLGROUP,TAG_ID.COLGROUP],[TAG_NAMES.DD,TAG_ID.DD],[TAG_NAMES.DESC,TAG_ID.DESC],[TAG_NAMES.DETAILS,TAG_ID.DETAILS],[TAG_NAMES.DIALOG,TAG_ID.DIALOG],[TAG_NAMES.DIR,TAG_ID.DIR],[TAG_NAMES.DIV,TAG_ID.DIV],[TAG_NAMES.DL,TAG_ID.DL],[TAG_NAMES.DT,TAG_ID.DT],[TAG_NAMES.EM,TAG_ID.EM],[TAG_NAMES.EMBED,TAG_ID.EMBED],[TAG_NAMES.FIELDSET,TAG_ID.FIELDSET],[TAG_NAMES.FIGCAPTION,TAG_ID.FIGCAPTION],[TAG_NAMES.FIGURE,TAG_ID.FIGURE],[TAG_NAMES.FONT,TAG_ID.FONT],[TAG_NAMES.FOOTER,TAG_ID.FOOTER],[TAG_NAMES.FOREIGN_OBJECT,TAG_ID.FOREIGN_OBJECT],[TAG_NAMES.FORM,TAG_ID.FORM],[TAG_NAMES.FRAME,TAG_ID.FRAME],[TAG_NAMES.FRAMESET,TAG_ID.FRAMESET],[TAG_NAMES.H1,TAG_ID.H1],[TAG_NAMES.H2,TAG_ID.H2],[TAG_NAMES.H3,TAG_ID.H3],[TAG_NAMES.H4,TAG_ID.H4],[TAG_NAMES.H5,TAG_ID.H5],[TAG_NAMES.H6,TAG_ID.H6],[TAG_NAMES.HEAD,TAG_ID.HEAD],[TAG_NAMES.HEADER,TAG_ID.HEADER],[TAG_NAMES.HGROUP,TAG_ID.HGROUP],[TAG_NAMES.HR,TAG_ID.HR],[TAG_NAMES.HTML,TAG_ID.HTML],[TAG_NAMES.I,TAG_ID.I],[TAG_NAMES.IMG,TAG_ID.IMG],[TAG_NAMES.IMAGE,TAG_ID.IMAGE],[TAG_NAMES.INPUT,TAG_ID.INPUT],[TAG_NAMES.IFRAME,TAG_ID.IFRAME],[TAG_NAMES.KEYGEN,TAG_ID.KEYGEN],[TAG_NAMES.LABEL,TAG_ID.LABEL],[TAG_NAMES.LI,TAG_ID.LI],[TAG_NAMES.LINK,TAG_ID.LINK],[TAG_NAMES.LISTING,TAG_ID.LISTING],[TAG_NAMES.MAIN,TAG_ID.MAIN],[TAG_NAMES.MALIGNMARK,TAG_ID.MALIGNMARK],[TAG_NAMES.MARQUEE,TAG_ID.MARQUEE],[TAG_NAMES.MATH,TAG_ID.MATH],[TAG_NAMES.MENU,TAG_ID.MENU],[TAG_NAMES.META,TAG_ID.META],[TAG_NAMES.MGLYPH,TAG_ID.MGLYPH],[TAG_NAMES.MI,TAG_ID.MI],[TAG_NAMES.MO,TAG_ID.MO],[TAG_NAMES.MN,TAG_ID.MN],[TAG_NAMES.MS,TAG_ID.MS],[TAG_NAMES.MTEXT,TAG_ID.MTEXT],[TAG_NAMES.NAV,TAG_ID.NAV],[TAG_NAMES.NOBR,TAG_ID.NOBR],[TAG_NAMES.NOFRAMES,TAG_ID.NOFRAMES],[TAG_NAMES.NOEMBED,TAG_ID.NOEMBED],[TAG_NAMES.NOSCRIPT,TAG_ID.NOSCRIPT],[TAG_NAMES.OBJECT,TAG_ID.OBJECT],[TAG_NAMES.OL,TAG_ID.OL],[TAG_NAMES.OPTGROUP,TAG_ID.OPTGROUP],[TAG_NAMES.OPTION,TAG_ID.OPTION],[TAG_NAMES.P,TAG_ID.P],[TAG_NAMES.PARAM,TAG_ID.PARAM],[TAG_NAMES.PLAINTEXT,TAG_ID.PLAINTEXT],[TAG_NAMES.PRE,TAG_ID.PRE],[TAG_NAMES.RB,TAG_ID.RB],[TAG_NAMES.RP,TAG_ID.RP],[TAG_NAMES.RT,TAG_ID.RT],[TAG_NAMES.RTC,TAG_ID.RTC],[TAG_NAMES.RUBY,TAG_ID.RUBY],[TAG_NAMES.S,TAG_ID.S],[TAG_NAMES.SCRIPT,TAG_ID.SCRIPT],[TAG_NAMES.SEARCH,TAG_ID.SEARCH],[TAG_NAMES.SECTION,TAG_ID.SECTION],[TAG_NAMES.SELECT,TAG_ID.SELECT],[TAG_NAMES.SOURCE,TAG_ID.SOURCE],[TAG_NAMES.SMALL,TAG_ID.SMALL],[TAG_NAMES.SPAN,TAG_ID.SPAN],[TAG_NAMES.STRIKE,TAG_ID.STRIKE],[TAG_NAMES.STRONG,TAG_ID.STRONG],[TAG_NAMES.STYLE,TAG_ID.STYLE],[TAG_NAMES.SUB,TAG_ID.SUB],[TAG_NAMES.SUMMARY,TAG_ID.SUMMARY],[TAG_NAMES.SUP,TAG_ID.SUP],[TAG_NAMES.TABLE,TAG_ID.TABLE],[TAG_NAMES.TBODY,TAG_ID.TBODY],[TAG_NAMES.TEMPLATE,TAG_ID.TEMPLATE],[TAG_NAMES.TEXTAREA,TAG_ID.TEXTAREA],[TAG_NAMES.TFOOT,TAG_ID.TFOOT],[TAG_NAMES.TD,TAG_ID.TD],[TAG_NAMES.TH,TAG_ID.TH],[TAG_NAMES.THEAD,TAG_ID.THEAD],[TAG_NAMES.TITLE,TAG_ID.TITLE],[TAG_NAMES.TR,TAG_ID.TR],[TAG_NAMES.TRACK,TAG_ID.TRACK],[TAG_NAMES.TT,TAG_ID.TT],[TAG_NAMES.U,TAG_ID.U],[TAG_NAMES.UL,TAG_ID.UL],[TAG_NAMES.SVG,TAG_ID.SVG],[TAG_NAMES.VAR,TAG_ID.VAR],[TAG_NAMES.WBR,TAG_ID.WBR],[TAG_NAMES.XMP,TAG_ID.XMP]]);function getTagID(Ra){var qa;return(qa=TAG_NAME_TO_ID.get(Ra))!==null&&qa!==void 0?qa:TAG_ID.UNKNOWN}const $$4=TAG_ID,SPECIAL_ELEMENTS={[NS.HTML]:new Set([$$4.ADDRESS,$$4.APPLET,$$4.AREA,$$4.ARTICLE,$$4.ASIDE,$$4.BASE,$$4.BASEFONT,$$4.BGSOUND,$$4.BLOCKQUOTE,$$4.BODY,$$4.BR,$$4.BUTTON,$$4.CAPTION,$$4.CENTER,$$4.COL,$$4.COLGROUP,$$4.DD,$$4.DETAILS,$$4.DIR,$$4.DIV,$$4.DL,$$4.DT,$$4.EMBED,$$4.FIELDSET,$$4.FIGCAPTION,$$4.FIGURE,$$4.FOOTER,$$4.FORM,$$4.FRAME,$$4.FRAMESET,$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6,$$4.HEAD,$$4.HEADER,$$4.HGROUP,$$4.HR,$$4.HTML,$$4.IFRAME,$$4.IMG,$$4.INPUT,$$4.LI,$$4.LINK,$$4.LISTING,$$4.MAIN,$$4.MARQUEE,$$4.MENU,$$4.META,$$4.NAV,$$4.NOEMBED,$$4.NOFRAMES,$$4.NOSCRIPT,$$4.OBJECT,$$4.OL,$$4.P,$$4.PARAM,$$4.PLAINTEXT,$$4.PRE,$$4.SCRIPT,$$4.SECTION,$$4.SELECT,$$4.SOURCE,$$4.STYLE,$$4.SUMMARY,$$4.TABLE,$$4.TBODY,$$4.TD,$$4.TEMPLATE,$$4.TEXTAREA,$$4.TFOOT,$$4.TH,$$4.THEAD,$$4.TITLE,$$4.TR,$$4.TRACK,$$4.UL,$$4.WBR,$$4.XMP]),[NS.MATHML]:new Set([$$4.MI,$$4.MO,$$4.MN,$$4.MS,$$4.MTEXT,$$4.ANNOTATION_XML]),[NS.SVG]:new Set([$$4.TITLE,$$4.FOREIGN_OBJECT,$$4.DESC]),[NS.XLINK]:new Set,[NS.XML]:new Set,[NS.XMLNS]:new Set},NUMBERED_HEADERS=new Set([$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6]),UNESCAPED_TEXT=new Set([TAG_NAMES.STYLE,TAG_NAMES.SCRIPT,TAG_NAMES.XMP,TAG_NAMES.IFRAME,TAG_NAMES.NOEMBED,TAG_NAMES.NOFRAMES,TAG_NAMES.PLAINTEXT]);function hasUnescapedText(Ra,qa){return UNESCAPED_TEXT.has(Ra)||qa&&Ra===TAG_NAMES.NOSCRIPT}var State$5;(function(Ra){Ra[Ra.DATA=0]="DATA",Ra[Ra.RCDATA=1]="RCDATA",Ra[Ra.RAWTEXT=2]="RAWTEXT",Ra[Ra.SCRIPT_DATA=3]="SCRIPT_DATA",Ra[Ra.PLAINTEXT=4]="PLAINTEXT",Ra[Ra.TAG_OPEN=5]="TAG_OPEN",Ra[Ra.END_TAG_OPEN=6]="END_TAG_OPEN",Ra[Ra.TAG_NAME=7]="TAG_NAME",Ra[Ra.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",Ra[Ra.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",Ra[Ra.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",Ra[Ra.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",Ra[Ra.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",Ra[Ra.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",Ra[Ra.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",Ra[Ra.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",Ra[Ra.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",Ra[Ra.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",Ra[Ra.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",Ra[Ra.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",Ra[Ra.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",Ra[Ra.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",Ra[Ra.BOGUS_COMMENT=40]="BOGUS_COMMENT",Ra[Ra.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",Ra[Ra.COMMENT_START=42]="COMMENT_START",Ra[Ra.COMMENT_START_DASH=43]="COMMENT_START_DASH",Ra[Ra.COMMENT=44]="COMMENT",Ra[Ra.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",Ra[Ra.COMMENT_END_DASH=49]="COMMENT_END_DASH",Ra[Ra.COMMENT_END=50]="COMMENT_END",Ra[Ra.COMMENT_END_BANG=51]="COMMENT_END_BANG",Ra[Ra.DOCTYPE=52]="DOCTYPE",Ra[Ra.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",Ra[Ra.DOCTYPE_NAME=54]="DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",Ra[Ra.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Ra[Ra.CDATA_SECTION=68]="CDATA_SECTION",Ra[Ra.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",Ra[Ra.CDATA_SECTION_END=70]="CDATA_SECTION_END",Ra[Ra.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",Ra[Ra.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(State$5||(State$5={}));const TokenizerMode={DATA:State$5.DATA,RCDATA:State$5.RCDATA,RAWTEXT:State$5.RAWTEXT,SCRIPT_DATA:State$5.SCRIPT_DATA,PLAINTEXT:State$5.PLAINTEXT,CDATA_SECTION:State$5.CDATA_SECTION};function isAsciiDigit(Ra){return Ra>=CODE_POINTS.DIGIT_0&&Ra<=CODE_POINTS.DIGIT_9}function isAsciiUpper(Ra){return Ra>=CODE_POINTS.LATIN_CAPITAL_A&&Ra<=CODE_POINTS.LATIN_CAPITAL_Z}function isAsciiLower(Ra){return Ra>=CODE_POINTS.LATIN_SMALL_A&&Ra<=CODE_POINTS.LATIN_SMALL_Z}function isAsciiLetter(Ra){return isAsciiLower(Ra)||isAsciiUpper(Ra)}function isAsciiAlphaNumeric(Ra){return isAsciiLetter(Ra)||isAsciiDigit(Ra)}function toAsciiLower(Ra){return Ra+32}function isWhitespace$3(Ra){return Ra===CODE_POINTS.SPACE||Ra===CODE_POINTS.LINE_FEED||Ra===CODE_POINTS.TABULATION||Ra===CODE_POINTS.FORM_FEED}function isScriptDataDoubleEscapeSequenceEnd(Ra){return isWhitespace$3(Ra)||Ra===CODE_POINTS.SOLIDUS||Ra===CODE_POINTS.GREATER_THAN_SIGN}function getErrorForNumericCharacterReference(Ra){return Ra===CODE_POINTS.NULL?ERR.nullCharacterReference:Ra>1114111?ERR.characterReferenceOutsideUnicodeRange:isSurrogate(Ra)?ERR.surrogateCharacterReference:isUndefinedCodePoint(Ra)?ERR.noncharacterCharacterReference:isControlCodePoint(Ra)||Ra===CODE_POINTS.CARRIAGE_RETURN?ERR.controlCharacterReference:null}let Tokenizer$1=class{constructor(qa,nd){this.options=qa,this.handler=nd,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=State$5.DATA,this.returnState=State$5.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Preprocessor(nd),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new EntityDecoder(htmlDecodeTree,(od,ld)=>{this.preprocessor.pos=this.entityStartPos+ld-1,this._flushCodePointConsumedAsCharacterReference(od)},nd.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ERR.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:od=>{this._err(ERR.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+od)},validateNumericCharacterReference:od=>{const ld=getErrorForNumericCharacterReference(od);ld&&this._err(ld,1)}}:void 0)}_err(qa,nd=0){var od,ld;(ld=(od=this.handler).onParseError)===null||ld===void 0||ld.call(od,this.preprocessor.getError(qa,nd))}getCurrentLocation(qa){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-qa,startOffset:this.preprocessor.offset-qa,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const qa=this._consume();this._ensureHibernation()||this._callState(qa)}this.inLoop=!1}}pause(){this.paused=!0}resume(qa){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||qa==null||qa())}write(qa,nd,od){this.active=!0,this.preprocessor.write(qa,nd),this._runParsingLoop(),this.paused||od==null||od()}insertHtmlAtCurrentPos(qa){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(qa),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(qa){this.consumedAfterSnapshot+=qa;for(let nd=0;nd0&&this._err(ERR.endTagWithAttributes),qa.selfClosing&&this._err(ERR.endTagWithTrailingSolidus),this.handler.onEndTag(qa)),this.preprocessor.dropParsedChunk()}emitCurrentComment(qa){this.prepareToken(qa),this.handler.onComment(qa),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(qa){this.prepareToken(qa),this.handler.onDoctype(qa),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(qa){if(this.currentCharacterToken){switch(qa&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=qa.startLine,this.currentCharacterToken.location.endCol=qa.startCol,this.currentCharacterToken.location.endOffset=qa.startOffset),this.currentCharacterToken.type){case TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case TokenType.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const qa=this.getCurrentLocation(0);qa&&(qa.endLine=qa.startLine,qa.endCol=qa.startCol,qa.endOffset=qa.startOffset),this._emitCurrentCharacterToken(qa),this.handler.onEof({type:TokenType.EOF,location:qa}),this.active=!1}_appendCharToCurrentCharacterToken(qa,nd){if(this.currentCharacterToken)if(this.currentCharacterToken.type===qa){this.currentCharacterToken.chars+=nd;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(qa,nd)}_emitCodePoint(qa){const nd=isWhitespace$3(qa)?TokenType.WHITESPACE_CHARACTER:qa===CODE_POINTS.NULL?TokenType.NULL_CHARACTER:TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(nd,String.fromCodePoint(qa))}_emitChars(qa){this._appendCharToCurrentCharacterToken(TokenType.CHARACTER,qa)}_startCharacterReference(){this.returnState=this.state,this.state=State$5.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?DecodingMode.Attribute:DecodingMode.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(qa){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(qa):this._emitCodePoint(qa)}_callState(qa){switch(this.state){case State$5.DATA:{this._stateData(qa);break}case State$5.RCDATA:{this._stateRcdata(qa);break}case State$5.RAWTEXT:{this._stateRawtext(qa);break}case State$5.SCRIPT_DATA:{this._stateScriptData(qa);break}case State$5.PLAINTEXT:{this._statePlaintext(qa);break}case State$5.TAG_OPEN:{this._stateTagOpen(qa);break}case State$5.END_TAG_OPEN:{this._stateEndTagOpen(qa);break}case State$5.TAG_NAME:{this._stateTagName(qa);break}case State$5.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(qa);break}case State$5.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(qa);break}case State$5.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(qa);break}case State$5.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(qa);break}case State$5.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(qa);break}case State$5.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(qa);break}case State$5.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(qa);break}case State$5.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(qa);break}case State$5.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(qa);break}case State$5.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(qa);break}case State$5.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(qa);break}case State$5.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(qa);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(qa);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(qa);break}case State$5.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(qa);break}case State$5.ATTRIBUTE_NAME:{this._stateAttributeName(qa);break}case State$5.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(qa);break}case State$5.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(qa);break}case State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(qa);break}case State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(qa);break}case State$5.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(qa);break}case State$5.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(qa);break}case State$5.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(qa);break}case State$5.BOGUS_COMMENT:{this._stateBogusComment(qa);break}case State$5.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(qa);break}case State$5.COMMENT_START:{this._stateCommentStart(qa);break}case State$5.COMMENT_START_DASH:{this._stateCommentStartDash(qa);break}case State$5.COMMENT:{this._stateComment(qa);break}case State$5.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(qa);break}case State$5.COMMENT_END_DASH:{this._stateCommentEndDash(qa);break}case State$5.COMMENT_END:{this._stateCommentEnd(qa);break}case State$5.COMMENT_END_BANG:{this._stateCommentEndBang(qa);break}case State$5.DOCTYPE:{this._stateDoctype(qa);break}case State$5.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(qa);break}case State$5.DOCTYPE_NAME:{this._stateDoctypeName(qa);break}case State$5.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(qa);break}case State$5.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(qa);break}case State$5.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(qa);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(qa);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(qa);break}case State$5.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(qa);break}case State$5.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(qa);break}case State$5.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(qa);break}case State$5.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(qa);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(qa);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(qa);break}case State$5.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(qa);break}case State$5.BOGUS_DOCTYPE:{this._stateBogusDoctype(qa);break}case State$5.CDATA_SECTION:{this._stateCdataSection(qa);break}case State$5.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(qa);break}case State$5.CDATA_SECTION_END:{this._stateCdataSectionEnd(qa);break}case State$5.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case State$5.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(qa);break}default:throw new Error("Unknown state")}}_stateData(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.TAG_OPEN;break}case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitCodePoint(qa);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateRcdata(qa){switch(qa){case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RCDATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateRawtext(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RAWTEXT_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateScriptData(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.SCRIPT_DATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_statePlaintext(qa){switch(qa){case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateTagOpen(qa){if(isAsciiLetter(qa))this._createStartTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(qa);else switch(qa){case CODE_POINTS.EXCLAMATION_MARK:{this.state=State$5.MARKUP_DECLARATION_OPEN;break}case CODE_POINTS.SOLIDUS:{this.state=State$5.END_TAG_OPEN;break}case CODE_POINTS.QUESTION_MARK:{this._err(ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=State$5.BOGUS_COMMENT,this._stateBogusComment(qa);break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=State$5.DATA,this._stateData(qa)}}_stateEndTagOpen(qa){if(isAsciiLetter(qa))this._createEndTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(qa);else switch(qa){case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingEndTagName),this.state=State$5.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitCodePoint(qa)}}_stateScriptDataEscapedLessThanSign(qa){qa===CODE_POINTS.SOLIDUS?this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:isAsciiLetter(qa)?(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(qa)):(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(qa))}_stateScriptDataEscapedEndTagOpen(qa){isAsciiLetter(qa)?(this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(qa)):(this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(qa)}}_stateScriptDataDoubleEscapedLessThanSign(qa){qa===CODE_POINTS.SOLIDUS?(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(qa))}_stateScriptDataDoubleEscapeEnd(qa){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(qa);for(let nd=0;nd0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(qa,!0)}replace(qa,nd){const od=this._indexOf(qa);this.items[od]=nd,od===this.stackTop&&(this.current=nd)}insertAfter(qa,nd,od){const ld=this._indexOf(qa)+1;this.items.splice(ld,0,nd),this.tagIDs.splice(ld,0,od),this.stackTop++,ld===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,ld===this.stackTop)}popUntilTagNamePopped(qa){let nd=this.stackTop+1;do nd=this.tagIDs.lastIndexOf(qa,nd-1);while(nd>0&&this.treeAdapter.getNamespaceURI(this.items[nd])!==NS.HTML);this.shortenToLength(nd<0?0:nd)}shortenToLength(qa){for(;this.stackTop>=qa;){const nd=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(nd,this.stackTop=0;od--)if(qa.has(this.tagIDs[od])&&this.treeAdapter.getNamespaceURI(this.items[od])===nd)return od;return-1}clearBackTo(qa,nd){const od=this._indexOfTagNames(qa,nd);this.shortenToLength(od+1)}clearBackToTableContext(){this.clearBackTo(TABLE_CONTEXT,NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TABLE_BODY_CONTEXT,NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(TABLE_ROW_CONTEXT,NS.HTML)}remove(qa){const nd=this._indexOf(qa);nd>=0&&(nd===this.stackTop?this.pop():(this.items.splice(nd,1),this.tagIDs.splice(nd,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(qa,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===TAG_ID.BODY?this.items[1]:null}contains(qa){return this._indexOf(qa)>-1}getCommonAncestor(qa){const nd=this._indexOf(qa)-1;return nd>=0?this.items[nd]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===TAG_ID.HTML}hasInDynamicScope(qa,nd){for(let od=this.stackTop;od>=0;od--){const ld=this.tagIDs[od];switch(this.treeAdapter.getNamespaceURI(this.items[od])){case NS.HTML:{if(ld===qa)return!0;if(nd.has(ld))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(ld))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(ld))return!1;break}}}return!0}hasInScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML)}hasInListItemScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML_LIST)}hasInButtonScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML_BUTTON)}hasNumberedHeaderInScope(){for(let qa=this.stackTop;qa>=0;qa--){const nd=this.tagIDs[qa];switch(this.treeAdapter.getNamespaceURI(this.items[qa])){case NS.HTML:{if(NUMBERED_HEADERS.has(nd))return!0;if(SCOPING_ELEMENTS_HTML.has(nd))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(nd))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(nd))return!1;break}}}return!0}hasInTableScope(qa){for(let nd=this.stackTop;nd>=0;nd--)if(this.treeAdapter.getNamespaceURI(this.items[nd])===NS.HTML)switch(this.tagIDs[nd]){case qa:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let qa=this.stackTop;qa>=0;qa--)if(this.treeAdapter.getNamespaceURI(this.items[qa])===NS.HTML)switch(this.tagIDs[qa]){case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasInSelectScope(qa){for(let nd=this.stackTop;nd>=0;nd--)if(this.treeAdapter.getNamespaceURI(this.items[nd])===NS.HTML)switch(this.tagIDs[nd]){case qa:return!0;case TAG_ID.OPTION:case TAG_ID.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(qa){for(;this.currentTagId!==qa&&IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}}const NOAH_ARK_CAPACITY=3;var EntryType;(function(Ra){Ra[Ra.Marker=0]="Marker",Ra[Ra.Element=1]="Element"})(EntryType||(EntryType={}));const MARKER={type:EntryType.Marker};class FormattingElementList{constructor(qa){this.treeAdapter=qa,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(qa,nd){const od=[],ld=nd.length,ud=this.treeAdapter.getTagName(qa),dd=this.treeAdapter.getNamespaceURI(qa);for(let pd=0;pd[dd.name,dd.value]));let ud=0;for(let dd=0;ddld.get(fd.name)===fd.value)&&(ud+=1,ud>=NOAH_ARK_CAPACITY&&this.entries.splice(pd.idx,1))}}insertMarker(){this.entries.unshift(MARKER)}pushElement(qa,nd){this._ensureNoahArkCondition(qa),this.entries.unshift({type:EntryType.Element,element:qa,token:nd})}insertElementAfterBookmark(qa,nd){const od=this.entries.indexOf(this.bookmark);this.entries.splice(od,0,{type:EntryType.Element,element:qa,token:nd})}removeEntry(qa){const nd=this.entries.indexOf(qa);nd>=0&&this.entries.splice(nd,1)}clearToLastMarker(){const qa=this.entries.indexOf(MARKER);qa>=0?this.entries.splice(0,qa+1):this.entries.length=0}getElementEntryInScopeWithTagName(qa){const nd=this.entries.find(od=>od.type===EntryType.Marker||this.treeAdapter.getTagName(od.element)===qa);return nd&&nd.type===EntryType.Element?nd:null}getElementEntry(qa){return this.entries.find(nd=>nd.type===EntryType.Element&&nd.element===qa)}}const defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(Ra,qa,nd){return{nodeName:Ra,tagName:Ra,attrs:nd,namespaceURI:qa,childNodes:[],parentNode:null}},createCommentNode(Ra){return{nodeName:"#comment",data:Ra,parentNode:null}},createTextNode(Ra){return{nodeName:"#text",value:Ra,parentNode:null}},appendChild(Ra,qa){Ra.childNodes.push(qa),qa.parentNode=Ra},insertBefore(Ra,qa,nd){const od=Ra.childNodes.indexOf(nd);Ra.childNodes.splice(od,0,qa),qa.parentNode=Ra},setTemplateContent(Ra,qa){Ra.content=qa},getTemplateContent(Ra){return Ra.content},setDocumentType(Ra,qa,nd,od){const ld=Ra.childNodes.find(ud=>ud.nodeName==="#documentType");if(ld)ld.name=qa,ld.publicId=nd,ld.systemId=od;else{const ud={nodeName:"#documentType",name:qa,publicId:nd,systemId:od,parentNode:null};defaultTreeAdapter.appendChild(Ra,ud)}},setDocumentMode(Ra,qa){Ra.mode=qa},getDocumentMode(Ra){return Ra.mode},detachNode(Ra){if(Ra.parentNode){const qa=Ra.parentNode.childNodes.indexOf(Ra);Ra.parentNode.childNodes.splice(qa,1),Ra.parentNode=null}},insertText(Ra,qa){if(Ra.childNodes.length>0){const nd=Ra.childNodes[Ra.childNodes.length-1];if(defaultTreeAdapter.isTextNode(nd)){nd.value+=qa;return}}defaultTreeAdapter.appendChild(Ra,defaultTreeAdapter.createTextNode(qa))},insertTextBefore(Ra,qa,nd){const od=Ra.childNodes[Ra.childNodes.indexOf(nd)-1];od&&defaultTreeAdapter.isTextNode(od)?od.value+=qa:defaultTreeAdapter.insertBefore(Ra,defaultTreeAdapter.createTextNode(qa),nd)},adoptAttributes(Ra,qa){const nd=new Set(Ra.attrs.map(od=>od.name));for(let od=0;odRa.startsWith(nd))}function isConforming(Ra){return Ra.name===VALID_DOCTYPE_NAME&&Ra.publicId===null&&(Ra.systemId===null||Ra.systemId===VALID_SYSTEM_ID)}function getDocumentMode(Ra){if(Ra.name!==VALID_DOCTYPE_NAME)return DOCUMENT_MODE.QUIRKS;const{systemId:qa}=Ra;if(qa&&qa.toLowerCase()===QUIRKS_MODE_SYSTEM_ID)return DOCUMENT_MODE.QUIRKS;let{publicId:nd}=Ra;if(nd!==null){if(nd=nd.toLowerCase(),QUIRKS_MODE_PUBLIC_IDS.has(nd))return DOCUMENT_MODE.QUIRKS;let od=qa===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(nd,od))return DOCUMENT_MODE.QUIRKS;if(od=qa===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(nd,od))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}const MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(Ra=>[Ra.toLowerCase(),Ra])),XML_ATTRS_ADJUSTMENT_MAP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:NS.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:NS.XMLNS}]]),SVG_TAG_NAMES_ADJUSTMENT_MAP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(Ra=>[Ra.toLowerCase(),Ra])),EXITS_FOREIGN_CONTENT=new Set([TAG_ID.B,TAG_ID.BIG,TAG_ID.BLOCKQUOTE,TAG_ID.BODY,TAG_ID.BR,TAG_ID.CENTER,TAG_ID.CODE,TAG_ID.DD,TAG_ID.DIV,TAG_ID.DL,TAG_ID.DT,TAG_ID.EM,TAG_ID.EMBED,TAG_ID.H1,TAG_ID.H2,TAG_ID.H3,TAG_ID.H4,TAG_ID.H5,TAG_ID.H6,TAG_ID.HEAD,TAG_ID.HR,TAG_ID.I,TAG_ID.IMG,TAG_ID.LI,TAG_ID.LISTING,TAG_ID.MENU,TAG_ID.META,TAG_ID.NOBR,TAG_ID.OL,TAG_ID.P,TAG_ID.PRE,TAG_ID.RUBY,TAG_ID.S,TAG_ID.SMALL,TAG_ID.SPAN,TAG_ID.STRONG,TAG_ID.STRIKE,TAG_ID.SUB,TAG_ID.SUP,TAG_ID.TABLE,TAG_ID.TT,TAG_ID.U,TAG_ID.UL,TAG_ID.VAR]);function causesExit(Ra){const qa=Ra.tagID;return qa===TAG_ID.FONT&&Ra.attrs.some(({name:od})=>od===ATTRS.COLOR||od===ATTRS.SIZE||od===ATTRS.FACE)||EXITS_FOREIGN_CONTENT.has(qa)}function adjustTokenMathMLAttrs(Ra){for(let qa=0;qa0&&this._setContextModes(qa,nd)}onItemPop(qa,nd){var od,ld;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(qa,this.currentToken),(ld=(od=this.treeAdapter).onItemPop)===null||ld===void 0||ld.call(od,qa,this.openElements.current),nd){let ud,dd;this.openElements.stackTop===0&&this.fragmentContext?(ud=this.fragmentContext,dd=this.fragmentContextID):{current:ud,currentTagId:dd}=this.openElements,this._setContextModes(ud,dd)}}_setContextModes(qa,nd){const od=qa===this.document||this.treeAdapter.getNamespaceURI(qa)===NS.HTML;this.currentNotInHTML=!od,this.tokenizer.inForeignNode=!od&&!this._isIntegrationPoint(nd,qa)}_switchToTextParsing(qa,nd){this._insertElement(qa,NS.HTML),this.tokenizer.state=nd,this.originalInsertionMode=this.insertionMode,this.insertionMode=InsertionMode.TEXT}switchToPlaintextParsing(){this.insertionMode=InsertionMode.TEXT,this.originalInsertionMode=InsertionMode.IN_BODY,this.tokenizer.state=TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let qa=this.fragmentContext;for(;qa;){if(this.treeAdapter.getTagName(qa)===TAG_NAMES.FORM){this.formElement=qa;break}qa=this.treeAdapter.getParentNode(qa)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==NS.HTML))switch(this.fragmentContextID){case TAG_ID.TITLE:case TAG_ID.TEXTAREA:{this.tokenizer.state=TokenizerMode.RCDATA;break}case TAG_ID.STYLE:case TAG_ID.XMP:case TAG_ID.IFRAME:case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:case TAG_ID.NOSCRIPT:{this.tokenizer.state=TokenizerMode.RAWTEXT;break}case TAG_ID.SCRIPT:{this.tokenizer.state=TokenizerMode.SCRIPT_DATA;break}case TAG_ID.PLAINTEXT:{this.tokenizer.state=TokenizerMode.PLAINTEXT;break}}}_setDocumentType(qa){const nd=qa.name||"",od=qa.publicId||"",ld=qa.systemId||"";if(this.treeAdapter.setDocumentType(this.document,nd,od,ld),qa.location){const dd=this.treeAdapter.getChildNodes(this.document).find(pd=>this.treeAdapter.isDocumentTypeNode(pd));dd&&this.treeAdapter.setNodeSourceCodeLocation(dd,qa.location)}}_attachElementToTree(qa,nd){if(this.options.sourceCodeLocationInfo){const od=nd&&{...nd,startTag:nd};this.treeAdapter.setNodeSourceCodeLocation(qa,od)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(qa);else{const od=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(od,qa)}}_appendElement(qa,nd){const od=this.treeAdapter.createElement(qa.tagName,nd,qa.attrs);this._attachElementToTree(od,qa.location)}_insertElement(qa,nd){const od=this.treeAdapter.createElement(qa.tagName,nd,qa.attrs);this._attachElementToTree(od,qa.location),this.openElements.push(od,qa.tagID)}_insertFakeElement(qa,nd){const od=this.treeAdapter.createElement(qa,NS.HTML,[]);this._attachElementToTree(od,null),this.openElements.push(od,nd)}_insertTemplate(qa){const nd=this.treeAdapter.createElement(qa.tagName,NS.HTML,qa.attrs),od=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(nd,od),this._attachElementToTree(nd,qa.location),this.openElements.push(nd,qa.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(od,null)}_insertFakeRootElement(){const qa=this.treeAdapter.createElement(TAG_NAMES.HTML,NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(qa,null),this.treeAdapter.appendChild(this.openElements.current,qa),this.openElements.push(qa,TAG_ID.HTML)}_appendCommentNode(qa,nd){const od=this.treeAdapter.createCommentNode(qa.data);this.treeAdapter.appendChild(nd,od),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(od,qa.location)}_insertCharacters(qa){let nd,od;if(this._shouldFosterParentOnInsertion()?({parent:nd,beforeElement:od}=this._findFosterParentingLocation(),od?this.treeAdapter.insertTextBefore(nd,qa.chars,od):this.treeAdapter.insertText(nd,qa.chars)):(nd=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(nd,qa.chars)),!qa.location)return;const ld=this.treeAdapter.getChildNodes(nd),ud=od?ld.lastIndexOf(od):ld.length,dd=ld[ud-1];if(this.treeAdapter.getNodeSourceCodeLocation(dd)){const{endLine:fd,endCol:md,endOffset:vd}=qa.location;this.treeAdapter.updateNodeSourceCodeLocation(dd,{endLine:fd,endCol:md,endOffset:vd})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(dd,qa.location)}_adoptNodes(qa,nd){for(let od=this.treeAdapter.getFirstChild(qa);od;od=this.treeAdapter.getFirstChild(qa))this.treeAdapter.detachNode(od),this.treeAdapter.appendChild(nd,od)}_setEndLocation(qa,nd){if(this.treeAdapter.getNodeSourceCodeLocation(qa)&&nd.location){const od=nd.location,ld=this.treeAdapter.getTagName(qa),ud=nd.type===TokenType.END_TAG&&ld===nd.tagName?{endTag:{...od},endLine:od.endLine,endCol:od.endCol,endOffset:od.endOffset}:{endLine:od.startLine,endCol:od.startCol,endOffset:od.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(qa,ud)}}shouldProcessStartTagTokenInForeignContent(qa){if(!this.currentNotInHTML)return!1;let nd,od;return this.openElements.stackTop===0&&this.fragmentContext?(nd=this.fragmentContext,od=this.fragmentContextID):{current:nd,currentTagId:od}=this.openElements,qa.tagID===TAG_ID.SVG&&this.treeAdapter.getTagName(nd)===TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(nd)===NS.MATHML?!1:this.tokenizer.inForeignNode||(qa.tagID===TAG_ID.MGLYPH||qa.tagID===TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(od,nd,NS.HTML)}_processToken(qa){switch(qa.type){case TokenType.CHARACTER:{this.onCharacter(qa);break}case TokenType.NULL_CHARACTER:{this.onNullCharacter(qa);break}case TokenType.COMMENT:{this.onComment(qa);break}case TokenType.DOCTYPE:{this.onDoctype(qa);break}case TokenType.START_TAG:{this._processStartTag(qa);break}case TokenType.END_TAG:{this.onEndTag(qa);break}case TokenType.EOF:{this.onEof(qa);break}case TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(qa);break}}}_isIntegrationPoint(qa,nd,od){const ld=this.treeAdapter.getNamespaceURI(nd),ud=this.treeAdapter.getAttrList(nd);return isIntegrationPoint(qa,ld,ud,od)}_reconstructActiveFormattingElements(){const qa=this.activeFormattingElements.entries.length;if(qa){const nd=this.activeFormattingElements.entries.findIndex(ld=>ld.type===EntryType.Marker||this.openElements.contains(ld.element)),od=nd<0?qa-1:nd-1;for(let ld=od;ld>=0;ld--){const ud=this.activeFormattingElements.entries[ld];this._insertElement(ud.token,this.treeAdapter.getNamespaceURI(ud.element)),ud.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=InsertionMode.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.P),this.openElements.popUntilTagNamePopped(TAG_ID.P)}_resetInsertionMode(){for(let qa=this.openElements.stackTop;qa>=0;qa--)switch(qa===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[qa]){case TAG_ID.TR:{this.insertionMode=InsertionMode.IN_ROW;return}case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:{this.insertionMode=InsertionMode.IN_TABLE_BODY;return}case TAG_ID.CAPTION:{this.insertionMode=InsertionMode.IN_CAPTION;return}case TAG_ID.COLGROUP:{this.insertionMode=InsertionMode.IN_COLUMN_GROUP;return}case TAG_ID.TABLE:{this.insertionMode=InsertionMode.IN_TABLE;return}case TAG_ID.BODY:{this.insertionMode=InsertionMode.IN_BODY;return}case TAG_ID.FRAMESET:{this.insertionMode=InsertionMode.IN_FRAMESET;return}case TAG_ID.SELECT:{this._resetInsertionModeForSelect(qa);return}case TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case TAG_ID.HTML:{this.insertionMode=this.headElement?InsertionMode.AFTER_HEAD:InsertionMode.BEFORE_HEAD;return}case TAG_ID.TD:case TAG_ID.TH:{if(qa>0){this.insertionMode=InsertionMode.IN_CELL;return}break}case TAG_ID.HEAD:{if(qa>0){this.insertionMode=InsertionMode.IN_HEAD;return}break}}this.insertionMode=InsertionMode.IN_BODY}_resetInsertionModeForSelect(qa){if(qa>0)for(let nd=qa-1;nd>0;nd--){const od=this.openElements.tagIDs[nd];if(od===TAG_ID.TEMPLATE)break;if(od===TAG_ID.TABLE){this.insertionMode=InsertionMode.IN_SELECT_IN_TABLE;return}}this.insertionMode=InsertionMode.IN_SELECT}_isElementCausesFosterParenting(qa){return TABLE_STRUCTURE_TAGS.has(qa)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let qa=this.openElements.stackTop;qa>=0;qa--){const nd=this.openElements.items[qa];switch(this.openElements.tagIDs[qa]){case TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(nd)===NS.HTML)return{parent:this.treeAdapter.getTemplateContent(nd),beforeElement:null};break}case TAG_ID.TABLE:{const od=this.treeAdapter.getParentNode(nd);return od?{parent:od,beforeElement:nd}:{parent:this.openElements.items[qa-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(qa){const nd=this._findFosterParentingLocation();nd.beforeElement?this.treeAdapter.insertBefore(nd.parent,qa,nd.beforeElement):this.treeAdapter.appendChild(nd.parent,qa)}_isSpecialElement(qa,nd){const od=this.treeAdapter.getNamespaceURI(qa);return SPECIAL_ELEMENTS[od].has(nd)}onCharacter(qa){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){characterInForeignContent(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:{characterInBody(this,qa);break}case InsertionMode.TEXT:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{this._insertCharacters(qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{characterInTableText(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,qa);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onNullCharacter(qa){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nullCharacterInForeignContent(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.TEXT:{this._insertCharacters(qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,qa);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onComment(qa){if(this.skipNextNewLine=!1,this.currentNotInHTML){appendComment(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:case InsertionMode.BEFORE_HTML:case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_TEMPLATE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{appendComment(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.AFTER_BODY:{appendCommentToRootHtmlElement(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{appendCommentToDocument(this,qa);break}}}onDoctype(qa){switch(this.skipNextNewLine=!1,this.insertionMode){case InsertionMode.INITIAL:{doctypeInInitialMode(this,qa);break}case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:{this._err(qa,ERR.misplacedDoctype);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}}}onStartTag(qa){this.skipNextNewLine=!1,this.currentToken=qa,this._processStartTag(qa),qa.selfClosing&&!qa.ackSelfClosing&&this._err(qa,ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(qa){this.shouldProcessStartTagTokenInForeignContent(qa)?startTagInForeignContent(this,qa):this._startTagOutsideForeignContent(qa)}_startTagOutsideForeignContent(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{startTagBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{startTagBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{startTagInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{startTagInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{startTagAfterHead(this,qa);break}case InsertionMode.IN_BODY:{startTagInBody(this,qa);break}case InsertionMode.IN_TABLE:{startTagInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_CAPTION:{startTagInCaption(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{startTagInColumnGroup(this,qa);break}case InsertionMode.IN_TABLE_BODY:{startTagInTableBody(this,qa);break}case InsertionMode.IN_ROW:{startTagInRow(this,qa);break}case InsertionMode.IN_CELL:{startTagInCell(this,qa);break}case InsertionMode.IN_SELECT:{startTagInSelect(this,qa);break}case InsertionMode.IN_SELECT_IN_TABLE:{startTagInSelectInTable(this,qa);break}case InsertionMode.IN_TEMPLATE:{startTagInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:{startTagAfterBody(this,qa);break}case InsertionMode.IN_FRAMESET:{startTagInFrameset(this,qa);break}case InsertionMode.AFTER_FRAMESET:{startTagAfterFrameset(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{startTagAfterAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_FRAMESET:{startTagAfterAfterFrameset(this,qa);break}}}onEndTag(qa){this.skipNextNewLine=!1,this.currentToken=qa,this.currentNotInHTML?endTagInForeignContent(this,qa):this._endTagOutsideForeignContent(qa)}_endTagOutsideForeignContent(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{endTagBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{endTagBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{endTagInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{endTagInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{endTagAfterHead(this,qa);break}case InsertionMode.IN_BODY:{endTagInBody(this,qa);break}case InsertionMode.TEXT:{endTagInText(this,qa);break}case InsertionMode.IN_TABLE:{endTagInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_CAPTION:{endTagInCaption(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{endTagInColumnGroup(this,qa);break}case InsertionMode.IN_TABLE_BODY:{endTagInTableBody(this,qa);break}case InsertionMode.IN_ROW:{endTagInRow(this,qa);break}case InsertionMode.IN_CELL:{endTagInCell(this,qa);break}case InsertionMode.IN_SELECT:{endTagInSelect(this,qa);break}case InsertionMode.IN_SELECT_IN_TABLE:{endTagInSelectInTable(this,qa);break}case InsertionMode.IN_TEMPLATE:{endTagInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:{endTagAfterBody(this,qa);break}case InsertionMode.IN_FRAMESET:{endTagInFrameset(this,qa);break}case InsertionMode.AFTER_FRAMESET:{endTagAfterFrameset(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onEof(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{eofInBody(this,qa);break}case InsertionMode.TEXT:{eofInText(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_TEMPLATE:{eofInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{stopParsing(this,qa);break}}}onWhitespaceCharacter(qa){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,qa.chars.charCodeAt(0)===CODE_POINTS.LINE_FEED)){if(qa.chars.length===1)return;qa.chars=qa.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(qa);return}switch(this.insertionMode){case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.TEXT:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{this._insertCharacters(qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:case InsertionMode.AFTER_BODY:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{whitespaceCharacterInBody(this,qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{whitespaceCharacterInTableText(this,qa);break}}}};function aaObtainFormattingElementEntry(Ra,qa){let nd=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(qa.tagName);return nd?Ra.openElements.contains(nd.element)?Ra.openElements.hasInScope(qa.tagID)||(nd=null):(Ra.activeFormattingElements.removeEntry(nd),nd=null):genericEndTagInBody(Ra,qa),nd}function aaObtainFurthestBlock(Ra,qa){let nd=null,od=Ra.openElements.stackTop;for(;od>=0;od--){const ld=Ra.openElements.items[od];if(ld===qa.element)break;Ra._isSpecialElement(ld,Ra.openElements.tagIDs[od])&&(nd=ld)}return nd||(Ra.openElements.shortenToLength(od<0?0:od),Ra.activeFormattingElements.removeEntry(qa)),nd}function aaInnerLoop(Ra,qa,nd){let od=qa,ld=Ra.openElements.getCommonAncestor(qa);for(let ud=0,dd=ld;dd!==nd;ud++,dd=ld){ld=Ra.openElements.getCommonAncestor(dd);const pd=Ra.activeFormattingElements.getElementEntry(dd),fd=pd&&ud>=AA_INNER_LOOP_ITER;!pd||fd?(fd&&Ra.activeFormattingElements.removeEntry(pd),Ra.openElements.remove(dd)):(dd=aaRecreateElementFromEntry(Ra,pd),od===qa&&(Ra.activeFormattingElements.bookmark=pd),Ra.treeAdapter.detachNode(od),Ra.treeAdapter.appendChild(dd,od),od=dd)}return od}function aaRecreateElementFromEntry(Ra,qa){const nd=Ra.treeAdapter.getNamespaceURI(qa.element),od=Ra.treeAdapter.createElement(qa.token.tagName,nd,qa.token.attrs);return Ra.openElements.replace(qa.element,od),qa.element=od,od}function aaInsertLastNodeInCommonAncestor(Ra,qa,nd){const od=Ra.treeAdapter.getTagName(qa),ld=getTagID(od);if(Ra._isElementCausesFosterParenting(ld))Ra._fosterParentElement(nd);else{const ud=Ra.treeAdapter.getNamespaceURI(qa);ld===TAG_ID.TEMPLATE&&ud===NS.HTML&&(qa=Ra.treeAdapter.getTemplateContent(qa)),Ra.treeAdapter.appendChild(qa,nd)}}function aaReplaceFormattingElement(Ra,qa,nd){const od=Ra.treeAdapter.getNamespaceURI(nd.element),{token:ld}=nd,ud=Ra.treeAdapter.createElement(ld.tagName,od,ld.attrs);Ra._adoptNodes(qa,ud),Ra.treeAdapter.appendChild(qa,ud),Ra.activeFormattingElements.insertElementAfterBookmark(ud,ld),Ra.activeFormattingElements.removeEntry(nd),Ra.openElements.remove(nd.element),Ra.openElements.insertAfter(qa,ud,ld.tagID)}function callAdoptionAgency(Ra,qa){for(let nd=0;nd=nd;od--)Ra._setEndLocation(Ra.openElements.items[od],qa);if(!Ra.fragmentContext&&Ra.openElements.stackTop>=0){const od=Ra.openElements.items[0],ld=Ra.treeAdapter.getNodeSourceCodeLocation(od);if(ld&&!ld.endTag&&(Ra._setEndLocation(od,qa),Ra.openElements.stackTop>=1)){const ud=Ra.openElements.items[1],dd=Ra.treeAdapter.getNodeSourceCodeLocation(ud);dd&&!dd.endTag&&Ra._setEndLocation(ud,qa)}}}}function doctypeInInitialMode(Ra,qa){Ra._setDocumentType(qa);const nd=qa.forceQuirks?DOCUMENT_MODE.QUIRKS:getDocumentMode(qa);isConforming(qa)||Ra._err(qa,ERR.nonConformingDoctype),Ra.treeAdapter.setDocumentMode(Ra.document,nd),Ra.insertionMode=InsertionMode.BEFORE_HTML}function tokenInInitialMode(Ra,qa){Ra._err(qa,ERR.missingDoctype,!0),Ra.treeAdapter.setDocumentMode(Ra.document,DOCUMENT_MODE.QUIRKS),Ra.insertionMode=InsertionMode.BEFORE_HTML,Ra._processToken(qa)}function startTagBeforeHtml(Ra,qa){qa.tagID===TAG_ID.HTML?(Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.BEFORE_HEAD):tokenBeforeHtml(Ra,qa)}function endTagBeforeHtml(Ra,qa){const nd=qa.tagID;(nd===TAG_ID.HTML||nd===TAG_ID.HEAD||nd===TAG_ID.BODY||nd===TAG_ID.BR)&&tokenBeforeHtml(Ra,qa)}function tokenBeforeHtml(Ra,qa){Ra._insertFakeRootElement(),Ra.insertionMode=InsertionMode.BEFORE_HEAD,Ra._processToken(qa)}function startTagBeforeHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.HEAD:{Ra._insertElement(qa,NS.HTML),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD;break}default:tokenBeforeHead(Ra,qa)}}function endTagBeforeHead(Ra,qa){const nd=qa.tagID;nd===TAG_ID.HEAD||nd===TAG_ID.BODY||nd===TAG_ID.HTML||nd===TAG_ID.BR?tokenBeforeHead(Ra,qa):Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}function tokenBeforeHead(Ra,qa){Ra._insertFakeElement(TAG_NAMES.HEAD,TAG_ID.HEAD),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(qa)}function startTagInHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:{Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0;break}case TAG_ID.TITLE:{Ra._switchToTextParsing(qa,TokenizerMode.RCDATA);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT):(Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_HEAD_NO_SCRIPT);break}case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT);break}case TAG_ID.SCRIPT:{Ra._switchToTextParsing(qa,TokenizerMode.SCRIPT_DATA);break}case TAG_ID.TEMPLATE:{Ra._insertTemplate(qa),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TEMPLATE,Ra.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);break}case TAG_ID.HEAD:{Ra._err(qa,ERR.misplacedStartTagForHeadElement);break}default:tokenInHead(Ra,qa)}}function endTagInHead(Ra,qa){switch(qa.tagID){case TAG_ID.HEAD:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD;break}case TAG_ID.BODY:case TAG_ID.BR:case TAG_ID.HTML:{tokenInHead(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function templateEndTagInHead(Ra,qa){Ra.openElements.tmplCount>0?(Ra.openElements.generateImpliedEndTagsThoroughly(),Ra.openElements.currentTagId!==TAG_ID.TEMPLATE&&Ra._err(qa,ERR.closingOfElementWithOpenChildElements),Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode()):Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(Ra,qa){Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD,Ra._processToken(qa)}function startTagInHeadNoScript(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.HEAD:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{startTagInHead(Ra,qa);break}case TAG_ID.NOSCRIPT:{Ra._err(qa,ERR.nestedNoscriptInHead);break}default:tokenInHeadNoScript(Ra,qa)}}function endTagInHeadNoScript(Ra,qa){switch(qa.tagID){case TAG_ID.NOSCRIPT:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD;break}case TAG_ID.BR:{tokenInHeadNoScript(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function tokenInHeadNoScript(Ra,qa){const nd=qa.type===TokenType.EOF?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;Ra._err(qa,nd),Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(qa)}function startTagAfterHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BODY:{Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_BODY;break}case TAG_ID.FRAMESET:{Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET;break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{Ra._err(qa,ERR.abandonedHeadElementChild),Ra.openElements.push(Ra.headElement,TAG_ID.HEAD),startTagInHead(Ra,qa),Ra.openElements.remove(Ra.headElement);break}case TAG_ID.HEAD:{Ra._err(qa,ERR.misplacedStartTagForHeadElement);break}default:tokenAfterHead(Ra,qa)}}function endTagAfterHead(Ra,qa){switch(qa.tagID){case TAG_ID.BODY:case TAG_ID.HTML:case TAG_ID.BR:{tokenAfterHead(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function tokenAfterHead(Ra,qa){Ra._insertFakeElement(TAG_NAMES.BODY,TAG_ID.BODY),Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function modeInBody(Ra,qa){switch(qa.type){case TokenType.CHARACTER:{characterInBody(Ra,qa);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInBody(Ra,qa);break}case TokenType.COMMENT:{appendComment(Ra,qa);break}case TokenType.START_TAG:{startTagInBody(Ra,qa);break}case TokenType.END_TAG:{endTagInBody(Ra,qa);break}case TokenType.EOF:{eofInBody(Ra,qa);break}}}function whitespaceCharacterInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(qa)}function characterInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(qa),Ra.framesetOk=!1}function htmlStartTagInBody(Ra,qa){Ra.openElements.tmplCount===0&&Ra.treeAdapter.adoptAttributes(Ra.openElements.items[0],qa.attrs)}function bodyStartTagInBody(Ra,qa){const nd=Ra.openElements.tryPeekProperlyNestedBodyElement();nd&&Ra.openElements.tmplCount===0&&(Ra.framesetOk=!1,Ra.treeAdapter.adoptAttributes(nd,qa.attrs))}function framesetStartTagInBody(Ra,qa){const nd=Ra.openElements.tryPeekProperlyNestedBodyElement();Ra.framesetOk&&nd&&(Ra.treeAdapter.detachNode(nd),Ra.openElements.popAllUpToHtmlElement(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET)}function addressStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML)}function numberedHeaderStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),NUMBERED_HEADERS.has(Ra.openElements.currentTagId)&&Ra.openElements.pop(),Ra._insertElement(qa,NS.HTML)}function preStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.skipNextNewLine=!0,Ra.framesetOk=!1}function formStartTagInBody(Ra,qa){const nd=Ra.openElements.tmplCount>0;(!Ra.formElement||nd)&&(Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),nd||(Ra.formElement=Ra.openElements.current))}function listItemStartTagInBody(Ra,qa){Ra.framesetOk=!1;const nd=qa.tagID;for(let od=Ra.openElements.stackTop;od>=0;od--){const ld=Ra.openElements.tagIDs[od];if(nd===TAG_ID.LI&&ld===TAG_ID.LI||(nd===TAG_ID.DD||nd===TAG_ID.DT)&&(ld===TAG_ID.DD||ld===TAG_ID.DT)){Ra.openElements.generateImpliedEndTagsWithExclusion(ld),Ra.openElements.popUntilTagNamePopped(ld);break}if(ld!==TAG_ID.ADDRESS&&ld!==TAG_ID.DIV&&ld!==TAG_ID.P&&Ra._isSpecialElement(Ra.openElements.items[od],ld))break}Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML)}function plaintextStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.tokenizer.state=TokenizerMode.PLAINTEXT}function buttonStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.BUTTON)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(TAG_ID.BUTTON)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1}function aStartTagInBody(Ra,qa){const nd=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(TAG_NAMES.A);nd&&(callAdoptionAgency(Ra,qa),Ra.openElements.remove(nd.element),Ra.activeFormattingElements.removeEntry(nd)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function bStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function nobrStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra.openElements.hasInScope(TAG_ID.NOBR)&&(callAdoptionAgency(Ra,qa),Ra._reconstructActiveFormattingElements()),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function appletStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1}function tableStartTagInBody(Ra,qa){Ra.treeAdapter.getDocumentMode(Ra.document)!==DOCUMENT_MODE.QUIRKS&&Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TABLE}function areaStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._appendElement(qa,NS.HTML),Ra.framesetOk=!1,qa.ackSelfClosing=!0}function isHiddenInput(Ra){const qa=getTokenAttr(Ra,ATTRS.TYPE);return qa!=null&&qa.toLowerCase()===HIDDEN_INPUT_TYPE}function inputStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._appendElement(qa,NS.HTML),isHiddenInput(qa)||(Ra.framesetOk=!1),qa.ackSelfClosing=!0}function paramStartTagInBody(Ra,qa){Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0}function hrStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._appendElement(qa,NS.HTML),Ra.framesetOk=!1,qa.ackSelfClosing=!0}function imageStartTagInBody(Ra,qa){qa.tagName=TAG_NAMES.IMG,qa.tagID=TAG_ID.IMG,areaStartTagInBody(Ra,qa)}function textareaStartTagInBody(Ra,qa){Ra._insertElement(qa,NS.HTML),Ra.skipNextNewLine=!0,Ra.tokenizer.state=TokenizerMode.RCDATA,Ra.originalInsertionMode=Ra.insertionMode,Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.TEXT}function xmpStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._reconstructActiveFormattingElements(),Ra.framesetOk=!1,Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function iframeStartTagInBody(Ra,qa){Ra.framesetOk=!1,Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function rawTextStartTagInBody(Ra,qa){Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function selectStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=Ra.insertionMode===InsertionMode.IN_TABLE||Ra.insertionMode===InsertionMode.IN_CAPTION||Ra.insertionMode===InsertionMode.IN_TABLE_BODY||Ra.insertionMode===InsertionMode.IN_ROW||Ra.insertionMode===InsertionMode.IN_CELL?InsertionMode.IN_SELECT_IN_TABLE:InsertionMode.IN_SELECT}function optgroupStartTagInBody(Ra,qa){Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop(),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML)}function rbStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTags(),Ra._insertElement(qa,NS.HTML)}function rtStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.RTC),Ra._insertElement(qa,NS.HTML)}function mathStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),adjustTokenMathMLAttrs(qa),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,NS.MATHML):Ra._insertElement(qa,NS.MATHML),qa.ackSelfClosing=!0}function svgStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),adjustTokenSVGAttrs(qa),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,NS.SVG):Ra._insertElement(qa,NS.SVG),qa.ackSelfClosing=!0}function genericStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML)}function startTagInBody(Ra,qa){switch(qa.tagID){case TAG_ID.I:case TAG_ID.S:case TAG_ID.B:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{bStartTagInBody(Ra,qa);break}case TAG_ID.A:{aStartTagInBody(Ra,qa);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderStartTagInBody(Ra,qa);break}case TAG_ID.P:case TAG_ID.DL:case TAG_ID.OL:case TAG_ID.UL:case TAG_ID.DIV:case TAG_ID.DIR:case TAG_ID.NAV:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.DETAILS:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressStartTagInBody(Ra,qa);break}case TAG_ID.LI:case TAG_ID.DD:case TAG_ID.DT:{listItemStartTagInBody(Ra,qa);break}case TAG_ID.BR:case TAG_ID.IMG:case TAG_ID.WBR:case TAG_ID.AREA:case TAG_ID.EMBED:case TAG_ID.KEYGEN:{areaStartTagInBody(Ra,qa);break}case TAG_ID.HR:{hrStartTagInBody(Ra,qa);break}case TAG_ID.RB:case TAG_ID.RTC:{rbStartTagInBody(Ra,qa);break}case TAG_ID.RT:case TAG_ID.RP:{rtStartTagInBody(Ra,qa);break}case TAG_ID.PRE:case TAG_ID.LISTING:{preStartTagInBody(Ra,qa);break}case TAG_ID.XMP:{xmpStartTagInBody(Ra,qa);break}case TAG_ID.SVG:{svgStartTagInBody(Ra,qa);break}case TAG_ID.HTML:{htmlStartTagInBody(Ra,qa);break}case TAG_ID.BASE:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.STYLE:case TAG_ID.TITLE:case TAG_ID.SCRIPT:case TAG_ID.BGSOUND:case TAG_ID.BASEFONT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,qa);break}case TAG_ID.BODY:{bodyStartTagInBody(Ra,qa);break}case TAG_ID.FORM:{formStartTagInBody(Ra,qa);break}case TAG_ID.NOBR:{nobrStartTagInBody(Ra,qa);break}case TAG_ID.MATH:{mathStartTagInBody(Ra,qa);break}case TAG_ID.TABLE:{tableStartTagInBody(Ra,qa);break}case TAG_ID.INPUT:{inputStartTagInBody(Ra,qa);break}case TAG_ID.PARAM:case TAG_ID.TRACK:case TAG_ID.SOURCE:{paramStartTagInBody(Ra,qa);break}case TAG_ID.IMAGE:{imageStartTagInBody(Ra,qa);break}case TAG_ID.BUTTON:{buttonStartTagInBody(Ra,qa);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletStartTagInBody(Ra,qa);break}case TAG_ID.IFRAME:{iframeStartTagInBody(Ra,qa);break}case TAG_ID.SELECT:{selectStartTagInBody(Ra,qa);break}case TAG_ID.OPTION:case TAG_ID.OPTGROUP:{optgroupStartTagInBody(Ra,qa);break}case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:{rawTextStartTagInBody(Ra,qa);break}case TAG_ID.FRAMESET:{framesetStartTagInBody(Ra,qa);break}case TAG_ID.TEXTAREA:{textareaStartTagInBody(Ra,qa);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?rawTextStartTagInBody(Ra,qa):genericStartTagInBody(Ra,qa);break}case TAG_ID.PLAINTEXT:{plaintextStartTagInBody(Ra,qa);break}case TAG_ID.COL:case TAG_ID.TH:case TAG_ID.TD:case TAG_ID.TR:case TAG_ID.HEAD:case TAG_ID.FRAME:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.CAPTION:case TAG_ID.COLGROUP:break;default:genericStartTagInBody(Ra,qa)}}function bodyEndTagInBody(Ra,qa){if(Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,Ra.options.sourceCodeLocationInfo)){const nd=Ra.openElements.tryPeekProperlyNestedBodyElement();nd&&Ra._setEndLocation(nd,qa)}}function htmlEndTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,endTagAfterBody(Ra,qa))}function addressEndTagInBody(Ra,qa){const nd=qa.tagID;Ra.openElements.hasInScope(nd)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(nd))}function formEndTagInBody(Ra){const qa=Ra.openElements.tmplCount>0,{formElement:nd}=Ra;qa||(Ra.formElement=null),(nd||qa)&&Ra.openElements.hasInScope(TAG_ID.FORM)&&(Ra.openElements.generateImpliedEndTags(),qa?Ra.openElements.popUntilTagNamePopped(TAG_ID.FORM):nd&&Ra.openElements.remove(nd))}function pEndTagInBody(Ra){Ra.openElements.hasInButtonScope(TAG_ID.P)||Ra._insertFakeElement(TAG_NAMES.P,TAG_ID.P),Ra._closePElement()}function liEndTagInBody(Ra){Ra.openElements.hasInListItemScope(TAG_ID.LI)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.LI),Ra.openElements.popUntilTagNamePopped(TAG_ID.LI))}function ddEndTagInBody(Ra,qa){const nd=qa.tagID;Ra.openElements.hasInScope(nd)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(nd),Ra.openElements.popUntilTagNamePopped(nd))}function numberedHeaderEndTagInBody(Ra){Ra.openElements.hasNumberedHeaderInScope()&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(Ra,qa){const nd=qa.tagID;Ra.openElements.hasInScope(nd)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(nd),Ra.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(Ra){Ra._reconstructActiveFormattingElements(),Ra._insertFakeElement(TAG_NAMES.BR,TAG_ID.BR),Ra.openElements.pop(),Ra.framesetOk=!1}function genericEndTagInBody(Ra,qa){const nd=qa.tagName,od=qa.tagID;for(let ld=Ra.openElements.stackTop;ld>0;ld--){const ud=Ra.openElements.items[ld],dd=Ra.openElements.tagIDs[ld];if(od===dd&&(od!==TAG_ID.UNKNOWN||Ra.treeAdapter.getTagName(ud)===nd)){Ra.openElements.generateImpliedEndTagsWithExclusion(od),Ra.openElements.stackTop>=ld&&Ra.openElements.shortenToLength(ld);break}if(Ra._isSpecialElement(ud,dd))break}}function endTagInBody(Ra,qa){switch(qa.tagID){case TAG_ID.A:case TAG_ID.B:case TAG_ID.I:case TAG_ID.S:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.NOBR:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{callAdoptionAgency(Ra,qa);break}case TAG_ID.P:{pEndTagInBody(Ra);break}case TAG_ID.DL:case TAG_ID.UL:case TAG_ID.OL:case TAG_ID.DIR:case TAG_ID.DIV:case TAG_ID.NAV:case TAG_ID.PRE:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.BUTTON:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.DETAILS:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.LISTING:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressEndTagInBody(Ra,qa);break}case TAG_ID.LI:{liEndTagInBody(Ra);break}case TAG_ID.DD:case TAG_ID.DT:{ddEndTagInBody(Ra,qa);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderEndTagInBody(Ra);break}case TAG_ID.BR:{brEndTagInBody(Ra);break}case TAG_ID.BODY:{bodyEndTagInBody(Ra,qa);break}case TAG_ID.HTML:{htmlEndTagInBody(Ra,qa);break}case TAG_ID.FORM:{formEndTagInBody(Ra);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletEndTagInBody(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:genericEndTagInBody(Ra,qa)}}function eofInBody(Ra,qa){Ra.tmplInsertionModeStack.length>0?eofInTemplate(Ra,qa):stopParsing(Ra,qa)}function endTagInText(Ra,qa){var nd;qa.tagID===TAG_ID.SCRIPT&&((nd=Ra.scriptHandler)===null||nd===void 0||nd.call(Ra,Ra.openElements.current)),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode}function eofInText(Ra,qa){Ra._err(qa,ERR.eofInElementThatCanContainOnlyText),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode,Ra.onEof(qa)}function characterInTable(Ra,qa){if(TABLE_STRUCTURE_TAGS.has(Ra.openElements.currentTagId))switch(Ra.pendingCharacterTokens.length=0,Ra.hasNonWhitespacePendingCharacterToken=!1,Ra.originalInsertionMode=Ra.insertionMode,Ra.insertionMode=InsertionMode.IN_TABLE_TEXT,qa.type){case TokenType.CHARACTER:{characterInTableText(Ra,qa);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInTableText(Ra,qa);break}}else tokenInTable(Ra,qa)}function captionStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra.activeFormattingElements.insertMarker(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_CAPTION}function colgroupStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP}function colStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.COLGROUP,TAG_ID.COLGROUP),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,qa)}function tbodyStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_TABLE_BODY}function tdStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.TBODY,TAG_ID.TBODY),Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,qa)}function tableStartTagInTable(Ra,qa){Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode(),Ra._processStartTag(qa))}function inputStartTagInTable(Ra,qa){isHiddenInput(qa)?Ra._appendElement(qa,NS.HTML):tokenInTable(Ra,qa),qa.ackSelfClosing=!0}function formStartTagInTable(Ra,qa){!Ra.formElement&&Ra.openElements.tmplCount===0&&(Ra._insertElement(qa,NS.HTML),Ra.formElement=Ra.openElements.current,Ra.openElements.pop())}function startTagInTable(Ra,qa){switch(qa.tagID){case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:{tdStartTagInTable(Ra,qa);break}case TAG_ID.STYLE:case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,qa);break}case TAG_ID.COL:{colStartTagInTable(Ra,qa);break}case TAG_ID.FORM:{formStartTagInTable(Ra,qa);break}case TAG_ID.TABLE:{tableStartTagInTable(Ra,qa);break}case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{tbodyStartTagInTable(Ra,qa);break}case TAG_ID.INPUT:{inputStartTagInTable(Ra,qa);break}case TAG_ID.CAPTION:{captionStartTagInTable(Ra,qa);break}case TAG_ID.COLGROUP:{colgroupStartTagInTable(Ra,qa);break}default:tokenInTable(Ra,qa)}}function endTagInTable(Ra,qa){switch(qa.tagID){case TAG_ID.TABLE:{Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:tokenInTable(Ra,qa)}}function tokenInTable(Ra,qa){const nd=Ra.fosterParentingEnabled;Ra.fosterParentingEnabled=!0,modeInBody(Ra,qa),Ra.fosterParentingEnabled=nd}function whitespaceCharacterInTableText(Ra,qa){Ra.pendingCharacterTokens.push(qa)}function characterInTableText(Ra,qa){Ra.pendingCharacterTokens.push(qa),Ra.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(Ra,qa){let nd=0;if(Ra.hasNonWhitespacePendingCharacterToken)for(;nd0&&Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.tagIDs[Ra.openElements.stackTop-1]===TAG_ID.OPTGROUP&&Ra.openElements.pop(),Ra.openElements.currentTagId===TAG_ID.OPTGROUP&&Ra.openElements.pop();break}case TAG_ID.OPTION:{Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop();break}case TAG_ID.SELECT:{Ra.openElements.hasInSelectScope(TAG_ID.SELECT)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}}}function startTagInSelectInTable(Ra,qa){const nd=qa.tagID;nd===TAG_ID.CAPTION||nd===TAG_ID.TABLE||nd===TAG_ID.TBODY||nd===TAG_ID.TFOOT||nd===TAG_ID.THEAD||nd===TAG_ID.TR||nd===TAG_ID.TD||nd===TAG_ID.TH?(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra._processStartTag(qa)):startTagInSelect(Ra,qa)}function endTagInSelectInTable(Ra,qa){const nd=qa.tagID;nd===TAG_ID.CAPTION||nd===TAG_ID.TABLE||nd===TAG_ID.TBODY||nd===TAG_ID.TFOOT||nd===TAG_ID.THEAD||nd===TAG_ID.TR||nd===TAG_ID.TD||nd===TAG_ID.TH?Ra.openElements.hasInTableScope(nd)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra.onEndTag(qa)):endTagInSelect(Ra,qa)}function startTagInTemplate(Ra,qa){switch(qa.tagID){case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{startTagInHead(Ra,qa);break}case TAG_ID.CAPTION:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE,Ra.insertionMode=InsertionMode.IN_TABLE,startTagInTable(Ra,qa);break}case TAG_ID.COL:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_COLUMN_GROUP,Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,qa);break}case TAG_ID.TR:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE_BODY,Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,qa);break}case TAG_ID.TD:case TAG_ID.TH:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_ROW,Ra.insertionMode=InsertionMode.IN_ROW,startTagInRow(Ra,qa);break}default:Ra.tmplInsertionModeStack[0]=InsertionMode.IN_BODY,Ra.insertionMode=InsertionMode.IN_BODY,startTagInBody(Ra,qa)}}function endTagInTemplate(Ra,qa){qa.tagID===TAG_ID.TEMPLATE&&templateEndTagInHead(Ra,qa)}function eofInTemplate(Ra,qa){Ra.openElements.tmplCount>0?(Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode(),Ra.onEof(qa)):stopParsing(Ra,qa)}function startTagAfterBody(Ra,qa){qa.tagID===TAG_ID.HTML?startTagInBody(Ra,qa):tokenAfterBody(Ra,qa)}function endTagAfterBody(Ra,qa){var nd;if(qa.tagID===TAG_ID.HTML){if(Ra.fragmentContext||(Ra.insertionMode=InsertionMode.AFTER_AFTER_BODY),Ra.options.sourceCodeLocationInfo&&Ra.openElements.tagIDs[0]===TAG_ID.HTML){Ra._setEndLocation(Ra.openElements.items[0],qa);const od=Ra.openElements.items[1];od&&!(!((nd=Ra.treeAdapter.getNodeSourceCodeLocation(od))===null||nd===void 0)&&nd.endTag)&&Ra._setEndLocation(od,qa)}}else tokenAfterBody(Ra,qa)}function tokenAfterBody(Ra,qa){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function startTagInFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.FRAMESET:{Ra._insertElement(qa,NS.HTML);break}case TAG_ID.FRAME:{Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0;break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function endTagInFrameset(Ra,qa){qa.tagID===TAG_ID.FRAMESET&&!Ra.openElements.isRootHtmlElementCurrent()&&(Ra.openElements.pop(),!Ra.fragmentContext&&Ra.openElements.currentTagId!==TAG_ID.FRAMESET&&(Ra.insertionMode=InsertionMode.AFTER_FRAMESET))}function startTagAfterFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function endTagAfterFrameset(Ra,qa){qa.tagID===TAG_ID.HTML&&(Ra.insertionMode=InsertionMode.AFTER_AFTER_FRAMESET)}function startTagAfterAfterBody(Ra,qa){qa.tagID===TAG_ID.HTML?startTagInBody(Ra,qa):tokenAfterAfterBody(Ra,qa)}function tokenAfterAfterBody(Ra,qa){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function startTagAfterAfterFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function nullCharacterInForeignContent(Ra,qa){qa.chars=REPLACEMENT_CHARACTER,Ra._insertCharacters(qa)}function characterInForeignContent(Ra,qa){Ra._insertCharacters(qa),Ra.framesetOk=!1}function popUntilHtmlOrIntegrationPoint(Ra){for(;Ra.treeAdapter.getNamespaceURI(Ra.openElements.current)!==NS.HTML&&!Ra._isIntegrationPoint(Ra.openElements.currentTagId,Ra.openElements.current);)Ra.openElements.pop()}function startTagInForeignContent(Ra,qa){if(causesExit(qa))popUntilHtmlOrIntegrationPoint(Ra),Ra._startTagOutsideForeignContent(qa);else{const nd=Ra._getAdjustedCurrentElement(),od=Ra.treeAdapter.getNamespaceURI(nd);od===NS.MATHML?adjustTokenMathMLAttrs(qa):od===NS.SVG&&(adjustTokenSVGTagName(qa),adjustTokenSVGAttrs(qa)),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,od):Ra._insertElement(qa,od),qa.ackSelfClosing=!0}}function endTagInForeignContent(Ra,qa){if(qa.tagID===TAG_ID.P||qa.tagID===TAG_ID.BR){popUntilHtmlOrIntegrationPoint(Ra),Ra._endTagOutsideForeignContent(qa);return}for(let nd=Ra.openElements.stackTop;nd>0;nd--){const od=Ra.openElements.items[nd];if(Ra.treeAdapter.getNamespaceURI(od)===NS.HTML){Ra._endTagOutsideForeignContent(qa);break}const ld=Ra.treeAdapter.getTagName(od);if(ld.toLowerCase()===qa.tagName){qa.tagName=ld,Ra.openElements.shortenToLength(nd);break}}}const VOID_ELEMENTS=new Set([TAG_NAMES.AREA,TAG_NAMES.BASE,TAG_NAMES.BASEFONT,TAG_NAMES.BGSOUND,TAG_NAMES.BR,TAG_NAMES.COL,TAG_NAMES.EMBED,TAG_NAMES.FRAME,TAG_NAMES.HR,TAG_NAMES.IMG,TAG_NAMES.INPUT,TAG_NAMES.KEYGEN,TAG_NAMES.LINK,TAG_NAMES.META,TAG_NAMES.PARAM,TAG_NAMES.SOURCE,TAG_NAMES.TRACK,TAG_NAMES.WBR]);function isVoidElement(Ra,qa){return qa.treeAdapter.isElementNode(Ra)&&qa.treeAdapter.getNamespaceURI(Ra)===NS.HTML&&VOID_ELEMENTS.has(qa.treeAdapter.getTagName(Ra))}const defaultOpts={treeAdapter:defaultTreeAdapter,scriptingEnabled:!0};function serializeOuter(Ra,qa){const nd={...defaultOpts,...qa};return serializeNode(Ra,nd)}function serializeChildNodes(Ra,qa){let nd="";const od=qa.treeAdapter.isElementNode(Ra)&&qa.treeAdapter.getTagName(Ra)===TAG_NAMES.TEMPLATE&&qa.treeAdapter.getNamespaceURI(Ra)===NS.HTML?qa.treeAdapter.getTemplateContent(Ra):Ra,ld=qa.treeAdapter.getChildNodes(od);if(ld)for(const ud of ld)nd+=serializeNode(ud,qa);return nd}function serializeNode(Ra,qa){return qa.treeAdapter.isElementNode(Ra)?serializeElement(Ra,qa):qa.treeAdapter.isTextNode(Ra)?serializeTextNode(Ra,qa):qa.treeAdapter.isCommentNode(Ra)?serializeCommentNode(Ra,qa):qa.treeAdapter.isDocumentTypeNode(Ra)?serializeDocumentTypeNode(Ra,qa):""}function serializeElement(Ra,qa){const nd=qa.treeAdapter.getTagName(Ra);return`<${nd}${serializeAttributes(Ra,qa)}>${isVoidElement(Ra,qa)?"":`${serializeChildNodes(Ra,qa)}`}`}function serializeAttributes(Ra,{treeAdapter:qa}){let nd="";for(const od of qa.getAttrList(Ra)){if(nd+=" ",od.namespace)switch(od.namespace){case NS.XML:{nd+=`xml:${od.name}`;break}case NS.XMLNS:{od.name!=="xmlns"&&(nd+="xmlns:"),nd+=od.name;break}case NS.XLINK:{nd+=`xlink:${od.name}`;break}default:nd+=`${od.prefix}:${od.name}`}else nd+=od.name;nd+=`="${escapeAttribute(od.value)}"`}return nd}function serializeTextNode(Ra,qa){const{treeAdapter:nd}=qa,od=nd.getTextNodeContent(Ra),ld=nd.getParentNode(Ra),ud=ld&&nd.isElementNode(ld)&&nd.getTagName(ld);return ud&&nd.getNamespaceURI(ld)===NS.HTML&&hasUnescapedText(ud,qa.scriptingEnabled)?od:escapeText(od)}function serializeCommentNode(Ra,{treeAdapter:qa}){return``}function serializeDocumentTypeNode(Ra,{treeAdapter:qa}){return``}function parse$5(Ra,qa){return Parser$2.parse(Ra,qa)}function parseFragment(Ra,qa,nd){typeof Ra=="string"&&(nd=qa,qa=Ra,Ra=null);const od=Parser$2.getFragmentParser(Ra,nd);return od.tokenizer.write(qa,!0),od.getFragment()}function enquoteDoctypeId(Ra){const qa=Ra.includes('"')?"'":'"';return qa+Ra+qa}function serializeDoctypeContent(Ra,qa,nd){let od="!DOCTYPE ";return Ra&&(od+=Ra),qa?od+=` PUBLIC ${enquoteDoctypeId(qa)}`:nd&&(od+=" SYSTEM"),nd&&(od+=` ${enquoteDoctypeId(nd)}`),od}const adapter={isCommentNode:isComment$2,isElementNode:isTag,isTextNode:isText,createDocument(){const Ra=new Document([]);return Ra["x-mode"]=DOCUMENT_MODE.NO_QUIRKS,Ra},createDocumentFragment(){return new Document([])},createElement(Ra,qa,nd){const od=Object.create(null),ld=Object.create(null),ud=Object.create(null);for(let pd=0;pdisDirective(dd)&&dd.name==="!doctype");ud?ud.data=ld??null:(ud=new ProcessingInstruction("!doctype",ld),adapter.appendChild(Ra,ud)),ud["x-name"]=qa,ud["x-publicId"]=nd,ud["x-systemId"]=od},setDocumentMode(Ra,qa){Ra["x-mode"]=qa},getDocumentMode(Ra){return Ra["x-mode"]},detachNode(Ra){if(Ra.parent){const qa=Ra.parent.children.indexOf(Ra),{prev:nd,next:od}=Ra;Ra.prev=null,Ra.next=null,nd&&(nd.next=od),od&&(od.prev=nd),Ra.parent.children.splice(qa,1),Ra.parent=null}},insertText(Ra,qa){const nd=Ra.children[Ra.children.length-1];nd&&isText(nd)?nd.data+=qa:adapter.appendChild(Ra,adapter.createTextNode(qa))},insertTextBefore(Ra,qa,nd){const od=Ra.children[Ra.children.indexOf(nd)-1];od&&isText(od)?od.data+=qa:adapter.insertBefore(Ra,adapter.createTextNode(qa),nd)},adoptAttributes(Ra,qa){for(let nd=0;nd=CharCodes.LowerA&&Ra<=CharCodes.LowerZ||Ra>=CharCodes.UpperA&&Ra<=CharCodes.UpperZ}var QuoteType;(function(Ra){Ra[Ra.NoValue=0]="NoValue",Ra[Ra.Unquoted=1]="Unquoted",Ra[Ra.Single=2]="Single",Ra[Ra.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Tokenizer{constructor({xmlMode:qa=!1,decodeEntities:nd=!0},od){this.cbs=od,this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=State$4.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=qa,this.decodeEntities=nd,this.entityDecoder=new EntityDecoder(qa?xmlDecodeTree:htmlDecodeTree,(ld,ud)=>this.emitCodePoint(ld,ud))}reset(){this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State$4.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(qa){this.offset+=this.buffer.length,this.buffer=qa,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State$4.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&qa===CharCodes.Amp&&this.startEntity()}stateSpecialStartSequence(qa){const nd=this.sequenceIndex===this.currentSequence.length;if(!(nd?isEndOfTagSection(qa):(qa|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!nd){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State$4.InTagName,this.stateInTagName(qa)}stateInSpecialTag(qa){if(this.sequenceIndex===this.currentSequence.length){if(qa===CharCodes.Gt||isWhitespace$2(qa)){const nd=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,qa===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State$4.Text||this.state===State$4.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index=qa||(this.state===State$4.InCommentLike?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,qa,0):this.cbs.oncomment(this.sectionStart,qa,0):this.state===State$4.InTagName||this.state===State$4.BeforeAttributeName||this.state===State$4.BeforeAttributeValue||this.state===State$4.AfterAttributeName||this.state===State$4.InAttributeName||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueNq||this.state===State$4.InClosingTagName||this.cbs.ontext(this.sectionStart,qa))}emitCodePoint(qa,nd){this.baseState!==State$4.Text&&this.baseState!==State$4.InSpecialTag?(this.sectionStart0&&dd.has(this.stack[0]);){const pd=this.stack.shift();(od=(nd=this.cbs).onclosetag)===null||od===void 0||od.call(nd,pd,!0)}this.isVoidElement(qa)||(this.stack.unshift(qa),this.htmlMode&&(foreignContextElements.has(qa)?this.foreignContext.unshift(!0):htmlIntegrationElements.has(qa)&&this.foreignContext.unshift(!1))),(ud=(ld=this.cbs).onopentagname)===null||ud===void 0||ud.call(ld,qa),this.cbs.onopentag&&(this.attribs={})}endOpenTag(qa){var nd,od;this.startIndex=this.openTagStart,this.attribs&&((od=(nd=this.cbs).onopentag)===null||od===void 0||od.call(nd,this.tagname,this.attribs,qa),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(qa){this.endIndex=qa,this.endOpenTag(!1),this.startIndex=qa+1}onclosetag(qa,nd){var od,ld,ud,dd,pd,fd,md,vd;this.endIndex=nd;let Ad=this.getSlice(qa,nd);if(this.lowerCaseTagNames&&(Ad=Ad.toLowerCase()),this.htmlMode&&(foreignContextElements.has(Ad)||htmlIntegrationElements.has(Ad))&&this.foreignContext.shift(),this.isVoidElement(Ad))this.htmlMode&&Ad==="br"&&((dd=(ud=this.cbs).onopentagname)===null||dd===void 0||dd.call(ud,"br"),(fd=(pd=this.cbs).onopentag)===null||fd===void 0||fd.call(pd,"br",{},!0),(vd=(md=this.cbs).onclosetag)===null||vd===void 0||vd.call(md,"br",!1));else{const Nd=this.stack.indexOf(Ad);if(Nd!==-1)for(let Od=0;Od<=Nd;Od++){const kd=this.stack.shift();(ld=(od=this.cbs).onclosetag)===null||ld===void 0||ld.call(od,kd,Od!==Nd)}else this.htmlMode&&Ad==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=nd+1}onselfclosingtag(qa){this.endIndex=qa,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=qa+1):this.onopentagend(qa)}closeCurrentTag(qa){var nd,od;const ld=this.tagname;this.endOpenTag(qa),this.stack[0]===ld&&((od=(nd=this.cbs).onclosetag)===null||od===void 0||od.call(nd,ld,!qa),this.stack.shift())}onattribname(qa,nd){this.startIndex=qa;const od=this.getSlice(qa,nd);this.attribname=this.lowerCaseAttributeNames?od.toLowerCase():od}onattribdata(qa,nd){this.attribvalue+=this.getSlice(qa,nd)}onattribentity(qa){this.attribvalue+=fromCodePoint(qa)}onattribend(qa,nd){var od,ld;this.endIndex=nd,(ld=(od=this.cbs).onattribute)===null||ld===void 0||ld.call(od,this.attribname,this.attribvalue,qa===QuoteType.Double?'"':qa===QuoteType.Single?"'":qa===QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(qa){const nd=qa.search(reNameEnd);let od=nd<0?qa:qa.substr(0,nd);return this.lowerCaseTagNames&&(od=od.toLowerCase()),od}ondeclaration(qa,nd){this.endIndex=nd;const od=this.getSlice(qa,nd);if(this.cbs.onprocessinginstruction){const ld=this.getInstructionName(od);this.cbs.onprocessinginstruction(`!${ld}`,`!${od}`)}this.startIndex=nd+1}onprocessinginstruction(qa,nd){this.endIndex=nd;const od=this.getSlice(qa,nd);if(this.cbs.onprocessinginstruction){const ld=this.getInstructionName(od);this.cbs.onprocessinginstruction(`?${ld}`,`?${od}`)}this.startIndex=nd+1}oncomment(qa,nd,od){var ld,ud,dd,pd;this.endIndex=nd,(ud=(ld=this.cbs).oncomment)===null||ud===void 0||ud.call(ld,this.getSlice(qa,nd-od)),(pd=(dd=this.cbs).oncommentend)===null||pd===void 0||pd.call(dd),this.startIndex=nd+1}oncdata(qa,nd,od){var ld,ud,dd,pd,fd,md,vd,Ad,Nd,Od;this.endIndex=nd;const kd=this.getSlice(qa,nd-od);!this.htmlMode||this.options.recognizeCDATA?((ud=(ld=this.cbs).oncdatastart)===null||ud===void 0||ud.call(ld),(pd=(dd=this.cbs).ontext)===null||pd===void 0||pd.call(dd,kd),(md=(fd=this.cbs).oncdataend)===null||md===void 0||md.call(fd)):((Ad=(vd=this.cbs).oncomment)===null||Ad===void 0||Ad.call(vd,`[CDATA[${kd}]]`),(Od=(Nd=this.cbs).oncommentend)===null||Od===void 0||Od.call(Nd)),this.startIndex=nd+1}onend(){var qa,nd;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let od=0;od=this.buffers[0].length;)this.shiftBuffer();let od=this.buffers[0].slice(qa-this.bufferOffset,nd-this.bufferOffset);for(;nd-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),od+=this.buffers[0].slice(0,nd-this.bufferOffset);return od}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(qa){var nd,od;if(this.ended){(od=(nd=this.cbs).onerror)===null||od===void 0||od.call(nd,new Error(".write() after done!"));return}this.buffers.push(qa),this.tokenizer.running&&(this.tokenizer.write(qa),this.writeIndex++)}end(qa){var nd,od;if(this.ended){(od=(nd=this.cbs).onerror)===null||od===void 0||od.call(nd,new Error(".end() after done!"));return}qa&&this.write(qa),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndexqa._useHtmlParser2?parseDocument(Ra,qa):parseWithParse5(Ra,qa,nd,od)),load$3=getLoad(parse$4,(Ra,qa)=>qa._useHtmlParser2?render$3(Ra,qa):renderWithParse5(Ra)),browser$2=Object.freeze(Object.defineProperty({__proto__:null,contains,load:load$3,merge:merge$4},Symbol.toStringTag,{value:"Module"})),require$$0$2=getAugmentedNamespace(browser$2);var utils$4={},lexer={exports:{}},debug={exports:{}};(function(Ra,qa){var nd={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};Ra.exports=od;function od(ud){return ld.bind(null,ud)}function ld(ud){var dd=[].slice.call(arguments,1);dd.unshift("["+ud+"]"),nd.stderr.write(dd.join(" ")+` -`)}})(debug);var debugExports=debug.exports;(function(Ra,qa){debugExports("lex"),Ra.exports=nd;function nd(od){var ld="",ud,dd=0,pd=-1,fd=0,md=1,vd="before-selector",Ad=[vd],Nd={},Od=[],kd=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function Ld(){return yf(),od[pd]}function Gd(If){return If?Ad[Ad.length-1-If]:vd}function Ud(If){var Gf=pd+1;return If===od.slice(Gf,Gf+If.length)}function Fd(If){var Gf=od.slice(pd).indexOf(If);return Gf>0?Gf:!1}function jd(If){return If===qd(1)}function qd(If){return od[pd+(If||1)]}function zd(){var If=Ad.pop();return vd=Ad[Ad.length-1],If}function Yd(If){return vd=If,Ad.push(vd),Ad.length}function Jd(If){var Gf=vd;return Ad[Ad.length-1]=vd=If,Gf}function yf(If){if((If||1)==1)od[pd]==` +`)}}).toArray()}const Forms=Object.freeze(Object.defineProperty({__proto__:null,serialize:serialize$1,serializeArray},Symbol.toStringTag,{value:"Module"}));function getExtractDescr(Ra){var qa;return typeof Ra=="string"?{selector:Ra,value:"textContent"}:{selector:Ra.selector,value:(qa=Ra.value)!==null&&qa!==void 0?qa:"textContent"}}function extract(Ra){const qa={};for(const nd in Ra){const od=Ra[nd],ld=Array.isArray(od),{selector:ud,value:dd}=getExtractDescr(ld?od[0]:od),pd=typeof dd=="function"?dd:typeof dd=="string"?fd=>this._make(fd).prop(dd):fd=>this._make(fd).extract(dd);if(ld)qa[nd]=this._findBySelector(ud,Number.POSITIVE_INFINITY).map((fd,md)=>pd(md,nd,qa)).get();else{const fd=this._findBySelector(ud,1);qa[nd]=fd.length>0?pd(fd[0],nd,qa):void 0}}return qa}const Extract=Object.freeze(Object.defineProperty({__proto__:null,extract},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(qa,nd,od){if(this.length=0,this.options=od,this._root=nd,qa){for(let ld=0;ld=55296&&Ra<=57343}function isSurrogatePair(Ra){return Ra>=56320&&Ra<=57343}function getSurrogatePairCodePoint(Ra,qa){return(Ra-55296)*1024+9216+qa}function isControlCodePoint(Ra){return Ra!==32&&Ra!==10&&Ra!==13&&Ra!==9&&Ra!==12&&Ra>=1&&Ra<=31||Ra>=127&&Ra<=159}function isUndefinedCodePoint(Ra){return Ra>=64976&&Ra<=65007||UNDEFINED_CODE_POINTS.has(Ra)}var ERR;(function(Ra){Ra.controlCharacterInInputStream="control-character-in-input-stream",Ra.noncharacterInInputStream="noncharacter-in-input-stream",Ra.surrogateInInputStream="surrogate-in-input-stream",Ra.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",Ra.endTagWithAttributes="end-tag-with-attributes",Ra.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",Ra.unexpectedSolidusInTag="unexpected-solidus-in-tag",Ra.unexpectedNullCharacter="unexpected-null-character",Ra.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",Ra.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",Ra.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",Ra.missingEndTagName="missing-end-tag-name",Ra.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",Ra.unknownNamedCharacterReference="unknown-named-character-reference",Ra.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",Ra.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",Ra.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",Ra.eofBeforeTagName="eof-before-tag-name",Ra.eofInTag="eof-in-tag",Ra.missingAttributeValue="missing-attribute-value",Ra.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",Ra.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",Ra.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",Ra.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",Ra.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",Ra.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",Ra.missingDoctypePublicIdentifier="missing-doctype-public-identifier",Ra.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",Ra.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",Ra.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",Ra.cdataInHtmlContent="cdata-in-html-content",Ra.incorrectlyOpenedComment="incorrectly-opened-comment",Ra.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",Ra.eofInDoctype="eof-in-doctype",Ra.nestedComment="nested-comment",Ra.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",Ra.eofInComment="eof-in-comment",Ra.incorrectlyClosedComment="incorrectly-closed-comment",Ra.eofInCdata="eof-in-cdata",Ra.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",Ra.nullCharacterReference="null-character-reference",Ra.surrogateCharacterReference="surrogate-character-reference",Ra.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",Ra.controlCharacterReference="control-character-reference",Ra.noncharacterCharacterReference="noncharacter-character-reference",Ra.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",Ra.missingDoctypeName="missing-doctype-name",Ra.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",Ra.duplicateAttribute="duplicate-attribute",Ra.nonConformingDoctype="non-conforming-doctype",Ra.missingDoctype="missing-doctype",Ra.misplacedDoctype="misplaced-doctype",Ra.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",Ra.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",Ra.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",Ra.openElementsLeftAfterEof="open-elements-left-after-eof",Ra.abandonedHeadElementChild="abandoned-head-element-child",Ra.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",Ra.nestedNoscriptInHead="nested-noscript-in-head",Ra.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ERR||(ERR={}));const DEFAULT_BUFFER_WATERLINE=65536;class Preprocessor{constructor(qa){this.handler=qa,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(qa,nd){const{line:od,col:ld,offset:ud}=this,dd=ld+nd,pd=ud+nd;return{code:qa,startLine:od,endLine:od,startCol:dd,endCol:dd,startOffset:pd,endOffset:pd}}_err(qa){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(qa,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(qa){if(this.pos!==this.html.length-1){const nd=this.html.charCodeAt(this.pos+1);if(isSurrogatePair(nd))return this.pos++,this._addGap(),getSurrogatePairCodePoint(qa,nd)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,CODE_POINTS.EOF;return this._err(ERR.surrogateInInputStream),qa}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(qa,nd){this.html.length>0?this.html+=qa:this.html=qa,this.endOfChunkHit=!1,this.lastChunkWritten=nd}insertHtmlAtCurrentPos(qa){this.html=this.html.substring(0,this.pos+1)+qa+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(qa,nd){if(this.pos+qa.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(nd)return this.html.startsWith(qa,this.pos);for(let od=0;od=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;const od=this.html.charCodeAt(nd);return od===CODE_POINTS.CARRIAGE_RETURN?CODE_POINTS.LINE_FEED:od}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;let qa=this.html.charCodeAt(this.pos);return qa===CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,CODE_POINTS.LINE_FEED):qa===CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,isSurrogate(qa)&&(qa=this._processSurrogate(qa)),this.handler.onParseError===null||qa>31&&qa<127||qa===CODE_POINTS.LINE_FEED||qa===CODE_POINTS.CARRIAGE_RETURN||qa>159&&qa<64976||this._checkForProblematicCharacters(qa),qa)}_checkForProblematicCharacters(qa){isControlCodePoint(qa)?this._err(ERR.controlCharacterInInputStream):isUndefinedCodePoint(qa)&&this._err(ERR.noncharacterInInputStream)}retreat(qa){for(this.pos-=qa;this.pos=0;nd--)if(Ra.attrs[nd].name===qa)return Ra.attrs[nd].value;return null}var NS;(function(Ra){Ra.HTML="http://www.w3.org/1999/xhtml",Ra.MATHML="http://www.w3.org/1998/Math/MathML",Ra.SVG="http://www.w3.org/2000/svg",Ra.XLINK="http://www.w3.org/1999/xlink",Ra.XML="http://www.w3.org/XML/1998/namespace",Ra.XMLNS="http://www.w3.org/2000/xmlns/"})(NS||(NS={}));var ATTRS;(function(Ra){Ra.TYPE="type",Ra.ACTION="action",Ra.ENCODING="encoding",Ra.PROMPT="prompt",Ra.NAME="name",Ra.COLOR="color",Ra.FACE="face",Ra.SIZE="size"})(ATTRS||(ATTRS={}));var DOCUMENT_MODE;(function(Ra){Ra.NO_QUIRKS="no-quirks",Ra.QUIRKS="quirks",Ra.LIMITED_QUIRKS="limited-quirks"})(DOCUMENT_MODE||(DOCUMENT_MODE={}));var TAG_NAMES;(function(Ra){Ra.A="a",Ra.ADDRESS="address",Ra.ANNOTATION_XML="annotation-xml",Ra.APPLET="applet",Ra.AREA="area",Ra.ARTICLE="article",Ra.ASIDE="aside",Ra.B="b",Ra.BASE="base",Ra.BASEFONT="basefont",Ra.BGSOUND="bgsound",Ra.BIG="big",Ra.BLOCKQUOTE="blockquote",Ra.BODY="body",Ra.BR="br",Ra.BUTTON="button",Ra.CAPTION="caption",Ra.CENTER="center",Ra.CODE="code",Ra.COL="col",Ra.COLGROUP="colgroup",Ra.DD="dd",Ra.DESC="desc",Ra.DETAILS="details",Ra.DIALOG="dialog",Ra.DIR="dir",Ra.DIV="div",Ra.DL="dl",Ra.DT="dt",Ra.EM="em",Ra.EMBED="embed",Ra.FIELDSET="fieldset",Ra.FIGCAPTION="figcaption",Ra.FIGURE="figure",Ra.FONT="font",Ra.FOOTER="footer",Ra.FOREIGN_OBJECT="foreignObject",Ra.FORM="form",Ra.FRAME="frame",Ra.FRAMESET="frameset",Ra.H1="h1",Ra.H2="h2",Ra.H3="h3",Ra.H4="h4",Ra.H5="h5",Ra.H6="h6",Ra.HEAD="head",Ra.HEADER="header",Ra.HGROUP="hgroup",Ra.HR="hr",Ra.HTML="html",Ra.I="i",Ra.IMG="img",Ra.IMAGE="image",Ra.INPUT="input",Ra.IFRAME="iframe",Ra.KEYGEN="keygen",Ra.LABEL="label",Ra.LI="li",Ra.LINK="link",Ra.LISTING="listing",Ra.MAIN="main",Ra.MALIGNMARK="malignmark",Ra.MARQUEE="marquee",Ra.MATH="math",Ra.MENU="menu",Ra.META="meta",Ra.MGLYPH="mglyph",Ra.MI="mi",Ra.MO="mo",Ra.MN="mn",Ra.MS="ms",Ra.MTEXT="mtext",Ra.NAV="nav",Ra.NOBR="nobr",Ra.NOFRAMES="noframes",Ra.NOEMBED="noembed",Ra.NOSCRIPT="noscript",Ra.OBJECT="object",Ra.OL="ol",Ra.OPTGROUP="optgroup",Ra.OPTION="option",Ra.P="p",Ra.PARAM="param",Ra.PLAINTEXT="plaintext",Ra.PRE="pre",Ra.RB="rb",Ra.RP="rp",Ra.RT="rt",Ra.RTC="rtc",Ra.RUBY="ruby",Ra.S="s",Ra.SCRIPT="script",Ra.SEARCH="search",Ra.SECTION="section",Ra.SELECT="select",Ra.SOURCE="source",Ra.SMALL="small",Ra.SPAN="span",Ra.STRIKE="strike",Ra.STRONG="strong",Ra.STYLE="style",Ra.SUB="sub",Ra.SUMMARY="summary",Ra.SUP="sup",Ra.TABLE="table",Ra.TBODY="tbody",Ra.TEMPLATE="template",Ra.TEXTAREA="textarea",Ra.TFOOT="tfoot",Ra.TD="td",Ra.TH="th",Ra.THEAD="thead",Ra.TITLE="title",Ra.TR="tr",Ra.TRACK="track",Ra.TT="tt",Ra.U="u",Ra.UL="ul",Ra.SVG="svg",Ra.VAR="var",Ra.WBR="wbr",Ra.XMP="xmp"})(TAG_NAMES||(TAG_NAMES={}));var TAG_ID;(function(Ra){Ra[Ra.UNKNOWN=0]="UNKNOWN",Ra[Ra.A=1]="A",Ra[Ra.ADDRESS=2]="ADDRESS",Ra[Ra.ANNOTATION_XML=3]="ANNOTATION_XML",Ra[Ra.APPLET=4]="APPLET",Ra[Ra.AREA=5]="AREA",Ra[Ra.ARTICLE=6]="ARTICLE",Ra[Ra.ASIDE=7]="ASIDE",Ra[Ra.B=8]="B",Ra[Ra.BASE=9]="BASE",Ra[Ra.BASEFONT=10]="BASEFONT",Ra[Ra.BGSOUND=11]="BGSOUND",Ra[Ra.BIG=12]="BIG",Ra[Ra.BLOCKQUOTE=13]="BLOCKQUOTE",Ra[Ra.BODY=14]="BODY",Ra[Ra.BR=15]="BR",Ra[Ra.BUTTON=16]="BUTTON",Ra[Ra.CAPTION=17]="CAPTION",Ra[Ra.CENTER=18]="CENTER",Ra[Ra.CODE=19]="CODE",Ra[Ra.COL=20]="COL",Ra[Ra.COLGROUP=21]="COLGROUP",Ra[Ra.DD=22]="DD",Ra[Ra.DESC=23]="DESC",Ra[Ra.DETAILS=24]="DETAILS",Ra[Ra.DIALOG=25]="DIALOG",Ra[Ra.DIR=26]="DIR",Ra[Ra.DIV=27]="DIV",Ra[Ra.DL=28]="DL",Ra[Ra.DT=29]="DT",Ra[Ra.EM=30]="EM",Ra[Ra.EMBED=31]="EMBED",Ra[Ra.FIELDSET=32]="FIELDSET",Ra[Ra.FIGCAPTION=33]="FIGCAPTION",Ra[Ra.FIGURE=34]="FIGURE",Ra[Ra.FONT=35]="FONT",Ra[Ra.FOOTER=36]="FOOTER",Ra[Ra.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Ra[Ra.FORM=38]="FORM",Ra[Ra.FRAME=39]="FRAME",Ra[Ra.FRAMESET=40]="FRAMESET",Ra[Ra.H1=41]="H1",Ra[Ra.H2=42]="H2",Ra[Ra.H3=43]="H3",Ra[Ra.H4=44]="H4",Ra[Ra.H5=45]="H5",Ra[Ra.H6=46]="H6",Ra[Ra.HEAD=47]="HEAD",Ra[Ra.HEADER=48]="HEADER",Ra[Ra.HGROUP=49]="HGROUP",Ra[Ra.HR=50]="HR",Ra[Ra.HTML=51]="HTML",Ra[Ra.I=52]="I",Ra[Ra.IMG=53]="IMG",Ra[Ra.IMAGE=54]="IMAGE",Ra[Ra.INPUT=55]="INPUT",Ra[Ra.IFRAME=56]="IFRAME",Ra[Ra.KEYGEN=57]="KEYGEN",Ra[Ra.LABEL=58]="LABEL",Ra[Ra.LI=59]="LI",Ra[Ra.LINK=60]="LINK",Ra[Ra.LISTING=61]="LISTING",Ra[Ra.MAIN=62]="MAIN",Ra[Ra.MALIGNMARK=63]="MALIGNMARK",Ra[Ra.MARQUEE=64]="MARQUEE",Ra[Ra.MATH=65]="MATH",Ra[Ra.MENU=66]="MENU",Ra[Ra.META=67]="META",Ra[Ra.MGLYPH=68]="MGLYPH",Ra[Ra.MI=69]="MI",Ra[Ra.MO=70]="MO",Ra[Ra.MN=71]="MN",Ra[Ra.MS=72]="MS",Ra[Ra.MTEXT=73]="MTEXT",Ra[Ra.NAV=74]="NAV",Ra[Ra.NOBR=75]="NOBR",Ra[Ra.NOFRAMES=76]="NOFRAMES",Ra[Ra.NOEMBED=77]="NOEMBED",Ra[Ra.NOSCRIPT=78]="NOSCRIPT",Ra[Ra.OBJECT=79]="OBJECT",Ra[Ra.OL=80]="OL",Ra[Ra.OPTGROUP=81]="OPTGROUP",Ra[Ra.OPTION=82]="OPTION",Ra[Ra.P=83]="P",Ra[Ra.PARAM=84]="PARAM",Ra[Ra.PLAINTEXT=85]="PLAINTEXT",Ra[Ra.PRE=86]="PRE",Ra[Ra.RB=87]="RB",Ra[Ra.RP=88]="RP",Ra[Ra.RT=89]="RT",Ra[Ra.RTC=90]="RTC",Ra[Ra.RUBY=91]="RUBY",Ra[Ra.S=92]="S",Ra[Ra.SCRIPT=93]="SCRIPT",Ra[Ra.SEARCH=94]="SEARCH",Ra[Ra.SECTION=95]="SECTION",Ra[Ra.SELECT=96]="SELECT",Ra[Ra.SOURCE=97]="SOURCE",Ra[Ra.SMALL=98]="SMALL",Ra[Ra.SPAN=99]="SPAN",Ra[Ra.STRIKE=100]="STRIKE",Ra[Ra.STRONG=101]="STRONG",Ra[Ra.STYLE=102]="STYLE",Ra[Ra.SUB=103]="SUB",Ra[Ra.SUMMARY=104]="SUMMARY",Ra[Ra.SUP=105]="SUP",Ra[Ra.TABLE=106]="TABLE",Ra[Ra.TBODY=107]="TBODY",Ra[Ra.TEMPLATE=108]="TEMPLATE",Ra[Ra.TEXTAREA=109]="TEXTAREA",Ra[Ra.TFOOT=110]="TFOOT",Ra[Ra.TD=111]="TD",Ra[Ra.TH=112]="TH",Ra[Ra.THEAD=113]="THEAD",Ra[Ra.TITLE=114]="TITLE",Ra[Ra.TR=115]="TR",Ra[Ra.TRACK=116]="TRACK",Ra[Ra.TT=117]="TT",Ra[Ra.U=118]="U",Ra[Ra.UL=119]="UL",Ra[Ra.SVG=120]="SVG",Ra[Ra.VAR=121]="VAR",Ra[Ra.WBR=122]="WBR",Ra[Ra.XMP=123]="XMP"})(TAG_ID||(TAG_ID={}));const TAG_NAME_TO_ID=new Map([[TAG_NAMES.A,TAG_ID.A],[TAG_NAMES.ADDRESS,TAG_ID.ADDRESS],[TAG_NAMES.ANNOTATION_XML,TAG_ID.ANNOTATION_XML],[TAG_NAMES.APPLET,TAG_ID.APPLET],[TAG_NAMES.AREA,TAG_ID.AREA],[TAG_NAMES.ARTICLE,TAG_ID.ARTICLE],[TAG_NAMES.ASIDE,TAG_ID.ASIDE],[TAG_NAMES.B,TAG_ID.B],[TAG_NAMES.BASE,TAG_ID.BASE],[TAG_NAMES.BASEFONT,TAG_ID.BASEFONT],[TAG_NAMES.BGSOUND,TAG_ID.BGSOUND],[TAG_NAMES.BIG,TAG_ID.BIG],[TAG_NAMES.BLOCKQUOTE,TAG_ID.BLOCKQUOTE],[TAG_NAMES.BODY,TAG_ID.BODY],[TAG_NAMES.BR,TAG_ID.BR],[TAG_NAMES.BUTTON,TAG_ID.BUTTON],[TAG_NAMES.CAPTION,TAG_ID.CAPTION],[TAG_NAMES.CENTER,TAG_ID.CENTER],[TAG_NAMES.CODE,TAG_ID.CODE],[TAG_NAMES.COL,TAG_ID.COL],[TAG_NAMES.COLGROUP,TAG_ID.COLGROUP],[TAG_NAMES.DD,TAG_ID.DD],[TAG_NAMES.DESC,TAG_ID.DESC],[TAG_NAMES.DETAILS,TAG_ID.DETAILS],[TAG_NAMES.DIALOG,TAG_ID.DIALOG],[TAG_NAMES.DIR,TAG_ID.DIR],[TAG_NAMES.DIV,TAG_ID.DIV],[TAG_NAMES.DL,TAG_ID.DL],[TAG_NAMES.DT,TAG_ID.DT],[TAG_NAMES.EM,TAG_ID.EM],[TAG_NAMES.EMBED,TAG_ID.EMBED],[TAG_NAMES.FIELDSET,TAG_ID.FIELDSET],[TAG_NAMES.FIGCAPTION,TAG_ID.FIGCAPTION],[TAG_NAMES.FIGURE,TAG_ID.FIGURE],[TAG_NAMES.FONT,TAG_ID.FONT],[TAG_NAMES.FOOTER,TAG_ID.FOOTER],[TAG_NAMES.FOREIGN_OBJECT,TAG_ID.FOREIGN_OBJECT],[TAG_NAMES.FORM,TAG_ID.FORM],[TAG_NAMES.FRAME,TAG_ID.FRAME],[TAG_NAMES.FRAMESET,TAG_ID.FRAMESET],[TAG_NAMES.H1,TAG_ID.H1],[TAG_NAMES.H2,TAG_ID.H2],[TAG_NAMES.H3,TAG_ID.H3],[TAG_NAMES.H4,TAG_ID.H4],[TAG_NAMES.H5,TAG_ID.H5],[TAG_NAMES.H6,TAG_ID.H6],[TAG_NAMES.HEAD,TAG_ID.HEAD],[TAG_NAMES.HEADER,TAG_ID.HEADER],[TAG_NAMES.HGROUP,TAG_ID.HGROUP],[TAG_NAMES.HR,TAG_ID.HR],[TAG_NAMES.HTML,TAG_ID.HTML],[TAG_NAMES.I,TAG_ID.I],[TAG_NAMES.IMG,TAG_ID.IMG],[TAG_NAMES.IMAGE,TAG_ID.IMAGE],[TAG_NAMES.INPUT,TAG_ID.INPUT],[TAG_NAMES.IFRAME,TAG_ID.IFRAME],[TAG_NAMES.KEYGEN,TAG_ID.KEYGEN],[TAG_NAMES.LABEL,TAG_ID.LABEL],[TAG_NAMES.LI,TAG_ID.LI],[TAG_NAMES.LINK,TAG_ID.LINK],[TAG_NAMES.LISTING,TAG_ID.LISTING],[TAG_NAMES.MAIN,TAG_ID.MAIN],[TAG_NAMES.MALIGNMARK,TAG_ID.MALIGNMARK],[TAG_NAMES.MARQUEE,TAG_ID.MARQUEE],[TAG_NAMES.MATH,TAG_ID.MATH],[TAG_NAMES.MENU,TAG_ID.MENU],[TAG_NAMES.META,TAG_ID.META],[TAG_NAMES.MGLYPH,TAG_ID.MGLYPH],[TAG_NAMES.MI,TAG_ID.MI],[TAG_NAMES.MO,TAG_ID.MO],[TAG_NAMES.MN,TAG_ID.MN],[TAG_NAMES.MS,TAG_ID.MS],[TAG_NAMES.MTEXT,TAG_ID.MTEXT],[TAG_NAMES.NAV,TAG_ID.NAV],[TAG_NAMES.NOBR,TAG_ID.NOBR],[TAG_NAMES.NOFRAMES,TAG_ID.NOFRAMES],[TAG_NAMES.NOEMBED,TAG_ID.NOEMBED],[TAG_NAMES.NOSCRIPT,TAG_ID.NOSCRIPT],[TAG_NAMES.OBJECT,TAG_ID.OBJECT],[TAG_NAMES.OL,TAG_ID.OL],[TAG_NAMES.OPTGROUP,TAG_ID.OPTGROUP],[TAG_NAMES.OPTION,TAG_ID.OPTION],[TAG_NAMES.P,TAG_ID.P],[TAG_NAMES.PARAM,TAG_ID.PARAM],[TAG_NAMES.PLAINTEXT,TAG_ID.PLAINTEXT],[TAG_NAMES.PRE,TAG_ID.PRE],[TAG_NAMES.RB,TAG_ID.RB],[TAG_NAMES.RP,TAG_ID.RP],[TAG_NAMES.RT,TAG_ID.RT],[TAG_NAMES.RTC,TAG_ID.RTC],[TAG_NAMES.RUBY,TAG_ID.RUBY],[TAG_NAMES.S,TAG_ID.S],[TAG_NAMES.SCRIPT,TAG_ID.SCRIPT],[TAG_NAMES.SEARCH,TAG_ID.SEARCH],[TAG_NAMES.SECTION,TAG_ID.SECTION],[TAG_NAMES.SELECT,TAG_ID.SELECT],[TAG_NAMES.SOURCE,TAG_ID.SOURCE],[TAG_NAMES.SMALL,TAG_ID.SMALL],[TAG_NAMES.SPAN,TAG_ID.SPAN],[TAG_NAMES.STRIKE,TAG_ID.STRIKE],[TAG_NAMES.STRONG,TAG_ID.STRONG],[TAG_NAMES.STYLE,TAG_ID.STYLE],[TAG_NAMES.SUB,TAG_ID.SUB],[TAG_NAMES.SUMMARY,TAG_ID.SUMMARY],[TAG_NAMES.SUP,TAG_ID.SUP],[TAG_NAMES.TABLE,TAG_ID.TABLE],[TAG_NAMES.TBODY,TAG_ID.TBODY],[TAG_NAMES.TEMPLATE,TAG_ID.TEMPLATE],[TAG_NAMES.TEXTAREA,TAG_ID.TEXTAREA],[TAG_NAMES.TFOOT,TAG_ID.TFOOT],[TAG_NAMES.TD,TAG_ID.TD],[TAG_NAMES.TH,TAG_ID.TH],[TAG_NAMES.THEAD,TAG_ID.THEAD],[TAG_NAMES.TITLE,TAG_ID.TITLE],[TAG_NAMES.TR,TAG_ID.TR],[TAG_NAMES.TRACK,TAG_ID.TRACK],[TAG_NAMES.TT,TAG_ID.TT],[TAG_NAMES.U,TAG_ID.U],[TAG_NAMES.UL,TAG_ID.UL],[TAG_NAMES.SVG,TAG_ID.SVG],[TAG_NAMES.VAR,TAG_ID.VAR],[TAG_NAMES.WBR,TAG_ID.WBR],[TAG_NAMES.XMP,TAG_ID.XMP]]);function getTagID(Ra){var qa;return(qa=TAG_NAME_TO_ID.get(Ra))!==null&&qa!==void 0?qa:TAG_ID.UNKNOWN}const $$4=TAG_ID,SPECIAL_ELEMENTS={[NS.HTML]:new Set([$$4.ADDRESS,$$4.APPLET,$$4.AREA,$$4.ARTICLE,$$4.ASIDE,$$4.BASE,$$4.BASEFONT,$$4.BGSOUND,$$4.BLOCKQUOTE,$$4.BODY,$$4.BR,$$4.BUTTON,$$4.CAPTION,$$4.CENTER,$$4.COL,$$4.COLGROUP,$$4.DD,$$4.DETAILS,$$4.DIR,$$4.DIV,$$4.DL,$$4.DT,$$4.EMBED,$$4.FIELDSET,$$4.FIGCAPTION,$$4.FIGURE,$$4.FOOTER,$$4.FORM,$$4.FRAME,$$4.FRAMESET,$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6,$$4.HEAD,$$4.HEADER,$$4.HGROUP,$$4.HR,$$4.HTML,$$4.IFRAME,$$4.IMG,$$4.INPUT,$$4.LI,$$4.LINK,$$4.LISTING,$$4.MAIN,$$4.MARQUEE,$$4.MENU,$$4.META,$$4.NAV,$$4.NOEMBED,$$4.NOFRAMES,$$4.NOSCRIPT,$$4.OBJECT,$$4.OL,$$4.P,$$4.PARAM,$$4.PLAINTEXT,$$4.PRE,$$4.SCRIPT,$$4.SECTION,$$4.SELECT,$$4.SOURCE,$$4.STYLE,$$4.SUMMARY,$$4.TABLE,$$4.TBODY,$$4.TD,$$4.TEMPLATE,$$4.TEXTAREA,$$4.TFOOT,$$4.TH,$$4.THEAD,$$4.TITLE,$$4.TR,$$4.TRACK,$$4.UL,$$4.WBR,$$4.XMP]),[NS.MATHML]:new Set([$$4.MI,$$4.MO,$$4.MN,$$4.MS,$$4.MTEXT,$$4.ANNOTATION_XML]),[NS.SVG]:new Set([$$4.TITLE,$$4.FOREIGN_OBJECT,$$4.DESC]),[NS.XLINK]:new Set,[NS.XML]:new Set,[NS.XMLNS]:new Set},NUMBERED_HEADERS=new Set([$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6]),UNESCAPED_TEXT=new Set([TAG_NAMES.STYLE,TAG_NAMES.SCRIPT,TAG_NAMES.XMP,TAG_NAMES.IFRAME,TAG_NAMES.NOEMBED,TAG_NAMES.NOFRAMES,TAG_NAMES.PLAINTEXT]);function hasUnescapedText(Ra,qa){return UNESCAPED_TEXT.has(Ra)||qa&&Ra===TAG_NAMES.NOSCRIPT}var State$5;(function(Ra){Ra[Ra.DATA=0]="DATA",Ra[Ra.RCDATA=1]="RCDATA",Ra[Ra.RAWTEXT=2]="RAWTEXT",Ra[Ra.SCRIPT_DATA=3]="SCRIPT_DATA",Ra[Ra.PLAINTEXT=4]="PLAINTEXT",Ra[Ra.TAG_OPEN=5]="TAG_OPEN",Ra[Ra.END_TAG_OPEN=6]="END_TAG_OPEN",Ra[Ra.TAG_NAME=7]="TAG_NAME",Ra[Ra.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",Ra[Ra.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",Ra[Ra.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",Ra[Ra.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",Ra[Ra.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",Ra[Ra.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",Ra[Ra.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",Ra[Ra.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",Ra[Ra.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",Ra[Ra.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",Ra[Ra.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",Ra[Ra.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",Ra[Ra.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",Ra[Ra.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",Ra[Ra.BOGUS_COMMENT=40]="BOGUS_COMMENT",Ra[Ra.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",Ra[Ra.COMMENT_START=42]="COMMENT_START",Ra[Ra.COMMENT_START_DASH=43]="COMMENT_START_DASH",Ra[Ra.COMMENT=44]="COMMENT",Ra[Ra.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",Ra[Ra.COMMENT_END_DASH=49]="COMMENT_END_DASH",Ra[Ra.COMMENT_END=50]="COMMENT_END",Ra[Ra.COMMENT_END_BANG=51]="COMMENT_END_BANG",Ra[Ra.DOCTYPE=52]="DOCTYPE",Ra[Ra.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",Ra[Ra.DOCTYPE_NAME=54]="DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",Ra[Ra.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Ra[Ra.CDATA_SECTION=68]="CDATA_SECTION",Ra[Ra.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",Ra[Ra.CDATA_SECTION_END=70]="CDATA_SECTION_END",Ra[Ra.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",Ra[Ra.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(State$5||(State$5={}));const TokenizerMode={DATA:State$5.DATA,RCDATA:State$5.RCDATA,RAWTEXT:State$5.RAWTEXT,SCRIPT_DATA:State$5.SCRIPT_DATA,PLAINTEXT:State$5.PLAINTEXT,CDATA_SECTION:State$5.CDATA_SECTION};function isAsciiDigit(Ra){return Ra>=CODE_POINTS.DIGIT_0&&Ra<=CODE_POINTS.DIGIT_9}function isAsciiUpper(Ra){return Ra>=CODE_POINTS.LATIN_CAPITAL_A&&Ra<=CODE_POINTS.LATIN_CAPITAL_Z}function isAsciiLower(Ra){return Ra>=CODE_POINTS.LATIN_SMALL_A&&Ra<=CODE_POINTS.LATIN_SMALL_Z}function isAsciiLetter(Ra){return isAsciiLower(Ra)||isAsciiUpper(Ra)}function isAsciiAlphaNumeric(Ra){return isAsciiLetter(Ra)||isAsciiDigit(Ra)}function toAsciiLower(Ra){return Ra+32}function isWhitespace$3(Ra){return Ra===CODE_POINTS.SPACE||Ra===CODE_POINTS.LINE_FEED||Ra===CODE_POINTS.TABULATION||Ra===CODE_POINTS.FORM_FEED}function isScriptDataDoubleEscapeSequenceEnd(Ra){return isWhitespace$3(Ra)||Ra===CODE_POINTS.SOLIDUS||Ra===CODE_POINTS.GREATER_THAN_SIGN}function getErrorForNumericCharacterReference(Ra){return Ra===CODE_POINTS.NULL?ERR.nullCharacterReference:Ra>1114111?ERR.characterReferenceOutsideUnicodeRange:isSurrogate(Ra)?ERR.surrogateCharacterReference:isUndefinedCodePoint(Ra)?ERR.noncharacterCharacterReference:isControlCodePoint(Ra)||Ra===CODE_POINTS.CARRIAGE_RETURN?ERR.controlCharacterReference:null}let Tokenizer$1=class{constructor(qa,nd){this.options=qa,this.handler=nd,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=State$5.DATA,this.returnState=State$5.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Preprocessor(nd),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new EntityDecoder(htmlDecodeTree,(od,ld)=>{this.preprocessor.pos=this.entityStartPos+ld-1,this._flushCodePointConsumedAsCharacterReference(od)},nd.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ERR.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:od=>{this._err(ERR.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+od)},validateNumericCharacterReference:od=>{const ld=getErrorForNumericCharacterReference(od);ld&&this._err(ld,1)}}:void 0)}_err(qa,nd=0){var od,ld;(ld=(od=this.handler).onParseError)===null||ld===void 0||ld.call(od,this.preprocessor.getError(qa,nd))}getCurrentLocation(qa){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-qa,startOffset:this.preprocessor.offset-qa,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const qa=this._consume();this._ensureHibernation()||this._callState(qa)}this.inLoop=!1}}pause(){this.paused=!0}resume(qa){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||qa==null||qa())}write(qa,nd,od){this.active=!0,this.preprocessor.write(qa,nd),this._runParsingLoop(),this.paused||od==null||od()}insertHtmlAtCurrentPos(qa){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(qa),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(qa){this.consumedAfterSnapshot+=qa;for(let nd=0;nd0&&this._err(ERR.endTagWithAttributes),qa.selfClosing&&this._err(ERR.endTagWithTrailingSolidus),this.handler.onEndTag(qa)),this.preprocessor.dropParsedChunk()}emitCurrentComment(qa){this.prepareToken(qa),this.handler.onComment(qa),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(qa){this.prepareToken(qa),this.handler.onDoctype(qa),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(qa){if(this.currentCharacterToken){switch(qa&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=qa.startLine,this.currentCharacterToken.location.endCol=qa.startCol,this.currentCharacterToken.location.endOffset=qa.startOffset),this.currentCharacterToken.type){case TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case TokenType.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const qa=this.getCurrentLocation(0);qa&&(qa.endLine=qa.startLine,qa.endCol=qa.startCol,qa.endOffset=qa.startOffset),this._emitCurrentCharacterToken(qa),this.handler.onEof({type:TokenType.EOF,location:qa}),this.active=!1}_appendCharToCurrentCharacterToken(qa,nd){if(this.currentCharacterToken)if(this.currentCharacterToken.type===qa){this.currentCharacterToken.chars+=nd;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(qa,nd)}_emitCodePoint(qa){const nd=isWhitespace$3(qa)?TokenType.WHITESPACE_CHARACTER:qa===CODE_POINTS.NULL?TokenType.NULL_CHARACTER:TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(nd,String.fromCodePoint(qa))}_emitChars(qa){this._appendCharToCurrentCharacterToken(TokenType.CHARACTER,qa)}_startCharacterReference(){this.returnState=this.state,this.state=State$5.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?DecodingMode.Attribute:DecodingMode.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(qa){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(qa):this._emitCodePoint(qa)}_callState(qa){switch(this.state){case State$5.DATA:{this._stateData(qa);break}case State$5.RCDATA:{this._stateRcdata(qa);break}case State$5.RAWTEXT:{this._stateRawtext(qa);break}case State$5.SCRIPT_DATA:{this._stateScriptData(qa);break}case State$5.PLAINTEXT:{this._statePlaintext(qa);break}case State$5.TAG_OPEN:{this._stateTagOpen(qa);break}case State$5.END_TAG_OPEN:{this._stateEndTagOpen(qa);break}case State$5.TAG_NAME:{this._stateTagName(qa);break}case State$5.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(qa);break}case State$5.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(qa);break}case State$5.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(qa);break}case State$5.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(qa);break}case State$5.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(qa);break}case State$5.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(qa);break}case State$5.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(qa);break}case State$5.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(qa);break}case State$5.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(qa);break}case State$5.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(qa);break}case State$5.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(qa);break}case State$5.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(qa);break}case State$5.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(qa);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(qa);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(qa);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(qa);break}case State$5.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(qa);break}case State$5.ATTRIBUTE_NAME:{this._stateAttributeName(qa);break}case State$5.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(qa);break}case State$5.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(qa);break}case State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(qa);break}case State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(qa);break}case State$5.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(qa);break}case State$5.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(qa);break}case State$5.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(qa);break}case State$5.BOGUS_COMMENT:{this._stateBogusComment(qa);break}case State$5.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(qa);break}case State$5.COMMENT_START:{this._stateCommentStart(qa);break}case State$5.COMMENT_START_DASH:{this._stateCommentStartDash(qa);break}case State$5.COMMENT:{this._stateComment(qa);break}case State$5.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(qa);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(qa);break}case State$5.COMMENT_END_DASH:{this._stateCommentEndDash(qa);break}case State$5.COMMENT_END:{this._stateCommentEnd(qa);break}case State$5.COMMENT_END_BANG:{this._stateCommentEndBang(qa);break}case State$5.DOCTYPE:{this._stateDoctype(qa);break}case State$5.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(qa);break}case State$5.DOCTYPE_NAME:{this._stateDoctypeName(qa);break}case State$5.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(qa);break}case State$5.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(qa);break}case State$5.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(qa);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(qa);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(qa);break}case State$5.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(qa);break}case State$5.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(qa);break}case State$5.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(qa);break}case State$5.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(qa);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(qa);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(qa);break}case State$5.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(qa);break}case State$5.BOGUS_DOCTYPE:{this._stateBogusDoctype(qa);break}case State$5.CDATA_SECTION:{this._stateCdataSection(qa);break}case State$5.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(qa);break}case State$5.CDATA_SECTION_END:{this._stateCdataSectionEnd(qa);break}case State$5.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case State$5.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(qa);break}default:throw new Error("Unknown state")}}_stateData(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.TAG_OPEN;break}case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitCodePoint(qa);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateRcdata(qa){switch(qa){case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RCDATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateRawtext(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RAWTEXT_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateScriptData(qa){switch(qa){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.SCRIPT_DATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_statePlaintext(qa){switch(qa){case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(qa)}}_stateTagOpen(qa){if(isAsciiLetter(qa))this._createStartTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(qa);else switch(qa){case CODE_POINTS.EXCLAMATION_MARK:{this.state=State$5.MARKUP_DECLARATION_OPEN;break}case CODE_POINTS.SOLIDUS:{this.state=State$5.END_TAG_OPEN;break}case CODE_POINTS.QUESTION_MARK:{this._err(ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=State$5.BOGUS_COMMENT,this._stateBogusComment(qa);break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=State$5.DATA,this._stateData(qa)}}_stateEndTagOpen(qa){if(isAsciiLetter(qa))this._createEndTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(qa);else switch(qa){case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingEndTagName),this.state=State$5.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitCodePoint(qa)}}_stateScriptDataEscapedLessThanSign(qa){qa===CODE_POINTS.SOLIDUS?this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:isAsciiLetter(qa)?(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(qa)):(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(qa))}_stateScriptDataEscapedEndTagOpen(qa){isAsciiLetter(qa)?(this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(qa)):(this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(qa)}}_stateScriptDataDoubleEscapedLessThanSign(qa){qa===CODE_POINTS.SOLIDUS?(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(qa))}_stateScriptDataDoubleEscapeEnd(qa){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(qa);for(let nd=0;nd0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(qa,!0)}replace(qa,nd){const od=this._indexOf(qa);this.items[od]=nd,od===this.stackTop&&(this.current=nd)}insertAfter(qa,nd,od){const ld=this._indexOf(qa)+1;this.items.splice(ld,0,nd),this.tagIDs.splice(ld,0,od),this.stackTop++,ld===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,ld===this.stackTop)}popUntilTagNamePopped(qa){let nd=this.stackTop+1;do nd=this.tagIDs.lastIndexOf(qa,nd-1);while(nd>0&&this.treeAdapter.getNamespaceURI(this.items[nd])!==NS.HTML);this.shortenToLength(nd<0?0:nd)}shortenToLength(qa){for(;this.stackTop>=qa;){const nd=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(nd,this.stackTop=0;od--)if(qa.has(this.tagIDs[od])&&this.treeAdapter.getNamespaceURI(this.items[od])===nd)return od;return-1}clearBackTo(qa,nd){const od=this._indexOfTagNames(qa,nd);this.shortenToLength(od+1)}clearBackToTableContext(){this.clearBackTo(TABLE_CONTEXT,NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TABLE_BODY_CONTEXT,NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(TABLE_ROW_CONTEXT,NS.HTML)}remove(qa){const nd=this._indexOf(qa);nd>=0&&(nd===this.stackTop?this.pop():(this.items.splice(nd,1),this.tagIDs.splice(nd,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(qa,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===TAG_ID.BODY?this.items[1]:null}contains(qa){return this._indexOf(qa)>-1}getCommonAncestor(qa){const nd=this._indexOf(qa)-1;return nd>=0?this.items[nd]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===TAG_ID.HTML}hasInDynamicScope(qa,nd){for(let od=this.stackTop;od>=0;od--){const ld=this.tagIDs[od];switch(this.treeAdapter.getNamespaceURI(this.items[od])){case NS.HTML:{if(ld===qa)return!0;if(nd.has(ld))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(ld))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(ld))return!1;break}}}return!0}hasInScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML)}hasInListItemScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML_LIST)}hasInButtonScope(qa){return this.hasInDynamicScope(qa,SCOPING_ELEMENTS_HTML_BUTTON)}hasNumberedHeaderInScope(){for(let qa=this.stackTop;qa>=0;qa--){const nd=this.tagIDs[qa];switch(this.treeAdapter.getNamespaceURI(this.items[qa])){case NS.HTML:{if(NUMBERED_HEADERS.has(nd))return!0;if(SCOPING_ELEMENTS_HTML.has(nd))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(nd))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(nd))return!1;break}}}return!0}hasInTableScope(qa){for(let nd=this.stackTop;nd>=0;nd--)if(this.treeAdapter.getNamespaceURI(this.items[nd])===NS.HTML)switch(this.tagIDs[nd]){case qa:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let qa=this.stackTop;qa>=0;qa--)if(this.treeAdapter.getNamespaceURI(this.items[qa])===NS.HTML)switch(this.tagIDs[qa]){case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasInSelectScope(qa){for(let nd=this.stackTop;nd>=0;nd--)if(this.treeAdapter.getNamespaceURI(this.items[nd])===NS.HTML)switch(this.tagIDs[nd]){case qa:return!0;case TAG_ID.OPTION:case TAG_ID.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(qa){for(;this.currentTagId!==qa&&IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}}const NOAH_ARK_CAPACITY=3;var EntryType;(function(Ra){Ra[Ra.Marker=0]="Marker",Ra[Ra.Element=1]="Element"})(EntryType||(EntryType={}));const MARKER={type:EntryType.Marker};class FormattingElementList{constructor(qa){this.treeAdapter=qa,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(qa,nd){const od=[],ld=nd.length,ud=this.treeAdapter.getTagName(qa),dd=this.treeAdapter.getNamespaceURI(qa);for(let pd=0;pd[dd.name,dd.value]));let ud=0;for(let dd=0;ddld.get(fd.name)===fd.value)&&(ud+=1,ud>=NOAH_ARK_CAPACITY&&this.entries.splice(pd.idx,1))}}insertMarker(){this.entries.unshift(MARKER)}pushElement(qa,nd){this._ensureNoahArkCondition(qa),this.entries.unshift({type:EntryType.Element,element:qa,token:nd})}insertElementAfterBookmark(qa,nd){const od=this.entries.indexOf(this.bookmark);this.entries.splice(od,0,{type:EntryType.Element,element:qa,token:nd})}removeEntry(qa){const nd=this.entries.indexOf(qa);nd>=0&&this.entries.splice(nd,1)}clearToLastMarker(){const qa=this.entries.indexOf(MARKER);qa>=0?this.entries.splice(0,qa+1):this.entries.length=0}getElementEntryInScopeWithTagName(qa){const nd=this.entries.find(od=>od.type===EntryType.Marker||this.treeAdapter.getTagName(od.element)===qa);return nd&&nd.type===EntryType.Element?nd:null}getElementEntry(qa){return this.entries.find(nd=>nd.type===EntryType.Element&&nd.element===qa)}}const defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(Ra,qa,nd){return{nodeName:Ra,tagName:Ra,attrs:nd,namespaceURI:qa,childNodes:[],parentNode:null}},createCommentNode(Ra){return{nodeName:"#comment",data:Ra,parentNode:null}},createTextNode(Ra){return{nodeName:"#text",value:Ra,parentNode:null}},appendChild(Ra,qa){Ra.childNodes.push(qa),qa.parentNode=Ra},insertBefore(Ra,qa,nd){const od=Ra.childNodes.indexOf(nd);Ra.childNodes.splice(od,0,qa),qa.parentNode=Ra},setTemplateContent(Ra,qa){Ra.content=qa},getTemplateContent(Ra){return Ra.content},setDocumentType(Ra,qa,nd,od){const ld=Ra.childNodes.find(ud=>ud.nodeName==="#documentType");if(ld)ld.name=qa,ld.publicId=nd,ld.systemId=od;else{const ud={nodeName:"#documentType",name:qa,publicId:nd,systemId:od,parentNode:null};defaultTreeAdapter.appendChild(Ra,ud)}},setDocumentMode(Ra,qa){Ra.mode=qa},getDocumentMode(Ra){return Ra.mode},detachNode(Ra){if(Ra.parentNode){const qa=Ra.parentNode.childNodes.indexOf(Ra);Ra.parentNode.childNodes.splice(qa,1),Ra.parentNode=null}},insertText(Ra,qa){if(Ra.childNodes.length>0){const nd=Ra.childNodes[Ra.childNodes.length-1];if(defaultTreeAdapter.isTextNode(nd)){nd.value+=qa;return}}defaultTreeAdapter.appendChild(Ra,defaultTreeAdapter.createTextNode(qa))},insertTextBefore(Ra,qa,nd){const od=Ra.childNodes[Ra.childNodes.indexOf(nd)-1];od&&defaultTreeAdapter.isTextNode(od)?od.value+=qa:defaultTreeAdapter.insertBefore(Ra,defaultTreeAdapter.createTextNode(qa),nd)},adoptAttributes(Ra,qa){const nd=new Set(Ra.attrs.map(od=>od.name));for(let od=0;odRa.startsWith(nd))}function isConforming(Ra){return Ra.name===VALID_DOCTYPE_NAME&&Ra.publicId===null&&(Ra.systemId===null||Ra.systemId===VALID_SYSTEM_ID)}function getDocumentMode(Ra){if(Ra.name!==VALID_DOCTYPE_NAME)return DOCUMENT_MODE.QUIRKS;const{systemId:qa}=Ra;if(qa&&qa.toLowerCase()===QUIRKS_MODE_SYSTEM_ID)return DOCUMENT_MODE.QUIRKS;let{publicId:nd}=Ra;if(nd!==null){if(nd=nd.toLowerCase(),QUIRKS_MODE_PUBLIC_IDS.has(nd))return DOCUMENT_MODE.QUIRKS;let od=qa===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(nd,od))return DOCUMENT_MODE.QUIRKS;if(od=qa===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(nd,od))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}const MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(Ra=>[Ra.toLowerCase(),Ra])),XML_ATTRS_ADJUSTMENT_MAP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:NS.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:NS.XMLNS}]]),SVG_TAG_NAMES_ADJUSTMENT_MAP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(Ra=>[Ra.toLowerCase(),Ra])),EXITS_FOREIGN_CONTENT=new Set([TAG_ID.B,TAG_ID.BIG,TAG_ID.BLOCKQUOTE,TAG_ID.BODY,TAG_ID.BR,TAG_ID.CENTER,TAG_ID.CODE,TAG_ID.DD,TAG_ID.DIV,TAG_ID.DL,TAG_ID.DT,TAG_ID.EM,TAG_ID.EMBED,TAG_ID.H1,TAG_ID.H2,TAG_ID.H3,TAG_ID.H4,TAG_ID.H5,TAG_ID.H6,TAG_ID.HEAD,TAG_ID.HR,TAG_ID.I,TAG_ID.IMG,TAG_ID.LI,TAG_ID.LISTING,TAG_ID.MENU,TAG_ID.META,TAG_ID.NOBR,TAG_ID.OL,TAG_ID.P,TAG_ID.PRE,TAG_ID.RUBY,TAG_ID.S,TAG_ID.SMALL,TAG_ID.SPAN,TAG_ID.STRONG,TAG_ID.STRIKE,TAG_ID.SUB,TAG_ID.SUP,TAG_ID.TABLE,TAG_ID.TT,TAG_ID.U,TAG_ID.UL,TAG_ID.VAR]);function causesExit(Ra){const qa=Ra.tagID;return qa===TAG_ID.FONT&&Ra.attrs.some(({name:od})=>od===ATTRS.COLOR||od===ATTRS.SIZE||od===ATTRS.FACE)||EXITS_FOREIGN_CONTENT.has(qa)}function adjustTokenMathMLAttrs(Ra){for(let qa=0;qa0&&this._setContextModes(qa,nd)}onItemPop(qa,nd){var od,ld;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(qa,this.currentToken),(ld=(od=this.treeAdapter).onItemPop)===null||ld===void 0||ld.call(od,qa,this.openElements.current),nd){let ud,dd;this.openElements.stackTop===0&&this.fragmentContext?(ud=this.fragmentContext,dd=this.fragmentContextID):{current:ud,currentTagId:dd}=this.openElements,this._setContextModes(ud,dd)}}_setContextModes(qa,nd){const od=qa===this.document||this.treeAdapter.getNamespaceURI(qa)===NS.HTML;this.currentNotInHTML=!od,this.tokenizer.inForeignNode=!od&&!this._isIntegrationPoint(nd,qa)}_switchToTextParsing(qa,nd){this._insertElement(qa,NS.HTML),this.tokenizer.state=nd,this.originalInsertionMode=this.insertionMode,this.insertionMode=InsertionMode.TEXT}switchToPlaintextParsing(){this.insertionMode=InsertionMode.TEXT,this.originalInsertionMode=InsertionMode.IN_BODY,this.tokenizer.state=TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let qa=this.fragmentContext;for(;qa;){if(this.treeAdapter.getTagName(qa)===TAG_NAMES.FORM){this.formElement=qa;break}qa=this.treeAdapter.getParentNode(qa)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==NS.HTML))switch(this.fragmentContextID){case TAG_ID.TITLE:case TAG_ID.TEXTAREA:{this.tokenizer.state=TokenizerMode.RCDATA;break}case TAG_ID.STYLE:case TAG_ID.XMP:case TAG_ID.IFRAME:case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:case TAG_ID.NOSCRIPT:{this.tokenizer.state=TokenizerMode.RAWTEXT;break}case TAG_ID.SCRIPT:{this.tokenizer.state=TokenizerMode.SCRIPT_DATA;break}case TAG_ID.PLAINTEXT:{this.tokenizer.state=TokenizerMode.PLAINTEXT;break}}}_setDocumentType(qa){const nd=qa.name||"",od=qa.publicId||"",ld=qa.systemId||"";if(this.treeAdapter.setDocumentType(this.document,nd,od,ld),qa.location){const dd=this.treeAdapter.getChildNodes(this.document).find(pd=>this.treeAdapter.isDocumentTypeNode(pd));dd&&this.treeAdapter.setNodeSourceCodeLocation(dd,qa.location)}}_attachElementToTree(qa,nd){if(this.options.sourceCodeLocationInfo){const od=nd&&{...nd,startTag:nd};this.treeAdapter.setNodeSourceCodeLocation(qa,od)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(qa);else{const od=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(od,qa)}}_appendElement(qa,nd){const od=this.treeAdapter.createElement(qa.tagName,nd,qa.attrs);this._attachElementToTree(od,qa.location)}_insertElement(qa,nd){const od=this.treeAdapter.createElement(qa.tagName,nd,qa.attrs);this._attachElementToTree(od,qa.location),this.openElements.push(od,qa.tagID)}_insertFakeElement(qa,nd){const od=this.treeAdapter.createElement(qa,NS.HTML,[]);this._attachElementToTree(od,null),this.openElements.push(od,nd)}_insertTemplate(qa){const nd=this.treeAdapter.createElement(qa.tagName,NS.HTML,qa.attrs),od=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(nd,od),this._attachElementToTree(nd,qa.location),this.openElements.push(nd,qa.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(od,null)}_insertFakeRootElement(){const qa=this.treeAdapter.createElement(TAG_NAMES.HTML,NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(qa,null),this.treeAdapter.appendChild(this.openElements.current,qa),this.openElements.push(qa,TAG_ID.HTML)}_appendCommentNode(qa,nd){const od=this.treeAdapter.createCommentNode(qa.data);this.treeAdapter.appendChild(nd,od),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(od,qa.location)}_insertCharacters(qa){let nd,od;if(this._shouldFosterParentOnInsertion()?({parent:nd,beforeElement:od}=this._findFosterParentingLocation(),od?this.treeAdapter.insertTextBefore(nd,qa.chars,od):this.treeAdapter.insertText(nd,qa.chars)):(nd=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(nd,qa.chars)),!qa.location)return;const ld=this.treeAdapter.getChildNodes(nd),ud=od?ld.lastIndexOf(od):ld.length,dd=ld[ud-1];if(this.treeAdapter.getNodeSourceCodeLocation(dd)){const{endLine:fd,endCol:md,endOffset:vd}=qa.location;this.treeAdapter.updateNodeSourceCodeLocation(dd,{endLine:fd,endCol:md,endOffset:vd})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(dd,qa.location)}_adoptNodes(qa,nd){for(let od=this.treeAdapter.getFirstChild(qa);od;od=this.treeAdapter.getFirstChild(qa))this.treeAdapter.detachNode(od),this.treeAdapter.appendChild(nd,od)}_setEndLocation(qa,nd){if(this.treeAdapter.getNodeSourceCodeLocation(qa)&&nd.location){const od=nd.location,ld=this.treeAdapter.getTagName(qa),ud=nd.type===TokenType.END_TAG&&ld===nd.tagName?{endTag:{...od},endLine:od.endLine,endCol:od.endCol,endOffset:od.endOffset}:{endLine:od.startLine,endCol:od.startCol,endOffset:od.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(qa,ud)}}shouldProcessStartTagTokenInForeignContent(qa){if(!this.currentNotInHTML)return!1;let nd,od;return this.openElements.stackTop===0&&this.fragmentContext?(nd=this.fragmentContext,od=this.fragmentContextID):{current:nd,currentTagId:od}=this.openElements,qa.tagID===TAG_ID.SVG&&this.treeAdapter.getTagName(nd)===TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(nd)===NS.MATHML?!1:this.tokenizer.inForeignNode||(qa.tagID===TAG_ID.MGLYPH||qa.tagID===TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(od,nd,NS.HTML)}_processToken(qa){switch(qa.type){case TokenType.CHARACTER:{this.onCharacter(qa);break}case TokenType.NULL_CHARACTER:{this.onNullCharacter(qa);break}case TokenType.COMMENT:{this.onComment(qa);break}case TokenType.DOCTYPE:{this.onDoctype(qa);break}case TokenType.START_TAG:{this._processStartTag(qa);break}case TokenType.END_TAG:{this.onEndTag(qa);break}case TokenType.EOF:{this.onEof(qa);break}case TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(qa);break}}}_isIntegrationPoint(qa,nd,od){const ld=this.treeAdapter.getNamespaceURI(nd),ud=this.treeAdapter.getAttrList(nd);return isIntegrationPoint(qa,ld,ud,od)}_reconstructActiveFormattingElements(){const qa=this.activeFormattingElements.entries.length;if(qa){const nd=this.activeFormattingElements.entries.findIndex(ld=>ld.type===EntryType.Marker||this.openElements.contains(ld.element)),od=nd<0?qa-1:nd-1;for(let ld=od;ld>=0;ld--){const ud=this.activeFormattingElements.entries[ld];this._insertElement(ud.token,this.treeAdapter.getNamespaceURI(ud.element)),ud.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=InsertionMode.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.P),this.openElements.popUntilTagNamePopped(TAG_ID.P)}_resetInsertionMode(){for(let qa=this.openElements.stackTop;qa>=0;qa--)switch(qa===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[qa]){case TAG_ID.TR:{this.insertionMode=InsertionMode.IN_ROW;return}case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:{this.insertionMode=InsertionMode.IN_TABLE_BODY;return}case TAG_ID.CAPTION:{this.insertionMode=InsertionMode.IN_CAPTION;return}case TAG_ID.COLGROUP:{this.insertionMode=InsertionMode.IN_COLUMN_GROUP;return}case TAG_ID.TABLE:{this.insertionMode=InsertionMode.IN_TABLE;return}case TAG_ID.BODY:{this.insertionMode=InsertionMode.IN_BODY;return}case TAG_ID.FRAMESET:{this.insertionMode=InsertionMode.IN_FRAMESET;return}case TAG_ID.SELECT:{this._resetInsertionModeForSelect(qa);return}case TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case TAG_ID.HTML:{this.insertionMode=this.headElement?InsertionMode.AFTER_HEAD:InsertionMode.BEFORE_HEAD;return}case TAG_ID.TD:case TAG_ID.TH:{if(qa>0){this.insertionMode=InsertionMode.IN_CELL;return}break}case TAG_ID.HEAD:{if(qa>0){this.insertionMode=InsertionMode.IN_HEAD;return}break}}this.insertionMode=InsertionMode.IN_BODY}_resetInsertionModeForSelect(qa){if(qa>0)for(let nd=qa-1;nd>0;nd--){const od=this.openElements.tagIDs[nd];if(od===TAG_ID.TEMPLATE)break;if(od===TAG_ID.TABLE){this.insertionMode=InsertionMode.IN_SELECT_IN_TABLE;return}}this.insertionMode=InsertionMode.IN_SELECT}_isElementCausesFosterParenting(qa){return TABLE_STRUCTURE_TAGS.has(qa)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let qa=this.openElements.stackTop;qa>=0;qa--){const nd=this.openElements.items[qa];switch(this.openElements.tagIDs[qa]){case TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(nd)===NS.HTML)return{parent:this.treeAdapter.getTemplateContent(nd),beforeElement:null};break}case TAG_ID.TABLE:{const od=this.treeAdapter.getParentNode(nd);return od?{parent:od,beforeElement:nd}:{parent:this.openElements.items[qa-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(qa){const nd=this._findFosterParentingLocation();nd.beforeElement?this.treeAdapter.insertBefore(nd.parent,qa,nd.beforeElement):this.treeAdapter.appendChild(nd.parent,qa)}_isSpecialElement(qa,nd){const od=this.treeAdapter.getNamespaceURI(qa);return SPECIAL_ELEMENTS[od].has(nd)}onCharacter(qa){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){characterInForeignContent(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:{characterInBody(this,qa);break}case InsertionMode.TEXT:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{this._insertCharacters(qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{characterInTableText(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,qa);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onNullCharacter(qa){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nullCharacterInForeignContent(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.TEXT:{this._insertCharacters(qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,qa);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onComment(qa){if(this.skipNextNewLine=!1,this.currentNotInHTML){appendComment(this,qa);return}switch(this.insertionMode){case InsertionMode.INITIAL:case InsertionMode.BEFORE_HTML:case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_TEMPLATE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{appendComment(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.AFTER_BODY:{appendCommentToRootHtmlElement(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{appendCommentToDocument(this,qa);break}}}onDoctype(qa){switch(this.skipNextNewLine=!1,this.insertionMode){case InsertionMode.INITIAL:{doctypeInInitialMode(this,qa);break}case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:{this._err(qa,ERR.misplacedDoctype);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}}}onStartTag(qa){this.skipNextNewLine=!1,this.currentToken=qa,this._processStartTag(qa),qa.selfClosing&&!qa.ackSelfClosing&&this._err(qa,ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(qa){this.shouldProcessStartTagTokenInForeignContent(qa)?startTagInForeignContent(this,qa):this._startTagOutsideForeignContent(qa)}_startTagOutsideForeignContent(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{startTagBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{startTagBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{startTagInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{startTagInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{startTagAfterHead(this,qa);break}case InsertionMode.IN_BODY:{startTagInBody(this,qa);break}case InsertionMode.IN_TABLE:{startTagInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_CAPTION:{startTagInCaption(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{startTagInColumnGroup(this,qa);break}case InsertionMode.IN_TABLE_BODY:{startTagInTableBody(this,qa);break}case InsertionMode.IN_ROW:{startTagInRow(this,qa);break}case InsertionMode.IN_CELL:{startTagInCell(this,qa);break}case InsertionMode.IN_SELECT:{startTagInSelect(this,qa);break}case InsertionMode.IN_SELECT_IN_TABLE:{startTagInSelectInTable(this,qa);break}case InsertionMode.IN_TEMPLATE:{startTagInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:{startTagAfterBody(this,qa);break}case InsertionMode.IN_FRAMESET:{startTagInFrameset(this,qa);break}case InsertionMode.AFTER_FRAMESET:{startTagAfterFrameset(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{startTagAfterAfterBody(this,qa);break}case InsertionMode.AFTER_AFTER_FRAMESET:{startTagAfterAfterFrameset(this,qa);break}}}onEndTag(qa){this.skipNextNewLine=!1,this.currentToken=qa,this.currentNotInHTML?endTagInForeignContent(this,qa):this._endTagOutsideForeignContent(qa)}_endTagOutsideForeignContent(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{endTagBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{endTagBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{endTagInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{endTagInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{endTagAfterHead(this,qa);break}case InsertionMode.IN_BODY:{endTagInBody(this,qa);break}case InsertionMode.TEXT:{endTagInText(this,qa);break}case InsertionMode.IN_TABLE:{endTagInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_CAPTION:{endTagInCaption(this,qa);break}case InsertionMode.IN_COLUMN_GROUP:{endTagInColumnGroup(this,qa);break}case InsertionMode.IN_TABLE_BODY:{endTagInTableBody(this,qa);break}case InsertionMode.IN_ROW:{endTagInRow(this,qa);break}case InsertionMode.IN_CELL:{endTagInCell(this,qa);break}case InsertionMode.IN_SELECT:{endTagInSelect(this,qa);break}case InsertionMode.IN_SELECT_IN_TABLE:{endTagInSelectInTable(this,qa);break}case InsertionMode.IN_TEMPLATE:{endTagInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:{endTagAfterBody(this,qa);break}case InsertionMode.IN_FRAMESET:{endTagInFrameset(this,qa);break}case InsertionMode.AFTER_FRAMESET:{endTagAfterFrameset(this,qa);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,qa);break}}}onEof(qa){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,qa);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,qa);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,qa);break}case InsertionMode.IN_HEAD:{tokenInHead(this,qa);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,qa);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{eofInBody(this,qa);break}case InsertionMode.TEXT:{eofInText(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,qa);break}case InsertionMode.IN_TEMPLATE:{eofInTemplate(this,qa);break}case InsertionMode.AFTER_BODY:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{stopParsing(this,qa);break}}}onWhitespaceCharacter(qa){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,qa.chars.charCodeAt(0)===CODE_POINTS.LINE_FEED)){if(qa.chars.length===1)return;qa.chars=qa.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(qa);return}switch(this.insertionMode){case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.TEXT:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{this._insertCharacters(qa);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:case InsertionMode.AFTER_BODY:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{whitespaceCharacterInBody(this,qa);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,qa);break}case InsertionMode.IN_TABLE_TEXT:{whitespaceCharacterInTableText(this,qa);break}}}};function aaObtainFormattingElementEntry(Ra,qa){let nd=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(qa.tagName);return nd?Ra.openElements.contains(nd.element)?Ra.openElements.hasInScope(qa.tagID)||(nd=null):(Ra.activeFormattingElements.removeEntry(nd),nd=null):genericEndTagInBody(Ra,qa),nd}function aaObtainFurthestBlock(Ra,qa){let nd=null,od=Ra.openElements.stackTop;for(;od>=0;od--){const ld=Ra.openElements.items[od];if(ld===qa.element)break;Ra._isSpecialElement(ld,Ra.openElements.tagIDs[od])&&(nd=ld)}return nd||(Ra.openElements.shortenToLength(od<0?0:od),Ra.activeFormattingElements.removeEntry(qa)),nd}function aaInnerLoop(Ra,qa,nd){let od=qa,ld=Ra.openElements.getCommonAncestor(qa);for(let ud=0,dd=ld;dd!==nd;ud++,dd=ld){ld=Ra.openElements.getCommonAncestor(dd);const pd=Ra.activeFormattingElements.getElementEntry(dd),fd=pd&&ud>=AA_INNER_LOOP_ITER;!pd||fd?(fd&&Ra.activeFormattingElements.removeEntry(pd),Ra.openElements.remove(dd)):(dd=aaRecreateElementFromEntry(Ra,pd),od===qa&&(Ra.activeFormattingElements.bookmark=pd),Ra.treeAdapter.detachNode(od),Ra.treeAdapter.appendChild(dd,od),od=dd)}return od}function aaRecreateElementFromEntry(Ra,qa){const nd=Ra.treeAdapter.getNamespaceURI(qa.element),od=Ra.treeAdapter.createElement(qa.token.tagName,nd,qa.token.attrs);return Ra.openElements.replace(qa.element,od),qa.element=od,od}function aaInsertLastNodeInCommonAncestor(Ra,qa,nd){const od=Ra.treeAdapter.getTagName(qa),ld=getTagID(od);if(Ra._isElementCausesFosterParenting(ld))Ra._fosterParentElement(nd);else{const ud=Ra.treeAdapter.getNamespaceURI(qa);ld===TAG_ID.TEMPLATE&&ud===NS.HTML&&(qa=Ra.treeAdapter.getTemplateContent(qa)),Ra.treeAdapter.appendChild(qa,nd)}}function aaReplaceFormattingElement(Ra,qa,nd){const od=Ra.treeAdapter.getNamespaceURI(nd.element),{token:ld}=nd,ud=Ra.treeAdapter.createElement(ld.tagName,od,ld.attrs);Ra._adoptNodes(qa,ud),Ra.treeAdapter.appendChild(qa,ud),Ra.activeFormattingElements.insertElementAfterBookmark(ud,ld),Ra.activeFormattingElements.removeEntry(nd),Ra.openElements.remove(nd.element),Ra.openElements.insertAfter(qa,ud,ld.tagID)}function callAdoptionAgency(Ra,qa){for(let nd=0;nd=nd;od--)Ra._setEndLocation(Ra.openElements.items[od],qa);if(!Ra.fragmentContext&&Ra.openElements.stackTop>=0){const od=Ra.openElements.items[0],ld=Ra.treeAdapter.getNodeSourceCodeLocation(od);if(ld&&!ld.endTag&&(Ra._setEndLocation(od,qa),Ra.openElements.stackTop>=1)){const ud=Ra.openElements.items[1],dd=Ra.treeAdapter.getNodeSourceCodeLocation(ud);dd&&!dd.endTag&&Ra._setEndLocation(ud,qa)}}}}function doctypeInInitialMode(Ra,qa){Ra._setDocumentType(qa);const nd=qa.forceQuirks?DOCUMENT_MODE.QUIRKS:getDocumentMode(qa);isConforming(qa)||Ra._err(qa,ERR.nonConformingDoctype),Ra.treeAdapter.setDocumentMode(Ra.document,nd),Ra.insertionMode=InsertionMode.BEFORE_HTML}function tokenInInitialMode(Ra,qa){Ra._err(qa,ERR.missingDoctype,!0),Ra.treeAdapter.setDocumentMode(Ra.document,DOCUMENT_MODE.QUIRKS),Ra.insertionMode=InsertionMode.BEFORE_HTML,Ra._processToken(qa)}function startTagBeforeHtml(Ra,qa){qa.tagID===TAG_ID.HTML?(Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.BEFORE_HEAD):tokenBeforeHtml(Ra,qa)}function endTagBeforeHtml(Ra,qa){const nd=qa.tagID;(nd===TAG_ID.HTML||nd===TAG_ID.HEAD||nd===TAG_ID.BODY||nd===TAG_ID.BR)&&tokenBeforeHtml(Ra,qa)}function tokenBeforeHtml(Ra,qa){Ra._insertFakeRootElement(),Ra.insertionMode=InsertionMode.BEFORE_HEAD,Ra._processToken(qa)}function startTagBeforeHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.HEAD:{Ra._insertElement(qa,NS.HTML),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD;break}default:tokenBeforeHead(Ra,qa)}}function endTagBeforeHead(Ra,qa){const nd=qa.tagID;nd===TAG_ID.HEAD||nd===TAG_ID.BODY||nd===TAG_ID.HTML||nd===TAG_ID.BR?tokenBeforeHead(Ra,qa):Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}function tokenBeforeHead(Ra,qa){Ra._insertFakeElement(TAG_NAMES.HEAD,TAG_ID.HEAD),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(qa)}function startTagInHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:{Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0;break}case TAG_ID.TITLE:{Ra._switchToTextParsing(qa,TokenizerMode.RCDATA);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT):(Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_HEAD_NO_SCRIPT);break}case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT);break}case TAG_ID.SCRIPT:{Ra._switchToTextParsing(qa,TokenizerMode.SCRIPT_DATA);break}case TAG_ID.TEMPLATE:{Ra._insertTemplate(qa),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TEMPLATE,Ra.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);break}case TAG_ID.HEAD:{Ra._err(qa,ERR.misplacedStartTagForHeadElement);break}default:tokenInHead(Ra,qa)}}function endTagInHead(Ra,qa){switch(qa.tagID){case TAG_ID.HEAD:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD;break}case TAG_ID.BODY:case TAG_ID.BR:case TAG_ID.HTML:{tokenInHead(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function templateEndTagInHead(Ra,qa){Ra.openElements.tmplCount>0?(Ra.openElements.generateImpliedEndTagsThoroughly(),Ra.openElements.currentTagId!==TAG_ID.TEMPLATE&&Ra._err(qa,ERR.closingOfElementWithOpenChildElements),Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode()):Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(Ra,qa){Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD,Ra._processToken(qa)}function startTagInHeadNoScript(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.HEAD:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{startTagInHead(Ra,qa);break}case TAG_ID.NOSCRIPT:{Ra._err(qa,ERR.nestedNoscriptInHead);break}default:tokenInHeadNoScript(Ra,qa)}}function endTagInHeadNoScript(Ra,qa){switch(qa.tagID){case TAG_ID.NOSCRIPT:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD;break}case TAG_ID.BR:{tokenInHeadNoScript(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function tokenInHeadNoScript(Ra,qa){const nd=qa.type===TokenType.EOF?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;Ra._err(qa,nd),Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(qa)}function startTagAfterHead(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.BODY:{Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_BODY;break}case TAG_ID.FRAMESET:{Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET;break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{Ra._err(qa,ERR.abandonedHeadElementChild),Ra.openElements.push(Ra.headElement,TAG_ID.HEAD),startTagInHead(Ra,qa),Ra.openElements.remove(Ra.headElement);break}case TAG_ID.HEAD:{Ra._err(qa,ERR.misplacedStartTagForHeadElement);break}default:tokenAfterHead(Ra,qa)}}function endTagAfterHead(Ra,qa){switch(qa.tagID){case TAG_ID.BODY:case TAG_ID.HTML:case TAG_ID.BR:{tokenAfterHead(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:Ra._err(qa,ERR.endTagWithoutMatchingOpenElement)}}function tokenAfterHead(Ra,qa){Ra._insertFakeElement(TAG_NAMES.BODY,TAG_ID.BODY),Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function modeInBody(Ra,qa){switch(qa.type){case TokenType.CHARACTER:{characterInBody(Ra,qa);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInBody(Ra,qa);break}case TokenType.COMMENT:{appendComment(Ra,qa);break}case TokenType.START_TAG:{startTagInBody(Ra,qa);break}case TokenType.END_TAG:{endTagInBody(Ra,qa);break}case TokenType.EOF:{eofInBody(Ra,qa);break}}}function whitespaceCharacterInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(qa)}function characterInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(qa),Ra.framesetOk=!1}function htmlStartTagInBody(Ra,qa){Ra.openElements.tmplCount===0&&Ra.treeAdapter.adoptAttributes(Ra.openElements.items[0],qa.attrs)}function bodyStartTagInBody(Ra,qa){const nd=Ra.openElements.tryPeekProperlyNestedBodyElement();nd&&Ra.openElements.tmplCount===0&&(Ra.framesetOk=!1,Ra.treeAdapter.adoptAttributes(nd,qa.attrs))}function framesetStartTagInBody(Ra,qa){const nd=Ra.openElements.tryPeekProperlyNestedBodyElement();Ra.framesetOk&&nd&&(Ra.treeAdapter.detachNode(nd),Ra.openElements.popAllUpToHtmlElement(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET)}function addressStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML)}function numberedHeaderStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),NUMBERED_HEADERS.has(Ra.openElements.currentTagId)&&Ra.openElements.pop(),Ra._insertElement(qa,NS.HTML)}function preStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.skipNextNewLine=!0,Ra.framesetOk=!1}function formStartTagInBody(Ra,qa){const nd=Ra.openElements.tmplCount>0;(!Ra.formElement||nd)&&(Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),nd||(Ra.formElement=Ra.openElements.current))}function listItemStartTagInBody(Ra,qa){Ra.framesetOk=!1;const nd=qa.tagID;for(let od=Ra.openElements.stackTop;od>=0;od--){const ld=Ra.openElements.tagIDs[od];if(nd===TAG_ID.LI&&ld===TAG_ID.LI||(nd===TAG_ID.DD||nd===TAG_ID.DT)&&(ld===TAG_ID.DD||ld===TAG_ID.DT)){Ra.openElements.generateImpliedEndTagsWithExclusion(ld),Ra.openElements.popUntilTagNamePopped(ld);break}if(ld!==TAG_ID.ADDRESS&&ld!==TAG_ID.DIV&&ld!==TAG_ID.P&&Ra._isSpecialElement(Ra.openElements.items[od],ld))break}Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML)}function plaintextStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.tokenizer.state=TokenizerMode.PLAINTEXT}function buttonStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.BUTTON)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(TAG_ID.BUTTON)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1}function aStartTagInBody(Ra,qa){const nd=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(TAG_NAMES.A);nd&&(callAdoptionAgency(Ra,qa),Ra.openElements.remove(nd.element),Ra.activeFormattingElements.removeEntry(nd)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function bStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function nobrStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra.openElements.hasInScope(TAG_ID.NOBR)&&(callAdoptionAgency(Ra,qa),Ra._reconstructActiveFormattingElements()),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,qa)}function appletStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1}function tableStartTagInBody(Ra,qa){Ra.treeAdapter.getDocumentMode(Ra.document)!==DOCUMENT_MODE.QUIRKS&&Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TABLE}function areaStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._appendElement(qa,NS.HTML),Ra.framesetOk=!1,qa.ackSelfClosing=!0}function isHiddenInput(Ra){const qa=getTokenAttr(Ra,ATTRS.TYPE);return qa!=null&&qa.toLowerCase()===HIDDEN_INPUT_TYPE}function inputStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._appendElement(qa,NS.HTML),isHiddenInput(qa)||(Ra.framesetOk=!1),qa.ackSelfClosing=!0}function paramStartTagInBody(Ra,qa){Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0}function hrStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._appendElement(qa,NS.HTML),Ra.framesetOk=!1,qa.ackSelfClosing=!0}function imageStartTagInBody(Ra,qa){qa.tagName=TAG_NAMES.IMG,qa.tagID=TAG_ID.IMG,areaStartTagInBody(Ra,qa)}function textareaStartTagInBody(Ra,qa){Ra._insertElement(qa,NS.HTML),Ra.skipNextNewLine=!0,Ra.tokenizer.state=TokenizerMode.RCDATA,Ra.originalInsertionMode=Ra.insertionMode,Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.TEXT}function xmpStartTagInBody(Ra,qa){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._reconstructActiveFormattingElements(),Ra.framesetOk=!1,Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function iframeStartTagInBody(Ra,qa){Ra.framesetOk=!1,Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function rawTextStartTagInBody(Ra,qa){Ra._switchToTextParsing(qa,TokenizerMode.RAWTEXT)}function selectStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=Ra.insertionMode===InsertionMode.IN_TABLE||Ra.insertionMode===InsertionMode.IN_CAPTION||Ra.insertionMode===InsertionMode.IN_TABLE_BODY||Ra.insertionMode===InsertionMode.IN_ROW||Ra.insertionMode===InsertionMode.IN_CELL?InsertionMode.IN_SELECT_IN_TABLE:InsertionMode.IN_SELECT}function optgroupStartTagInBody(Ra,qa){Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop(),Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML)}function rbStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTags(),Ra._insertElement(qa,NS.HTML)}function rtStartTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.RTC),Ra._insertElement(qa,NS.HTML)}function mathStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),adjustTokenMathMLAttrs(qa),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,NS.MATHML):Ra._insertElement(qa,NS.MATHML),qa.ackSelfClosing=!0}function svgStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),adjustTokenSVGAttrs(qa),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,NS.SVG):Ra._insertElement(qa,NS.SVG),qa.ackSelfClosing=!0}function genericStartTagInBody(Ra,qa){Ra._reconstructActiveFormattingElements(),Ra._insertElement(qa,NS.HTML)}function startTagInBody(Ra,qa){switch(qa.tagID){case TAG_ID.I:case TAG_ID.S:case TAG_ID.B:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{bStartTagInBody(Ra,qa);break}case TAG_ID.A:{aStartTagInBody(Ra,qa);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderStartTagInBody(Ra,qa);break}case TAG_ID.P:case TAG_ID.DL:case TAG_ID.OL:case TAG_ID.UL:case TAG_ID.DIV:case TAG_ID.DIR:case TAG_ID.NAV:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.DETAILS:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressStartTagInBody(Ra,qa);break}case TAG_ID.LI:case TAG_ID.DD:case TAG_ID.DT:{listItemStartTagInBody(Ra,qa);break}case TAG_ID.BR:case TAG_ID.IMG:case TAG_ID.WBR:case TAG_ID.AREA:case TAG_ID.EMBED:case TAG_ID.KEYGEN:{areaStartTagInBody(Ra,qa);break}case TAG_ID.HR:{hrStartTagInBody(Ra,qa);break}case TAG_ID.RB:case TAG_ID.RTC:{rbStartTagInBody(Ra,qa);break}case TAG_ID.RT:case TAG_ID.RP:{rtStartTagInBody(Ra,qa);break}case TAG_ID.PRE:case TAG_ID.LISTING:{preStartTagInBody(Ra,qa);break}case TAG_ID.XMP:{xmpStartTagInBody(Ra,qa);break}case TAG_ID.SVG:{svgStartTagInBody(Ra,qa);break}case TAG_ID.HTML:{htmlStartTagInBody(Ra,qa);break}case TAG_ID.BASE:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.STYLE:case TAG_ID.TITLE:case TAG_ID.SCRIPT:case TAG_ID.BGSOUND:case TAG_ID.BASEFONT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,qa);break}case TAG_ID.BODY:{bodyStartTagInBody(Ra,qa);break}case TAG_ID.FORM:{formStartTagInBody(Ra,qa);break}case TAG_ID.NOBR:{nobrStartTagInBody(Ra,qa);break}case TAG_ID.MATH:{mathStartTagInBody(Ra,qa);break}case TAG_ID.TABLE:{tableStartTagInBody(Ra,qa);break}case TAG_ID.INPUT:{inputStartTagInBody(Ra,qa);break}case TAG_ID.PARAM:case TAG_ID.TRACK:case TAG_ID.SOURCE:{paramStartTagInBody(Ra,qa);break}case TAG_ID.IMAGE:{imageStartTagInBody(Ra,qa);break}case TAG_ID.BUTTON:{buttonStartTagInBody(Ra,qa);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletStartTagInBody(Ra,qa);break}case TAG_ID.IFRAME:{iframeStartTagInBody(Ra,qa);break}case TAG_ID.SELECT:{selectStartTagInBody(Ra,qa);break}case TAG_ID.OPTION:case TAG_ID.OPTGROUP:{optgroupStartTagInBody(Ra,qa);break}case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:{rawTextStartTagInBody(Ra,qa);break}case TAG_ID.FRAMESET:{framesetStartTagInBody(Ra,qa);break}case TAG_ID.TEXTAREA:{textareaStartTagInBody(Ra,qa);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?rawTextStartTagInBody(Ra,qa):genericStartTagInBody(Ra,qa);break}case TAG_ID.PLAINTEXT:{plaintextStartTagInBody(Ra,qa);break}case TAG_ID.COL:case TAG_ID.TH:case TAG_ID.TD:case TAG_ID.TR:case TAG_ID.HEAD:case TAG_ID.FRAME:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.CAPTION:case TAG_ID.COLGROUP:break;default:genericStartTagInBody(Ra,qa)}}function bodyEndTagInBody(Ra,qa){if(Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,Ra.options.sourceCodeLocationInfo)){const nd=Ra.openElements.tryPeekProperlyNestedBodyElement();nd&&Ra._setEndLocation(nd,qa)}}function htmlEndTagInBody(Ra,qa){Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,endTagAfterBody(Ra,qa))}function addressEndTagInBody(Ra,qa){const nd=qa.tagID;Ra.openElements.hasInScope(nd)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(nd))}function formEndTagInBody(Ra){const qa=Ra.openElements.tmplCount>0,{formElement:nd}=Ra;qa||(Ra.formElement=null),(nd||qa)&&Ra.openElements.hasInScope(TAG_ID.FORM)&&(Ra.openElements.generateImpliedEndTags(),qa?Ra.openElements.popUntilTagNamePopped(TAG_ID.FORM):nd&&Ra.openElements.remove(nd))}function pEndTagInBody(Ra){Ra.openElements.hasInButtonScope(TAG_ID.P)||Ra._insertFakeElement(TAG_NAMES.P,TAG_ID.P),Ra._closePElement()}function liEndTagInBody(Ra){Ra.openElements.hasInListItemScope(TAG_ID.LI)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.LI),Ra.openElements.popUntilTagNamePopped(TAG_ID.LI))}function ddEndTagInBody(Ra,qa){const nd=qa.tagID;Ra.openElements.hasInScope(nd)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(nd),Ra.openElements.popUntilTagNamePopped(nd))}function numberedHeaderEndTagInBody(Ra){Ra.openElements.hasNumberedHeaderInScope()&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(Ra,qa){const nd=qa.tagID;Ra.openElements.hasInScope(nd)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(nd),Ra.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(Ra){Ra._reconstructActiveFormattingElements(),Ra._insertFakeElement(TAG_NAMES.BR,TAG_ID.BR),Ra.openElements.pop(),Ra.framesetOk=!1}function genericEndTagInBody(Ra,qa){const nd=qa.tagName,od=qa.tagID;for(let ld=Ra.openElements.stackTop;ld>0;ld--){const ud=Ra.openElements.items[ld],dd=Ra.openElements.tagIDs[ld];if(od===dd&&(od!==TAG_ID.UNKNOWN||Ra.treeAdapter.getTagName(ud)===nd)){Ra.openElements.generateImpliedEndTagsWithExclusion(od),Ra.openElements.stackTop>=ld&&Ra.openElements.shortenToLength(ld);break}if(Ra._isSpecialElement(ud,dd))break}}function endTagInBody(Ra,qa){switch(qa.tagID){case TAG_ID.A:case TAG_ID.B:case TAG_ID.I:case TAG_ID.S:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.NOBR:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{callAdoptionAgency(Ra,qa);break}case TAG_ID.P:{pEndTagInBody(Ra);break}case TAG_ID.DL:case TAG_ID.UL:case TAG_ID.OL:case TAG_ID.DIR:case TAG_ID.DIV:case TAG_ID.NAV:case TAG_ID.PRE:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.BUTTON:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.DETAILS:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.LISTING:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressEndTagInBody(Ra,qa);break}case TAG_ID.LI:{liEndTagInBody(Ra);break}case TAG_ID.DD:case TAG_ID.DT:{ddEndTagInBody(Ra,qa);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderEndTagInBody(Ra);break}case TAG_ID.BR:{brEndTagInBody(Ra);break}case TAG_ID.BODY:{bodyEndTagInBody(Ra,qa);break}case TAG_ID.HTML:{htmlEndTagInBody(Ra,qa);break}case TAG_ID.FORM:{formEndTagInBody(Ra);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletEndTagInBody(Ra,qa);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}default:genericEndTagInBody(Ra,qa)}}function eofInBody(Ra,qa){Ra.tmplInsertionModeStack.length>0?eofInTemplate(Ra,qa):stopParsing(Ra,qa)}function endTagInText(Ra,qa){var nd;qa.tagID===TAG_ID.SCRIPT&&((nd=Ra.scriptHandler)===null||nd===void 0||nd.call(Ra,Ra.openElements.current)),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode}function eofInText(Ra,qa){Ra._err(qa,ERR.eofInElementThatCanContainOnlyText),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode,Ra.onEof(qa)}function characterInTable(Ra,qa){if(TABLE_STRUCTURE_TAGS.has(Ra.openElements.currentTagId))switch(Ra.pendingCharacterTokens.length=0,Ra.hasNonWhitespacePendingCharacterToken=!1,Ra.originalInsertionMode=Ra.insertionMode,Ra.insertionMode=InsertionMode.IN_TABLE_TEXT,qa.type){case TokenType.CHARACTER:{characterInTableText(Ra,qa);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInTableText(Ra,qa);break}}else tokenInTable(Ra,qa)}function captionStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra.activeFormattingElements.insertMarker(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_CAPTION}function colgroupStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP}function colStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.COLGROUP,TAG_ID.COLGROUP),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,qa)}function tbodyStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertElement(qa,NS.HTML),Ra.insertionMode=InsertionMode.IN_TABLE_BODY}function tdStartTagInTable(Ra,qa){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.TBODY,TAG_ID.TBODY),Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,qa)}function tableStartTagInTable(Ra,qa){Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode(),Ra._processStartTag(qa))}function inputStartTagInTable(Ra,qa){isHiddenInput(qa)?Ra._appendElement(qa,NS.HTML):tokenInTable(Ra,qa),qa.ackSelfClosing=!0}function formStartTagInTable(Ra,qa){!Ra.formElement&&Ra.openElements.tmplCount===0&&(Ra._insertElement(qa,NS.HTML),Ra.formElement=Ra.openElements.current,Ra.openElements.pop())}function startTagInTable(Ra,qa){switch(qa.tagID){case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:{tdStartTagInTable(Ra,qa);break}case TAG_ID.STYLE:case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,qa);break}case TAG_ID.COL:{colStartTagInTable(Ra,qa);break}case TAG_ID.FORM:{formStartTagInTable(Ra,qa);break}case TAG_ID.TABLE:{tableStartTagInTable(Ra,qa);break}case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{tbodyStartTagInTable(Ra,qa);break}case TAG_ID.INPUT:{inputStartTagInTable(Ra,qa);break}case TAG_ID.CAPTION:{captionStartTagInTable(Ra,qa);break}case TAG_ID.COLGROUP:{colgroupStartTagInTable(Ra,qa);break}default:tokenInTable(Ra,qa)}}function endTagInTable(Ra,qa){switch(qa.tagID){case TAG_ID.TABLE:{Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:tokenInTable(Ra,qa)}}function tokenInTable(Ra,qa){const nd=Ra.fosterParentingEnabled;Ra.fosterParentingEnabled=!0,modeInBody(Ra,qa),Ra.fosterParentingEnabled=nd}function whitespaceCharacterInTableText(Ra,qa){Ra.pendingCharacterTokens.push(qa)}function characterInTableText(Ra,qa){Ra.pendingCharacterTokens.push(qa),Ra.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(Ra,qa){let nd=0;if(Ra.hasNonWhitespacePendingCharacterToken)for(;nd0&&Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.tagIDs[Ra.openElements.stackTop-1]===TAG_ID.OPTGROUP&&Ra.openElements.pop(),Ra.openElements.currentTagId===TAG_ID.OPTGROUP&&Ra.openElements.pop();break}case TAG_ID.OPTION:{Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop();break}case TAG_ID.SELECT:{Ra.openElements.hasInSelectScope(TAG_ID.SELECT)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,qa);break}}}function startTagInSelectInTable(Ra,qa){const nd=qa.tagID;nd===TAG_ID.CAPTION||nd===TAG_ID.TABLE||nd===TAG_ID.TBODY||nd===TAG_ID.TFOOT||nd===TAG_ID.THEAD||nd===TAG_ID.TR||nd===TAG_ID.TD||nd===TAG_ID.TH?(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra._processStartTag(qa)):startTagInSelect(Ra,qa)}function endTagInSelectInTable(Ra,qa){const nd=qa.tagID;nd===TAG_ID.CAPTION||nd===TAG_ID.TABLE||nd===TAG_ID.TBODY||nd===TAG_ID.TFOOT||nd===TAG_ID.THEAD||nd===TAG_ID.TR||nd===TAG_ID.TD||nd===TAG_ID.TH?Ra.openElements.hasInTableScope(nd)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra.onEndTag(qa)):endTagInSelect(Ra,qa)}function startTagInTemplate(Ra,qa){switch(qa.tagID){case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{startTagInHead(Ra,qa);break}case TAG_ID.CAPTION:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE,Ra.insertionMode=InsertionMode.IN_TABLE,startTagInTable(Ra,qa);break}case TAG_ID.COL:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_COLUMN_GROUP,Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,qa);break}case TAG_ID.TR:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE_BODY,Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,qa);break}case TAG_ID.TD:case TAG_ID.TH:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_ROW,Ra.insertionMode=InsertionMode.IN_ROW,startTagInRow(Ra,qa);break}default:Ra.tmplInsertionModeStack[0]=InsertionMode.IN_BODY,Ra.insertionMode=InsertionMode.IN_BODY,startTagInBody(Ra,qa)}}function endTagInTemplate(Ra,qa){qa.tagID===TAG_ID.TEMPLATE&&templateEndTagInHead(Ra,qa)}function eofInTemplate(Ra,qa){Ra.openElements.tmplCount>0?(Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode(),Ra.onEof(qa)):stopParsing(Ra,qa)}function startTagAfterBody(Ra,qa){qa.tagID===TAG_ID.HTML?startTagInBody(Ra,qa):tokenAfterBody(Ra,qa)}function endTagAfterBody(Ra,qa){var nd;if(qa.tagID===TAG_ID.HTML){if(Ra.fragmentContext||(Ra.insertionMode=InsertionMode.AFTER_AFTER_BODY),Ra.options.sourceCodeLocationInfo&&Ra.openElements.tagIDs[0]===TAG_ID.HTML){Ra._setEndLocation(Ra.openElements.items[0],qa);const od=Ra.openElements.items[1];od&&!(!((nd=Ra.treeAdapter.getNodeSourceCodeLocation(od))===null||nd===void 0)&&nd.endTag)&&Ra._setEndLocation(od,qa)}}else tokenAfterBody(Ra,qa)}function tokenAfterBody(Ra,qa){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function startTagInFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.FRAMESET:{Ra._insertElement(qa,NS.HTML);break}case TAG_ID.FRAME:{Ra._appendElement(qa,NS.HTML),qa.ackSelfClosing=!0;break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function endTagInFrameset(Ra,qa){qa.tagID===TAG_ID.FRAMESET&&!Ra.openElements.isRootHtmlElementCurrent()&&(Ra.openElements.pop(),!Ra.fragmentContext&&Ra.openElements.currentTagId!==TAG_ID.FRAMESET&&(Ra.insertionMode=InsertionMode.AFTER_FRAMESET))}function startTagAfterFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function endTagAfterFrameset(Ra,qa){qa.tagID===TAG_ID.HTML&&(Ra.insertionMode=InsertionMode.AFTER_AFTER_FRAMESET)}function startTagAfterAfterBody(Ra,qa){qa.tagID===TAG_ID.HTML?startTagInBody(Ra,qa):tokenAfterAfterBody(Ra,qa)}function tokenAfterAfterBody(Ra,qa){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,qa)}function startTagAfterAfterFrameset(Ra,qa){switch(qa.tagID){case TAG_ID.HTML:{startTagInBody(Ra,qa);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,qa);break}}}function nullCharacterInForeignContent(Ra,qa){qa.chars=REPLACEMENT_CHARACTER,Ra._insertCharacters(qa)}function characterInForeignContent(Ra,qa){Ra._insertCharacters(qa),Ra.framesetOk=!1}function popUntilHtmlOrIntegrationPoint(Ra){for(;Ra.treeAdapter.getNamespaceURI(Ra.openElements.current)!==NS.HTML&&!Ra._isIntegrationPoint(Ra.openElements.currentTagId,Ra.openElements.current);)Ra.openElements.pop()}function startTagInForeignContent(Ra,qa){if(causesExit(qa))popUntilHtmlOrIntegrationPoint(Ra),Ra._startTagOutsideForeignContent(qa);else{const nd=Ra._getAdjustedCurrentElement(),od=Ra.treeAdapter.getNamespaceURI(nd);od===NS.MATHML?adjustTokenMathMLAttrs(qa):od===NS.SVG&&(adjustTokenSVGTagName(qa),adjustTokenSVGAttrs(qa)),adjustTokenXMLAttrs(qa),qa.selfClosing?Ra._appendElement(qa,od):Ra._insertElement(qa,od),qa.ackSelfClosing=!0}}function endTagInForeignContent(Ra,qa){if(qa.tagID===TAG_ID.P||qa.tagID===TAG_ID.BR){popUntilHtmlOrIntegrationPoint(Ra),Ra._endTagOutsideForeignContent(qa);return}for(let nd=Ra.openElements.stackTop;nd>0;nd--){const od=Ra.openElements.items[nd];if(Ra.treeAdapter.getNamespaceURI(od)===NS.HTML){Ra._endTagOutsideForeignContent(qa);break}const ld=Ra.treeAdapter.getTagName(od);if(ld.toLowerCase()===qa.tagName){qa.tagName=ld,Ra.openElements.shortenToLength(nd);break}}}const VOID_ELEMENTS=new Set([TAG_NAMES.AREA,TAG_NAMES.BASE,TAG_NAMES.BASEFONT,TAG_NAMES.BGSOUND,TAG_NAMES.BR,TAG_NAMES.COL,TAG_NAMES.EMBED,TAG_NAMES.FRAME,TAG_NAMES.HR,TAG_NAMES.IMG,TAG_NAMES.INPUT,TAG_NAMES.KEYGEN,TAG_NAMES.LINK,TAG_NAMES.META,TAG_NAMES.PARAM,TAG_NAMES.SOURCE,TAG_NAMES.TRACK,TAG_NAMES.WBR]);function isVoidElement(Ra,qa){return qa.treeAdapter.isElementNode(Ra)&&qa.treeAdapter.getNamespaceURI(Ra)===NS.HTML&&VOID_ELEMENTS.has(qa.treeAdapter.getTagName(Ra))}const defaultOpts={treeAdapter:defaultTreeAdapter,scriptingEnabled:!0};function serializeOuter(Ra,qa){const nd={...defaultOpts,...qa};return serializeNode(Ra,nd)}function serializeChildNodes(Ra,qa){let nd="";const od=qa.treeAdapter.isElementNode(Ra)&&qa.treeAdapter.getTagName(Ra)===TAG_NAMES.TEMPLATE&&qa.treeAdapter.getNamespaceURI(Ra)===NS.HTML?qa.treeAdapter.getTemplateContent(Ra):Ra,ld=qa.treeAdapter.getChildNodes(od);if(ld)for(const ud of ld)nd+=serializeNode(ud,qa);return nd}function serializeNode(Ra,qa){return qa.treeAdapter.isElementNode(Ra)?serializeElement(Ra,qa):qa.treeAdapter.isTextNode(Ra)?serializeTextNode(Ra,qa):qa.treeAdapter.isCommentNode(Ra)?serializeCommentNode(Ra,qa):qa.treeAdapter.isDocumentTypeNode(Ra)?serializeDocumentTypeNode(Ra,qa):""}function serializeElement(Ra,qa){const nd=qa.treeAdapter.getTagName(Ra);return`<${nd}${serializeAttributes(Ra,qa)}>${isVoidElement(Ra,qa)?"":`${serializeChildNodes(Ra,qa)}`}`}function serializeAttributes(Ra,{treeAdapter:qa}){let nd="";for(const od of qa.getAttrList(Ra)){if(nd+=" ",od.namespace)switch(od.namespace){case NS.XML:{nd+=`xml:${od.name}`;break}case NS.XMLNS:{od.name!=="xmlns"&&(nd+="xmlns:"),nd+=od.name;break}case NS.XLINK:{nd+=`xlink:${od.name}`;break}default:nd+=`${od.prefix}:${od.name}`}else nd+=od.name;nd+=`="${escapeAttribute(od.value)}"`}return nd}function serializeTextNode(Ra,qa){const{treeAdapter:nd}=qa,od=nd.getTextNodeContent(Ra),ld=nd.getParentNode(Ra),ud=ld&&nd.isElementNode(ld)&&nd.getTagName(ld);return ud&&nd.getNamespaceURI(ld)===NS.HTML&&hasUnescapedText(ud,qa.scriptingEnabled)?od:escapeText(od)}function serializeCommentNode(Ra,{treeAdapter:qa}){return``}function serializeDocumentTypeNode(Ra,{treeAdapter:qa}){return``}function parse$5(Ra,qa){return Parser$2.parse(Ra,qa)}function parseFragment(Ra,qa,nd){typeof Ra=="string"&&(nd=qa,qa=Ra,Ra=null);const od=Parser$2.getFragmentParser(Ra,nd);return od.tokenizer.write(qa,!0),od.getFragment()}function enquoteDoctypeId(Ra){const qa=Ra.includes('"')?"'":'"';return qa+Ra+qa}function serializeDoctypeContent(Ra,qa,nd){let od="!DOCTYPE ";return Ra&&(od+=Ra),qa?od+=` PUBLIC ${enquoteDoctypeId(qa)}`:nd&&(od+=" SYSTEM"),nd&&(od+=` ${enquoteDoctypeId(nd)}`),od}const adapter={isCommentNode:isComment$2,isElementNode:isTag,isTextNode:isText,createDocument(){const Ra=new Document([]);return Ra["x-mode"]=DOCUMENT_MODE.NO_QUIRKS,Ra},createDocumentFragment(){return new Document([])},createElement(Ra,qa,nd){const od=Object.create(null),ld=Object.create(null),ud=Object.create(null);for(let pd=0;pdisDirective(dd)&&dd.name==="!doctype");ud?ud.data=ld??null:(ud=new ProcessingInstruction("!doctype",ld),adapter.appendChild(Ra,ud)),ud["x-name"]=qa,ud["x-publicId"]=nd,ud["x-systemId"]=od},setDocumentMode(Ra,qa){Ra["x-mode"]=qa},getDocumentMode(Ra){return Ra["x-mode"]},detachNode(Ra){if(Ra.parent){const qa=Ra.parent.children.indexOf(Ra),{prev:nd,next:od}=Ra;Ra.prev=null,Ra.next=null,nd&&(nd.next=od),od&&(od.prev=nd),Ra.parent.children.splice(qa,1),Ra.parent=null}},insertText(Ra,qa){const nd=Ra.children[Ra.children.length-1];nd&&isText(nd)?nd.data+=qa:adapter.appendChild(Ra,adapter.createTextNode(qa))},insertTextBefore(Ra,qa,nd){const od=Ra.children[Ra.children.indexOf(nd)-1];od&&isText(od)?od.data+=qa:adapter.insertBefore(Ra,adapter.createTextNode(qa),nd)},adoptAttributes(Ra,qa){for(let nd=0;nd=CharCodes.LowerA&&Ra<=CharCodes.LowerZ||Ra>=CharCodes.UpperA&&Ra<=CharCodes.UpperZ}var QuoteType;(function(Ra){Ra[Ra.NoValue=0]="NoValue",Ra[Ra.Unquoted=1]="Unquoted",Ra[Ra.Single=2]="Single",Ra[Ra.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Tokenizer{constructor({xmlMode:qa=!1,decodeEntities:nd=!0},od){this.cbs=od,this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=State$4.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=qa,this.decodeEntities=nd,this.entityDecoder=new EntityDecoder(qa?xmlDecodeTree:htmlDecodeTree,(ld,ud)=>this.emitCodePoint(ld,ud))}reset(){this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State$4.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(qa){this.offset+=this.buffer.length,this.buffer=qa,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State$4.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&qa===CharCodes.Amp&&this.startEntity()}stateSpecialStartSequence(qa){const nd=this.sequenceIndex===this.currentSequence.length;if(!(nd?isEndOfTagSection(qa):(qa|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!nd){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State$4.InTagName,this.stateInTagName(qa)}stateInSpecialTag(qa){if(this.sequenceIndex===this.currentSequence.length){if(qa===CharCodes.Gt||isWhitespace$2(qa)){const nd=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,qa===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State$4.Text||this.state===State$4.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index=qa||(this.state===State$4.InCommentLike?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,qa,0):this.cbs.oncomment(this.sectionStart,qa,0):this.state===State$4.InTagName||this.state===State$4.BeforeAttributeName||this.state===State$4.BeforeAttributeValue||this.state===State$4.AfterAttributeName||this.state===State$4.InAttributeName||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueNq||this.state===State$4.InClosingTagName||this.cbs.ontext(this.sectionStart,qa))}emitCodePoint(qa,nd){this.baseState!==State$4.Text&&this.baseState!==State$4.InSpecialTag?(this.sectionStart0&&dd.has(this.stack[0]);){const pd=this.stack.shift();(od=(nd=this.cbs).onclosetag)===null||od===void 0||od.call(nd,pd,!0)}this.isVoidElement(qa)||(this.stack.unshift(qa),this.htmlMode&&(foreignContextElements.has(qa)?this.foreignContext.unshift(!0):htmlIntegrationElements.has(qa)&&this.foreignContext.unshift(!1))),(ud=(ld=this.cbs).onopentagname)===null||ud===void 0||ud.call(ld,qa),this.cbs.onopentag&&(this.attribs={})}endOpenTag(qa){var nd,od;this.startIndex=this.openTagStart,this.attribs&&((od=(nd=this.cbs).onopentag)===null||od===void 0||od.call(nd,this.tagname,this.attribs,qa),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(qa){this.endIndex=qa,this.endOpenTag(!1),this.startIndex=qa+1}onclosetag(qa,nd){var od,ld,ud,dd,pd,fd,md,vd;this.endIndex=nd;let Ad=this.getSlice(qa,nd);if(this.lowerCaseTagNames&&(Ad=Ad.toLowerCase()),this.htmlMode&&(foreignContextElements.has(Ad)||htmlIntegrationElements.has(Ad))&&this.foreignContext.shift(),this.isVoidElement(Ad))this.htmlMode&&Ad==="br"&&((dd=(ud=this.cbs).onopentagname)===null||dd===void 0||dd.call(ud,"br"),(fd=(pd=this.cbs).onopentag)===null||fd===void 0||fd.call(pd,"br",{},!0),(vd=(md=this.cbs).onclosetag)===null||vd===void 0||vd.call(md,"br",!1));else{const Nd=this.stack.indexOf(Ad);if(Nd!==-1)for(let Od=0;Od<=Nd;Od++){const kd=this.stack.shift();(ld=(od=this.cbs).onclosetag)===null||ld===void 0||ld.call(od,kd,Od!==Nd)}else this.htmlMode&&Ad==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=nd+1}onselfclosingtag(qa){this.endIndex=qa,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=qa+1):this.onopentagend(qa)}closeCurrentTag(qa){var nd,od;const ld=this.tagname;this.endOpenTag(qa),this.stack[0]===ld&&((od=(nd=this.cbs).onclosetag)===null||od===void 0||od.call(nd,ld,!qa),this.stack.shift())}onattribname(qa,nd){this.startIndex=qa;const od=this.getSlice(qa,nd);this.attribname=this.lowerCaseAttributeNames?od.toLowerCase():od}onattribdata(qa,nd){this.attribvalue+=this.getSlice(qa,nd)}onattribentity(qa){this.attribvalue+=fromCodePoint(qa)}onattribend(qa,nd){var od,ld;this.endIndex=nd,(ld=(od=this.cbs).onattribute)===null||ld===void 0||ld.call(od,this.attribname,this.attribvalue,qa===QuoteType.Double?'"':qa===QuoteType.Single?"'":qa===QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(qa){const nd=qa.search(reNameEnd);let od=nd<0?qa:qa.substr(0,nd);return this.lowerCaseTagNames&&(od=od.toLowerCase()),od}ondeclaration(qa,nd){this.endIndex=nd;const od=this.getSlice(qa,nd);if(this.cbs.onprocessinginstruction){const ld=this.getInstructionName(od);this.cbs.onprocessinginstruction(`!${ld}`,`!${od}`)}this.startIndex=nd+1}onprocessinginstruction(qa,nd){this.endIndex=nd;const od=this.getSlice(qa,nd);if(this.cbs.onprocessinginstruction){const ld=this.getInstructionName(od);this.cbs.onprocessinginstruction(`?${ld}`,`?${od}`)}this.startIndex=nd+1}oncomment(qa,nd,od){var ld,ud,dd,pd;this.endIndex=nd,(ud=(ld=this.cbs).oncomment)===null||ud===void 0||ud.call(ld,this.getSlice(qa,nd-od)),(pd=(dd=this.cbs).oncommentend)===null||pd===void 0||pd.call(dd),this.startIndex=nd+1}oncdata(qa,nd,od){var ld,ud,dd,pd,fd,md,vd,Ad,Nd,Od;this.endIndex=nd;const kd=this.getSlice(qa,nd-od);!this.htmlMode||this.options.recognizeCDATA?((ud=(ld=this.cbs).oncdatastart)===null||ud===void 0||ud.call(ld),(pd=(dd=this.cbs).ontext)===null||pd===void 0||pd.call(dd,kd),(md=(fd=this.cbs).oncdataend)===null||md===void 0||md.call(fd)):((Ad=(vd=this.cbs).oncomment)===null||Ad===void 0||Ad.call(vd,`[CDATA[${kd}]]`),(Od=(Nd=this.cbs).oncommentend)===null||Od===void 0||Od.call(Nd)),this.startIndex=nd+1}onend(){var qa,nd;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let od=0;od=this.buffers[0].length;)this.shiftBuffer();let od=this.buffers[0].slice(qa-this.bufferOffset,nd-this.bufferOffset);for(;nd-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),od+=this.buffers[0].slice(0,nd-this.bufferOffset);return od}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(qa){var nd,od;if(this.ended){(od=(nd=this.cbs).onerror)===null||od===void 0||od.call(nd,new Error(".write() after done!"));return}this.buffers.push(qa),this.tokenizer.running&&(this.tokenizer.write(qa),this.writeIndex++)}end(qa){var nd,od;if(this.ended){(od=(nd=this.cbs).onerror)===null||od===void 0||od.call(nd,new Error(".end() after done!"));return}qa&&this.write(qa),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndexqa._useHtmlParser2?parseDocument(Ra,qa):parseWithParse5(Ra,qa,nd,od)),load$3=getLoad(parse$4,(Ra,qa)=>qa._useHtmlParser2?render$3(Ra,qa):renderWithParse5(Ra)),browser$2=Object.freeze(Object.defineProperty({__proto__:null,contains,load:load$3,merge:merge$6},Symbol.toStringTag,{value:"Module"})),require$$0$2=getAugmentedNamespace(browser$2);var utils$4={},lexer={exports:{}},debug={exports:{}};(function(Ra,qa){var nd={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};Ra.exports=od;function od(ud){return ld.bind(null,ud)}function ld(ud){var dd=[].slice.call(arguments,1);dd.unshift("["+ud+"]"),nd.stderr.write(dd.join(" ")+` +`)}})(debug);var debugExports=debug.exports;(function(Ra,qa){debugExports("lex"),Ra.exports=nd;function nd(od){var ld="",ud,dd=0,pd=-1,fd=0,md=1,vd="before-selector",Ad=[vd],Nd={},Od=[],kd=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function Ld(){return _f(),od[pd]}function Gd(If){return If?Ad[Ad.length-1-If]:vd}function jd(If){var Gf=pd+1;return If===od.slice(Gf,Gf+If.length)}function Fd(If){var Gf=od.slice(pd).indexOf(If);return Gf>0?Gf:!1}function Ud(If){return If===qd(1)}function qd(If){return od[pd+(If||1)]}function zd(){var If=Ad.pop();return vd=Ad[Ad.length-1],If}function Wd(If){return vd=If,Ad.push(vd),Ad.length}function Jd(If){var Gf=vd;return Ad[Ad.length-1]=vd=If,Gf}function _f(If){if((If||1)==1)od[pd]==` `?(md++,dd=1):dd++,pd++;else{var Gf=od.slice(pd,pd+If).split(` `);Gf.length>1&&(md+=Gf.length-1,dd=1),dd+=Gf[Gf.length-1].length,pd=pd+If}}function Xd(){Nd.end={line:md,col:dd},Od.push(Nd),ld="",Nd={}}function pf(If){Nd={type:If,start:{line:md,col:dd}}}for(;ud=Ld();)switch(ud){case" ":switch(Gd()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":ld+=ud;break}break;case` `:case" ":case"\r":case"\f":switch(Gd()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":ld+=ud;break;case"at-value":ud===` -`&&(Nd.value=ld.trim(),Xd(),zd());break}break;case":":switch(Gd()){case"name":Nd.name=ld.trim(),ld="",Jd("before-value");break;case"before-selector":ld+=ud,pf("selector"),Yd("selector");break;case"before-value":Jd("value"),ld+=ud;break;default:ld+=ud;break}break;case";":switch(Gd()){case"name":case"before-value":case"value":ld.trim().length>0&&(Nd.value=ld.trim(),Xd()),Jd("before-name");break;case"value-paren":ld+=ud;break;case"at-value":Nd.value=ld.trim(),Xd(),zd();break;case"before-name":break;default:ld+=ud;break}break;case"{":switch(Gd()){case"selector":if(qd(-1)==="\\"){ld+=ud;break}Nd.text=ld.trim(),Xd(),Jd("before-name"),fd=fd+1;break;case"at-group":switch(Nd.name=ld.trim(),Nd.type){case"font-face":case"viewport":case"page":Yd("before-name");break;default:Yd("before-selector")}Xd(),fd=fd+1;break;case"name":case"at-rule":Nd.name=ld.trim(),Xd(),Yd("before-name"),fd=fd+1;break;case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":Jd("value"),ld+=ud;break}break;case"}":switch(Gd()){case"before-name":case"name":case"before-value":case"value":ld&&(Nd.value=ld.trim()),Nd.name&&Nd.value&&Xd(),pf("end"),Xd(),zd(),Gd()==="at-group"&&(pf("at-group-end"),Xd(),zd()),fd>0&&(fd=fd-1);break;case"at-group":case"before-selector":case"selector":if(qd(-1)==="\\"){ld+=ud;break}fd>0&&Gd(1)==="at-group"&&(pf("at-group-end"),Xd()),fd>1&&zd(),fd>0&&(fd=fd-1);break;case"double-string":case"single-string":case"comment":ld+=ud;break}break;case'"':case"'":switch(Gd()){case"double-string":ud==='"'&&qd(-1)!=="\\"&&zd();break;case"single-string":ud==="'"&&qd(-1)!=="\\"&&zd();break;case"before-at-value":Jd("at-value"),Yd(ud==='"'?"double-string":"single-string");break;case"before-value":Jd("value"),Yd(ud==='"'?"double-string":"single-string");break;case"comment":break;default:qd(-1)!=="\\"&&Yd(ud==='"'?"double-string":"single-string")}ld+=ud;break;case"/":switch(Gd()){case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":case"selector":case"name":case"value":if(jd("*")){var mf=Fd("*/");mf&&yf(mf+1)}else Gd()=="before-value"&&Jd("value"),ld+=ud;break;default:jd("*")?(pf("comment"),Yd("comment"),yf()):ld+=ud;break}break;case"*":switch(Gd()){case"comment":jd("/")?(Nd.text=ld,yf(),Xd(),zd()):ld+=ud;break;case"before-selector":ld+=ud,pf("selector"),Yd("selector");break;case"before-value":Jd("value"),ld+=ud;break;default:ld+=ud}break;case"@":switch(Gd()){case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":Jd("value"),ld+=ud;break;default:for(var Tf=!1,vf,Af,Sf=0,Df=kd.length;!Tf&&Sf+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:(["']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:(["'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(//,"["+escape$5(">+~`!@$%^&={}\\;/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(//g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),Part=function(qa){this.combinator=qa||" ",this.tag="*"};Part.prototype.toString=function(){if(!this.raw){var Ra="",qa,nd;if(Ra+=this.tag||"*",this.id&&(Ra+="#"+this.id),this.classes&&(Ra+="."+this.classList.join(".")),this.attributes)for(qa=0;nd=this.attributes[qa++];)Ra+="["+nd.name+(nd.operator?nd.operator+'"'+nd.value+'"':"")+"]";if(this.pseudos)for(qa=0;nd=this.pseudos[qa++];)Ra+=":"+nd.name,nd.value&&(Ra+="("+nd.value+")");this.raw=Ra}return this.raw};var Expression=function(){this.length=0};Expression.prototype.toString=function(){if(!this.raw){for(var Ra="",qa=0,nd;nd=this[qa++];)qa!==1&&(Ra+=" "),nd.combinator!==" "&&(Ra+=nd.combinator+" "),Ra+=nd;this.raw=Ra}return this.raw};var replacer=function(Ra,qa,nd,od,ld,ud,dd,pd,fd,md,vd,Ad,Nd,Od,kd,Ld){var Gd,Ud;if((qa||!this.length)&&(Gd=this[this.length++]=new Expression,qa))return"";if(Gd||(Gd=this[this.length-1]),(nd||od||!Gd.length)&&(Ud=Gd[Gd.length++]=new Part(nd)),Ud||(Ud=Gd[Gd.length-1]),ld)Ud.tag=unescape$2(ld);else if(ud)Ud.id=unescape$2(ud);else if(dd){var Fd=unescape$2(dd),jd=Ud.classes||(Ud.classes={});if(!jd[Fd]){jd[Fd]=escape$5(dd);var qd=Ud.classList||(Ud.classList=[]);qd.push(Fd),qd.sort()}}else Nd?(Ld=Ld||kd,(Ud.pseudos||(Ud.pseudos=[])).push({type:Ad.length==1?"class":"element",name:unescape$2(Nd),escapedName:escape$5(Nd),value:Ld?unescape$2(Ld):null,escapedValue:Ld?escape$5(Ld):null})):pd&&(vd=vd?escape$5(vd):null,(Ud.attributes||(Ud.attributes=[])).push({operator:fd,name:unescape$2(pd),escapedName:escape$5(pd),value:vd?unescape$2(vd):null,escapedValue:vd?escape$5(vd):null}));return""},Expressions=function(qa){this.length=0;for(var nd=this,od=qa,ld;qa;){if(ld=qa.replace(slickRe,function(){return replacer.apply(nd,arguments)}),ld===qa)throw new Error(od+" is an invalid expression");qa=ld}};Expressions.prototype.toString=function(){if(!this.raw){for(var Ra=[],qa=0,nd;nd=this[qa++];)Ra.push(nd);this.raw=Ra.join(", ")}return this.raw};var cache$2={},parse$3=function(Ra){return Ra==null?null:(Ra=(""+Ra).replace(/^\s+|\s+$/g,""),cache$2[Ra]||(cache$2[Ra]=new Expressions(Ra)))},parser$2=parse$3;(function(Ra,qa){var nd=parser$2;Ra.exports=od;function od(ud,dd){this.text=ud,this.spec=void 0,this.styleAttribute=dd||!1}od.prototype.parsed=function(){return this.tokens||(this.tokens=ld(this.text)),this.tokens},od.prototype.specificity=function(){var ud=this.styleAttribute;return this.spec||(this.spec=dd(this.text,this.parsed())),this.spec;function dd(pd,fd){for(var md=fd||ld(pd),vd=[ud?1:0,0,0,0],Ad=[],Nd=0;Nd0&&(Nd.value=ld.trim(),Xd()),Jd("before-name");break;case"value-paren":ld+=ud;break;case"at-value":Nd.value=ld.trim(),Xd(),zd();break;case"before-name":break;default:ld+=ud;break}break;case"{":switch(Gd()){case"selector":if(qd(-1)==="\\"){ld+=ud;break}Nd.text=ld.trim(),Xd(),Jd("before-name"),fd=fd+1;break;case"at-group":switch(Nd.name=ld.trim(),Nd.type){case"font-face":case"viewport":case"page":Wd("before-name");break;default:Wd("before-selector")}Xd(),fd=fd+1;break;case"name":case"at-rule":Nd.name=ld.trim(),Xd(),Wd("before-name"),fd=fd+1;break;case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":Jd("value"),ld+=ud;break}break;case"}":switch(Gd()){case"before-name":case"name":case"before-value":case"value":ld&&(Nd.value=ld.trim()),Nd.name&&Nd.value&&Xd(),pf("end"),Xd(),zd(),Gd()==="at-group"&&(pf("at-group-end"),Xd(),zd()),fd>0&&(fd=fd-1);break;case"at-group":case"before-selector":case"selector":if(qd(-1)==="\\"){ld+=ud;break}fd>0&&Gd(1)==="at-group"&&(pf("at-group-end"),Xd()),fd>1&&zd(),fd>0&&(fd=fd-1);break;case"double-string":case"single-string":case"comment":ld+=ud;break}break;case'"':case"'":switch(Gd()){case"double-string":ud==='"'&&qd(-1)!=="\\"&&zd();break;case"single-string":ud==="'"&&qd(-1)!=="\\"&&zd();break;case"before-at-value":Jd("at-value"),Wd(ud==='"'?"double-string":"single-string");break;case"before-value":Jd("value"),Wd(ud==='"'?"double-string":"single-string");break;case"comment":break;default:qd(-1)!=="\\"&&Wd(ud==='"'?"double-string":"single-string")}ld+=ud;break;case"/":switch(Gd()){case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":case"selector":case"name":case"value":if(Ud("*")){var mf=Fd("*/");mf&&_f(mf+1)}else Gd()=="before-value"&&Jd("value"),ld+=ud;break;default:Ud("*")?(pf("comment"),Wd("comment"),_f()):ld+=ud;break}break;case"*":switch(Gd()){case"comment":Ud("/")?(Nd.text=ld,_f(),Xd(),zd()):ld+=ud;break;case"before-selector":ld+=ud,pf("selector"),Wd("selector");break;case"before-value":Jd("value"),ld+=ud;break;default:ld+=ud}break;case"@":switch(Gd()){case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":Jd("value"),ld+=ud;break;default:for(var Sf=!1,Tf,Af,Ef=0,Nf=kd.length;!Sf&&Ef+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:(["']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:(["'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(//,"["+escape$5(">+~`!@$%^&={}\\;/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(//g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),Part=function(qa){this.combinator=qa||" ",this.tag="*"};Part.prototype.toString=function(){if(!this.raw){var Ra="",qa,nd;if(Ra+=this.tag||"*",this.id&&(Ra+="#"+this.id),this.classes&&(Ra+="."+this.classList.join(".")),this.attributes)for(qa=0;nd=this.attributes[qa++];)Ra+="["+nd.name+(nd.operator?nd.operator+'"'+nd.value+'"':"")+"]";if(this.pseudos)for(qa=0;nd=this.pseudos[qa++];)Ra+=":"+nd.name,nd.value&&(Ra+="("+nd.value+")");this.raw=Ra}return this.raw};var Expression=function(){this.length=0};Expression.prototype.toString=function(){if(!this.raw){for(var Ra="",qa=0,nd;nd=this[qa++];)qa!==1&&(Ra+=" "),nd.combinator!==" "&&(Ra+=nd.combinator+" "),Ra+=nd;this.raw=Ra}return this.raw};var replacer=function(Ra,qa,nd,od,ld,ud,dd,pd,fd,md,vd,Ad,Nd,Od,kd,Ld){var Gd,jd;if((qa||!this.length)&&(Gd=this[this.length++]=new Expression,qa))return"";if(Gd||(Gd=this[this.length-1]),(nd||od||!Gd.length)&&(jd=Gd[Gd.length++]=new Part(nd)),jd||(jd=Gd[Gd.length-1]),ld)jd.tag=unescape$2(ld);else if(ud)jd.id=unescape$2(ud);else if(dd){var Fd=unescape$2(dd),Ud=jd.classes||(jd.classes={});if(!Ud[Fd]){Ud[Fd]=escape$5(dd);var qd=jd.classList||(jd.classList=[]);qd.push(Fd),qd.sort()}}else Nd?(Ld=Ld||kd,(jd.pseudos||(jd.pseudos=[])).push({type:Ad.length==1?"class":"element",name:unescape$2(Nd),escapedName:escape$5(Nd),value:Ld?unescape$2(Ld):null,escapedValue:Ld?escape$5(Ld):null})):pd&&(vd=vd?escape$5(vd):null,(jd.attributes||(jd.attributes=[])).push({operator:fd,name:unescape$2(pd),escapedName:escape$5(pd),value:vd?unescape$2(vd):null,escapedValue:vd?escape$5(vd):null}));return""},Expressions=function(qa){this.length=0;for(var nd=this,od=qa,ld;qa;){if(ld=qa.replace(slickRe,function(){return replacer.apply(nd,arguments)}),ld===qa)throw new Error(od+" is an invalid expression");qa=ld}};Expressions.prototype.toString=function(){if(!this.raw){for(var Ra=[],qa=0,nd;nd=this[qa++];)Ra.push(nd);this.raw=Ra.join(", ")}return this.raw};var cache$2={},parse$3=function(Ra){return Ra==null?null:(Ra=(""+Ra).replace(/^\s+|\s+$/g,""),cache$2[Ra]||(cache$2[Ra]=new Expressions(Ra)))},parser$2=parse$3;(function(Ra,qa){var nd=parser$2;Ra.exports=od;function od(ud,dd){this.text=ud,this.spec=void 0,this.styleAttribute=dd||!1}od.prototype.parsed=function(){return this.tokens||(this.tokens=ld(this.text)),this.tokens},od.prototype.specificity=function(){var ud=this.styleAttribute;return this.spec||(this.spec=dd(this.text,this.parsed())),this.spec;function dd(pd,fd){for(var md=fd||ld(pd),vd=[ud?1:0,0,0,0],Ad=[],Nd=0;Nd-1})},Ra.compareFunc=function(ld,ud){for(var dd=Math.min(ld.length,ud.length),pd=0;pdud[pd]?1:-1;return ld.length-ud.length},Ra.compare=function(ld,ud){return Ra.compareFunc(ld,ud)==1?ld:ud},Ra.getDefaultOptions=function(ld){var ud=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,resolveCSSVariables:!0,url:""},ld);return ud.webResources=ud.webResources||{},ud}}(utils$4)),utils$4}(function(Ra){var qa=require$$0$2;requireUtils$1();var nd=function(ld,ud,dd){const{xmlMode:pd,...fd}=ud;return ud=Object.assign({xml:{decodeEntities:!1,xmlMode:pd}},fd),ld=dd(ld),qa.load(ld,ud)},od=function(){var ld=[],ud=function(pd){var fd=Ra.exports.codeBlocks;return Object.keys(fd).forEach(function(md){var vd=new RegExp(fd[md].start+"([\\S\\s]*?)"+fd[md].end,"g");pd=pd.replace(vd,function(Ad,Nd){return ld.push(Ad),"JUICE_CODE_BLOCK_"+(ld.length-1)+"_"})}),pd},dd=function(pd){for(var fd=0;fd"},HBS:{start:"{{",end:"}}"}}})(cheerio$1);var cheerioExports=cheerio$1.exports,numbers$1={};numbers$1.romanize=function(Ra){if(isNaN(Ra))return NaN;for(var qa=String(+Ra).split(""),nd=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],od="",ld=3;ld--;)od=(nd[+qa.pop()+ld*10]||"")+od;return Array(+qa.join("")+1).join("M")+od};numbers$1.alphanumeric=function(Ra){for(var qa="",nd;Ra>0;)nd=(Ra-1)%26,qa=String.fromCharCode(65+nd)+qa,Ra=(Ra-nd)/26|0;return qa||void 0};const uniqueString=Ra=>{let qa="";do qa=(Math.random()+1).toString(36).substring(2);while(Ra.indexOf(qa)!==-1);return qa},replaceVariables=(Ra,qa)=>{let nd=/([a-z\-]+)\s*\(\s*([^\(\)]*?)\s*(?:,\s*([^\(\)]*?)\s*)?\s*\)/i,od=[],ld,ud=uniqueString(qa);for(;(ld=nd.exec(qa))!==null;){let pd=`${od.length}`;if(ld[1].toLowerCase()=="var"){const md=findVariableValue(Ra,ld[2]);if(md){qa=qa.replace(ld[0],md);continue}if(ld[3]){qa=qa.replace(ld[0],ld[3]);continue}}let fd=`${ud}${pd.padStart(5,"-")}`;qa=qa.replace(ld[0],fd),od.push({placeholder:fd,replace:ld[0]})}for(var dd=od.length-1;dd>=0;dd--){const pd=od[dd];qa=qa.replace(pd.placeholder,pd.replace)}return qa},findVariableValue=(Ra,qa)=>{for(;Ra;){if(Ra.styleProps&&qa in Ra.styleProps)return Ra.styleProps[qa].value;var Ra=Ra.pseudoElementParent||Ra.parent}};var variables$1={replaceVariables,findVariableValue},utils$3=requireUtils$1(),numbers=numbers$1,variables=variables$1,inline$2=function(qa){qa.ignoredPseudos=["hover","active","focus","visited","link"],qa.widthElements=["TABLE","TD","TH","IMG"],qa.heightElements=["TABLE","TD","TH","IMG"],qa.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],qa.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],qa.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},qa.excludedProperties=[],qa.juiceDocument=md,qa.inlineDocument=nd;function nd(Nd,Od,kd){kd=kd||{};var Ld=utils$3.parseCSS(Od),Gd=[],Ud="style",Fd={};if(kd.styleAttributeName&&(Ud=kd.styleAttributeName),Ld.forEach(zd),Gd.forEach(Yd),kd.inlinePseudoElements&&Gd.forEach(Jd),kd.applyWidthAttributes&&Gd.forEach(function(mf){yf(mf,"width")}),kd.applyHeightAttributes&&Gd.forEach(function(mf){yf(mf,"height")}),kd.applyAttributesTableElements&&Gd.forEach(pf),kd.insertPreservedExtraCss&&kd.extraCss){var jd=utils$3.getPreservedText(kd.extraCss,{mediaQueries:kd.preserveMediaQueries,fontFaces:kd.preserveFontFaces,keyFrames:kd.preserveKeyFrames});if(jd){var qd=null;kd.insertPreservedExtraCss!==!0?qd=Nd(kd.insertPreservedExtraCss):(qd=Nd("head"),qd.length||(qd=Nd("body")),qd.length||(qd=Nd.root())),qd.first().append("")}}function zd(mf){var Tf=mf[0],vf=mf[1],Af=new utils$3.Selector(Tf),Sf=Af.parsed();if(Sf){for(var Df=dd(Sf),If=0;If=0)return}}if(Df){var uh=Sf[Sf.length-1],qf=uh.pseudos;uh.pseudos=fd(uh.pseudos),Tf=Sf.toString(),uh.pseudos=qf}var Pf;try{Pf=Nd(Tf)}catch{return}Pf.each(function(){var Wf=this;if(Wf.name&&qa.nonVisualElements.indexOf(Wf.name.toUpperCase())>=0)return;if(Wf.counterProps||(Wf.counterProps=Wf.parent&&Wf.parent.counterProps?Object.create(Wf.parent.counterProps):{}),Df){var Yf="pseudo"+Df,Kf=Wf[Yf];Kf||(Kf=Wf[Yf]=Nd("").get(0),Kf.pseudoElementType=Df,Kf.pseudoElementParent=Wf,Kf.counterProps=Wf.counterProps,Wf[Yf]=Kf),Wf=Kf}if(!Wf.styleProps){if(Wf.styleProps={},Nd(Wf).attr(Ud)){var Cf="* { "+Nd(Wf).attr(Ud)+" } ";sh(utils$3.parseCSS(Cf)[0][1],new utils$3.Selector("")}}function zd(mf){var Sf=mf[0],Tf=mf[1],Af=new utils$3.Selector(Sf),Ef=Af.parsed();if(Ef){for(var Nf=dd(Ef),If=0;If=0)return}}if(Nf){var ph=Ef[Ef.length-1],qf=ph.pseudos;ph.pseudos=fd(ph.pseudos),Sf=Ef.toString(),ph.pseudos=qf}var Lf;try{Lf=Nd(Sf)}catch{return}Lf.each(function(){var Wf=this;if(Wf.name&&qa.nonVisualElements.indexOf(Wf.name.toUpperCase())>=0)return;if(Wf.counterProps||(Wf.counterProps=Wf.parent&&Wf.parent.counterProps?Object.create(Wf.parent.counterProps):{}),Nf){var Jf="pseudo"+Nf,Kf=Wf[Jf];Kf||(Kf=Wf[Jf]=Nd("").get(0),Kf.pseudoElementType=Nf,Kf.pseudoElementParent=Wf,Kf.counterProps=Wf.counterProps,Wf[Jf]=Kf),Wf=Kf}if(!Wf.styleProps){if(Wf.styleProps={},Nd(Wf).attr(jd)){var Cf="* { "+Nd(Wf).attr(jd)+" } ";dh(utils$3.parseCSS(Cf)[0][1],new utils$3.Selector(" - `),Pm+=` + `),Lm+=` - `,Nd.value=Wf.createContainer(Pm)},Cf=()=>{const Nm=css2json(Sf.value.getValue()),mm=customCssWithTemplate(Nm,Gd.value,customizeTheme(themeMap[Od.value],{fontSize:jd.value,color:Gd.value}));Wf.setOptions({theme:mm}),Kf()};onMounted(()=>{const Nm=document.querySelector("#cssEditor");Nm.value=Jf().content;const mm=Ra.value?"darcula":"xq-light";Sf.value=markRaw(CodeMirror.fromTextArea(Nm,{mode:"css",theme:mm,lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Vm){formatDoc(Vm.getValue(),"css").then(yh=>{Jf().content=yh,Vm.setValue(yh)})}}})),Sf.value.on("keyup",(Pm,Vm)=>{(Vm.keyCode>=65&&Vm.keyCode<=90||Vm.keyCode===189)&&Pm.showHint(Vm)}),Sf.value.on("update",()=>{Cf(),Jf().content=Sf.value.getValue()})}),watch(Ra,()=>{var mm,Pm;const Nm=Ra.value?"darcula":"xq-light";(Pm=(mm=toRaw(Sf.value))==null?void 0:mm.setOption)==null||Pm.call(mm,"theme",Nm)});const xf=()=>{dd.value=!1,nd.value=!0,fd.value=!1,Od.value=themeOptions[0].value,kd.value=fontFamilyOptions[0].value,kd.value=fontFamilyOptions[0].value,Ld.value=fontSizeOptions[2].value,Gd.value=colorOptions[0].value,Ud.value=codeBlockThemeOptions[23].value,Fd.value=legendOptions[3].value,Gf.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:If.value||DEFAULT_CSS_CONTENT}]},Sf.value.setValue(DEFAULT_CSS_CONTENT),Cf(),Kf(),Ke$1.success("样式重置成功~")},Xf=Nm=>(...mm)=>{Nm(...mm),Kf()},sh=(Nm,mm)=>{const Pm=themeMap[Od.value],Vm=Number(Nm.replace("px",""));return customCssWithTemplate(css2json(Jf().content),mm,customizeTheme(Pm,{fontSize:Vm,color:mm}))},Ah=Xf(Nm=>{Wf.setOptions({theme:customCssWithTemplate(css2json(Jf().content),Gd.value,customizeTheme(themeMap[Nm],{fontSize:jd.value}))}),Od.value=Nm}),dh=Xf(Nm=>{Wf.setOptions({fonts:Nm}),kd.value=Nm}),Rf=Xf(Nm=>{const mm=sh(Nm,Gd.value);Wf.setOptions({size:Nm,theme:mm}),Ld.value=Nm}),gh=Xf(Nm=>{const mm=sh(Ld.value,Nm);Wf.setOptions({theme:mm}),Gd.value=Nm}),Bh=Xf(Nm=>{Ud.value=Nm}),th=Xf(Nm=>{Fd.value=Nm}),$f=Xf(()=>{od()}),Uf=Xf(()=>{pd()}),Zf=Xf(()=>{md()}),kh=Xf(()=>{Ad()}),Wh=()=>{exportHTML(Gd.value),document.querySelector("#output").innerHTML=Nd.value},xh=()=>{downloadMD(qd.value.getValue())},pm=()=>{const Nm=document.body,mm=document.createElement("input");mm.type="file",mm.name="filename",mm.accept=".md",mm.onchange=()=>{const Pm=mm.files[0];if(!Pm)return;const Vm=new FileReader;Vm.readAsText(Pm),Vm.onload=yh=>{qd.value.setValue(yh.target.result),Ke$1.success("文档导入成功")}},Nm.appendChild(mm),mm.click(),Nm.removeChild(mm)},Jh=ref$1(!1);return{isDark:Ra,toggleDark:qa,isEditOnLeft:ld,toggleEditOnLeft:ud,isMacCodeBlock:nd,isCiteStatus:dd,citeStatusChanged:Uf,isUseIndent:vd,useIndentChanged:kh,isCountStatus:fd,countStatusChanged:Zf,output:Nd,editor:qd,cssEditor:Sf,theme:Od,fontFamily:kd,fontSize:Ld,primaryColor:Gd,codeBlockTheme:Ud,legend:Fd,readingTime:Yf,editorRefresh:Kf,themeChanged:Ah,fontChanged:dh,sizeChanged:Rf,colorChanged:gh,codeBlockThemeChanged:Bh,legendChanged:th,macCodeBlockChanged:$f,formatContent:vf,exportEditorContent2HTML:Wh,exportEditorContent2MD:xh,importMarkdownContent:pm,isOpenConfirmDialog:Jh,resetStyleConfirm:()=>{Jh.value=!0},resetStyle:xf,cssContentConfig:Gf,addCssContentTab:qf,validatorTabName:Pf,setCssEditorValue:Df,tabChanged:ih,renameTab:uh,posts:yf,currentPostIndex:Xd,addPost:pf,renamePost:mf,delPost:Tf,isOpenPostSlider:Jd,isOpenRightSlider:Yd}}),useDisplayStore=defineStore("display",()=>{const Ra=ref$1(!1),qa=useToggle(Ra),nd=ref$1(!1),od=useToggle(nd),ld=ref$1(!1),ud=useToggle(ld);return{isShowCssEditor:Ra,toggleShowCssEditor:qa,isShowInsertFormDialog:nd,toggleShowInsertFormDialog:od,isShowUploadImgDialog:ld,toggleShowUploadImgDialog:ud}}),_hoisted_1$d={class:"space-x-2 flex justify-between"},_hoisted_2$8={class:"space-y-2 border-1 rounded p-2"},_sfc_main$15=defineComponent({__name:"InsertFormDialog",setup(Ra){const qa=useStore(),nd=useDisplayStore(),{toggleShowInsertFormDialog:od}=nd,ld=ref$1(3),ud=ref$1(3),dd=ref$1({});function pd(){ld.value=3,ud.value=3,dd.value={}}function fd(){const vd=createTable({rows:ld.value,cols:ud.value,data:dd.value});toRaw(qa.editor).replaceSelection(` + `,Nd.value=Wf.createContainer(Lm)},Cf=()=>{const Im=css2json(Ef.value.getValue()),gm=customCssWithTemplate(Im,Gd.value,customizeTheme(themeMap[Od.value],{fontSize:Ud.value,color:Gd.value}));Wf.setOptions({theme:gm}),Kf()};onMounted(()=>{const Im=document.querySelector("#cssEditor");Im.value=Qf().content;const gm=Ra.value?"darcula":"xq-light";Ef.value=markRaw(CodeMirror.fromTextArea(Im,{mode:"css",theme:gm,lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Vm){formatDoc(Vm.getValue(),"css").then(Th=>{Qf().content=Th,Vm.setValue(Th)})}}})),Ef.value.on("keyup",(Lm,Vm)=>{(Vm.keyCode>=65&&Vm.keyCode<=90||Vm.keyCode===189)&&Lm.showHint(Vm)}),Ef.value.on("update",()=>{Cf(),Qf().content=Ef.value.getValue()})}),watch(Ra,()=>{var gm,Lm;const Im=Ra.value?"darcula":"xq-light";(Lm=(gm=toRaw(Ef.value))==null?void 0:gm.setOption)==null||Lm.call(gm,"theme",Im)});const xf=()=>{dd.value=!1,nd.value=!0,fd.value=!1,Od.value=themeOptions[0].value,kd.value=fontFamilyOptions[0].value,kd.value=fontFamilyOptions[0].value,Ld.value=fontSizeOptions[2].value,Gd.value=colorOptions[0].value,jd.value=codeBlockThemeOptions[23].value,Fd.value=legendOptions[3].value,Gf.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:If.value||DEFAULT_CSS_CONTENT}]},Ef.value.setValue(DEFAULT_CSS_CONTENT),Cf(),Kf(),Ke$1.success("样式重置成功~")},Yf=Im=>(...gm)=>{Im(...gm),Kf()},dh=(Im,gm)=>{const Lm=themeMap[Od.value],Vm=Number(Im.replace("px",""));return customCssWithTemplate(css2json(Qf().content),gm,customizeTheme(Lm,{fontSize:Vm,color:gm}))},Rh=Yf(Im=>{Wf.setOptions({theme:customCssWithTemplate(css2json(Qf().content),Gd.value,customizeTheme(themeMap[Im],{fontSize:Ud.value}))}),Od.value=Im}),th=Yf(Im=>{Wf.setOptions({fonts:Im}),kd.value=Im}),Bf=Yf(Im=>{const gm=dh(Im,Gd.value);Wf.setOptions({size:Im,theme:gm}),Ld.value=Im}),Sh=Yf(Im=>{const gm=dh(Ld.value,Im);Wf.setOptions({theme:gm}),Gd.value=Im}),Fh=Yf(Im=>{jd.value=Im}),uh=Yf(Im=>{Fd.value=Im}),Pf=Yf(()=>{od()}),Uf=Yf(()=>{pd()}),Zf=Yf(()=>{md()}),mh=Yf(()=>{Ad()}),Mh=()=>{exportHTML(Gd.value),document.querySelector("#output").innerHTML=Nd.value},_h=()=>{downloadMD(qd.value.getValue())},pm=()=>{const Im=document.body,gm=document.createElement("input");gm.type="file",gm.name="filename",gm.accept=".md",gm.onchange=()=>{const Lm=gm.files[0];if(!Lm)return;const Vm=new FileReader;Vm.readAsText(Lm),Vm.onload=Th=>{qd.value.setValue(Th.target.result),Ke$1.success("文档导入成功")}},Im.appendChild(gm),gm.click(),Im.removeChild(gm)},Jh=ref$1(!1);return{isDark:Ra,toggleDark:qa,isEditOnLeft:ld,toggleEditOnLeft:ud,isMacCodeBlock:nd,isCiteStatus:dd,citeStatusChanged:Uf,isUseIndent:vd,useIndentChanged:mh,isCountStatus:fd,countStatusChanged:Zf,output:Nd,editor:qd,cssEditor:Ef,theme:Od,fontFamily:kd,fontSize:Ld,primaryColor:Gd,codeBlockTheme:jd,legend:Fd,readingTime:Jf,editorRefresh:Kf,themeChanged:Rh,fontChanged:th,sizeChanged:Bf,colorChanged:Sh,codeBlockThemeChanged:Fh,legendChanged:uh,macCodeBlockChanged:Pf,formatContent:Tf,exportEditorContent2HTML:Mh,exportEditorContent2MD:_h,importMarkdownContent:pm,isOpenConfirmDialog:Jh,resetStyleConfirm:()=>{Jh.value=!0},resetStyle:xf,cssContentConfig:Gf,addCssContentTab:qf,validatorTabName:Lf,setCssEditorValue:Nf,tabChanged:Xf,renameTab:ph,posts:_f,currentPostIndex:Xd,addPost:pf,renamePost:mf,delPost:Sf,isOpenPostSlider:Jd,isOpenRightSlider:Wd}}),useDisplayStore=defineStore("display",()=>{const Ra=ref$1(!1),qa=useToggle(Ra),nd=ref$1(!1),od=useToggle(nd),ld=ref$1(!1),ud=useToggle(ld);return{isShowCssEditor:Ra,toggleShowCssEditor:qa,isShowInsertFormDialog:nd,toggleShowInsertFormDialog:od,isShowUploadImgDialog:ld,toggleShowUploadImgDialog:ud}}),_hoisted_1$e={class:"space-x-2 flex justify-between"},_hoisted_2$9={class:"space-y-2 border-1 rounded p-2"},_sfc_main$15=defineComponent({__name:"InsertFormDialog",setup(Ra){const qa=useStore(),nd=useDisplayStore(),{toggleShowInsertFormDialog:od}=nd,ld=ref$1(3),ud=ref$1(3),dd=ref$1({});function pd(){ld.value=3,ud.value=3,dd.value={}}function fd(){const vd=createTable({rows:ld.value,cols:ud.value,data:dd.value});toRaw(qa.editor).replaceSelection(` ${vd} -`,"end"),pd(),od()}function md(vd){vd||od(!1)}return(vd,Ad)=>{const Nd=_sfc_main$16,Od=_sfc_main$17,kd=_sfc_main$18,Ld=_sfc_main$19,Gd=_sfc_main$1a,Ud=_sfc_main$1b,Fd=_sfc_main$1c,jd=_sfc_main$1d,qd=_sfc_main$1e,zd=_sfc_main$1o,Yd=_sfc_main$1f,Jd=_sfc_main$1g,yf=_sfc_main$1h;return openBlock(),createBlock(yf,{open:unref(nd).isShowInsertFormDialog,"onUpdate:open":md},{default:withCtx(()=>[createVNode(Jd,null,{default:withCtx(()=>[createVNode(Od,null,{default:withCtx(()=>[createVNode(Nd,null,{default:withCtx(()=>Ad[3]||(Ad[3]=[createTextVNode("插入表格")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_1$d,[createVNode(jd,{modelValue:unref(ld),"onUpdate:modelValue":Ad[0]||(Ad[0]=Xd=>isRef(ld)?ld.value=Xd:null),min:1,max:100},{default:withCtx(()=>[createVNode(kd,null,{default:withCtx(()=>Ad[4]||(Ad[4]=[createTextVNode("行数")])),_:1}),createVNode(Fd,null,{default:withCtx(()=>[createVNode(Ld),createVNode(Gd),createVNode(Ud)]),_:1})]),_:1},8,["modelValue"]),createVNode(jd,{modelValue:unref(ud),"onUpdate:modelValue":Ad[1]||(Ad[1]=Xd=>isRef(ud)?ud.value=Xd:null),min:1,max:100},{default:withCtx(()=>[createVNode(kd,null,{default:withCtx(()=>Ad[5]||(Ad[5]=[createTextVNode("列数")])),_:1}),createVNode(Fd,null,{default:withCtx(()=>[createVNode(Ld),createVNode(Gd),createVNode(Ud)]),_:1})]),_:1},8,["modelValue"])]),createBaseVNode("div",_hoisted_2$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ld)+1,Xd=>(openBlock(),createElementBlock("div",{key:Xd,class:normalizeClass([{"head-style":Xd===1},"space-x-2 flex"])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ud),pf=>(openBlock(),createBlock(qd,{key:pf,modelValue:unref(dd)[`k_${Xd-1}_${pf-1}`],"onUpdate:modelValue":mf=>unref(dd)[`k_${Xd-1}_${pf-1}`]=mf,class:normalizeClass({"bg-gray-100 dark:bg-gray-900":Xd===1}),placeholder:Xd===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","class","placeholder"]))),128))],2))),128))]),createVNode(Yd,null,{default:withCtx(()=>[createVNode(zd,{variant:"outline",onClick:Ad[2]||(Ad[2]=Xd=>unref(od)(!1))},{default:withCtx(()=>Ad[6]||(Ad[6]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(zd,{onClick:fd},{default:withCtx(()=>Ad[7]||(Ad[7]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),_sfc_main$14=defineComponent({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(fg),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$c={class:"space-y-4"},_hoisted_2$7={class:"h-60 border"},_sfc_main$13=defineComponent({__name:"CustomUploadForm",setup(Ra){const qa=useStore(),nd=useLocalStorage("formCustomConfig",removeLeft(` +`,"end"),pd(),od()}function md(vd){vd||od(!1)}return(vd,Ad)=>{const Nd=_sfc_main$16,Od=_sfc_main$17,kd=_sfc_main$18,Ld=_sfc_main$19,Gd=_sfc_main$1a,jd=_sfc_main$1b,Fd=_sfc_main$1c,Ud=_sfc_main$1d,qd=_sfc_main$1e,zd=_sfc_main$1o,Wd=_sfc_main$1f,Jd=_sfc_main$1g,_f=_sfc_main$1h;return openBlock(),createBlock(_f,{open:unref(nd).isShowInsertFormDialog,"onUpdate:open":md},{default:withCtx(()=>[createVNode(Jd,null,{default:withCtx(()=>[createVNode(Od,null,{default:withCtx(()=>[createVNode(Nd,null,{default:withCtx(()=>Ad[3]||(Ad[3]=[createTextVNode("插入表格")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_1$e,[createVNode(Ud,{modelValue:unref(ld),"onUpdate:modelValue":Ad[0]||(Ad[0]=Xd=>isRef(ld)?ld.value=Xd:null),min:1,max:100},{default:withCtx(()=>[createVNode(kd,null,{default:withCtx(()=>Ad[4]||(Ad[4]=[createTextVNode("行数")])),_:1}),createVNode(Fd,null,{default:withCtx(()=>[createVNode(Ld),createVNode(Gd),createVNode(jd)]),_:1})]),_:1},8,["modelValue"]),createVNode(Ud,{modelValue:unref(ud),"onUpdate:modelValue":Ad[1]||(Ad[1]=Xd=>isRef(ud)?ud.value=Xd:null),min:1,max:100},{default:withCtx(()=>[createVNode(kd,null,{default:withCtx(()=>Ad[5]||(Ad[5]=[createTextVNode("列数")])),_:1}),createVNode(Fd,null,{default:withCtx(()=>[createVNode(Ld),createVNode(Gd),createVNode(jd)]),_:1})]),_:1},8,["modelValue"])]),createBaseVNode("div",_hoisted_2$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ld)+1,Xd=>(openBlock(),createElementBlock("div",{key:Xd,class:normalizeClass([{"head-style":Xd===1},"space-x-2 flex"])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ud),pf=>(openBlock(),createBlock(qd,{key:pf,modelValue:unref(dd)[`k_${Xd-1}_${pf-1}`],"onUpdate:modelValue":mf=>unref(dd)[`k_${Xd-1}_${pf-1}`]=mf,class:normalizeClass({"bg-gray-100 dark:bg-gray-900":Xd===1}),placeholder:Xd===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","class","placeholder"]))),128))],2))),128))]),createVNode(Wd,null,{default:withCtx(()=>[createVNode(zd,{variant:"outline",onClick:Ad[2]||(Ad[2]=Xd=>unref(od)(!1))},{default:withCtx(()=>Ad[6]||(Ad[6]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(zd,{onClick:fd},{default:withCtx(()=>Ad[7]||(Ad[7]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),_sfc_main$14=defineComponent({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(fg),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$d={class:"space-y-4"},_hoisted_2$8={class:"h-60 border"},_sfc_main$13=defineComponent({__name:"CustomUploadForm",setup(Ra){const qa=useStore(),nd=useLocalStorage("formCustomConfig",removeLeft(` const {file, util, okCb, errCb} = CUSTOM_ARG const param = new FormData() param.append('file', file) @@ -1094,11 +1094,22 @@ ${vd} }).catch(err => { errCb(err) }) -`).trim()),od=useTemplateRef("formCustomTextarea"),ld=ref$1(null);onMounted(()=>{ld.value=markRaw(CodeMirror.fromTextArea(od.value,{mode:"javascript",theme:qa.isDark?"darcula":"xq-light",lineNumbers:!0})),nextTick$1(()=>{nextTick$1(()=>{var dd;(dd=ld.value)==null||dd.setValue(nd.value)})})});function ud(){const dd=ld.value.getValue();localStorage.setItem("formCustomConfig",dd),Ke$1.success("保存成功")}return(dd,pd)=>{const fd=_sfc_main$1o;return openBlock(),createElementBlock("div",_hoisted_1$c,[createBaseVNode("div",_hoisted_2$7,[createBaseVNode("textarea",{ref_key:"formCustomTextarea",ref:od,placeholder:"Your custom code here."},null,512)]),createVNode(fd,{variant:"link",class:"p-0",href:"https://github.com/doocs/md#自定义上传逻辑",target:"_blank"},{default:withCtx(()=>pd[0]||(pd[0]=[createTextVNode(" 参数详情 ")])),_:1}),createVNode(fd,{class:"block",onClick:ud},{default:withCtx(()=>pd[1]||(pd[1]=[createTextVNode(" 保存配置 ")])),_:1})])}}}),_sfc_main$12=defineComponent({__name:"Switch",props:{defaultChecked:{type:Boolean},checked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{},asChild:{type:Boolean},as:{},class:{}},emits:["update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(cg$1),mergeProps(unref(ud),{class:unref(cn$5)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",nd.class)}),{default:withCtx(()=>[createVNode(unref(pg),{class:normalizeClass(unref(cn$5)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5"))},{default:withCtx(()=>[renderSlot(dd.$slots,"thumb")]),_:3},8,["class"])]),_:3},16,["class"]))}}),_sfc_main$11=defineComponent({__name:"FormItem",props:{label:{},required:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>{const ld=_sfc_main$18;return openBlock(),createElementBlock("div",null,[createVNode(ld,{class:"flex items-center"},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(["mr-4 min-h-4 w-[150px] flex-shrink-0 text-right font-bold",{required:qa.required}])},toDisplayString(qa.label),3),renderSlot(nd.$slots,"default",{},void 0,!0)]),_:3})])}}}),__unplugin_components_12=_export_sfc(_sfc_main$11,[["__scopeId","data-v-a66ad4e0"]]),_sfc_main$10=defineComponent({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(mg),mergeProps({class:unref(cn$5)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",qa.class)},nd.value),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$$=defineComponent({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(ky$1),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$b={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$_=defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(zy),mergeProps(unref(od),{class:unref(cn$5)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",qa.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$b,[createVNode(unref(Ky),null,{default:withCtx(()=>[createVNode(unref(Check),{class:"h-4 w-4"})]),_:1})]),createVNode(unref(jy),null,{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),_sfc_main$Z=defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(qy),mergeProps(unref(od),{class:unref(cn$5)("flex cursor-default items-center justify-center py-1",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{},()=>[createVNode(unref(ChevronDown),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),_sfc_main$Y=defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Gy),mergeProps(unref(od),{class:unref(cn$5)("flex cursor-default items-center justify-center py-1",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{},()=>[createVNode(unref(ChevronUp),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),_sfc_main$X=defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(My),mergeProps(unref(od),{class:unref(cn$5)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default"),createVNode(unref(Xy),{"as-child":""},{default:withCtx(()=>[createVNode(unref(ChevronDown),{class:"h-4 w-4 shrink-0 opacity-50"})]),_:1})]),_:3},16,["class"]))}}),_sfc_main$W=defineComponent({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Yy),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$V=defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(Vy),null,{default:withCtx(()=>[createVNode(unref(Fy),mergeProps({...unref(ud),...dd.$attrs},{class:unref(cn$5)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",dd.position==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",nd.class)}),{default:withCtx(()=>[createVNode(unref(_sfc_main$Y)),createVNode(unref(Uy),{class:normalizeClass(unref(cn$5)("p-1",dd.position==="popper"&&"h-[--radix-select-trigger-height] w-full min-w-[--radix-select-trigger-width]"))},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},8,["class"]),createVNode(unref(_sfc_main$Z))]),_:3},16,["class"])]),_:3}))}}),_sfc_main$U=defineComponent({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(vg),mergeProps(nd.value,{class:unref(cn$5)("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$a={class:"truncate"},_sfc_main$T=defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(hg),mergeProps(unref(od),{class:unref(cn$5)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",qa.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$a,[renderSlot(ld.$slots,"default")])]),_:3},16,["class"]))}}),_hoisted_1$9={class:"space-y-4"},_hoisted_2$6={class:"space-y-4"},_hoisted_3$5={class:"space-y-4"},_hoisted_4$5={class:"space-y-4"},_hoisted_5$4={class:"space-y-4"},_hoisted_6$4={class:"space-y-4"},_hoisted_7$2={class:"flex flex-col items-start"},_hoisted_8$2={class:"space-y-4"},_hoisted_9$1={class:"flex flex-col items-start"},_sfc_main$S=defineComponent({__name:"UploadImgDialog",emits:["uploadImage"],setup(Ra,{emit:qa}){const nd=qa,od=useDisplayStore(),ld=ref$1({repo:"",branch:"",accessToken:""}),ud=ref$1({accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:"",useSSL:!0}),dd=ref$1({secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""}),pd=ref$1({accessKey:"",secretKey:"",bucket:"",domain:"",region:"",path:""}),fd=ref$1({endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""}),md=ref$1({accountId:"",accessKey:"",secretKey:"",bucket:"",domain:"",path:""}),vd=ref$1({proxyOrigin:"",appID:"",appsecret:""}),Ad=ref$1(window.location.href.startsWith("http")),Nd=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"mp",label:"公众号图床"},{value:"r2",label:"Cloudflare R2"},{value:"formCustom",label:"自定义代码"}],Od=ref$1("default"),kd=ref$1("upload");onBeforeMount(()=>{localStorage.getItem("githubConfig")&&(ld.value=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(ud.value=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(dd.value=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("qiniuConfig")&&(pd.value=JSON.parse(localStorage.getItem("qiniuConfig"))),localStorage.getItem("minioConfig")&&(fd.value=JSON.parse(localStorage.getItem("minioConfig"))),localStorage.getItem("r2Config")&&(md.value=JSON.parse(localStorage.getItem("r2Config"))),localStorage.getItem("imgHost")&&(Od.value=localStorage.getItem("imgHost")),localStorage.getItem("mpConfig")&&(vd.value=JSON.parse(localStorage.getItem("mpConfig")))});function Ld(){localStorage.setItem("imgHost",Od.value),Ke$1.success("已成功切换图床")}function Gd(){if(!(ld.value.repo&&ld.value.accessToken)){const Tf=ld.value.repo?"token":"GitHub 仓库";Ke$1.error(`参数「${Tf}」不能为空`);return}localStorage.setItem("githubConfig",JSON.stringify(ld.value)),Ke$1.success("保存成功")}function Ud(){if(!(ud.value.accessKeyId&&ud.value.accessKeySecret&&ud.value.bucket&&ud.value.region)){Ke$1.error("阿里云 OSS 参数配置不全");return}localStorage.setItem("aliOSSConfig",JSON.stringify(ud.value)),Ke$1.success("保存成功")}function Fd(){if(!(fd.value.endpoint&&fd.value.bucket&&fd.value.accessKey&&fd.value.secretKey)){Ke$1.error("MinIO 参数配置不全");return}localStorage.setItem("minioConfig",JSON.stringify(fd.value)),Ke$1.success("保存成功")}function jd(){if(!(dd.value.secretId&&dd.value.secretKey&&dd.value.bucket&&dd.value.region)){Ke$1.error("腾讯云 COS 参数配置不全");return}localStorage.setItem("txCOSConfig",JSON.stringify(dd.value)),Ke$1.success("保存成功")}function qd(){if(!(pd.value.accessKey&&pd.value.secretKey&&pd.value.bucket&&pd.value.domain)){Ke$1.error("七牛云 Kodo 参数配置不全");return}localStorage.setItem("qiniuConfig",JSON.stringify(pd.value)),Ke$1.success("保存成功")}function zd(){if(!(md.value.accountId&&md.value.accessKey&&md.value.secretKey&&md.value.bucket&&md.value.domain)){Ke$1.error("Cloudflare R2参数配置不全");return}localStorage.setItem("r2Config",JSON.stringify(md.value)),Ke$1.success("保存成功")}function Yd(){if(!(vd.value.appID&&vd.value.appsecret)){Ke$1.error("公众号图床 参数配置不全");return}if(Ad.value&&!vd.value.proxyOrigin){Ke$1.error("代理域名必须配置");return}localStorage.setItem("mpConfig",JSON.stringify(vd.value)),Ke$1.success("保存成功")}function Jd(Tf){const vf=checkImage(Tf);if(!vf.ok)return Ke$1.error(vf.msg||""),!1;let Af=localStorage.getItem("imgHost");Af=Af||"default",localStorage.setItem("imgHost",Af);const Sf=localStorage.getItem(`${Af}Config`);return Af==="default"||Sf?!0:(Ke$1.error(`请先配置 ${Af} 图床参数`),!1)}const yf=ref$1(!1),{open:Xd,onChange:pf}=useFileDialog({accept:"image/*"});pf(Tf=>{if(Tf==null)return;const vf=Tf[0];Jd(vf)&&nd("uploadImage",vf)});function mf(Tf){yf.value=!1,Tf.stopPropagation();const vf=Array.from(Tf.dataTransfer.files)[0];Jd(vf)&&nd("uploadImage",vf)}return(Tf,vf)=>{const Af=_sfc_main$16,Sf=_sfc_main$17,Df=_sfc_main$T,If=_sfc_main$U,Gf=_sfc_main$W,Jf=_sfc_main$X,ih=_sfc_main$_,uh=_sfc_main$V,qf=_sfc_main$$,Pf=_sfc_main$18,Wf=_sfc_main$10,Yf=_sfc_main$1e,Kf=__unplugin_components_12,Cf=_sfc_main$1o,xf=_sfc_main$12,Xf=_sfc_main$13,sh=_sfc_main$14,Ah=_sfc_main$1g,dh=_sfc_main$1h;return openBlock(),createBlock(dh,{open:unref(od).isShowUploadImgDialog,"onUpdate:open":vf[42]||(vf[42]=Rf=>unref(od).isShowUploadImgDialog=Rf)},{default:withCtx(()=>[createVNode(Ah,{class:"max-w-max"},{default:withCtx(()=>[createVNode(Sf,null,{default:withCtx(()=>[createVNode(Af,null,{default:withCtx(()=>vf[43]||(vf[43]=[createTextVNode("本地上传")])),_:1})]),_:1}),createVNode(sh,{modelValue:unref(kd),"onUpdate:modelValue":vf[41]||(vf[41]=Rf=>isRef(kd)?kd.value=Rf:null),class:"w-max"},{default:withCtx(()=>[createVNode(If,null,{default:withCtx(()=>[createVNode(Df,{value:"upload"},{default:withCtx(()=>vf[44]||(vf[44]=[createTextVNode(" 选择上传 ")])),_:1}),createVNode(Df,{value:"github"},{default:withCtx(()=>vf[45]||(vf[45]=[createTextVNode(" GitHub 图床 ")])),_:1}),createVNode(Df,{value:"aliOSS"},{default:withCtx(()=>vf[46]||(vf[46]=[createTextVNode(" 阿里云 OSS ")])),_:1}),createVNode(Df,{value:"txCOS"},{default:withCtx(()=>vf[47]||(vf[47]=[createTextVNode(" 腾讯云 COS ")])),_:1}),createVNode(Df,{value:"qiniu"},{default:withCtx(()=>vf[48]||(vf[48]=[createTextVNode(" 七牛云 Kodo ")])),_:1}),createVNode(Df,{value:"minio"},{default:withCtx(()=>vf[49]||(vf[49]=[createTextVNode(" MinIO ")])),_:1}),createVNode(Df,{value:"mp"},{default:withCtx(()=>vf[50]||(vf[50]=[createTextVNode(" 公众号图床 ")])),_:1}),createVNode(Df,{value:"r2"},{default:withCtx(()=>vf[51]||(vf[51]=[createTextVNode(" Cloudflare R2 ")])),_:1}),createVNode(Df,{value:"formCustom"},{default:withCtx(()=>vf[52]||(vf[52]=[createTextVNode(" 自定义代码 ")])),_:1})]),_:1}),createVNode(Wf,{value:"upload"},{default:withCtx(()=>[createVNode(Pf,null,{default:withCtx(()=>[vf[53]||(vf[53]=createBaseVNode("span",{class:"my-4 block"}," 图床 ",-1)),createVNode(qf,{modelValue:unref(Od),"onUpdate:modelValue":[vf[0]||(vf[0]=Rf=>isRef(Od)?Od.value=Rf:null),Ld]},{default:withCtx(()=>[createVNode(Jf,null,{default:withCtx(()=>[createVNode(Gf,{placeholder:"请选择"})]),_:1}),createVNode(uh,null,{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(Nd,Rf=>createVNode(ih,{key:Rf.value,label:Rf.label,value:Rf.value},{default:withCtx(()=>[createTextVNode(toDisplayString(Rf.label),1)]),_:2},1032,["label","value"])),64))]),_:1})]),_:1},8,["modelValue"])]),_:1}),createBaseVNode("div",{class:normalizeClass(["bg-clip-padding mt-4 h-50 flex flex-col cursor-pointer items-center justify-evenly border-2 rounded border-dashed transition-colors hover:border-gray-700 hover:bg-gray-400/50 dark:hover:border-gray-200 dark:hover:bg-gray-500/50",{"border-gray-700 bg-gray-400/50 dark:border-gray-200 dark:bg-gray-500/50":unref(yf)}]),onClick:vf[1]||(vf[1]=Rf=>unref(Xd)()),onDrop:withModifiers(mf,["prevent"]),onDragover:vf[2]||(vf[2]=withModifiers(Rf=>yf.value=!0,["prevent"])),onDragleave:vf[3]||(vf[3]=withModifiers(Rf=>yf.value=!1,["prevent"]))},[createVNode(unref(CloudUpload),{class:"size-20"}),vf[54]||(vf[54]=createBaseVNode("p",null,[createTextVNode(" 将图片拖到此处,或 "),createBaseVNode("strong",null,"点击上传")],-1))],34)]),_:1}),createVNode(Wf,{value:"github"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$9,[createVNode(Kf,{label:"GitHub 仓库",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(ld).repo,"onUpdate:modelValue":vf[4]||(vf[4]=Rf=>unref(ld).repo=Rf),modelModifiers:{trim:!0},placeholder:"如:github.com/yanglbme/resource"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"分支"},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(ld).branch,"onUpdate:modelValue":vf[5]||(vf[5]=Rf=>unref(ld).branch=Rf),modelModifiers:{trim:!0},placeholder:"如:release,可不填,默认 master"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"Token",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(ld).accessToken,"onUpdate:modelValue":vf[6]||(vf[6]=Rf=>unref(ld).accessToken=Rf),modelModifiers:{trim:!0},type:"password",placeholder:"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46"},null,8,["modelValue"])]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{variant:"link",class:"p-0",as:"a",href:"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token",target:"_blank"},{default:withCtx(()=>vf[55]||(vf[55]=[createTextVNode(" 如何获取 GitHub Token? ")])),_:1})]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{onClick:Gd},{default:withCtx(()=>vf[56]||(vf[56]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})])]),_:1}),createVNode(Wf,{value:"aliOSS"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$6,[createVNode(Kf,{label:"AccessKey ID",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(ud).accessKeyId,"onUpdate:modelValue":vf[7]||(vf[7]=Rf=>unref(ud).accessKeyId=Rf),modelModifiers:{trim:!0},placeholder:"如:LTAI4GdoocsmdoxUf13ylbaNHk"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"AccessKey Secret",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(ud).accessKeySecret,"onUpdate:modelValue":vf[8]||(vf[8]=Rf=>unref(ud).accessKeySecret=Rf),modelModifiers:{trim:!0},type:"password",placeholder:"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"Bucket",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(ud).bucket,"onUpdate:modelValue":vf[9]||(vf[9]=Rf=>unref(ud).bucket=Rf),modelModifiers:{trim:!0},placeholder:"如:doocs"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"Bucket 所在区域",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(ud).region,"onUpdate:modelValue":vf[10]||(vf[10]=Rf=>unref(ud).region=Rf),modelModifiers:{trim:!0},placeholder:"如:oss-cn-shenzhen"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"UseSSL",required:""},{default:withCtx(()=>[createVNode(xf,{checked:unref(ud).useSSL,"onUpdate:checked":vf[11]||(vf[11]=Rf=>unref(ud).useSSL=Rf)},null,8,["checked"])]),_:1}),createVNode(Kf,{label:"自定义 CDN 域名"},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(ud).cdnHost,"onUpdate:modelValue":vf[12]||(vf[12]=Rf=>unref(ud).cdnHost=Rf),modelModifiers:{trim:!0},placeholder:"如:https://imagecdn.alidaodao.com,可不填"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"存储路径"},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(ud).path,"onUpdate:modelValue":vf[13]||(vf[13]=Rf=>unref(ud).path=Rf),modelModifiers:{trim:!0},placeholder:"如:img,可不填,默认为根目录"},null,8,["modelValue"])]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{variant:"link",class:"p-0",as:"a",href:"https://help.aliyun.com/document_detail/31883.html",target:"_blank"},{default:withCtx(()=>vf[57]||(vf[57]=[createTextVNode(" 如何使用阿里云 OSS? ")])),_:1})]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{onClick:Ud},{default:withCtx(()=>vf[58]||(vf[58]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})])]),_:1}),createVNode(Wf,{value:"txCOS"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_3$5,[createVNode(Kf,{label:"SecretId",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(dd).secretId,"onUpdate:modelValue":vf[14]||(vf[14]=Rf=>unref(dd).secretId=Rf),modelModifiers:{trim:!0},placeholder:"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"SecretKey",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(dd).secretKey,"onUpdate:modelValue":vf[15]||(vf[15]=Rf=>unref(dd).secretKey=Rf),modelModifiers:{trim:!0},type:"password",placeholder:"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"Bucket",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(dd).bucket,"onUpdate:modelValue":vf[16]||(vf[16]=Rf=>unref(dd).bucket=Rf),modelModifiers:{trim:!0},placeholder:"如:doocs-3212520134"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"Bucket 所在区域",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(dd).region,"onUpdate:modelValue":vf[17]||(vf[17]=Rf=>unref(dd).region=Rf),modelModifiers:{trim:!0},placeholder:"如:ap-guangzhou"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"自定义 CDN 域名"},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(dd).cdnHost,"onUpdate:modelValue":vf[18]||(vf[18]=Rf=>unref(dd).cdnHost=Rf),modelModifiers:{trim:!0},placeholder:"如:https://imagecdn.alidaodao.com,可不填"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"存储路径"},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(dd).path,"onUpdate:modelValue":vf[19]||(vf[19]=Rf=>unref(dd).path=Rf),modelModifiers:{trim:!0},placeholder:"如:img,可不填,默认根目录"},null,8,["modelValue"])]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{variant:"link",class:"p-0",as:"a",href:"https://cloud.tencent.com/document/product/436/38484",target:"_blank"},{default:withCtx(()=>vf[59]||(vf[59]=[createTextVNode(" 如何使用腾讯云 COS? ")])),_:1})]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{onClick:jd},{default:withCtx(()=>vf[60]||(vf[60]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})])]),_:1}),createVNode(Wf,{value:"qiniu"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$5,[createVNode(Kf,{label:"AccessKey",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(pd).accessKey,"onUpdate:modelValue":vf[20]||(vf[20]=Rf=>unref(pd).accessKey=Rf),modelModifiers:{trim:!0},placeholder:"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"SecretKey",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(pd).secretKey,"onUpdate:modelValue":vf[21]||(vf[21]=Rf=>unref(pd).secretKey=Rf),modelModifiers:{trim:!0},type:"password",placeholder:"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"Bucket",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(pd).bucket,"onUpdate:modelValue":vf[22]||(vf[22]=Rf=>unref(pd).bucket=Rf),modelModifiers:{trim:!0},placeholder:"如:md"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"Bucket 对应域名",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(pd).domain,"onUpdate:modelValue":vf[23]||(vf[23]=Rf=>unref(pd).domain=Rf),modelModifiers:{trim:!0},placeholder:"如:https://images.123ylb.cn"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"存储区域"},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(pd).region,"onUpdate:modelValue":vf[24]||(vf[24]=Rf=>unref(pd).region=Rf),modelModifiers:{trim:!0},placeholder:"如:z2,可不填"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"存储路径"},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(pd).path,"onUpdate:modelValue":vf[25]||(vf[25]=Rf=>unref(pd).path=Rf),modelModifiers:{trim:!0},placeholder:"如:img,可不填,默认为根目录"},null,8,["modelValue"])]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{variant:"link",class:"p-0",as:"a",href:"https://developer.qiniu.com/kodo",target:"_blank"},{default:withCtx(()=>vf[61]||(vf[61]=[createTextVNode(" 如何使用七牛云 Kodo? ")])),_:1})]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{onClick:qd},{default:withCtx(()=>vf[62]||(vf[62]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})])]),_:1}),createVNode(Wf,{value:"minio"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_5$4,[createVNode(Kf,{label:"Endpoint",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(fd).endpoint,"onUpdate:modelValue":vf[26]||(vf[26]=Rf=>unref(fd).endpoint=Rf),modelModifiers:{trim:!0},placeholder:"如:play.min.io"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"Port"},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(fd).port,"onUpdate:modelValue":vf[27]||(vf[27]=Rf=>unref(fd).port=Rf),modelModifiers:{trim:!0},type:"number",placeholder:"如:9000,可不填,http 默认为 80,https 默认为 443"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"UseSSL",required:""},{default:withCtx(()=>[createVNode(xf,{checked:unref(fd).useSSL,"onUpdate:checked":vf[28]||(vf[28]=Rf=>unref(fd).useSSL=Rf)},null,8,["checked"])]),_:1}),createVNode(Kf,{label:"Bucket",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(fd).bucket,"onUpdate:modelValue":vf[29]||(vf[29]=Rf=>unref(fd).bucket=Rf),modelModifiers:{trim:!0},placeholder:"如:doocs"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"AccessKey",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(fd).accessKey,"onUpdate:modelValue":vf[30]||(vf[30]=Rf=>unref(fd).accessKey=Rf),modelModifiers:{trim:!0},placeholder:"如:zhangsan"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"SecretKey",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(fd).secretKey,"onUpdate:modelValue":vf[31]||(vf[31]=Rf=>unref(fd).secretKey=Rf),modelModifiers:{trim:!0},placeholder:"如:asdasdasd"},null,8,["modelValue"])]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{variant:"link",class:"p-0",as:"a",href:"http://docs.minio.org.cn/docs/master/minio-client-complete-guide",target:"_blank"},{default:withCtx(()=>vf[63]||(vf[63]=[createTextVNode(" 如何使用 MinIO? ")])),_:1})]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{onClick:Fd},{default:withCtx(()=>vf[64]||(vf[64]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})])]),_:1}),createVNode(Wf,{value:"mp"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_6$4,[createVNode(Kf,{label:"代理域名",required:unref(Ad)},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(vd).proxyOrigin,"onUpdate:modelValue":vf[32]||(vf[32]=Rf=>unref(vd).proxyOrigin=Rf),modelModifiers:{trim:!0},placeholder:"如:http://proxy.example.com,使用插件时可不填"},null,8,["modelValue"])]),_:1},8,["required"]),createVNode(Kf,{label:"appID",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(vd).appID,"onUpdate:modelValue":vf[33]||(vf[33]=Rf=>unref(vd).appID=Rf),modelModifiers:{trim:!0},placeholder:"如:wx6e1234567890efa3"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"appsecret",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(vd).appsecret,"onUpdate:modelValue":vf[34]||(vf[34]=Rf=>unref(vd).appsecret=Rf),modelModifiers:{trim:!0},placeholder:"如:d9f1abcdef01234567890abcdef82397"},null,8,["modelValue"])]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_7$2,[createVNode(Cf,{variant:"link",class:"p-0",as:"a",href:"https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Getting_Started_Guide.html",target:"_blank"},{default:withCtx(()=>vf[65]||(vf[65]=[createTextVNode(" 如何开启公众号开发者模式并获取应用账号密钥? ")])),_:1}),createVNode(Cf,{variant:"link",class:"p-0",as:"a",href:"https://mpmd.pages.dev/tutorial/",target:"_blank"},{default:withCtx(()=>vf[66]||(vf[66]=[createTextVNode(" 如何在浏览器插件中使用公众号图床? ")])),_:1})])]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{onClick:Yd},{default:withCtx(()=>vf[67]||(vf[67]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})])]),_:1}),createVNode(Wf,{value:"r2"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_8$2,[createVNode(Kf,{label:"AccountId",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(md).accountId,"onUpdate:modelValue":vf[35]||(vf[35]=Rf=>unref(md).accountId=Rf),modelModifiers:{trim:!0},placeholder:"如: 0030f123e55a57546f4c281c564e560",class:"min-w-[350px]"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"AccessKey",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(md).accessKey,"onUpdate:modelValue":vf[36]||(vf[36]=Rf=>unref(md).accessKey=Rf),modelModifiers:{trim:!0},placeholder:"如: 358090b3a12824a6b0787gae7ad0fc72"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"SecretKey",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(md).secretKey,"onUpdate:modelValue":vf[37]||(vf[37]=Rf=>unref(md).secretKey=Rf),modelModifiers:{trim:!0},type:"password",placeholder:"如: c1c4dbcb0b6b785ac6633422a06dff3dac055fe74fe40xj1b5c5fcf1bf128010"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"Bucket",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(md).bucket,"onUpdate:modelValue":vf[38]||(vf[38]=Rf=>unref(md).bucket=Rf),modelModifiers:{trim:!0},placeholder:"如:md"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"域名",required:""},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(md).domain,"onUpdate:modelValue":vf[39]||(vf[39]=Rf=>unref(md).domain=Rf),modelModifiers:{trim:!0},placeholder:"如:https://oss.example.com"},null,8,["modelValue"])]),_:1}),createVNode(Kf,{label:"存储路径"},{default:withCtx(()=>[createVNode(Yf,{modelValue:unref(md).path,"onUpdate:modelValue":vf[40]||(vf[40]=Rf=>unref(md).path=Rf),modelModifiers:{trim:!0},placeholder:"如:img,可不填,默认为根目录"},null,8,["modelValue"])]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_9$1,[createVNode(Cf,{variant:"link",class:"p-0",as:"a",href:"https://developers.cloudflare.com/r2/api/s3/api/",target:"_blank"},{default:withCtx(()=>vf[68]||(vf[68]=[createTextVNode(" 如何使用 S3 API 操作 Cloudflare R2 ")])),_:1}),createVNode(Cf,{variant:"link",class:"p-0",as:"a",href:"https://developers.cloudflare.com/r2/buckets/cors/",target:"_blank"},{default:withCtx(()=>vf[69]||(vf[69]=[createTextVNode(" 如何设置跨域(CORS) ")])),_:1})])]),_:1}),createVNode(Kf,null,{default:withCtx(()=>[createVNode(Cf,{onClick:zd},{default:withCtx(()=>vf[70]||(vf[70]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})])]),_:1}),createVNode(Wf,{value:"formCustom"},{default:withCtx(()=>[createVNode(Xf)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["open"])}}});var E$2="top",R$2="bottom",W$2="right",P$2="left",me$1="auto",G$2=[E$2,R$2,W$2,P$2],U$2="start",J$2="end",Xe="clippingParents",je$1="viewport",K$2="popper",Ye="reference",De=G$2.reduce(function(Ra,qa){return Ra.concat([qa+"-"+U$2,qa+"-"+J$2])},[]),Ee$1=[].concat(G$2,[me$1]).reduce(function(Ra,qa){return Ra.concat([qa,qa+"-"+U$2,qa+"-"+J$2])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt];function C$1(Ra){return Ra?(Ra.nodeName||"").toLowerCase():null}function H$2(Ra){if(Ra==null)return window;if(Ra.toString()!=="[object Window]"){var qa=Ra.ownerDocument;return qa&&qa.defaultView||window}return Ra}function Q$2(Ra){var qa=H$2(Ra).Element;return Ra instanceof qa||Ra instanceof Element}function B$2(Ra){var qa=H$2(Ra).HTMLElement;return Ra instanceof qa||Ra instanceof HTMLElement}function Pe$1(Ra){if(typeof ShadowRoot>"u")return!1;var qa=H$2(Ra).ShadowRoot;return Ra instanceof qa||Ra instanceof ShadowRoot}function Mt(Ra){var qa=Ra.state;Object.keys(qa.elements).forEach(function(nd){var od=qa.styles[nd]||{},ld=qa.attributes[nd]||{},ud=qa.elements[nd];!B$2(ud)||!C$1(ud)||(Object.assign(ud.style,od),Object.keys(ld).forEach(function(dd){var pd=ld[dd];pd===!1?ud.removeAttribute(dd):ud.setAttribute(dd,pd===!0?"":pd)}))})}function Rt(Ra){var qa=Ra.state,nd={popper:{position:qa.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(qa.elements.popper.style,nd.popper),qa.styles=nd,qa.elements.arrow&&Object.assign(qa.elements.arrow.style,nd.arrow),function(){Object.keys(qa.elements).forEach(function(od){var ld=qa.elements[od],ud=qa.attributes[od]||{},dd=Object.keys(qa.styles.hasOwnProperty(od)?qa.styles[od]:nd[od]),pd=dd.reduce(function(fd,md){return fd[md]="",fd},{});!B$2(ld)||!C$1(ld)||(Object.assign(ld.style,pd),Object.keys(ud).forEach(function(fd){ld.removeAttribute(fd)}))})}}var Ae$1={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q$2(Ra){return Ra.split("-")[0]}var X$2=Math.max,ve$1=Math.min,Z$2=Math.round;function ee$1(Ra,qa){qa===void 0&&(qa=!1);var nd=Ra.getBoundingClientRect(),od=1,ld=1;if(B$2(Ra)&&qa){var ud=Ra.offsetHeight,dd=Ra.offsetWidth;dd>0&&(od=Z$2(nd.width)/dd||1),ud>0&&(ld=Z$2(nd.height)/ud||1)}return{width:nd.width/od,height:nd.height/ld,top:nd.top/ld,right:nd.right/od,bottom:nd.bottom/ld,left:nd.left/od,x:nd.left/od,y:nd.top/ld}}function ke$1(Ra){var qa=ee$1(Ra),nd=Ra.offsetWidth,od=Ra.offsetHeight;return Math.abs(qa.width-nd)<=1&&(nd=qa.width),Math.abs(qa.height-od)<=1&&(od=qa.height),{x:Ra.offsetLeft,y:Ra.offsetTop,width:nd,height:od}}function it(Ra,qa){var nd=qa.getRootNode&&qa.getRootNode();if(Ra.contains(qa))return!0;if(nd&&Pe$1(nd)){var od=qa;do{if(od&&Ra.isSameNode(od))return!0;od=od.parentNode||od.host}while(od)}return!1}function N$1(Ra){return H$2(Ra).getComputedStyle(Ra)}function Wt(Ra){return["table","td","th"].indexOf(C$1(Ra))>=0}function I$1(Ra){return((Q$2(Ra)?Ra.ownerDocument:Ra.document)||window.document).documentElement}function ge$1(Ra){return C$1(Ra)==="html"?Ra:Ra.assignedSlot||Ra.parentNode||(Pe$1(Ra)?Ra.host:null)||I$1(Ra)}function at$1(Ra){return!B$2(Ra)||N$1(Ra).position==="fixed"?null:Ra.offsetParent}function Bt(Ra){var qa=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,nd=navigator.userAgent.indexOf("Trident")!==-1;if(nd&&B$2(Ra)){var od=N$1(Ra);if(od.position==="fixed")return null}var ld=ge$1(Ra);for(Pe$1(ld)&&(ld=ld.host);B$2(ld)&&["html","body"].indexOf(C$1(ld))<0;){var ud=N$1(ld);if(ud.transform!=="none"||ud.perspective!=="none"||ud.contain==="paint"||["transform","perspective"].indexOf(ud.willChange)!==-1||qa&&ud.willChange==="filter"||qa&&ud.filter&&ud.filter!=="none")return ld;ld=ld.parentNode}return null}function se$1(Ra){for(var qa=H$2(Ra),nd=at$1(Ra);nd&&Wt(nd)&&N$1(nd).position==="static";)nd=at$1(nd);return nd&&(C$1(nd)==="html"||C$1(nd)==="body"&&N$1(nd).position==="static")?qa:nd||Bt(Ra)||qa}function Le$1(Ra){return["top","bottom"].indexOf(Ra)>=0?"x":"y"}function fe$1(Ra,qa,nd){return X$2(Ra,ve$1(qa,nd))}function St(Ra,qa,nd){var od=fe$1(Ra,qa,nd);return od>nd?nd:od}function st(){return{top:0,right:0,bottom:0,left:0}}function ft(Ra){return Object.assign({},st(),Ra)}function ct$1(Ra,qa){return qa.reduce(function(nd,od){return nd[od]=Ra,nd},{})}var Tt=function(Ra,qa){return Ra=typeof Ra=="function"?Ra(Object.assign({},qa.rects,{placement:qa.placement})):Ra,ft(typeof Ra!="number"?Ra:ct$1(Ra,G$2))};function Ht(Ra){var qa,nd=Ra.state,od=Ra.name,ld=Ra.options,ud=nd.elements.arrow,dd=nd.modifiersData.popperOffsets,pd=q$2(nd.placement),fd=Le$1(pd),md=[P$2,W$2].indexOf(pd)>=0,vd=md?"height":"width";if(!(!ud||!dd)){var Ad=Tt(ld.padding,nd),Nd=ke$1(ud),Od=fd==="y"?E$2:P$2,kd=fd==="y"?R$2:W$2,Ld=nd.rects.reference[vd]+nd.rects.reference[fd]-dd[fd]-nd.rects.popper[vd],Gd=dd[fd]-nd.rects.reference[fd],Ud=se$1(ud),Fd=Ud?fd==="y"?Ud.clientHeight||0:Ud.clientWidth||0:0,jd=Ld/2-Gd/2,qd=Ad[Od],zd=Fd-Nd[vd]-Ad[kd],Yd=Fd/2-Nd[vd]/2+jd,Jd=fe$1(qd,Yd,zd),yf=fd;nd.modifiersData[od]=(qa={},qa[yf]=Jd,qa.centerOffset=Jd-Yd,qa)}}function Ct(Ra){var qa=Ra.state,nd=Ra.options,od=nd.element,ld=od===void 0?"[data-popper-arrow]":od;ld!=null&&(typeof ld=="string"&&(ld=qa.elements.popper.querySelector(ld),!ld)||!it(qa.elements.popper,ld)||(qa.elements.arrow=ld))}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te$1(Ra){return Ra.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(Ra){var qa=Ra.x,nd=Ra.y,od=window,ld=od.devicePixelRatio||1;return{x:Z$2(qa*ld)/ld||0,y:Z$2(nd*ld)/ld||0}}function ut(Ra){var qa,nd=Ra.popper,od=Ra.popperRect,ld=Ra.placement,ud=Ra.variation,dd=Ra.offsets,pd=Ra.position,fd=Ra.gpuAcceleration,md=Ra.adaptive,vd=Ra.roundOffsets,Ad=Ra.isFixed,Nd=dd.x,Od=Nd===void 0?0:Nd,kd=dd.y,Ld=kd===void 0?0:kd,Gd=typeof vd=="function"?vd({x:Od,y:Ld}):{x:Od,y:Ld};Od=Gd.x,Ld=Gd.y;var Ud=dd.hasOwnProperty("x"),Fd=dd.hasOwnProperty("y"),jd=P$2,qd=E$2,zd=window;if(md){var Yd=se$1(nd),Jd="clientHeight",yf="clientWidth";if(Yd===H$2(nd)&&(Yd=I$1(nd),N$1(Yd).position!=="static"&&pd==="absolute"&&(Jd="scrollHeight",yf="scrollWidth")),Yd=Yd,ld===E$2||(ld===P$2||ld===W$2)&&ud===J$2){qd=R$2;var Xd=Ad&&Yd===zd&&zd.visualViewport?zd.visualViewport.height:Yd[Jd];Ld-=Xd-od.height,Ld*=fd?1:-1}if(ld===P$2||(ld===E$2||ld===R$2)&&ud===J$2){jd=W$2;var pf=Ad&&Yd===zd&&zd.visualViewport?zd.visualViewport.width:Yd[yf];Od-=pf-od.width,Od*=fd?1:-1}}var mf=Object.assign({position:pd},md&&qt),Tf=vd===!0?Vt({x:Od,y:Ld}):{x:Od,y:Ld};if(Od=Tf.x,Ld=Tf.y,fd){var vf;return Object.assign({},mf,(vf={},vf[qd]=Fd?"0":"",vf[jd]=Ud?"0":"",vf.transform=(zd.devicePixelRatio||1)<=1?"translate("+Od+"px, "+Ld+"px)":"translate3d("+Od+"px, "+Ld+"px, 0)",vf))}return Object.assign({},mf,(qa={},qa[qd]=Fd?Ld+"px":"",qa[jd]=Ud?Od+"px":"",qa.transform="",qa))}function Nt(Ra){var qa=Ra.state,nd=Ra.options,od=nd.gpuAcceleration,ld=od===void 0?!0:od,ud=nd.adaptive,dd=ud===void 0?!0:ud,pd=nd.roundOffsets,fd=pd===void 0?!0:pd,md={placement:q$2(qa.placement),variation:te$1(qa.placement),popper:qa.elements.popper,popperRect:qa.rects.popper,gpuAcceleration:ld,isFixed:qa.options.strategy==="fixed"};qa.modifiersData.popperOffsets!=null&&(qa.styles.popper=Object.assign({},qa.styles.popper,ut(Object.assign({},md,{offsets:qa.modifiersData.popperOffsets,position:qa.options.strategy,adaptive:dd,roundOffsets:fd})))),qa.modifiersData.arrow!=null&&(qa.styles.arrow=Object.assign({},qa.styles.arrow,ut(Object.assign({},md,{offsets:qa.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:fd})))),qa.attributes.popper=Object.assign({},qa.attributes.popper,{"data-popper-placement":qa.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt,data:{}},ye$1={passive:!0};function It(Ra){var qa=Ra.state,nd=Ra.instance,od=Ra.options,ld=od.scroll,ud=ld===void 0?!0:ld,dd=od.resize,pd=dd===void 0?!0:dd,fd=H$2(qa.elements.popper),md=[].concat(qa.scrollParents.reference,qa.scrollParents.popper);return ud&&md.forEach(function(vd){vd.addEventListener("scroll",nd.update,ye$1)}),pd&&fd.addEventListener("resize",nd.update,ye$1),function(){ud&&md.forEach(function(vd){vd.removeEventListener("scroll",nd.update,ye$1)}),pd&&fd.removeEventListener("resize",nd.update,ye$1)}}var Re$1={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be$2(Ra){return Ra.replace(/left|right|bottom|top/g,function(qa){return _t[qa]})}var zt={start:"end",end:"start"};function lt(Ra){return Ra.replace(/start|end/g,function(qa){return zt[qa]})}function We(Ra){var qa=H$2(Ra),nd=qa.pageXOffset,od=qa.pageYOffset;return{scrollLeft:nd,scrollTop:od}}function Be$1(Ra){return ee$1(I$1(Ra)).left+We(Ra).scrollLeft}function Ft(Ra){var qa=H$2(Ra),nd=I$1(Ra),od=qa.visualViewport,ld=nd.clientWidth,ud=nd.clientHeight,dd=0,pd=0;return od&&(ld=od.width,ud=od.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(dd=od.offsetLeft,pd=od.offsetTop)),{width:ld,height:ud,x:dd+Be$1(Ra),y:pd}}function Ut(Ra){var qa,nd=I$1(Ra),od=We(Ra),ld=(qa=Ra.ownerDocument)==null?void 0:qa.body,ud=X$2(nd.scrollWidth,nd.clientWidth,ld?ld.scrollWidth:0,ld?ld.clientWidth:0),dd=X$2(nd.scrollHeight,nd.clientHeight,ld?ld.scrollHeight:0,ld?ld.clientHeight:0),pd=-od.scrollLeft+Be$1(Ra),fd=-od.scrollTop;return N$1(ld||nd).direction==="rtl"&&(pd+=X$2(nd.clientWidth,ld?ld.clientWidth:0)-ud),{width:ud,height:dd,x:pd,y:fd}}function Se$1(Ra){var qa=N$1(Ra),nd=qa.overflow,od=qa.overflowX,ld=qa.overflowY;return/auto|scroll|overlay|hidden/.test(nd+ld+od)}function dt(Ra){return["html","body","#document"].indexOf(C$1(Ra))>=0?Ra.ownerDocument.body:B$2(Ra)&&Se$1(Ra)?Ra:dt(ge$1(Ra))}function ce$2(Ra,qa){var nd;qa===void 0&&(qa=[]);var od=dt(Ra),ld=od===((nd=Ra.ownerDocument)==null?void 0:nd.body),ud=H$2(od),dd=ld?[ud].concat(ud.visualViewport||[],Se$1(od)?od:[]):od,pd=qa.concat(dd);return ld?pd:pd.concat(ce$2(ge$1(dd)))}function Te(Ra){return Object.assign({},Ra,{left:Ra.x,top:Ra.y,right:Ra.x+Ra.width,bottom:Ra.y+Ra.height})}function Xt(Ra){var qa=ee$1(Ra);return qa.top=qa.top+Ra.clientTop,qa.left=qa.left+Ra.clientLeft,qa.bottom=qa.top+Ra.clientHeight,qa.right=qa.left+Ra.clientWidth,qa.width=Ra.clientWidth,qa.height=Ra.clientHeight,qa.x=qa.left,qa.y=qa.top,qa}function ht(Ra,qa){return qa===je$1?Te(Ft(Ra)):Q$2(qa)?Xt(qa):Te(Ut(I$1(Ra)))}function Yt(Ra){var qa=ce$2(ge$1(Ra)),nd=["absolute","fixed"].indexOf(N$1(Ra).position)>=0,od=nd&&B$2(Ra)?se$1(Ra):Ra;return Q$2(od)?qa.filter(function(ld){return Q$2(ld)&&it(ld,od)&&C$1(ld)!=="body"}):[]}function Gt(Ra,qa,nd){var od=qa==="clippingParents"?Yt(Ra):[].concat(qa),ld=[].concat(od,[nd]),ud=ld[0],dd=ld.reduce(function(pd,fd){var md=ht(Ra,fd);return pd.top=X$2(md.top,pd.top),pd.right=ve$1(md.right,pd.right),pd.bottom=ve$1(md.bottom,pd.bottom),pd.left=X$2(md.left,pd.left),pd},ht(Ra,ud));return dd.width=dd.right-dd.left,dd.height=dd.bottom-dd.top,dd.x=dd.left,dd.y=dd.top,dd}function mt(Ra){var qa=Ra.reference,nd=Ra.element,od=Ra.placement,ld=od?q$2(od):null,ud=od?te$1(od):null,dd=qa.x+qa.width/2-nd.width/2,pd=qa.y+qa.height/2-nd.height/2,fd;switch(ld){case E$2:fd={x:dd,y:qa.y-nd.height};break;case R$2:fd={x:dd,y:qa.y+qa.height};break;case W$2:fd={x:qa.x+qa.width,y:pd};break;case P$2:fd={x:qa.x-nd.width,y:pd};break;default:fd={x:qa.x,y:qa.y}}var md=ld?Le$1(ld):null;if(md!=null){var vd=md==="y"?"height":"width";switch(ud){case U$2:fd[md]=fd[md]-(qa[vd]/2-nd[vd]/2);break;case J$2:fd[md]=fd[md]+(qa[vd]/2-nd[vd]/2);break}}return fd}function ne$1(Ra,qa){qa===void 0&&(qa={});var nd=qa,od=nd.placement,ld=od===void 0?Ra.placement:od,ud=nd.boundary,dd=ud===void 0?Xe:ud,pd=nd.rootBoundary,fd=pd===void 0?je$1:pd,md=nd.elementContext,vd=md===void 0?K$2:md,Ad=nd.altBoundary,Nd=Ad===void 0?!1:Ad,Od=nd.padding,kd=Od===void 0?0:Od,Ld=ft(typeof kd!="number"?kd:ct$1(kd,G$2)),Gd=vd===K$2?Ye:K$2,Ud=Ra.rects.popper,Fd=Ra.elements[Nd?Gd:vd],jd=Gt(Q$2(Fd)?Fd:Fd.contextElement||I$1(Ra.elements.popper),dd,fd),qd=ee$1(Ra.elements.reference),zd=mt({reference:qd,element:Ud,strategy:"absolute",placement:ld}),Yd=Te(Object.assign({},Ud,zd)),Jd=vd===K$2?Yd:qd,yf={top:jd.top-Jd.top+Ld.top,bottom:Jd.bottom-jd.bottom+Ld.bottom,left:jd.left-Jd.left+Ld.left,right:Jd.right-jd.right+Ld.right},Xd=Ra.modifiersData.offset;if(vd===K$2&&Xd){var pf=Xd[ld];Object.keys(yf).forEach(function(mf){var Tf=[W$2,R$2].indexOf(mf)>=0?1:-1,vf=[E$2,R$2].indexOf(mf)>=0?"y":"x";yf[mf]+=pf[vf]*Tf})}return yf}function Jt(Ra,qa){qa===void 0&&(qa={});var nd=qa,od=nd.placement,ld=nd.boundary,ud=nd.rootBoundary,dd=nd.padding,pd=nd.flipVariations,fd=nd.allowedAutoPlacements,md=fd===void 0?Ee$1:fd,vd=te$1(od),Ad=vd?pd?De:De.filter(function(kd){return te$1(kd)===vd}):G$2,Nd=Ad.filter(function(kd){return md.indexOf(kd)>=0});Nd.length===0&&(Nd=Ad);var Od=Nd.reduce(function(kd,Ld){return kd[Ld]=ne$1(Ra,{placement:Ld,boundary:ld,rootBoundary:ud,padding:dd})[q$2(Ld)],kd},{});return Object.keys(Od).sort(function(kd,Ld){return Od[kd]-Od[Ld]})}function Kt(Ra){if(q$2(Ra)===me$1)return[];var qa=be$2(Ra);return[lt(Ra),qa,lt(qa)]}function Qt(Ra){var qa=Ra.state,nd=Ra.options,od=Ra.name;if(!qa.modifiersData[od]._skip){for(var ld=nd.mainAxis,ud=ld===void 0?!0:ld,dd=nd.altAxis,pd=dd===void 0?!0:dd,fd=nd.fallbackPlacements,md=nd.padding,vd=nd.boundary,Ad=nd.rootBoundary,Nd=nd.altBoundary,Od=nd.flipVariations,kd=Od===void 0?!0:Od,Ld=nd.allowedAutoPlacements,Gd=qa.options.placement,Ud=q$2(Gd),Fd=Ud===Gd,jd=fd||(Fd||!kd?[be$2(Gd)]:Kt(Gd)),qd=[Gd].concat(jd).reduce(function(Wf,Yf){return Wf.concat(q$2(Yf)===me$1?Jt(qa,{placement:Yf,boundary:vd,rootBoundary:Ad,padding:md,flipVariations:kd,allowedAutoPlacements:Ld}):Yf)},[]),zd=qa.rects.reference,Yd=qa.rects.popper,Jd=new Map,yf=!0,Xd=qd[0],pf=0;pf=0,Sf=Af?"width":"height",Df=ne$1(qa,{placement:mf,boundary:vd,rootBoundary:Ad,altBoundary:Nd,padding:md}),If=Af?vf?W$2:P$2:vf?R$2:E$2;zd[Sf]>Yd[Sf]&&(If=be$2(If));var Gf=be$2(If),Jf=[];if(ud&&Jf.push(Df[Tf]<=0),pd&&Jf.push(Df[If]<=0,Df[Gf]<=0),Jf.every(function(Wf){return Wf})){Xd=mf,yf=!1;break}Jd.set(mf,Jf)}if(yf)for(var ih=kd?3:1,uh=function(Wf){var Yf=qd.find(function(Kf){var Cf=Jd.get(Kf);if(Cf)return Cf.slice(0,Wf).every(function(xf){return xf})});if(Yf)return Xd=Yf,"break"},qf=ih;qf>0;qf--){var Pf=uh(qf);if(Pf==="break")break}qa.placement!==Xd&&(qa.modifiersData[od]._skip=!0,qa.placement=Xd,qa.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt(Ra,qa,nd){return nd===void 0&&(nd={x:0,y:0}),{top:Ra.top-qa.height-nd.y,right:Ra.right-qa.width+nd.x,bottom:Ra.bottom-qa.height+nd.y,left:Ra.left-qa.width-nd.x}}function yt(Ra){return[E$2,W$2,R$2,P$2].some(function(qa){return Ra[qa]>=0})}function Zt(Ra){var qa=Ra.state,nd=Ra.name,od=qa.rects.reference,ld=qa.rects.popper,ud=qa.modifiersData.preventOverflow,dd=ne$1(qa,{elementContext:"reference"}),pd=ne$1(qa,{altBoundary:!0}),fd=gt(dd,od),md=gt(pd,ld,ud),vd=yt(fd),Ad=yt(md);qa.modifiersData[nd]={referenceClippingOffsets:fd,popperEscapeOffsets:md,isReferenceHidden:vd,hasPopperEscaped:Ad},qa.attributes.popper=Object.assign({},qa.attributes.popper,{"data-popper-reference-hidden":vd,"data-popper-escaped":Ad})}var bt$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en(Ra,qa,nd){var od=q$2(Ra),ld=[P$2,E$2].indexOf(od)>=0?-1:1,ud=typeof nd=="function"?nd(Object.assign({},qa,{placement:Ra})):nd,dd=ud[0],pd=ud[1];return dd=dd||0,pd=(pd||0)*ld,[P$2,W$2].indexOf(od)>=0?{x:pd,y:dd}:{x:dd,y:pd}}function tn(Ra){var qa=Ra.state,nd=Ra.options,od=Ra.name,ld=nd.offset,ud=ld===void 0?[0,0]:ld,dd=Ee$1.reduce(function(vd,Ad){return vd[Ad]=en(Ad,qa.rects,ud),vd},{}),pd=dd[qa.placement],fd=pd.x,md=pd.y;qa.modifiersData.popperOffsets!=null&&(qa.modifiersData.popperOffsets.x+=fd,qa.modifiersData.popperOffsets.y+=md),qa.modifiersData[od]=dd}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn(Ra){var qa=Ra.state,nd=Ra.name;qa.modifiersData[nd]=mt({reference:qa.rects.reference,element:qa.rects.popper,strategy:"absolute",placement:qa.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn(Ra){return Ra==="x"?"y":"x"}function on(Ra){var qa=Ra.state,nd=Ra.options,od=Ra.name,ld=nd.mainAxis,ud=ld===void 0?!0:ld,dd=nd.altAxis,pd=dd===void 0?!1:dd,fd=nd.boundary,md=nd.rootBoundary,vd=nd.altBoundary,Ad=nd.padding,Nd=nd.tether,Od=Nd===void 0?!0:Nd,kd=nd.tetherOffset,Ld=kd===void 0?0:kd,Gd=ne$1(qa,{boundary:fd,rootBoundary:md,padding:Ad,altBoundary:vd}),Ud=q$2(qa.placement),Fd=te$1(qa.placement),jd=!Fd,qd=Le$1(Ud),zd=rn(qd),Yd=qa.modifiersData.popperOffsets,Jd=qa.rects.reference,yf=qa.rects.popper,Xd=typeof Ld=="function"?Ld(Object.assign({},qa.rects,{placement:qa.placement})):Ld,pf=typeof Xd=="number"?{mainAxis:Xd,altAxis:Xd}:Object.assign({mainAxis:0,altAxis:0},Xd),mf=qa.modifiersData.offset?qa.modifiersData.offset[qa.placement]:null,Tf={x:0,y:0};if(Yd){if(ud){var vf,Af=qd==="y"?E$2:P$2,Sf=qd==="y"?R$2:W$2,Df=qd==="y"?"height":"width",If=Yd[qd],Gf=If+Gd[Af],Jf=If-Gd[Sf],ih=Od?-yf[Df]/2:0,uh=Fd===U$2?Jd[Df]:yf[Df],qf=Fd===U$2?-yf[Df]:-Jd[Df],Pf=qa.elements.arrow,Wf=Od&&Pf?ke$1(Pf):{width:0,height:0},Yf=qa.modifiersData["arrow#persistent"]?qa.modifiersData["arrow#persistent"].padding:st(),Kf=Yf[Af],Cf=Yf[Sf],xf=fe$1(0,Jd[Df],Wf[Df]),Xf=jd?Jd[Df]/2-ih-xf-Kf-pf.mainAxis:uh-xf-Kf-pf.mainAxis,sh=jd?-Jd[Df]/2+ih+xf+Cf+pf.mainAxis:qf+xf+Cf+pf.mainAxis,Ah=qa.elements.arrow&&se$1(qa.elements.arrow),dh=Ah?qd==="y"?Ah.clientTop||0:Ah.clientLeft||0:0,Rf=(vf=mf==null?void 0:mf[qd])!=null?vf:0,gh=If+Xf-Rf-dh,Bh=If+sh-Rf,th=fe$1(Od?ve$1(Gf,gh):Gf,If,Od?X$2(Jf,Bh):Jf);Yd[qd]=th,Tf[qd]=th-If}if(pd){var $f,Uf=qd==="x"?E$2:P$2,Zf=qd==="x"?R$2:W$2,kh=Yd[zd],Wh=zd==="y"?"height":"width",xh=kh+Gd[Uf],pm=kh-Gd[Zf],Jh=[E$2,P$2].indexOf(Ud)!==-1,Om=($f=mf==null?void 0:mf[zd])!=null?$f:0,Nm=Jh?xh:kh-Jd[Wh]-yf[Wh]-Om+pf.altAxis,mm=Jh?kh+Jd[Wh]+yf[Wh]-Om-pf.altAxis:pm,Pm=Od&&Jh?St(Nm,kh,mm):fe$1(Od?Nm:xh,kh,Od?mm:pm);Yd[zd]=Pm,Tf[zd]=Pm-kh}qa.modifiersData[od]=Tf}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an$1(Ra){return{scrollLeft:Ra.scrollLeft,scrollTop:Ra.scrollTop}}function sn(Ra){return Ra===H$2(Ra)||!B$2(Ra)?We(Ra):an$1(Ra)}function fn(Ra){var qa=Ra.getBoundingClientRect(),nd=Z$2(qa.width)/Ra.offsetWidth||1,od=Z$2(qa.height)/Ra.offsetHeight||1;return nd!==1||od!==1}function cn$1(Ra,qa,nd){nd===void 0&&(nd=!1);var od=B$2(qa),ld=B$2(qa)&&fn(qa),ud=I$1(qa),dd=ee$1(Ra,ld),pd={scrollLeft:0,scrollTop:0},fd={x:0,y:0};return(od||!od&&!nd)&&((C$1(qa)!=="body"||Se$1(ud))&&(pd=sn(qa)),B$2(qa)?(fd=ee$1(qa,!0),fd.x+=qa.clientLeft,fd.y+=qa.clientTop):ud&&(fd.x=Be$1(ud))),{x:dd.left+pd.scrollLeft-fd.x,y:dd.top+pd.scrollTop-fd.y,width:dd.width,height:dd.height}}function pn(Ra){var qa=new Map,nd=new Set,od=[];Ra.forEach(function(ud){qa.set(ud.name,ud)});function ld(ud){nd.add(ud.name);var dd=[].concat(ud.requires||[],ud.requiresIfExists||[]);dd.forEach(function(pd){if(!nd.has(pd)){var fd=qa.get(pd);fd&&ld(fd)}}),od.push(ud)}return Ra.forEach(function(ud){nd.has(ud.name)||ld(ud)}),od}function un(Ra){var qa=pn(Ra);return ot.reduce(function(nd,od){return nd.concat(qa.filter(function(ld){return ld.phase===od}))},[])}function ln(Ra){var qa;return function(){return qa||(qa=new Promise(function(nd){Promise.resolve().then(function(){qa=void 0,nd(Ra())})})),qa}}function dn(Ra){var qa=Ra.reduce(function(nd,od){var ld=nd[od.name];return nd[od.name]=ld?Object.assign({},ld,od,{options:Object.assign({},ld.options,od.options),data:Object.assign({},ld.data,od.data)}):od,nd},{});return Object.keys(qa).map(function(nd){return qa[nd]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var Ra=arguments.length,qa=new Array(Ra),nd=0;ndRa.length)&&(qa=Ra.length);for(var nd=0,od=Array(qa);nd=0;--qf){var Pf=this.tryEntries[qf],Wf=Pf.completion;if(Pf.tryLoc==="root")return uh("end");if(Pf.tryLoc<=this.prev){var Yf=dd.call(Pf,"catchLoc"),Kf=dd.call(Pf,"finallyLoc");if(Yf&&Kf){if(this.prev=0;--uh){var qf=this.tryEntries[uh];if(qf.tryLoc<=this.prev&&dd.call(qf,"finallyLoc")&&this.prev=0;--ih){var uh=this.tryEntries[ih];if(uh.finallyLoc===Jf)return this.complete(uh.completion,uh.afterLoc),Df(uh),jd}},catch:function(Jf){for(var ih=this.tryEntries.length-1;ih>=0;--ih){var uh=this.tryEntries[ih];if(uh.tryLoc===Jf){var qf=uh.completion;if(qf.type==="throw"){var Pf=qf.arg;Df(uh)}return Pf}}throw Error("illegal catch attempt")},delegateYield:function(Jf,ih,uh){return this.delegate={iterator:Gf(Jf),resultName:ih,nextLoc:uh},this.method==="next"&&(this.arg=od),jd}},ld}Ra.exports=nd,Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports}(B$1);var z$1=B$1.exports(),M$1=z$1;try{regeneratorRuntime=z$1}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=z$1:Function("r","regeneratorRuntime = r")(z$1)}function D$1(Ra,qa){return function(nd){if(Array.isArray(nd))return nd}(Ra)||function(nd,od){var ld=nd==null?null:typeof Symbol<"u"&&nd[Symbol.iterator]||nd["@@iterator"];if(ld!=null){var ud,dd,pd,fd,md=[],vd=!0,Ad=!1;try{if(pd=(ld=ld.call(nd)).next,od===0){if(Object(ld)!==ld)return;vd=!1}else for(;!(vd=(ud=pd.call(ld)).done)&&(md.push(ud.value),md.length!==od);vd=!0);}catch(Nd){Ad=!0,dd=Nd}finally{try{if(!vd&&ld.return!=null&&(fd=ld.return(),Object(fd)!==fd))return}finally{if(Ad)throw dd}}return md}}(Ra,qa)||_$1(Ra,qa)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function T$1(Ra){var qa=function(nd,od){if(P$1(nd)!="object"||!nd)return nd;var ld=nd[Symbol.toPrimitive];if(ld!==void 0){var ud=ld.call(nd,od||"default");if(P$1(ud)!="object")return ud;throw new TypeError("@@toPrimitive must return a primitive value.")}return(od==="string"?String:Number)(nd)}(Ra,"string");return P$1(qa)=="symbol"?qa:qa+""}function H$1(Ra,qa,nd){return(qa=T$1(qa))in Ra?Object.defineProperty(Ra,qa,{value:nd,enumerable:!0,configurable:!0,writable:!0}):Ra[qa]=nd,Ra}var G$1=defineComponent({name:"Saturation",props:{size:{type:Number,default:160},hue:{type:Number,default:0},saturation:{type:Number,default:0},value:{type:Number,default:0}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),background:"hsl(".concat(Ra.hue,", 100%, 50%)")}});return{saturationStyle:od,sliderStyle:computed(function(){return{top:"".concat((100-Ra.value)/100*Ra.size-5,"px"),left:"".concat(Ra.saturation*Ra.size/100-5,"px"),width:"".concat(10,"px"),height:"".concat(10,"px")}}),onSelect:function(ld){var ud=ld.target.getBoundingClientRect(),dd=ud.left,pd=ud.top,fd=function(vd){var Ad=vd.clientX,Nd=vd.clientY,Od=Ad-dd,kd=Nd-pd;Od<0&&(Od=0),kd<0&&(kd=0),Od>Ra.size&&(Od=Ra.size),kd>Ra.size&&(kd=Ra.size);var Ld=Od/Ra.size*100,Gd=100-kd/Ra.size*100;nd("change",Ld,Gd)},md=function(){document.removeEventListener("mousemove",fd),document.removeEventListener("mouseup",md)};fd(ld),document.addEventListener("mousemove",fd),document.addEventListener("mouseup",md)}}}});function V$1(Ra,qa){qa===void 0&&(qa={});var nd=qa.insertAt;if(Ra&&typeof document<"u"){var od=document.head||document.getElementsByTagName("head")[0],ld=document.createElement("style");ld.type="text/css",nd==="top"&&od.firstChild?od.insertBefore(ld,od.firstChild):od.appendChild(ld),ld.styleSheet?ld.styleSheet.cssText=Ra:ld.appendChild(document.createTextNode(Ra))}}V$1(".saturation[data-v-24517fec]{position:relative}.saturation-black[data-v-24517fec],.saturation-white[data-v-24517fec]{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.saturation-white[data-v-24517fec]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-black[data-v-24517fec]{background:linear-gradient(0deg,#000,transparent)}.slider[data-v-24517fec]{border:1px solid #fff;border-radius:50%;box-shadow:0 0 1px 1px rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;top:0;z-index:1}"),G$1.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",{class:"saturation",style:normalizeStyle(Ra.saturationStyle),onMousedown:qa[0]||(qa[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[qa[1]||(qa[1]=createBaseVNode("div",{class:"saturation-white"},null,-1)),qa[2]||(qa[2]=createBaseVNode("div",{class:"saturation-black"},null,-1)),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],36)},G$1.__scopeId="data-v-24517fec",G$1.__file="src/picker/Saturation.vue";var Y$1=defineComponent({name:"Hue",props:{width:{type:Number,default:15},height:{type:Number,default:160},hue:{type:Number,default:0}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{top:"".concat((1-Ra.hue/360)*Ra.height-2,"px"),height:"".concat(4,"px")}}),ld=ref$1();return onMounted(function(){(function(){ld.value.width=Ra.width,ld.value.height=Ra.height;var ud=ld.value.getContext("2d"),dd=ud.createLinearGradient(0,0,0,Ra.height);dd.addColorStop(0,"#FF0000"),dd.addColorStop(.17,"#FF00FF"),dd.addColorStop(.34,"#0000FF"),dd.addColorStop(.51,"#00FFFF"),dd.addColorStop(.68,"#00FF00"),dd.addColorStop(.17*5,"#FFFF00"),dd.addColorStop(1,"#FF0000"),ud.fillStyle=dd,ud.fillRect(0,0,Ra.width,Ra.height)})()}),{canvas:ld,sliderStyle:od,onSelect:function(ud){var dd=ud.target.getBoundingClientRect().top,pd=function(md){var vd=md.clientY-dd;vd<0&&(vd=0),vd>Ra.height&&(vd=Ra.height);var Ad=-100*vd/Ra.height+100;nd("change",360*Ad/100)},fd=function(){document.removeEventListener("mousemove",pd),document.removeEventListener("mouseup",fd)};pd(ud),document.addEventListener("mousemove",pd),document.addEventListener("mouseup",fd)}}}}),$={ref:"canvas"};V$1(".hue[data-v-78b9f4f0]{position:relative}.slider[data-v-78b9f4f0]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),Y$1.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",{class:"hue",onMousedown:qa[0]||(qa[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[createBaseVNode("canvas",$,null,512),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],32)},Y$1.__scopeId="data-v-78b9f4f0",Y$1.__file="src/picker/Hue.vue";var J$1=defineComponent({name:"Alpha",props:{width:{type:Number,default:15},height:{type:Number,default:160},color:{type:String,default:"#000000"},alpha:{type:Number,default:1}},setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{top:"".concat(Ra.alpha*Ra.height-2,"px"),height:"".concat(4,"px")}}),ld=ref$1(),ud=function(){var dd=ld.value.getContext("2d");ld.value.width=Ra.width,ld.value.height=Ra.height;var pd=function(md){var vd=document.createElement("canvas"),Ad=vd.getContext("2d"),Nd=2*md;return vd.width=Nd,vd.height=Nd,Ad.fillStyle="#ffffff",Ad.fillRect(0,0,Nd,Nd),Ad.fillStyle="#ccd5db",Ad.fillRect(0,0,md,md),Ad.fillRect(md,md,md,md),vd}(5);dd.fillStyle=dd.createPattern(pd,"repeat"),dd.fillRect(0,0,Ra.width,Ra.height);var fd=dd.createLinearGradient(0,0,0,Ra.height);fd.addColorStop(.01,"rgba(255,255,255,0)"),fd.addColorStop(.99,Ra.color),dd.fillStyle=fd,dd.fillRect(0,0,Ra.width,Ra.height)};return watch(function(){return Ra.color},function(){ud()}),onMounted(function(){ud()}),{canvas:ld,sliderStyle:od,onSelect:function(dd){var pd=dd.target.getBoundingClientRect().top,fd=function(vd){var Ad=vd.clientY-pd;Ad<0&&(Ad=0),Ad>Ra.height&&(Ad=Ra.height);var Nd=parseFloat((Ad/Ra.height).toFixed(2));nd("change",Nd)},md=function(){document.removeEventListener("mousemove",fd),document.removeEventListener("mouseup",md)};fd(dd),document.addEventListener("mousemove",fd),document.addEventListener("mouseup",md)}}}}),X$1={ref:"canvas"};V$1(".alpha[data-v-24dc9656]{position:relative}.slider[data-v-24dc9656]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),J$1.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",{class:"alpha",onMousedown:qa[0]||(qa[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[createBaseVNode("canvas",X$1,null,512),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],32)},J$1.__scopeId="data-v-24dc9656",J$1.__file="src/picker/Alpha.vue";var q$1={rgb:"RGBA",hex:"HEX",hsl:"HSLA",hsv:"HSVA"},U$1={rgb:"RGB",hex:"HEX",hsl:"HSL",hsv:"HSV"},W$1={RGB:"rgb",RGBA:"rgb",HEX:"hex",HSL:"hsl",HSLA:"hsl",HSV:"hsv",HSVA:"hsv"};function K$1(Ra,qa){var nd=Object.keys(Ra);if(Object.getOwnPropertySymbols){var od=Object.getOwnPropertySymbols(Ra);qa&&(od=od.filter(function(ld){return Object.getOwnPropertyDescriptor(Ra,ld).enumerable})),nd.push.apply(nd,od)}return nd}function Q$1(Ra){for(var qa=1;qa1}),fd=computed(function(){var vd=Ra.options,Ad=Ra.showAlpha,Nd=Ra.value;return Array.isArray(vd)?Ad?vd.map(function(Od){return q$1[Od]}).filter(function(Od){return!Od.includes(Nd)}):vd.map(function(Od){return U$1[Od]}).filter(function(Od){return!Od.includes(Nd)}):[]}),md=function(vd){var Ad,Nd,Od=vd.target;!((Ad=unref(od))!==null&&Ad!==void 0&&Ad.isEqualNode(Od))&&(!((Nd=unref(od))===null||Nd===void 0)&&Nd.contains(Od))||(ud.value=!1)};return onMounted(function(){document.addEventListener("mouseup",md,!1)}),onUnmounted(function(){document.removeEventListener("mouseup",md,!1)}),{targetRef:od,selectorRef:ld,selectorStyle:dd,isShowSelector:ud,isNeedSelect:pd,formatOptions:fd,onShow:function(){pd.value&&(ud.value=!0)},onFormatChange:function(vd){nd("change",W$1[vd])}}}}),re={class:"format"},ne={key:0,class:"arrow"},oe=["onClick"];V$1(".format[data-v-5f6e8f5e]{position:relative}.label[data-v-5f6e8f5e]{align-items:center;background:#e7e8e9;color:#999;display:flex;float:left;font-weight:500;height:30px;justify-content:center;position:relative;width:60px}[pick-colors-theme=dark] .label[data-v-5f6e8f5e]{background:#252930;color:#999}.arrow[data-v-5f6e8f5e]{height:6px;margin-bottom:4px;margin-left:5px;transform:rotate(135deg);width:6px}.arrow[data-v-5f6e8f5e],[pick-colors-theme=dark] .arrow[data-v-5f6e8f5e]{border-right:1px solid #999;border-top:1px solid #999}.selector[data-v-5f6e8f5e]{align-items:center;background:#f7f8f9;border-radius:5px;box-shadow:0 0 16px 0 rgba(0,0,0,.16);cursor:pointer;display:flex;flex-direction:column;font-weight:400;justify-content:center;padding:4px}[pick-colors-theme=dark] .selector[data-v-5f6e8f5e]{background:#252930;color:#999}.selector-item[data-v-5f6e8f5e]{align-items:center;display:flex;height:30px;justify-content:center;width:60px}.selector-item[data-v-5f6e8f5e]:hover{background:#e1f2fe}[pick-colors-theme=dark] .selector-item[data-v-5f6e8f5e]{color:#fff}[pick-colors-theme=dark] .selector-item[data-v-5f6e8f5e]:hover{background:#0087fa}.active-selector-item[data-v-5f6e8f5e]{background:#e1f2fe}[pick-colors-theme=dark] .active-selector-item[data-v-5f6e8f5e]{background:#0087fa}.v-enter-active[data-v-5f6e8f5e],.v-leave-active[data-v-5f6e8f5e]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-5f6e8f5e],.v-leave-to[data-v-5f6e8f5e]{opacity:0;transform:scaleY(0)}"),te.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",re,[createBaseVNode("div",{class:"label",ref:"targetRef",onClick:qa[0]||(qa[0]=function(){return Ra.onShow&&Ra.onShow.apply(Ra,arguments)})},[createBaseVNode("span",null,toDisplayString(Ra.value),1),Ra.isNeedSelect?(openBlock(),createElementBlock("div",ne)):createCommentVNode("v-if",!0)],512),createVNode(Transition$1,null,{default:withCtx(function(){return[Ra.isShowSelector?(openBlock(),createElementBlock("div",{key:0,class:"selector",ref:"selectorRef",style:normalizeStyle(Ra.selectorStyle)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ra.formatOptions,function(dd){return openBlock(),createElementBlock("div",{class:"selector-item",key:dd,onClick:function(pd){return Ra.onFormatChange(dd)}},toDisplayString(dd),9,oe)}),128))],4)):createCommentVNode("v-if",!0)]}),_:1})])},te.__scopeId="data-v-5f6e8f5e",te.__file="src/picker/input-value/FormatValue.vue";var ae$1=defineComponent({name:"Input",components:{FormatValue:te},props:{format:{type:String,default:"RGBA"},value:{type:String,default:""},width:{type:Number},showAlpha:{type:Boolean},formatOptions:{type:[Boolean,Array]}},emits:["change","focus","blur","enter","formatChange"],setup:function(Ra,qa){var nd=qa.emit;return{onInput:function(od){var ld;nd("change",(ld=od.target)===null||ld===void 0?void 0:ld.value)},valueStyle:computed(function(){return{minWidth:"".concat(Ra.width,"px"),maxWidth:"".concat(Ra.width,"px"),width:"".concat(Ra.width,"px")}}),onFocus:function(){nd("focus")},onBlur:function(){nd("blur")},onEnter:function(){nd("enter")},onFormatChange:function(od){nd("formatChange",od)}}}}),ie={class:"input"},le=[".value"];function ce$1(Ra,qa){var nd=Object.keys(Ra);if(Object.getOwnPropertySymbols){var od=Object.getOwnPropertySymbols(Ra);qa&&(od=od.filter(function(ld){return Object.getOwnPropertyDescriptor(Ra,ld).enumerable})),nd.push.apply(nd,od)}return nd}function ue(Ra){for(var qa=1;qa0?parseFloat(od.toFixed(2)):od,qa){case"hsl":var md=se(ud,dd/100,pd/100);return"hsla(".concat(ud.toFixed(0),", ").concat(Math.round(100*md[1]),"%, ").concat(Math.round(100*md[2]),"%, ").concat(fd,")");case"hsv":return"hsva(".concat(ud.toFixed(0),", ").concat(Math.round(dd),"%, ").concat(Math.round(pd),"%, ").concat(fd,")");case"rgb":var vd=ve(ud,dd,pd),Ad=vd.r,Nd=vd.g,Od=vd.b;return"rgba(".concat(Ad,", ").concat(Nd,", ").concat(Od,", ").concat(fd,")");default:return"".concat(pe(ve(ud,dd,pd))).concat(de(255*fd))}else switch(qa){case"hsl":var kd=se(ud,dd/100,pd/100);return"hsl(".concat(ud.toFixed(0),", ").concat(Math.round(100*kd[1]),"%, ").concat(Math.round(100*kd[2]),"%)");case"hsv":return"hsv(".concat(ud.toFixed(0),", ").concat(Math.round(dd),"%, ").concat(Math.round(pd),"%)");case"rgb":var Ld=ve(ud,dd,pd),Gd=Ld.r,Ud=Ld.g,Fd=Ld.b;return"rgb(".concat(Gd,", ").concat(Ud,", ").concat(Fd,")");default:return pe(ve(ud,dd,pd))}},ge=function(Ra){var qa=Ra.r,nd=Ra.g,od=Ra.b;qa=he(qa,255),nd=he(nd,255),od=he(od,255);var ld,ud=Math.max(qa,nd,od),dd=Math.min(qa,nd,od),pd=ud,fd=ud-dd,md=ud===0?0:fd/ud;if(ud===dd)ld=0;else{switch(ud){case qa:ld=(nd-od)/fd+(nd2&&arguments[2]!==void 0)||arguments[2])switch(qa){case"rgb":var nd=we(Ra),od=nd.r,ld=nd.g,ud=nd.b,dd=nd.a;return ue(ue({},ge({r:od,g:ld,b:ud})),{},{a:+dd});case"hsv":var pd=ke(Ra);return{h:pd.h,s:pd.s,v:pd.v,a:pd.a};case"hsl":var fd=Se(Ra),md=fd.h,vd=fd.s,Ad=fd.l,Nd=fd.a;return ue(ue({},ye({h:md,s:vd,l:Ad})),{},{a:+Nd});default:var Od=be$1(Ra),kd=Od.r,Ld=Od.g,Gd=Od.b,Ud=Od.a;return ue(ue({},ge({r:kd,g:Ld,b:Gd})),{},{a:Ud/255})}else switch(qa){case"rgb":return ue(ue({},ge(we(Ra))),{},{a:1});case"hsv":var Fd=ke(Ra);return{h:Fd.h,s:Fd.s,v:Fd.v,a:1};case"hsl":return ue(ue({},ye(Se(Ra))),{},{a:1});default:return ue(ue({},ge(be$1(Ra))),{},{a:1})}},Oe=function(Ra){return Ra.match(/^#/)?"hex":Ra.match(/^rgb/)?"rgb":Ra.match(/^hsl/)?"hsl":Ra.match(/^hsv/)?"hsv":"hex"},Ae=function(Ra){var qa=Ra.h,nd=Ra.s,od=Ra.v,ld=Ra.a;return isNaN(qa)&&isNaN(nd)&&isNaN(od)?null:(isNaN(qa)&&(qa=0),isNaN(nd)&&(nd=0),isNaN(od)&&(od=0),isNaN(ld)&&(ld=1),{h:qa,s:nd,v:od,a:ld})},Ne=defineComponent({name:"ColorItem",props:{size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},value:{type:String,default:""},border:{type:Boolean,default:!0},borderRadius:{type:Number,default:5},selected:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},emits:["select"],setup:function(Ra){var qa=ref$1(),nd=inject("theme",{theme:"light"}).theme,od=computed(function(){return parseFloat((Ra.width||Ra.size)+"")}),ld=computed(function(){return parseFloat((Ra.height||Ra.size)+"")}),ud=computed(function(){return{width:"".concat(unref(od),"px"),height:"".concat(unref(ld),"px"),border:Ra.border?"1px solid ".concat(unref(nd)==="dark"?"#434345":"#d9d9d9"):"",borderRadius:"".concat(Ra.borderRadius,"px"),boxShadow:Ra.selected?"0 0 3px 2px ".concat(unref(nd)==="dark"?"#2681ff":"#1890ff"):""}}),dd=function(){var pd=qa.value.getContext("2d");qa.value.width=unref(od),qa.value.height=unref(ld);var fd=function(md){var vd=document.createElement("canvas"),Ad=vd.getContext("2d"),Nd=2*md;return vd.width=Nd,vd.height=Nd,Ad.fillStyle="#ffffff",Ad.fillRect(0,0,Nd,Nd),Ad.fillStyle="#ccd5db",Ad.fillRect(0,0,md,md),Ad.fillRect(md,md,md,md),vd}(5);pd.fillStyle=pd.createPattern(fd,"repeat"),pd.fillRect(0,0,unref(od),unref(ld)),pd.fillStyle=Ra.value,pd.fillRect(0,0,unref(od),unref(ld))};return watch(function(){return Ra.value},function(){dd()}),onMounted(function(){dd()}),{canvas:qa,colorItemStyle:ud}}}),Ie=["draggable"];V$1(".color-item[data-v-02da71fd]{display:inline-block;vertical-align:top}"),Ne.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("canvas",{class:"color-item",style:normalizeStyle(Ra.colorItemStyle),ref:"canvas",draggable:Ra.draggable},null,12,Ie)},Ne.__scopeId="data-v-02da71fd",Ne.__file="src/color-item/ColorItem.vue";var Fe=defineComponent({name:"Colors",components:{ColorItem:Ne},props:{colors:{type:Array,default:function(){return[]}},selectedIndex:{type:Number,default:-1}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit;return{onSelectColor:function(od,ld){nd("change",od,ld)},useColors:computed(function(){return Ra.colors.map(function(od){return xe(od,"hex",!0)})})}}}),_e$1={class:"colors"};function Ee(Ra,qa){var nd=Object.keys(Ra);if(Object.getOwnPropertySymbols){var od=Object.getOwnPropertySymbols(Ra);qa&&(od=od.filter(function(ld){return Object.getOwnPropertyDescriptor(Ra,ld).enumerable})),nd.push.apply(nd,od)}return nd}function Pe(Ra){for(var qa=1;qa0?(openBlock(),createBlock(vd,{key:0,class:"colors",colors:Ra.colors,"selected-index":Ra.selectColorIndex,onChange:Ra.onSelectColor},null,8,["colors","selected-index","onChange"])):createCommentVNode("v-if",!0)])],4)},je.__scopeId="data-v-6ceadec6",je.__file="src/picker/Picker.vue";var Re=defineComponent({name:"AddColorItem",props:{size:{type:Number,default:20},selected:{type:Boolean,default:!1}},setup:function(Ra){var qa=inject("theme",{theme:"light"}).theme;return{addColorItemStyle:computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),lineHeight:"".concat(Ra.size,"px"),boxShadow:Ra.selected?"0 0 3px 2px ".concat(unref(qa)==="dark"?"#2681ff":"#1890ff"):""}})}}});V$1(".add-color-item[data-v-ceb1719c]{background:#fff;border:1px solid #d9d9d9;border-radius:5px;vertical-align:top}.container[data-v-ceb1719c]{pointer-events:none;transform:scale(.9);transform-origin:center}[pick-colors-theme=dark] .add-color-item[data-v-ceb1719c]{background:#141414;border:1px solid #434343}path[data-v-ceb1719c]{fill:#000}[pick-colors-theme=dark] path[data-v-ceb1719c]{fill:#fff}"),Re.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("svg",{class:"add-color-item",style:normalizeStyle(Ra.addColorItemStyle),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qa[0]||(qa[0]=[createBaseVNode("g",{class:"container"},[createBaseVNode("path",{d:"M544 464V160h-80v304H160v80h304v304h80V544h304v-80z"})],-1)]),4)},Re.__scopeId="data-v-ceb1719c",Re.__file="src/add-color-item/AddColorItem.vue";var ze=defineComponent({name:"ColorPicker",components:{ColorItem:Ne,Picker:je,AddColorItem:Re},props:{value:{type:[String,Array]},theme:{type:String,default:"light"},size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},format:{type:String},showPicker:{type:Boolean,default:void 0},showAlpha:{type:Boolean,default:!1},addColor:{type:Boolean,default:!1},deleteColor:{type:Boolean,default:!0},max:{type:Number,default:13},popupContainer:{type:[String,Object,Boolean],default:"body"},zIndex:{type:Number,default:1e3},colors:{type:Array,default:function(){return["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#ff4500","#ff7d4d","#00babd","#1f93ff","#fa64c3"]}},position:{type:String},placement:{type:String},formatOptions:{type:[Boolean,Array],default:!1}},emits:["change","update:value","update:showPicker","overflowMax","closePicker","formatChange"],setup:function(Ra,qa){var nd=qa.emit,od=ref$1([]),ld=computed(function(){return unref(od).map(function(Xd){return xe(Xd,"hex",Ra.showAlpha)})}),ud=ref$1("hex");watch(function(){return Ra.format},function(){ud.value=Ra.format},{immediate:!0}),watch(function(){return Ra.value},function(){var Xd=Ra.value||"",pf=Array.isArray(Xd)?Xd:[Xd];od.value=pf.map(function(mf){return xe(mf,unref(ud),Ra.showAlpha)})},{immediate:!0});var dd=ref$1(void 0),pd=computed(function(){return unref(od)[unref(dd)]}),fd=ref$1(!1);watch(function(){return Ra.showPicker},function(){fd.value=Ra.showPicker},{immediate:!0});var md,vd,Ad=ref$1(null),Nd=ref$1(null),Od=ee(Ad,Nd,{defaultStyle:{zIndex:Ra.zIndex},strategy:Ra.position,placement:Ra.placement}).style,kd=function(){unref(Ad)==null&&(Ad.value=unref(yf)[0]),unref(dd)==null&&(dd.value=0),Ra.showPicker===void 0?fd.value=!0:nd("update:showPicker",!0)},Ld=function(){dd.value=void 0,Ra.showPicker===void 0?fd.value=!1:nd("update:showPicker",!1),nd("closePicker",toRaw(Array.isArray(Ra.value)||Ra.addColor?unref(od):unref(od)[0]))},Gd=ref$1(),Ud=function(){var Xd=L$1(M$1.mark(function pf(mf){var Tf,vf,Af,Sf;return M$1.wrap(function(Df){for(;;)switch(Df.prev=Df.next){case 0:if(vf=mf.target,(Af=(Tf=vf.dataset)===null||Tf===void 0?void 0:Tf.index)!=null&&Af!==""){Df.next=4;break}return Df.abrupt("return");case 4:if(Sf=+Af,unref(dd)!==Sf){Df.next=7;break}return Df.abrupt("return");case 7:unref(dd)!=null&&unref(dd)!==Sf?(Ld(),md&&clearTimeout(md),md=setTimeout(function(){kd(),clearTimeout(md)},100)):kd(),dd.value=Sf,Ad.value=vf;case 10:case"end":return Df.stop()}},pf)}));return function(pf){return Xd.apply(this,arguments)}}(),Fd=function(){var Xd=L$1(M$1.mark(function pf(mf){var Tf,vf,Af,Sf,Df;return M$1.wrap(function(If){for(;;)switch(If.prev=If.next){case 0:if(Sf=mf.target,!(!((Tf=unref(Gd))!==null&&Tf!==void 0&&Tf.isEqualNode(Sf))&&(!((vf=unref(Gd))===null||vf===void 0)&&vf.contains(Sf)))){If.next=4;break}return If.abrupt("return");case 4:if(Df=(Af=unref(Nd))===null||Af===void 0?void 0:Af.$el,!(Df!=null&&Df.contains(Sf))){If.next=8;break}return If.abrupt("return");case 8:vd&&clearTimeout(vd),vd=setTimeout(function(){unref(fd)&&Ld()},0);case 10:case"end":return If.stop()}},pf)}));return function(pf){return Xd.apply(this,arguments)}}();watch(fd,function(){unref(fd)&&(kd(),clearTimeout(vd))});var jd,qd=ref$1(Ra.max>unref(od).length),zd=computed(function(){return typeof Ra.popupContainer=="string"||P$1(Ra.popupContainer)==="object"&&Ra.popupContainer!=null?Ra.popupContainer:"body"}),Yd=computed(function(){return typeof Ra.popupContainer=="boolean"&&Ra.popupContainer===!1}),Jd=computed(function(){return Ra.theme});watch(function(){return[Ra.theme,unref(Nd)]},function(){nextTick$1(function(){var Xd,pf;(Xd=unref(Gd))===null||Xd===void 0||Xd.setAttribute("pick-colors-theme",unref(Jd)),(pf=unref(Nd))===null||pf===void 0||(pf=pf.$el)===null||pf===void 0||pf.setAttribute("pick-colors-theme",unref(Jd))})},{immediate:!0}),provide("theme",{theme:Jd});var yf=ref$1([]);return onMounted(function(){document.addEventListener("mouseup",Fd,!1),Ra.showPicker&&kd()}),onUnmounted(function(){document.removeEventListener("mouseup",Fd,!1),md&&(clearTimeout(md),md=null),vd&&(clearTimeout(vd),vd=null)}),{valueList:od,colorItemSelected:function(Xd){return(Ra.addColor?unref(od).length>0:unref(od).length>1)&&unref(dd)===Xd},selectedColor:pd,selectedIndex:dd,isShowPicker:fd,addColorItemShow:qd,onPickerChange:function(Xd){var pf=unref(dd),mf=unref(od).slice(),Tf=unref(od).length;if(pf!=null){pf>=0?mf[pf]=Xd:(dd.value=Tf,mf.push(Xd));var vf="";vf=Array.isArray(Ra.value)||Ra.addColor?mf:Xd,od.value=Array.isArray(vf)?vf:[vf],nd("update:value",vf),nd("change",vf,Xd,pf),Ra.addColor&&Tf>=Ra.max&&(qd.value=!1,nd("overflowMax"))}},colorPicker:Gd,onColorClick:Ud,pickerRef:Nd,onColorItemDragStart:function(Xd){Xd.dataTransfer.effectAllowed="move";var pf=Xd.target;jd=+pf.dataset.index},onColorItemDragOver:function(Xd){},onColorItemDrop:function(Xd){var pf=+Xd.target.dataset.index,mf=E$1(unref(od)),Tf=mf[jd];mf.splice(jd,1);var vf=mf.slice(0,pf),Af=mf.splice(pf),Sf=vf.concat([Tf]).concat(Af);nd("update:value",Sf),nd("change",Sf,Sf[jd],jd)},colorItemsRef:yf,pickerStyle:Od,values:ld,teleportDisabled:Yd,toPopupContainer:zd,formatValue:ud,onFormatChange:function(Xd){ud.value=Xd,nd("formatChange",Xd)}}}});V$1(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43ade8]{margin:5px}.add-color-item[data-v-3c43ade8]{display:inline-block;margin:5px}.picker[data-v-3c43ade8]{overflow:hidden}.v-enter-active[data-v-3c43ade8],.v-leave-active[data-v-3c43ade8]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-3c43ade8],.v-leave-to[data-v-3c43ade8]{opacity:0;transform:scaleY(0)}"),ze.render=function(Ra,qa,nd,od,ld,ud){var dd=resolveComponent("color-item"),pd=resolveComponent("add-color-item"),fd=resolveComponent("picker");return openBlock(),createElementBlock("div",{class:"color-picker",ref:"colorPicker",onDragstart:qa[0]||(qa[0]=withModifiers(function(){return Ra.onColorItemDragStart&&Ra.onColorItemDragStart.apply(Ra,arguments)},["stop"])),onDragover:qa[1]||(qa[1]=withModifiers(function(){return Ra.onColorItemDragOver&&Ra.onColorItemDragOver.apply(Ra,arguments)},["prevent","stop"])),onDrop:qa[2]||(qa[2]=withModifiers(function(){return Ra.onColorItemDrop&&Ra.onColorItemDrop.apply(Ra,arguments)},["prevent","stop"])),onClick:qa[3]||(qa[3]=withModifiers(function(){return Ra.onColorClick&&Ra.onColorClick.apply(Ra,arguments)},["stop"]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ra.values,function(md,vd){return openBlock(),createBlock(dd,{class:"color-item",key:vd,ref_for:!0,ref:function(Ad){return Ra.colorItemsRef[vd]=Ad},size:Ra.size,width:Ra.width,height:Ra.height,value:md,selected:Ra.colorItemSelected(vd),"data-index":vd,draggable:Ra.valueList.length>1,format:Ra.formatValue},null,8,["size","width","height","value","selected","data-index","draggable","format"])}),128)),Ra.addColor&&Ra.addColorItemShow?(openBlock(),createBlock(pd,{key:0,class:"add-color-item",ref:"addColorItem",selected:Ra.colorItemSelected(-1),"data-index":-1},null,8,["selected"])):createCommentVNode("v-if",!0),(openBlock(),createBlock(Teleport,{to:Ra.toPopupContainer,disabled:Ra.teleportDisabled},[createVNode(Transition$1,null,{default:withCtx(function(){return[Ra.isShowPicker?(openBlock(),createBlock(fd,{key:0,class:"picker",style:normalizeStyle(Ra.pickerStyle),ref:"pickerRef",value:Ra.selectedColor,format:Ra.formatValue,"show-alpha":Ra.showAlpha,colors:Ra.colors,formatOptions:Ra.formatOptions,onChange:Ra.onPickerChange,onFormatChange:Ra.onFormatChange},null,8,["style","value","format","show-alpha","colors","formatOptions","onChange","onFormatChange"])):createCommentVNode("v-if",!0)]}),_:1})],8,["to","disabled"]))],544)},ze.__scopeId="data-v-3c43ade8",ze.__file="src/ColorPicker.vue";const _hoisted_1$8={class:"space-y-2"},_hoisted_2$5={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_3$4={class:"space-y-2"},_hoisted_4$4={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_5$3={class:"space-y-2"},_hoisted_6$3={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_7$1={class:"space-y-2"},_hoisted_8$1={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_9={class:"space-y-2"},_hoisted_10={class:"space-y-2"},_hoisted_11={class:"space-y-2"},_hoisted_12={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_13={class:"space-y-2"},_hoisted_14={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_15={class:"space-y-2"},_hoisted_16={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_17={class:"space-y-2"},_hoisted_18={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_19={class:"space-y-2"},_hoisted_20={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_21={class:"space-y-2"},_hoisted_22={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_23={class:"space-y-2"},_hoisted_24={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_25={class:"space-y-2"},_sfc_main$R=defineComponent({__name:"RightSlider",setup(Ra){const qa=useStore(),nd=useDisplayStore(),{isDark:od,primaryColor:ld}=storeToRefs(qa);function ud(){nd.toggleShowCssEditor(),setTimeout(()=>{qa.cssEditor.refresh()},50)}const dd=ref$1(!1),pd=ref$1("");watch(dd,()=>{dd.value&&(pd.value="")});const fd=useTemplateRef("pickColorsContainer"),md=ref$1("rgb"),vd=ref$1(["rgb","hex","hsl","hsv"]);return(Ad,Nd)=>{const Od=_sfc_main$1o,kd=_sfc_main$W,Ld=_sfc_main$X,Gd=_sfc_main$_,Ud=_sfc_main$V,Fd=_sfc_main$$;return openBlock(),createElementBlock("div",{class:normalizeClass(["overflow-hidden bg-gray/20 transition-width duration-300 dark:bg-gray/40",{"w-0":!unref(qa).isOpenRightSlider,"w-100":unref(qa).isOpenRightSlider}])},[createBaseVNode("div",{class:normalizeClass(["space-y-4 h-full overflow-auto p-4 transition-transform",{"translate-x-0":unref(qa).isOpenRightSlider,"translate-x-full":!unref(qa).isOpenRightSlider}])},[createBaseVNode("div",_hoisted_1$8,[Nd[14]||(Nd[14]=createBaseVNode("h2",null,"主题",-1)),createBaseVNode("div",_hoisted_2$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(themeOptions),({label:jd,value:qd})=>(openBlock(),createBlock(Od,{key:qd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).theme===qd}]),variant:"outline",onClick:zd=>unref(qa).themeChanged(qd)},{default:withCtx(()=>[createTextVNode(toDisplayString(jd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_3$4,[Nd[15]||(Nd[15]=createBaseVNode("h2",null,"字体",-1)),createBaseVNode("div",_hoisted_4$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fontFamilyOptions),({label:jd,value:qd})=>(openBlock(),createBlock(Od,{key:qd,variant:"outline",class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).fontFamily===qd}]),onClick:zd=>unref(qa).fontChanged(qd)},{default:withCtx(()=>[createTextVNode(toDisplayString(jd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_5$3,[Nd[16]||(Nd[16]=createBaseVNode("h2",null,"字号",-1)),createBaseVNode("div",_hoisted_6$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fontSizeOptions),({value:jd,desc:qd})=>(openBlock(),createBlock(Od,{key:jd,variant:"outline",class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).fontSize===jd}]),onClick:zd=>unref(qa).sizeChanged(jd)},{default:withCtx(()=>[createTextVNode(toDisplayString(qd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_7$1,[Nd[17]||(Nd[17]=createBaseVNode("h2",null,"主题色",-1)),createBaseVNode("div",_hoisted_8$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(colorOptions),({label:jd,value:qd})=>(openBlock(),createBlock(Od,{key:qd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).primaryColor===qd}]),variant:"outline",onClick:zd=>unref(qa).colorChanged(qd)},{default:withCtx(()=>[createBaseVNode("span",{class:"mr-2 inline-block h-4 w-4 rounded-full",style:normalizeStyle({background:qd})},null,4),createTextVNode(" "+toDisplayString(jd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_9,[Nd[18]||(Nd[18]=createBaseVNode("h2",null,"自定义主题色",-1)),createBaseVNode("div",{ref_key:"pickColorsContainer",ref:fd},[unref(fd)?(openBlock(),createBlock(unref(ze),{key:0,value:unref(ld),"onUpdate:value":Nd[0]||(Nd[0]=jd=>isRef(ld)?ld.value=jd:null),"show-alpha":"",format:unref(md),"format-options":unref(vd),theme:unref(qa).isDark?"dark":"light","popup-container":unref(fd),onChange:unref(qa).colorChanged},null,8,["value","format","format-options","theme","popup-container","onChange"])):createCommentVNode("",!0)],512)]),createBaseVNode("div",_hoisted_10,[Nd[19]||(Nd[19]=createBaseVNode("h2",null,"代码块主题",-1)),createBaseVNode("div",null,[createVNode(Fd,{modelValue:unref(qa).codeBlockTheme,"onUpdate:modelValue":[Nd[1]||(Nd[1]=jd=>unref(qa).codeBlockTheme=jd),unref(qa).codeBlockThemeChanged]},{default:withCtx(()=>[createVNode(Ld,null,{default:withCtx(()=>[createVNode(kd,{placeholder:"Select a fruit"})]),_:1}),createVNode(Ud,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(codeBlockThemeOptions),({label:jd,value:qd})=>(openBlock(),createBlock(Gd,{key:jd,value:qd},{default:withCtx(()=>[createTextVNode(toDisplayString(jd),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])])]),createBaseVNode("div",_hoisted_11,[Nd[20]||(Nd[20]=createBaseVNode("h2",null,"图注格式",-1)),createBaseVNode("div",_hoisted_12,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(legendOptions),({label:jd,value:qd})=>(openBlock(),createBlock(Od,{key:qd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).legend===qd}]),variant:"outline",onClick:zd=>unref(qa).legendChanged(qd)},{default:withCtx(()=>[createTextVNode(toDisplayString(jd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_13,[Nd[23]||(Nd[23]=createBaseVNode("h2",null,"Mac 代码块",-1)),createBaseVNode("div",_hoisted_14,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).isMacCodeBlock}]),variant:"outline",onClick:Nd[2]||(Nd[2]=jd=>!unref(qa).isMacCodeBlock&&unref(qa).macCodeBlockChanged())},{default:withCtx(()=>Nd[21]||(Nd[21]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(qa).isMacCodeBlock}]),variant:"outline",onClick:Nd[3]||(Nd[3]=jd=>unref(qa).isMacCodeBlock&&unref(qa).macCodeBlockChanged())},{default:withCtx(()=>Nd[22]||(Nd[22]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_15,[Nd[26]||(Nd[26]=createBaseVNode("h2",null,"微信外链转底部引用",-1)),createBaseVNode("div",_hoisted_16,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).isCiteStatus}]),variant:"outline",onClick:Nd[4]||(Nd[4]=jd=>!unref(qa).isCiteStatus&&unref(qa).citeStatusChanged())},{default:withCtx(()=>Nd[24]||(Nd[24]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(qa).isCiteStatus}]),variant:"outline",onClick:Nd[5]||(Nd[5]=jd=>unref(qa).isCiteStatus&&unref(qa).citeStatusChanged())},{default:withCtx(()=>Nd[25]||(Nd[25]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_17,[Nd[29]||(Nd[29]=createBaseVNode("h2",null,"段落首行缩进",-1)),createBaseVNode("div",_hoisted_18,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).isUseIndent}]),variant:"outline",onClick:Nd[6]||(Nd[6]=jd=>!unref(qa).isUseIndent&&unref(qa).useIndentChanged())},{default:withCtx(()=>Nd[27]||(Nd[27]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(qa).isUseIndent}]),variant:"outline",onClick:Nd[7]||(Nd[7]=jd=>unref(qa).isUseIndent&&unref(qa).useIndentChanged())},{default:withCtx(()=>Nd[28]||(Nd[28]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_19,[Nd[32]||(Nd[32]=createBaseVNode("h2",null,"自定义 CSS 面板",-1)),createBaseVNode("div",_hoisted_20,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(nd).isShowCssEditor}]),variant:"outline",onClick:Nd[8]||(Nd[8]=jd=>!unref(nd).isShowCssEditor&&ud())},{default:withCtx(()=>Nd[30]||(Nd[30]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(nd).isShowCssEditor}]),variant:"outline",onClick:Nd[9]||(Nd[9]=jd=>unref(nd).isShowCssEditor&&ud())},{default:withCtx(()=>Nd[31]||(Nd[31]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_21,[Nd[35]||(Nd[35]=createBaseVNode("h2",null,"编辑区位置",-1)),createBaseVNode("div",_hoisted_22,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).isEditOnLeft}]),variant:"outline",onClick:Nd[10]||(Nd[10]=jd=>!unref(qa).isEditOnLeft&&unref(qa).toggleEditOnLeft())},{default:withCtx(()=>Nd[33]||(Nd[33]=[createTextVNode(" 左侧 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(qa).isEditOnLeft}]),variant:"outline",onClick:Nd[11]||(Nd[11]=jd=>unref(qa).isEditOnLeft&&unref(qa).toggleEditOnLeft())},{default:withCtx(()=>Nd[34]||(Nd[34]=[createTextVNode(" 右侧 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_23,[Nd[36]||(Nd[36]=createBaseVNode("h2",null,"模式",-1)),createBaseVNode("div",_hoisted_24,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(od)}]),variant:"outline",onClick:Nd[12]||(Nd[12]=jd=>unref(qa).toggleDark(!1))},{default:withCtx(()=>[createVNode(unref(Sun),{class:"h-4 w-4"})]),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(od)}]),variant:"outline",onClick:Nd[13]||(Nd[13]=jd=>unref(qa).toggleDark(!0))},{default:withCtx(()=>[createVNode(unref(Moon),{class:"h-4 w-4"})]),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_25,[Nd[38]||(Nd[38]=createBaseVNode("h2",null,"样式配置",-1)),createVNode(Od,{onClick:unref(qa).resetStyleConfirm},{default:withCtx(()=>Nd[37]||(Nd[37]=[createTextVNode(" 重置 ")])),_:1},8,["onClick"])])],2)],2)}}}),_sfc_main$Q=defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Su$2),mergeProps(unref(od),{class:unref(cn$5)("text-sm text-muted-foreground",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$7={class:"cssEditor-wrapper h-full flex flex-col border-l-1"},_sfc_main$P=defineComponent({__name:"CssEditor",setup(Ra){const qa=useStore(),nd=useDisplayStore(),od=ref$1(!1),ld=ref$1(""),ud=ref$1(["",qa.cssContentConfig.active]);function dd(Ud){ld.value=Ud,od.value=!0}function pd(){if(!ld.value.trim()){Ke$1.error("新建失败,方案名不可为空");return}if(!qa.validatorTabName(ld.value)){Ke$1.error("不能与现有方案重名");return}qa.renameTab(ld.value),od.value=!1,Ke$1.success("修改成功~")}const fd=ref$1(!1),md=ref$1("");function vd(){if(!md.value.trim()){Ke$1.error("新建失败,方案名不可为空");return}if(!qa.validatorTabName(md.value)){Ke$1.error("不能与现有方案重名");return}qa.addCssContentTab(md.value),fd.value=!1,qa.cssContentConfig.active=md.value,ud.value=[ud.value[1],md.value],Ke$1.success("新建成功~")}const Ad=ref$1(!1),Nd=ref$1("");function Od(Ud){Nd.value=Ud,Ad.value=!0}function kd(){const Ud=qa.cssContentConfig.tabs;if(Ud.length===1){Ke$1.warning("至少保留一个方案");return}let Fd=qa.cssContentConfig.active;Fd===Nd.value&&Ud.forEach((jd,qd)=>{if(jd.name===Nd.value){const zd=Ud[qd+1]||Ud[qd-1];zd&&(Fd=zd.name)}}),qa.tabChanged(Fd),qa.cssContentConfig.tabs=Ud.filter(jd=>jd.name!==Nd.value),Ke$1.success("删除成功~")}function Ld(){md.value=`方案${qa.cssContentConfig.tabs.length+1}`,fd.value=!0}function Gd(Ud){if(Ud==="add"){qa.cssContentConfig.active=ud.value[1],Ld();return}ud.value=[ud.value[1],Ud]}return(Ud,Fd)=>{const jd=_sfc_main$T,qd=_sfc_main$U,zd=_sfc_main$14,Yd=_sfc_main$16,Jd=_sfc_main$Q,yf=_sfc_main$17,Xd=_sfc_main$1e,pf=_sfc_main$1o,mf=_sfc_main$1f,Tf=_sfc_main$1g,vf=_sfc_main$1h,Af=_sfc_main$1j,Sf=_sfc_main$1k,Df=_sfc_main$1l,If=_sfc_main$1m,Gf=_sfc_main$1n,Jf=_sfc_main$1p,ih=_sfc_main$1q,uh=_sfc_main$1r;return openBlock(),createBlock(Transition$1,{"enter-active-class":"bounceInRight"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_1$7,[createVNode(zd,{modelValue:unref(qa).cssContentConfig.active,"onUpdate:modelValue":[Fd[0]||(Fd[0]=qf=>unref(qa).cssContentConfig.active=qf),Gd]},{default:withCtx(()=>[createVNode(qd,{class:"w-full overflow-x-auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(qa).cssContentConfig.tabs,qf=>(openBlock(),createBlock(jd,{key:qf.name,value:qf.name,class:"flex-1"},{default:withCtx(()=>[createTextVNode(toDisplayString(qf.title)+" ",1),withDirectives(createVNode(unref(PenLine),{class:"inline size-4 rounded-full p-0.5 transition-color hover:bg-gray-200 dark:hover:bg-gray-600",onClick:Pf=>dd(qf.name)},null,8,["onClick"]),[[vShow,unref(qa).cssContentConfig.active===qf.name]]),withDirectives(createVNode(unref(X$7),{class:"inline size-4 rounded-full p-0.5 transition-color hover:bg-gray-200 dark:hover:bg-gray-600",onClick:withModifiers(Pf=>Od(qf.name),["self"])},null,8,["onClick"]),[[vShow,unref(qa).cssContentConfig.active===qf.name]])]),_:2},1032,["value"]))),128)),createVNode(jd,{value:"add"},{default:withCtx(()=>[createVNode(unref(Plus),{class:"h-5 w-5"})]),_:1})]),_:1})]),_:1},8,["modelValue"]),Fd[21]||(Fd[21]=createBaseVNode("textarea",{id:"cssEditor",type:"textarea",placeholder:"Your custom css here."},null,-1)),createVNode(vf,{open:unref(fd),"onUpdate:open":Fd[4]||(Fd[4]=qf=>isRef(fd)?fd.value=qf:null)},{default:withCtx(()=>[createVNode(Tf,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(yf,null,{default:withCtx(()=>[createVNode(Yd,null,{default:withCtx(()=>Fd[9]||(Fd[9]=[createTextVNode("新建自定义 CSS")])),_:1}),createVNode(Jd,null,{default:withCtx(()=>Fd[10]||(Fd[10]=[createTextVNode(" 请输入方案名称 ")])),_:1})]),_:1}),createVNode(Xd,{modelValue:unref(md),"onUpdate:modelValue":Fd[1]||(Fd[1]=qf=>isRef(md)?md.value=qf:null)},null,8,["modelValue"]),createVNode(mf,null,{default:withCtx(()=>[createVNode(pf,{variant:"outline",onClick:Fd[2]||(Fd[2]=qf=>fd.value=!1)},{default:withCtx(()=>Fd[11]||(Fd[11]=[createTextVNode(" 取消 ")])),_:1}),createVNode(pf,{onClick:Fd[3]||(Fd[3]=qf=>vd())},{default:withCtx(()=>Fd[12]||(Fd[12]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(vf,{open:unref(od),"onUpdate:open":Fd[7]||(Fd[7]=qf=>isRef(od)?od.value=qf:null)},{default:withCtx(()=>[createVNode(Tf,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(yf,null,{default:withCtx(()=>[createVNode(Yd,null,{default:withCtx(()=>Fd[13]||(Fd[13]=[createTextVNode("编辑方案名称")])),_:1}),createVNode(Jd,null,{default:withCtx(()=>Fd[14]||(Fd[14]=[createTextVNode(" 请输入新的方案名称 ")])),_:1})]),_:1}),createVNode(Xd,{modelValue:unref(ld),"onUpdate:modelValue":Fd[5]||(Fd[5]=qf=>isRef(ld)?ld.value=qf:null)},null,8,["modelValue"]),createVNode(mf,null,{default:withCtx(()=>[createVNode(pf,{variant:"outline",onClick:Fd[6]||(Fd[6]=qf=>od.value=!1)},{default:withCtx(()=>Fd[15]||(Fd[15]=[createTextVNode(" 取消 ")])),_:1}),createVNode(pf,{onClick:pd},{default:withCtx(()=>Fd[16]||(Fd[16]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(uh,{open:unref(Ad),"onUpdate:open":Fd[8]||(Fd[8]=qf=>isRef(Ad)?Ad.value=qf:null)},{default:withCtx(()=>[createVNode(ih,null,{default:withCtx(()=>[createVNode(Df,null,{default:withCtx(()=>[createVNode(Af,null,{default:withCtx(()=>Fd[17]||(Fd[17]=[createTextVNode("提示")])),_:1}),createVNode(Sf,null,{default:withCtx(()=>Fd[18]||(Fd[18]=[createTextVNode(" 此操作将删除该自定义方案,是否继续? ")])),_:1})]),_:1}),createVNode(Jf,null,{default:withCtx(()=>[createVNode(If,null,{default:withCtx(()=>Fd[19]||(Fd[19]=[createTextVNode("取消")])),_:1}),createVNode(Gf,{onClick:kd},{default:withCtx(()=>Fd[20]||(Fd[20]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],512),[[vShow,unref(nd).isShowCssEditor]])]),_:1})}}}),__unplugin_components_9=_export_sfc(_sfc_main$P,[["__scopeId","data-v-b0f79ff7"]]),_sfc_main$O=defineComponent({__name:"BackTop",props:{left:{},top:{},right:{},bottom:{},visibilityHeight:{},target:{},onClick:{type:Function}},setup(Ra){const qa=Ra,nd=ref$1(qa.visibilityHeight??400),od=ref$1(!1),ld=ref$1(null);function ud(pd){var fd,md;console.log("scrollToTop"),(fd=ld.value)==null||fd.scrollTo({top:0,left:0,behavior:"smooth"}),(md=qa.onClick)==null||md.call(qa,pd)}const dd=throttle$1(pd=>{pd instanceof HTMLElement?od.value=pd.scrollTop>nd.value:od.value=window.scrollY>nd.value},200,{edges:["leading","trailing"]});return onMounted(()=>{qa.target?ld.value=document.getElementById(qa.target):ld.value=window,ld.value.addEventListener("scroll",()=>{dd(ld.value)})}),onUnmounted(()=>{ld.value.removeEventListener("scroll",()=>{dd(ld.value)})}),(pd,fd)=>{const md=_sfc_main$1o;return unref(od)?(openBlock(),createBlock(md,{key:0,variant:"outline",size:"icon",class:"fixed z-50 rounded-full",style:normalizeStyle({left:`${pd.left}px`,top:`${pd.top}px`,right:`${pd.right}px`,bottom:`${pd.bottom}px`}),onClick:ud},{default:withCtx(()=>[createVNode(unref(ArrowUpFromLine))]),_:1},8,["style"])):createCommentVNode("",!0)}}}),_sfc_main$N=defineComponent({__name:"ContextMenu",props:{dir:{},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(em$1),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$M=defineComponent({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{type:Boolean},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(am$1),null,{default:withCtx(()=>[createVNode(unref(nm$1),mergeProps(unref(ud),{class:unref(cn$5)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$L=defineComponent({__name:"ContextMenuShortcut",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$5)("ml-auto text-xs tracking-widest text-muted-foreground",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$K=defineComponent({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(rm$1),mergeProps(nd.value,{class:unref(cn$5)("-mx-1 my-1 h-px bg-border",qa.class)}),null,16,["class"]))}}),_sfc_main$J=defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(lm),mergeProps(unref(ud),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",dd.inset&&"pl-8",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$I=defineComponent({__name:"ContextMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const nd=It$4(Ra);return(od,ld)=>(openBlock(),createBlock(unref(tm$1),normalizeProps(guardReactiveProps(unref(nd))),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16))}}),_sfc_main$H=defineComponent({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(ah$1),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$G=defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(oh),null,{default:withCtx(()=>[createVNode(unref(lh),mergeProps(unref(ud),{class:unref(cn$5)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$F=defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(rh),mergeProps(unref(od),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ld.inset&&"pl-8",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$E=defineComponent({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const nd=It$4(Ra);return(od,ld)=>(openBlock(),createBlock(unref(nh),mergeProps({class:"outline-none"},unref(nd)),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16))}}),_sfc_main$D=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Ji$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_hoisted_1$6=["onClick"],_hoisted_2$4={class:"line-clamp-1"},_sfc_main$C=defineComponent({__name:"PostSlider",setup(Ra){const qa=useStore(),nd=ref$1(!1),od=ref$1("");watch(nd,()=>{nd.value&&(od.value="")});function ld(){if(od.value===""){Ke$1.error("内容标题不可为空");return}qa.addPost(od.value),nd.value=!1,Ke$1.success("内容新增成功")}const ud=ref$1(-1),dd=ref$1(!1),pd=ref$1("");function fd(Od){ud.value=Od,pd.value=qa.posts[Od].title,dd.value=!0}function md(){if(pd.value===""){Ke$1.error("内容标题不可为空");return}qa.renamePost(ud.value,pd.value),dd.value=!1,Ke$1.success("内容重命名成功")}const vd=ref$1(!1);function Ad(Od){ud.value=Od,vd.value=!0}function Nd(){qa.delPost(ud.value),vd.value=!1,Ke$1.success("内容删除成功")}return(Od,kd)=>{const Ld=_sfc_main$1o,Gd=_sfc_main$D,Ud=_sfc_main$16,Fd=_sfc_main$Q,jd=_sfc_main$17,qd=_sfc_main$1e,zd=_sfc_main$1f,Yd=_sfc_main$1g,Jd=_sfc_main$1h,yf=_sfc_main$E,Xd=_sfc_main$F,pf=_sfc_main$G,mf=_sfc_main$H,Tf=_sfc_main$1j,vf=_sfc_main$1k,Af=_sfc_main$1l,Sf=_sfc_main$1m,Df=_sfc_main$1n,If=_sfc_main$1p,Gf=_sfc_main$1q,Jf=_sfc_main$1r;return openBlock(),createElementBlock("div",{class:normalizeClass(["overflow-hidden bg-gray/20 transition-width duration-300 dark:bg-gray/40",{"w-0":!unref(qa).isOpenPostSlider,"w-50":unref(qa).isOpenPostSlider}])},[createBaseVNode("nav",{class:normalizeClass(["space-y-1 h-full overflow-auto p-2 transition-transform",{"translate-x-100":unref(qa).isOpenPostSlider,"-translate-x-full":!unref(qa).isOpenPostSlider}])},[createVNode(Jd,{open:unref(nd),"onUpdate:open":kd[2]||(kd[2]=ih=>isRef(nd)?nd.value=ih:null)},{default:withCtx(()=>[createVNode(Gd,{"as-child":""},{default:withCtx(()=>[createVNode(Ld,{variant:"outline",class:"w-full",size:"xs"},{default:withCtx(()=>[createVNode(unref(Plus)),kd[9]||(kd[9]=createTextVNode(" 新增内容 "))]),_:1})]),_:1}),createVNode(Yd,null,{default:withCtx(()=>[createVNode(jd,null,{default:withCtx(()=>[createVNode(Ud,null,{default:withCtx(()=>kd[10]||(kd[10]=[createTextVNode("新增内容")])),_:1}),createVNode(Fd,null,{default:withCtx(()=>kd[11]||(kd[11]=[createTextVNode(" 请输入内容名称 ")])),_:1})]),_:1}),createVNode(qd,{modelValue:unref(od),"onUpdate:modelValue":kd[0]||(kd[0]=ih=>isRef(od)?od.value=ih:null)},null,8,["modelValue"]),createVNode(zd,null,{default:withCtx(()=>[createVNode(Ld,{onClick:kd[1]||(kd[1]=ih=>ld())},{default:withCtx(()=>kd[12]||(kd[12]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(qa).posts,(ih,uh)=>(openBlock(),createElementBlock("a",{key:ih.title,href:"#",class:normalizeClass([{"bg-primary text-primary-foreground shadow-lg border-2 border-primary":unref(qa).currentPostIndex===uh,"dark:bg-primary-dark dark:text-primary-foreground-dark dark:border-primary-dark":unref(qa).currentPostIndex===uh},"hover:bg-primary/90 hover:text-primary-foreground dark:bg-muted dark:hover:bg-muted dark:hover:border-primary-dark h-8 w-full inline-flex items-center justify-start gap-2 whitespace-nowrap rounded px-2 text-sm transition-colors dark:text-white dark:hover:text-white"]),onClick:qf=>unref(qa).currentPostIndex=uh},[createBaseVNode("span",_hoisted_2$4,toDisplayString(ih.title),1),createVNode(mf,null,{default:withCtx(()=>[createVNode(yf,{"as-child":""},{default:withCtx(()=>[createVNode(Ld,{size:"xs",variant:"ghost",class:"ml-auto px-1.5"},{default:withCtx(()=>[createVNode(unref(Ellipsis),{class:"size-4"})]),_:1})]),_:1}),createVNode(pf,null,{default:withCtx(()=>[createVNode(Xd,{onClick:withModifiers(qf=>fd(uh),["stop"])},{default:withCtx(()=>[createVNode(unref(PenLine),{class:"mr-2 size-4"}),kd[13]||(kd[13]=createTextVNode(" 重命名 "))]),_:2},1032,["onClick"]),unref(qa).posts.length>1?(openBlock(),createBlock(Xd,{key:0,onClick:withModifiers(qf=>Ad(uh),["stop"])},{default:withCtx(()=>[createVNode(unref(Trash),{class:"mr-2 size-4"}),kd[14]||(kd[14]=createTextVNode(" 删除 "))]),_:2},1032,["onClick"])):createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)],10,_hoisted_1$6))),128)),createVNode(Jd,{open:unref(dd),"onUpdate:open":kd[6]||(kd[6]=ih=>isRef(dd)?dd.value=ih:null)},{default:withCtx(()=>[createVNode(Yd,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(jd,null,{default:withCtx(()=>[createVNode(Ud,null,{default:withCtx(()=>kd[15]||(kd[15]=[createTextVNode("编辑内容名称")])),_:1}),createVNode(Fd,null,{default:withCtx(()=>kd[16]||(kd[16]=[createTextVNode(" 请输入新的内容名称 ")])),_:1})]),_:1}),createVNode(qd,{modelValue:unref(pd),"onUpdate:modelValue":kd[3]||(kd[3]=ih=>isRef(pd)?pd.value=ih:null)},null,8,["modelValue"]),createVNode(zd,null,{default:withCtx(()=>[createVNode(Ld,{variant:"outline",onClick:kd[4]||(kd[4]=ih=>dd.value=!1)},{default:withCtx(()=>kd[17]||(kd[17]=[createTextVNode(" 取消 ")])),_:1}),createVNode(Ld,{onClick:kd[5]||(kd[5]=ih=>md())},{default:withCtx(()=>kd[18]||(kd[18]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Jf,{open:unref(vd),"onUpdate:open":kd[8]||(kd[8]=ih=>isRef(vd)?vd.value=ih:null)},{default:withCtx(()=>[createVNode(Gf,null,{default:withCtx(()=>[createVNode(Af,null,{default:withCtx(()=>[createVNode(Tf,null,{default:withCtx(()=>kd[19]||(kd[19]=[createTextVNode("提示")])),_:1}),createVNode(vf,null,{default:withCtx(()=>kd[20]||(kd[20]=[createTextVNode(" 此操作将删除该内容,是否继续? ")])),_:1})]),_:1}),createVNode(If,null,{default:withCtx(()=>[createVNode(Sf,null,{default:withCtx(()=>kd[21]||(kd[21]=[createTextVNode("取消")])),_:1}),createVNode(Df,{onClick:kd[7]||(kd[7]=ih=>Nd())},{default:withCtx(()=>kd[22]||(kd[22]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],2)],2)}}}),_hoisted_1$5={class:"mt-4"},_hoisted_2$3={key:0,class:"py-4 text-center"},_hoisted_3$3={key:1,class:"max-h-[400px] flex flex-col overflow-y-auto"},_hoisted_4$3={class:"mb-2 flex items-center gap-2"},_hoisted_5$2=["src"],_hoisted_6$2=["href"],_sfc_main$B=defineComponent({__name:"PostTaskDialog",props:{post:{},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed({get:()=>nd.open,set:fd=>od("update:open",fd)}),ud=ref$1(null),dd=ref$1(!1);async function pd(){var fd;if(nd.post)try{(fd=window.$syncer)==null||fd.addTask({post:{title:nd.post.title,content:nd.post.content,markdown:nd.post.markdown,thumb:nd.post.thumb,desc:nd.post.desc},accounts:nd.post.accounts.filter(md=>md.checked)},md=>{ud.value=md},()=>{dd.value=!1})}catch(md){console.error("发布失败:",md)}}return watch(()=>nd.open,fd=>{fd&&pd()}),(fd,md)=>(openBlock(),createBlock(unref(_sfc_main$1h),{open:unref(ld),"onUpdate:open":md[0]||(md[0]=vd=>isRef(ld)?ld.value=vd:null)},{default:withCtx(()=>[createVNode(unref(_sfc_main$1g),null,{default:withCtx(()=>{var vd;return[createVNode(unref(_sfc_main$17),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$16),null,{default:withCtx(()=>md[1]||(md[1]=[createTextVNode("提交发布任务")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_1$5,[unref(ud)?(openBlock(),createElementBlock("div",_hoisted_3$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList((vd=unref(ud))==null?void 0:vd.accounts,Ad=>(openBlock(),createElementBlock("div",{key:Ad.uid+Ad.displayName,class:"border-b py-4 last:border-b-0"},[createBaseVNode("div",_hoisted_4$3,[Ad.icon?(openBlock(),createElementBlock("img",{key:0,src:Ad.icon,class:"object-cover h-5 w-5",alt:""},null,8,_hoisted_5$2)):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString(Ad.title)+" - "+toDisplayString(Ad.displayName||Ad.home),1)]),createBaseVNode("div",{class:normalizeClass(["w-full flex-1 gap-2 overflow-auto pl-7 text-sm",{"text-yellow-600":Ad.status==="uploading","text-red-600":Ad.status==="failed","text-green-600":Ad.status==="done"}])},[Ad.status==="uploading"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(Ad.msg||"发布中"),1)],64)):createCommentVNode("",!0),Ad.status==="failed"?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(" 同步失败, 错误内容:"+toDisplayString(Ad.error),1)],64)):createCommentVNode("",!0),Ad.status==="done"&&Ad.editResp?(openBlock(),createElementBlock(Fragment,{key:2},[md[2]||(md[2]=createTextVNode(" 同步成功 ")),Ad.type!=="wordpress"&&Ad.editResp?(openBlock(),createElementBlock("a",{key:0,href:Ad.editResp.draftLink,class:"ml-2 text-blue-500 hover:underline",referrerPolicy:"no-referrer",target:"_blank"},"查看草稿",8,_hoisted_6$2)):createCommentVNode("",!0)],64)):createCommentVNode("",!0)],2)]))),128))])):(openBlock(),createElementBlock("div",_hoisted_2$3," 等待发布.. "))])]}),_:1})]),_:1},8,["open"]))}}),__unplugin_components_13=_export_sfc(_sfc_main$B,[["__scopeId","data-v-3407b3ac"]]),_sfc_main$A=defineComponent({__name:"Textarea",props:{class:{},defaultValue:{},modelValue:{}},setup(Ra,{emit:qa}){const nd=Ra,ld=useVModel(nd,"modelValue",qa,{passive:!0,defaultValue:nd.defaultValue});return(ud,dd)=>withDirectives((openBlock(),createElementBlock("textarea",{"onUpdate:modelValue":dd[0]||(dd[0]=pd=>isRef(ld)?ld.value=pd:null),class:normalizeClass(unref(cn$5)("flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",nd.class))},null,2)),[[vModelText,unref(ld)]])}}),_sfc_main$z=defineComponent({__name:"AlertDescription",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("text-sm [&_p]:leading-relaxed",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$y=defineComponent({__name:"AlertTitle",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("h5",{class:normalizeClass(unref(cn$5)("mb-1 font-medium leading-none tracking-tight",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),alertVariants=cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),_sfc_main$x=defineComponent({__name:"Alert",props:{class:{},variant:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)(unref(alertVariants)({variant:nd.variant}),qa.class)),role:"alert"},[renderSlot(nd.$slots,"default")],2))}}),_hoisted_1$4={class:"w-full flex items-center gap-4"},_hoisted_2$2={class:"w-full flex items-center gap-4"},_hoisted_3$2={class:"w-full flex items-start gap-4"},_hoisted_4$2={class:"w-full flex items-start gap-4"},_hoisted_5$1={class:"flex flex-1 flex-col gap-2"},_hoisted_6$1={class:"flex flex-row items-center gap-4"},_hoisted_7={class:"flex items-center gap-2 text-sm"},_hoisted_8=["src"],_sfc_main$w=defineComponent({__name:"PostInfo",setup(Ra){const qa=useStore(),{output:nd,editor:od}=storeToRefs(qa),ld=ref$1(!1),ud=ref$1(!1),dd=ref$1([]),pd=ref$1(!1),fd=ref$1({title:"",desc:"",thumb:"",content:"",markdown:"",accounts:[]}),md=computed(()=>ud.value&&fd.value.accounts.some(Ld=>Ld.checked));async function vd(){var Ud,Fd;ud.value&&dd.value.length===0&&await Ad();let Ld={thumb:"",title:"",desc:"",content:"",markdown:"",accounts:[]};const Gd=dd.value.filter(jd=>!["weixin","ipfs"].includes(jd.type));try{Ld={thumb:((Ud=document.querySelector("#output img"))==null?void 0:Ud.src)??"",title:[1,2,3,4,5,6].map(jd=>document.querySelector(`#output h${jd}`)).filter(jd=>jd)[0].textContent??"",desc:document.querySelector("#output p").textContent??"",content:nd.value,markdown:((Fd=od.value)==null?void 0:Fd.getValue())??"",accounts:Gd}}catch(jd){console.log("error",jd)}finally{fd.value={...Ld},console.log(fd.value,"====")}}async function Ad(){return new Promise(Ld=>{var Gd;(Gd=window.$syncer)==null||Gd.getAccounts(Ud=>{dd.value=Ud.map(Fd=>({...Fd,checked:!0})),Ld()})})}function Nd(){fd.value.accounts=fd.value.accounts.filter(Ld=>Ld.checked),pd.value=!0,ld.value=!1}function Od(Ld){Ld||(ld.value=!1)}function kd(){if(window.$syncer!==void 0){ud.value=!0;return}let Ld=0;const Gd=setInterval(async()=>{if(window.$syncer!==void 0){ud.value=!0,await Ad(),clearInterval(Gd);return}Ld++,Ld>10&&clearInterval(Gd)},500)}return onBeforeMount(()=>{kd()}),(Ld,Gd)=>{const Ud=_sfc_main$1o,Fd=_sfc_main$D,jd=_sfc_main$16,qd=_sfc_main$17,zd=_sfc_main$y,Yd=_sfc_main$z,Jd=_sfc_main$x,yf=_sfc_main$18,Xd=_sfc_main$1e,pf=_sfc_main$A,mf=_sfc_main$1f,Tf=_sfc_main$1g,vf=_sfc_main$1h,Af=__unplugin_components_13;return openBlock(),createElementBlock(Fragment,null,[createVNode(vf,{open:unref(ld),"onUpdate:open":[Gd[4]||(Gd[4]=Sf=>isRef(ld)?ld.value=Sf:null),Od]},{default:withCtx(()=>[createVNode(Fd,null,{default:withCtx(()=>[createVNode(Ud,{variant:"outline",onClick:vd},{default:withCtx(()=>Gd[6]||(Gd[6]=[createTextVNode(" 发布 ")])),_:1})]),_:1}),createVNode(Tf,null,{default:withCtx(()=>[createVNode(qd,null,{default:withCtx(()=>[createVNode(jd,null,{default:withCtx(()=>Gd[7]||(Gd[7]=[createTextVNode("发布")])),_:1})]),_:1}),createVNode(Jd,null,{default:withCtx(()=>[createVNode(unref(Info),{class:"h-4 w-4"}),createVNode(zd,null,{default:withCtx(()=>Gd[8]||(Gd[8]=[createTextVNode("提示")])),_:1}),createVNode(Yd,null,{default:withCtx(()=>Gd[9]||(Gd[9]=[createTextVNode(" 此功能由第三方浏览器插件支持,本平台不保证安全性及同步准确度。 ")])),_:1})]),_:1}),unref(ud)?createCommentVNode("",!0):(openBlock(),createBlock(Jd,{key:0},{default:withCtx(()=>[createVNode(unref(Info),{class:"h-4 w-4"}),createVNode(zd,null,{default:withCtx(()=>Gd[10]||(Gd[10]=[createTextVNode("未检测到插件")])),_:1}),createVNode(Yd,null,{default:withCtx(()=>[Gd[12]||(Gd[12]=createTextVNode(" 请安装 ")),createVNode(unref(O$4),{as:"a",class:"text-blue-500",href:"https://www.wechatsync.com/?utm_source=syncicon#install",target:"_blank"},{default:withCtx(()=>Gd[11]||(Gd[11]=[createTextVNode(" 文章同步助手 ")])),_:1}),Gd[13]||(Gd[13]=createTextVNode(" 插件 "))]),_:1})]),_:1})),createBaseVNode("div",_hoisted_1$4,[createVNode(yf,{for:"thumb",class:"w-10 text-end"},{default:withCtx(()=>Gd[14]||(Gd[14]=[createTextVNode(" 封面 ")])),_:1}),createVNode(Xd,{id:"thumb",modelValue:unref(fd).thumb,"onUpdate:modelValue":Gd[0]||(Gd[0]=Sf=>unref(fd).thumb=Sf),placeholder:"自动提取第一张图"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_2$2,[createVNode(yf,{for:"title",class:"w-10 text-end"},{default:withCtx(()=>Gd[15]||(Gd[15]=[createTextVNode(" 标题 ")])),_:1}),createVNode(Xd,{id:"title",modelValue:unref(fd).title,"onUpdate:modelValue":Gd[1]||(Gd[1]=Sf=>unref(fd).title=Sf),placeholder:"自动提取第一个标题"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_3$2,[createVNode(yf,{for:"desc",class:"w-10 text-end"},{default:withCtx(()=>Gd[16]||(Gd[16]=[createTextVNode(" 描述 ")])),_:1}),createVNode(pf,{id:"desc",modelValue:unref(fd).desc,"onUpdate:modelValue":Gd[2]||(Gd[2]=Sf=>unref(fd).desc=Sf),placeholder:"自动提取第一个段落"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_4$2,[createVNode(yf,{class:"w-10 text-end"},{default:withCtx(()=>Gd[17]||(Gd[17]=[createTextVNode(" 账号 ")])),_:1}),createBaseVNode("div",_hoisted_5$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fd).accounts,Sf=>(openBlock(),createElementBlock("div",{key:Sf.uid+Sf.displayName,class:"flex items-center gap-2"},[createBaseVNode("label",_hoisted_6$1,[createVNode(unref(Vv),{checked:Sf.checked,"onUpdate:checked":Df=>Sf.checked=Df,class:"bg-background hover:bg-muted h-[25px] w-[25px] flex appearance-none items-center justify-center border border-gray-200 rounded-[4px] outline-none"},{default:withCtx(()=>[createVNode(unref(Fv),null,{default:withCtx(()=>[Sf.checked?(openBlock(),createBlock(unref(Check),{key:0,class:"h-4 w-4"})):createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["checked","onUpdate:checked"]),createBaseVNode("span",_hoisted_7,[createBaseVNode("img",{src:Sf.icon,alt:"",class:"inline-block h-[20px] w-[20px]"},null,8,_hoisted_8),createTextVNode(" "+toDisplayString(Sf.title)+" - "+toDisplayString(Sf.displayName??Sf.home),1)])])]))),128))])]),createVNode(mf,null,{default:withCtx(()=>[createVNode(Ud,{variant:"outline",onClick:Gd[3]||(Gd[3]=Sf=>ld.value=!1)},{default:withCtx(()=>Gd[18]||(Gd[18]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(Ud,{disabled:!unref(md),onClick:Nd},{default:withCtx(()=>Gd[19]||(Gd[19]=[createTextVNode(" 确 定 ")])),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Af,{open:unref(pd),"onUpdate:open":Gd[5]||(Gd[5]=Sf=>isRef(pd)?pd.value=Sf:null),post:unref(fd)},null,8,["open","post"])],64)}}}),_sfc_main$v=defineComponent({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(fh),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$3={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$u=defineComponent({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(vh),mergeProps(unref(ud),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",nd.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$3,[createVNode(unref(ch$1),null,{default:withCtx(()=>[createVNode(unref(Circle),{class:"h-2 w-2 fill-current"})]),_:1})]),renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$t=defineComponent({__name:"Separator",props:{orientation:{},decorative:{type:Boolean},asChild:{type:Boolean},as:{},class:{},label:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(qp$1),mergeProps(nd.value,{class:unref(cn$5)("shrink-0 bg-border relative",qa.orientation==="vertical"?"w-px h-full":"h-px w-full",qa.class)}),{default:withCtx(()=>[qa.label?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(cn$5)("text-xs text-muted-foreground bg-background absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 flex justify-center items-center",qa.orientation==="vertical"?"w-[1px] px-1 py-2":"h-[1px] py-1 px-2"))},toDisplayString(qa.label),3)):createCommentVNode("",!0)]),_:1},16,["class"]))}}),_sfc_main$s=defineComponent({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Mg),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$r=defineComponent({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Vg),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$q=defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(zg),null,{default:withCtx(()=>[createVNode(unref(Ng),mergeProps({...unref(ud),...dd.$attrs},{class:unref(cn$5)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$p=defineComponent({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Fg),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$o=defineComponent({__name:"Menubar",props:{modelValue:{},defaultValue:{},dir:{},loop:{type:Boolean},class:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(Nh),mergeProps(unref(ud),{class:unref(cn$5)("flex h-10 items-center gap-x-1 rounded-md border bg-background p-1",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$n=defineComponent({__name:"AboutDialog",props:{visible:{type:Boolean,default:!1}},emits:["close"],setup(Ra,{emit:qa}){const nd=Ra,od=qa;function ld(pd){pd||od("close")}const ud=[{label:"GitHub 仓库",url:"https://github.com/doocs/md"},{label:"Gitee 仓库",url:"https://gitee.com/doocs/md"},{label:"GitCode 仓库",url:"https://gitcode.com/doocs/md"}];function dd(pd){window.open(pd,"_blank")}return(pd,fd)=>{const md=_sfc_main$16,vd=_sfc_main$17,Ad=_sfc_main$1o,Nd=_sfc_main$1f,Od=_sfc_main$1g,kd=_sfc_main$1h;return openBlock(),createBlock(kd,{open:nd.visible,"onUpdate:open":ld},{default:withCtx(()=>[createVNode(Od,null,{default:withCtx(()=>[createVNode(vd,null,{default:withCtx(()=>[createVNode(md,null,{default:withCtx(()=>fd[0]||(fd[0]=[createTextVNode("关于")])),_:1})]),_:1}),fd[1]||(fd[1]=createBaseVNode("div",{class:"text-center"},[createBaseVNode("h3",null,"一款高度简洁的微信 Markdown 编辑器"),createBaseVNode("p",null,"扫码关注公众号 Doocs,原创技术内容第一时间推送!"),createBaseVNode("img",{class:"mx-auto my-5",src:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png",alt:"Doocs Markdown 编辑器",style:{width:"40%"}})],-1)),createVNode(Nd,{class:"sm:justify-evenly"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(ud,Ld=>createVNode(Ad,{key:Ld.url,onClick:Gd=>dd(Ld.url)},{default:withCtx(()=>[createTextVNode(toDisplayString(Ld.label),1)]),_:2},1032,["onClick"])),64))]),_:1})]),_:1})]),_:1},8,["open"])}}}),_sfc_main$m=defineComponent({__name:"MenubarMenu",props:{value:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Lh),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$l=defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:8},align:{default:"start"},alignOffset:{default:-4},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Kh),null,{default:withCtx(()=>[createVNode(unref(Hh),mergeProps(unref(od),{class:unref(cn$5)("z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_hoisted_1$2={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$k=defineComponent({__name:"MenubarCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select","update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(qh),mergeProps(unref(ud),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",nd.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$2,[createVNode(unref(Yh),null,{default:withCtx(()=>[createVNode(unref(Check),{class:"h-4 w-4"})]),_:1})]),renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$j=defineComponent({__name:"MenubarTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(zh),mergeProps(unref(od),{class:unref(cn$5)("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$i=defineComponent({__name:"HelpDropdown",setup(Ra){const qa=ref$1(!1);return(nd,od)=>{const ld=_sfc_main$j,ud=_sfc_main$k,dd=_sfc_main$l,pd=_sfc_main$m,fd=_sfc_main$n;return openBlock(),createElementBlock(Fragment,null,[createVNode(pd,null,{default:withCtx(()=>[createVNode(ld,null,{default:withCtx(()=>od[2]||(od[2]=[createTextVNode(" 帮助 ")])),_:1}),createVNode(dd,{align:"start"},{default:withCtx(()=>[createVNode(ud,{onClick:od[0]||(od[0]=md=>qa.value=!0)},{default:withCtx(()=>od[3]||(od[3]=[createBaseVNode("span",null,"关于",-1)])),_:1})]),_:1})]),_:1}),createVNode(fd,{visible:unref(qa),onClose:od[1]||(od[1]=md=>qa.value=!1)},null,8,["visible"])],64)}}}),_sfc_main$h=defineComponent({__name:"HoverCard",props:{defaultOpen:{type:Boolean},open:{type:Boolean},openDelay:{},closeDelay:{}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Eh),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$g=defineComponent({__name:"HoverCardContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Dh),null,{default:withCtx(()=>[createVNode(unref($h),mergeProps(unref(od),{class:unref(cn$5)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$f=defineComponent({__name:"HoverCardTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Ph),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$e=defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Gh),mergeProps({class:unref(cn$5)("-mx-1 my-1 h-px bg-muted",qa.class)},unref(od)),null,16,["class"]))}}),_sfc_main$d=defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Qh),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$c=defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(Kh),null,{default:withCtx(()=>[createVNode(unref(ey),mergeProps(unref(ud),{class:unref(cn$5)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$b=defineComponent({__name:"DropdownMenuShortcut",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$5)("ml-auto text-xs tracking-widest opacity-60",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$a=defineComponent({__name:"MenubarSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(ty),mergeProps(unref(od),{class:unref(cn$5)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",ld.inset&&"pl-8",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default"),createVNode(unref(ChevronRight),{class:"ml-auto h-4 w-4"})]),_:3},16,["class"]))}}),_sfc_main$9=defineComponent({__name:"StyleOptionMenu",props:{title:{},options:{},current:{},change:{type:Function}},setup(Ra){const qa=Ra;function nd(od,ld){switch(od){case"字体":return{fontFamily:ld};case"字号":return{fontSize:ld};case"主题色":return{color:ld};default:return{}}}return(od,ld)=>{const ud=_sfc_main$a,dd=_sfc_main$b,pd=_sfc_main$k,fd=_sfc_main$c,md=_sfc_main$d;return openBlock(),createBlock(md,null,{default:withCtx(()=>[createVNode(ud,null,{default:withCtx(()=>[ld[0]||(ld[0]=createBaseVNode("span",{class:"mr-2 h-4 w-4"},null,-1)),createBaseVNode("span",null,toDisplayString(qa.title),1)]),_:1}),createVNode(fd,{class:"max-h-56 overflow-auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(od.options,({label:vd,value:Ad,desc:Nd})=>(openBlock(),createBlock(pd,{key:Ad,label:vd,"model-value":Ad,class:"w-50",checked:od.current===Ad,onClick:Od=>od.change(Ad)},{default:withCtx(()=>[createTextVNode(toDisplayString(vd)+" ",1),createVNode(dd,{style:normalizeStyle(nd(od.title,Ad))},{default:withCtx(()=>[createTextVNode(toDisplayString(Nd),1)]),_:2},1032,["style"])]),_:2},1032,["label","model-value","checked","onClick"]))),128))]),_:1})]),_:1})}}}),_sfc_main$8=defineComponent({__name:"StyleDropdown",setup(Ra){const qa=useStore(),{toggleShowCssEditor:nd}=useDisplayStore(),{theme:od,fontFamily:ld,fontSize:ud,primaryColor:dd,codeBlockTheme:pd,legend:fd,isMacCodeBlock:md,cssEditor:vd}=storeToRefs(qa),{resetStyleConfirm:Ad,themeChanged:Nd,fontChanged:Od,sizeChanged:kd,colorChanged:Ld,codeBlockThemeChanged:Gd,legendChanged:Ud,macCodeBlockChanged:Fd}=qa,jd=ref$1(null);function qd(){var Xd;(Xd=jd.value)==null||Xd.show()}function zd(){nd(),setTimeout(()=>{vd.value.refresh()},50)}const Yd=useTemplateRef("pickColorsContainer"),Jd=ref$1("rgb"),yf=ref$1(["rgb","hex","hsl","hsv"]);return(Xd,pf)=>{const mf=_sfc_main$j,Tf=_sfc_main$9,vf=_sfc_main$e,Af=_sfc_main$f,Sf=_sfc_main$g,Df=_sfc_main$h,If=_sfc_main$k,Gf=_sfc_main$l,Jf=_sfc_main$m;return openBlock(),createBlock(Jf,null,{default:withCtx(()=>[createVNode(mf,null,{default:withCtx(()=>pf[1]||(pf[1]=[createTextVNode(" 样式 ")])),_:1}),createVNode(Gf,{class:"w-56",align:"start"},{default:withCtx(()=>[createVNode(Tf,{title:"主题",options:unref(themeOptions),current:unref(od),change:unref(Nd)},null,8,["options","current","change"]),createVNode(vf),createVNode(Tf,{title:"字体",options:unref(fontFamilyOptions),current:unref(ld),change:unref(Od)},null,8,["options","current","change"]),createVNode(Tf,{title:"字号",options:unref(fontSizeOptions),current:unref(ud),change:unref(kd)},null,8,["options","current","change"]),createVNode(Tf,{title:"主题色",options:unref(colorOptions),current:unref(dd),change:unref(Ld)},null,8,["options","current","change"]),createVNode(Tf,{title:"代码块主题",options:unref(codeBlockThemeOptions),current:unref(pd),change:unref(Gd)},null,8,["options","current","change"]),createVNode(Tf,{title:"图注格式",options:unref(legendOptions),current:unref(fd),change:unref(Ud)},null,8,["options","current","change"]),createVNode(vf),createVNode(If,{onClick:withModifiers(qd,["self","prevent"])},{default:withCtx(()=>[createVNode(Df,{"open-delay":100},{default:withCtx(()=>[createVNode(Af,{class:"w-full flex"},{default:withCtx(()=>pf[2]||(pf[2]=[createTextVNode(" 自定义主题色 ")])),_:1}),createVNode(Sf,{side:"right",class:"w-min"},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"pickColorsContainer",ref:Yd},[createVNode(unref(ze),{value:unref(dd),"onUpdate:value":pf[0]||(pf[0]=ih=>isRef(dd)?dd.value=ih:null),"show-alpha":"",format:unref(Jd),"format-options":unref(yf),theme:unref(qa).isDark?"dark":"light","popup-container":unref(Yd),onChange:unref(qa).colorChanged},null,8,["value","format","format-options","theme","popup-container","onChange"])],512)]),_:1})]),_:1})]),_:1}),createVNode(If,{onClick:zd},{default:withCtx(()=>pf[3]||(pf[3]=[createTextVNode(" 自定义 CSS ")])),_:1}),createVNode(vf),createVNode(If,{checked:unref(md),onClick:unref(Fd)},{default:withCtx(()=>pf[4]||(pf[4]=[createTextVNode(" Mac 代码块 ")])),_:1},8,["checked","onClick"]),createVNode(vf),createVNode(If,{divided:"",onClick:unref(Ad)},{default:withCtx(()=>pf[5]||(pf[5]=[createTextVNode(" 重置 ")])),_:1},8,["onClick"])]),_:1})]),_:1})}}}),_sfc_main$7=defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(jh),mergeProps(unref(ud),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",dd.inset&&"pl-8",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$6=defineComponent({__name:"EditDropdown",setup(Ra){const{toggleShowInsertFormDialog:qa,toggleShowUploadImgDialog:nd}=useDisplayStore();return(od,ld)=>{const ud=_sfc_main$j,dd=_sfc_main$7,pd=_sfc_main$l,fd=_sfc_main$m;return openBlock(),createBlock(fd,null,{default:withCtx(()=>[createVNode(ud,null,{default:withCtx(()=>ld[2]||(ld[2]=[createTextVNode(" 编辑 ")])),_:1}),createVNode(pd,{align:"start"},{default:withCtx(()=>[createVNode(dd,{onClick:ld[0]||(ld[0]=md=>unref(nd)())},{default:withCtx(()=>[createVNode(unref(CloudUpload),{class:"mr-2 h-4 w-4"}),ld[3]||(ld[3]=createTextVNode(" 上传图片 "))]),_:1}),createVNode(dd,{onClick:ld[1]||(ld[1]=md=>unref(qa)())},{default:withCtx(()=>[createVNode(unref(Table),{class:"mr-2 h-4 w-4"}),ld[4]||(ld[4]=createTextVNode(" 插入表格 "))]),_:1})]),_:1})]),_:1})}}}),_sfc_main$5=defineComponent({__name:"MenubarShortcut",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$5)("ml-auto text-xs tracking-widest text-muted-foreground",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$4=defineComponent({__name:"FileDropdown",setup(Ra){const qa=useStore(),{isDark:nd,isEditOnLeft:od}=storeToRefs(qa),{exportEditorContent2HTML:ld,exportEditorContent2MD:ud,importMarkdownContent:dd}=qa;return(pd,fd)=>{const md=_sfc_main$j,vd=_sfc_main$7,Ad=_sfc_main$e,Nd=_sfc_main$k,Od=_sfc_main$l,kd=_sfc_main$m;return openBlock(),createBlock(kd,null,{default:withCtx(()=>[createVNode(md,null,{default:withCtx(()=>fd[5]||(fd[5]=[createTextVNode(" 文件 ")])),_:1}),createVNode(Od,{align:"start"},{default:withCtx(()=>[createVNode(vd,{onClick:fd[0]||(fd[0]=Ld=>unref(dd)())},{default:withCtx(()=>[createVNode(unref(Upload),{class:"mr-2 size-4"}),fd[6]||(fd[6]=createTextVNode(" 导入 .md "))]),_:1}),createVNode(vd,{onClick:fd[1]||(fd[1]=Ld=>unref(ud)())},{default:withCtx(()=>[createVNode(unref(Download),{class:"mr-2 size-4"}),fd[7]||(fd[7]=createTextVNode(" 导出 .md "))]),_:1}),createVNode(vd,{onClick:fd[2]||(fd[2]=Ld=>unref(ld)())},{default:withCtx(()=>[createVNode(unref(FileCode),{class:"mr-2 size-4"}),fd[8]||(fd[8]=createTextVNode(" 导出 .html "))]),_:1}),createVNode(Ad),createVNode(Nd,{checked:unref(nd),"onUpdate:checked":fd[3]||(fd[3]=Ld=>isRef(nd)?nd.value=Ld:null)},{default:withCtx(()=>fd[9]||(fd[9]=[createTextVNode(" 深色模式 ")])),_:1},8,["checked"]),createVNode(Ad),createVNode(Nd,{checked:unref(od),"onUpdate:checked":fd[4]||(fd[4]=Ld=>isRef(od)?od.value=Ld:null)},{default:withCtx(()=>fd[10]||(fd[10]=[createTextVNode(" 左侧编辑 ")])),_:1},8,["checked"])]),_:1})]),_:1})}}}),_sfc_main$3=defineComponent({__name:"Sonner",props:{invert:{type:Boolean},theme:{},position:{},hotkey:{},richColors:{type:Boolean},expand:{type:Boolean},duration:{},gap:{},visibleToasts:{},closeButton:{type:Boolean},toastOptions:{},class:{},style:{},offset:{},dir:{},icons:{},containerAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Ve),mergeProps({class:"toaster group"},qa,{"toast-options":{classes:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}}),null,16))}}),_hoisted_1$1={class:"header-container h-15 flex items-center justify-between px-5"},_hoisted_2$1={class:"space-x-2 flex"},_hoisted_3$1={class:"space-x-2 flex"},_hoisted_4$1={class:"space-x-1 bg-background text-background-foreground mx-2 flex items-center border rounded-md"},_sfc_main$2=defineComponent({__name:"index",emits:["addFormat","formatContent","startCopy","endCopy"],setup(Ra,{emit:qa}){const nd=qa,od=[{label:"加粗",kbd:[ctrlSign,"B"],emitArgs:["addFormat",`${ctrlKey}-B`]},{label:"斜体",kbd:[ctrlSign,"I"],emitArgs:["addFormat",`${ctrlKey}-I`]},{label:"删除线",kbd:[ctrlSign,"D"],emitArgs:["addFormat",`${ctrlKey}-D`]},{label:"超链接",kbd:[ctrlSign,"K"],emitArgs:["addFormat",`${ctrlKey}-K`]},{label:"行内代码",kbd:[ctrlSign,"E"],emitArgs:["addFormat",`${ctrlKey}-E`]},{label:"格式化",kbd:[altSign,shiftSign,"F"],emitArgs:["formatContent"]}],ld=useStore(),{isDark:ud,isCiteStatus:dd,isCountStatus:pd,output:fd,primaryColor:md,isOpenPostSlider:vd}=storeToRefs(ld),{toggleDark:Ad,editorRefresh:Nd,citeStatusChanged:Od,countStatusChanged:kd}=ld,Ld=useStorage(addPrefix("copyMode"),"txt"),Gd=ref$1(""),{copy:Ud}=useClipboard({source:Gd});function Fd(){nd("startCopy"),setTimeout(()=>{const jd=ud.value;jd&&Ad(),nextTick$1(async()=>{processClipboardContent(md.value);const qd=document.getElementById("output");qd.focus(),window.getSelection().removeAllRanges();const zd=qd.innerHTML;if(Ld.value==="txt"){const Yd=document.createRange();Yd.setStartBefore(qd.firstChild),Yd.setEndAfter(qd.lastChild),window.getSelection().addRange(Yd),document.execCommand("copy"),window.getSelection().removeAllRanges()}qd.innerHTML=fd.value,jd&&nextTick$1(()=>Ad()),Ld.value==="html"&&await Ud(zd),Ke$1.success(Ld.value==="html"?"已复制 HTML 源码,请进行下一步操作。":"已复制渲染后的内容到剪贴板,可直接到公众号后台粘贴。"),Nd(),nd("endCopy")})},350)}return(jd,qd)=>{const zd=_sfc_main$4,Yd=_sfc_main$j,Jd=_sfc_main$5,yf=_sfc_main$k,Xd=_sfc_main$e,pf=_sfc_main$l,mf=_sfc_main$m,Tf=_sfc_main$6,vf=_sfc_main$8,Af=_sfc_main$i,Sf=_sfc_main$o,Df=_sfc_main$1o,If=_sfc_main$p,Gf=_sfc_main$q,Jf=_sfc_main$r,ih=_sfc_main$s,uh=_sfc_main$t,qf=_sfc_main$E,Pf=_sfc_main$u,Wf=_sfc_main$v,Yf=_sfc_main$G,Kf=_sfc_main$H,Cf=_sfc_main$w;return openBlock(),createElementBlock("header",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createVNode(Sf,{class:"menubar"},{default:withCtx(()=>[createVNode(zd),createVNode(mf,null,{default:withCtx(()=>[createVNode(Yd,null,{default:withCtx(()=>qd[7]||(qd[7]=[createTextVNode(" 格式 ")])),_:1}),createVNode(pf,{class:"w-60",align:"start"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(od,({label:xf,kbd:Xf,emitArgs:sh})=>createVNode(yf,{key:xf,onClick:Ah=>sh[0]==="addFormat"?jd.$emit(sh[0],sh[1]):jd.$emit(sh[0])},{default:withCtx(()=>[createTextVNode(toDisplayString(xf)+" ",1),createVNode(Jd,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Xf,Ah=>(openBlock(),createElementBlock("kbd",{key:Ah,class:"mx-1 bg-gray-2 dark:bg-stone-9"},toDisplayString(Ah),1))),128))]),_:2},1024)]),_:2},1032,["onClick"])),64)),createVNode(Xd),createVNode(yf,{checked:unref(dd),onClick:qd[0]||(qd[0]=xf=>unref(Od)())},{default:withCtx(()=>qd[8]||(qd[8]=[createTextVNode(" 微信外链转底部引用 ")])),_:1},8,["checked"]),createVNode(Xd),createVNode(yf,{checked:unref(pd),onClick:qd[1]||(qd[1]=xf=>unref(kd)())},{default:withCtx(()=>qd[9]||(qd[9]=[createTextVNode(" 统计字数和阅读时间 ")])),_:1},8,["checked"])]),_:1})]),_:1}),createVNode(Tf),createVNode(vf),createVNode(Af)]),_:1})]),createBaseVNode("div",_hoisted_3$1,[createVNode(ih,{"delay-duration":200},{default:withCtx(()=>[createVNode(Jf,null,{default:withCtx(()=>[createVNode(If,{"as-child":""},{default:withCtx(()=>[createVNode(Df,{variant:"outline",onClick:qd[2]||(qd[2]=xf=>vd.value=!unref(vd))},{default:withCtx(()=>[withDirectives(createVNode(unref(PanelLeftOpen),{class:"size-4"},null,512),[[vShow,!unref(vd)]]),withDirectives(createVNode(unref(PanelLeftClose),{class:"size-4"},null,512),[[vShow,unref(vd)]])]),_:1})]),_:1}),createVNode(Gf,{side:"left"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(vd)?"关闭":"内容管理"),1)]),_:1})]),_:1})]),_:1}),createVNode(Df,{variant:"outline",onClick:qd[3]||(qd[3]=xf=>unref(Ad)())},{default:withCtx(()=>[withDirectives(createVNode(unref(Moon),{class:"size-4"},null,512),[[vShow,unref(ud)]]),withDirectives(createVNode(unref(Sun),{class:"size-4"},null,512),[[vShow,!unref(ud)]])]),_:1}),createBaseVNode("div",_hoisted_4$1,[createVNode(Df,{variant:"ghost",class:"shadow-none",onClick:Fd},{default:withCtx(()=>qd[10]||(qd[10]=[createTextVNode(" 复制 ")])),_:1}),createVNode(uh,{orientation:"vertical",class:"h-5"}),createVNode(Kf,{modelValue:unref(Ld),"onUpdate:modelValue":qd[5]||(qd[5]=xf=>isRef(Ld)?Ld.value=xf:null)},{default:withCtx(()=>[createVNode(qf,{"as-child":""},{default:withCtx(()=>[createVNode(Df,{variant:"ghost",class:"px-2 shadow-none"},{default:withCtx(()=>[createVNode(unref(ChevronDown),{class:"text-secondary-foreground h-4 w-4"})]),_:1})]),_:1}),createVNode(Yf,{align:"end","align-offset":-5,class:"w-[200px]"},{default:withCtx(()=>[createVNode(Wf,{modelValue:unref(Ld),"onUpdate:modelValue":qd[4]||(qd[4]=xf=>isRef(Ld)?Ld.value=xf:null)},{default:withCtx(()=>[createVNode(Pf,{value:"txt"},{default:withCtx(()=>qd[11]||(qd[11]=[createTextVNode(" 公众号格式 ")])),_:1}),createVNode(Pf,{value:"html"},{default:withCtx(()=>qd[12]||(qd[12]=[createTextVNode(" HTML 格式 ")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])]),createVNode(Cf),createVNode(Df,{variant:"outline",onClick:qd[6]||(qd[6]=xf=>unref(ld).isOpenRightSlider=!unref(ld).isOpenRightSlider)},{default:withCtx(()=>[createVNode(unref(Settings),{class:"size-4"})]),_:1}),createVNode(unref(_sfc_main$3),{"rich-colors":"",position:"top-center"})])])}}}),__unplugin_components_0=_export_sfc(_sfc_main$2,[["__scopeId","data-v-7e8ee93b"]]);function bind(Ra,qa){return function(){return Ra.apply(qa,arguments)}}var define_process_default$7={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(Ra=>qa=>{const nd=toString$1.call(qa);return Ra[nd]||(Ra[nd]=nd.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=Ra=>(Ra=Ra.toLowerCase(),qa=>kindOf(qa)===Ra),typeOfTest=Ra=>qa=>typeof qa===Ra,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(Ra){return Ra!==null&&!isUndefined(Ra)&&Ra.constructor!==null&&!isUndefined(Ra.constructor)&&isFunction$1(Ra.constructor.isBuffer)&&Ra.constructor.isBuffer(Ra)}const isArrayBuffer$2=kindOfTest("ArrayBuffer");function isArrayBufferView(Ra){let qa;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?qa=ArrayBuffer.isView(Ra):qa=Ra&&Ra.buffer&&isArrayBuffer$2(Ra.buffer),qa}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$1=Ra=>Ra!==null&&typeof Ra=="object",isBoolean$1=Ra=>Ra===!0||Ra===!1,isPlainObject=Ra=>{if(kindOf(Ra)!=="object")return!1;const qa=getPrototypeOf(Ra);return(qa===null||qa===Object.prototype||Object.getPrototypeOf(qa)===null)&&!(Symbol.toStringTag in Ra)&&!(Symbol.iterator in Ra)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=Ra=>isObject$1(Ra)&&isFunction$1(Ra.pipe),isFormData=Ra=>{let qa;return Ra&&(typeof FormData=="function"&&Ra instanceof FormData||isFunction$1(Ra.append)&&((qa=kindOf(Ra))==="formdata"||qa==="object"&&isFunction$1(Ra.toString)&&Ra.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream$3,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=Ra=>Ra.trim?Ra.trim():Ra.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(Ra,qa,{allOwnKeys:nd=!1}={}){if(Ra===null||typeof Ra>"u")return;let od,ld;if(typeof Ra!="object"&&(Ra=[Ra]),isArray(Ra))for(od=0,ld=Ra.length;od0;)if(ld=nd[od],qa===ld.toLowerCase())return ld;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global$1,isContextDefined=Ra=>!isUndefined(Ra)&&Ra!==_global;function merge(){const{caseless:Ra}=isContextDefined(this)&&this||{},qa={},nd=(od,ld)=>{const ud=Ra&&findKey(qa,ld)||ld;isPlainObject(qa[ud])&&isPlainObject(od)?qa[ud]=merge(qa[ud],od):isPlainObject(od)?qa[ud]=merge({},od):isArray(od)?qa[ud]=od.slice():qa[ud]=od};for(let od=0,ld=arguments.length;od(forEach(qa,(ld,ud)=>{nd&&isFunction$1(ld)?Ra[ud]=bind(ld,nd):Ra[ud]=ld},{allOwnKeys:od}),Ra),stripBOM=Ra=>(Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)),Ra),inherits$1=(Ra,qa,nd,od)=>{Ra.prototype=Object.create(qa.prototype,od),Ra.prototype.constructor=Ra,Object.defineProperty(Ra,"super",{value:qa.prototype}),nd&&Object.assign(Ra.prototype,nd)},toFlatObject=(Ra,qa,nd,od)=>{let ld,ud,dd;const pd={};if(qa=qa||{},Ra==null)return qa;do{for(ld=Object.getOwnPropertyNames(Ra),ud=ld.length;ud-- >0;)dd=ld[ud],(!od||od(dd,Ra,qa))&&!pd[dd]&&(qa[dd]=Ra[dd],pd[dd]=!0);Ra=nd!==!1&&getPrototypeOf(Ra)}while(Ra&&(!nd||nd(Ra,qa))&&Ra!==Object.prototype);return qa},endsWith=(Ra,qa,nd)=>{Ra=String(Ra),(nd===void 0||nd>Ra.length)&&(nd=Ra.length),nd-=qa.length;const od=Ra.indexOf(qa,nd);return od!==-1&&od===nd},toArray$1=Ra=>{if(!Ra)return null;if(isArray(Ra))return Ra;let qa=Ra.length;if(!isNumber$1(qa))return null;const nd=new Array(qa);for(;qa-- >0;)nd[qa]=Ra[qa];return nd},isTypedArray=(Ra=>qa=>Ra&&qa instanceof Ra)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(Ra,qa)=>{const od=(Ra&&Ra[Symbol.iterator]).call(Ra);let ld;for(;(ld=od.next())&&!ld.done;){const ud=ld.value;qa.call(Ra,ud[0],ud[1])}},matchAll=(Ra,qa)=>{let nd;const od=[];for(;(nd=Ra.exec(qa))!==null;)od.push(nd);return od},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=Ra=>Ra.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(nd,od,ld){return od.toUpperCase()+ld}),hasOwnProperty$1=(({hasOwnProperty:Ra})=>(qa,nd)=>Ra.call(qa,nd))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(Ra,qa)=>{const nd=Object.getOwnPropertyDescriptors(Ra),od={};forEach(nd,(ld,ud)=>{let dd;(dd=qa(ld,ud,Ra))!==!1&&(od[ud]=dd||ld)}),Object.defineProperties(Ra,od)},freezeMethods=Ra=>{reduceDescriptors(Ra,(qa,nd)=>{if(isFunction$1(Ra)&&["arguments","caller","callee"].indexOf(nd)!==-1)return!1;const od=Ra[nd];if(isFunction$1(od)){if(qa.enumerable=!1,"writable"in qa){qa.writable=!1;return}qa.set||(qa.set=()=>{throw Error("Can not rewrite read-only method '"+nd+"'")})}})},toObjectSet=(Ra,qa)=>{const nd={},od=ld=>{ld.forEach(ud=>{nd[ud]=!0})};return isArray(Ra)?od(Ra):od(String(Ra).split(qa)),nd},noop=()=>{},toFiniteNumber=(Ra,qa)=>Ra!=null&&Number.isFinite(Ra=+Ra)?Ra:qa,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(Ra=16,qa=ALPHABET.ALPHA_DIGIT)=>{let nd="";const{length:od}=qa;for(;Ra--;)nd+=qa[Math.random()*od|0];return nd};function isSpecCompliantForm(Ra){return!!(Ra&&isFunction$1(Ra.append)&&Ra[Symbol.toStringTag]==="FormData"&&Ra[Symbol.iterator])}const toJSONObject=Ra=>{const qa=new Array(10),nd=(od,ld)=>{if(isObject$1(od)){if(qa.indexOf(od)>=0)return;if(!("toJSON"in od)){qa[ld]=od;const ud=isArray(od)?[]:{};return forEach(od,(dd,pd)=>{const fd=nd(dd,ld+1);!isUndefined(fd)&&(ud[pd]=fd)}),qa[ld]=void 0,ud}}return od};return nd(Ra,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=Ra=>Ra&&(isObject$1(Ra)||isFunction$1(Ra))&&isFunction$1(Ra.then)&&isFunction$1(Ra.catch),_setImmediate=((Ra,qa)=>Ra?setImmediate:qa?((nd,od)=>(_global.addEventListener("message",({source:ld,data:ud})=>{ld===_global&&ud===nd&&od.length&&od.shift()()},!1),ld=>{od.push(ld),_global.postMessage(nd,"*")}))(`axios@${Math.random()}`,[]):nd=>setTimeout(nd))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof define_process_default$7<"u"&&define_process_default$7.nextTick||_setImmediate,utils$2={isArray,isArrayBuffer:isArrayBuffer$2,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject:isObject$1,isPlainObject,isReadableStream:isReadableStream$3,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(Ra,qa,nd,od,ld){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=Ra,this.name="AxiosError",qa&&(this.code=qa),nd&&(this.config=nd),od&&(this.request=od),ld&&(this.response=ld,this.status=ld.status?ld.status:null)}utils$2.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$2.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(Ra=>{descriptors[Ra]={value:Ra}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(Ra,qa,nd,od,ld,ud)=>{const dd=Object.create(prototype$1);return utils$2.toFlatObject(Ra,dd,function(fd){return fd!==Error.prototype},pd=>pd!=="isAxiosError"),AxiosError.call(dd,Ra.message,qa,nd,od,ld),dd.cause=Ra,dd.name=Ra.name,ud&&Object.assign(dd,ud),dd};const httpAdapter=null;function isVisitable(Ra){return utils$2.isPlainObject(Ra)||utils$2.isArray(Ra)}function removeBrackets(Ra){return utils$2.endsWith(Ra,"[]")?Ra.slice(0,-2):Ra}function renderKey(Ra,qa,nd){return Ra?Ra.concat(qa).map(function(ld,ud){return ld=removeBrackets(ld),!nd&&ud?"["+ld+"]":ld}).join(nd?".":""):qa}function isFlatArray(Ra){return utils$2.isArray(Ra)&&!Ra.some(isVisitable)}const predicates=utils$2.toFlatObject(utils$2,{},null,function(qa){return/^is[A-Z]/.test(qa)});function toFormData(Ra,qa,nd){if(!utils$2.isObject(Ra))throw new TypeError("target must be an object");qa=qa||new FormData,nd=utils$2.toFlatObject(nd,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Ld,Gd){return!utils$2.isUndefined(Gd[Ld])});const od=nd.metaTokens,ld=nd.visitor||vd,ud=nd.dots,dd=nd.indexes,fd=(nd.Blob||typeof Blob<"u"&&Blob)&&utils$2.isSpecCompliantForm(qa);if(!utils$2.isFunction(ld))throw new TypeError("visitor must be a function");function md(kd){if(kd===null)return"";if(utils$2.isDate(kd))return kd.toISOString();if(!fd&&utils$2.isBlob(kd))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$2.isArrayBuffer(kd)||utils$2.isTypedArray(kd)?fd&&typeof Blob=="function"?new Blob([kd]):Buffer$4.from(kd):kd}function vd(kd,Ld,Gd){let Ud=kd;if(kd&&!Gd&&typeof kd=="object"){if(utils$2.endsWith(Ld,"{}"))Ld=od?Ld:Ld.slice(0,-2),kd=JSON.stringify(kd);else if(utils$2.isArray(kd)&&isFlatArray(kd)||(utils$2.isFileList(kd)||utils$2.endsWith(Ld,"[]"))&&(Ud=utils$2.toArray(kd)))return Ld=removeBrackets(Ld),Ud.forEach(function(jd,qd){!(utils$2.isUndefined(jd)||jd===null)&&qa.append(dd===!0?renderKey([Ld],qd,ud):dd===null?Ld:Ld+"[]",md(jd))}),!1}return isVisitable(kd)?!0:(qa.append(renderKey(Gd,Ld,ud),md(kd)),!1)}const Ad=[],Nd=Object.assign(predicates,{defaultVisitor:vd,convertValue:md,isVisitable});function Od(kd,Ld){if(!utils$2.isUndefined(kd)){if(Ad.indexOf(kd)!==-1)throw Error("Circular reference detected in "+Ld.join("."));Ad.push(kd),utils$2.forEach(kd,function(Ud,Fd){(!(utils$2.isUndefined(Ud)||Ud===null)&&ld.call(qa,Ud,utils$2.isString(Fd)?Fd.trim():Fd,Ld,Nd))===!0&&Od(Ud,Ld?Ld.concat(Fd):[Fd])}),Ad.pop()}}if(!utils$2.isObject(Ra))throw new TypeError("data must be an object");return Od(Ra),qa}function encode$2(Ra){const qa={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(Ra).replace(/[!'()~]|%20|%00/g,function(od){return qa[od]})}function AxiosURLSearchParams(Ra,qa){this._pairs=[],Ra&&toFormData(Ra,this,qa)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(qa,nd){this._pairs.push([qa,nd])};prototype.toString=function(qa){const nd=qa?function(od){return qa.call(this,od,encode$2)}:encode$2;return this._pairs.map(function(ld){return nd(ld[0])+"="+nd(ld[1])},"").join("&")};function encode$1(Ra){return encodeURIComponent(Ra).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(Ra,qa,nd){if(!qa)return Ra;const od=nd&&nd.encode||encode$1;utils$2.isFunction(nd)&&(nd={serialize:nd});const ld=nd&&nd.serialize;let ud;if(ld?ud=ld(qa,nd):ud=utils$2.isURLSearchParams(qa)?qa.toString():new AxiosURLSearchParams(qa,nd).toString(od),ud){const dd=Ra.indexOf("#");dd!==-1&&(Ra=Ra.slice(0,dd)),Ra+=(Ra.indexOf("?")===-1?"?":"&")+ud}return Ra}class InterceptorManager{constructor(){this.handlers=[]}use(qa,nd,od){return this.handlers.push({fulfilled:qa,rejected:nd,synchronous:od?od.synchronous:!1,runWhen:od?od.runWhen:null}),this.handlers.length-1}eject(qa){this.handlers[qa]&&(this.handlers[qa]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(qa){utils$2.forEach(this.handlers,function(od){od!==null&&qa(od)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils$1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils$1,...platform$1};function toURLEncodedForm(Ra,qa){return toFormData(Ra,new platform.classes.URLSearchParams,Object.assign({visitor:function(nd,od,ld,ud){return platform.isNode&&utils$2.isBuffer(nd)?(this.append(od,nd.toString("base64")),!1):ud.defaultVisitor.apply(this,arguments)}},qa))}function parsePropPath(Ra){return utils$2.matchAll(/\w+|\[(\w*)]/g,Ra).map(qa=>qa[0]==="[]"?"":qa[1]||qa[0])}function arrayToObject(Ra){const qa={},nd=Object.keys(Ra);let od;const ld=nd.length;let ud;for(od=0;od=nd.length;return dd=!dd&&utils$2.isArray(ld)?ld.length:dd,fd?(utils$2.hasOwnProp(ld,dd)?ld[dd]=[ld[dd],od]:ld[dd]=od,!pd):((!ld[dd]||!utils$2.isObject(ld[dd]))&&(ld[dd]=[]),qa(nd,od,ld[dd],ud)&&utils$2.isArray(ld[dd])&&(ld[dd]=arrayToObject(ld[dd])),!pd)}if(utils$2.isFormData(Ra)&&utils$2.isFunction(Ra.entries)){const nd={};return utils$2.forEachEntry(Ra,(od,ld)=>{qa(parsePropPath(od),ld,nd,0)}),nd}return null}function stringifySafely(Ra,qa,nd){if(utils$2.isString(Ra))try{return(qa||JSON.parse)(Ra),utils$2.trim(Ra)}catch(od){if(od.name!=="SyntaxError")throw od}return(0,JSON.stringify)(Ra)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(qa,nd){const od=nd.getContentType()||"",ld=od.indexOf("application/json")>-1,ud=utils$2.isObject(qa);if(ud&&utils$2.isHTMLForm(qa)&&(qa=new FormData(qa)),utils$2.isFormData(qa))return ld?JSON.stringify(formDataToJSON(qa)):qa;if(utils$2.isArrayBuffer(qa)||utils$2.isBuffer(qa)||utils$2.isStream(qa)||utils$2.isFile(qa)||utils$2.isBlob(qa)||utils$2.isReadableStream(qa))return qa;if(utils$2.isArrayBufferView(qa))return qa.buffer;if(utils$2.isURLSearchParams(qa))return nd.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),qa.toString();let pd;if(ud){if(od.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(qa,this.formSerializer).toString();if((pd=utils$2.isFileList(qa))||od.indexOf("multipart/form-data")>-1){const fd=this.env&&this.env.FormData;return toFormData(pd?{"files[]":qa}:qa,fd&&new fd,this.formSerializer)}}return ud||ld?(nd.setContentType("application/json",!1),stringifySafely(qa)):qa}],transformResponse:[function(qa){const nd=this.transitional||defaults$1.transitional,od=nd&&nd.forcedJSONParsing,ld=this.responseType==="json";if(utils$2.isResponse(qa)||utils$2.isReadableStream(qa))return qa;if(qa&&utils$2.isString(qa)&&(od&&!this.responseType||ld)){const dd=!(nd&&nd.silentJSONParsing)&&ld;try{return JSON.parse(qa)}catch(pd){if(dd)throw pd.name==="SyntaxError"?AxiosError.from(pd,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):pd}}return qa}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(qa){return qa>=200&&qa<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$2.forEach(["delete","get","head","post","put","patch"],Ra=>{defaults$1.headers[Ra]={}});const ignoreDuplicateOf=utils$2.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=Ra=>{const qa={};let nd,od,ld;return Ra&&Ra.split(` +`).trim()),od=useTemplateRef("formCustomTextarea"),ld=ref$1(null);onMounted(()=>{ld.value=markRaw(CodeMirror.fromTextArea(od.value,{mode:"javascript",theme:qa.isDark?"darcula":"xq-light",lineNumbers:!0})),nextTick$1(()=>{nextTick$1(()=>{var dd;(dd=ld.value)==null||dd.setValue(nd.value)})})});function ud(){const dd=ld.value.getValue();localStorage.setItem("formCustomConfig",dd),Ke$1.success("保存成功")}return(dd,pd)=>{const fd=_sfc_main$1o;return openBlock(),createElementBlock("div",_hoisted_1$d,[createBaseVNode("div",_hoisted_2$8,[createBaseVNode("textarea",{ref_key:"formCustomTextarea",ref:od,placeholder:"Your custom code here."},null,512)]),createVNode(fd,{variant:"link",class:"p-0",href:"https://github.com/doocs/md#自定义上传逻辑",target:"_blank"},{default:withCtx(()=>pd[0]||(pd[0]=[createTextVNode(" 参数详情 ")])),_:1}),createVNode(fd,{class:"block",onClick:ud},{default:withCtx(()=>pd[1]||(pd[1]=[createTextVNode(" 保存配置 ")])),_:1})])}}}),_sfc_main$12=defineComponent({__name:"Switch",props:{defaultChecked:{type:Boolean},checked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{},asChild:{type:Boolean},as:{},class:{}},emits:["update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(cg$1),mergeProps(unref(ud),{class:unref(cn$5)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",nd.class)}),{default:withCtx(()=>[createVNode(unref(pg),{class:normalizeClass(unref(cn$5)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5"))},{default:withCtx(()=>[renderSlot(dd.$slots,"thumb")]),_:3},8,["class"])]),_:3},16,["class"]))}}),_hoisted_1$c={class:"min-h-[64px]"},_hoisted_2$7={class:"flex flex-1 flex-col justify-between"},_hoisted_3$5={class:"min-h-[40px] flex items-center"},_hoisted_4$5={key:0,class:"min-h-[24px] flex items-center text-[12px] text-red-500"},_hoisted_5$4={key:1,class:"mb-[-24px]"},_sfc_main$11=defineComponent({__name:"FormItem",props:{label:{},required:{type:Boolean},error:{}},setup(Ra){const qa=Ra;return(nd,od)=>{const ld=_sfc_main$18;return openBlock(),createElementBlock("div",_hoisted_1$c,[createVNode(ld,{class:"mb-[24px] flex items-center"},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(["mr-4 min-h-[40px] min-h-4 w-[150px] flex flex-shrink-0 items-center justify-end font-bold",{required:qa.required}])},toDisplayString(qa.label),3),createBaseVNode("div",_hoisted_2$7,[createBaseVNode("div",_hoisted_3$5,[renderSlot(nd.$slots,"default",{},void 0,!0)]),nd.error?(openBlock(),createElementBlock("p",_hoisted_4$5,toDisplayString(nd.error),1)):createCommentVNode("",!0),nd.error?(openBlock(),createElementBlock("div",_hoisted_5$4)):createCommentVNode("",!0)])]),_:3})])}}}),__unplugin_components_12=_export_sfc(_sfc_main$11,[["__scopeId","data-v-0d03152f"]]),_sfc_main$10=defineComponent({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(mg),mergeProps({class:unref(cn$5)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",qa.class)},nd.value),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$$=defineComponent({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(ky$1),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$b={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$_=defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(zy),mergeProps(unref(od),{class:unref(cn$5)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",qa.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$b,[createVNode(unref(Ky),null,{default:withCtx(()=>[createVNode(unref(Check),{class:"h-4 w-4"})]),_:1})]),createVNode(unref(jy),null,{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),_sfc_main$Z=defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(qy),mergeProps(unref(od),{class:unref(cn$5)("flex cursor-default items-center justify-center py-1",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{},()=>[createVNode(unref(ChevronDown),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),_sfc_main$Y=defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Gy),mergeProps(unref(od),{class:unref(cn$5)("flex cursor-default items-center justify-center py-1",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default",{},()=>[createVNode(unref(ChevronUp),{class:"h-4 w-4"})])]),_:3},16,["class"]))}}),_sfc_main$X=defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(My),mergeProps(unref(od),{class:unref(cn$5)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:truncate text-start",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default"),createVNode(unref(Xy),{"as-child":""},{default:withCtx(()=>[createVNode(unref(ChevronDown),{class:"h-4 w-4 shrink-0 opacity-50"})]),_:1})]),_:3},16,["class"]))}}),_sfc_main$W=defineComponent({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Yy),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$V=defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(Vy),null,{default:withCtx(()=>[createVNode(unref(Fy),mergeProps({...unref(ud),...dd.$attrs},{class:unref(cn$5)("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",dd.position==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",nd.class)}),{default:withCtx(()=>[createVNode(unref(_sfc_main$Y)),createVNode(unref(Uy),{class:normalizeClass(unref(cn$5)("p-1",dd.position==="popper"&&"h-[--radix-select-trigger-height] w-full min-w-[--radix-select-trigger-width]"))},{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},8,["class"]),createVNode(unref(_sfc_main$Z))]),_:3},16,["class"])]),_:3}))}}),_sfc_main$U=defineComponent({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(vg),mergeProps(nd.value,{class:unref(cn$5)("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",qa.class)}),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$a={class:"truncate"},_sfc_main$T=defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(hg),mergeProps(unref(od),{class:unref(cn$5)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",qa.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$a,[renderSlot(ld.$slots,"default")])]),_:3},16,["class"]))}});/** + * vee-validate v4.15.0 + * (c) 2024 Abdelrahman Awad + * @license MIT + */function isCallable(Ra){return typeof Ra=="function"}function isNullOrUndefined(Ra){return Ra==null}const isObject$4=Ra=>Ra!==null&&!!Ra&&typeof Ra=="object"&&!Array.isArray(Ra);function isIndex$1(Ra){return Number(Ra)>=0}function toNumber$4(Ra){const qa=parseFloat(Ra);return isNaN(qa)?Ra:qa}function isObjectLike$1(Ra){return typeof Ra=="object"&&Ra!==null}function getTag$1(Ra){return Ra==null?Ra===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(Ra)}function isPlainObject$2(Ra){if(!isObjectLike$1(Ra)||getTag$1(Ra)!=="[object Object]")return!1;if(Object.getPrototypeOf(Ra)===null)return!0;let qa=Ra;for(;Object.getPrototypeOf(qa)!==null;)qa=Object.getPrototypeOf(qa);return Object.getPrototypeOf(Ra)===qa}function merge$2(Ra,qa){return Object.keys(qa).forEach(nd=>{if(isPlainObject$2(qa[nd])&&isPlainObject$2(Ra[nd])){Ra[nd]||(Ra[nd]={}),merge$2(Ra[nd],qa[nd]);return}Ra[nd]=qa[nd]}),Ra}function normalizeFormPath(Ra){const qa=Ra.split(".");if(!qa.length)return"";let nd=String(qa[0]);for(let od=1;odisContainerValue(ld)&&ud in ld?ld[ud]:nd,Ra):nd}function setInPath(Ra,qa,nd){if(isNotNestedPath(qa)){Ra[cleanupNonNestedPath(qa)]=nd;return}const od=qa.split(/\.|\[(\d+)\]/).filter(Boolean);let ld=Ra;for(let ud=0;udgetFromPath(Ra,nd.slice(0,dd).join(".")));for(let ud=ld.length-1;ud>=0;ud--)if(isEmptyContainer(ld[ud])){if(ud===0){unset(Ra,nd[0]);continue}unset(ld[ud-1],nd[ud-1])}}function keysOf(Ra){return Object.keys(Ra)}function injectWithSelf(Ra,qa=void 0){const nd=getCurrentInstance();return(nd==null?void 0:nd.provides[Ra])||inject(Ra,qa)}function resolveNextCheckboxValue(Ra,qa,nd){if(Array.isArray(Ra)){const od=[...Ra],ld=od.findIndex(ud=>isEqual(ud,qa));return ld>=0?od.splice(ld,1):od.push(qa),od}return isEqual(Ra,qa)?nd:qa}function debounceAsync(Ra,qa=0){let nd=null,od=[];return function(...ld){return nd&&clearTimeout(nd),nd=setTimeout(()=>{const ud=Ra(...ld);od.forEach(dd=>dd(ud)),od=[]},qa),new Promise(ud=>od.push(ud))}}function applyModelModifiers(Ra,qa){return isObject$4(qa)&&qa.number?toNumber$4(Ra):Ra}function withLatest(Ra,qa){let nd;return async function(...ld){const ud=Ra(...ld);nd=ud;const dd=await ud;return ud!==nd?dd:(nd=void 0,qa(dd,ld))}}function normalizeErrorItem(Ra){return Array.isArray(Ra)?Ra:Ra?[Ra]:[]}function omit(Ra,qa){const nd={};for(const od in Ra)qa.includes(od)||(nd[od]=Ra[od]);return nd}function debounceNextTick(Ra){let qa=null,nd=[];return function(...od){const ld=nextTick$1(()=>{if(qa!==ld)return;const ud=Ra(...od);nd.forEach(dd=>dd(ud)),nd=[],qa=null});return qa=ld,new Promise(ud=>nd.push(ud))}}function normalizeChildren(Ra,qa,nd){return qa.slots.default?typeof Ra=="string"||!Ra?qa.slots.default(nd()):{default:()=>{var od,ld;return(ld=(od=qa.slots).default)===null||ld===void 0?void 0:ld.call(od,nd())}}:qa.slots.default}function getBoundValue(Ra){if(hasValueBinding(Ra))return Ra._value}function hasValueBinding(Ra){return"_value"in Ra}function parseInputValue(Ra){return Ra.type==="number"||Ra.type==="range"?Number.isNaN(Ra.valueAsNumber)?Ra.value:Ra.valueAsNumber:Ra.value}function normalizeEventValue(Ra){if(!isEvent(Ra))return Ra;const qa=Ra.target;if(hasCheckedAttr(qa.type)&&hasValueBinding(qa))return getBoundValue(qa);if(qa.type==="file"&&qa.files){const nd=Array.from(qa.files);return qa.multiple?nd:nd[0]}if(isNativeMultiSelect(qa))return Array.from(qa.options).filter(nd=>nd.selected&&!nd.disabled).map(getBoundValue);if(isNativeSelect(qa)){const nd=Array.from(qa.options).find(od=>od.selected);return nd?getBoundValue(nd):qa.value}return parseInputValue(qa)}function normalizeRules(Ra){const qa={};return Object.defineProperty(qa,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),Ra?isObject$4(Ra)&&Ra._$$isNormalized?Ra:isObject$4(Ra)?Object.keys(Ra).reduce((nd,od)=>{const ld=normalizeParams(Ra[od]);return Ra[od]!==!1&&(nd[od]=buildParams(ld)),nd},qa):typeof Ra!="string"?qa:Ra.split("|").reduce((nd,od)=>{const ld=parseRule(od);return ld.name&&(nd[ld.name]=buildParams(ld.params)),nd},qa):qa}function normalizeParams(Ra){return Ra===!0?[]:Array.isArray(Ra)||isObject$4(Ra)?Ra:[Ra]}function buildParams(Ra){const qa=nd=>typeof nd=="string"&&nd[0]==="@"?createLocator(nd.slice(1)):nd;return Array.isArray(Ra)?Ra.map(qa):Ra instanceof RegExp?[Ra]:Object.keys(Ra).reduce((nd,od)=>(nd[od]=qa(Ra[od]),nd),{})}const parseRule=Ra=>{let qa=[];const nd=Ra.split(":")[0];return Ra.includes(":")&&(qa=Ra.split(":").slice(1).join(":").split(",")),{name:nd,params:qa}};function createLocator(Ra){const qa=nd=>{var od;return(od=getFromPath(nd,Ra))!==null&&od!==void 0?od:nd[Ra]};return qa.__locatorRef=Ra,qa}function extractLocators(Ra){return Array.isArray(Ra)?Ra.filter(isLocator):keysOf(Ra).filter(qa=>isLocator(Ra[qa])).map(qa=>Ra[qa])}const DEFAULT_CONFIG={generateMessage:({field:Ra})=>`${Ra} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let currentConfig=Object.assign({},DEFAULT_CONFIG);const getConfig$1=()=>currentConfig;async function validate$1(Ra,qa,nd={}){const od=nd==null?void 0:nd.bails,ld={name:(nd==null?void 0:nd.name)||"{field}",rules:qa,label:nd==null?void 0:nd.label,bails:od??!0,formData:(nd==null?void 0:nd.values)||{}},ud=await _validate(ld,Ra);return Object.assign(Object.assign({},ud),{valid:!ud.errors.length})}async function _validate(Ra,qa){const nd=Ra.rules;if(isTypedSchema(nd)||isYupValidator(nd))return validateFieldWithTypedSchema(qa,Object.assign(Object.assign({},Ra),{rules:nd}));if(isCallable(nd)||Array.isArray(nd)){const pd={field:Ra.label||Ra.name,name:Ra.name,label:Ra.label,form:Ra.formData,value:qa},fd=Array.isArray(nd)?nd:[nd],md=fd.length,vd=[];for(let Ad=0;Ad{const md=fd.path||"";return pd[md]||(pd[md]={errors:[],path:md}),pd[md].errors.push(...fd.errors),pd},{});return{errors:Object.values(dd)}}}}}async function validateFieldWithTypedSchema(Ra,qa){const od=await(isTypedSchema(qa.rules)?qa.rules:yupToTypedSchema(qa.rules)).parse(Ra,{formData:qa.formData}),ld=[];for(const ud of od.errors)ud.errors.length&&ld.push(...ud.errors);return{value:od.value,errors:ld}}async function _test(Ra,qa,nd){const od=resolveRule(nd.name);if(!od)throw new Error(`No such validator '${nd.name}' exists.`);const ld=fillTargetValues(nd.params,Ra.formData),ud={field:Ra.label||Ra.name,name:Ra.name,label:Ra.label,value:qa,form:Ra.formData,rule:Object.assign(Object.assign({},nd),{params:ld})},dd=await od(qa,ld,ud);return typeof dd=="string"?{error:dd}:{error:dd?void 0:_generateFieldError(ud)}}function _generateFieldError(Ra){const qa=getConfig$1().generateMessage;return qa?qa(Ra):"Field is invalid"}function fillTargetValues(Ra,qa){const nd=od=>isLocator(od)?od(qa):od;return Array.isArray(Ra)?Ra.map(nd):Object.keys(Ra).reduce((od,ld)=>(od[ld]=nd(Ra[ld]),od),{})}async function validateTypedSchema(Ra,qa){const od=await(isTypedSchema(Ra)?Ra:yupToTypedSchema(Ra)).parse(klona(qa),{formData:klona(qa)}),ld={},ud={};for(const dd of od.errors){const pd=dd.errors,fd=(dd.path||"").replace(/\["(\d+)"\]/g,(md,vd)=>`[${vd}]`);ld[fd]={valid:!pd.length,errors:pd},pd.length&&(ud[fd]=pd[0])}return{valid:!od.errors.length,results:ld,errors:ud,values:od.value,source:"schema"}}async function validateObjectSchema(Ra,qa,nd){const ld=keysOf(Ra).map(async md=>{var vd,Ad,Nd;const Od=(vd=nd==null?void 0:nd.names)===null||vd===void 0?void 0:vd[md],kd=await validate$1(getFromPath(qa,md),Ra[md],{name:(Od==null?void 0:Od.name)||md,label:Od==null?void 0:Od.label,values:qa,bails:(Nd=(Ad=nd==null?void 0:nd.bailsMap)===null||Ad===void 0?void 0:Ad[md])!==null&&Nd!==void 0?Nd:!0});return Object.assign(Object.assign({},kd),{path:md})});let ud=!0;const dd=await Promise.all(ld),pd={},fd={};for(const md of dd)pd[md.path]={valid:md.valid,errors:md.errors},md.valid||(ud=!1,fd[md.path]=md.errors[0]);return{valid:ud,results:pd,errors:fd,source:"schema"}}let ID_COUNTER=0;function useFieldState(Ra,qa){const{value:nd,initialValue:od,setInitialValue:ld}=_useFieldValue(Ra,qa.modelValue,qa.form);if(!qa.form){let fd=function(Od){var kd;"value"in Od&&(nd.value=Od.value),"errors"in Od&&vd(Od.errors),"touched"in Od&&(Nd.touched=(kd=Od.touched)!==null&&kd!==void 0?kd:Nd.touched),"initialValue"in Od&&ld(Od.initialValue)};const{errors:md,setErrors:vd}=createFieldErrors(),Ad=ID_COUNTER>=Number.MAX_SAFE_INTEGER?0:++ID_COUNTER,Nd=createFieldMeta(nd,od,md,qa.schema);return{id:Ad,path:Ra,value:nd,initialValue:od,meta:Nd,flags:{pendingUnmount:{[Ad]:!1},pendingReset:!1},errors:md,setState:fd}}const ud=qa.form.createPathState(Ra,{bails:qa.bails,label:qa.label,type:qa.type,validate:qa.validate,schema:qa.schema}),dd=computed(()=>ud.errors);function pd(fd){var md,vd,Ad;"value"in fd&&(nd.value=fd.value),"errors"in fd&&((md=qa.form)===null||md===void 0||md.setFieldError(unref(Ra),fd.errors)),"touched"in fd&&((vd=qa.form)===null||vd===void 0||vd.setFieldTouched(unref(Ra),(Ad=fd.touched)!==null&&Ad!==void 0?Ad:!1)),"initialValue"in fd&&ld(fd.initialValue)}return{id:Array.isArray(ud.id)?ud.id[ud.id.length-1]:ud.id,path:Ra,value:nd,errors:dd,meta:ud,initialValue:od,flags:ud.__flags,setState:pd}}function _useFieldValue(Ra,qa,nd){const od=ref$1(unref(qa));function ld(){return nd?getFromPath(nd.initialValues.value,unref(Ra),unref(od)):unref(od)}function ud(md){if(!nd){od.value=md;return}nd.setFieldInitialValue(unref(Ra),md,!0)}const dd=computed(ld);if(!nd)return{value:ref$1(ld()),initialValue:dd,setInitialValue:ud};const pd=resolveModelValue(qa,nd,dd,Ra);return nd.stageInitialValue(unref(Ra),pd,!0),{value:computed({get(){return getFromPath(nd.values,unref(Ra))},set(md){nd.setFieldValue(unref(Ra),md,!1)}}),initialValue:dd,setInitialValue:ud}}function resolveModelValue(Ra,qa,nd,od){return isRef(Ra)?unref(Ra):Ra!==void 0?Ra:getFromPath(qa.values,unref(od),unref(nd))}function createFieldMeta(Ra,qa,nd,od){const ld=computed(()=>{var dd,pd,fd;return(fd=(pd=(dd=toValue$3(od))===null||dd===void 0?void 0:dd.describe)===null||pd===void 0?void 0:pd.call(dd).required)!==null&&fd!==void 0?fd:!1}),ud=reactive({touched:!1,pending:!1,valid:!0,required:ld,validated:!!unref(nd).length,initialValue:computed(()=>unref(qa)),dirty:computed(()=>!isEqual(unref(Ra),unref(qa)))});return watch(nd,dd=>{ud.valid=!dd.length},{immediate:!0,flush:"sync"}),ud}function createFieldErrors(){const Ra=ref$1([]);return{errors:Ra,setErrors:qa=>{Ra.value=normalizeErrorItem(qa)}}}function useField(Ra,qa,nd){return hasCheckedAttr(nd==null?void 0:nd.type)?useFieldWithChecked(Ra,qa,nd):_useField(Ra,qa,nd)}function _useField(Ra,qa,nd){const{initialValue:od,validateOnMount:ld,bails:ud,type:dd,checkedValue:pd,label:fd,validateOnValueUpdate:md,uncheckedValue:vd,controlled:Ad,keepValueOnUnmount:Nd,syncVModel:Od,form:kd}=normalizeOptions(nd),Ld=Ad?injectWithSelf(FormContextKey):void 0,Gd=kd||Ld,jd=computed(()=>normalizeFormPath(toValue$3(Ra))),Fd=computed(()=>{if(toValue$3(Gd==null?void 0:Gd.schema))return;const Cf=unref(qa);return isYupValidator(Cf)||isTypedSchema(Cf)||isCallable(Cf)||Array.isArray(Cf)?Cf:normalizeRules(Cf)}),Ud=!isCallable(Fd.value)&&isTypedSchema(toValue$3(qa)),{id:qd,value:zd,initialValue:Wd,meta:Jd,setState:_f,errors:Xd,flags:pf}=useFieldState(jd,{modelValue:od,form:Gd,bails:ud,label:fd,type:dd,validate:Fd.value?Nf:void 0,schema:Ud?qa:void 0}),mf=computed(()=>Xd.value[0]);Od&&useVModel({value:zd,prop:Od,handleChange:If,shouldValidate:()=>md&&!pf.pendingReset});const Sf=(Kf,Cf=!1)=>{Jd.touched=!0,Cf&&Af()};async function Tf(Kf){var Cf,xf;if(Gd!=null&&Gd.validateSchema){const{results:Yf}=await Gd.validateSchema(Kf);return(Cf=Yf[toValue$3(jd)])!==null&&Cf!==void 0?Cf:{valid:!0,errors:[]}}return Fd.value?validate$1(zd.value,Fd.value,{name:toValue$3(jd),label:toValue$3(fd),values:(xf=Gd==null?void 0:Gd.values)!==null&&xf!==void 0?xf:{},bails:ud}):{valid:!0,errors:[]}}const Af=withLatest(async()=>(Jd.pending=!0,Jd.validated=!0,Tf("validated-only")),Kf=>(pf.pendingUnmount[Wf.id]||(_f({errors:Kf.errors}),Jd.pending=!1,Jd.valid=Kf.valid),Kf)),Ef=withLatest(async()=>Tf("silent"),Kf=>(Jd.valid=Kf.valid,Kf));function Nf(Kf){return(Kf==null?void 0:Kf.mode)==="silent"?Ef():Af()}function If(Kf,Cf=!0){const xf=normalizeEventValue(Kf);ph(xf,Cf)}onMounted(()=>{if(ld)return Af();(!Gd||!Gd.validateSchema)&&Ef()});function Gf(Kf){Jd.touched=Kf}function Qf(Kf){var Cf;const xf=Kf&&"value"in Kf?Kf.value:Wd.value;_f({value:klona(xf),initialValue:klona(xf),touched:(Cf=Kf==null?void 0:Kf.touched)!==null&&Cf!==void 0?Cf:!1,errors:(Kf==null?void 0:Kf.errors)||[]}),Jd.pending=!1,Jd.validated=!1,Ef()}const Xf=getCurrentInstance();function ph(Kf,Cf=!0){zd.value=Xf&&Od?applyModelModifiers(Kf,Xf.props.modelModifiers):Kf,(Cf?Af:Ef)()}function qf(Kf){_f({errors:Array.isArray(Kf)?Kf:[Kf]})}const Lf=computed({get(){return zd.value},set(Kf){ph(Kf,md)}}),Wf={id:qd,name:jd,label:fd,value:Lf,meta:Jd,errors:Xd,errorMessage:mf,type:dd,checkedValue:pd,uncheckedValue:vd,bails:ud,keepValueOnUnmount:Nd,resetField:Qf,handleReset:()=>Qf(),validate:Nf,handleChange:If,handleBlur:Sf,setState:_f,setTouched:Gf,setErrors:qf,setValue:ph};if(provide(FieldContextKey,Wf),isRef(qa)&&typeof unref(qa)!="function"&&watch(qa,(Kf,Cf)=>{isEqual(Kf,Cf)||(Jd.validated?Af():Ef())},{deep:!0}),!Gd)return Wf;const Jf=computed(()=>{const Kf=Fd.value;return!Kf||isCallable(Kf)||isYupValidator(Kf)||isTypedSchema(Kf)||Array.isArray(Kf)?{}:Object.keys(Kf).reduce((Cf,xf)=>{const Yf=extractLocators(Kf[xf]).map(dh=>dh.__locatorRef).reduce((dh,Rh)=>{const th=getFromPath(Gd.values,Rh)||Gd.values[Rh];return th!==void 0&&(dh[Rh]=th),dh},{});return Object.assign(Cf,Yf),Cf},{})});return watch(Jf,(Kf,Cf)=>{if(!Object.keys(Kf).length)return;!isEqual(Kf,Cf)&&(Jd.validated?Af():Ef())}),onBeforeUnmount(()=>{var Kf;const Cf=(Kf=toValue$3(Wf.keepValueOnUnmount))!==null&&Kf!==void 0?Kf:toValue$3(Gd.keepValuesOnUnmount),xf=toValue$3(jd);if(Cf||!Gd||pf.pendingUnmount[Wf.id]){Gd==null||Gd.removePathState(xf,qd);return}pf.pendingUnmount[Wf.id]=!0;const Yf=Gd.getPathState(xf);if(Array.isArray(Yf==null?void 0:Yf.id)&&(Yf!=null&&Yf.multiple)?Yf!=null&&Yf.id.includes(Wf.id):(Yf==null?void 0:Yf.id)===Wf.id){if(Yf!=null&&Yf.multiple&&Array.isArray(Yf.value)){const Rh=Yf.value.findIndex(th=>isEqual(th,toValue$3(Wf.checkedValue)));if(Rh>-1){const th=[...Yf.value];th.splice(Rh,1),Gd.setFieldValue(xf,th)}Array.isArray(Yf.id)&&Yf.id.splice(Yf.id.indexOf(Wf.id),1)}else Gd.unsetPathValue(toValue$3(jd));Gd.removePathState(xf,qd)}}),Wf}function normalizeOptions(Ra){const qa=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),nd=!!(Ra!=null&&Ra.syncVModel),od=typeof(Ra==null?void 0:Ra.syncVModel)=="string"?Ra.syncVModel:(Ra==null?void 0:Ra.modelPropName)||"modelValue",ld=nd&&!("initialValue"in(Ra||{}))?getCurrentModelValue(getCurrentInstance(),od):Ra==null?void 0:Ra.initialValue;if(!Ra)return Object.assign(Object.assign({},qa()),{initialValue:ld});const ud="valueProp"in Ra?Ra.valueProp:Ra.checkedValue,dd="standalone"in Ra?!Ra.standalone:Ra.controlled,pd=(Ra==null?void 0:Ra.modelPropName)||(Ra==null?void 0:Ra.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},qa()),Ra||{}),{initialValue:ld,controlled:dd??!0,checkedValue:ud,syncVModel:pd})}function useFieldWithChecked(Ra,qa,nd){const od=nd!=null&&nd.standalone?void 0:injectWithSelf(FormContextKey),ld=nd==null?void 0:nd.checkedValue,ud=nd==null?void 0:nd.uncheckedValue;function dd(pd){const fd=pd.handleChange,md=computed(()=>{const Ad=toValue$3(pd.value),Nd=toValue$3(ld);return Array.isArray(Ad)?Ad.findIndex(Od=>isEqual(Od,Nd))>=0:isEqual(Nd,Ad)});function vd(Ad,Nd=!0){var Od,kd;if(md.value===((Od=Ad==null?void 0:Ad.target)===null||Od===void 0?void 0:Od.checked)){Nd&&pd.validate();return}const Ld=toValue$3(Ra),Gd=od==null?void 0:od.getPathState(Ld),jd=normalizeEventValue(Ad);let Fd=(kd=toValue$3(ld))!==null&&kd!==void 0?kd:jd;od&&(Gd!=null&&Gd.multiple)&&Gd.type==="checkbox"?Fd=resolveNextCheckboxValue(getFromPath(od.values,Ld)||[],Fd,void 0):(nd==null?void 0:nd.type)==="checkbox"&&(Fd=resolveNextCheckboxValue(toValue$3(pd.value),Fd,toValue$3(ud))),fd(Fd,Nd)}return Object.assign(Object.assign({},pd),{checked:md,checkedValue:ld,uncheckedValue:ud,handleChange:vd})}return dd(_useField(Ra,qa,nd))}function useVModel({prop:Ra,value:qa,handleChange:nd,shouldValidate:od}){const ld=getCurrentInstance();if(!ld||!Ra)return;const ud=typeof Ra=="string"?Ra:"modelValue",dd=`update:${ud}`;ud in ld.props&&(watch(qa,pd=>{isEqual(pd,getCurrentModelValue(ld,ud))||ld.emit(dd,pd)}),watch(()=>getCurrentModelValue(ld,ud),pd=>{if(pd===IS_ABSENT&&qa.value===void 0)return;const fd=pd===IS_ABSENT?void 0:pd;isEqual(fd,qa.value)||nd(fd,od())}))}function getCurrentModelValue(Ra,qa){if(Ra)return Ra.props[qa]}const FieldImpl=defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>getConfig$1().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:IS_ABSENT},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(Ra,qa){const nd=toRef$1(Ra,"rules"),od=toRef$1(Ra,"name"),ld=toRef$1(Ra,"label"),ud=toRef$1(Ra,"uncheckedValue"),dd=toRef$1(Ra,"keepValue"),{errors:pd,value:fd,errorMessage:md,validate:vd,handleChange:Ad,handleBlur:Nd,setTouched:Od,resetField:kd,handleReset:Ld,meta:Gd,checked:jd,setErrors:Fd,setValue:Ud}=useField(od,nd,{validateOnMount:Ra.validateOnMount,bails:Ra.bails,standalone:Ra.standalone,type:qa.attrs.type,initialValue:resolveInitialValue(Ra,qa),checkedValue:qa.attrs.value,uncheckedValue:ud,label:ld,validateOnValueUpdate:Ra.validateOnModelUpdate,keepValueOnUnmount:dd,syncVModel:!0}),qd=function(pf,mf=!0){Ad(pf,mf)},zd=computed(()=>{const{validateOnInput:Xd,validateOnChange:pf,validateOnBlur:mf,validateOnModelUpdate:Sf}=resolveValidationTriggers(Ra);function Tf(If){Nd(If,mf),isCallable(qa.attrs.onBlur)&&qa.attrs.onBlur(If)}function Af(If){qd(If,Xd),isCallable(qa.attrs.onInput)&&qa.attrs.onInput(If)}function Ef(If){qd(If,pf),isCallable(qa.attrs.onChange)&&qa.attrs.onChange(If)}const Nf={name:Ra.name,onBlur:Tf,onInput:Af,onChange:Ef};return Nf["onUpdate:modelValue"]=If=>qd(If,Sf),Nf}),Wd=computed(()=>{const Xd=Object.assign({},zd.value);hasCheckedAttr(qa.attrs.type)&&jd&&(Xd.checked=jd.value);const pf=resolveTag(Ra,qa);return shouldHaveValueBinding(pf,qa.attrs)&&(Xd.value=fd.value),Xd}),Jd=computed(()=>Object.assign(Object.assign({},zd.value),{modelValue:fd.value}));function _f(){return{field:Wd.value,componentField:Jd.value,value:fd.value,meta:Gd,errors:pd.value,errorMessage:md.value,validate:vd,resetField:kd,handleChange:qd,handleInput:Xd=>qd(Xd,!1),handleReset:Ld,handleBlur:zd.value.onBlur,setTouched:Od,setErrors:Fd,setValue:Ud}}return qa.expose({value:fd,meta:Gd,errors:pd,errorMessage:md,setErrors:Fd,setTouched:Od,setValue:Ud,reset:kd,validate:vd,handleChange:Ad}),()=>{const Xd=resolveDynamicComponent(resolveTag(Ra,qa)),pf=normalizeChildren(Xd,qa,_f);return Xd?h$2(Xd,Object.assign(Object.assign({},qa.attrs),Wd.value),pf):pf}}});function resolveTag(Ra,qa){let nd=Ra.as||"";return!Ra.as&&!qa.slots.default&&(nd="input"),nd}function resolveValidationTriggers(Ra){var qa,nd,od,ld;const{validateOnInput:ud,validateOnChange:dd,validateOnBlur:pd,validateOnModelUpdate:fd}=getConfig$1();return{validateOnInput:(qa=Ra.validateOnInput)!==null&&qa!==void 0?qa:ud,validateOnChange:(nd=Ra.validateOnChange)!==null&&nd!==void 0?nd:dd,validateOnBlur:(od=Ra.validateOnBlur)!==null&&od!==void 0?od:pd,validateOnModelUpdate:(ld=Ra.validateOnModelUpdate)!==null&&ld!==void 0?ld:fd}}function resolveInitialValue(Ra,qa){return hasCheckedAttr(qa.attrs.type)?isPropPresent(Ra,"modelValue")?Ra.modelValue:void 0:isPropPresent(Ra,"modelValue")?Ra.modelValue:qa.attrs.value}const Field=FieldImpl;let FORM_COUNTER=0;const PRIVATE_PATH_STATE_KEYS=["bails","fieldsCount","id","multiple","type","validate"];function resolveInitialValues(Ra){const qa=(Ra==null?void 0:Ra.initialValues)||{},nd=Object.assign({},toValue$3(qa)),od=unref(Ra==null?void 0:Ra.validationSchema);return od&&isTypedSchema(od)&&isCallable(od.cast)?klona(od.cast(nd)||{}):klona(nd)}function useForm(Ra){var qa;const nd=FORM_COUNTER++,od=(Ra==null?void 0:Ra.name)||"Form";let ld=0;const ud=ref$1(!1),dd=ref$1(!1),pd=ref$1(0),fd=[],md=reactive(resolveInitialValues(Ra)),vd=ref$1([]),Ad=ref$1({}),Nd=ref$1({}),Od=debounceNextTick(()=>{Nd.value=vd.value.reduce((Rf,wf)=>(Rf[normalizeFormPath(toValue$3(wf.path))]=wf,Rf),{})});function kd(Rf,wf){const sh=If(Rf);if(!sh){typeof Rf=="string"&&(Ad.value[normalizeFormPath(Rf)]=normalizeErrorItem(wf));return}if(typeof Rf=="string"){const xh=normalizeFormPath(Rf);Ad.value[xh]&&delete Ad.value[xh]}sh.errors=normalizeErrorItem(wf),sh.valid=!sh.errors.length}function Ld(Rf){keysOf(Rf).forEach(wf=>{kd(wf,Rf[wf])})}Ra!=null&&Ra.initialErrors&&Ld(Ra.initialErrors);const Gd=computed(()=>{const Rf=vd.value.reduce((wf,sh)=>(sh.errors.length&&(wf[toValue$3(sh.path)]=sh.errors),wf),{});return Object.assign(Object.assign({},Ad.value),Rf)}),jd=computed(()=>keysOf(Gd.value).reduce((Rf,wf)=>{const sh=Gd.value[wf];return sh!=null&&sh.length&&(Rf[wf]=sh[0]),Rf},{})),Fd=computed(()=>vd.value.reduce((Rf,wf)=>(Rf[toValue$3(wf.path)]={name:toValue$3(wf.path)||"",label:wf.label||""},Rf),{})),Ud=computed(()=>vd.value.reduce((Rf,wf)=>{var sh;return Rf[toValue$3(wf.path)]=(sh=wf.bails)!==null&&sh!==void 0?sh:!0,Rf},{})),qd=Object.assign({},(Ra==null?void 0:Ra.initialErrors)||{}),zd=(qa=Ra==null?void 0:Ra.keepValuesOnUnmount)!==null&&qa!==void 0?qa:!1,{initialValues:Wd,originalInitialValues:Jd,setInitialValues:_f}=useFormInitialValues(vd,md,Ra),Xd=useFormMeta(vd,md,Jd,jd),pf=computed(()=>vd.value.reduce((Rf,wf)=>{const sh=getFromPath(md,toValue$3(wf.path));return setInPath(Rf,toValue$3(wf.path),sh),Rf},{})),mf=Ra==null?void 0:Ra.validationSchema;function Sf(Rf,wf){var sh,xh;const Wh=computed(()=>getFromPath(Wd.value,toValue$3(Rf))),om=Nd.value[toValue$3(Rf)],Dm=(wf==null?void 0:wf.type)==="checkbox"||(wf==null?void 0:wf.type)==="radio";if(om&&Dm){om.multiple=!0;const Kg=ld++;return Array.isArray(om.id)?om.id.push(Kg):om.id=[om.id,Kg],om.fieldsCount++,om.__flags.pendingUnmount[Kg]=!1,om}const zm=computed(()=>getFromPath(md,toValue$3(Rf))),jm=toValue$3(Rf),ig=Qf.findIndex(Kg=>Kg===jm);ig!==-1&&Qf.splice(ig,1);const Zm=computed(()=>{var Kg,Gg,n_,Pg;const m_=toValue$3(mf);if(isTypedSchema(m_))return(Gg=(Kg=m_.describe)===null||Kg===void 0?void 0:Kg.call(m_,toValue$3(Rf)).required)!==null&&Gg!==void 0?Gg:!1;const a_=toValue$3(wf==null?void 0:wf.schema);return isTypedSchema(a_)&&(Pg=(n_=a_.describe)===null||n_===void 0?void 0:n_.call(a_).required)!==null&&Pg!==void 0?Pg:!1}),ug=ld++,wg=reactive({id:ug,path:Rf,touched:!1,pending:!1,valid:!0,validated:!!(!((sh=qd[jm])===null||sh===void 0)&&sh.length),required:Zm,initialValue:Wh,errors:shallowRef([]),bails:(xh=wf==null?void 0:wf.bails)!==null&&xh!==void 0?xh:!1,label:wf==null?void 0:wf.label,type:(wf==null?void 0:wf.type)||"default",value:zm,multiple:!1,__flags:{pendingUnmount:{[ug]:!1},pendingReset:!1},fieldsCount:1,validate:wf==null?void 0:wf.validate,dirty:computed(()=>!isEqual(unref(zm),unref(Wh)))});return vd.value.push(wg),Nd.value[jm]=wg,Od(),jd.value[jm]&&!qd[jm]&&nextTick$1(()=>{mh(jm,{mode:"silent"})}),isRef(Rf)&&watch(Rf,Kg=>{Od();const Gg=klona(zm.value);Nd.value[Kg]=wg,nextTick$1(()=>{setInPath(md,Kg,Gg)})}),wg}const Tf=debounceAsync(Jh,5),Af=debounceAsync(Jh,5),Ef=withLatest(async Rf=>await(Rf==="silent"?Tf():Af()),(Rf,[wf])=>{const sh=keysOf(Cf.errorBag.value),Wh=[...new Set([...keysOf(Rf.results),...vd.value.map(om=>om.path),...sh])].sort().reduce((om,Dm)=>{var zm;const jm=Dm,ig=If(jm)||Gf(jm),Zm=((zm=Rf.results[jm])===null||zm===void 0?void 0:zm.errors)||[],ug=toValue$3(ig==null?void 0:ig.path)||jm,wg=mergeValidationResults({errors:Zm,valid:!Zm.length},om.results[ug]);return om.results[ug]=wg,wg.valid||(om.errors[ug]=wg.errors[0]),ig&&Ad.value[ug]&&delete Ad.value[ug],ig?(ig.valid=wg.valid,wf==="silent"||wf==="validated-only"&&!ig.validated||kd(ig,wg.errors),om):(kd(ug,Zm),om)},{valid:Rf.valid,results:{},errors:{},source:Rf.source});return Rf.values&&(Wh.values=Rf.values,Wh.source=Rf.source),keysOf(Wh.results).forEach(om=>{var Dm;const zm=If(om);zm&&wf!=="silent"&&(wf==="validated-only"&&!zm.validated||kd(zm,(Dm=Wh.results[om])===null||Dm===void 0?void 0:Dm.errors))}),Wh});function Nf(Rf){vd.value.forEach(Rf)}function If(Rf){const wf=typeof Rf=="string"?normalizeFormPath(Rf):Rf;return typeof wf=="string"?Nd.value[wf]:wf}function Gf(Rf){return vd.value.filter(sh=>Rf.startsWith(toValue$3(sh.path))).reduce((sh,xh)=>sh?xh.path.length>sh.path.length?xh:sh:xh,void 0)}let Qf=[],Xf;function ph(Rf){return Qf.push(Rf),Xf||(Xf=nextTick$1(()=>{[...Qf].sort().reverse().forEach(sh=>{unsetPath(md,sh)}),Qf=[],Xf=null})),Xf}function qf(Rf){return function(sh,xh){return function(om){return om instanceof Event&&(om.preventDefault(),om.stopPropagation()),Nf(Dm=>Dm.touched=!0),ud.value=!0,pd.value++,Zf().then(Dm=>{const zm=klona(md);if(Dm.valid&&typeof sh=="function"){const jm=klona(pf.value);let ig=Rf?jm:zm;return Dm.values&&(ig=Dm.source==="schema"?Dm.values:Object.assign({},ig,Dm.values)),sh(ig,{evt:om,controlledValues:jm,setErrors:Ld,setFieldError:kd,setTouched:uh,setFieldTouched:th,setValues:dh,setFieldValue:xf,resetForm:Uf,resetField:Pf})}!Dm.valid&&typeof xh=="function"&&xh({values:zm,evt:om,errors:Dm.errors,results:Dm.results})}).then(Dm=>(ud.value=!1,Dm),Dm=>{throw ud.value=!1,Dm})}}}const Wf=qf(!1);Wf.withControlled=qf(!0);function Jf(Rf,wf){const sh=vd.value.findIndex(Wh=>Wh.path===Rf&&(Array.isArray(Wh.id)?Wh.id.includes(wf):Wh.id===wf)),xh=vd.value[sh];if(!(sh===-1||!xh)){if(nextTick$1(()=>{mh(Rf,{mode:"silent",warn:!1})}),xh.multiple&&xh.fieldsCount&&xh.fieldsCount--,Array.isArray(xh.id)){const Wh=xh.id.indexOf(wf);Wh>=0&&xh.id.splice(Wh,1),delete xh.__flags.pendingUnmount[wf]}(!xh.multiple||xh.fieldsCount<=0)&&(vd.value.splice(sh,1),Mh(Rf),Od(),delete Nd.value[Rf])}}function Kf(Rf){keysOf(Nd.value).forEach(wf=>{wf.startsWith(Rf)&&delete Nd.value[wf]}),vd.value=vd.value.filter(wf=>!wf.path.startsWith(Rf)),nextTick$1(()=>{Od()})}const Cf={name:od,formId:nd,values:md,controlledValues:pf,errorBag:Gd,errors:jd,schema:mf,submitCount:pd,meta:Xd,isSubmitting:ud,isValidating:dd,fieldArrays:fd,keepValuesOnUnmount:zd,validateSchema:unref(mf)?Ef:void 0,validate:Zf,setFieldError:kd,validateField:mh,setFieldValue:xf,setValues:dh,setErrors:Ld,setFieldTouched:th,setTouched:uh,resetForm:Uf,resetField:Pf,handleSubmit:Wf,useFieldModel:gm,defineInputBinds:Lm,defineComponentBinds:Vm,defineField:Im,stageInitialValue:_h,unsetInitialValue:Mh,setFieldInitialValue:pm,createPathState:Sf,getPathState:If,unsetPathValue:ph,removePathState:Jf,initialValues:Wd,getAllPathStates:()=>vd.value,destroyPath:Kf,isFieldTouched:Bf,isFieldDirty:Sh,isFieldValid:Fh};function xf(Rf,wf,sh=!0){const xh=klona(wf),Wh=typeof Rf=="string"?Rf:Rf.path;If(Wh)||Sf(Wh),setInPath(md,Wh,xh),sh&&mh(Wh)}function Yf(Rf,wf=!0){keysOf(md).forEach(sh=>{delete md[sh]}),keysOf(Rf).forEach(sh=>{xf(sh,Rf[sh],!1)}),wf&&Zf()}function dh(Rf,wf=!0){merge$2(md,Rf),fd.forEach(sh=>sh&&sh.reset()),wf&&Zf()}function Rh(Rf,wf){const sh=If(toValue$3(Rf))||Sf(Rf);return computed({get(){return sh.value},set(xh){var Wh;const om=toValue$3(Rf);xf(om,xh,(Wh=toValue$3(wf))!==null&&Wh!==void 0?Wh:!1)}})}function th(Rf,wf){const sh=If(Rf);sh&&(sh.touched=wf)}function Bf(Rf){const wf=If(Rf);return wf?wf.touched:vd.value.filter(sh=>sh.path.startsWith(Rf)).some(sh=>sh.touched)}function Sh(Rf){const wf=If(Rf);return wf?wf.dirty:vd.value.filter(sh=>sh.path.startsWith(Rf)).some(sh=>sh.dirty)}function Fh(Rf){const wf=If(Rf);return wf?wf.valid:vd.value.filter(sh=>sh.path.startsWith(Rf)).every(sh=>sh.valid)}function uh(Rf){if(typeof Rf=="boolean"){Nf(wf=>{wf.touched=Rf});return}keysOf(Rf).forEach(wf=>{th(wf,!!Rf[wf])})}function Pf(Rf,wf){var sh;const xh=wf&&"value"in wf?wf.value:getFromPath(Wd.value,Rf),Wh=If(Rf);Wh&&(Wh.__flags.pendingReset=!0),pm(Rf,klona(xh),!0),xf(Rf,xh,!1),th(Rf,(sh=wf==null?void 0:wf.touched)!==null&&sh!==void 0?sh:!1),kd(Rf,(wf==null?void 0:wf.errors)||[]),nextTick$1(()=>{Wh&&(Wh.__flags.pendingReset=!1)})}function Uf(Rf,wf){let sh=klona(Rf!=null&&Rf.values?Rf.values:Jd.value);sh=wf!=null&&wf.force?sh:merge$2(Jd.value,sh),sh=isTypedSchema(mf)&&isCallable(mf.cast)?mf.cast(sh):sh,_f(sh,{force:wf==null?void 0:wf.force}),Nf(xh=>{var Wh;xh.__flags.pendingReset=!0,xh.validated=!1,xh.touched=((Wh=Rf==null?void 0:Rf.touched)===null||Wh===void 0?void 0:Wh[toValue$3(xh.path)])||!1,xf(toValue$3(xh.path),getFromPath(sh,toValue$3(xh.path)),!1),kd(toValue$3(xh.path),void 0)}),wf!=null&&wf.force?Yf(sh,!1):dh(sh,!1),Ld((Rf==null?void 0:Rf.errors)||{}),pd.value=(Rf==null?void 0:Rf.submitCount)||0,nextTick$1(()=>{Zf({mode:"silent"}),Nf(xh=>{xh.__flags.pendingReset=!1})})}async function Zf(Rf){const wf=(Rf==null?void 0:Rf.mode)||"force";if(wf==="force"&&Nf(Dm=>Dm.validated=!0),Cf.validateSchema)return Cf.validateSchema(wf);dd.value=!0;const sh=await Promise.all(vd.value.map(Dm=>Dm.validate?Dm.validate(Rf).then(zm=>({key:toValue$3(Dm.path),valid:zm.valid,errors:zm.errors,value:zm.value})):Promise.resolve({key:toValue$3(Dm.path),valid:!0,errors:[],value:void 0})));dd.value=!1;const xh={},Wh={},om={};for(const Dm of sh)xh[Dm.key]={valid:Dm.valid,errors:Dm.errors},Dm.value&&setInPath(om,Dm.key,Dm.value),Dm.errors.length&&(Wh[Dm.key]=Dm.errors[0]);return{valid:sh.every(Dm=>Dm.valid),results:xh,errors:Wh,values:om,source:"fields"}}async function mh(Rf,wf){var sh;const xh=If(Rf);if(xh&&(wf==null?void 0:wf.mode)!=="silent"&&(xh.validated=!0),mf){const{results:Wh}=await Ef((wf==null?void 0:wf.mode)||"validated-only");return Wh[Rf]||{errors:[],valid:!0}}return xh!=null&&xh.validate?xh.validate(wf):(!xh&&(sh=wf==null?void 0:wf.warn),Promise.resolve({errors:[],valid:!0}))}function Mh(Rf){unsetPath(Wd.value,Rf)}function _h(Rf,wf,sh=!1){pm(Rf,wf),setInPath(md,Rf,wf),sh&&!(Ra!=null&&Ra.initialValues)&&setInPath(Jd.value,Rf,klona(wf))}function pm(Rf,wf,sh=!1){setInPath(Wd.value,Rf,klona(wf)),sh&&setInPath(Jd.value,Rf,klona(wf))}async function Jh(){const Rf=unref(mf);if(!Rf)return{valid:!0,results:{},errors:{},source:"none"};dd.value=!0;const wf=isYupValidator(Rf)||isTypedSchema(Rf)?await validateTypedSchema(Rf,md):await validateObjectSchema(Rf,md,{names:Fd.value,bailsMap:Ud.value});return dd.value=!1,wf}const Mm=Wf((Rf,{evt:wf})=>{isFormSubmitEvent(wf)&&wf.target.submit()});onMounted(()=>{if(Ra!=null&&Ra.initialErrors&&Ld(Ra.initialErrors),Ra!=null&&Ra.initialTouched&&uh(Ra.initialTouched),Ra!=null&&Ra.validateOnMount){Zf();return}Cf.validateSchema&&Cf.validateSchema("silent")}),isRef(mf)&&watch(mf,()=>{var Rf;(Rf=Cf.validateSchema)===null||Rf===void 0||Rf.call(Cf,"validated-only")}),provide(FormContextKey,Cf);function Im(Rf,wf){const sh=isCallable(wf)||wf==null?void 0:wf.label,xh=If(toValue$3(Rf))||Sf(Rf,{label:sh}),Wh=()=>isCallable(wf)?wf(omit(xh,PRIVATE_PATH_STATE_KEYS)):wf||{};function om(){var Zm;xh.touched=!0,((Zm=Wh().validateOnBlur)!==null&&Zm!==void 0?Zm:getConfig$1().validateOnBlur)&&mh(toValue$3(xh.path))}function Dm(){var Zm;((Zm=Wh().validateOnInput)!==null&&Zm!==void 0?Zm:getConfig$1().validateOnInput)&&nextTick$1(()=>{mh(toValue$3(xh.path))})}function zm(){var Zm;((Zm=Wh().validateOnChange)!==null&&Zm!==void 0?Zm:getConfig$1().validateOnChange)&&nextTick$1(()=>{mh(toValue$3(xh.path))})}const jm=computed(()=>{const Zm={onChange:zm,onInput:Dm,onBlur:om};return isCallable(wf)?Object.assign(Object.assign({},Zm),wf(omit(xh,PRIVATE_PATH_STATE_KEYS)).props||{}):wf!=null&&wf.props?Object.assign(Object.assign({},Zm),wf.props(omit(xh,PRIVATE_PATH_STATE_KEYS))):Zm});return[Rh(Rf,()=>{var Zm,ug,wg;return(wg=(Zm=Wh().validateOnModelUpdate)!==null&&Zm!==void 0?Zm:(ug=getConfig$1())===null||ug===void 0?void 0:ug.validateOnModelUpdate)!==null&&wg!==void 0?wg:!0}),jm]}function gm(Rf){return Array.isArray(Rf)?Rf.map(wf=>Rh(wf,!0)):Rh(Rf)}function Lm(Rf,wf){const[sh,xh]=Im(Rf,wf);function Wh(){xh.value.onBlur()}function om(zm){const jm=normalizeEventValue(zm);xf(toValue$3(Rf),jm,!1),xh.value.onInput()}function Dm(zm){const jm=normalizeEventValue(zm);xf(toValue$3(Rf),jm,!1),xh.value.onChange()}return computed(()=>Object.assign(Object.assign({},xh.value),{onBlur:Wh,onInput:om,onChange:Dm,value:sh.value}))}function Vm(Rf,wf){const[sh,xh]=Im(Rf,wf),Wh=If(toValue$3(Rf));function om(Dm){sh.value=Dm}return computed(()=>{const Dm=isCallable(wf)?wf(omit(Wh,PRIVATE_PATH_STATE_KEYS)):wf||{};return Object.assign({[Dm.model||"modelValue"]:sh.value,[`onUpdate:${Dm.model||"modelValue"}`]:om},xh.value)})}const Th=Object.assign(Object.assign({},Cf),{values:readonly(md),handleReset:()=>Uf(),submitForm:Mm});return provide(PublicFormContextKey,Th),Th}function useFormMeta(Ra,qa,nd,od){const ld={touched:"some",pending:"some",valid:"every"},ud=computed(()=>!isEqual(qa,unref(nd)));function dd(){const fd=Ra.value;return keysOf(ld).reduce((md,vd)=>{const Ad=ld[vd];return md[vd]=fd[Ad](Nd=>Nd[vd]),md},{})}const pd=reactive(dd());return watchEffect(()=>{const fd=dd();pd.touched=fd.touched,pd.valid=fd.valid,pd.pending=fd.pending}),computed(()=>Object.assign(Object.assign({initialValues:unref(nd)},pd),{valid:pd.valid&&!keysOf(od.value).length,dirty:ud.value}))}function useFormInitialValues(Ra,qa,nd){const od=resolveInitialValues(nd),ld=ref$1(od),ud=ref$1(klona(od));function dd(pd,fd){fd!=null&&fd.force?(ld.value=klona(pd),ud.value=klona(pd)):(ld.value=merge$2(klona(ld.value)||{},klona(pd)),ud.value=merge$2(klona(ud.value)||{},klona(pd))),fd!=null&&fd.updateFields&&Ra.value.forEach(md=>{if(md.touched)return;const Ad=getFromPath(ld.value,toValue$3(md.path));setInPath(qa,toValue$3(md.path),klona(Ad))})}return{initialValues:ld,originalInitialValues:ud,setInitialValues:dd}}function mergeValidationResults(Ra,qa){return qa?{valid:Ra.valid&&qa.valid,errors:[...Ra.errors,...qa.errors]}:Ra}const FormImpl=defineComponent({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(Ra,qa){const nd=toRef$1(Ra,"validationSchema"),od=toRef$1(Ra,"keepValues"),{errors:ld,errorBag:ud,values:dd,meta:pd,isSubmitting:fd,isValidating:md,submitCount:vd,controlledValues:Ad,validate:Nd,validateField:Od,handleReset:kd,resetForm:Ld,handleSubmit:Gd,setErrors:jd,setFieldError:Fd,setFieldValue:Ud,setValues:qd,setFieldTouched:zd,setTouched:Wd,resetField:Jd}=useForm({validationSchema:nd.value?nd:void 0,initialValues:Ra.initialValues,initialErrors:Ra.initialErrors,initialTouched:Ra.initialTouched,validateOnMount:Ra.validateOnMount,keepValuesOnUnmount:od,name:Ra.name}),_f=Gd((Nf,{evt:If})=>{isFormSubmitEvent(If)&&If.target.submit()},Ra.onInvalidSubmit),Xd=Ra.onSubmit?Gd(Ra.onSubmit,Ra.onInvalidSubmit):_f;function pf(Nf){isEvent(Nf)&&Nf.preventDefault(),kd(),typeof qa.attrs.onReset=="function"&&qa.attrs.onReset()}function mf(Nf,If){return Gd(typeof Nf=="function"&&!If?Nf:If,Ra.onInvalidSubmit)(Nf)}function Sf(){return klona(dd)}function Tf(){return klona(pd.value)}function Af(){return klona(ld.value)}function Ef(){return{meta:pd.value,errors:ld.value,errorBag:ud.value,values:dd,isSubmitting:fd.value,isValidating:md.value,submitCount:vd.value,controlledValues:Ad.value,validate:Nd,validateField:Od,handleSubmit:mf,handleReset:kd,submitForm:_f,setErrors:jd,setFieldError:Fd,setFieldValue:Ud,setValues:qd,setFieldTouched:zd,setTouched:Wd,resetForm:Ld,resetField:Jd,getValues:Sf,getMeta:Tf,getErrors:Af}}return qa.expose({setFieldError:Fd,setErrors:jd,setFieldValue:Ud,setValues:qd,setFieldTouched:zd,setTouched:Wd,resetForm:Ld,validate:Nd,validateField:Od,resetField:Jd,getValues:Sf,getMeta:Tf,getErrors:Af,values:dd,meta:pd,errors:ld}),function(){const If=Ra.as==="form"?Ra.as:Ra.as?resolveDynamicComponent(Ra.as):null,Gf=normalizeChildren(If,qa,Ef);return If?h$2(If,Object.assign(Object.assign(Object.assign({},If==="form"?{novalidate:!0}:{}),qa.attrs),{onSubmit:Xd,onReset:pf}),Gf):Gf}}}),Form=FormImpl;/** + * vee-validate v4.15.0 + * (c) 2024 Abdelrahman Awad + * @license MIT + */const isObject$3=Ra=>Ra!==null&&!!Ra&&typeof Ra=="object"&&!Array.isArray(Ra);function isIndex(Ra){return Number(Ra)>=0}function isObjectLike(Ra){return typeof Ra=="object"&&Ra!==null}function getTag(Ra){return Ra==null?Ra===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(Ra)}function isPlainObject$1(Ra){if(!isObjectLike(Ra)||getTag(Ra)!=="[object Object]")return!1;if(Object.getPrototypeOf(Ra)===null)return!0;let qa=Ra;for(;Object.getPrototypeOf(qa)!==null;)qa=Object.getPrototypeOf(qa);return Object.getPrototypeOf(Ra)===qa}function merge$1(Ra,qa){return Object.keys(qa).forEach(nd=>{if(isPlainObject$1(qa[nd])&&isPlainObject$1(Ra[nd])){Ra[nd]||(Ra[nd]={}),merge$1(Ra[nd],qa[nd]);return}Ra[nd]=qa[nd]}),Ra}function toTypedSchema(Ra,qa={abortEarly:!1}){return{__type:"VVTypedSchema",async parse(od){var ld;try{return{value:await Ra.validate(od,Object.assign({},qa)),errors:[]}}catch(ud){const dd=ud;if(dd.name!=="ValidationError")throw ud;if(!(!((ld=dd.inner)===null||ld===void 0)&&ld.length)&&dd.errors.length)return{errors:[{path:dd.path,errors:dd.errors}]};const pd=dd.inner.reduce((fd,md)=>{const vd=md.path||"";return fd[vd]||(fd[vd]={errors:[],path:vd}),fd[vd].errors.push(...md.errors),fd},{});return{errors:Object.values(pd)}}},cast(od){try{return Ra.cast(od)}catch{const ud=Ra.getDefault();return isObject$3(ud)&&isObject$3(od)?merge$1(ud,od):od}},describe(od){try{if(!od)return getDescriptionFromYupSpec(Ra.spec);const ld=getSpecForPath(od,Ra);return ld?getDescriptionFromYupSpec(ld):{required:!1,exists:!1}}catch{return{required:!1,exists:!1}}}}}function getDescriptionFromYupSpec(Ra){return{required:!Ra.optional,exists:!0}}function getSpecForPath(Ra,qa){if(!isObjectSchema(qa))return null;if(isNotNestedPath(Ra)){const ld=qa.fields[cleanupNonNestedPath(Ra)];return(ld==null?void 0:ld.spec)||null}const nd=(Ra||"").split(/\.|\[(\d+)\]/).filter(Boolean);let od=qa;for(let ld=0;ld=this._maxSize&&this.clear(),Ra in this._values||this._size++,this._values[Ra]=qa};var SPLIT_REGEX=/[^.^\]^[]+|(?=\[\]|\.\.)/g,DIGIT_REGEX=/^\d+$/,LEAD_DIGIT_REGEX=/^\d/,SPEC_CHAR_REGEX=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,CLEAN_QUOTES_REGEX=/^\s*(['"]?)(.*?)(\1)\s*$/,MAX_CACHE_SIZE$1=512,pathCache=new Cache(MAX_CACHE_SIZE$1),setCache=new Cache(MAX_CACHE_SIZE$1),getCache=new Cache(MAX_CACHE_SIZE$1),propertyExpr={Cache,split,normalizePath,setter:function(Ra){var qa=normalizePath(Ra);return setCache.get(Ra)||setCache.set(Ra,function(od,ld){for(var ud=0,dd=qa.length,pd=od;udRa.match(reWords)||[],upperFirst=Ra=>Ra[0].toUpperCase()+Ra.slice(1),join=(Ra,qa)=>words(Ra).join(qa).toLowerCase(),camelCase=Ra=>words(Ra).reduce((qa,nd)=>`${qa}${qa?nd[0].toUpperCase()+nd.slice(1).toLowerCase():nd.toLowerCase()}`,""),pascalCase=Ra=>upperFirst(camelCase(Ra)),snakeCase=Ra=>join(Ra,"_"),kebabCase=Ra=>join(Ra,"-"),sentenceCase=Ra=>upperFirst(join(Ra," ")),titleCase=Ra=>words(Ra).map(upperFirst).join(" ");var tinyCase={words,upperFirst,camelCase,pascalCase,snakeCase,kebabCase,sentenceCase,titleCase},toposort$2={exports:{}};toposort$2.exports=function(Ra){return toposort(uniqueNodes(Ra),Ra)};toposort$2.exports.array=toposort;function toposort(Ra,qa){var nd=Ra.length,od=new Array(nd),ld={},ud=nd,dd=makeOutgoingEdges(qa),pd=makeNodesHash(Ra);for(qa.forEach(function(md){if(!pd.has(md[0])||!pd.has(md[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});ud--;)ld[ud]||fd(Ra[ud],ud,new Set);return od;function fd(md,vd,Ad){if(Ad.has(md)){var Nd;try{Nd=", node was:"+JSON.stringify(md)}catch{Nd=""}throw new Error("Cyclic dependency"+Nd)}if(!pd.has(md))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(md));if(!ld[vd]){ld[vd]=!0;var Od=dd.get(md)||new Set;if(Od=Array.from(Od),vd=Od.length){Ad.add(md);do{var kd=Od[--vd];fd(kd,pd.get(kd),Ad)}while(vd);Ad.delete(md)}od[--nd]=md}}}function uniqueNodes(Ra){for(var qa=new Set,nd=0,od=Ra.length;nd"",SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/;function printNumber(Ra){return Ra!=+Ra?"NaN":Ra===0&&1/Ra<0?"-0":""+Ra}function printSimpleValue(Ra,qa=!1){if(Ra==null||Ra===!0||Ra===!1)return""+Ra;const nd=typeof Ra;if(nd==="number")return printNumber(Ra);if(nd==="string")return qa?`"${Ra}"`:Ra;if(nd==="function")return"[Function "+(Ra.name||"anonymous")+"]";if(nd==="symbol")return symbolToString.call(Ra).replace(SYMBOL_REGEXP,"Symbol($1)");const od=toString$2.call(Ra).slice(8,-1);return od==="Date"?isNaN(Ra.getTime())?""+Ra:Ra.toISOString(Ra):od==="Error"||Ra instanceof Error?"["+errorToString.call(Ra)+"]":od==="RegExp"?regExpToString.call(Ra):null}function printValue(Ra,qa){let nd=printSimpleValue(Ra,qa);return nd!==null?nd:JSON.stringify(Ra,function(od,ld){let ud=printSimpleValue(this[od],qa);return ud!==null?ud:ld},2)}function toArray$2(Ra){return Ra==null?[]:[].concat(Ra)}let _Symbol$toStringTag,_Symbol$hasInstance,_Symbol$toStringTag2,strReg=/\$\{\s*(\w+)\s*\}/g;_Symbol$toStringTag=Symbol.toStringTag;class ValidationErrorNoStack{constructor(qa,nd,od,ld){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[_Symbol$toStringTag]="Error",this.name="ValidationError",this.value=nd,this.path=od,this.type=ld,this.errors=[],this.inner=[],toArray$2(qa).forEach(ud=>{if(ValidationError.isError(ud)){this.errors.push(...ud.errors);const dd=ud.inner.length?ud.inner:[ud];this.inner.push(...dd)}else this.errors.push(ud)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}_Symbol$hasInstance=Symbol.hasInstance;_Symbol$toStringTag2=Symbol.toStringTag;class ValidationError extends Error{static formatError(qa,nd){const od=nd.label||nd.path||"this";return nd=Object.assign({},nd,{path:od,originalPath:nd.path}),typeof qa=="string"?qa.replace(strReg,(ld,ud)=>printValue(nd[ud])):typeof qa=="function"?qa(nd):qa}static isError(qa){return qa&&qa.name==="ValidationError"}constructor(qa,nd,od,ld,ud){const dd=new ValidationErrorNoStack(qa,nd,od,ld);if(ud)return dd;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[_Symbol$toStringTag2]="Error",this.name=dd.name,this.message=dd.message,this.type=dd.type,this.value=dd.value,this.path=dd.path,this.errors=dd.errors,this.inner=dd.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ValidationError)}static[_Symbol$hasInstance](qa){return ValidationErrorNoStack[Symbol.hasInstance](qa)||super[Symbol.hasInstance](qa)}}let mixed={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:Ra,type:qa,value:nd,originalValue:od})=>{const ld=od!=null&&od!==nd?` (cast from the value \`${printValue(od,!0)}\`).`:".";return qa!=="mixed"?`${Ra} must be a \`${qa}\` type, but the final value was: \`${printValue(nd,!0)}\``+ld:`${Ra} must match the configured type. The validated value was: \`${printValue(nd,!0)}\``+ld}},string={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},number={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},boolean={isValue:"${path} field must be ${value}"},object={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},array={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},tuple={notType:Ra=>{const{path:qa,value:nd,spec:od}=Ra,ld=od.types.length;if(Array.isArray(nd)){if(nd.lengthld)return`${qa} tuple value has too many items, expected a length of ${ld} but got ${nd.length} for value: \`${printValue(nd,!0)}\``}return ValidationError.formatError(mixed.notType,Ra)}};Object.assign(Object.create(null),{mixed,string,number,date,object,array,boolean,tuple});const isSchema=Ra=>Ra&&Ra.__isYupSchema__;class Condition{static fromOptions(qa,nd){if(!nd.then&&!nd.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:od,then:ld,otherwise:ud}=nd,dd=typeof od=="function"?od:(...pd)=>pd.every(fd=>fd===od);return new Condition(qa,(pd,fd)=>{var md;let vd=dd(...pd)?ld:ud;return(md=vd==null?void 0:vd(fd))!=null?md:fd})}constructor(qa,nd){this.fn=void 0,this.refs=qa,this.refs=qa,this.fn=nd}resolve(qa,nd){let od=this.refs.map(ud=>ud.getValue(nd==null?void 0:nd.value,nd==null?void 0:nd.parent,nd==null?void 0:nd.context)),ld=this.fn(od,qa,nd);if(ld===void 0||ld===qa)return qa;if(!isSchema(ld))throw new TypeError("conditions must return a schema object");return ld.resolve(nd)}}const prefixes={context:"$",value:"."};class Reference{constructor(qa,nd={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof qa!="string")throw new TypeError("ref must be a string, got: "+qa);if(this.key=qa.trim(),qa==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===prefixes.context,this.isValue=this.key[0]===prefixes.value,this.isSibling=!this.isContext&&!this.isValue;let od=this.isContext?prefixes.context:this.isValue?prefixes.value:"";this.path=this.key.slice(od.length),this.getter=this.path&&propertyExpr.getter(this.path,!0),this.map=nd.map}getValue(qa,nd,od){let ld=this.isContext?od:this.isValue?qa:nd;return this.getter&&(ld=this.getter(ld||{})),this.map&&(ld=this.map(ld)),ld}cast(qa,nd){return this.getValue(qa,nd==null?void 0:nd.parent,nd==null?void 0:nd.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(qa){return qa&&qa.__isYupRef}}Reference.prototype.__isYupRef=!0;const isAbsent=Ra=>Ra==null;function createValidation(Ra){function qa({value:nd,path:od="",options:ld,originalValue:ud,schema:dd},pd,fd){const{name:md,test:vd,params:Ad,message:Nd,skipAbsent:Od}=Ra;let{parent:kd,context:Ld,abortEarly:Gd=dd.spec.abortEarly,disableStackTrace:jd=dd.spec.disableStackTrace}=ld;function Fd(mf){return Reference.isRef(mf)?mf.getValue(nd,kd,Ld):mf}function Ud(mf={}){const Sf=Object.assign({value:nd,originalValue:ud,label:dd.spec.label,path:mf.path||od,spec:dd.spec,disableStackTrace:mf.disableStackTrace||jd},Ad,mf.params);for(const Af of Object.keys(Sf))Sf[Af]=Fd(Sf[Af]);const Tf=new ValidationError(ValidationError.formatError(mf.message||Nd,Sf),nd,Sf.path,mf.type||md,Sf.disableStackTrace);return Tf.params=Sf,Tf}const qd=Gd?pd:fd;let zd={path:od,parent:kd,type:md,from:ld.from,createError:Ud,resolve:Fd,options:ld,originalValue:ud,schema:dd};const Wd=mf=>{ValidationError.isError(mf)?qd(mf):mf?fd(null):qd(Ud())},Jd=mf=>{ValidationError.isError(mf)?qd(mf):pd(mf)};if(Od&&isAbsent(nd))return Wd(!0);let Xd;try{var pf;if(Xd=vd.call(zd,nd,zd),typeof((pf=Xd)==null?void 0:pf.then)=="function"){if(ld.sync)throw new Error(`Validation test of type: "${zd.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Xd).then(Wd,Jd)}}catch(mf){Jd(mf);return}Wd(Xd)}return qa.OPTIONS=Ra,qa}function getIn(Ra,qa,nd,od=nd){let ld,ud,dd;return qa?(propertyExpr.forEach(qa,(pd,fd,md)=>{let vd=fd?pd.slice(1,pd.length-1):pd;Ra=Ra.resolve({context:od,parent:ld,value:nd});let Ad=Ra.type==="tuple",Nd=md?parseInt(vd,10):0;if(Ra.innerType||Ad){if(Ad&&!md)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${dd}" must contain an index to the tuple element, e.g. "${dd}[0]"`);if(nd&&Nd>=nd.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${pd}, in the path: ${qa}. because there is no value at that index. `);ld=nd,nd=nd&&nd[Nd],Ra=Ad?Ra.spec.types[Nd]:Ra.innerType}if(!md){if(!Ra.fields||!Ra.fields[vd])throw new Error(`The schema does not contain the path: ${qa}. (failed at: ${dd} which is a type: "${Ra.type}")`);ld=nd,nd=nd&&nd[vd],Ra=Ra.fields[vd]}ud=vd,dd=fd?"["+pd+"]":"."+pd}),{schema:Ra,parent:ld,parentPath:ud}):{parent:ld,parentPath:qa,schema:Ra}}class ReferenceSet extends Set{describe(){const qa=[];for(const nd of this.values())qa.push(Reference.isRef(nd)?nd.describe():nd);return qa}resolveAll(qa){let nd=[];for(const od of this.values())nd.push(qa(od));return nd}clone(){return new ReferenceSet(this.values())}merge(qa,nd){const od=this.clone();return qa.forEach(ld=>od.add(ld)),nd.forEach(ld=>od.delete(ld)),od}}function clone(Ra,qa=new Map){if(isSchema(Ra)||!Ra||typeof Ra!="object")return Ra;if(qa.has(Ra))return qa.get(Ra);let nd;if(Ra instanceof Date)nd=new Date(Ra.getTime()),qa.set(Ra,nd);else if(Ra instanceof RegExp)nd=new RegExp(Ra),qa.set(Ra,nd);else if(Array.isArray(Ra)){nd=new Array(Ra.length),qa.set(Ra,nd);for(let od=0;od{this.typeError(mixed.notType)}),this.type=qa.type,this._typeCheck=qa.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},qa==null?void 0:qa.spec),this.withMutation(nd=>{nd.nonNullable()})}get _type(){return this.type}clone(qa){if(this._mutate)return qa&&Object.assign(this.spec,qa),this;const nd=Object.create(Object.getPrototypeOf(this));return nd.type=this.type,nd._typeCheck=this._typeCheck,nd._whitelist=this._whitelist.clone(),nd._blacklist=this._blacklist.clone(),nd.internalTests=Object.assign({},this.internalTests),nd.exclusiveTests=Object.assign({},this.exclusiveTests),nd.deps=[...this.deps],nd.conditions=[...this.conditions],nd.tests=[...this.tests],nd.transforms=[...this.transforms],nd.spec=clone(Object.assign({},this.spec,qa)),nd}label(qa){let nd=this.clone();return nd.spec.label=qa,nd}meta(...qa){if(qa.length===0)return this.spec.meta;let nd=this.clone();return nd.spec.meta=Object.assign(nd.spec.meta||{},qa[0]),nd}withMutation(qa){let nd=this._mutate;this._mutate=!0;let od=qa(this);return this._mutate=nd,od}concat(qa){if(!qa||qa===this)return this;if(qa.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${qa.type}`);let nd=this,od=qa.clone();const ld=Object.assign({},nd.spec,od.spec);return od.spec=ld,od.internalTests=Object.assign({},nd.internalTests,od.internalTests),od._whitelist=nd._whitelist.merge(qa._whitelist,qa._blacklist),od._blacklist=nd._blacklist.merge(qa._blacklist,qa._whitelist),od.tests=nd.tests,od.exclusiveTests=nd.exclusiveTests,od.withMutation(ud=>{qa.tests.forEach(dd=>{ud.test(dd.OPTIONS)})}),od.transforms=[...nd.transforms,...od.transforms],od}isType(qa){return qa==null?!!(this.spec.nullable&&qa===null||this.spec.optional&&qa===void 0):this._typeCheck(qa)}resolve(qa){let nd=this;if(nd.conditions.length){let od=nd.conditions;nd=nd.clone(),nd.conditions=[],nd=od.reduce((ld,ud)=>ud.resolve(ld,qa),nd),nd=nd.resolve(qa)}return nd}resolveOptions(qa){var nd,od,ld,ud;return Object.assign({},qa,{from:qa.from||[],strict:(nd=qa.strict)!=null?nd:this.spec.strict,abortEarly:(od=qa.abortEarly)!=null?od:this.spec.abortEarly,recursive:(ld=qa.recursive)!=null?ld:this.spec.recursive,disableStackTrace:(ud=qa.disableStackTrace)!=null?ud:this.spec.disableStackTrace})}cast(qa,nd={}){let od=this.resolve(Object.assign({value:qa},nd)),ld=nd.assert==="ignore-optionality",ud=od._cast(qa,nd);if(nd.assert!==!1&&!od.isType(ud)){if(ld&&isAbsent(ud))return ud;let dd=printValue(qa),pd=printValue(ud);throw new TypeError(`The value of ${nd.path||"field"} could not be cast to a value that satisfies the schema type: "${od.type}". + +attempted value: ${dd} +`+(pd!==dd?`result of cast: ${pd}`:""))}return ud}_cast(qa,nd){let od=qa===void 0?qa:this.transforms.reduce((ld,ud)=>ud.call(this,ld,qa,this),qa);return od===void 0&&(od=this.getDefault(nd)),od}_validate(qa,nd={},od,ld){let{path:ud,originalValue:dd=qa,strict:pd=this.spec.strict}=nd,fd=qa;pd||(fd=this._cast(fd,Object.assign({assert:!1},nd)));let md=[];for(let vd of Object.values(this.internalTests))vd&&md.push(vd);this.runTests({path:ud,value:fd,originalValue:dd,options:nd,tests:md},od,vd=>{if(vd.length)return ld(vd,fd);this.runTests({path:ud,value:fd,originalValue:dd,options:nd,tests:this.tests},od,ld)})}runTests(qa,nd,od){let ld=!1,{tests:ud,value:dd,originalValue:pd,path:fd,options:md}=qa,vd=Ld=>{ld||(ld=!0,nd(Ld,dd))},Ad=Ld=>{ld||(ld=!0,od(Ld,dd))},Nd=ud.length,Od=[];if(!Nd)return Ad([]);let kd={value:dd,originalValue:pd,path:fd,options:md,schema:this};for(let Ld=0;Ldthis.resolve(vd)._validate(md,vd,Nd,Od)}validate(qa,nd){var od;let ld=this.resolve(Object.assign({},nd,{value:qa})),ud=(od=nd==null?void 0:nd.disableStackTrace)!=null?od:ld.spec.disableStackTrace;return new Promise((dd,pd)=>ld._validate(qa,nd,(fd,md)=>{ValidationError.isError(fd)&&(fd.value=md),pd(fd)},(fd,md)=>{fd.length?pd(new ValidationError(fd,md,void 0,void 0,ud)):dd(md)}))}validateSync(qa,nd){var od;let ld=this.resolve(Object.assign({},nd,{value:qa})),ud,dd=(od=nd==null?void 0:nd.disableStackTrace)!=null?od:ld.spec.disableStackTrace;return ld._validate(qa,Object.assign({},nd,{sync:!0}),(pd,fd)=>{throw ValidationError.isError(pd)&&(pd.value=fd),pd},(pd,fd)=>{if(pd.length)throw new ValidationError(pd,qa,void 0,void 0,dd);ud=fd}),ud}isValid(qa,nd){return this.validate(qa,nd).then(()=>!0,od=>{if(ValidationError.isError(od))return!1;throw od})}isValidSync(qa,nd){try{return this.validateSync(qa,nd),!0}catch(od){if(ValidationError.isError(od))return!1;throw od}}_getDefault(qa){let nd=this.spec.default;return nd==null?nd:typeof nd=="function"?nd.call(this,qa):clone(nd)}getDefault(qa){return this.resolve(qa||{})._getDefault(qa)}default(qa){return arguments.length===0?this._getDefault():this.clone({default:qa})}strict(qa=!0){return this.clone({strict:qa})}nullability(qa,nd){const od=this.clone({nullable:qa});return od.internalTests.nullable=createValidation({message:nd,name:"nullable",test(ld){return ld===null?this.schema.spec.nullable:!0}}),od}optionality(qa,nd){const od=this.clone({optional:qa});return od.internalTests.optionality=createValidation({message:nd,name:"optionality",test(ld){return ld===void 0?this.schema.spec.optional:!0}}),od}optional(){return this.optionality(!0)}defined(qa=mixed.defined){return this.optionality(!1,qa)}nullable(){return this.nullability(!0)}nonNullable(qa=mixed.notNull){return this.nullability(!1,qa)}required(qa=mixed.required){return this.clone().withMutation(nd=>nd.nonNullable(qa).defined(qa))}notRequired(){return this.clone().withMutation(qa=>qa.nullable().optional())}transform(qa){let nd=this.clone();return nd.transforms.push(qa),nd}test(...qa){let nd;if(qa.length===1?typeof qa[0]=="function"?nd={test:qa[0]}:nd=qa[0]:qa.length===2?nd={name:qa[0],test:qa[1]}:nd={name:qa[0],message:qa[1],test:qa[2]},nd.message===void 0&&(nd.message=mixed.default),typeof nd.test!="function")throw new TypeError("`test` is a required parameters");let od=this.clone(),ld=createValidation(nd),ud=nd.exclusive||nd.name&&od.exclusiveTests[nd.name]===!0;if(nd.exclusive&&!nd.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return nd.name&&(od.exclusiveTests[nd.name]=!!nd.exclusive),od.tests=od.tests.filter(dd=>!(dd.OPTIONS.name===nd.name&&(ud||dd.OPTIONS.test===ld.OPTIONS.test))),od.tests.push(ld),od}when(qa,nd){!Array.isArray(qa)&&typeof qa!="string"&&(nd=qa,qa=".");let od=this.clone(),ld=toArray$2(qa).map(ud=>new Reference(ud));return ld.forEach(ud=>{ud.isSibling&&od.deps.push(ud.key)}),od.conditions.push(typeof nd=="function"?new Condition(ld,nd):Condition.fromOptions(ld,nd)),od}typeError(qa){let nd=this.clone();return nd.internalTests.typeError=createValidation({message:qa,name:"typeError",skipAbsent:!0,test(od){return this.schema._typeCheck(od)?!0:this.createError({params:{type:this.schema.type}})}}),nd}oneOf(qa,nd=mixed.oneOf){let od=this.clone();return qa.forEach(ld=>{od._whitelist.add(ld),od._blacklist.delete(ld)}),od.internalTests.whiteList=createValidation({message:nd,name:"oneOf",skipAbsent:!0,test(ld){let ud=this.schema._whitelist,dd=ud.resolveAll(this.resolve);return dd.includes(ld)?!0:this.createError({params:{values:Array.from(ud).join(", "),resolved:dd}})}}),od}notOneOf(qa,nd=mixed.notOneOf){let od=this.clone();return qa.forEach(ld=>{od._blacklist.add(ld),od._whitelist.delete(ld)}),od.internalTests.blacklist=createValidation({message:nd,name:"notOneOf",test(ld){let ud=this.schema._blacklist,dd=ud.resolveAll(this.resolve);return dd.includes(ld)?this.createError({params:{values:Array.from(ud).join(", "),resolved:dd}}):!0}}),od}strip(qa=!0){let nd=this.clone();return nd.spec.strip=qa,nd}describe(qa){const nd=(qa?this.resolve(qa):this).clone(),{label:od,meta:ld,optional:ud,nullable:dd}=nd.spec;return{meta:ld,label:od,optional:ud,nullable:dd,default:nd.getDefault(qa),type:nd.type,oneOf:nd._whitelist.describe(),notOneOf:nd._blacklist.describe(),tests:nd.tests.map(fd=>({name:fd.OPTIONS.name,params:fd.OPTIONS.params})).filter((fd,md,vd)=>vd.findIndex(Ad=>Ad.name===fd.name)===md)}}}Schema.prototype.__isYupSchema__=!0;for(const Ra of["validate","validateSync"])Schema.prototype[`${Ra}At`]=function(qa,nd,od={}){const{parent:ld,parentPath:ud,schema:dd}=getIn(this,qa,nd,od.context);return dd[Ra](ld&&ld[ud],Object.assign({},od,{parent:ld,path:qa}))};for(const Ra of["equals","is"])Schema.prototype[Ra]=Schema.prototype.oneOf;for(const Ra of["not","nope"])Schema.prototype[Ra]=Schema.prototype.notOneOf;function create$7(){return new BooleanSchema}class BooleanSchema extends Schema{constructor(){super({type:"boolean",check(qa){return qa instanceof Boolean&&(qa=qa.valueOf()),typeof qa=="boolean"}}),this.withMutation(()=>{this.transform((qa,nd,od)=>{if(od.spec.coerce&&!od.isType(qa)){if(/^(true|1)$/i.test(String(qa)))return!0;if(/^(false|0)$/i.test(String(qa)))return!1}return qa})})}isTrue(qa=boolean.isValue){return this.test({message:qa,name:"is-value",exclusive:!0,params:{value:"true"},test(nd){return isAbsent(nd)||nd===!0}})}isFalse(qa=boolean.isValue){return this.test({message:qa,name:"is-value",exclusive:!0,params:{value:"false"},test(nd){return isAbsent(nd)||nd===!1}})}default(qa){return super.default(qa)}defined(qa){return super.defined(qa)}optional(){return super.optional()}required(qa){return super.required(qa)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(qa){return super.nonNullable(qa)}strip(qa){return super.strip(qa)}}create$7.prototype=BooleanSchema.prototype;const isoReg=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function parseIsoDate(Ra){const qa=parseDateStruct(Ra);if(!qa)return Date.parse?Date.parse(Ra):Number.NaN;if(qa.z===void 0&&qa.plusMinus===void 0)return new Date(qa.year,qa.month,qa.day,qa.hour,qa.minute,qa.second,qa.millisecond).valueOf();let nd=0;return qa.z!=="Z"&&qa.plusMinus!==void 0&&(nd=qa.hourOffset*60+qa.minuteOffset,qa.plusMinus==="+"&&(nd=0-nd)),Date.UTC(qa.year,qa.month,qa.day,qa.hour,qa.minute+nd,qa.second,qa.millisecond)}function parseDateStruct(Ra){var qa,nd;const od=isoReg.exec(Ra);return od?{year:toNumber$3(od[1]),month:toNumber$3(od[2],1)-1,day:toNumber$3(od[3],1),hour:toNumber$3(od[4]),minute:toNumber$3(od[5]),second:toNumber$3(od[6]),millisecond:od[7]?toNumber$3(od[7].substring(0,3)):0,precision:(qa=(nd=od[7])==null?void 0:nd.length)!=null?qa:void 0,z:od[8]||void 0,plusMinus:od[9]||void 0,hourOffset:toNumber$3(od[10]),minuteOffset:toNumber$3(od[11])}:null}function toNumber$3(Ra,qa=0){return Number(Ra)||qa}let rEmail=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rUrl=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,rUUID=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,yearMonthDay="^\\d{4}-\\d{2}-\\d{2}",hourMinuteSecond="\\d{2}:\\d{2}:\\d{2}",zOrOffset="(([+-]\\d{2}(:?\\d{2})?)|Z)",rIsoDateTime=new RegExp(`${yearMonthDay}T${hourMinuteSecond}(\\.\\d+)?${zOrOffset}$`),isTrimmed=Ra=>isAbsent(Ra)||Ra===Ra.trim(),objStringTag={}.toString();function create$6(){return new StringSchema}class StringSchema extends Schema{constructor(){super({type:"string",check(qa){return qa instanceof String&&(qa=qa.valueOf()),typeof qa=="string"}}),this.withMutation(()=>{this.transform((qa,nd,od)=>{if(!od.spec.coerce||od.isType(qa)||Array.isArray(qa))return qa;const ld=qa!=null&&qa.toString?qa.toString():qa;return ld===objStringTag?qa:ld})})}required(qa){return super.required(qa).withMutation(nd=>nd.test({message:qa||mixed.required,name:"required",skipAbsent:!0,test:od=>!!od.length}))}notRequired(){return super.notRequired().withMutation(qa=>(qa.tests=qa.tests.filter(nd=>nd.OPTIONS.name!=="required"),qa))}length(qa,nd=string.length){return this.test({message:nd,name:"length",exclusive:!0,params:{length:qa},skipAbsent:!0,test(od){return od.length===this.resolve(qa)}})}min(qa,nd=string.min){return this.test({message:nd,name:"min",exclusive:!0,params:{min:qa},skipAbsent:!0,test(od){return od.length>=this.resolve(qa)}})}max(qa,nd=string.max){return this.test({name:"max",exclusive:!0,message:nd,params:{max:qa},skipAbsent:!0,test(od){return od.length<=this.resolve(qa)}})}matches(qa,nd){let od=!1,ld,ud;return nd&&(typeof nd=="object"?{excludeEmptyString:od=!1,message:ld,name:ud}=nd:ld=nd),this.test({name:ud||"matches",message:ld||string.matches,params:{regex:qa},skipAbsent:!0,test:dd=>dd===""&&od||dd.search(qa)!==-1})}email(qa=string.email){return this.matches(rEmail,{name:"email",message:qa,excludeEmptyString:!0})}url(qa=string.url){return this.matches(rUrl,{name:"url",message:qa,excludeEmptyString:!0})}uuid(qa=string.uuid){return this.matches(rUUID,{name:"uuid",message:qa,excludeEmptyString:!1})}datetime(qa){let nd="",od,ld;return qa&&(typeof qa=="object"?{message:nd="",allowOffset:od=!1,precision:ld=void 0}=qa:nd=qa),this.matches(rIsoDateTime,{name:"datetime",message:nd||string.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:nd||string.datetime_offset,params:{allowOffset:od},skipAbsent:!0,test:ud=>{if(!ud||od)return!0;const dd=parseDateStruct(ud);return dd?!!dd.z:!1}}).test({name:"datetime_precision",message:nd||string.datetime_precision,params:{precision:ld},skipAbsent:!0,test:ud=>{if(!ud||ld==null)return!0;const dd=parseDateStruct(ud);return dd?dd.precision===ld:!1}})}ensure(){return this.default("").transform(qa=>qa===null?"":qa)}trim(qa=string.trim){return this.transform(nd=>nd!=null?nd.trim():nd).test({message:qa,name:"trim",test:isTrimmed})}lowercase(qa=string.lowercase){return this.transform(nd=>isAbsent(nd)?nd:nd.toLowerCase()).test({message:qa,name:"string_case",exclusive:!0,skipAbsent:!0,test:nd=>isAbsent(nd)||nd===nd.toLowerCase()})}uppercase(qa=string.uppercase){return this.transform(nd=>isAbsent(nd)?nd:nd.toUpperCase()).test({message:qa,name:"string_case",exclusive:!0,skipAbsent:!0,test:nd=>isAbsent(nd)||nd===nd.toUpperCase()})}}create$6.prototype=StringSchema.prototype;let invalidDate=new Date(""),isDate$1=Ra=>Object.prototype.toString.call(Ra)==="[object Date]";class DateSchema extends Schema{constructor(){super({type:"date",check(qa){return isDate$1(qa)&&!isNaN(qa.getTime())}}),this.withMutation(()=>{this.transform((qa,nd,od)=>!od.spec.coerce||od.isType(qa)||qa===null?qa:(qa=parseIsoDate(qa),isNaN(qa)?DateSchema.INVALID_DATE:new Date(qa)))})}prepareParam(qa,nd){let od;if(Reference.isRef(qa))od=qa;else{let ld=this.cast(qa);if(!this._typeCheck(ld))throw new TypeError(`\`${nd}\` must be a Date or a value that can be \`cast()\` to a Date`);od=ld}return od}min(qa,nd=date.min){let od=this.prepareParam(qa,"min");return this.test({message:nd,name:"min",exclusive:!0,params:{min:qa},skipAbsent:!0,test(ld){return ld>=this.resolve(od)}})}max(qa,nd=date.max){let od=this.prepareParam(qa,"max");return this.test({message:nd,name:"max",exclusive:!0,params:{max:qa},skipAbsent:!0,test(ld){return ld<=this.resolve(od)}})}}DateSchema.INVALID_DATE=invalidDate;DateSchema.prototype;function sortFields(Ra,qa=[]){let nd=[],od=new Set,ld=new Set(qa.map(([dd,pd])=>`${dd}-${pd}`));function ud(dd,pd){let fd=propertyExpr.split(dd)[0];od.add(fd),ld.has(`${pd}-${fd}`)||nd.push([pd,fd])}for(const dd of Object.keys(Ra)){let pd=Ra[dd];od.add(dd),Reference.isRef(pd)&&pd.isSibling?ud(pd.path,dd):isSchema(pd)&&"deps"in pd&&pd.deps.forEach(fd=>ud(fd,dd))}return toposort$1.array(Array.from(od),nd).reverse()}function findIndex(Ra,qa){let nd=1/0;return Ra.some((od,ld)=>{var ud;if((ud=qa.path)!=null&&ud.includes(od))return nd=ld,!0}),nd}function sortByKeyOrder(Ra){return(qa,nd)=>findIndex(Ra,qa)-findIndex(Ra,nd)}const parseJson=(Ra,qa,nd)=>{if(typeof Ra!="string")return Ra;let od=Ra;try{od=JSON.parse(Ra)}catch{}return nd.isType(od)?od:Ra};function deepPartial(Ra){if("fields"in Ra){const qa={};for(const[nd,od]of Object.entries(Ra.fields))qa[nd]=deepPartial(od);return Ra.setFields(qa)}if(Ra.type==="array"){const qa=Ra.optional();return qa.innerType&&(qa.innerType=deepPartial(qa.innerType)),qa}return Ra.type==="tuple"?Ra.optional().clone({types:Ra.spec.types.map(deepPartial)}):"optional"in Ra?Ra.optional():Ra}const deepHas=(Ra,qa)=>{const nd=[...propertyExpr.normalizePath(qa)];if(nd.length===1)return nd[0]in Ra;let od=nd.pop(),ld=propertyExpr.getter(propertyExpr.join(nd),!0)(Ra);return!!(ld&&od in ld)};let isObject$2=Ra=>Object.prototype.toString.call(Ra)==="[object Object]";function unknown(Ra,qa){let nd=Object.keys(Ra.fields);return Object.keys(qa).filter(od=>nd.indexOf(od)===-1)}const defaultSort=sortByKeyOrder([]);function create$3(Ra){return new ObjectSchema(Ra)}class ObjectSchema extends Schema{constructor(qa){super({type:"object",check(nd){return isObject$2(nd)||typeof nd=="function"}}),this.fields=Object.create(null),this._sortErrors=defaultSort,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{qa&&this.shape(qa)})}_cast(qa,nd={}){var od;let ld=super._cast(qa,nd);if(ld===void 0)return this.getDefault(nd);if(!this._typeCheck(ld))return ld;let ud=this.fields,dd=(od=nd.stripUnknown)!=null?od:this.spec.noUnknown,pd=[].concat(this._nodes,Object.keys(ld).filter(Ad=>!this._nodes.includes(Ad))),fd={},md=Object.assign({},nd,{parent:fd,__validating:nd.__validating||!1}),vd=!1;for(const Ad of pd){let Nd=ud[Ad],Od=Ad in ld;if(Nd){let kd,Ld=ld[Ad];md.path=(nd.path?`${nd.path}.`:"")+Ad,Nd=Nd.resolve({value:Ld,context:nd.context,parent:fd});let Gd=Nd instanceof Schema?Nd.spec:void 0,jd=Gd==null?void 0:Gd.strict;if(Gd!=null&&Gd.strip){vd=vd||Ad in ld;continue}kd=!nd.__validating||!jd?Nd.cast(ld[Ad],md):ld[Ad],kd!==void 0&&(fd[Ad]=kd)}else Od&&!dd&&(fd[Ad]=ld[Ad]);(Od!==Ad in fd||fd[Ad]!==ld[Ad])&&(vd=!0)}return vd?fd:ld}_validate(qa,nd={},od,ld){let{from:ud=[],originalValue:dd=qa,recursive:pd=this.spec.recursive}=nd;nd.from=[{schema:this,value:dd},...ud],nd.__validating=!0,nd.originalValue=dd,super._validate(qa,nd,od,(fd,md)=>{if(!pd||!isObject$2(md)){ld(fd,md);return}dd=dd||md;let vd=[];for(let Ad of this._nodes){let Nd=this.fields[Ad];!Nd||Reference.isRef(Nd)||vd.push(Nd.asNestedTest({options:nd,key:Ad,parent:md,parentPath:nd.path,originalParent:dd}))}this.runTests({tests:vd,value:md,originalValue:dd,options:nd},od,Ad=>{ld(Ad.sort(this._sortErrors).concat(fd),md)})})}clone(qa){const nd=super.clone(qa);return nd.fields=Object.assign({},this.fields),nd._nodes=this._nodes,nd._excludedEdges=this._excludedEdges,nd._sortErrors=this._sortErrors,nd}concat(qa){let nd=super.concat(qa),od=nd.fields;for(let[ld,ud]of Object.entries(this.fields)){const dd=od[ld];od[ld]=dd===void 0?ud:dd}return nd.withMutation(ld=>ld.setFields(od,[...this._excludedEdges,...qa._excludedEdges]))}_getDefault(qa){if("default"in this.spec)return super._getDefault(qa);if(!this._nodes.length)return;let nd={};return this._nodes.forEach(od=>{var ld;const ud=this.fields[od];let dd=qa;(ld=dd)!=null&&ld.value&&(dd=Object.assign({},dd,{parent:dd.value,value:dd.value[od]})),nd[od]=ud&&"getDefault"in ud?ud.getDefault(dd):void 0}),nd}setFields(qa,nd){let od=this.clone();return od.fields=qa,od._nodes=sortFields(qa,nd),od._sortErrors=sortByKeyOrder(Object.keys(qa)),nd&&(od._excludedEdges=nd),od}shape(qa,nd=[]){return this.clone().withMutation(od=>{let ld=od._excludedEdges;return nd.length&&(Array.isArray(nd[0])||(nd=[nd]),ld=[...od._excludedEdges,...nd]),od.setFields(Object.assign(od.fields,qa),ld)})}partial(){const qa={};for(const[nd,od]of Object.entries(this.fields))qa[nd]="optional"in od&&od.optional instanceof Function?od.optional():od;return this.setFields(qa)}deepPartial(){return deepPartial(this)}pick(qa){const nd={};for(const od of qa)this.fields[od]&&(nd[od]=this.fields[od]);return this.setFields(nd,this._excludedEdges.filter(([od,ld])=>qa.includes(od)&&qa.includes(ld)))}omit(qa){const nd=[];for(const od of Object.keys(this.fields))qa.includes(od)||nd.push(od);return this.pick(nd)}from(qa,nd,od){let ld=propertyExpr.getter(qa,!0);return this.transform(ud=>{if(!ud)return ud;let dd=ud;return deepHas(ud,qa)&&(dd=Object.assign({},ud),od||delete dd[qa],dd[nd]=ld(ud)),dd})}json(){return this.transform(parseJson)}exact(qa){return this.test({name:"exact",exclusive:!0,message:qa||object.exact,test(nd){if(nd==null)return!0;const od=unknown(this.schema,nd);return od.length===0||this.createError({params:{properties:od.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(qa=!0,nd=object.noUnknown){typeof qa!="boolean"&&(nd=qa,qa=!0);let od=this.test({name:"noUnknown",exclusive:!0,message:nd,test(ld){if(ld==null)return!0;const ud=unknown(this.schema,ld);return!qa||ud.length===0||this.createError({params:{unknown:ud.join(", ")}})}});return od.spec.noUnknown=qa,od}unknown(qa=!0,nd=object.noUnknown){return this.noUnknown(!qa,nd)}transformKeys(qa){return this.transform(nd=>{if(!nd)return nd;const od={};for(const ld of Object.keys(nd))od[qa(ld)]=nd[ld];return od})}camelCase(){return this.transformKeys(tinyCase.camelCase)}snakeCase(){return this.transformKeys(tinyCase.snakeCase)}constantCase(){return this.transformKeys(qa=>tinyCase.snakeCase(qa).toUpperCase())}describe(qa){const nd=(qa?this.resolve(qa):this).clone(),od=super.describe(qa);od.fields={};for(const[ud,dd]of Object.entries(nd.fields)){var ld;let pd=qa;(ld=pd)!=null&&ld.value&&(pd=Object.assign({},pd,{parent:pd.value,value:pd.value[ud]})),od.fields[ud]=dd.describe(pd)}return od}}create$3.prototype=ObjectSchema.prototype;const _hoisted_1$9={class:"flex flex-col items-start"},_hoisted_2$6={class:"flex flex-col items-start"},_sfc_main$S=defineComponent({__name:"UploadImgDialog",emits:["uploadImage"],setup(Ra,{emit:qa}){const nd=qa,od=useDisplayStore(),ld=toTypedSchema(create$3({repo:create$6().required("GitHub 仓库不能为空"),branch:create$6().optional(),accessToken:create$6().required("GitHub Token 不能为空")})),ud=ref$1(localStorage.getItem("githubConfig")?JSON.parse(localStorage.getItem("githubConfig")):{repo:"",branch:"",accessToken:""});function dd(Qf){localStorage.setItem("githubConfig",JSON.stringify(Qf)),ud.value=Qf,Ke$1.success("保存成功")}const pd=toTypedSchema(create$3({accessKeyId:create$6().required("AccessKey ID 不能为空"),accessKeySecret:create$6().required("AccessKey Secret 不能为空"),bucket:create$6().required("Bucket 不能为空"),region:create$6().required("Region 不能为空"),useSSL:create$7().required(),cdnHost:create$6().optional(),path:create$6().optional()})),fd=ref$1(localStorage.getItem("aliOSSConfig")?JSON.parse(localStorage.getItem("aliOSSConfig")):{accessKeyId:"",accessKeySecret:"",bucket:"",region:"",useSSL:!0,cdnHost:"",path:""});function md(Qf){localStorage.setItem("aliOSSConfig",JSON.stringify(Qf)),fd.value=Qf,Ke$1.success("保存成功")}const vd=toTypedSchema(create$3({secretId:create$6().required("Secret ID 不能为空"),secretKey:create$6().required("Secret Key 不能为空"),bucket:create$6().required("Bucket 不能为空"),region:create$6().required("Region 不能为空"),cdnHost:create$6().optional(),path:create$6().optional()})),Ad=ref$1(localStorage.getItem("txCOSConfig")?JSON.parse(localStorage.getItem("txCOSConfig")):{secretId:"",secretKey:"",bucket:"",region:"",cdnHost:"",path:""});function Nd(Qf){localStorage.setItem("txCOSConfig",JSON.stringify(Qf)),Ad.value=Qf,Ke$1.success("保存成功")}const Od=toTypedSchema(create$3({accessKey:create$6().required("AccessKey 不能为空"),secretKey:create$6().required("SecretKey 不能为空"),bucket:create$6().required("Bucket 不能为空"),domain:create$6().required("Bucket 对应域名不能为空"),region:create$6().optional(),path:create$6().optional()})),kd=ref$1(localStorage.getItem("qiniuConfig")?JSON.parse(localStorage.getItem("qiniuConfig")):{accessKey:"",secretKey:"",bucket:"",domain:"",region:"",path:""});function Ld(Qf){localStorage.setItem("qiniuConfig",JSON.stringify(Qf)),kd.value=Qf,Ke$1.success("保存成功")}const Gd=toTypedSchema(create$3({endpoint:create$6().required("Endpoint 不能为空"),port:create$6().optional(),useSSL:create$7().required(),bucket:create$6().required("Bucket 不能为空"),accessKey:create$6().required("AccessKey 不能为空"),secretKey:create$6().required("SecretKey 不能为空")})),jd=ref$1(localStorage.getItem("minioConfig")?JSON.parse(localStorage.getItem("minioConfig")):{endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""});function Fd(Qf){localStorage.setItem("minioConfig",JSON.stringify(Qf)),jd.value=Qf,Ke$1.success("保存成功")}const Ud=ref$1(window.location.href.startsWith("http")),qd=toTypedSchema(create$3({proxyOrigin:Ud.value?create$6().required("代理域名不能为空"):create$6().optional(),appID:create$6().required("AppID 不能为空"),appsecret:create$6().required("AppSecret 不能为空")})),zd=ref$1(localStorage.getItem("mpConfig")?JSON.parse(localStorage.getItem("mpConfig")):{proxyOrigin:"",appID:"",appsecret:""});function Wd(Qf){localStorage.setItem("mpConfig",JSON.stringify(Qf)),zd.value=Qf,Ke$1.success("保存成功")}const Jd=toTypedSchema(create$3({accountId:create$6().required("Account ID 不能为空"),accessKey:create$6().required("AccessKey 不能为空"),secretKey:create$6().required("SecretKey 不能为空"),bucket:create$6().required("Bucket 不能为空"),domain:create$6().required("Bucket 对应域名不能为空"),path:create$6().optional()})),_f=ref$1(localStorage.getItem("r2Config")?JSON.parse(localStorage.getItem("r2Config")):{accountId:"",accessKey:"",secretKey:"",bucket:"",domain:"",path:""});function Xd(Qf){localStorage.setItem("r2Config",JSON.stringify(Qf)),_f.value=Qf,Ke$1.success("保存成功")}const pf=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"mp",label:"公众号图床"},{value:"r2",label:"Cloudflare R2"},{value:"formCustom",label:"自定义代码"}],mf=ref$1("default"),Sf=ref$1("upload");onBeforeMount(()=>{localStorage.getItem("imgHost")&&(mf.value=localStorage.getItem("imgHost"))});function Tf(){localStorage.setItem("imgHost",mf.value),Ke$1.success("已成功切换图床")}function Af(Qf){const Xf=checkImage(Qf);if(!Xf.ok)return Ke$1.error(Xf.msg||""),!1;let ph=localStorage.getItem("imgHost");ph=ph||"default",localStorage.setItem("imgHost",ph);const qf=localStorage.getItem(`${ph}Config`);return ph==="default"||qf?!0:(Ke$1.error(`请先配置 ${ph} 图床参数`),!1)}const Ef=ref$1(!1),{open:Nf,onChange:If}=useFileDialog({accept:"image/*"});If(Qf=>{if(Qf==null)return;const Xf=Qf[0];Af(Xf)&&nd("uploadImage",Xf)});function Gf(Qf){Ef.value=!1,Qf.stopPropagation();const Xf=Array.from(Qf.dataTransfer.files)[0];Af(Xf)&&nd("uploadImage",Xf)}return(Qf,Xf)=>{const ph=_sfc_main$16,qf=_sfc_main$17,Lf=_sfc_main$T,Wf=_sfc_main$U,Jf=_sfc_main$W,Kf=_sfc_main$X,Cf=_sfc_main$_,xf=_sfc_main$V,Yf=_sfc_main$$,dh=_sfc_main$18,Rh=_sfc_main$10,th=_sfc_main$1e,Bf=__unplugin_components_12,Sh=_sfc_main$1o,Fh=_sfc_main$12,uh=_sfc_main$13,Pf=_sfc_main$14,Uf=_sfc_main$1g,Zf=_sfc_main$1h;return openBlock(),createBlock(Zf,{open:unref(od).isShowUploadImgDialog,"onUpdate:open":Xf[6]||(Xf[6]=mh=>unref(od).isShowUploadImgDialog=mh)},{default:withCtx(()=>[createVNode(Uf,{class:"max-w-max",onPointerDownOutside:Xf[5]||(Xf[5]=mh=>mh.preventDefault())},{default:withCtx(()=>[createVNode(qf,null,{default:withCtx(()=>[createVNode(ph,null,{default:withCtx(()=>Xf[7]||(Xf[7]=[createTextVNode("本地上传")])),_:1})]),_:1}),createVNode(Pf,{modelValue:unref(Sf),"onUpdate:modelValue":Xf[4]||(Xf[4]=mh=>isRef(Sf)?Sf.value=mh:null),class:"w-max"},{default:withCtx(()=>[createVNode(Wf,null,{default:withCtx(()=>[createVNode(Lf,{value:"upload"},{default:withCtx(()=>Xf[8]||(Xf[8]=[createTextVNode(" 选择上传 ")])),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(pf.filter(mh=>mh.value!=="default"),mh=>(openBlock(),createBlock(Lf,{key:mh.value,value:mh.value},{default:withCtx(()=>[createTextVNode(toDisplayString(mh.label),1)]),_:2},1032,["value"]))),128))]),_:1}),createVNode(Rh,{value:"upload"},{default:withCtx(()=>[createVNode(dh,null,{default:withCtx(()=>[Xf[9]||(Xf[9]=createBaseVNode("span",{class:"my-4 block"}," 图床 ",-1)),createVNode(Yf,{modelValue:unref(mf),"onUpdate:modelValue":[Xf[0]||(Xf[0]=mh=>isRef(mf)?mf.value=mh:null),Tf]},{default:withCtx(()=>[createVNode(Kf,null,{default:withCtx(()=>[createVNode(Jf,{placeholder:"请选择"})]),_:1}),createVNode(xf,null,{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(pf,mh=>createVNode(Cf,{key:mh.value,label:mh.label,value:mh.value},{default:withCtx(()=>[createTextVNode(toDisplayString(mh.label),1)]),_:2},1032,["label","value"])),64))]),_:1})]),_:1},8,["modelValue"])]),_:1}),createBaseVNode("div",{class:normalizeClass(["bg-clip-padding mt-4 h-50 flex flex-col cursor-pointer items-center justify-evenly border-2 rounded border-dashed transition-colors hover:border-gray-700 hover:bg-gray-400/50 dark:hover:border-gray-200 dark:hover:bg-gray-500/50",{"border-gray-700 bg-gray-400/50 dark:border-gray-200 dark:bg-gray-500/50":unref(Ef)}]),onClick:Xf[1]||(Xf[1]=mh=>unref(Nf)()),onDrop:withModifiers(Gf,["prevent"]),onDragover:Xf[2]||(Xf[2]=withModifiers(mh=>Ef.value=!0,["prevent"])),onDragleave:Xf[3]||(Xf[3]=withModifiers(mh=>Ef.value=!1,["prevent"]))},[createVNode(unref(CloudUpload),{class:"size-20"}),Xf[10]||(Xf[10]=createBaseVNode("p",null,[createTextVNode(" 将图片拖到此处,或 "),createBaseVNode("strong",null,"点击上传")],-1))],34)]),_:1}),createVNode(Rh,{value:"github"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(ld),"initial-values":unref(ud),onSubmit:dd},{default:withCtx(()=>[createVNode(unref(Field),{name:"repo"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"GitHub 仓库",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:github.com/yanglbme/resource"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"branch"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"分支",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:release,可不填,默认 master"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessToken"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Token",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,type:"password",placeholder:"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{variant:"link",class:"p-0",as:"a",href:"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token",target:"_blank"},{default:withCtx(()=>Xf[11]||(Xf[11]=[createTextVNode(" 如何获取 GitHub Token? ")])),_:1})]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{type:"submit"},{default:withCtx(()=>Xf[12]||(Xf[12]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(Rh,{value:"aliOSS"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(pd),"initial-values":unref(fd),onSubmit:md},{default:withCtx(()=>[createVNode(unref(Field),{name:"accessKeyId"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"AccessKey ID",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:LTAI4GdoocsmdoxUf13ylbaNHk"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessKeySecret"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"AccessKey Secret",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,type:"password",placeholder:"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Bucket",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:doocs"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"region"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Bucket 所在区域",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:oss-cn-shenzhen"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"useSSL",type:"boolean"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"UseSSL",required:"",error:Mh},{default:withCtx(()=>[createVNode(Fh,{checked:mh.value,name:mh.name,"onUpdate:checked":mh.onChange,onBlur:mh.onBlur},null,8,["checked","name","onUpdate:checked","onBlur"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"cdnHost"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"自定义 CDN 域名",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:https://imagecdn.alidaodao.com,可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"存储路径",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:img,可不填,默认为根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{variant:"link",class:"p-0",as:"a",href:"https://help.aliyun.com/document_detail/31883.html",target:"_blank"},{default:withCtx(()=>Xf[13]||(Xf[13]=[createTextVNode(" 如何使用阿里云 OSS? ")])),_:1})]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{type:"submit"},{default:withCtx(()=>Xf[14]||(Xf[14]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(Rh,{value:"txCOS"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(vd),"initial-values":unref(Ad),onSubmit:Nd},{default:withCtx(()=>[createVNode(unref(Field),{name:"secretId"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"SecretId",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"SecretKey",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,type:"password",placeholder:"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Bucket",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:doocs-3212520134"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"region"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Bucket 所在区域",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:ap-guangzhou"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"cdnHost"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"自定义 CDN 域名",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:https://imagecdn.alidaodao.com,可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"存储路径",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:img,可不填,默认根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{variant:"link",class:"p-0",as:"a",href:"https://cloud.tencent.com/document/product/436/38484",target:"_blank"},{default:withCtx(()=>Xf[15]||(Xf[15]=[createTextVNode(" 如何使用腾讯云 COS? ")])),_:1})]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{type:"submit"},{default:withCtx(()=>Xf[16]||(Xf[16]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(Rh,{value:"qiniu"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(Od),"initial-values":unref(kd),onSubmit:Ld},{default:withCtx(()=>[createVNode(unref(Field),{name:"accessKey"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"AccessKey",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"SecretKey",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,type:"password",placeholder:"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Bucket",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:md"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"domain"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Bucket 对应域名",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:https://images.123ylb.cn"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"region"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"存储区域",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:z2,可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"存储路径",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:img,可不填,默认为根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{variant:"link",class:"p-0",as:"a",href:"https://developer.qiniu.com/kodo",target:"_blank"},{default:withCtx(()=>Xf[17]||(Xf[17]=[createTextVNode(" 如何使用七牛云 Kodo? ")])),_:1})]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{type:"submit"},{default:withCtx(()=>Xf[18]||(Xf[18]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(Rh,{value:"minio"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(Gd),"initial-values":unref(jd),onSubmit:Fd},{default:withCtx(()=>[createVNode(unref(Field),{name:"endpoint"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Endpoint",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:play.min.io"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"port"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Port",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,type:"number",placeholder:"如:9000,可不填,http 默认为 80,https 默认为 443"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"useSSL",type:"boolean"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"UseSSL",required:"",error:Mh},{default:withCtx(()=>[createVNode(Fh,{checked:mh.value,name:mh.name,"onUpdate:checked":mh.onChange,onBlur:mh.onBlur},null,8,["checked","name","onUpdate:checked","onBlur"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Bucket",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:doocs"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessKey"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"AccessKey",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:zhangsan"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"SecretKey",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:asdasdasd"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{variant:"link",class:"p-0",as:"a",href:"http://docs.minio.org.cn/docs/master/minio-client-complete-guide",target:"_blank"},{default:withCtx(()=>Xf[19]||(Xf[19]=[createTextVNode(" 如何使用 MinIO? ")])),_:1})]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{type:"submit"},{default:withCtx(()=>Xf[20]||(Xf[20]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(Rh,{value:"mp"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(qd),"initial-values":unref(zd),onSubmit:Wd},{default:withCtx(()=>[createVNode(unref(Field),{name:"proxyOrigin"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"代理域名",required:unref(Ud),error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:http://proxy.example.com,使用插件时可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["required","error"])]),_:1}),createVNode(unref(Field),{name:"appID"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"appID",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:wx6e1234567890efa3"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"appsecret"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"appsecret",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:d9f1abcdef01234567890abcdef82397"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$9,[createVNode(Sh,{variant:"link",class:"p-0",as:"a",href:"https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Getting_Started_Guide.html",target:"_blank"},{default:withCtx(()=>Xf[21]||(Xf[21]=[createTextVNode(" 如何开启公众号开发者模式并获取应用账号密钥? ")])),_:1}),createVNode(Sh,{variant:"link",class:"p-0",as:"a",href:"https://mpmd.pages.dev/tutorial/",target:"_blank"},{default:withCtx(()=>Xf[22]||(Xf[22]=[createTextVNode(" 如何在浏览器插件中使用公众号图床? ")])),_:1})])]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{type:"submit"},{default:withCtx(()=>Xf[23]||(Xf[23]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(Rh,{value:"r2"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(Jd),"initial-values":unref(_f),onSubmit:Xd},{default:withCtx(()=>[createVNode(unref(Field),{name:"accountId"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"AccountId",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如: 0030f123e55a57546f4c281c564e560",class:"min-w-[350px]"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessKey"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"AccessKey",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如: 358090b3a12824a6b0787gae7ad0fc72"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"SecretKey",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,type:"password",placeholder:"如: c1c4dbcb0b6b785ac6633422a06dff3dac055fe74fe40xj1b5c5fcf1bf128010"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"Bucket",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:md"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"domain"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"域名",required:"",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:https://oss.example.com"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:mh,errorMessage:Mh})=>[createVNode(Bf,{label:"存储路径",error:Mh},{default:withCtx(()=>[createVNode(th,mergeProps(mh,{modelValue:mh.value,"onUpdate:modelValue":_h=>mh.value=_h,placeholder:"如:img,可不填,默认为根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$6,[createVNode(Sh,{variant:"link",class:"p-0",as:"a",href:"https://developers.cloudflare.com/r2/api/s3/api/",target:"_blank"},{default:withCtx(()=>Xf[24]||(Xf[24]=[createTextVNode(" 如何使用 S3 API 操作 Cloudflare R2 ")])),_:1}),createVNode(Sh,{variant:"link",class:"p-0",as:"a",href:"https://developers.cloudflare.com/r2/buckets/cors/",target:"_blank"},{default:withCtx(()=>Xf[25]||(Xf[25]=[createTextVNode(" 如何设置跨域(CORS) ")])),_:1})])]),_:1}),createVNode(Bf,null,{default:withCtx(()=>[createVNode(Sh,{type:"submit"},{default:withCtx(()=>Xf[26]||(Xf[26]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(Rh,{value:"formCustom"},{default:withCtx(()=>[createVNode(uh)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["open"])}}});var E$2="top",R$2="bottom",W$2="right",P$2="left",me$1="auto",G$2=[E$2,R$2,W$2,P$2],U$2="start",J$2="end",Xe="clippingParents",je$1="viewport",K$2="popper",Ye="reference",De=G$2.reduce(function(Ra,qa){return Ra.concat([qa+"-"+U$2,qa+"-"+J$2])},[]),Ee$1=[].concat(G$2,[me$1]).reduce(function(Ra,qa){return Ra.concat([qa,qa+"-"+U$2,qa+"-"+J$2])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt];function C$1(Ra){return Ra?(Ra.nodeName||"").toLowerCase():null}function H$2(Ra){if(Ra==null)return window;if(Ra.toString()!=="[object Window]"){var qa=Ra.ownerDocument;return qa&&qa.defaultView||window}return Ra}function Q$2(Ra){var qa=H$2(Ra).Element;return Ra instanceof qa||Ra instanceof Element}function B$2(Ra){var qa=H$2(Ra).HTMLElement;return Ra instanceof qa||Ra instanceof HTMLElement}function Pe$1(Ra){if(typeof ShadowRoot>"u")return!1;var qa=H$2(Ra).ShadowRoot;return Ra instanceof qa||Ra instanceof ShadowRoot}function Mt(Ra){var qa=Ra.state;Object.keys(qa.elements).forEach(function(nd){var od=qa.styles[nd]||{},ld=qa.attributes[nd]||{},ud=qa.elements[nd];!B$2(ud)||!C$1(ud)||(Object.assign(ud.style,od),Object.keys(ld).forEach(function(dd){var pd=ld[dd];pd===!1?ud.removeAttribute(dd):ud.setAttribute(dd,pd===!0?"":pd)}))})}function Rt(Ra){var qa=Ra.state,nd={popper:{position:qa.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(qa.elements.popper.style,nd.popper),qa.styles=nd,qa.elements.arrow&&Object.assign(qa.elements.arrow.style,nd.arrow),function(){Object.keys(qa.elements).forEach(function(od){var ld=qa.elements[od],ud=qa.attributes[od]||{},dd=Object.keys(qa.styles.hasOwnProperty(od)?qa.styles[od]:nd[od]),pd=dd.reduce(function(fd,md){return fd[md]="",fd},{});!B$2(ld)||!C$1(ld)||(Object.assign(ld.style,pd),Object.keys(ud).forEach(function(fd){ld.removeAttribute(fd)}))})}}var Ae$1={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q$2(Ra){return Ra.split("-")[0]}var X$2=Math.max,ve$1=Math.min,Z$2=Math.round;function ee$1(Ra,qa){qa===void 0&&(qa=!1);var nd=Ra.getBoundingClientRect(),od=1,ld=1;if(B$2(Ra)&&qa){var ud=Ra.offsetHeight,dd=Ra.offsetWidth;dd>0&&(od=Z$2(nd.width)/dd||1),ud>0&&(ld=Z$2(nd.height)/ud||1)}return{width:nd.width/od,height:nd.height/ld,top:nd.top/ld,right:nd.right/od,bottom:nd.bottom/ld,left:nd.left/od,x:nd.left/od,y:nd.top/ld}}function ke$1(Ra){var qa=ee$1(Ra),nd=Ra.offsetWidth,od=Ra.offsetHeight;return Math.abs(qa.width-nd)<=1&&(nd=qa.width),Math.abs(qa.height-od)<=1&&(od=qa.height),{x:Ra.offsetLeft,y:Ra.offsetTop,width:nd,height:od}}function it(Ra,qa){var nd=qa.getRootNode&&qa.getRootNode();if(Ra.contains(qa))return!0;if(nd&&Pe$1(nd)){var od=qa;do{if(od&&Ra.isSameNode(od))return!0;od=od.parentNode||od.host}while(od)}return!1}function N$1(Ra){return H$2(Ra).getComputedStyle(Ra)}function Wt(Ra){return["table","td","th"].indexOf(C$1(Ra))>=0}function I$1(Ra){return((Q$2(Ra)?Ra.ownerDocument:Ra.document)||window.document).documentElement}function ge$1(Ra){return C$1(Ra)==="html"?Ra:Ra.assignedSlot||Ra.parentNode||(Pe$1(Ra)?Ra.host:null)||I$1(Ra)}function at$1(Ra){return!B$2(Ra)||N$1(Ra).position==="fixed"?null:Ra.offsetParent}function Bt(Ra){var qa=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,nd=navigator.userAgent.indexOf("Trident")!==-1;if(nd&&B$2(Ra)){var od=N$1(Ra);if(od.position==="fixed")return null}var ld=ge$1(Ra);for(Pe$1(ld)&&(ld=ld.host);B$2(ld)&&["html","body"].indexOf(C$1(ld))<0;){var ud=N$1(ld);if(ud.transform!=="none"||ud.perspective!=="none"||ud.contain==="paint"||["transform","perspective"].indexOf(ud.willChange)!==-1||qa&&ud.willChange==="filter"||qa&&ud.filter&&ud.filter!=="none")return ld;ld=ld.parentNode}return null}function se$1(Ra){for(var qa=H$2(Ra),nd=at$1(Ra);nd&&Wt(nd)&&N$1(nd).position==="static";)nd=at$1(nd);return nd&&(C$1(nd)==="html"||C$1(nd)==="body"&&N$1(nd).position==="static")?qa:nd||Bt(Ra)||qa}function Le$1(Ra){return["top","bottom"].indexOf(Ra)>=0?"x":"y"}function fe$1(Ra,qa,nd){return X$2(Ra,ve$1(qa,nd))}function St(Ra,qa,nd){var od=fe$1(Ra,qa,nd);return od>nd?nd:od}function st(){return{top:0,right:0,bottom:0,left:0}}function ft(Ra){return Object.assign({},st(),Ra)}function ct$1(Ra,qa){return qa.reduce(function(nd,od){return nd[od]=Ra,nd},{})}var Tt=function(Ra,qa){return Ra=typeof Ra=="function"?Ra(Object.assign({},qa.rects,{placement:qa.placement})):Ra,ft(typeof Ra!="number"?Ra:ct$1(Ra,G$2))};function Ht(Ra){var qa,nd=Ra.state,od=Ra.name,ld=Ra.options,ud=nd.elements.arrow,dd=nd.modifiersData.popperOffsets,pd=q$2(nd.placement),fd=Le$1(pd),md=[P$2,W$2].indexOf(pd)>=0,vd=md?"height":"width";if(!(!ud||!dd)){var Ad=Tt(ld.padding,nd),Nd=ke$1(ud),Od=fd==="y"?E$2:P$2,kd=fd==="y"?R$2:W$2,Ld=nd.rects.reference[vd]+nd.rects.reference[fd]-dd[fd]-nd.rects.popper[vd],Gd=dd[fd]-nd.rects.reference[fd],jd=se$1(ud),Fd=jd?fd==="y"?jd.clientHeight||0:jd.clientWidth||0:0,Ud=Ld/2-Gd/2,qd=Ad[Od],zd=Fd-Nd[vd]-Ad[kd],Wd=Fd/2-Nd[vd]/2+Ud,Jd=fe$1(qd,Wd,zd),_f=fd;nd.modifiersData[od]=(qa={},qa[_f]=Jd,qa.centerOffset=Jd-Wd,qa)}}function Ct(Ra){var qa=Ra.state,nd=Ra.options,od=nd.element,ld=od===void 0?"[data-popper-arrow]":od;ld!=null&&(typeof ld=="string"&&(ld=qa.elements.popper.querySelector(ld),!ld)||!it(qa.elements.popper,ld)||(qa.elements.arrow=ld))}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te$1(Ra){return Ra.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(Ra){var qa=Ra.x,nd=Ra.y,od=window,ld=od.devicePixelRatio||1;return{x:Z$2(qa*ld)/ld||0,y:Z$2(nd*ld)/ld||0}}function ut(Ra){var qa,nd=Ra.popper,od=Ra.popperRect,ld=Ra.placement,ud=Ra.variation,dd=Ra.offsets,pd=Ra.position,fd=Ra.gpuAcceleration,md=Ra.adaptive,vd=Ra.roundOffsets,Ad=Ra.isFixed,Nd=dd.x,Od=Nd===void 0?0:Nd,kd=dd.y,Ld=kd===void 0?0:kd,Gd=typeof vd=="function"?vd({x:Od,y:Ld}):{x:Od,y:Ld};Od=Gd.x,Ld=Gd.y;var jd=dd.hasOwnProperty("x"),Fd=dd.hasOwnProperty("y"),Ud=P$2,qd=E$2,zd=window;if(md){var Wd=se$1(nd),Jd="clientHeight",_f="clientWidth";if(Wd===H$2(nd)&&(Wd=I$1(nd),N$1(Wd).position!=="static"&&pd==="absolute"&&(Jd="scrollHeight",_f="scrollWidth")),Wd=Wd,ld===E$2||(ld===P$2||ld===W$2)&&ud===J$2){qd=R$2;var Xd=Ad&&Wd===zd&&zd.visualViewport?zd.visualViewport.height:Wd[Jd];Ld-=Xd-od.height,Ld*=fd?1:-1}if(ld===P$2||(ld===E$2||ld===R$2)&&ud===J$2){Ud=W$2;var pf=Ad&&Wd===zd&&zd.visualViewport?zd.visualViewport.width:Wd[_f];Od-=pf-od.width,Od*=fd?1:-1}}var mf=Object.assign({position:pd},md&&qt),Sf=vd===!0?Vt({x:Od,y:Ld}):{x:Od,y:Ld};if(Od=Sf.x,Ld=Sf.y,fd){var Tf;return Object.assign({},mf,(Tf={},Tf[qd]=Fd?"0":"",Tf[Ud]=jd?"0":"",Tf.transform=(zd.devicePixelRatio||1)<=1?"translate("+Od+"px, "+Ld+"px)":"translate3d("+Od+"px, "+Ld+"px, 0)",Tf))}return Object.assign({},mf,(qa={},qa[qd]=Fd?Ld+"px":"",qa[Ud]=jd?Od+"px":"",qa.transform="",qa))}function Nt(Ra){var qa=Ra.state,nd=Ra.options,od=nd.gpuAcceleration,ld=od===void 0?!0:od,ud=nd.adaptive,dd=ud===void 0?!0:ud,pd=nd.roundOffsets,fd=pd===void 0?!0:pd,md={placement:q$2(qa.placement),variation:te$1(qa.placement),popper:qa.elements.popper,popperRect:qa.rects.popper,gpuAcceleration:ld,isFixed:qa.options.strategy==="fixed"};qa.modifiersData.popperOffsets!=null&&(qa.styles.popper=Object.assign({},qa.styles.popper,ut(Object.assign({},md,{offsets:qa.modifiersData.popperOffsets,position:qa.options.strategy,adaptive:dd,roundOffsets:fd})))),qa.modifiersData.arrow!=null&&(qa.styles.arrow=Object.assign({},qa.styles.arrow,ut(Object.assign({},md,{offsets:qa.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:fd})))),qa.attributes.popper=Object.assign({},qa.attributes.popper,{"data-popper-placement":qa.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt,data:{}},ye$1={passive:!0};function It(Ra){var qa=Ra.state,nd=Ra.instance,od=Ra.options,ld=od.scroll,ud=ld===void 0?!0:ld,dd=od.resize,pd=dd===void 0?!0:dd,fd=H$2(qa.elements.popper),md=[].concat(qa.scrollParents.reference,qa.scrollParents.popper);return ud&&md.forEach(function(vd){vd.addEventListener("scroll",nd.update,ye$1)}),pd&&fd.addEventListener("resize",nd.update,ye$1),function(){ud&&md.forEach(function(vd){vd.removeEventListener("scroll",nd.update,ye$1)}),pd&&fd.removeEventListener("resize",nd.update,ye$1)}}var Re$1={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be$2(Ra){return Ra.replace(/left|right|bottom|top/g,function(qa){return _t[qa]})}var zt={start:"end",end:"start"};function lt(Ra){return Ra.replace(/start|end/g,function(qa){return zt[qa]})}function We(Ra){var qa=H$2(Ra),nd=qa.pageXOffset,od=qa.pageYOffset;return{scrollLeft:nd,scrollTop:od}}function Be$1(Ra){return ee$1(I$1(Ra)).left+We(Ra).scrollLeft}function Ft(Ra){var qa=H$2(Ra),nd=I$1(Ra),od=qa.visualViewport,ld=nd.clientWidth,ud=nd.clientHeight,dd=0,pd=0;return od&&(ld=od.width,ud=od.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(dd=od.offsetLeft,pd=od.offsetTop)),{width:ld,height:ud,x:dd+Be$1(Ra),y:pd}}function Ut(Ra){var qa,nd=I$1(Ra),od=We(Ra),ld=(qa=Ra.ownerDocument)==null?void 0:qa.body,ud=X$2(nd.scrollWidth,nd.clientWidth,ld?ld.scrollWidth:0,ld?ld.clientWidth:0),dd=X$2(nd.scrollHeight,nd.clientHeight,ld?ld.scrollHeight:0,ld?ld.clientHeight:0),pd=-od.scrollLeft+Be$1(Ra),fd=-od.scrollTop;return N$1(ld||nd).direction==="rtl"&&(pd+=X$2(nd.clientWidth,ld?ld.clientWidth:0)-ud),{width:ud,height:dd,x:pd,y:fd}}function Se$1(Ra){var qa=N$1(Ra),nd=qa.overflow,od=qa.overflowX,ld=qa.overflowY;return/auto|scroll|overlay|hidden/.test(nd+ld+od)}function dt(Ra){return["html","body","#document"].indexOf(C$1(Ra))>=0?Ra.ownerDocument.body:B$2(Ra)&&Se$1(Ra)?Ra:dt(ge$1(Ra))}function ce$2(Ra,qa){var nd;qa===void 0&&(qa=[]);var od=dt(Ra),ld=od===((nd=Ra.ownerDocument)==null?void 0:nd.body),ud=H$2(od),dd=ld?[ud].concat(ud.visualViewport||[],Se$1(od)?od:[]):od,pd=qa.concat(dd);return ld?pd:pd.concat(ce$2(ge$1(dd)))}function Te(Ra){return Object.assign({},Ra,{left:Ra.x,top:Ra.y,right:Ra.x+Ra.width,bottom:Ra.y+Ra.height})}function Xt(Ra){var qa=ee$1(Ra);return qa.top=qa.top+Ra.clientTop,qa.left=qa.left+Ra.clientLeft,qa.bottom=qa.top+Ra.clientHeight,qa.right=qa.left+Ra.clientWidth,qa.width=Ra.clientWidth,qa.height=Ra.clientHeight,qa.x=qa.left,qa.y=qa.top,qa}function ht(Ra,qa){return qa===je$1?Te(Ft(Ra)):Q$2(qa)?Xt(qa):Te(Ut(I$1(Ra)))}function Yt(Ra){var qa=ce$2(ge$1(Ra)),nd=["absolute","fixed"].indexOf(N$1(Ra).position)>=0,od=nd&&B$2(Ra)?se$1(Ra):Ra;return Q$2(od)?qa.filter(function(ld){return Q$2(ld)&&it(ld,od)&&C$1(ld)!=="body"}):[]}function Gt(Ra,qa,nd){var od=qa==="clippingParents"?Yt(Ra):[].concat(qa),ld=[].concat(od,[nd]),ud=ld[0],dd=ld.reduce(function(pd,fd){var md=ht(Ra,fd);return pd.top=X$2(md.top,pd.top),pd.right=ve$1(md.right,pd.right),pd.bottom=ve$1(md.bottom,pd.bottom),pd.left=X$2(md.left,pd.left),pd},ht(Ra,ud));return dd.width=dd.right-dd.left,dd.height=dd.bottom-dd.top,dd.x=dd.left,dd.y=dd.top,dd}function mt(Ra){var qa=Ra.reference,nd=Ra.element,od=Ra.placement,ld=od?q$2(od):null,ud=od?te$1(od):null,dd=qa.x+qa.width/2-nd.width/2,pd=qa.y+qa.height/2-nd.height/2,fd;switch(ld){case E$2:fd={x:dd,y:qa.y-nd.height};break;case R$2:fd={x:dd,y:qa.y+qa.height};break;case W$2:fd={x:qa.x+qa.width,y:pd};break;case P$2:fd={x:qa.x-nd.width,y:pd};break;default:fd={x:qa.x,y:qa.y}}var md=ld?Le$1(ld):null;if(md!=null){var vd=md==="y"?"height":"width";switch(ud){case U$2:fd[md]=fd[md]-(qa[vd]/2-nd[vd]/2);break;case J$2:fd[md]=fd[md]+(qa[vd]/2-nd[vd]/2);break}}return fd}function ne$1(Ra,qa){qa===void 0&&(qa={});var nd=qa,od=nd.placement,ld=od===void 0?Ra.placement:od,ud=nd.boundary,dd=ud===void 0?Xe:ud,pd=nd.rootBoundary,fd=pd===void 0?je$1:pd,md=nd.elementContext,vd=md===void 0?K$2:md,Ad=nd.altBoundary,Nd=Ad===void 0?!1:Ad,Od=nd.padding,kd=Od===void 0?0:Od,Ld=ft(typeof kd!="number"?kd:ct$1(kd,G$2)),Gd=vd===K$2?Ye:K$2,jd=Ra.rects.popper,Fd=Ra.elements[Nd?Gd:vd],Ud=Gt(Q$2(Fd)?Fd:Fd.contextElement||I$1(Ra.elements.popper),dd,fd),qd=ee$1(Ra.elements.reference),zd=mt({reference:qd,element:jd,strategy:"absolute",placement:ld}),Wd=Te(Object.assign({},jd,zd)),Jd=vd===K$2?Wd:qd,_f={top:Ud.top-Jd.top+Ld.top,bottom:Jd.bottom-Ud.bottom+Ld.bottom,left:Ud.left-Jd.left+Ld.left,right:Jd.right-Ud.right+Ld.right},Xd=Ra.modifiersData.offset;if(vd===K$2&&Xd){var pf=Xd[ld];Object.keys(_f).forEach(function(mf){var Sf=[W$2,R$2].indexOf(mf)>=0?1:-1,Tf=[E$2,R$2].indexOf(mf)>=0?"y":"x";_f[mf]+=pf[Tf]*Sf})}return _f}function Jt(Ra,qa){qa===void 0&&(qa={});var nd=qa,od=nd.placement,ld=nd.boundary,ud=nd.rootBoundary,dd=nd.padding,pd=nd.flipVariations,fd=nd.allowedAutoPlacements,md=fd===void 0?Ee$1:fd,vd=te$1(od),Ad=vd?pd?De:De.filter(function(kd){return te$1(kd)===vd}):G$2,Nd=Ad.filter(function(kd){return md.indexOf(kd)>=0});Nd.length===0&&(Nd=Ad);var Od=Nd.reduce(function(kd,Ld){return kd[Ld]=ne$1(Ra,{placement:Ld,boundary:ld,rootBoundary:ud,padding:dd})[q$2(Ld)],kd},{});return Object.keys(Od).sort(function(kd,Ld){return Od[kd]-Od[Ld]})}function Kt(Ra){if(q$2(Ra)===me$1)return[];var qa=be$2(Ra);return[lt(Ra),qa,lt(qa)]}function Qt(Ra){var qa=Ra.state,nd=Ra.options,od=Ra.name;if(!qa.modifiersData[od]._skip){for(var ld=nd.mainAxis,ud=ld===void 0?!0:ld,dd=nd.altAxis,pd=dd===void 0?!0:dd,fd=nd.fallbackPlacements,md=nd.padding,vd=nd.boundary,Ad=nd.rootBoundary,Nd=nd.altBoundary,Od=nd.flipVariations,kd=Od===void 0?!0:Od,Ld=nd.allowedAutoPlacements,Gd=qa.options.placement,jd=q$2(Gd),Fd=jd===Gd,Ud=fd||(Fd||!kd?[be$2(Gd)]:Kt(Gd)),qd=[Gd].concat(Ud).reduce(function(Wf,Jf){return Wf.concat(q$2(Jf)===me$1?Jt(qa,{placement:Jf,boundary:vd,rootBoundary:Ad,padding:md,flipVariations:kd,allowedAutoPlacements:Ld}):Jf)},[]),zd=qa.rects.reference,Wd=qa.rects.popper,Jd=new Map,_f=!0,Xd=qd[0],pf=0;pf=0,Ef=Af?"width":"height",Nf=ne$1(qa,{placement:mf,boundary:vd,rootBoundary:Ad,altBoundary:Nd,padding:md}),If=Af?Tf?W$2:P$2:Tf?R$2:E$2;zd[Ef]>Wd[Ef]&&(If=be$2(If));var Gf=be$2(If),Qf=[];if(ud&&Qf.push(Nf[Sf]<=0),pd&&Qf.push(Nf[If]<=0,Nf[Gf]<=0),Qf.every(function(Wf){return Wf})){Xd=mf,_f=!1;break}Jd.set(mf,Qf)}if(_f)for(var Xf=kd?3:1,ph=function(Wf){var Jf=qd.find(function(Kf){var Cf=Jd.get(Kf);if(Cf)return Cf.slice(0,Wf).every(function(xf){return xf})});if(Jf)return Xd=Jf,"break"},qf=Xf;qf>0;qf--){var Lf=ph(qf);if(Lf==="break")break}qa.placement!==Xd&&(qa.modifiersData[od]._skip=!0,qa.placement=Xd,qa.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt(Ra,qa,nd){return nd===void 0&&(nd={x:0,y:0}),{top:Ra.top-qa.height-nd.y,right:Ra.right-qa.width+nd.x,bottom:Ra.bottom-qa.height+nd.y,left:Ra.left-qa.width-nd.x}}function yt(Ra){return[E$2,W$2,R$2,P$2].some(function(qa){return Ra[qa]>=0})}function Zt(Ra){var qa=Ra.state,nd=Ra.name,od=qa.rects.reference,ld=qa.rects.popper,ud=qa.modifiersData.preventOverflow,dd=ne$1(qa,{elementContext:"reference"}),pd=ne$1(qa,{altBoundary:!0}),fd=gt(dd,od),md=gt(pd,ld,ud),vd=yt(fd),Ad=yt(md);qa.modifiersData[nd]={referenceClippingOffsets:fd,popperEscapeOffsets:md,isReferenceHidden:vd,hasPopperEscaped:Ad},qa.attributes.popper=Object.assign({},qa.attributes.popper,{"data-popper-reference-hidden":vd,"data-popper-escaped":Ad})}var bt$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en(Ra,qa,nd){var od=q$2(Ra),ld=[P$2,E$2].indexOf(od)>=0?-1:1,ud=typeof nd=="function"?nd(Object.assign({},qa,{placement:Ra})):nd,dd=ud[0],pd=ud[1];return dd=dd||0,pd=(pd||0)*ld,[P$2,W$2].indexOf(od)>=0?{x:pd,y:dd}:{x:dd,y:pd}}function tn(Ra){var qa=Ra.state,nd=Ra.options,od=Ra.name,ld=nd.offset,ud=ld===void 0?[0,0]:ld,dd=Ee$1.reduce(function(vd,Ad){return vd[Ad]=en(Ad,qa.rects,ud),vd},{}),pd=dd[qa.placement],fd=pd.x,md=pd.y;qa.modifiersData.popperOffsets!=null&&(qa.modifiersData.popperOffsets.x+=fd,qa.modifiersData.popperOffsets.y+=md),qa.modifiersData[od]=dd}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn(Ra){var qa=Ra.state,nd=Ra.name;qa.modifiersData[nd]=mt({reference:qa.rects.reference,element:qa.rects.popper,strategy:"absolute",placement:qa.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn(Ra){return Ra==="x"?"y":"x"}function on(Ra){var qa=Ra.state,nd=Ra.options,od=Ra.name,ld=nd.mainAxis,ud=ld===void 0?!0:ld,dd=nd.altAxis,pd=dd===void 0?!1:dd,fd=nd.boundary,md=nd.rootBoundary,vd=nd.altBoundary,Ad=nd.padding,Nd=nd.tether,Od=Nd===void 0?!0:Nd,kd=nd.tetherOffset,Ld=kd===void 0?0:kd,Gd=ne$1(qa,{boundary:fd,rootBoundary:md,padding:Ad,altBoundary:vd}),jd=q$2(qa.placement),Fd=te$1(qa.placement),Ud=!Fd,qd=Le$1(jd),zd=rn(qd),Wd=qa.modifiersData.popperOffsets,Jd=qa.rects.reference,_f=qa.rects.popper,Xd=typeof Ld=="function"?Ld(Object.assign({},qa.rects,{placement:qa.placement})):Ld,pf=typeof Xd=="number"?{mainAxis:Xd,altAxis:Xd}:Object.assign({mainAxis:0,altAxis:0},Xd),mf=qa.modifiersData.offset?qa.modifiersData.offset[qa.placement]:null,Sf={x:0,y:0};if(Wd){if(ud){var Tf,Af=qd==="y"?E$2:P$2,Ef=qd==="y"?R$2:W$2,Nf=qd==="y"?"height":"width",If=Wd[qd],Gf=If+Gd[Af],Qf=If-Gd[Ef],Xf=Od?-_f[Nf]/2:0,ph=Fd===U$2?Jd[Nf]:_f[Nf],qf=Fd===U$2?-_f[Nf]:-Jd[Nf],Lf=qa.elements.arrow,Wf=Od&&Lf?ke$1(Lf):{width:0,height:0},Jf=qa.modifiersData["arrow#persistent"]?qa.modifiersData["arrow#persistent"].padding:st(),Kf=Jf[Af],Cf=Jf[Ef],xf=fe$1(0,Jd[Nf],Wf[Nf]),Yf=Ud?Jd[Nf]/2-Xf-xf-Kf-pf.mainAxis:ph-xf-Kf-pf.mainAxis,dh=Ud?-Jd[Nf]/2+Xf+xf+Cf+pf.mainAxis:qf+xf+Cf+pf.mainAxis,Rh=qa.elements.arrow&&se$1(qa.elements.arrow),th=Rh?qd==="y"?Rh.clientTop||0:Rh.clientLeft||0:0,Bf=(Tf=mf==null?void 0:mf[qd])!=null?Tf:0,Sh=If+Yf-Bf-th,Fh=If+dh-Bf,uh=fe$1(Od?ve$1(Gf,Sh):Gf,If,Od?X$2(Qf,Fh):Qf);Wd[qd]=uh,Sf[qd]=uh-If}if(pd){var Pf,Uf=qd==="x"?E$2:P$2,Zf=qd==="x"?R$2:W$2,mh=Wd[zd],Mh=zd==="y"?"height":"width",_h=mh+Gd[Uf],pm=mh-Gd[Zf],Jh=[E$2,P$2].indexOf(jd)!==-1,Mm=(Pf=mf==null?void 0:mf[zd])!=null?Pf:0,Im=Jh?_h:mh-Jd[Mh]-_f[Mh]-Mm+pf.altAxis,gm=Jh?mh+Jd[Mh]+_f[Mh]-Mm-pf.altAxis:pm,Lm=Od&&Jh?St(Im,mh,gm):fe$1(Od?Im:_h,mh,Od?gm:pm);Wd[zd]=Lm,Sf[zd]=Lm-mh}qa.modifiersData[od]=Sf}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an$1(Ra){return{scrollLeft:Ra.scrollLeft,scrollTop:Ra.scrollTop}}function sn(Ra){return Ra===H$2(Ra)||!B$2(Ra)?We(Ra):an$1(Ra)}function fn(Ra){var qa=Ra.getBoundingClientRect(),nd=Z$2(qa.width)/Ra.offsetWidth||1,od=Z$2(qa.height)/Ra.offsetHeight||1;return nd!==1||od!==1}function cn$1(Ra,qa,nd){nd===void 0&&(nd=!1);var od=B$2(qa),ld=B$2(qa)&&fn(qa),ud=I$1(qa),dd=ee$1(Ra,ld),pd={scrollLeft:0,scrollTop:0},fd={x:0,y:0};return(od||!od&&!nd)&&((C$1(qa)!=="body"||Se$1(ud))&&(pd=sn(qa)),B$2(qa)?(fd=ee$1(qa,!0),fd.x+=qa.clientLeft,fd.y+=qa.clientTop):ud&&(fd.x=Be$1(ud))),{x:dd.left+pd.scrollLeft-fd.x,y:dd.top+pd.scrollTop-fd.y,width:dd.width,height:dd.height}}function pn(Ra){var qa=new Map,nd=new Set,od=[];Ra.forEach(function(ud){qa.set(ud.name,ud)});function ld(ud){nd.add(ud.name);var dd=[].concat(ud.requires||[],ud.requiresIfExists||[]);dd.forEach(function(pd){if(!nd.has(pd)){var fd=qa.get(pd);fd&&ld(fd)}}),od.push(ud)}return Ra.forEach(function(ud){nd.has(ud.name)||ld(ud)}),od}function un(Ra){var qa=pn(Ra);return ot.reduce(function(nd,od){return nd.concat(qa.filter(function(ld){return ld.phase===od}))},[])}function ln(Ra){var qa;return function(){return qa||(qa=new Promise(function(nd){Promise.resolve().then(function(){qa=void 0,nd(Ra())})})),qa}}function dn(Ra){var qa=Ra.reduce(function(nd,od){var ld=nd[od.name];return nd[od.name]=ld?Object.assign({},ld,od,{options:Object.assign({},ld.options,od.options),data:Object.assign({},ld.data,od.data)}):od,nd},{});return Object.keys(qa).map(function(nd){return qa[nd]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var Ra=arguments.length,qa=new Array(Ra),nd=0;ndRa.length)&&(qa=Ra.length);for(var nd=0,od=Array(qa);nd=0;--qf){var Lf=this.tryEntries[qf],Wf=Lf.completion;if(Lf.tryLoc==="root")return ph("end");if(Lf.tryLoc<=this.prev){var Jf=dd.call(Lf,"catchLoc"),Kf=dd.call(Lf,"finallyLoc");if(Jf&&Kf){if(this.prev=0;--ph){var qf=this.tryEntries[ph];if(qf.tryLoc<=this.prev&&dd.call(qf,"finallyLoc")&&this.prev=0;--Xf){var ph=this.tryEntries[Xf];if(ph.finallyLoc===Qf)return this.complete(ph.completion,ph.afterLoc),Nf(ph),Ud}},catch:function(Qf){for(var Xf=this.tryEntries.length-1;Xf>=0;--Xf){var ph=this.tryEntries[Xf];if(ph.tryLoc===Qf){var qf=ph.completion;if(qf.type==="throw"){var Lf=qf.arg;Nf(ph)}return Lf}}throw Error("illegal catch attempt")},delegateYield:function(Qf,Xf,ph){return this.delegate={iterator:Gf(Qf),resultName:Xf,nextLoc:ph},this.method==="next"&&(this.arg=od),Ud}},ld}Ra.exports=nd,Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports}(B$1);var z$1=B$1.exports(),M$1=z$1;try{regeneratorRuntime=z$1}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=z$1:Function("r","regeneratorRuntime = r")(z$1)}function D$1(Ra,qa){return function(nd){if(Array.isArray(nd))return nd}(Ra)||function(nd,od){var ld=nd==null?null:typeof Symbol<"u"&&nd[Symbol.iterator]||nd["@@iterator"];if(ld!=null){var ud,dd,pd,fd,md=[],vd=!0,Ad=!1;try{if(pd=(ld=ld.call(nd)).next,od===0){if(Object(ld)!==ld)return;vd=!1}else for(;!(vd=(ud=pd.call(ld)).done)&&(md.push(ud.value),md.length!==od);vd=!0);}catch(Nd){Ad=!0,dd=Nd}finally{try{if(!vd&&ld.return!=null&&(fd=ld.return(),Object(fd)!==fd))return}finally{if(Ad)throw dd}}return md}}(Ra,qa)||_$1(Ra,qa)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function T$1(Ra){var qa=function(nd,od){if(P$1(nd)!="object"||!nd)return nd;var ld=nd[Symbol.toPrimitive];if(ld!==void 0){var ud=ld.call(nd,od||"default");if(P$1(ud)!="object")return ud;throw new TypeError("@@toPrimitive must return a primitive value.")}return(od==="string"?String:Number)(nd)}(Ra,"string");return P$1(qa)=="symbol"?qa:qa+""}function H$1(Ra,qa,nd){return(qa=T$1(qa))in Ra?Object.defineProperty(Ra,qa,{value:nd,enumerable:!0,configurable:!0,writable:!0}):Ra[qa]=nd,Ra}var G$1=defineComponent({name:"Saturation",props:{size:{type:Number,default:160},hue:{type:Number,default:0},saturation:{type:Number,default:0},value:{type:Number,default:0}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),background:"hsl(".concat(Ra.hue,", 100%, 50%)")}});return{saturationStyle:od,sliderStyle:computed(function(){return{top:"".concat((100-Ra.value)/100*Ra.size-5,"px"),left:"".concat(Ra.saturation*Ra.size/100-5,"px"),width:"".concat(10,"px"),height:"".concat(10,"px")}}),onSelect:function(ld){var ud=ld.target.getBoundingClientRect(),dd=ud.left,pd=ud.top,fd=function(vd){var Ad=vd.clientX,Nd=vd.clientY,Od=Ad-dd,kd=Nd-pd;Od<0&&(Od=0),kd<0&&(kd=0),Od>Ra.size&&(Od=Ra.size),kd>Ra.size&&(kd=Ra.size);var Ld=Od/Ra.size*100,Gd=100-kd/Ra.size*100;nd("change",Ld,Gd)},md=function(){document.removeEventListener("mousemove",fd),document.removeEventListener("mouseup",md)};fd(ld),document.addEventListener("mousemove",fd),document.addEventListener("mouseup",md)}}}});function V$1(Ra,qa){qa===void 0&&(qa={});var nd=qa.insertAt;if(Ra&&typeof document<"u"){var od=document.head||document.getElementsByTagName("head")[0],ld=document.createElement("style");ld.type="text/css",nd==="top"&&od.firstChild?od.insertBefore(ld,od.firstChild):od.appendChild(ld),ld.styleSheet?ld.styleSheet.cssText=Ra:ld.appendChild(document.createTextNode(Ra))}}V$1(".saturation[data-v-24517fec]{position:relative}.saturation-black[data-v-24517fec],.saturation-white[data-v-24517fec]{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.saturation-white[data-v-24517fec]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-black[data-v-24517fec]{background:linear-gradient(0deg,#000,transparent)}.slider[data-v-24517fec]{border:1px solid #fff;border-radius:50%;box-shadow:0 0 1px 1px rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;top:0;z-index:1}"),G$1.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",{class:"saturation",style:normalizeStyle(Ra.saturationStyle),onMousedown:qa[0]||(qa[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[qa[1]||(qa[1]=createBaseVNode("div",{class:"saturation-white"},null,-1)),qa[2]||(qa[2]=createBaseVNode("div",{class:"saturation-black"},null,-1)),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],36)},G$1.__scopeId="data-v-24517fec",G$1.__file="src/picker/Saturation.vue";var Y$1=defineComponent({name:"Hue",props:{width:{type:Number,default:15},height:{type:Number,default:160},hue:{type:Number,default:0}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{top:"".concat((1-Ra.hue/360)*Ra.height-2,"px"),height:"".concat(4,"px")}}),ld=ref$1();return onMounted(function(){(function(){ld.value.width=Ra.width,ld.value.height=Ra.height;var ud=ld.value.getContext("2d"),dd=ud.createLinearGradient(0,0,0,Ra.height);dd.addColorStop(0,"#FF0000"),dd.addColorStop(.17,"#FF00FF"),dd.addColorStop(.34,"#0000FF"),dd.addColorStop(.51,"#00FFFF"),dd.addColorStop(.68,"#00FF00"),dd.addColorStop(.17*5,"#FFFF00"),dd.addColorStop(1,"#FF0000"),ud.fillStyle=dd,ud.fillRect(0,0,Ra.width,Ra.height)})()}),{canvas:ld,sliderStyle:od,onSelect:function(ud){var dd=ud.target.getBoundingClientRect().top,pd=function(md){var vd=md.clientY-dd;vd<0&&(vd=0),vd>Ra.height&&(vd=Ra.height);var Ad=-100*vd/Ra.height+100;nd("change",360*Ad/100)},fd=function(){document.removeEventListener("mousemove",pd),document.removeEventListener("mouseup",fd)};pd(ud),document.addEventListener("mousemove",pd),document.addEventListener("mouseup",fd)}}}}),$={ref:"canvas"};V$1(".hue[data-v-78b9f4f0]{position:relative}.slider[data-v-78b9f4f0]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),Y$1.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",{class:"hue",onMousedown:qa[0]||(qa[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[createBaseVNode("canvas",$,null,512),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],32)},Y$1.__scopeId="data-v-78b9f4f0",Y$1.__file="src/picker/Hue.vue";var J$1=defineComponent({name:"Alpha",props:{width:{type:Number,default:15},height:{type:Number,default:160},color:{type:String,default:"#000000"},alpha:{type:Number,default:1}},setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{top:"".concat(Ra.alpha*Ra.height-2,"px"),height:"".concat(4,"px")}}),ld=ref$1(),ud=function(){var dd=ld.value.getContext("2d");ld.value.width=Ra.width,ld.value.height=Ra.height;var pd=function(md){var vd=document.createElement("canvas"),Ad=vd.getContext("2d"),Nd=2*md;return vd.width=Nd,vd.height=Nd,Ad.fillStyle="#ffffff",Ad.fillRect(0,0,Nd,Nd),Ad.fillStyle="#ccd5db",Ad.fillRect(0,0,md,md),Ad.fillRect(md,md,md,md),vd}(5);dd.fillStyle=dd.createPattern(pd,"repeat"),dd.fillRect(0,0,Ra.width,Ra.height);var fd=dd.createLinearGradient(0,0,0,Ra.height);fd.addColorStop(.01,"rgba(255,255,255,0)"),fd.addColorStop(.99,Ra.color),dd.fillStyle=fd,dd.fillRect(0,0,Ra.width,Ra.height)};return watch(function(){return Ra.color},function(){ud()}),onMounted(function(){ud()}),{canvas:ld,sliderStyle:od,onSelect:function(dd){var pd=dd.target.getBoundingClientRect().top,fd=function(vd){var Ad=vd.clientY-pd;Ad<0&&(Ad=0),Ad>Ra.height&&(Ad=Ra.height);var Nd=parseFloat((Ad/Ra.height).toFixed(2));nd("change",Nd)},md=function(){document.removeEventListener("mousemove",fd),document.removeEventListener("mouseup",md)};fd(dd),document.addEventListener("mousemove",fd),document.addEventListener("mouseup",md)}}}}),X$1={ref:"canvas"};V$1(".alpha[data-v-24dc9656]{position:relative}.slider[data-v-24dc9656]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),J$1.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",{class:"alpha",onMousedown:qa[0]||(qa[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[createBaseVNode("canvas",X$1,null,512),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],32)},J$1.__scopeId="data-v-24dc9656",J$1.__file="src/picker/Alpha.vue";var q$1={rgb:"RGBA",hex:"HEX",hsl:"HSLA",hsv:"HSVA"},U$1={rgb:"RGB",hex:"HEX",hsl:"HSL",hsv:"HSV"},W$1={RGB:"rgb",RGBA:"rgb",HEX:"hex",HSL:"hsl",HSLA:"hsl",HSV:"hsv",HSVA:"hsv"};function K$1(Ra,qa){var nd=Object.keys(Ra);if(Object.getOwnPropertySymbols){var od=Object.getOwnPropertySymbols(Ra);qa&&(od=od.filter(function(ld){return Object.getOwnPropertyDescriptor(Ra,ld).enumerable})),nd.push.apply(nd,od)}return nd}function Q$1(Ra){for(var qa=1;qa1}),fd=computed(function(){var vd=Ra.options,Ad=Ra.showAlpha,Nd=Ra.value;return Array.isArray(vd)?Ad?vd.map(function(Od){return q$1[Od]}).filter(function(Od){return!Od.includes(Nd)}):vd.map(function(Od){return U$1[Od]}).filter(function(Od){return!Od.includes(Nd)}):[]}),md=function(vd){var Ad,Nd,Od=vd.target;!((Ad=unref(od))!==null&&Ad!==void 0&&Ad.isEqualNode(Od))&&(!((Nd=unref(od))===null||Nd===void 0)&&Nd.contains(Od))||(ud.value=!1)};return onMounted(function(){document.addEventListener("mouseup",md,!1)}),onUnmounted(function(){document.removeEventListener("mouseup",md,!1)}),{targetRef:od,selectorRef:ld,selectorStyle:dd,isShowSelector:ud,isNeedSelect:pd,formatOptions:fd,onShow:function(){pd.value&&(ud.value=!0)},onFormatChange:function(vd){nd("change",W$1[vd])}}}}),re={class:"format"},ne={key:0,class:"arrow"},oe=["onClick"];V$1(".format[data-v-5f6e8f5e]{position:relative}.label[data-v-5f6e8f5e]{align-items:center;background:#e7e8e9;color:#999;display:flex;float:left;font-weight:500;height:30px;justify-content:center;position:relative;width:60px}[pick-colors-theme=dark] .label[data-v-5f6e8f5e]{background:#252930;color:#999}.arrow[data-v-5f6e8f5e]{height:6px;margin-bottom:4px;margin-left:5px;transform:rotate(135deg);width:6px}.arrow[data-v-5f6e8f5e],[pick-colors-theme=dark] .arrow[data-v-5f6e8f5e]{border-right:1px solid #999;border-top:1px solid #999}.selector[data-v-5f6e8f5e]{align-items:center;background:#f7f8f9;border-radius:5px;box-shadow:0 0 16px 0 rgba(0,0,0,.16);cursor:pointer;display:flex;flex-direction:column;font-weight:400;justify-content:center;padding:4px}[pick-colors-theme=dark] .selector[data-v-5f6e8f5e]{background:#252930;color:#999}.selector-item[data-v-5f6e8f5e]{align-items:center;display:flex;height:30px;justify-content:center;width:60px}.selector-item[data-v-5f6e8f5e]:hover{background:#e1f2fe}[pick-colors-theme=dark] .selector-item[data-v-5f6e8f5e]{color:#fff}[pick-colors-theme=dark] .selector-item[data-v-5f6e8f5e]:hover{background:#0087fa}.active-selector-item[data-v-5f6e8f5e]{background:#e1f2fe}[pick-colors-theme=dark] .active-selector-item[data-v-5f6e8f5e]{background:#0087fa}.v-enter-active[data-v-5f6e8f5e],.v-leave-active[data-v-5f6e8f5e]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-5f6e8f5e],.v-leave-to[data-v-5f6e8f5e]{opacity:0;transform:scaleY(0)}"),te.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",re,[createBaseVNode("div",{class:"label",ref:"targetRef",onClick:qa[0]||(qa[0]=function(){return Ra.onShow&&Ra.onShow.apply(Ra,arguments)})},[createBaseVNode("span",null,toDisplayString(Ra.value),1),Ra.isNeedSelect?(openBlock(),createElementBlock("div",ne)):createCommentVNode("v-if",!0)],512),createVNode(Transition$1,null,{default:withCtx(function(){return[Ra.isShowSelector?(openBlock(),createElementBlock("div",{key:0,class:"selector",ref:"selectorRef",style:normalizeStyle(Ra.selectorStyle)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ra.formatOptions,function(dd){return openBlock(),createElementBlock("div",{class:"selector-item",key:dd,onClick:function(pd){return Ra.onFormatChange(dd)}},toDisplayString(dd),9,oe)}),128))],4)):createCommentVNode("v-if",!0)]}),_:1})])},te.__scopeId="data-v-5f6e8f5e",te.__file="src/picker/input-value/FormatValue.vue";var ae$1=defineComponent({name:"Input",components:{FormatValue:te},props:{format:{type:String,default:"RGBA"},value:{type:String,default:""},width:{type:Number},showAlpha:{type:Boolean},formatOptions:{type:[Boolean,Array]}},emits:["change","focus","blur","enter","formatChange"],setup:function(Ra,qa){var nd=qa.emit;return{onInput:function(od){var ld;nd("change",(ld=od.target)===null||ld===void 0?void 0:ld.value)},valueStyle:computed(function(){return{minWidth:"".concat(Ra.width,"px"),maxWidth:"".concat(Ra.width,"px"),width:"".concat(Ra.width,"px")}}),onFocus:function(){nd("focus")},onBlur:function(){nd("blur")},onEnter:function(){nd("enter")},onFormatChange:function(od){nd("formatChange",od)}}}}),ie={class:"input"},le=[".value"];function ce$1(Ra,qa){var nd=Object.keys(Ra);if(Object.getOwnPropertySymbols){var od=Object.getOwnPropertySymbols(Ra);qa&&(od=od.filter(function(ld){return Object.getOwnPropertyDescriptor(Ra,ld).enumerable})),nd.push.apply(nd,od)}return nd}function ue(Ra){for(var qa=1;qa0?parseFloat(od.toFixed(2)):od,qa){case"hsl":var md=se(ud,dd/100,pd/100);return"hsla(".concat(ud.toFixed(0),", ").concat(Math.round(100*md[1]),"%, ").concat(Math.round(100*md[2]),"%, ").concat(fd,")");case"hsv":return"hsva(".concat(ud.toFixed(0),", ").concat(Math.round(dd),"%, ").concat(Math.round(pd),"%, ").concat(fd,")");case"rgb":var vd=ve(ud,dd,pd),Ad=vd.r,Nd=vd.g,Od=vd.b;return"rgba(".concat(Ad,", ").concat(Nd,", ").concat(Od,", ").concat(fd,")");default:return"".concat(pe(ve(ud,dd,pd))).concat(de(255*fd))}else switch(qa){case"hsl":var kd=se(ud,dd/100,pd/100);return"hsl(".concat(ud.toFixed(0),", ").concat(Math.round(100*kd[1]),"%, ").concat(Math.round(100*kd[2]),"%)");case"hsv":return"hsv(".concat(ud.toFixed(0),", ").concat(Math.round(dd),"%, ").concat(Math.round(pd),"%)");case"rgb":var Ld=ve(ud,dd,pd),Gd=Ld.r,jd=Ld.g,Fd=Ld.b;return"rgb(".concat(Gd,", ").concat(jd,", ").concat(Fd,")");default:return pe(ve(ud,dd,pd))}},ge=function(Ra){var qa=Ra.r,nd=Ra.g,od=Ra.b;qa=he(qa,255),nd=he(nd,255),od=he(od,255);var ld,ud=Math.max(qa,nd,od),dd=Math.min(qa,nd,od),pd=ud,fd=ud-dd,md=ud===0?0:fd/ud;if(ud===dd)ld=0;else{switch(ud){case qa:ld=(nd-od)/fd+(nd2&&arguments[2]!==void 0)||arguments[2])switch(qa){case"rgb":var nd=we(Ra),od=nd.r,ld=nd.g,ud=nd.b,dd=nd.a;return ue(ue({},ge({r:od,g:ld,b:ud})),{},{a:+dd});case"hsv":var pd=ke(Ra);return{h:pd.h,s:pd.s,v:pd.v,a:pd.a};case"hsl":var fd=Se(Ra),md=fd.h,vd=fd.s,Ad=fd.l,Nd=fd.a;return ue(ue({},ye({h:md,s:vd,l:Ad})),{},{a:+Nd});default:var Od=be$1(Ra),kd=Od.r,Ld=Od.g,Gd=Od.b,jd=Od.a;return ue(ue({},ge({r:kd,g:Ld,b:Gd})),{},{a:jd/255})}else switch(qa){case"rgb":return ue(ue({},ge(we(Ra))),{},{a:1});case"hsv":var Fd=ke(Ra);return{h:Fd.h,s:Fd.s,v:Fd.v,a:1};case"hsl":return ue(ue({},ye(Se(Ra))),{},{a:1});default:return ue(ue({},ge(be$1(Ra))),{},{a:1})}},Oe=function(Ra){return Ra.match(/^#/)?"hex":Ra.match(/^rgb/)?"rgb":Ra.match(/^hsl/)?"hsl":Ra.match(/^hsv/)?"hsv":"hex"},Ae=function(Ra){var qa=Ra.h,nd=Ra.s,od=Ra.v,ld=Ra.a;return isNaN(qa)&&isNaN(nd)&&isNaN(od)?null:(isNaN(qa)&&(qa=0),isNaN(nd)&&(nd=0),isNaN(od)&&(od=0),isNaN(ld)&&(ld=1),{h:qa,s:nd,v:od,a:ld})},Ne=defineComponent({name:"ColorItem",props:{size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},value:{type:String,default:""},border:{type:Boolean,default:!0},borderRadius:{type:Number,default:5},selected:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},emits:["select"],setup:function(Ra){var qa=ref$1(),nd=inject("theme",{theme:"light"}).theme,od=computed(function(){return parseFloat((Ra.width||Ra.size)+"")}),ld=computed(function(){return parseFloat((Ra.height||Ra.size)+"")}),ud=computed(function(){return{width:"".concat(unref(od),"px"),height:"".concat(unref(ld),"px"),border:Ra.border?"1px solid ".concat(unref(nd)==="dark"?"#434345":"#d9d9d9"):"",borderRadius:"".concat(Ra.borderRadius,"px"),boxShadow:Ra.selected?"0 0 3px 2px ".concat(unref(nd)==="dark"?"#2681ff":"#1890ff"):""}}),dd=function(){var pd=qa.value.getContext("2d");qa.value.width=unref(od),qa.value.height=unref(ld);var fd=function(md){var vd=document.createElement("canvas"),Ad=vd.getContext("2d"),Nd=2*md;return vd.width=Nd,vd.height=Nd,Ad.fillStyle="#ffffff",Ad.fillRect(0,0,Nd,Nd),Ad.fillStyle="#ccd5db",Ad.fillRect(0,0,md,md),Ad.fillRect(md,md,md,md),vd}(5);pd.fillStyle=pd.createPattern(fd,"repeat"),pd.fillRect(0,0,unref(od),unref(ld)),pd.fillStyle=Ra.value,pd.fillRect(0,0,unref(od),unref(ld))};return watch(function(){return Ra.value},function(){dd()}),onMounted(function(){dd()}),{canvas:qa,colorItemStyle:ud}}}),Ie=["draggable"];V$1(".color-item[data-v-02da71fd]{display:inline-block;vertical-align:top}"),Ne.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("canvas",{class:"color-item",style:normalizeStyle(Ra.colorItemStyle),ref:"canvas",draggable:Ra.draggable},null,12,Ie)},Ne.__scopeId="data-v-02da71fd",Ne.__file="src/color-item/ColorItem.vue";var Fe=defineComponent({name:"Colors",components:{ColorItem:Ne},props:{colors:{type:Array,default:function(){return[]}},selectedIndex:{type:Number,default:-1}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit;return{onSelectColor:function(od,ld){nd("change",od,ld)},useColors:computed(function(){return Ra.colors.map(function(od){return xe(od,"hex",!0)})})}}}),_e$1={class:"colors"};function Ee(Ra,qa){var nd=Object.keys(Ra);if(Object.getOwnPropertySymbols){var od=Object.getOwnPropertySymbols(Ra);qa&&(od=od.filter(function(ld){return Object.getOwnPropertyDescriptor(Ra,ld).enumerable})),nd.push.apply(nd,od)}return nd}function Pe(Ra){for(var qa=1;qa0?(openBlock(),createBlock(vd,{key:0,class:"colors",colors:Ra.colors,"selected-index":Ra.selectColorIndex,onChange:Ra.onSelectColor},null,8,["colors","selected-index","onChange"])):createCommentVNode("v-if",!0)])],4)},je.__scopeId="data-v-6ceadec6",je.__file="src/picker/Picker.vue";var Re=defineComponent({name:"AddColorItem",props:{size:{type:Number,default:20},selected:{type:Boolean,default:!1}},setup:function(Ra){var qa=inject("theme",{theme:"light"}).theme;return{addColorItemStyle:computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),lineHeight:"".concat(Ra.size,"px"),boxShadow:Ra.selected?"0 0 3px 2px ".concat(unref(qa)==="dark"?"#2681ff":"#1890ff"):""}})}}});V$1(".add-color-item[data-v-ceb1719c]{background:#fff;border:1px solid #d9d9d9;border-radius:5px;vertical-align:top}.container[data-v-ceb1719c]{pointer-events:none;transform:scale(.9);transform-origin:center}[pick-colors-theme=dark] .add-color-item[data-v-ceb1719c]{background:#141414;border:1px solid #434343}path[data-v-ceb1719c]{fill:#000}[pick-colors-theme=dark] path[data-v-ceb1719c]{fill:#fff}"),Re.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("svg",{class:"add-color-item",style:normalizeStyle(Ra.addColorItemStyle),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qa[0]||(qa[0]=[createBaseVNode("g",{class:"container"},[createBaseVNode("path",{d:"M544 464V160h-80v304H160v80h304v304h80V544h304v-80z"})],-1)]),4)},Re.__scopeId="data-v-ceb1719c",Re.__file="src/add-color-item/AddColorItem.vue";var ze=defineComponent({name:"ColorPicker",components:{ColorItem:Ne,Picker:je,AddColorItem:Re},props:{value:{type:[String,Array]},theme:{type:String,default:"light"},size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},format:{type:String},showPicker:{type:Boolean,default:void 0},showAlpha:{type:Boolean,default:!1},addColor:{type:Boolean,default:!1},deleteColor:{type:Boolean,default:!0},max:{type:Number,default:13},popupContainer:{type:[String,Object,Boolean],default:"body"},zIndex:{type:Number,default:1e3},colors:{type:Array,default:function(){return["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#ff4500","#ff7d4d","#00babd","#1f93ff","#fa64c3"]}},position:{type:String},placement:{type:String},formatOptions:{type:[Boolean,Array],default:!1}},emits:["change","update:value","update:showPicker","overflowMax","closePicker","formatChange"],setup:function(Ra,qa){var nd=qa.emit,od=ref$1([]),ld=computed(function(){return unref(od).map(function(Xd){return xe(Xd,"hex",Ra.showAlpha)})}),ud=ref$1("hex");watch(function(){return Ra.format},function(){ud.value=Ra.format},{immediate:!0}),watch(function(){return Ra.value},function(){var Xd=Ra.value||"",pf=Array.isArray(Xd)?Xd:[Xd];od.value=pf.map(function(mf){return xe(mf,unref(ud),Ra.showAlpha)})},{immediate:!0});var dd=ref$1(void 0),pd=computed(function(){return unref(od)[unref(dd)]}),fd=ref$1(!1);watch(function(){return Ra.showPicker},function(){fd.value=Ra.showPicker},{immediate:!0});var md,vd,Ad=ref$1(null),Nd=ref$1(null),Od=ee(Ad,Nd,{defaultStyle:{zIndex:Ra.zIndex},strategy:Ra.position,placement:Ra.placement}).style,kd=function(){unref(Ad)==null&&(Ad.value=unref(_f)[0]),unref(dd)==null&&(dd.value=0),Ra.showPicker===void 0?fd.value=!0:nd("update:showPicker",!0)},Ld=function(){dd.value=void 0,Ra.showPicker===void 0?fd.value=!1:nd("update:showPicker",!1),nd("closePicker",toRaw(Array.isArray(Ra.value)||Ra.addColor?unref(od):unref(od)[0]))},Gd=ref$1(),jd=function(){var Xd=L$1(M$1.mark(function pf(mf){var Sf,Tf,Af,Ef;return M$1.wrap(function(Nf){for(;;)switch(Nf.prev=Nf.next){case 0:if(Tf=mf.target,(Af=(Sf=Tf.dataset)===null||Sf===void 0?void 0:Sf.index)!=null&&Af!==""){Nf.next=4;break}return Nf.abrupt("return");case 4:if(Ef=+Af,unref(dd)!==Ef){Nf.next=7;break}return Nf.abrupt("return");case 7:unref(dd)!=null&&unref(dd)!==Ef?(Ld(),md&&clearTimeout(md),md=setTimeout(function(){kd(),clearTimeout(md)},100)):kd(),dd.value=Ef,Ad.value=Tf;case 10:case"end":return Nf.stop()}},pf)}));return function(pf){return Xd.apply(this,arguments)}}(),Fd=function(){var Xd=L$1(M$1.mark(function pf(mf){var Sf,Tf,Af,Ef,Nf;return M$1.wrap(function(If){for(;;)switch(If.prev=If.next){case 0:if(Ef=mf.target,!(!((Sf=unref(Gd))!==null&&Sf!==void 0&&Sf.isEqualNode(Ef))&&(!((Tf=unref(Gd))===null||Tf===void 0)&&Tf.contains(Ef)))){If.next=4;break}return If.abrupt("return");case 4:if(Nf=(Af=unref(Nd))===null||Af===void 0?void 0:Af.$el,!(Nf!=null&&Nf.contains(Ef))){If.next=8;break}return If.abrupt("return");case 8:vd&&clearTimeout(vd),vd=setTimeout(function(){unref(fd)&&Ld()},0);case 10:case"end":return If.stop()}},pf)}));return function(pf){return Xd.apply(this,arguments)}}();watch(fd,function(){unref(fd)&&(kd(),clearTimeout(vd))});var Ud,qd=ref$1(Ra.max>unref(od).length),zd=computed(function(){return typeof Ra.popupContainer=="string"||P$1(Ra.popupContainer)==="object"&&Ra.popupContainer!=null?Ra.popupContainer:"body"}),Wd=computed(function(){return typeof Ra.popupContainer=="boolean"&&Ra.popupContainer===!1}),Jd=computed(function(){return Ra.theme});watch(function(){return[Ra.theme,unref(Nd)]},function(){nextTick$1(function(){var Xd,pf;(Xd=unref(Gd))===null||Xd===void 0||Xd.setAttribute("pick-colors-theme",unref(Jd)),(pf=unref(Nd))===null||pf===void 0||(pf=pf.$el)===null||pf===void 0||pf.setAttribute("pick-colors-theme",unref(Jd))})},{immediate:!0}),provide("theme",{theme:Jd});var _f=ref$1([]);return onMounted(function(){document.addEventListener("mouseup",Fd,!1),Ra.showPicker&&kd()}),onUnmounted(function(){document.removeEventListener("mouseup",Fd,!1),md&&(clearTimeout(md),md=null),vd&&(clearTimeout(vd),vd=null)}),{valueList:od,colorItemSelected:function(Xd){return(Ra.addColor?unref(od).length>0:unref(od).length>1)&&unref(dd)===Xd},selectedColor:pd,selectedIndex:dd,isShowPicker:fd,addColorItemShow:qd,onPickerChange:function(Xd){var pf=unref(dd),mf=unref(od).slice(),Sf=unref(od).length;if(pf!=null){pf>=0?mf[pf]=Xd:(dd.value=Sf,mf.push(Xd));var Tf="";Tf=Array.isArray(Ra.value)||Ra.addColor?mf:Xd,od.value=Array.isArray(Tf)?Tf:[Tf],nd("update:value",Tf),nd("change",Tf,Xd,pf),Ra.addColor&&Sf>=Ra.max&&(qd.value=!1,nd("overflowMax"))}},colorPicker:Gd,onColorClick:jd,pickerRef:Nd,onColorItemDragStart:function(Xd){Xd.dataTransfer.effectAllowed="move";var pf=Xd.target;Ud=+pf.dataset.index},onColorItemDragOver:function(Xd){},onColorItemDrop:function(Xd){var pf=+Xd.target.dataset.index,mf=E$1(unref(od)),Sf=mf[Ud];mf.splice(Ud,1);var Tf=mf.slice(0,pf),Af=mf.splice(pf),Ef=Tf.concat([Sf]).concat(Af);nd("update:value",Ef),nd("change",Ef,Ef[Ud],Ud)},colorItemsRef:_f,pickerStyle:Od,values:ld,teleportDisabled:Wd,toPopupContainer:zd,formatValue:ud,onFormatChange:function(Xd){ud.value=Xd,nd("formatChange",Xd)}}}});V$1(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43ade8]{margin:5px}.add-color-item[data-v-3c43ade8]{display:inline-block;margin:5px}.picker[data-v-3c43ade8]{overflow:hidden}.v-enter-active[data-v-3c43ade8],.v-leave-active[data-v-3c43ade8]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-3c43ade8],.v-leave-to[data-v-3c43ade8]{opacity:0;transform:scaleY(0)}"),ze.render=function(Ra,qa,nd,od,ld,ud){var dd=resolveComponent("color-item"),pd=resolveComponent("add-color-item"),fd=resolveComponent("picker");return openBlock(),createElementBlock("div",{class:"color-picker",ref:"colorPicker",onDragstart:qa[0]||(qa[0]=withModifiers(function(){return Ra.onColorItemDragStart&&Ra.onColorItemDragStart.apply(Ra,arguments)},["stop"])),onDragover:qa[1]||(qa[1]=withModifiers(function(){return Ra.onColorItemDragOver&&Ra.onColorItemDragOver.apply(Ra,arguments)},["prevent","stop"])),onDrop:qa[2]||(qa[2]=withModifiers(function(){return Ra.onColorItemDrop&&Ra.onColorItemDrop.apply(Ra,arguments)},["prevent","stop"])),onClick:qa[3]||(qa[3]=withModifiers(function(){return Ra.onColorClick&&Ra.onColorClick.apply(Ra,arguments)},["stop"]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ra.values,function(md,vd){return openBlock(),createBlock(dd,{class:"color-item",key:vd,ref_for:!0,ref:function(Ad){return Ra.colorItemsRef[vd]=Ad},size:Ra.size,width:Ra.width,height:Ra.height,value:md,selected:Ra.colorItemSelected(vd),"data-index":vd,draggable:Ra.valueList.length>1,format:Ra.formatValue},null,8,["size","width","height","value","selected","data-index","draggable","format"])}),128)),Ra.addColor&&Ra.addColorItemShow?(openBlock(),createBlock(pd,{key:0,class:"add-color-item",ref:"addColorItem",selected:Ra.colorItemSelected(-1),"data-index":-1},null,8,["selected"])):createCommentVNode("v-if",!0),(openBlock(),createBlock(Teleport,{to:Ra.toPopupContainer,disabled:Ra.teleportDisabled},[createVNode(Transition$1,null,{default:withCtx(function(){return[Ra.isShowPicker?(openBlock(),createBlock(fd,{key:0,class:"picker",style:normalizeStyle(Ra.pickerStyle),ref:"pickerRef",value:Ra.selectedColor,format:Ra.formatValue,"show-alpha":Ra.showAlpha,colors:Ra.colors,formatOptions:Ra.formatOptions,onChange:Ra.onPickerChange,onFormatChange:Ra.onFormatChange},null,8,["style","value","format","show-alpha","colors","formatOptions","onChange","onFormatChange"])):createCommentVNode("v-if",!0)]}),_:1})],8,["to","disabled"]))],544)},ze.__scopeId="data-v-3c43ade8",ze.__file="src/ColorPicker.vue";const _hoisted_1$8={class:"space-y-2"},_hoisted_2$5={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_3$4={class:"space-y-2"},_hoisted_4$4={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_5$3={class:"space-y-2"},_hoisted_6$3={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_7$1={class:"space-y-2"},_hoisted_8$1={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_9={class:"space-y-2"},_hoisted_10={class:"space-y-2"},_hoisted_11={class:"space-y-2"},_hoisted_12={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_13={class:"space-y-2"},_hoisted_14={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_15={class:"space-y-2"},_hoisted_16={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_17={class:"space-y-2"},_hoisted_18={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_19={class:"space-y-2"},_hoisted_20={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_21={class:"space-y-2"},_hoisted_22={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_23={class:"space-y-2"},_hoisted_24={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_25={class:"space-y-2"},_sfc_main$R=defineComponent({__name:"RightSlider",setup(Ra){const qa=useStore(),nd=useDisplayStore(),{isDark:od,primaryColor:ld}=storeToRefs(qa);function ud(){nd.toggleShowCssEditor(),setTimeout(()=>{qa.cssEditor.refresh()},50)}const dd=ref$1(!1),pd=ref$1("");watch(dd,()=>{dd.value&&(pd.value="")});const fd=useTemplateRef("pickColorsContainer"),md=ref$1("rgb"),vd=ref$1(["rgb","hex","hsl","hsv"]);return(Ad,Nd)=>{const Od=_sfc_main$1o,kd=_sfc_main$W,Ld=_sfc_main$X,Gd=_sfc_main$_,jd=_sfc_main$V,Fd=_sfc_main$$;return openBlock(),createElementBlock("div",{class:normalizeClass(["overflow-hidden bg-gray/20 transition-width duration-300 dark:bg-gray/40",{"w-0":!unref(qa).isOpenRightSlider,"w-100":unref(qa).isOpenRightSlider}])},[createBaseVNode("div",{class:normalizeClass(["space-y-4 h-full overflow-auto p-4 transition-transform",{"translate-x-0":unref(qa).isOpenRightSlider,"translate-x-full":!unref(qa).isOpenRightSlider}])},[createBaseVNode("div",_hoisted_1$8,[Nd[14]||(Nd[14]=createBaseVNode("h2",null,"主题",-1)),createBaseVNode("div",_hoisted_2$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(themeOptions),({label:Ud,value:qd})=>(openBlock(),createBlock(Od,{key:qd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).theme===qd}]),variant:"outline",onClick:zd=>unref(qa).themeChanged(qd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Ud),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_3$4,[Nd[15]||(Nd[15]=createBaseVNode("h2",null,"字体",-1)),createBaseVNode("div",_hoisted_4$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fontFamilyOptions),({label:Ud,value:qd})=>(openBlock(),createBlock(Od,{key:qd,variant:"outline",class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).fontFamily===qd}]),onClick:zd=>unref(qa).fontChanged(qd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Ud),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_5$3,[Nd[16]||(Nd[16]=createBaseVNode("h2",null,"字号",-1)),createBaseVNode("div",_hoisted_6$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fontSizeOptions),({value:Ud,desc:qd})=>(openBlock(),createBlock(Od,{key:Ud,variant:"outline",class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).fontSize===Ud}]),onClick:zd=>unref(qa).sizeChanged(Ud)},{default:withCtx(()=>[createTextVNode(toDisplayString(qd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_7$1,[Nd[17]||(Nd[17]=createBaseVNode("h2",null,"主题色",-1)),createBaseVNode("div",_hoisted_8$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(colorOptions),({label:Ud,value:qd})=>(openBlock(),createBlock(Od,{key:qd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).primaryColor===qd}]),variant:"outline",onClick:zd=>unref(qa).colorChanged(qd)},{default:withCtx(()=>[createBaseVNode("span",{class:"mr-2 inline-block h-4 w-4 rounded-full",style:normalizeStyle({background:qd})},null,4),createTextVNode(" "+toDisplayString(Ud),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_9,[Nd[18]||(Nd[18]=createBaseVNode("h2",null,"自定义主题色",-1)),createBaseVNode("div",{ref_key:"pickColorsContainer",ref:fd},[unref(fd)?(openBlock(),createBlock(unref(ze),{key:0,value:unref(ld),"onUpdate:value":Nd[0]||(Nd[0]=Ud=>isRef(ld)?ld.value=Ud:null),"show-alpha":"",format:unref(md),"format-options":unref(vd),theme:unref(qa).isDark?"dark":"light","popup-container":unref(fd),onChange:unref(qa).colorChanged},null,8,["value","format","format-options","theme","popup-container","onChange"])):createCommentVNode("",!0)],512)]),createBaseVNode("div",_hoisted_10,[Nd[19]||(Nd[19]=createBaseVNode("h2",null,"代码块主题",-1)),createBaseVNode("div",null,[createVNode(Fd,{modelValue:unref(qa).codeBlockTheme,"onUpdate:modelValue":[Nd[1]||(Nd[1]=Ud=>unref(qa).codeBlockTheme=Ud),unref(qa).codeBlockThemeChanged]},{default:withCtx(()=>[createVNode(Ld,null,{default:withCtx(()=>[createVNode(kd,{placeholder:"Select a fruit"})]),_:1}),createVNode(jd,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(codeBlockThemeOptions),({label:Ud,value:qd})=>(openBlock(),createBlock(Gd,{key:Ud,value:qd},{default:withCtx(()=>[createTextVNode(toDisplayString(Ud),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])])]),createBaseVNode("div",_hoisted_11,[Nd[20]||(Nd[20]=createBaseVNode("h2",null,"图注格式",-1)),createBaseVNode("div",_hoisted_12,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(legendOptions),({label:Ud,value:qd})=>(openBlock(),createBlock(Od,{key:qd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).legend===qd}]),variant:"outline",onClick:zd=>unref(qa).legendChanged(qd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Ud),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_13,[Nd[23]||(Nd[23]=createBaseVNode("h2",null,"Mac 代码块",-1)),createBaseVNode("div",_hoisted_14,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).isMacCodeBlock}]),variant:"outline",onClick:Nd[2]||(Nd[2]=Ud=>!unref(qa).isMacCodeBlock&&unref(qa).macCodeBlockChanged())},{default:withCtx(()=>Nd[21]||(Nd[21]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(qa).isMacCodeBlock}]),variant:"outline",onClick:Nd[3]||(Nd[3]=Ud=>unref(qa).isMacCodeBlock&&unref(qa).macCodeBlockChanged())},{default:withCtx(()=>Nd[22]||(Nd[22]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_15,[Nd[26]||(Nd[26]=createBaseVNode("h2",null,"微信外链转底部引用",-1)),createBaseVNode("div",_hoisted_16,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).isCiteStatus}]),variant:"outline",onClick:Nd[4]||(Nd[4]=Ud=>!unref(qa).isCiteStatus&&unref(qa).citeStatusChanged())},{default:withCtx(()=>Nd[24]||(Nd[24]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(qa).isCiteStatus}]),variant:"outline",onClick:Nd[5]||(Nd[5]=Ud=>unref(qa).isCiteStatus&&unref(qa).citeStatusChanged())},{default:withCtx(()=>Nd[25]||(Nd[25]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_17,[Nd[29]||(Nd[29]=createBaseVNode("h2",null,"段落首行缩进",-1)),createBaseVNode("div",_hoisted_18,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).isUseIndent}]),variant:"outline",onClick:Nd[6]||(Nd[6]=Ud=>!unref(qa).isUseIndent&&unref(qa).useIndentChanged())},{default:withCtx(()=>Nd[27]||(Nd[27]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(qa).isUseIndent}]),variant:"outline",onClick:Nd[7]||(Nd[7]=Ud=>unref(qa).isUseIndent&&unref(qa).useIndentChanged())},{default:withCtx(()=>Nd[28]||(Nd[28]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_19,[Nd[32]||(Nd[32]=createBaseVNode("h2",null,"自定义 CSS 面板",-1)),createBaseVNode("div",_hoisted_20,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(nd).isShowCssEditor}]),variant:"outline",onClick:Nd[8]||(Nd[8]=Ud=>!unref(nd).isShowCssEditor&&ud())},{default:withCtx(()=>Nd[30]||(Nd[30]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(nd).isShowCssEditor}]),variant:"outline",onClick:Nd[9]||(Nd[9]=Ud=>unref(nd).isShowCssEditor&&ud())},{default:withCtx(()=>Nd[31]||(Nd[31]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_21,[Nd[35]||(Nd[35]=createBaseVNode("h2",null,"编辑区位置",-1)),createBaseVNode("div",_hoisted_22,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(qa).isEditOnLeft}]),variant:"outline",onClick:Nd[10]||(Nd[10]=Ud=>!unref(qa).isEditOnLeft&&unref(qa).toggleEditOnLeft())},{default:withCtx(()=>Nd[33]||(Nd[33]=[createTextVNode(" 左侧 ")])),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(qa).isEditOnLeft}]),variant:"outline",onClick:Nd[11]||(Nd[11]=Ud=>unref(qa).isEditOnLeft&&unref(qa).toggleEditOnLeft())},{default:withCtx(()=>Nd[34]||(Nd[34]=[createTextVNode(" 右侧 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_23,[Nd[36]||(Nd[36]=createBaseVNode("h2",null,"模式",-1)),createBaseVNode("div",_hoisted_24,[createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(od)}]),variant:"outline",onClick:Nd[12]||(Nd[12]=Ud=>unref(qa).toggleDark(!1))},{default:withCtx(()=>[createVNode(unref(Sun),{class:"h-4 w-4"})]),_:1},8,["class"]),createVNode(Od,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(od)}]),variant:"outline",onClick:Nd[13]||(Nd[13]=Ud=>unref(qa).toggleDark(!0))},{default:withCtx(()=>[createVNode(unref(Moon),{class:"h-4 w-4"})]),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_25,[Nd[38]||(Nd[38]=createBaseVNode("h2",null,"样式配置",-1)),createVNode(Od,{onClick:unref(qa).resetStyleConfirm},{default:withCtx(()=>Nd[37]||(Nd[37]=[createTextVNode(" 重置 ")])),_:1},8,["onClick"])])],2)],2)}}}),_sfc_main$Q=defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Su$2),mergeProps(unref(od),{class:unref(cn$5)("text-sm text-muted-foreground",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$7={class:"cssEditor-wrapper h-full flex flex-col border-l-1"},_sfc_main$P=defineComponent({__name:"CssEditor",setup(Ra){const qa=useStore(),nd=useDisplayStore(),od=ref$1(!1),ld=ref$1(""),ud=ref$1(["",qa.cssContentConfig.active]);function dd(jd){ld.value=jd,od.value=!0}function pd(){if(!ld.value.trim()){Ke$1.error("新建失败,方案名不可为空");return}if(!qa.validatorTabName(ld.value)){Ke$1.error("不能与现有方案重名");return}qa.renameTab(ld.value),od.value=!1,Ke$1.success("修改成功~")}const fd=ref$1(!1),md=ref$1("");function vd(){if(!md.value.trim()){Ke$1.error("新建失败,方案名不可为空");return}if(!qa.validatorTabName(md.value)){Ke$1.error("不能与现有方案重名");return}qa.addCssContentTab(md.value),fd.value=!1,qa.cssContentConfig.active=md.value,ud.value=[ud.value[1],md.value],Ke$1.success("新建成功~")}const Ad=ref$1(!1),Nd=ref$1("");function Od(jd){Nd.value=jd,Ad.value=!0}function kd(){const jd=qa.cssContentConfig.tabs;if(jd.length===1){Ke$1.warning("至少保留一个方案");return}let Fd=qa.cssContentConfig.active;Fd===Nd.value&&jd.forEach((Ud,qd)=>{if(Ud.name===Nd.value){const zd=jd[qd+1]||jd[qd-1];zd&&(Fd=zd.name)}}),qa.tabChanged(Fd),qa.cssContentConfig.tabs=jd.filter(Ud=>Ud.name!==Nd.value),Ke$1.success("删除成功~")}function Ld(){md.value=`方案${qa.cssContentConfig.tabs.length+1}`,fd.value=!0}function Gd(jd){if(jd==="add"){qa.cssContentConfig.active=ud.value[1],Ld();return}ud.value=[ud.value[1],jd]}return(jd,Fd)=>{const Ud=_sfc_main$T,qd=_sfc_main$U,zd=_sfc_main$14,Wd=_sfc_main$16,Jd=_sfc_main$Q,_f=_sfc_main$17,Xd=_sfc_main$1e,pf=_sfc_main$1o,mf=_sfc_main$1f,Sf=_sfc_main$1g,Tf=_sfc_main$1h,Af=_sfc_main$1j,Ef=_sfc_main$1k,Nf=_sfc_main$1l,If=_sfc_main$1m,Gf=_sfc_main$1n,Qf=_sfc_main$1p,Xf=_sfc_main$1q,ph=_sfc_main$1r;return openBlock(),createBlock(Transition$1,{"enter-active-class":"bounceInRight"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_1$7,[createVNode(zd,{modelValue:unref(qa).cssContentConfig.active,"onUpdate:modelValue":[Fd[0]||(Fd[0]=qf=>unref(qa).cssContentConfig.active=qf),Gd]},{default:withCtx(()=>[createVNode(qd,{class:"w-full overflow-x-auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(qa).cssContentConfig.tabs,qf=>(openBlock(),createBlock(Ud,{key:qf.name,value:qf.name,class:"flex-1"},{default:withCtx(()=>[createTextVNode(toDisplayString(qf.title)+" ",1),withDirectives(createVNode(unref(PenLine),{class:"inline size-4 rounded-full p-0.5 transition-color hover:bg-gray-200 dark:hover:bg-gray-600",onClick:Lf=>dd(qf.name)},null,8,["onClick"]),[[vShow,unref(qa).cssContentConfig.active===qf.name]]),withDirectives(createVNode(unref(X$7),{class:"inline size-4 rounded-full p-0.5 transition-color hover:bg-gray-200 dark:hover:bg-gray-600",onClick:withModifiers(Lf=>Od(qf.name),["self"])},null,8,["onClick"]),[[vShow,unref(qa).cssContentConfig.active===qf.name]])]),_:2},1032,["value"]))),128)),createVNode(Ud,{value:"add"},{default:withCtx(()=>[createVNode(unref(Plus),{class:"h-5 w-5"})]),_:1})]),_:1})]),_:1},8,["modelValue"]),Fd[21]||(Fd[21]=createBaseVNode("textarea",{id:"cssEditor",type:"textarea",placeholder:"Your custom css here."},null,-1)),createVNode(Tf,{open:unref(fd),"onUpdate:open":Fd[4]||(Fd[4]=qf=>isRef(fd)?fd.value=qf:null)},{default:withCtx(()=>[createVNode(Sf,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(_f,null,{default:withCtx(()=>[createVNode(Wd,null,{default:withCtx(()=>Fd[9]||(Fd[9]=[createTextVNode("新建自定义 CSS")])),_:1}),createVNode(Jd,null,{default:withCtx(()=>Fd[10]||(Fd[10]=[createTextVNode(" 请输入方案名称 ")])),_:1})]),_:1}),createVNode(Xd,{modelValue:unref(md),"onUpdate:modelValue":Fd[1]||(Fd[1]=qf=>isRef(md)?md.value=qf:null)},null,8,["modelValue"]),createVNode(mf,null,{default:withCtx(()=>[createVNode(pf,{variant:"outline",onClick:Fd[2]||(Fd[2]=qf=>fd.value=!1)},{default:withCtx(()=>Fd[11]||(Fd[11]=[createTextVNode(" 取消 ")])),_:1}),createVNode(pf,{onClick:Fd[3]||(Fd[3]=qf=>vd())},{default:withCtx(()=>Fd[12]||(Fd[12]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Tf,{open:unref(od),"onUpdate:open":Fd[7]||(Fd[7]=qf=>isRef(od)?od.value=qf:null)},{default:withCtx(()=>[createVNode(Sf,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(_f,null,{default:withCtx(()=>[createVNode(Wd,null,{default:withCtx(()=>Fd[13]||(Fd[13]=[createTextVNode("编辑方案名称")])),_:1}),createVNode(Jd,null,{default:withCtx(()=>Fd[14]||(Fd[14]=[createTextVNode(" 请输入新的方案名称 ")])),_:1})]),_:1}),createVNode(Xd,{modelValue:unref(ld),"onUpdate:modelValue":Fd[5]||(Fd[5]=qf=>isRef(ld)?ld.value=qf:null)},null,8,["modelValue"]),createVNode(mf,null,{default:withCtx(()=>[createVNode(pf,{variant:"outline",onClick:Fd[6]||(Fd[6]=qf=>od.value=!1)},{default:withCtx(()=>Fd[15]||(Fd[15]=[createTextVNode(" 取消 ")])),_:1}),createVNode(pf,{onClick:pd},{default:withCtx(()=>Fd[16]||(Fd[16]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(ph,{open:unref(Ad),"onUpdate:open":Fd[8]||(Fd[8]=qf=>isRef(Ad)?Ad.value=qf:null)},{default:withCtx(()=>[createVNode(Xf,null,{default:withCtx(()=>[createVNode(Nf,null,{default:withCtx(()=>[createVNode(Af,null,{default:withCtx(()=>Fd[17]||(Fd[17]=[createTextVNode("提示")])),_:1}),createVNode(Ef,null,{default:withCtx(()=>Fd[18]||(Fd[18]=[createTextVNode(" 此操作将删除该自定义方案,是否继续? ")])),_:1})]),_:1}),createVNode(Qf,null,{default:withCtx(()=>[createVNode(If,null,{default:withCtx(()=>Fd[19]||(Fd[19]=[createTextVNode("取消")])),_:1}),createVNode(Gf,{onClick:kd},{default:withCtx(()=>Fd[20]||(Fd[20]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],512),[[vShow,unref(nd).isShowCssEditor]])]),_:1})}}}),__unplugin_components_9=_export_sfc(_sfc_main$P,[["__scopeId","data-v-b0f79ff7"]]),_sfc_main$O=defineComponent({__name:"BackTop",props:{left:{},top:{},right:{},bottom:{},visibilityHeight:{},target:{},onClick:{type:Function}},setup(Ra){const qa=Ra,nd=ref$1(qa.visibilityHeight??400),od=ref$1(!1),ld=ref$1(null);function ud(pd){var fd,md;console.log("scrollToTop"),(fd=ld.value)==null||fd.scrollTo({top:0,left:0,behavior:"smooth"}),(md=qa.onClick)==null||md.call(qa,pd)}const dd=throttle$1(pd=>{pd instanceof HTMLElement?od.value=pd.scrollTop>nd.value:od.value=window.scrollY>nd.value},200,{edges:["leading","trailing"]});return onMounted(()=>{qa.target?ld.value=document.getElementById(qa.target):ld.value=window,ld.value.addEventListener("scroll",()=>{dd(ld.value)})}),onUnmounted(()=>{ld.value.removeEventListener("scroll",()=>{dd(ld.value)})}),(pd,fd)=>{const md=_sfc_main$1o;return unref(od)?(openBlock(),createBlock(md,{key:0,variant:"outline",size:"icon",class:"fixed z-50 rounded-full",style:normalizeStyle({left:`${pd.left}px`,top:`${pd.top}px`,right:`${pd.right}px`,bottom:`${pd.bottom}px`}),onClick:ud},{default:withCtx(()=>[createVNode(unref(ArrowUpFromLine))]),_:1},8,["style"])):createCommentVNode("",!0)}}}),_sfc_main$N=defineComponent({__name:"ContextMenu",props:{dir:{},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(em$1),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$M=defineComponent({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{type:Boolean},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(am$1),null,{default:withCtx(()=>[createVNode(unref(nm$1),mergeProps(unref(ud),{class:unref(cn$5)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$L=defineComponent({__name:"ContextMenuShortcut",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$5)("ml-auto text-xs tracking-widest text-muted-foreground",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$K=defineComponent({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(rm$1),mergeProps(nd.value,{class:unref(cn$5)("-mx-1 my-1 h-px bg-border",qa.class)}),null,16,["class"]))}}),_sfc_main$J=defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(lm),mergeProps(unref(ud),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",dd.inset&&"pl-8",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$I=defineComponent({__name:"ContextMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const nd=It$4(Ra);return(od,ld)=>(openBlock(),createBlock(unref(tm$1),normalizeProps(guardReactiveProps(unref(nd))),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16))}}),_sfc_main$H=defineComponent({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(ah$1),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$G=defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(oh),null,{default:withCtx(()=>[createVNode(unref(lh),mergeProps(unref(ud),{class:unref(cn$5)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$F=defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(rh),mergeProps(unref(od),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ld.inset&&"pl-8",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$E=defineComponent({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const nd=It$4(Ra);return(od,ld)=>(openBlock(),createBlock(unref(nh),mergeProps({class:"outline-none"},unref(nd)),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16))}}),_sfc_main$D=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Ji$3),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_hoisted_1$6=["onClick"],_hoisted_2$4={class:"line-clamp-1"},_sfc_main$C=defineComponent({__name:"PostSlider",setup(Ra){const qa=useStore(),nd=ref$1(!1),od=ref$1("");watch(nd,()=>{nd.value&&(od.value="")});function ld(){if(od.value===""){Ke$1.error("内容标题不可为空");return}qa.addPost(od.value),nd.value=!1,Ke$1.success("内容新增成功")}const ud=ref$1(-1),dd=ref$1(!1),pd=ref$1("");function fd(Od){ud.value=Od,pd.value=qa.posts[Od].title,dd.value=!0}function md(){if(pd.value===""){Ke$1.error("内容标题不可为空");return}qa.renamePost(ud.value,pd.value),dd.value=!1,Ke$1.success("内容重命名成功")}const vd=ref$1(!1);function Ad(Od){ud.value=Od,vd.value=!0}function Nd(){qa.delPost(ud.value),vd.value=!1,Ke$1.success("内容删除成功")}return(Od,kd)=>{const Ld=_sfc_main$1o,Gd=_sfc_main$D,jd=_sfc_main$16,Fd=_sfc_main$Q,Ud=_sfc_main$17,qd=_sfc_main$1e,zd=_sfc_main$1f,Wd=_sfc_main$1g,Jd=_sfc_main$1h,_f=_sfc_main$E,Xd=_sfc_main$F,pf=_sfc_main$G,mf=_sfc_main$H,Sf=_sfc_main$1j,Tf=_sfc_main$1k,Af=_sfc_main$1l,Ef=_sfc_main$1m,Nf=_sfc_main$1n,If=_sfc_main$1p,Gf=_sfc_main$1q,Qf=_sfc_main$1r;return openBlock(),createElementBlock("div",{class:normalizeClass(["overflow-hidden bg-gray/20 transition-width duration-300 dark:bg-gray/40",{"w-0":!unref(qa).isOpenPostSlider,"w-50":unref(qa).isOpenPostSlider}])},[createBaseVNode("nav",{class:normalizeClass(["space-y-1 h-full overflow-auto p-2 transition-transform",{"translate-x-100":unref(qa).isOpenPostSlider,"-translate-x-full":!unref(qa).isOpenPostSlider}])},[createVNode(Jd,{open:unref(nd),"onUpdate:open":kd[2]||(kd[2]=Xf=>isRef(nd)?nd.value=Xf:null)},{default:withCtx(()=>[createVNode(Gd,{"as-child":""},{default:withCtx(()=>[createVNode(Ld,{variant:"outline",class:"w-full",size:"xs"},{default:withCtx(()=>[createVNode(unref(Plus)),kd[9]||(kd[9]=createTextVNode(" 新增内容 "))]),_:1})]),_:1}),createVNode(Wd,null,{default:withCtx(()=>[createVNode(Ud,null,{default:withCtx(()=>[createVNode(jd,null,{default:withCtx(()=>kd[10]||(kd[10]=[createTextVNode("新增内容")])),_:1}),createVNode(Fd,null,{default:withCtx(()=>kd[11]||(kd[11]=[createTextVNode(" 请输入内容名称 ")])),_:1})]),_:1}),createVNode(qd,{modelValue:unref(od),"onUpdate:modelValue":kd[0]||(kd[0]=Xf=>isRef(od)?od.value=Xf:null)},null,8,["modelValue"]),createVNode(zd,null,{default:withCtx(()=>[createVNode(Ld,{onClick:kd[1]||(kd[1]=Xf=>ld())},{default:withCtx(()=>kd[12]||(kd[12]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(qa).posts,(Xf,ph)=>(openBlock(),createElementBlock("a",{key:Xf.title,href:"#",class:normalizeClass([{"bg-primary text-primary-foreground shadow-lg border-2 border-primary":unref(qa).currentPostIndex===ph,"dark:bg-primary-dark dark:text-primary-foreground-dark dark:border-primary-dark":unref(qa).currentPostIndex===ph},"hover:bg-primary/90 hover:text-primary-foreground dark:bg-muted dark:hover:bg-muted dark:hover:border-primary-dark h-8 w-full inline-flex items-center justify-start gap-2 whitespace-nowrap rounded px-2 text-sm transition-colors dark:text-white dark:hover:text-white"]),onClick:qf=>unref(qa).currentPostIndex=ph},[createBaseVNode("span",_hoisted_2$4,toDisplayString(Xf.title),1),createVNode(mf,null,{default:withCtx(()=>[createVNode(_f,{"as-child":""},{default:withCtx(()=>[createVNode(Ld,{size:"xs",variant:"ghost",class:"ml-auto px-1.5"},{default:withCtx(()=>[createVNode(unref(Ellipsis),{class:"size-4"})]),_:1})]),_:1}),createVNode(pf,null,{default:withCtx(()=>[createVNode(Xd,{onClick:withModifiers(qf=>fd(ph),["stop"])},{default:withCtx(()=>[createVNode(unref(PenLine),{class:"mr-2 size-4"}),kd[13]||(kd[13]=createTextVNode(" 重命名 "))]),_:2},1032,["onClick"]),unref(qa).posts.length>1?(openBlock(),createBlock(Xd,{key:0,onClick:withModifiers(qf=>Ad(ph),["stop"])},{default:withCtx(()=>[createVNode(unref(Trash),{class:"mr-2 size-4"}),kd[14]||(kd[14]=createTextVNode(" 删除 "))]),_:2},1032,["onClick"])):createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)],10,_hoisted_1$6))),128)),createVNode(Jd,{open:unref(dd),"onUpdate:open":kd[6]||(kd[6]=Xf=>isRef(dd)?dd.value=Xf:null)},{default:withCtx(()=>[createVNode(Wd,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(Ud,null,{default:withCtx(()=>[createVNode(jd,null,{default:withCtx(()=>kd[15]||(kd[15]=[createTextVNode("编辑内容名称")])),_:1}),createVNode(Fd,null,{default:withCtx(()=>kd[16]||(kd[16]=[createTextVNode(" 请输入新的内容名称 ")])),_:1})]),_:1}),createVNode(qd,{modelValue:unref(pd),"onUpdate:modelValue":kd[3]||(kd[3]=Xf=>isRef(pd)?pd.value=Xf:null)},null,8,["modelValue"]),createVNode(zd,null,{default:withCtx(()=>[createVNode(Ld,{variant:"outline",onClick:kd[4]||(kd[4]=Xf=>dd.value=!1)},{default:withCtx(()=>kd[17]||(kd[17]=[createTextVNode(" 取消 ")])),_:1}),createVNode(Ld,{onClick:kd[5]||(kd[5]=Xf=>md())},{default:withCtx(()=>kd[18]||(kd[18]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Qf,{open:unref(vd),"onUpdate:open":kd[8]||(kd[8]=Xf=>isRef(vd)?vd.value=Xf:null)},{default:withCtx(()=>[createVNode(Gf,null,{default:withCtx(()=>[createVNode(Af,null,{default:withCtx(()=>[createVNode(Sf,null,{default:withCtx(()=>kd[19]||(kd[19]=[createTextVNode("提示")])),_:1}),createVNode(Tf,null,{default:withCtx(()=>kd[20]||(kd[20]=[createTextVNode(" 此操作将删除该内容,是否继续? ")])),_:1})]),_:1}),createVNode(If,null,{default:withCtx(()=>[createVNode(Ef,null,{default:withCtx(()=>kd[21]||(kd[21]=[createTextVNode("取消")])),_:1}),createVNode(Nf,{onClick:kd[7]||(kd[7]=Xf=>Nd())},{default:withCtx(()=>kd[22]||(kd[22]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],2)],2)}}}),_hoisted_1$5={class:"mt-4"},_hoisted_2$3={key:0,class:"py-4 text-center"},_hoisted_3$3={key:1,class:"max-h-[400px] flex flex-col overflow-y-auto"},_hoisted_4$3={class:"mb-2 flex items-center gap-2"},_hoisted_5$2=["src"],_hoisted_6$2=["href"],_sfc_main$B=defineComponent({__name:"PostTaskDialog",props:{post:{},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed({get:()=>nd.open,set:fd=>od("update:open",fd)}),ud=ref$1(null),dd=ref$1(!1);async function pd(){var fd;if(nd.post)try{(fd=window.$syncer)==null||fd.addTask({post:{title:nd.post.title,content:nd.post.content,markdown:nd.post.markdown,thumb:nd.post.thumb,desc:nd.post.desc},accounts:nd.post.accounts.filter(md=>md.checked)},md=>{ud.value=md},()=>{dd.value=!1})}catch(md){console.error("发布失败:",md)}}return watch(()=>nd.open,fd=>{fd&&pd()}),(fd,md)=>(openBlock(),createBlock(unref(_sfc_main$1h),{open:unref(ld),"onUpdate:open":md[0]||(md[0]=vd=>isRef(ld)?ld.value=vd:null)},{default:withCtx(()=>[createVNode(unref(_sfc_main$1g),null,{default:withCtx(()=>{var vd;return[createVNode(unref(_sfc_main$17),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$16),null,{default:withCtx(()=>md[1]||(md[1]=[createTextVNode("提交发布任务")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_1$5,[unref(ud)?(openBlock(),createElementBlock("div",_hoisted_3$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList((vd=unref(ud))==null?void 0:vd.accounts,Ad=>(openBlock(),createElementBlock("div",{key:Ad.uid+Ad.displayName,class:"border-b py-4 last:border-b-0"},[createBaseVNode("div",_hoisted_4$3,[Ad.icon?(openBlock(),createElementBlock("img",{key:0,src:Ad.icon,class:"object-cover h-5 w-5",alt:""},null,8,_hoisted_5$2)):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString(Ad.title)+" - "+toDisplayString(Ad.displayName||Ad.home),1)]),createBaseVNode("div",{class:normalizeClass(["w-full flex-1 gap-2 overflow-auto pl-7 text-sm",{"text-yellow-600":Ad.status==="uploading","text-red-600":Ad.status==="failed","text-green-600":Ad.status==="done"}])},[Ad.status==="uploading"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(Ad.msg||"发布中"),1)],64)):createCommentVNode("",!0),Ad.status==="failed"?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(" 同步失败, 错误内容:"+toDisplayString(Ad.error),1)],64)):createCommentVNode("",!0),Ad.status==="done"&&Ad.editResp?(openBlock(),createElementBlock(Fragment,{key:2},[md[2]||(md[2]=createTextVNode(" 同步成功 ")),Ad.type!=="wordpress"&&Ad.editResp?(openBlock(),createElementBlock("a",{key:0,href:Ad.editResp.draftLink,class:"ml-2 text-blue-500 hover:underline",referrerPolicy:"no-referrer",target:"_blank"},"查看草稿",8,_hoisted_6$2)):createCommentVNode("",!0)],64)):createCommentVNode("",!0)],2)]))),128))])):(openBlock(),createElementBlock("div",_hoisted_2$3," 等待发布.. "))])]}),_:1})]),_:1},8,["open"]))}}),__unplugin_components_13=_export_sfc(_sfc_main$B,[["__scopeId","data-v-3407b3ac"]]),_sfc_main$A=defineComponent({__name:"Textarea",props:{class:{},defaultValue:{},modelValue:{}},setup(Ra,{emit:qa}){const nd=Ra,ld=useVModel$1(nd,"modelValue",qa,{passive:!0,defaultValue:nd.defaultValue});return(ud,dd)=>withDirectives((openBlock(),createElementBlock("textarea",{"onUpdate:modelValue":dd[0]||(dd[0]=pd=>isRef(ld)?ld.value=pd:null),class:normalizeClass(unref(cn$5)("flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",nd.class))},null,2)),[[vModelText,unref(ld)]])}}),_sfc_main$z=defineComponent({__name:"AlertDescription",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("text-sm [&_p]:leading-relaxed",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$y=defineComponent({__name:"AlertTitle",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("h5",{class:normalizeClass(unref(cn$5)("mb-1 font-medium leading-none tracking-tight",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),alertVariants=cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),_sfc_main$x=defineComponent({__name:"Alert",props:{class:{},variant:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)(unref(alertVariants)({variant:nd.variant}),qa.class)),role:"alert"},[renderSlot(nd.$slots,"default")],2))}}),_hoisted_1$4={class:"w-full flex items-center gap-4"},_hoisted_2$2={class:"w-full flex items-center gap-4"},_hoisted_3$2={class:"w-full flex items-start gap-4"},_hoisted_4$2={class:"w-full flex items-start gap-4"},_hoisted_5$1={class:"flex flex-1 flex-col gap-2"},_hoisted_6$1={class:"flex flex-row items-center gap-4"},_hoisted_7={class:"flex items-center gap-2 text-sm"},_hoisted_8=["src"],_sfc_main$w=defineComponent({__name:"PostInfo",setup(Ra){const qa=useStore(),{output:nd,editor:od}=storeToRefs(qa),ld=ref$1(!1),ud=ref$1(!1),dd=ref$1([]),pd=ref$1(!1),fd=ref$1({title:"",desc:"",thumb:"",content:"",markdown:"",accounts:[]}),md=computed(()=>ud.value&&fd.value.accounts.some(Ld=>Ld.checked));async function vd(){var jd,Fd;ud.value&&dd.value.length===0&&await Ad();let Ld={thumb:"",title:"",desc:"",content:"",markdown:"",accounts:[]};const Gd=dd.value.filter(Ud=>!["weixin","ipfs"].includes(Ud.type));try{Ld={thumb:((jd=document.querySelector("#output img"))==null?void 0:jd.src)??"",title:[1,2,3,4,5,6].map(Ud=>document.querySelector(`#output h${Ud}`)).filter(Ud=>Ud)[0].textContent??"",desc:document.querySelector("#output p").textContent??"",content:nd.value,markdown:((Fd=od.value)==null?void 0:Fd.getValue())??"",accounts:Gd}}catch(Ud){console.log("error",Ud)}finally{fd.value={...Ld},console.log(fd.value,"====")}}async function Ad(){return new Promise(Ld=>{var Gd;(Gd=window.$syncer)==null||Gd.getAccounts(jd=>{dd.value=jd.map(Fd=>({...Fd,checked:!0})),Ld()})})}function Nd(){fd.value.accounts=fd.value.accounts.filter(Ld=>Ld.checked),pd.value=!0,ld.value=!1}function Od(Ld){Ld||(ld.value=!1)}function kd(){if(window.$syncer!==void 0){ud.value=!0;return}let Ld=0;const Gd=setInterval(async()=>{if(window.$syncer!==void 0){ud.value=!0,await Ad(),clearInterval(Gd);return}Ld++,Ld>10&&clearInterval(Gd)},500)}return onBeforeMount(()=>{kd()}),(Ld,Gd)=>{const jd=_sfc_main$1o,Fd=_sfc_main$D,Ud=_sfc_main$16,qd=_sfc_main$17,zd=_sfc_main$y,Wd=_sfc_main$z,Jd=_sfc_main$x,_f=_sfc_main$18,Xd=_sfc_main$1e,pf=_sfc_main$A,mf=_sfc_main$1f,Sf=_sfc_main$1g,Tf=_sfc_main$1h,Af=__unplugin_components_13;return openBlock(),createElementBlock(Fragment,null,[createVNode(Tf,{open:unref(ld),"onUpdate:open":[Gd[4]||(Gd[4]=Ef=>isRef(ld)?ld.value=Ef:null),Od]},{default:withCtx(()=>[createVNode(Fd,null,{default:withCtx(()=>[createVNode(jd,{variant:"outline",onClick:vd},{default:withCtx(()=>Gd[6]||(Gd[6]=[createTextVNode(" 发布 ")])),_:1})]),_:1}),createVNode(Sf,null,{default:withCtx(()=>[createVNode(qd,null,{default:withCtx(()=>[createVNode(Ud,null,{default:withCtx(()=>Gd[7]||(Gd[7]=[createTextVNode("发布")])),_:1})]),_:1}),createVNode(Jd,null,{default:withCtx(()=>[createVNode(unref(Info),{class:"h-4 w-4"}),createVNode(zd,null,{default:withCtx(()=>Gd[8]||(Gd[8]=[createTextVNode("提示")])),_:1}),createVNode(Wd,null,{default:withCtx(()=>Gd[9]||(Gd[9]=[createTextVNode(" 此功能由第三方浏览器插件支持,本平台不保证安全性及同步准确度。 ")])),_:1})]),_:1}),unref(ud)?createCommentVNode("",!0):(openBlock(),createBlock(Jd,{key:0},{default:withCtx(()=>[createVNode(unref(Info),{class:"h-4 w-4"}),createVNode(zd,null,{default:withCtx(()=>Gd[10]||(Gd[10]=[createTextVNode("未检测到插件")])),_:1}),createVNode(Wd,null,{default:withCtx(()=>[Gd[12]||(Gd[12]=createTextVNode(" 请安装 ")),createVNode(unref(O$4),{as:"a",class:"text-blue-500",href:"https://www.wechatsync.com/?utm_source=syncicon#install",target:"_blank"},{default:withCtx(()=>Gd[11]||(Gd[11]=[createTextVNode(" 文章同步助手 ")])),_:1}),Gd[13]||(Gd[13]=createTextVNode(" 插件 "))]),_:1})]),_:1})),createBaseVNode("div",_hoisted_1$4,[createVNode(_f,{for:"thumb",class:"w-10 text-end"},{default:withCtx(()=>Gd[14]||(Gd[14]=[createTextVNode(" 封面 ")])),_:1}),createVNode(Xd,{id:"thumb",modelValue:unref(fd).thumb,"onUpdate:modelValue":Gd[0]||(Gd[0]=Ef=>unref(fd).thumb=Ef),placeholder:"自动提取第一张图"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_2$2,[createVNode(_f,{for:"title",class:"w-10 text-end"},{default:withCtx(()=>Gd[15]||(Gd[15]=[createTextVNode(" 标题 ")])),_:1}),createVNode(Xd,{id:"title",modelValue:unref(fd).title,"onUpdate:modelValue":Gd[1]||(Gd[1]=Ef=>unref(fd).title=Ef),placeholder:"自动提取第一个标题"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_3$2,[createVNode(_f,{for:"desc",class:"w-10 text-end"},{default:withCtx(()=>Gd[16]||(Gd[16]=[createTextVNode(" 描述 ")])),_:1}),createVNode(pf,{id:"desc",modelValue:unref(fd).desc,"onUpdate:modelValue":Gd[2]||(Gd[2]=Ef=>unref(fd).desc=Ef),placeholder:"自动提取第一个段落"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_4$2,[createVNode(_f,{class:"w-10 text-end"},{default:withCtx(()=>Gd[17]||(Gd[17]=[createTextVNode(" 账号 ")])),_:1}),createBaseVNode("div",_hoisted_5$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fd).accounts,Ef=>(openBlock(),createElementBlock("div",{key:Ef.uid+Ef.displayName,class:"flex items-center gap-2"},[createBaseVNode("label",_hoisted_6$1,[createVNode(unref(Vv),{checked:Ef.checked,"onUpdate:checked":Nf=>Ef.checked=Nf,class:"bg-background hover:bg-muted h-[25px] w-[25px] flex appearance-none items-center justify-center border border-gray-200 rounded-[4px] outline-none"},{default:withCtx(()=>[createVNode(unref(Fv),null,{default:withCtx(()=>[Ef.checked?(openBlock(),createBlock(unref(Check),{key:0,class:"h-4 w-4"})):createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["checked","onUpdate:checked"]),createBaseVNode("span",_hoisted_7,[createBaseVNode("img",{src:Ef.icon,alt:"",class:"inline-block h-[20px] w-[20px]"},null,8,_hoisted_8),createTextVNode(" "+toDisplayString(Ef.title)+" - "+toDisplayString(Ef.displayName??Ef.home),1)])])]))),128))])]),createVNode(mf,null,{default:withCtx(()=>[createVNode(jd,{variant:"outline",onClick:Gd[3]||(Gd[3]=Ef=>ld.value=!1)},{default:withCtx(()=>Gd[18]||(Gd[18]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(jd,{disabled:!unref(md),onClick:Nd},{default:withCtx(()=>Gd[19]||(Gd[19]=[createTextVNode(" 确 定 ")])),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Af,{open:unref(pd),"onUpdate:open":Gd[5]||(Gd[5]=Ef=>isRef(pd)?pd.value=Ef:null),post:unref(fd)},null,8,["open","post"])],64)}}}),_sfc_main$v=defineComponent({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(fh),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$3={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$u=defineComponent({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(vh),mergeProps(unref(ud),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",nd.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$3,[createVNode(unref(ch$1),null,{default:withCtx(()=>[createVNode(unref(Circle),{class:"h-2 w-2 fill-current"})]),_:1})]),renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$t=defineComponent({__name:"Separator",props:{orientation:{},decorative:{type:Boolean},asChild:{type:Boolean},as:{},class:{},label:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(qp$1),mergeProps(nd.value,{class:unref(cn$5)("shrink-0 bg-border relative",qa.orientation==="vertical"?"w-px h-full":"h-px w-full",qa.class)}),{default:withCtx(()=>[qa.label?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(cn$5)("text-xs text-muted-foreground bg-background absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 flex justify-center items-center",qa.orientation==="vertical"?"w-[1px] px-1 py-2":"h-[1px] py-1 px-2"))},toDisplayString(qa.label),3)):createCommentVNode("",!0)]),_:1},16,["class"]))}}),_sfc_main$s=defineComponent({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Mg),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$r=defineComponent({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Vg),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$q=defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(zg),null,{default:withCtx(()=>[createVNode(unref(Ng),mergeProps({...unref(ud),...dd.$attrs},{class:unref(cn$5)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$p=defineComponent({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Fg),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$o=defineComponent({__name:"Menubar",props:{modelValue:{},defaultValue:{},dir:{},loop:{type:Boolean},class:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(Nh),mergeProps(unref(ud),{class:unref(cn$5)("flex h-10 items-center gap-x-1 rounded-md border bg-background p-1",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$n=defineComponent({__name:"AboutDialog",props:{visible:{type:Boolean,default:!1}},emits:["close"],setup(Ra,{emit:qa}){const nd=Ra,od=qa;function ld(pd){pd||od("close")}const ud=[{label:"GitHub 仓库",url:"https://github.com/doocs/md"},{label:"Gitee 仓库",url:"https://gitee.com/doocs/md"},{label:"GitCode 仓库",url:"https://gitcode.com/doocs/md"}];function dd(pd){window.open(pd,"_blank")}return(pd,fd)=>{const md=_sfc_main$16,vd=_sfc_main$17,Ad=_sfc_main$1o,Nd=_sfc_main$1f,Od=_sfc_main$1g,kd=_sfc_main$1h;return openBlock(),createBlock(kd,{open:nd.visible,"onUpdate:open":ld},{default:withCtx(()=>[createVNode(Od,null,{default:withCtx(()=>[createVNode(vd,null,{default:withCtx(()=>[createVNode(md,null,{default:withCtx(()=>fd[0]||(fd[0]=[createTextVNode("关于")])),_:1})]),_:1}),fd[1]||(fd[1]=createBaseVNode("div",{class:"text-center"},[createBaseVNode("h3",null,"一款高度简洁的微信 Markdown 编辑器"),createBaseVNode("p",null,"扫码关注公众号 Doocs,原创技术内容第一时间推送!"),createBaseVNode("img",{class:"mx-auto my-5",src:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png",alt:"Doocs Markdown 编辑器",style:{width:"40%"}})],-1)),createVNode(Nd,{class:"sm:justify-evenly"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(ud,Ld=>createVNode(Ad,{key:Ld.url,onClick:Gd=>dd(Ld.url)},{default:withCtx(()=>[createTextVNode(toDisplayString(Ld.label),1)]),_:2},1032,["onClick"])),64))]),_:1})]),_:1})]),_:1},8,["open"])}}}),_sfc_main$m=defineComponent({__name:"MenubarMenu",props:{value:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Lh),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$l=defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:8},align:{default:"start"},alignOffset:{default:-4},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Kh),null,{default:withCtx(()=>[createVNode(unref(Hh),mergeProps(unref(od),{class:unref(cn$5)("z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_hoisted_1$2={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$k=defineComponent({__name:"MenubarCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select","update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(qh),mergeProps(unref(ud),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",nd.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$2,[createVNode(unref(Yh),null,{default:withCtx(()=>[createVNode(unref(Check),{class:"h-4 w-4"})]),_:1})]),renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$j=defineComponent({__name:"MenubarTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(zh),mergeProps(unref(od),{class:unref(cn$5)("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$i=defineComponent({__name:"HelpDropdown",setup(Ra){const qa=ref$1(!1);return(nd,od)=>{const ld=_sfc_main$j,ud=_sfc_main$k,dd=_sfc_main$l,pd=_sfc_main$m,fd=_sfc_main$n;return openBlock(),createElementBlock(Fragment,null,[createVNode(pd,null,{default:withCtx(()=>[createVNode(ld,null,{default:withCtx(()=>od[2]||(od[2]=[createTextVNode(" 帮助 ")])),_:1}),createVNode(dd,{align:"start"},{default:withCtx(()=>[createVNode(ud,{onClick:od[0]||(od[0]=md=>qa.value=!0)},{default:withCtx(()=>od[3]||(od[3]=[createBaseVNode("span",null,"关于",-1)])),_:1})]),_:1})]),_:1}),createVNode(fd,{visible:unref(qa),onClose:od[1]||(od[1]=md=>qa.value=!1)},null,8,["visible"])],64)}}}),_sfc_main$h=defineComponent({__name:"HoverCard",props:{defaultOpen:{type:Boolean},open:{type:Boolean},openDelay:{},closeDelay:{}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Eh),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$g=defineComponent({__name:"HoverCardContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Dh),null,{default:withCtx(()=>[createVNode(unref($h),mergeProps(unref(od),{class:unref(cn$5)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$f=defineComponent({__name:"HoverCardTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Ph),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),_sfc_main$e=defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(Gh),mergeProps({class:unref(cn$5)("-mx-1 my-1 h-px bg-muted",qa.class)},unref(od)),null,16,["class"]))}}),_sfc_main$d=defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(Qh),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$c=defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(Kh),null,{default:withCtx(()=>[createVNode(unref(ey),mergeProps(unref(ud),{class:unref(cn$5)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$b=defineComponent({__name:"DropdownMenuShortcut",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$5)("ml-auto text-xs tracking-widest opacity-60",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$a=defineComponent({__name:"MenubarSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(ty),mergeProps(unref(od),{class:unref(cn$5)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",ld.inset&&"pl-8",qa.class)}),{default:withCtx(()=>[renderSlot(ld.$slots,"default"),createVNode(unref(ChevronRight),{class:"ml-auto h-4 w-4"})]),_:3},16,["class"]))}}),_sfc_main$9=defineComponent({__name:"StyleOptionMenu",props:{title:{},options:{},current:{},change:{type:Function}},setup(Ra){const qa=Ra;function nd(od,ld){switch(od){case"字体":return{fontFamily:ld};case"字号":return{fontSize:ld};case"主题色":return{color:ld};default:return{}}}return(od,ld)=>{const ud=_sfc_main$a,dd=_sfc_main$b,pd=_sfc_main$k,fd=_sfc_main$c,md=_sfc_main$d;return openBlock(),createBlock(md,null,{default:withCtx(()=>[createVNode(ud,null,{default:withCtx(()=>[ld[0]||(ld[0]=createBaseVNode("span",{class:"mr-2 h-4 w-4"},null,-1)),createBaseVNode("span",null,toDisplayString(qa.title),1)]),_:1}),createVNode(fd,{class:"max-h-56 overflow-auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(od.options,({label:vd,value:Ad,desc:Nd})=>(openBlock(),createBlock(pd,{key:Ad,label:vd,"model-value":Ad,class:"w-50",checked:od.current===Ad,onClick:Od=>od.change(Ad)},{default:withCtx(()=>[createTextVNode(toDisplayString(vd)+" ",1),createVNode(dd,{style:normalizeStyle(nd(od.title,Ad))},{default:withCtx(()=>[createTextVNode(toDisplayString(Nd),1)]),_:2},1032,["style"])]),_:2},1032,["label","model-value","checked","onClick"]))),128))]),_:1})]),_:1})}}}),_sfc_main$8=defineComponent({__name:"StyleDropdown",setup(Ra){const qa=useStore(),{toggleShowCssEditor:nd}=useDisplayStore(),{theme:od,fontFamily:ld,fontSize:ud,primaryColor:dd,codeBlockTheme:pd,legend:fd,isMacCodeBlock:md,cssEditor:vd}=storeToRefs(qa),{resetStyleConfirm:Ad,themeChanged:Nd,fontChanged:Od,sizeChanged:kd,colorChanged:Ld,codeBlockThemeChanged:Gd,legendChanged:jd,macCodeBlockChanged:Fd}=qa,Ud=ref$1(null);function qd(){var Xd;(Xd=Ud.value)==null||Xd.show()}function zd(){nd(),setTimeout(()=>{vd.value.refresh()},50)}const Wd=useTemplateRef("pickColorsContainer"),Jd=ref$1("rgb"),_f=ref$1(["rgb","hex","hsl","hsv"]);return(Xd,pf)=>{const mf=_sfc_main$j,Sf=_sfc_main$9,Tf=_sfc_main$e,Af=_sfc_main$f,Ef=_sfc_main$g,Nf=_sfc_main$h,If=_sfc_main$k,Gf=_sfc_main$l,Qf=_sfc_main$m;return openBlock(),createBlock(Qf,null,{default:withCtx(()=>[createVNode(mf,null,{default:withCtx(()=>pf[1]||(pf[1]=[createTextVNode(" 样式 ")])),_:1}),createVNode(Gf,{class:"w-56",align:"start"},{default:withCtx(()=>[createVNode(Sf,{title:"主题",options:unref(themeOptions),current:unref(od),change:unref(Nd)},null,8,["options","current","change"]),createVNode(Tf),createVNode(Sf,{title:"字体",options:unref(fontFamilyOptions),current:unref(ld),change:unref(Od)},null,8,["options","current","change"]),createVNode(Sf,{title:"字号",options:unref(fontSizeOptions),current:unref(ud),change:unref(kd)},null,8,["options","current","change"]),createVNode(Sf,{title:"主题色",options:unref(colorOptions),current:unref(dd),change:unref(Ld)},null,8,["options","current","change"]),createVNode(Sf,{title:"代码块主题",options:unref(codeBlockThemeOptions),current:unref(pd),change:unref(Gd)},null,8,["options","current","change"]),createVNode(Sf,{title:"图注格式",options:unref(legendOptions),current:unref(fd),change:unref(jd)},null,8,["options","current","change"]),createVNode(Tf),createVNode(If,{onClick:withModifiers(qd,["self","prevent"])},{default:withCtx(()=>[createVNode(Nf,{"open-delay":100},{default:withCtx(()=>[createVNode(Af,{class:"w-full flex"},{default:withCtx(()=>pf[2]||(pf[2]=[createTextVNode(" 自定义主题色 ")])),_:1}),createVNode(Ef,{side:"right",class:"w-min"},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"pickColorsContainer",ref:Wd},[createVNode(unref(ze),{value:unref(dd),"onUpdate:value":pf[0]||(pf[0]=Xf=>isRef(dd)?dd.value=Xf:null),"show-alpha":"",format:unref(Jd),"format-options":unref(_f),theme:unref(qa).isDark?"dark":"light","popup-container":unref(Wd),onChange:unref(qa).colorChanged},null,8,["value","format","format-options","theme","popup-container","onChange"])],512)]),_:1})]),_:1})]),_:1}),createVNode(If,{onClick:zd},{default:withCtx(()=>pf[3]||(pf[3]=[createTextVNode(" 自定义 CSS ")])),_:1}),createVNode(Tf),createVNode(If,{checked:unref(md),onClick:unref(Fd)},{default:withCtx(()=>pf[4]||(pf[4]=[createTextVNode(" Mac 代码块 ")])),_:1},8,["checked","onClick"]),createVNode(Tf),createVNode(If,{divided:"",onClick:unref(Ad)},{default:withCtx(()=>pf[5]||(pf[5]=[createTextVNode(" 重置 ")])),_:1},8,["onClick"])]),_:1})]),_:1})}}}),_sfc_main$7=defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},emits:["select"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(jh),mergeProps(unref(ud),{class:unref(cn$5)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",dd.inset&&"pl-8",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$6=defineComponent({__name:"EditDropdown",setup(Ra){const{toggleShowInsertFormDialog:qa,toggleShowUploadImgDialog:nd}=useDisplayStore();return(od,ld)=>{const ud=_sfc_main$j,dd=_sfc_main$7,pd=_sfc_main$l,fd=_sfc_main$m;return openBlock(),createBlock(fd,null,{default:withCtx(()=>[createVNode(ud,null,{default:withCtx(()=>ld[2]||(ld[2]=[createTextVNode(" 编辑 ")])),_:1}),createVNode(pd,{align:"start"},{default:withCtx(()=>[createVNode(dd,{onClick:ld[0]||(ld[0]=md=>unref(nd)())},{default:withCtx(()=>[createVNode(unref(CloudUpload),{class:"mr-2 h-4 w-4"}),ld[3]||(ld[3]=createTextVNode(" 上传图片 "))]),_:1}),createVNode(dd,{onClick:ld[1]||(ld[1]=md=>unref(qa)())},{default:withCtx(()=>[createVNode(unref(Table),{class:"mr-2 h-4 w-4"}),ld[4]||(ld[4]=createTextVNode(" 插入表格 "))]),_:1})]),_:1})]),_:1})}}}),_sfc_main$5=defineComponent({__name:"MenubarShortcut",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$5)("ml-auto text-xs tracking-widest text-muted-foreground",qa.class))},[renderSlot(nd.$slots,"default")],2))}}),_sfc_main$4=defineComponent({__name:"FileDropdown",setup(Ra){const qa=useStore(),{isDark:nd,isEditOnLeft:od}=storeToRefs(qa),{exportEditorContent2HTML:ld,exportEditorContent2MD:ud,importMarkdownContent:dd}=qa;return(pd,fd)=>{const md=_sfc_main$j,vd=_sfc_main$7,Ad=_sfc_main$e,Nd=_sfc_main$k,Od=_sfc_main$l,kd=_sfc_main$m;return openBlock(),createBlock(kd,null,{default:withCtx(()=>[createVNode(md,null,{default:withCtx(()=>fd[5]||(fd[5]=[createTextVNode(" 文件 ")])),_:1}),createVNode(Od,{align:"start"},{default:withCtx(()=>[createVNode(vd,{onClick:fd[0]||(fd[0]=Ld=>unref(dd)())},{default:withCtx(()=>[createVNode(unref(Upload),{class:"mr-2 size-4"}),fd[6]||(fd[6]=createTextVNode(" 导入 .md "))]),_:1}),createVNode(vd,{onClick:fd[1]||(fd[1]=Ld=>unref(ud)())},{default:withCtx(()=>[createVNode(unref(Download),{class:"mr-2 size-4"}),fd[7]||(fd[7]=createTextVNode(" 导出 .md "))]),_:1}),createVNode(vd,{onClick:fd[2]||(fd[2]=Ld=>unref(ld)())},{default:withCtx(()=>[createVNode(unref(FileCode),{class:"mr-2 size-4"}),fd[8]||(fd[8]=createTextVNode(" 导出 .html "))]),_:1}),createVNode(Ad),createVNode(Nd,{checked:unref(nd),"onUpdate:checked":fd[3]||(fd[3]=Ld=>isRef(nd)?nd.value=Ld:null)},{default:withCtx(()=>fd[9]||(fd[9]=[createTextVNode(" 深色模式 ")])),_:1},8,["checked"]),createVNode(Ad),createVNode(Nd,{checked:unref(od),"onUpdate:checked":fd[4]||(fd[4]=Ld=>isRef(od)?od.value=Ld:null)},{default:withCtx(()=>fd[10]||(fd[10]=[createTextVNode(" 左侧编辑 ")])),_:1},8,["checked"])]),_:1})]),_:1})}}}),_sfc_main$3=defineComponent({__name:"Sonner",props:{invert:{type:Boolean},theme:{},position:{},hotkey:{},richColors:{type:Boolean},expand:{type:Boolean},duration:{},gap:{},visibleToasts:{},closeButton:{type:Boolean},toastOptions:{},class:{},style:{},offset:{},dir:{},icons:{},containerAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(Ve),mergeProps({class:"toaster group"},qa,{"toast-options":{classes:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}}),null,16))}}),_hoisted_1$1={class:"header-container h-15 flex items-center justify-between px-5"},_hoisted_2$1={class:"space-x-2 flex"},_hoisted_3$1={class:"space-x-2 flex"},_hoisted_4$1={class:"space-x-1 bg-background text-background-foreground mx-2 flex items-center border rounded-md"},_sfc_main$2=defineComponent({__name:"index",emits:["addFormat","formatContent","startCopy","endCopy"],setup(Ra,{emit:qa}){const nd=qa,od=[{label:"加粗",kbd:[ctrlSign,"B"],emitArgs:["addFormat",`${ctrlKey}-B`]},{label:"斜体",kbd:[ctrlSign,"I"],emitArgs:["addFormat",`${ctrlKey}-I`]},{label:"删除线",kbd:[ctrlSign,"D"],emitArgs:["addFormat",`${ctrlKey}-D`]},{label:"超链接",kbd:[ctrlSign,"K"],emitArgs:["addFormat",`${ctrlKey}-K`]},{label:"行内代码",kbd:[ctrlSign,"E"],emitArgs:["addFormat",`${ctrlKey}-E`]},{label:"格式化",kbd:[altSign,shiftSign,"F"],emitArgs:["formatContent"]}],ld=useStore(),{isDark:ud,isCiteStatus:dd,isCountStatus:pd,output:fd,primaryColor:md,isOpenPostSlider:vd}=storeToRefs(ld),{toggleDark:Ad,editorRefresh:Nd,citeStatusChanged:Od,countStatusChanged:kd}=ld,Ld=useStorage(addPrefix("copyMode"),"txt"),Gd=ref$1(""),{copy:jd}=useClipboard({source:Gd});function Fd(){nd("startCopy"),setTimeout(()=>{const Ud=ud.value;Ud&&Ad(),nextTick$1(async()=>{processClipboardContent(md.value);const qd=document.getElementById("output");qd.focus(),window.getSelection().removeAllRanges();const zd=qd.innerHTML;if(Ld.value==="txt"){const Wd=document.createRange();Wd.setStartBefore(qd.firstChild),Wd.setEndAfter(qd.lastChild),window.getSelection().addRange(Wd),document.execCommand("copy"),window.getSelection().removeAllRanges()}qd.innerHTML=fd.value,Ud&&nextTick$1(()=>Ad()),Ld.value==="html"&&await jd(zd),Ke$1.success(Ld.value==="html"?"已复制 HTML 源码,请进行下一步操作。":"已复制渲染后的内容到剪贴板,可直接到公众号后台粘贴。"),Nd(),nd("endCopy")})},350)}return(Ud,qd)=>{const zd=_sfc_main$4,Wd=_sfc_main$j,Jd=_sfc_main$5,_f=_sfc_main$k,Xd=_sfc_main$e,pf=_sfc_main$l,mf=_sfc_main$m,Sf=_sfc_main$6,Tf=_sfc_main$8,Af=_sfc_main$i,Ef=_sfc_main$o,Nf=_sfc_main$1o,If=_sfc_main$p,Gf=_sfc_main$q,Qf=_sfc_main$r,Xf=_sfc_main$s,ph=_sfc_main$t,qf=_sfc_main$E,Lf=_sfc_main$u,Wf=_sfc_main$v,Jf=_sfc_main$G,Kf=_sfc_main$H,Cf=_sfc_main$w;return openBlock(),createElementBlock("header",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createVNode(Ef,{class:"menubar"},{default:withCtx(()=>[createVNode(zd),createVNode(mf,null,{default:withCtx(()=>[createVNode(Wd,null,{default:withCtx(()=>qd[7]||(qd[7]=[createTextVNode(" 格式 ")])),_:1}),createVNode(pf,{class:"w-60",align:"start"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(od,({label:xf,kbd:Yf,emitArgs:dh})=>createVNode(_f,{key:xf,onClick:Rh=>dh[0]==="addFormat"?Ud.$emit(dh[0],dh[1]):Ud.$emit(dh[0])},{default:withCtx(()=>[createTextVNode(toDisplayString(xf)+" ",1),createVNode(Jd,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Yf,Rh=>(openBlock(),createElementBlock("kbd",{key:Rh,class:"mx-1 bg-gray-2 dark:bg-stone-9"},toDisplayString(Rh),1))),128))]),_:2},1024)]),_:2},1032,["onClick"])),64)),createVNode(Xd),createVNode(_f,{checked:unref(dd),onClick:qd[0]||(qd[0]=xf=>unref(Od)())},{default:withCtx(()=>qd[8]||(qd[8]=[createTextVNode(" 微信外链转底部引用 ")])),_:1},8,["checked"]),createVNode(Xd),createVNode(_f,{checked:unref(pd),onClick:qd[1]||(qd[1]=xf=>unref(kd)())},{default:withCtx(()=>qd[9]||(qd[9]=[createTextVNode(" 统计字数和阅读时间 ")])),_:1},8,["checked"])]),_:1})]),_:1}),createVNode(Sf),createVNode(Tf),createVNode(Af)]),_:1})]),createBaseVNode("div",_hoisted_3$1,[createVNode(Xf,{"delay-duration":200},{default:withCtx(()=>[createVNode(Qf,null,{default:withCtx(()=>[createVNode(If,{"as-child":""},{default:withCtx(()=>[createVNode(Nf,{variant:"outline",onClick:qd[2]||(qd[2]=xf=>vd.value=!unref(vd))},{default:withCtx(()=>[withDirectives(createVNode(unref(PanelLeftOpen),{class:"size-4"},null,512),[[vShow,!unref(vd)]]),withDirectives(createVNode(unref(PanelLeftClose),{class:"size-4"},null,512),[[vShow,unref(vd)]])]),_:1})]),_:1}),createVNode(Gf,{side:"left"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(vd)?"关闭":"内容管理"),1)]),_:1})]),_:1})]),_:1}),createVNode(Nf,{variant:"outline",onClick:qd[3]||(qd[3]=xf=>unref(Ad)())},{default:withCtx(()=>[withDirectives(createVNode(unref(Moon),{class:"size-4"},null,512),[[vShow,unref(ud)]]),withDirectives(createVNode(unref(Sun),{class:"size-4"},null,512),[[vShow,!unref(ud)]])]),_:1}),createBaseVNode("div",_hoisted_4$1,[createVNode(Nf,{variant:"ghost",class:"shadow-none",onClick:Fd},{default:withCtx(()=>qd[10]||(qd[10]=[createTextVNode(" 复制 ")])),_:1}),createVNode(ph,{orientation:"vertical",class:"h-5"}),createVNode(Kf,{modelValue:unref(Ld),"onUpdate:modelValue":qd[5]||(qd[5]=xf=>isRef(Ld)?Ld.value=xf:null)},{default:withCtx(()=>[createVNode(qf,{"as-child":""},{default:withCtx(()=>[createVNode(Nf,{variant:"ghost",class:"px-2 shadow-none"},{default:withCtx(()=>[createVNode(unref(ChevronDown),{class:"text-secondary-foreground h-4 w-4"})]),_:1})]),_:1}),createVNode(Jf,{align:"end","align-offset":-5,class:"w-[200px]"},{default:withCtx(()=>[createVNode(Wf,{modelValue:unref(Ld),"onUpdate:modelValue":qd[4]||(qd[4]=xf=>isRef(Ld)?Ld.value=xf:null)},{default:withCtx(()=>[createVNode(Lf,{value:"txt"},{default:withCtx(()=>qd[11]||(qd[11]=[createTextVNode(" 公众号格式 ")])),_:1}),createVNode(Lf,{value:"html"},{default:withCtx(()=>qd[12]||(qd[12]=[createTextVNode(" HTML 格式 ")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])]),createVNode(Cf),createVNode(Nf,{variant:"outline",onClick:qd[6]||(qd[6]=xf=>unref(ld).isOpenRightSlider=!unref(ld).isOpenRightSlider)},{default:withCtx(()=>[createVNode(unref(Settings),{class:"size-4"})]),_:1}),createVNode(unref(_sfc_main$3),{"rich-colors":"",position:"top-center"})])])}}}),__unplugin_components_0=_export_sfc(_sfc_main$2,[["__scopeId","data-v-7e8ee93b"]]);function bind(Ra,qa){return function(){return Ra.apply(qa,arguments)}}var define_process_default$7={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(Ra=>qa=>{const nd=toString$1.call(qa);return Ra[nd]||(Ra[nd]=nd.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=Ra=>(Ra=Ra.toLowerCase(),qa=>kindOf(qa)===Ra),typeOfTest=Ra=>qa=>typeof qa===Ra,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(Ra){return Ra!==null&&!isUndefined(Ra)&&Ra.constructor!==null&&!isUndefined(Ra.constructor)&&isFunction$1(Ra.constructor.isBuffer)&&Ra.constructor.isBuffer(Ra)}const isArrayBuffer$2=kindOfTest("ArrayBuffer");function isArrayBufferView(Ra){let qa;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?qa=ArrayBuffer.isView(Ra):qa=Ra&&Ra.buffer&&isArrayBuffer$2(Ra.buffer),qa}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$1=Ra=>Ra!==null&&typeof Ra=="object",isBoolean$1=Ra=>Ra===!0||Ra===!1,isPlainObject=Ra=>{if(kindOf(Ra)!=="object")return!1;const qa=getPrototypeOf(Ra);return(qa===null||qa===Object.prototype||Object.getPrototypeOf(qa)===null)&&!(Symbol.toStringTag in Ra)&&!(Symbol.iterator in Ra)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=Ra=>isObject$1(Ra)&&isFunction$1(Ra.pipe),isFormData=Ra=>{let qa;return Ra&&(typeof FormData=="function"&&Ra instanceof FormData||isFunction$1(Ra.append)&&((qa=kindOf(Ra))==="formdata"||qa==="object"&&isFunction$1(Ra.toString)&&Ra.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream$3,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=Ra=>Ra.trim?Ra.trim():Ra.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(Ra,qa,{allOwnKeys:nd=!1}={}){if(Ra===null||typeof Ra>"u")return;let od,ld;if(typeof Ra!="object"&&(Ra=[Ra]),isArray(Ra))for(od=0,ld=Ra.length;od0;)if(ld=nd[od],qa===ld.toLowerCase())return ld;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global$1,isContextDefined=Ra=>!isUndefined(Ra)&&Ra!==_global;function merge(){const{caseless:Ra}=isContextDefined(this)&&this||{},qa={},nd=(od,ld)=>{const ud=Ra&&findKey(qa,ld)||ld;isPlainObject(qa[ud])&&isPlainObject(od)?qa[ud]=merge(qa[ud],od):isPlainObject(od)?qa[ud]=merge({},od):isArray(od)?qa[ud]=od.slice():qa[ud]=od};for(let od=0,ld=arguments.length;od(forEach(qa,(ld,ud)=>{nd&&isFunction$1(ld)?Ra[ud]=bind(ld,nd):Ra[ud]=ld},{allOwnKeys:od}),Ra),stripBOM=Ra=>(Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)),Ra),inherits$1=(Ra,qa,nd,od)=>{Ra.prototype=Object.create(qa.prototype,od),Ra.prototype.constructor=Ra,Object.defineProperty(Ra,"super",{value:qa.prototype}),nd&&Object.assign(Ra.prototype,nd)},toFlatObject=(Ra,qa,nd,od)=>{let ld,ud,dd;const pd={};if(qa=qa||{},Ra==null)return qa;do{for(ld=Object.getOwnPropertyNames(Ra),ud=ld.length;ud-- >0;)dd=ld[ud],(!od||od(dd,Ra,qa))&&!pd[dd]&&(qa[dd]=Ra[dd],pd[dd]=!0);Ra=nd!==!1&&getPrototypeOf(Ra)}while(Ra&&(!nd||nd(Ra,qa))&&Ra!==Object.prototype);return qa},endsWith=(Ra,qa,nd)=>{Ra=String(Ra),(nd===void 0||nd>Ra.length)&&(nd=Ra.length),nd-=qa.length;const od=Ra.indexOf(qa,nd);return od!==-1&&od===nd},toArray$1=Ra=>{if(!Ra)return null;if(isArray(Ra))return Ra;let qa=Ra.length;if(!isNumber$1(qa))return null;const nd=new Array(qa);for(;qa-- >0;)nd[qa]=Ra[qa];return nd},isTypedArray=(Ra=>qa=>Ra&&qa instanceof Ra)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(Ra,qa)=>{const od=(Ra&&Ra[Symbol.iterator]).call(Ra);let ld;for(;(ld=od.next())&&!ld.done;){const ud=ld.value;qa.call(Ra,ud[0],ud[1])}},matchAll=(Ra,qa)=>{let nd;const od=[];for(;(nd=Ra.exec(qa))!==null;)od.push(nd);return od},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=Ra=>Ra.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(nd,od,ld){return od.toUpperCase()+ld}),hasOwnProperty$1=(({hasOwnProperty:Ra})=>(qa,nd)=>Ra.call(qa,nd))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(Ra,qa)=>{const nd=Object.getOwnPropertyDescriptors(Ra),od={};forEach(nd,(ld,ud)=>{let dd;(dd=qa(ld,ud,Ra))!==!1&&(od[ud]=dd||ld)}),Object.defineProperties(Ra,od)},freezeMethods=Ra=>{reduceDescriptors(Ra,(qa,nd)=>{if(isFunction$1(Ra)&&["arguments","caller","callee"].indexOf(nd)!==-1)return!1;const od=Ra[nd];if(isFunction$1(od)){if(qa.enumerable=!1,"writable"in qa){qa.writable=!1;return}qa.set||(qa.set=()=>{throw Error("Can not rewrite read-only method '"+nd+"'")})}})},toObjectSet=(Ra,qa)=>{const nd={},od=ld=>{ld.forEach(ud=>{nd[ud]=!0})};return isArray(Ra)?od(Ra):od(String(Ra).split(qa)),nd},noop=()=>{},toFiniteNumber=(Ra,qa)=>Ra!=null&&Number.isFinite(Ra=+Ra)?Ra:qa,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(Ra=16,qa=ALPHABET.ALPHA_DIGIT)=>{let nd="";const{length:od}=qa;for(;Ra--;)nd+=qa[Math.random()*od|0];return nd};function isSpecCompliantForm(Ra){return!!(Ra&&isFunction$1(Ra.append)&&Ra[Symbol.toStringTag]==="FormData"&&Ra[Symbol.iterator])}const toJSONObject=Ra=>{const qa=new Array(10),nd=(od,ld)=>{if(isObject$1(od)){if(qa.indexOf(od)>=0)return;if(!("toJSON"in od)){qa[ld]=od;const ud=isArray(od)?[]:{};return forEach(od,(dd,pd)=>{const fd=nd(dd,ld+1);!isUndefined(fd)&&(ud[pd]=fd)}),qa[ld]=void 0,ud}}return od};return nd(Ra,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=Ra=>Ra&&(isObject$1(Ra)||isFunction$1(Ra))&&isFunction$1(Ra.then)&&isFunction$1(Ra.catch),_setImmediate=((Ra,qa)=>Ra?setImmediate:qa?((nd,od)=>(_global.addEventListener("message",({source:ld,data:ud})=>{ld===_global&&ud===nd&&od.length&&od.shift()()},!1),ld=>{od.push(ld),_global.postMessage(nd,"*")}))(`axios@${Math.random()}`,[]):nd=>setTimeout(nd))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof define_process_default$7<"u"&&define_process_default$7.nextTick||_setImmediate,utils$2={isArray,isArrayBuffer:isArrayBuffer$2,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject:isObject$1,isPlainObject,isReadableStream:isReadableStream$3,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(Ra,qa,nd,od,ld){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=Ra,this.name="AxiosError",qa&&(this.code=qa),nd&&(this.config=nd),od&&(this.request=od),ld&&(this.response=ld,this.status=ld.status?ld.status:null)}utils$2.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$2.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(Ra=>{descriptors[Ra]={value:Ra}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(Ra,qa,nd,od,ld,ud)=>{const dd=Object.create(prototype$1);return utils$2.toFlatObject(Ra,dd,function(fd){return fd!==Error.prototype},pd=>pd!=="isAxiosError"),AxiosError.call(dd,Ra.message,qa,nd,od,ld),dd.cause=Ra,dd.name=Ra.name,ud&&Object.assign(dd,ud),dd};const httpAdapter=null;function isVisitable(Ra){return utils$2.isPlainObject(Ra)||utils$2.isArray(Ra)}function removeBrackets(Ra){return utils$2.endsWith(Ra,"[]")?Ra.slice(0,-2):Ra}function renderKey(Ra,qa,nd){return Ra?Ra.concat(qa).map(function(ld,ud){return ld=removeBrackets(ld),!nd&&ud?"["+ld+"]":ld}).join(nd?".":""):qa}function isFlatArray(Ra){return utils$2.isArray(Ra)&&!Ra.some(isVisitable)}const predicates=utils$2.toFlatObject(utils$2,{},null,function(qa){return/^is[A-Z]/.test(qa)});function toFormData(Ra,qa,nd){if(!utils$2.isObject(Ra))throw new TypeError("target must be an object");qa=qa||new FormData,nd=utils$2.toFlatObject(nd,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Ld,Gd){return!utils$2.isUndefined(Gd[Ld])});const od=nd.metaTokens,ld=nd.visitor||vd,ud=nd.dots,dd=nd.indexes,fd=(nd.Blob||typeof Blob<"u"&&Blob)&&utils$2.isSpecCompliantForm(qa);if(!utils$2.isFunction(ld))throw new TypeError("visitor must be a function");function md(kd){if(kd===null)return"";if(utils$2.isDate(kd))return kd.toISOString();if(!fd&&utils$2.isBlob(kd))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$2.isArrayBuffer(kd)||utils$2.isTypedArray(kd)?fd&&typeof Blob=="function"?new Blob([kd]):Buffer$4.from(kd):kd}function vd(kd,Ld,Gd){let jd=kd;if(kd&&!Gd&&typeof kd=="object"){if(utils$2.endsWith(Ld,"{}"))Ld=od?Ld:Ld.slice(0,-2),kd=JSON.stringify(kd);else if(utils$2.isArray(kd)&&isFlatArray(kd)||(utils$2.isFileList(kd)||utils$2.endsWith(Ld,"[]"))&&(jd=utils$2.toArray(kd)))return Ld=removeBrackets(Ld),jd.forEach(function(Ud,qd){!(utils$2.isUndefined(Ud)||Ud===null)&&qa.append(dd===!0?renderKey([Ld],qd,ud):dd===null?Ld:Ld+"[]",md(Ud))}),!1}return isVisitable(kd)?!0:(qa.append(renderKey(Gd,Ld,ud),md(kd)),!1)}const Ad=[],Nd=Object.assign(predicates,{defaultVisitor:vd,convertValue:md,isVisitable});function Od(kd,Ld){if(!utils$2.isUndefined(kd)){if(Ad.indexOf(kd)!==-1)throw Error("Circular reference detected in "+Ld.join("."));Ad.push(kd),utils$2.forEach(kd,function(jd,Fd){(!(utils$2.isUndefined(jd)||jd===null)&&ld.call(qa,jd,utils$2.isString(Fd)?Fd.trim():Fd,Ld,Nd))===!0&&Od(jd,Ld?Ld.concat(Fd):[Fd])}),Ad.pop()}}if(!utils$2.isObject(Ra))throw new TypeError("data must be an object");return Od(Ra),qa}function encode$2(Ra){const qa={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(Ra).replace(/[!'()~]|%20|%00/g,function(od){return qa[od]})}function AxiosURLSearchParams(Ra,qa){this._pairs=[],Ra&&toFormData(Ra,this,qa)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(qa,nd){this._pairs.push([qa,nd])};prototype.toString=function(qa){const nd=qa?function(od){return qa.call(this,od,encode$2)}:encode$2;return this._pairs.map(function(ld){return nd(ld[0])+"="+nd(ld[1])},"").join("&")};function encode$1(Ra){return encodeURIComponent(Ra).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(Ra,qa,nd){if(!qa)return Ra;const od=nd&&nd.encode||encode$1;utils$2.isFunction(nd)&&(nd={serialize:nd});const ld=nd&&nd.serialize;let ud;if(ld?ud=ld(qa,nd):ud=utils$2.isURLSearchParams(qa)?qa.toString():new AxiosURLSearchParams(qa,nd).toString(od),ud){const dd=Ra.indexOf("#");dd!==-1&&(Ra=Ra.slice(0,dd)),Ra+=(Ra.indexOf("?")===-1?"?":"&")+ud}return Ra}class InterceptorManager{constructor(){this.handlers=[]}use(qa,nd,od){return this.handlers.push({fulfilled:qa,rejected:nd,synchronous:od?od.synchronous:!1,runWhen:od?od.runWhen:null}),this.handlers.length-1}eject(qa){this.handlers[qa]&&(this.handlers[qa]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(qa){utils$2.forEach(this.handlers,function(od){od!==null&&qa(od)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils$1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils$1,...platform$1};function toURLEncodedForm(Ra,qa){return toFormData(Ra,new platform.classes.URLSearchParams,Object.assign({visitor:function(nd,od,ld,ud){return platform.isNode&&utils$2.isBuffer(nd)?(this.append(od,nd.toString("base64")),!1):ud.defaultVisitor.apply(this,arguments)}},qa))}function parsePropPath(Ra){return utils$2.matchAll(/\w+|\[(\w*)]/g,Ra).map(qa=>qa[0]==="[]"?"":qa[1]||qa[0])}function arrayToObject(Ra){const qa={},nd=Object.keys(Ra);let od;const ld=nd.length;let ud;for(od=0;od=nd.length;return dd=!dd&&utils$2.isArray(ld)?ld.length:dd,fd?(utils$2.hasOwnProp(ld,dd)?ld[dd]=[ld[dd],od]:ld[dd]=od,!pd):((!ld[dd]||!utils$2.isObject(ld[dd]))&&(ld[dd]=[]),qa(nd,od,ld[dd],ud)&&utils$2.isArray(ld[dd])&&(ld[dd]=arrayToObject(ld[dd])),!pd)}if(utils$2.isFormData(Ra)&&utils$2.isFunction(Ra.entries)){const nd={};return utils$2.forEachEntry(Ra,(od,ld)=>{qa(parsePropPath(od),ld,nd,0)}),nd}return null}function stringifySafely(Ra,qa,nd){if(utils$2.isString(Ra))try{return(qa||JSON.parse)(Ra),utils$2.trim(Ra)}catch(od){if(od.name!=="SyntaxError")throw od}return(0,JSON.stringify)(Ra)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(qa,nd){const od=nd.getContentType()||"",ld=od.indexOf("application/json")>-1,ud=utils$2.isObject(qa);if(ud&&utils$2.isHTMLForm(qa)&&(qa=new FormData(qa)),utils$2.isFormData(qa))return ld?JSON.stringify(formDataToJSON(qa)):qa;if(utils$2.isArrayBuffer(qa)||utils$2.isBuffer(qa)||utils$2.isStream(qa)||utils$2.isFile(qa)||utils$2.isBlob(qa)||utils$2.isReadableStream(qa))return qa;if(utils$2.isArrayBufferView(qa))return qa.buffer;if(utils$2.isURLSearchParams(qa))return nd.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),qa.toString();let pd;if(ud){if(od.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(qa,this.formSerializer).toString();if((pd=utils$2.isFileList(qa))||od.indexOf("multipart/form-data")>-1){const fd=this.env&&this.env.FormData;return toFormData(pd?{"files[]":qa}:qa,fd&&new fd,this.formSerializer)}}return ud||ld?(nd.setContentType("application/json",!1),stringifySafely(qa)):qa}],transformResponse:[function(qa){const nd=this.transitional||defaults$1.transitional,od=nd&&nd.forcedJSONParsing,ld=this.responseType==="json";if(utils$2.isResponse(qa)||utils$2.isReadableStream(qa))return qa;if(qa&&utils$2.isString(qa)&&(od&&!this.responseType||ld)){const dd=!(nd&&nd.silentJSONParsing)&&ld;try{return JSON.parse(qa)}catch(pd){if(dd)throw pd.name==="SyntaxError"?AxiosError.from(pd,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):pd}}return qa}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(qa){return qa>=200&&qa<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$2.forEach(["delete","get","head","post","put","patch"],Ra=>{defaults$1.headers[Ra]={}});const ignoreDuplicateOf=utils$2.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=Ra=>{const qa={};let nd,od,ld;return Ra&&Ra.split(` `).forEach(function(dd){ld=dd.indexOf(":"),nd=dd.substring(0,ld).trim().toLowerCase(),od=dd.substring(ld+1).trim(),!(!nd||qa[nd]&&ignoreDuplicateOf[nd])&&(nd==="set-cookie"?qa[nd]?qa[nd].push(od):qa[nd]=[od]:qa[nd]=qa[nd]?qa[nd]+", "+od:od)}),qa},$internals=Symbol("internals");function normalizeHeader(Ra){return Ra&&String(Ra).trim().toLowerCase()}function normalizeValue(Ra){return Ra===!1||Ra==null?Ra:utils$2.isArray(Ra)?Ra.map(normalizeValue):String(Ra)}function parseTokens(Ra){const qa=Object.create(null),nd=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let od;for(;od=nd.exec(Ra);)qa[od[1]]=od[2];return qa}const isValidHeaderName=Ra=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Ra.trim());function matchHeaderValue(Ra,qa,nd,od,ld){if(utils$2.isFunction(od))return od.call(this,qa,nd);if(ld&&(qa=nd),!!utils$2.isString(qa)){if(utils$2.isString(od))return qa.indexOf(od)!==-1;if(utils$2.isRegExp(od))return od.test(qa)}}function formatHeader(Ra){return Ra.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(qa,nd,od)=>nd.toUpperCase()+od)}function buildAccessors(Ra,qa){const nd=utils$2.toCamelCase(" "+qa);["get","set","has"].forEach(od=>{Object.defineProperty(Ra,od+nd,{value:function(ld,ud,dd){return this[od].call(this,qa,ld,ud,dd)},configurable:!0})})}class AxiosHeaders{constructor(qa){qa&&this.set(qa)}set(qa,nd,od){const ld=this;function ud(pd,fd,md){const vd=normalizeHeader(fd);if(!vd)throw new Error("header name must be a non-empty string");const Ad=utils$2.findKey(ld,vd);(!Ad||ld[Ad]===void 0||md===!0||md===void 0&&ld[Ad]!==!1)&&(ld[Ad||fd]=normalizeValue(pd))}const dd=(pd,fd)=>utils$2.forEach(pd,(md,vd)=>ud(md,vd,fd));if(utils$2.isPlainObject(qa)||qa instanceof this.constructor)dd(qa,nd);else if(utils$2.isString(qa)&&(qa=qa.trim())&&!isValidHeaderName(qa))dd(parseHeaders(qa),nd);else if(utils$2.isHeaders(qa))for(const[pd,fd]of qa.entries())ud(fd,pd,od);else qa!=null&&ud(nd,qa,od);return this}get(qa,nd){if(qa=normalizeHeader(qa),qa){const od=utils$2.findKey(this,qa);if(od){const ld=this[od];if(!nd)return ld;if(nd===!0)return parseTokens(ld);if(utils$2.isFunction(nd))return nd.call(this,ld,od);if(utils$2.isRegExp(nd))return nd.exec(ld);throw new TypeError("parser must be boolean|regexp|function")}}}has(qa,nd){if(qa=normalizeHeader(qa),qa){const od=utils$2.findKey(this,qa);return!!(od&&this[od]!==void 0&&(!nd||matchHeaderValue(this,this[od],od,nd)))}return!1}delete(qa,nd){const od=this;let ld=!1;function ud(dd){if(dd=normalizeHeader(dd),dd){const pd=utils$2.findKey(od,dd);pd&&(!nd||matchHeaderValue(od,od[pd],pd,nd))&&(delete od[pd],ld=!0)}}return utils$2.isArray(qa)?qa.forEach(ud):ud(qa),ld}clear(qa){const nd=Object.keys(this);let od=nd.length,ld=!1;for(;od--;){const ud=nd[od];(!qa||matchHeaderValue(this,this[ud],ud,qa,!0))&&(delete this[ud],ld=!0)}return ld}normalize(qa){const nd=this,od={};return utils$2.forEach(this,(ld,ud)=>{const dd=utils$2.findKey(od,ud);if(dd){nd[dd]=normalizeValue(ld),delete nd[ud];return}const pd=qa?formatHeader(ud):String(ud).trim();pd!==ud&&delete nd[ud],nd[pd]=normalizeValue(ld),od[pd]=!0}),this}concat(...qa){return this.constructor.concat(this,...qa)}toJSON(qa){const nd=Object.create(null);return utils$2.forEach(this,(od,ld)=>{od!=null&&od!==!1&&(nd[ld]=qa&&utils$2.isArray(od)?od.join(", "):od)}),nd}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([qa,nd])=>qa+": "+nd).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(qa){return qa instanceof this?qa:new this(qa)}static concat(qa,...nd){const od=new this(qa);return nd.forEach(ld=>od.set(ld)),od}static accessor(qa){const od=(this[$internals]=this[$internals]={accessors:{}}).accessors,ld=this.prototype;function ud(dd){const pd=normalizeHeader(dd);od[pd]||(buildAccessors(ld,dd),od[pd]=!0)}return utils$2.isArray(qa)?qa.forEach(ud):ud(qa),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$2.reduceDescriptors(AxiosHeaders.prototype,({value:Ra},qa)=>{let nd=qa[0].toUpperCase()+qa.slice(1);return{get:()=>Ra,set(od){this[nd]=od}}});utils$2.freezeMethods(AxiosHeaders);function transformData(Ra,qa){const nd=this||defaults$1,od=qa||nd,ld=AxiosHeaders.from(od.headers);let ud=od.data;return utils$2.forEach(Ra,function(pd){ud=pd.call(nd,ud,ld.normalize(),qa?qa.status:void 0)}),ld.normalize(),ud}function isCancel(Ra){return!!(Ra&&Ra.__CANCEL__)}function CanceledError(Ra,qa,nd){AxiosError.call(this,Ra??"canceled",AxiosError.ERR_CANCELED,qa,nd),this.name="CanceledError"}utils$2.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ra,qa,nd){const od=nd.config.validateStatus;!nd.status||!od||od(nd.status)?Ra(nd):qa(new AxiosError("Request failed with status code "+nd.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(nd.status/100)-4],nd.config,nd.request,nd))}function parseProtocol(Ra){const qa=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Ra);return qa&&qa[1]||""}function speedometer(Ra,qa){Ra=Ra||10;const nd=new Array(Ra),od=new Array(Ra);let ld=0,ud=0,dd;return qa=qa!==void 0?qa:1e3,function(fd){const md=Date.now(),vd=od[ud];dd||(dd=md),nd[ld]=fd,od[ld]=md;let Ad=ud,Nd=0;for(;Ad!==ld;)Nd+=nd[Ad++],Ad=Ad%Ra;if(ld=(ld+1)%Ra,ld===ud&&(ud=(ud+1)%Ra),md-dd{nd=vd,ld=null,ud&&(clearTimeout(ud),ud=null),Ra.apply(null,md)};return[(...md)=>{const vd=Date.now(),Ad=vd-nd;Ad>=od?dd(md,vd):(ld=md,ud||(ud=setTimeout(()=>{ud=null,dd(ld)},od-Ad)))},()=>ld&&dd(ld)]}const progressEventReducer=(Ra,qa,nd=3)=>{let od=0;const ld=speedometer(50,250);return throttle(ud=>{const dd=ud.loaded,pd=ud.lengthComputable?ud.total:void 0,fd=dd-od,md=ld(fd),vd=dd<=pd;od=dd;const Ad={loaded:dd,total:pd,progress:pd?dd/pd:void 0,bytes:fd,rate:md||void 0,estimated:md&&pd&&vd?(pd-dd)/md:void 0,event:ud,lengthComputable:pd!=null,[qa?"download":"upload"]:!0};Ra(Ad)},nd)},progressEventDecorator=(Ra,qa)=>{const nd=Ra!=null;return[od=>qa[0]({lengthComputable:nd,total:Ra,loaded:od}),qa[1]]},asyncDecorator=Ra=>(...qa)=>utils$2.asap(()=>Ra(...qa)),isURLSameOrigin=platform.hasStandardBrowserEnv?((Ra,qa)=>nd=>(nd=new URL(nd,platform.origin),Ra.protocol===nd.protocol&&Ra.host===nd.host&&(qa||Ra.port===nd.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(Ra,qa,nd,od,ld,ud){const dd=[Ra+"="+encodeURIComponent(qa)];utils$2.isNumber(nd)&&dd.push("expires="+new Date(nd).toGMTString()),utils$2.isString(od)&&dd.push("path="+od),utils$2.isString(ld)&&dd.push("domain="+ld),ud===!0&&dd.push("secure"),document.cookie=dd.join("; ")},read(Ra){const qa=document.cookie.match(new RegExp("(^|;\\s*)("+Ra+")=([^;]*)"));return qa?decodeURIComponent(qa[3]):null},remove(Ra){this.write(Ra,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(Ra){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Ra)}function combineURLs(Ra,qa){return qa?Ra.replace(/\/?\/$/,"")+"/"+qa.replace(/^\/+/,""):Ra}function buildFullPath(Ra,qa){return Ra&&!isAbsoluteURL(qa)?combineURLs(Ra,qa):qa}const headersToObject=Ra=>Ra instanceof AxiosHeaders?{...Ra}:Ra;function mergeConfig(Ra,qa){qa=qa||{};const nd={};function od(md,vd,Ad,Nd){return utils$2.isPlainObject(md)&&utils$2.isPlainObject(vd)?utils$2.merge.call({caseless:Nd},md,vd):utils$2.isPlainObject(vd)?utils$2.merge({},vd):utils$2.isArray(vd)?vd.slice():vd}function ld(md,vd,Ad,Nd){if(utils$2.isUndefined(vd)){if(!utils$2.isUndefined(md))return od(void 0,md,Ad,Nd)}else return od(md,vd,Ad,Nd)}function ud(md,vd){if(!utils$2.isUndefined(vd))return od(void 0,vd)}function dd(md,vd){if(utils$2.isUndefined(vd)){if(!utils$2.isUndefined(md))return od(void 0,md)}else return od(void 0,vd)}function pd(md,vd,Ad){if(Ad in qa)return od(md,vd);if(Ad in Ra)return od(void 0,md)}const fd={url:ud,method:ud,data:ud,baseURL:dd,transformRequest:dd,transformResponse:dd,paramsSerializer:dd,timeout:dd,timeoutMessage:dd,withCredentials:dd,withXSRFToken:dd,adapter:dd,responseType:dd,xsrfCookieName:dd,xsrfHeaderName:dd,onUploadProgress:dd,onDownloadProgress:dd,decompress:dd,maxContentLength:dd,maxBodyLength:dd,beforeRedirect:dd,transport:dd,httpAgent:dd,httpsAgent:dd,cancelToken:dd,socketPath:dd,responseEncoding:dd,validateStatus:pd,headers:(md,vd,Ad)=>ld(headersToObject(md),headersToObject(vd),Ad,!0)};return utils$2.forEach(Object.keys(Object.assign({},Ra,qa)),function(vd){const Ad=fd[vd]||ld,Nd=Ad(Ra[vd],qa[vd],vd);utils$2.isUndefined(Nd)&&Ad!==pd||(nd[vd]=Nd)}),nd}const resolveConfig=Ra=>{const qa=mergeConfig({},Ra);let{data:nd,withXSRFToken:od,xsrfHeaderName:ld,xsrfCookieName:ud,headers:dd,auth:pd}=qa;qa.headers=dd=AxiosHeaders.from(dd),qa.url=buildURL(buildFullPath(qa.baseURL,qa.url),Ra.params,Ra.paramsSerializer),pd&&dd.set("Authorization","Basic "+btoa((pd.username||"")+":"+(pd.password?unescape(encodeURIComponent(pd.password)):"")));let fd;if(utils$2.isFormData(nd)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)dd.setContentType(void 0);else if((fd=dd.getContentType())!==!1){const[md,...vd]=fd?fd.split(";").map(Ad=>Ad.trim()).filter(Boolean):[];dd.setContentType([md||"multipart/form-data",...vd].join("; "))}}if(platform.hasStandardBrowserEnv&&(od&&utils$2.isFunction(od)&&(od=od(qa)),od||od!==!1&&isURLSameOrigin(qa.url))){const md=ld&&ud&&cookies.read(ud);md&&dd.set(ld,md)}return qa},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(Ra){return new Promise(function(nd,od){const ld=resolveConfig(Ra);let ud=ld.data;const dd=AxiosHeaders.from(ld.headers).normalize();let{responseType:pd,onUploadProgress:fd,onDownloadProgress:md}=ld,vd,Ad,Nd,Od,kd;function Ld(){Od&&Od(),kd&&kd(),ld.cancelToken&&ld.cancelToken.unsubscribe(vd),ld.signal&&ld.signal.removeEventListener("abort",vd)}let Gd=new XMLHttpRequest;Gd.open(ld.method.toUpperCase(),ld.url,!0),Gd.timeout=ld.timeout;function Ud(){if(!Gd)return;const jd=AxiosHeaders.from("getAllResponseHeaders"in Gd&&Gd.getAllResponseHeaders()),zd={data:!pd||pd==="text"||pd==="json"?Gd.responseText:Gd.response,status:Gd.status,statusText:Gd.statusText,headers:jd,config:Ra,request:Gd};settle(function(Jd){nd(Jd),Ld()},function(Jd){od(Jd),Ld()},zd),Gd=null}"onloadend"in Gd?Gd.onloadend=Ud:Gd.onreadystatechange=function(){!Gd||Gd.readyState!==4||Gd.status===0&&!(Gd.responseURL&&Gd.responseURL.indexOf("file:")===0)||setTimeout(Ud)},Gd.onabort=function(){Gd&&(od(new AxiosError("Request aborted",AxiosError.ECONNABORTED,Ra,Gd)),Gd=null)},Gd.onerror=function(){od(new AxiosError("Network Error",AxiosError.ERR_NETWORK,Ra,Gd)),Gd=null},Gd.ontimeout=function(){let qd=ld.timeout?"timeout of "+ld.timeout+"ms exceeded":"timeout exceeded";const zd=ld.transitional||transitionalDefaults;ld.timeoutErrorMessage&&(qd=ld.timeoutErrorMessage),od(new AxiosError(qd,zd.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,Ra,Gd)),Gd=null},ud===void 0&&dd.setContentType(null),"setRequestHeader"in Gd&&utils$2.forEach(dd.toJSON(),function(qd,zd){Gd.setRequestHeader(zd,qd)}),utils$2.isUndefined(ld.withCredentials)||(Gd.withCredentials=!!ld.withCredentials),pd&&pd!=="json"&&(Gd.responseType=ld.responseType),md&&([Nd,kd]=progressEventReducer(md,!0),Gd.addEventListener("progress",Nd)),fd&&Gd.upload&&([Ad,Od]=progressEventReducer(fd),Gd.upload.addEventListener("progress",Ad),Gd.upload.addEventListener("loadend",Od)),(ld.cancelToken||ld.signal)&&(vd=jd=>{Gd&&(od(!jd||jd.type?new CanceledError(null,Ra,Gd):jd),Gd.abort(),Gd=null)},ld.cancelToken&&ld.cancelToken.subscribe(vd),ld.signal&&(ld.signal.aborted?vd():ld.signal.addEventListener("abort",vd)));const Fd=parseProtocol(ld.url);if(Fd&&platform.protocols.indexOf(Fd)===-1){od(new AxiosError("Unsupported protocol "+Fd+":",AxiosError.ERR_BAD_REQUEST,Ra));return}Gd.send(ud||null)})},composeSignals=(Ra,qa)=>{const{length:nd}=Ra=Ra?Ra.filter(Boolean):[];if(qa||nd){let od=new AbortController,ld;const ud=function(md){if(!ld){ld=!0,pd();const vd=md instanceof Error?md:this.reason;od.abort(vd instanceof AxiosError?vd:new CanceledError(vd instanceof Error?vd.message:vd))}};let dd=qa&&setTimeout(()=>{dd=null,ud(new AxiosError(`timeout ${qa} of ms exceeded`,AxiosError.ETIMEDOUT))},qa);const pd=()=>{Ra&&(dd&&clearTimeout(dd),dd=null,Ra.forEach(md=>{md.unsubscribe?md.unsubscribe(ud):md.removeEventListener("abort",ud)}),Ra=null)};Ra.forEach(md=>md.addEventListener("abort",ud));const{signal:fd}=od;return fd.unsubscribe=()=>utils$2.asap(pd),fd}},streamChunk=function*(Ra,qa){let nd=Ra.byteLength;if(nd{const ld=readBytes(Ra,qa);let ud=0,dd,pd=fd=>{dd||(dd=!0,od&&od(fd))};return new ReadableStream({async pull(fd){try{const{done:md,value:vd}=await ld.next();if(md){pd(),fd.close();return}let Ad=vd.byteLength;if(nd){let Nd=ud+=Ad;nd(Nd)}fd.enqueue(new Uint8Array(vd))}catch(md){throw pd(md),md}},cancel(fd){return pd(fd),ld.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(Ra=>qa=>Ra.encode(qa))(new TextEncoder):async Ra=>new Uint8Array(await new Response(Ra).arrayBuffer())),test=(Ra,...qa)=>{try{return!!Ra(...qa)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let Ra=!1;const qa=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return Ra=!0,"half"}}).headers.has("Content-Type");return Ra&&!qa}),DEFAULT_CHUNK_SIZE$1=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$2.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(Ra=>Ra.body)};isFetchSupported&&(Ra=>{["text","arrayBuffer","blob","formData","stream"].forEach(qa=>{!resolvers[qa]&&(resolvers[qa]=utils$2.isFunction(Ra[qa])?nd=>nd[qa]():(nd,od)=>{throw new AxiosError(`Response type '${qa}' is not supported`,AxiosError.ERR_NOT_SUPPORT,od)})})})(new Response);const getBodyLength=async Ra=>{if(Ra==null)return 0;if(utils$2.isBlob(Ra))return Ra.size;if(utils$2.isSpecCompliantForm(Ra))return(await new Request(platform.origin,{method:"POST",body:Ra}).arrayBuffer()).byteLength;if(utils$2.isArrayBufferView(Ra)||utils$2.isArrayBuffer(Ra))return Ra.byteLength;if(utils$2.isURLSearchParams(Ra)&&(Ra=Ra+""),utils$2.isString(Ra))return(await encodeText(Ra)).byteLength},resolveBodyLength=async(Ra,qa)=>{const nd=utils$2.toFiniteNumber(Ra.getContentLength());return nd??getBodyLength(qa)},fetchAdapter=isFetchSupported&&(async Ra=>{let{url:qa,method:nd,data:od,signal:ld,cancelToken:ud,timeout:dd,onDownloadProgress:pd,onUploadProgress:fd,responseType:md,headers:vd,withCredentials:Ad="same-origin",fetchOptions:Nd}=resolveConfig(Ra);md=md?(md+"").toLowerCase():"text";let Od=composeSignals([ld,ud&&ud.toAbortSignal()],dd),kd;const Ld=Od&&Od.unsubscribe&&(()=>{Od.unsubscribe()});let Gd;try{if(fd&&supportsRequestStream&&nd!=="get"&&nd!=="head"&&(Gd=await resolveBodyLength(vd,od))!==0){let zd=new Request(qa,{method:"POST",body:od,duplex:"half"}),Yd;if(utils$2.isFormData(od)&&(Yd=zd.headers.get("content-type"))&&vd.setContentType(Yd),zd.body){const[Jd,yf]=progressEventDecorator(Gd,progressEventReducer(asyncDecorator(fd)));od=trackStream(zd.body,DEFAULT_CHUNK_SIZE$1,Jd,yf)}}utils$2.isString(Ad)||(Ad=Ad?"include":"omit");const Ud="credentials"in Request.prototype;kd=new Request(qa,{...Nd,signal:Od,method:nd.toUpperCase(),headers:vd.normalize().toJSON(),body:od,duplex:"half",credentials:Ud?Ad:void 0});let Fd=await fetch(kd);const jd=supportsResponseStream&&(md==="stream"||md==="response");if(supportsResponseStream&&(pd||jd&&Ld)){const zd={};["status","statusText","headers"].forEach(Xd=>{zd[Xd]=Fd[Xd]});const Yd=utils$2.toFiniteNumber(Fd.headers.get("content-length")),[Jd,yf]=pd&&progressEventDecorator(Yd,progressEventReducer(asyncDecorator(pd),!0))||[];Fd=new Response(trackStream(Fd.body,DEFAULT_CHUNK_SIZE$1,Jd,()=>{yf&&yf(),Ld&&Ld()}),zd)}md=md||"text";let qd=await resolvers[utils$2.findKey(resolvers,md)||"text"](Fd,Ra);return!jd&&Ld&&Ld(),await new Promise((zd,Yd)=>{settle(zd,Yd,{data:qd,headers:AxiosHeaders.from(Fd.headers),status:Fd.status,statusText:Fd.statusText,config:Ra,request:kd})})}catch(Ud){throw Ld&&Ld(),Ud&&Ud.name==="TypeError"&&/fetch/i.test(Ud.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,Ra,kd),{cause:Ud.cause||Ud}):AxiosError.from(Ud,Ud&&Ud.code,Ra,kd)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$2.forEach(knownAdapters,(Ra,qa)=>{if(Ra){try{Object.defineProperty(Ra,"name",{value:qa})}catch{}Object.defineProperty(Ra,"adapterName",{value:qa})}});const renderReason=Ra=>`- ${Ra}`,isResolvedHandle=Ra=>utils$2.isFunction(Ra)||Ra===null||Ra===!1,adapters={getAdapter:Ra=>{Ra=utils$2.isArray(Ra)?Ra:[Ra];const{length:qa}=Ra;let nd,od;const ld={};for(let ud=0;ud`adapter ${pd} `+(fd===!1?"is not supported by the environment":"is not available in the build"));let dd=qa?ud.length>1?`since : +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(qa){return qa instanceof this?qa:new this(qa)}static concat(qa,...nd){const od=new this(qa);return nd.forEach(ld=>od.set(ld)),od}static accessor(qa){const od=(this[$internals]=this[$internals]={accessors:{}}).accessors,ld=this.prototype;function ud(dd){const pd=normalizeHeader(dd);od[pd]||(buildAccessors(ld,dd),od[pd]=!0)}return utils$2.isArray(qa)?qa.forEach(ud):ud(qa),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$2.reduceDescriptors(AxiosHeaders.prototype,({value:Ra},qa)=>{let nd=qa[0].toUpperCase()+qa.slice(1);return{get:()=>Ra,set(od){this[nd]=od}}});utils$2.freezeMethods(AxiosHeaders);function transformData(Ra,qa){const nd=this||defaults$1,od=qa||nd,ld=AxiosHeaders.from(od.headers);let ud=od.data;return utils$2.forEach(Ra,function(pd){ud=pd.call(nd,ud,ld.normalize(),qa?qa.status:void 0)}),ld.normalize(),ud}function isCancel(Ra){return!!(Ra&&Ra.__CANCEL__)}function CanceledError(Ra,qa,nd){AxiosError.call(this,Ra??"canceled",AxiosError.ERR_CANCELED,qa,nd),this.name="CanceledError"}utils$2.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ra,qa,nd){const od=nd.config.validateStatus;!nd.status||!od||od(nd.status)?Ra(nd):qa(new AxiosError("Request failed with status code "+nd.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(nd.status/100)-4],nd.config,nd.request,nd))}function parseProtocol(Ra){const qa=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Ra);return qa&&qa[1]||""}function speedometer(Ra,qa){Ra=Ra||10;const nd=new Array(Ra),od=new Array(Ra);let ld=0,ud=0,dd;return qa=qa!==void 0?qa:1e3,function(fd){const md=Date.now(),vd=od[ud];dd||(dd=md),nd[ld]=fd,od[ld]=md;let Ad=ud,Nd=0;for(;Ad!==ld;)Nd+=nd[Ad++],Ad=Ad%Ra;if(ld=(ld+1)%Ra,ld===ud&&(ud=(ud+1)%Ra),md-dd{nd=vd,ld=null,ud&&(clearTimeout(ud),ud=null),Ra.apply(null,md)};return[(...md)=>{const vd=Date.now(),Ad=vd-nd;Ad>=od?dd(md,vd):(ld=md,ud||(ud=setTimeout(()=>{ud=null,dd(ld)},od-Ad)))},()=>ld&&dd(ld)]}const progressEventReducer=(Ra,qa,nd=3)=>{let od=0;const ld=speedometer(50,250);return throttle(ud=>{const dd=ud.loaded,pd=ud.lengthComputable?ud.total:void 0,fd=dd-od,md=ld(fd),vd=dd<=pd;od=dd;const Ad={loaded:dd,total:pd,progress:pd?dd/pd:void 0,bytes:fd,rate:md||void 0,estimated:md&&pd&&vd?(pd-dd)/md:void 0,event:ud,lengthComputable:pd!=null,[qa?"download":"upload"]:!0};Ra(Ad)},nd)},progressEventDecorator=(Ra,qa)=>{const nd=Ra!=null;return[od=>qa[0]({lengthComputable:nd,total:Ra,loaded:od}),qa[1]]},asyncDecorator=Ra=>(...qa)=>utils$2.asap(()=>Ra(...qa)),isURLSameOrigin=platform.hasStandardBrowserEnv?((Ra,qa)=>nd=>(nd=new URL(nd,platform.origin),Ra.protocol===nd.protocol&&Ra.host===nd.host&&(qa||Ra.port===nd.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(Ra,qa,nd,od,ld,ud){const dd=[Ra+"="+encodeURIComponent(qa)];utils$2.isNumber(nd)&&dd.push("expires="+new Date(nd).toGMTString()),utils$2.isString(od)&&dd.push("path="+od),utils$2.isString(ld)&&dd.push("domain="+ld),ud===!0&&dd.push("secure"),document.cookie=dd.join("; ")},read(Ra){const qa=document.cookie.match(new RegExp("(^|;\\s*)("+Ra+")=([^;]*)"));return qa?decodeURIComponent(qa[3]):null},remove(Ra){this.write(Ra,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(Ra){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Ra)}function combineURLs(Ra,qa){return qa?Ra.replace(/\/?\/$/,"")+"/"+qa.replace(/^\/+/,""):Ra}function buildFullPath(Ra,qa){return Ra&&!isAbsoluteURL(qa)?combineURLs(Ra,qa):qa}const headersToObject=Ra=>Ra instanceof AxiosHeaders?{...Ra}:Ra;function mergeConfig(Ra,qa){qa=qa||{};const nd={};function od(md,vd,Ad,Nd){return utils$2.isPlainObject(md)&&utils$2.isPlainObject(vd)?utils$2.merge.call({caseless:Nd},md,vd):utils$2.isPlainObject(vd)?utils$2.merge({},vd):utils$2.isArray(vd)?vd.slice():vd}function ld(md,vd,Ad,Nd){if(utils$2.isUndefined(vd)){if(!utils$2.isUndefined(md))return od(void 0,md,Ad,Nd)}else return od(md,vd,Ad,Nd)}function ud(md,vd){if(!utils$2.isUndefined(vd))return od(void 0,vd)}function dd(md,vd){if(utils$2.isUndefined(vd)){if(!utils$2.isUndefined(md))return od(void 0,md)}else return od(void 0,vd)}function pd(md,vd,Ad){if(Ad in qa)return od(md,vd);if(Ad in Ra)return od(void 0,md)}const fd={url:ud,method:ud,data:ud,baseURL:dd,transformRequest:dd,transformResponse:dd,paramsSerializer:dd,timeout:dd,timeoutMessage:dd,withCredentials:dd,withXSRFToken:dd,adapter:dd,responseType:dd,xsrfCookieName:dd,xsrfHeaderName:dd,onUploadProgress:dd,onDownloadProgress:dd,decompress:dd,maxContentLength:dd,maxBodyLength:dd,beforeRedirect:dd,transport:dd,httpAgent:dd,httpsAgent:dd,cancelToken:dd,socketPath:dd,responseEncoding:dd,validateStatus:pd,headers:(md,vd,Ad)=>ld(headersToObject(md),headersToObject(vd),Ad,!0)};return utils$2.forEach(Object.keys(Object.assign({},Ra,qa)),function(vd){const Ad=fd[vd]||ld,Nd=Ad(Ra[vd],qa[vd],vd);utils$2.isUndefined(Nd)&&Ad!==pd||(nd[vd]=Nd)}),nd}const resolveConfig=Ra=>{const qa=mergeConfig({},Ra);let{data:nd,withXSRFToken:od,xsrfHeaderName:ld,xsrfCookieName:ud,headers:dd,auth:pd}=qa;qa.headers=dd=AxiosHeaders.from(dd),qa.url=buildURL(buildFullPath(qa.baseURL,qa.url),Ra.params,Ra.paramsSerializer),pd&&dd.set("Authorization","Basic "+btoa((pd.username||"")+":"+(pd.password?unescape(encodeURIComponent(pd.password)):"")));let fd;if(utils$2.isFormData(nd)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)dd.setContentType(void 0);else if((fd=dd.getContentType())!==!1){const[md,...vd]=fd?fd.split(";").map(Ad=>Ad.trim()).filter(Boolean):[];dd.setContentType([md||"multipart/form-data",...vd].join("; "))}}if(platform.hasStandardBrowserEnv&&(od&&utils$2.isFunction(od)&&(od=od(qa)),od||od!==!1&&isURLSameOrigin(qa.url))){const md=ld&&ud&&cookies.read(ud);md&&dd.set(ld,md)}return qa},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(Ra){return new Promise(function(nd,od){const ld=resolveConfig(Ra);let ud=ld.data;const dd=AxiosHeaders.from(ld.headers).normalize();let{responseType:pd,onUploadProgress:fd,onDownloadProgress:md}=ld,vd,Ad,Nd,Od,kd;function Ld(){Od&&Od(),kd&&kd(),ld.cancelToken&&ld.cancelToken.unsubscribe(vd),ld.signal&&ld.signal.removeEventListener("abort",vd)}let Gd=new XMLHttpRequest;Gd.open(ld.method.toUpperCase(),ld.url,!0),Gd.timeout=ld.timeout;function jd(){if(!Gd)return;const Ud=AxiosHeaders.from("getAllResponseHeaders"in Gd&&Gd.getAllResponseHeaders()),zd={data:!pd||pd==="text"||pd==="json"?Gd.responseText:Gd.response,status:Gd.status,statusText:Gd.statusText,headers:Ud,config:Ra,request:Gd};settle(function(Jd){nd(Jd),Ld()},function(Jd){od(Jd),Ld()},zd),Gd=null}"onloadend"in Gd?Gd.onloadend=jd:Gd.onreadystatechange=function(){!Gd||Gd.readyState!==4||Gd.status===0&&!(Gd.responseURL&&Gd.responseURL.indexOf("file:")===0)||setTimeout(jd)},Gd.onabort=function(){Gd&&(od(new AxiosError("Request aborted",AxiosError.ECONNABORTED,Ra,Gd)),Gd=null)},Gd.onerror=function(){od(new AxiosError("Network Error",AxiosError.ERR_NETWORK,Ra,Gd)),Gd=null},Gd.ontimeout=function(){let qd=ld.timeout?"timeout of "+ld.timeout+"ms exceeded":"timeout exceeded";const zd=ld.transitional||transitionalDefaults;ld.timeoutErrorMessage&&(qd=ld.timeoutErrorMessage),od(new AxiosError(qd,zd.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,Ra,Gd)),Gd=null},ud===void 0&&dd.setContentType(null),"setRequestHeader"in Gd&&utils$2.forEach(dd.toJSON(),function(qd,zd){Gd.setRequestHeader(zd,qd)}),utils$2.isUndefined(ld.withCredentials)||(Gd.withCredentials=!!ld.withCredentials),pd&&pd!=="json"&&(Gd.responseType=ld.responseType),md&&([Nd,kd]=progressEventReducer(md,!0),Gd.addEventListener("progress",Nd)),fd&&Gd.upload&&([Ad,Od]=progressEventReducer(fd),Gd.upload.addEventListener("progress",Ad),Gd.upload.addEventListener("loadend",Od)),(ld.cancelToken||ld.signal)&&(vd=Ud=>{Gd&&(od(!Ud||Ud.type?new CanceledError(null,Ra,Gd):Ud),Gd.abort(),Gd=null)},ld.cancelToken&&ld.cancelToken.subscribe(vd),ld.signal&&(ld.signal.aborted?vd():ld.signal.addEventListener("abort",vd)));const Fd=parseProtocol(ld.url);if(Fd&&platform.protocols.indexOf(Fd)===-1){od(new AxiosError("Unsupported protocol "+Fd+":",AxiosError.ERR_BAD_REQUEST,Ra));return}Gd.send(ud||null)})},composeSignals=(Ra,qa)=>{const{length:nd}=Ra=Ra?Ra.filter(Boolean):[];if(qa||nd){let od=new AbortController,ld;const ud=function(md){if(!ld){ld=!0,pd();const vd=md instanceof Error?md:this.reason;od.abort(vd instanceof AxiosError?vd:new CanceledError(vd instanceof Error?vd.message:vd))}};let dd=qa&&setTimeout(()=>{dd=null,ud(new AxiosError(`timeout ${qa} of ms exceeded`,AxiosError.ETIMEDOUT))},qa);const pd=()=>{Ra&&(dd&&clearTimeout(dd),dd=null,Ra.forEach(md=>{md.unsubscribe?md.unsubscribe(ud):md.removeEventListener("abort",ud)}),Ra=null)};Ra.forEach(md=>md.addEventListener("abort",ud));const{signal:fd}=od;return fd.unsubscribe=()=>utils$2.asap(pd),fd}},streamChunk=function*(Ra,qa){let nd=Ra.byteLength;if(nd{const ld=readBytes(Ra,qa);let ud=0,dd,pd=fd=>{dd||(dd=!0,od&&od(fd))};return new ReadableStream({async pull(fd){try{const{done:md,value:vd}=await ld.next();if(md){pd(),fd.close();return}let Ad=vd.byteLength;if(nd){let Nd=ud+=Ad;nd(Nd)}fd.enqueue(new Uint8Array(vd))}catch(md){throw pd(md),md}},cancel(fd){return pd(fd),ld.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(Ra=>qa=>Ra.encode(qa))(new TextEncoder):async Ra=>new Uint8Array(await new Response(Ra).arrayBuffer())),test=(Ra,...qa)=>{try{return!!Ra(...qa)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let Ra=!1;const qa=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return Ra=!0,"half"}}).headers.has("Content-Type");return Ra&&!qa}),DEFAULT_CHUNK_SIZE$1=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$2.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(Ra=>Ra.body)};isFetchSupported&&(Ra=>{["text","arrayBuffer","blob","formData","stream"].forEach(qa=>{!resolvers[qa]&&(resolvers[qa]=utils$2.isFunction(Ra[qa])?nd=>nd[qa]():(nd,od)=>{throw new AxiosError(`Response type '${qa}' is not supported`,AxiosError.ERR_NOT_SUPPORT,od)})})})(new Response);const getBodyLength=async Ra=>{if(Ra==null)return 0;if(utils$2.isBlob(Ra))return Ra.size;if(utils$2.isSpecCompliantForm(Ra))return(await new Request(platform.origin,{method:"POST",body:Ra}).arrayBuffer()).byteLength;if(utils$2.isArrayBufferView(Ra)||utils$2.isArrayBuffer(Ra))return Ra.byteLength;if(utils$2.isURLSearchParams(Ra)&&(Ra=Ra+""),utils$2.isString(Ra))return(await encodeText(Ra)).byteLength},resolveBodyLength=async(Ra,qa)=>{const nd=utils$2.toFiniteNumber(Ra.getContentLength());return nd??getBodyLength(qa)},fetchAdapter=isFetchSupported&&(async Ra=>{let{url:qa,method:nd,data:od,signal:ld,cancelToken:ud,timeout:dd,onDownloadProgress:pd,onUploadProgress:fd,responseType:md,headers:vd,withCredentials:Ad="same-origin",fetchOptions:Nd}=resolveConfig(Ra);md=md?(md+"").toLowerCase():"text";let Od=composeSignals([ld,ud&&ud.toAbortSignal()],dd),kd;const Ld=Od&&Od.unsubscribe&&(()=>{Od.unsubscribe()});let Gd;try{if(fd&&supportsRequestStream&&nd!=="get"&&nd!=="head"&&(Gd=await resolveBodyLength(vd,od))!==0){let zd=new Request(qa,{method:"POST",body:od,duplex:"half"}),Wd;if(utils$2.isFormData(od)&&(Wd=zd.headers.get("content-type"))&&vd.setContentType(Wd),zd.body){const[Jd,_f]=progressEventDecorator(Gd,progressEventReducer(asyncDecorator(fd)));od=trackStream(zd.body,DEFAULT_CHUNK_SIZE$1,Jd,_f)}}utils$2.isString(Ad)||(Ad=Ad?"include":"omit");const jd="credentials"in Request.prototype;kd=new Request(qa,{...Nd,signal:Od,method:nd.toUpperCase(),headers:vd.normalize().toJSON(),body:od,duplex:"half",credentials:jd?Ad:void 0});let Fd=await fetch(kd);const Ud=supportsResponseStream&&(md==="stream"||md==="response");if(supportsResponseStream&&(pd||Ud&&Ld)){const zd={};["status","statusText","headers"].forEach(Xd=>{zd[Xd]=Fd[Xd]});const Wd=utils$2.toFiniteNumber(Fd.headers.get("content-length")),[Jd,_f]=pd&&progressEventDecorator(Wd,progressEventReducer(asyncDecorator(pd),!0))||[];Fd=new Response(trackStream(Fd.body,DEFAULT_CHUNK_SIZE$1,Jd,()=>{_f&&_f(),Ld&&Ld()}),zd)}md=md||"text";let qd=await resolvers[utils$2.findKey(resolvers,md)||"text"](Fd,Ra);return!Ud&&Ld&&Ld(),await new Promise((zd,Wd)=>{settle(zd,Wd,{data:qd,headers:AxiosHeaders.from(Fd.headers),status:Fd.status,statusText:Fd.statusText,config:Ra,request:kd})})}catch(jd){throw Ld&&Ld(),jd&&jd.name==="TypeError"&&/fetch/i.test(jd.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,Ra,kd),{cause:jd.cause||jd}):AxiosError.from(jd,jd&&jd.code,Ra,kd)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$2.forEach(knownAdapters,(Ra,qa)=>{if(Ra){try{Object.defineProperty(Ra,"name",{value:qa})}catch{}Object.defineProperty(Ra,"adapterName",{value:qa})}});const renderReason=Ra=>`- ${Ra}`,isResolvedHandle=Ra=>utils$2.isFunction(Ra)||Ra===null||Ra===!1,adapters={getAdapter:Ra=>{Ra=utils$2.isArray(Ra)?Ra:[Ra];const{length:qa}=Ra;let nd,od;const ld={};for(let ud=0;ud`adapter ${pd} `+(fd===!1?"is not supported by the environment":"is not available in the build"));let dd=qa?ud.length>1?`since : `+ud.map(renderReason).join(` `):" "+renderReason(ud[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+dd,"ERR_NOT_SUPPORT")}return od},adapters:knownAdapters};function throwIfCancellationRequested(Ra){if(Ra.cancelToken&&Ra.cancelToken.throwIfRequested(),Ra.signal&&Ra.signal.aborted)throw new CanceledError(null,Ra)}function dispatchRequest(Ra){return throwIfCancellationRequested(Ra),Ra.headers=AxiosHeaders.from(Ra.headers),Ra.data=transformData.call(Ra,Ra.transformRequest),["post","put","patch"].indexOf(Ra.method)!==-1&&Ra.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(Ra.adapter||defaults$1.adapter)(Ra).then(function(od){return throwIfCancellationRequested(Ra),od.data=transformData.call(Ra,Ra.transformResponse,od),od.headers=AxiosHeaders.from(od.headers),od},function(od){return isCancel(od)||(throwIfCancellationRequested(Ra),od&&od.response&&(od.response.data=transformData.call(Ra,Ra.transformResponse,od.response),od.response.headers=AxiosHeaders.from(od.response.headers))),Promise.reject(od)})}const VERSION="1.7.8",validators$1={};["object","boolean","number","function","string","symbol"].forEach((Ra,qa)=>{validators$1[Ra]=function(od){return typeof od===Ra||"a"+(qa<1?"n ":" ")+Ra}});const deprecatedWarnings={};validators$1.transitional=function(qa,nd,od){function ld(ud,dd){return"[Axios v"+VERSION+"] Transitional option '"+ud+"'"+dd+(od?". "+od:"")}return(ud,dd,pd)=>{if(qa===!1)throw new AxiosError(ld(dd," has been removed"+(nd?" in "+nd:"")),AxiosError.ERR_DEPRECATED);return nd&&!deprecatedWarnings[dd]&&(deprecatedWarnings[dd]=!0,console.warn(ld(dd," has been deprecated since v"+nd+" and will be removed in the near future"))),qa?qa(ud,dd,pd):!0}};validators$1.spelling=function(qa){return(nd,od)=>(console.warn(`${od} is likely a misspelling of ${qa}`),!0)};function assertOptions(Ra,qa,nd){if(typeof Ra!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const od=Object.keys(Ra);let ld=od.length;for(;ld-- >0;){const ud=od[ld],dd=qa[ud];if(dd){const pd=Ra[ud],fd=pd===void 0||dd(pd,ud,Ra);if(fd!==!0)throw new AxiosError("option "+ud+" must be "+fd,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(nd!==!0)throw new AxiosError("Unknown option "+ud,AxiosError.ERR_BAD_OPTION)}}const validator$6={assertOptions,validators:validators$1},validators=validator$6.validators;class Axios{constructor(qa){this.defaults=qa,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(qa,nd){try{return await this._request(qa,nd)}catch(od){if(od instanceof Error){let ld={};Error.captureStackTrace?Error.captureStackTrace(ld):ld=new Error;const ud=ld.stack?ld.stack.replace(/^.+\n/,""):"";try{od.stack?ud&&!String(od.stack).endsWith(ud.replace(/^.+\n.+\n/,""))&&(od.stack+=` `+ud):od.stack=ud}catch{}}throw od}}_request(qa,nd){typeof qa=="string"?(nd=nd||{},nd.url=qa):nd=qa||{},nd=mergeConfig(this.defaults,nd);const{transitional:od,paramsSerializer:ld,headers:ud}=nd;od!==void 0&&validator$6.assertOptions(od,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ld!=null&&(utils$2.isFunction(ld)?nd.paramsSerializer={serialize:ld}:validator$6.assertOptions(ld,{encode:validators.function,serialize:validators.function},!0)),validator$6.assertOptions(nd,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),nd.method=(nd.method||this.defaults.method||"get").toLowerCase();let dd=ud&&utils$2.merge(ud.common,ud[nd.method]);ud&&utils$2.forEach(["delete","get","head","post","put","patch","common"],kd=>{delete ud[kd]}),nd.headers=AxiosHeaders.concat(dd,ud);const pd=[];let fd=!0;this.interceptors.request.forEach(function(Ld){typeof Ld.runWhen=="function"&&Ld.runWhen(nd)===!1||(fd=fd&&Ld.synchronous,pd.unshift(Ld.fulfilled,Ld.rejected))});const md=[];this.interceptors.response.forEach(function(Ld){md.push(Ld.fulfilled,Ld.rejected)});let vd,Ad=0,Nd;if(!fd){const kd=[dispatchRequest.bind(this),void 0];for(kd.unshift.apply(kd,pd),kd.push.apply(kd,md),Nd=kd.length,vd=Promise.resolve(nd);Ad{if(!od._listeners)return;let ud=od._listeners.length;for(;ud-- >0;)od._listeners[ud](ld);od._listeners=null}),this.promise.then=ld=>{let ud;const dd=new Promise(pd=>{od.subscribe(pd),ud=pd}).then(ld);return dd.cancel=function(){od.unsubscribe(ud)},dd},qa(function(ud,dd,pd){od.reason||(od.reason=new CanceledError(ud,dd,pd),nd(od.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(qa){if(this.reason){qa(this.reason);return}this._listeners?this._listeners.push(qa):this._listeners=[qa]}unsubscribe(qa){if(!this._listeners)return;const nd=this._listeners.indexOf(qa);nd!==-1&&this._listeners.splice(nd,1)}toAbortSignal(){const qa=new AbortController,nd=od=>{qa.abort(od)};return this.subscribe(nd),qa.signal.unsubscribe=()=>this.unsubscribe(nd),qa.signal}static source(){let qa;return{token:new CancelToken(function(ld){qa=ld}),cancel:qa}}}function spread(Ra){return function(nd){return Ra.apply(null,nd)}}function isAxiosError(Ra){return utils$2.isObject(Ra)&&Ra.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([Ra,qa])=>{HttpStatusCode[qa]=Ra});function createInstance(Ra){const qa=new Axios(Ra),nd=bind(Axios.prototype.request,qa);return utils$2.extend(nd,Axios.prototype,qa,{allOwnKeys:!0}),utils$2.extend(nd,qa,null,{allOwnKeys:!0}),nd.create=function(ld){return createInstance(mergeConfig(Ra,ld))},nd}const axios=createInstance(defaults$1);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(qa){return Promise.all(qa)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=Ra=>formDataToJSON(utils$2.isHTMLForm(Ra)?new FormData(Ra):Ra);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;const service=axios.create({baseURL:"",timeout:30*1e3});service.interceptors.request.use(Ra=>(/^(?:post|put|delete)$/i.test(`${Ra.method}`)&&Ra.data&&Ra.data.upload&&(Ra.headers["Content-Type"]="multipart/form-data"),Ra),Ra=>{Promise.reject(Ra)});service.interceptors.response.use(Ra=>Ra.data?Ra.data:Promise.reject(Ra),Ra=>Promise.reject(Ra));function utf16to8(Ra){let qa="";const nd=Ra.length;for(let od=0;od=1&&ld<=127?qa+=Ra.charAt(od):ld>2047?(qa+=String.fromCharCode(224|ld>>12&15),qa+=String.fromCharCode(128|ld>>6&63),qa+=String.fromCharCode(128|ld&63)):(qa+=String.fromCharCode(192|ld>>6&31),qa+=String.fromCharCode(128|ld&63))}return qa}function utf8to16(Ra){let qa="",nd=0;const od=Ra.length;for(;nd>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:qa+=Ra.charAt(nd-1);break;case 12:case 13:ud=Ra.charCodeAt(nd++),qa+=String.fromCharCode((ld&31)<<6|ud&63);break;case 14:ud=Ra.charCodeAt(nd++),dd=Ra.charCodeAt(nd++),qa+=String.fromCharCode((ld&15)<<12|(ud&63)<<6|dd&63);break}}return qa}const base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",base64DecodeChars=[-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 base64encode(Ra){let qa="",nd=0;const od=Ra.length;for(;nd>2),qa+=base64EncodeChars.charAt((ld&3)<<4),qa+="==";break}const ud=Ra.charCodeAt(nd++);if(nd===od){qa+=base64EncodeChars.charAt(ld>>2),qa+=base64EncodeChars.charAt((ld&3)<<4|(ud&240)>>4),qa+=base64EncodeChars.charAt((ud&15)<<2),qa+="=";break}const dd=Ra.charCodeAt(nd++);qa+=base64EncodeChars.charAt(ld>>2),qa+=base64EncodeChars.charAt((ld&3)<<4|(ud&240)>>4),qa+=base64EncodeChars.charAt((ud&15)<<2|(dd&192)>>6),qa+=base64EncodeChars.charAt(dd&63)}return qa}function base64decode(Ra){let qa,nd,od,ld,ud=0;const dd=Ra.length;let pd="";for(;ud>4);do{if(od=Ra.charCodeAt(ud++)&255,od===61)return pd;od=base64DecodeChars[od]}while(ud>2);do{if(ld=Ra.charCodeAt(ud++)&255,ld===61)return pd;ld=base64DecodeChars[ld]}while(ud{let qa=Ra.httpHandler;return{setHttpHandler(nd){qa=nd},httpHandler(){return qa},updateHttpClientConfig(nd,od){qa.updateHttpClientConfig(nd,od)},httpHandlerConfigs(){return qa.httpHandlerConfigs()}}},resolveHttpHandlerRuntimeConfig=Ra=>({httpHandler:Ra.httpHandler()});var HttpAuthLocation;(function(Ra){Ra.HEADER="header",Ra.QUERY="query"})(HttpAuthLocation||(HttpAuthLocation={}));var HttpApiKeyAuthLocation;(function(Ra){Ra.HEADER="header",Ra.QUERY="query"})(HttpApiKeyAuthLocation||(HttpApiKeyAuthLocation={}));var EndpointURLScheme;(function(Ra){Ra.HTTP="http",Ra.HTTPS="https"})(EndpointURLScheme||(EndpointURLScheme={}));var AlgorithmId;(function(Ra){Ra.MD5="md5",Ra.CRC32="crc32",Ra.CRC32C="crc32c",Ra.SHA1="sha1",Ra.SHA256="sha256"})(AlgorithmId||(AlgorithmId={}));var FieldPosition;(function(Ra){Ra[Ra.HEADER=0]="HEADER",Ra[Ra.TRAILER=1]="TRAILER"})(FieldPosition||(FieldPosition={}));const SMITHY_CONTEXT_KEY="__smithy_context";var IniSectionType;(function(Ra){Ra.PROFILE="profile",Ra.SSO_SESSION="sso-session",Ra.SERVICES="services"})(IniSectionType||(IniSectionType={}));var RequestHandlerProtocol;(function(Ra){Ra.HTTP_0_9="http/0.9",Ra.HTTP_1_0="http/1.0",Ra.TDS_8_0="tds/8.0"})(RequestHandlerProtocol||(RequestHandlerProtocol={}));class HttpRequest{constructor(qa){this.method=qa.method||"GET",this.hostname=qa.hostname||"localhost",this.port=qa.port,this.query=qa.query||{},this.headers=qa.headers||{},this.body=qa.body,this.protocol=qa.protocol?qa.protocol.slice(-1)!==":"?`${qa.protocol}:`:qa.protocol:"https:",this.path=qa.path?qa.path.charAt(0)!=="/"?`/${qa.path}`:qa.path:"/",this.username=qa.username,this.password=qa.password,this.fragment=qa.fragment}static clone(qa){const nd=new HttpRequest({...qa,headers:{...qa.headers}});return nd.query&&(nd.query=cloneQuery(nd.query)),nd}static isInstance(qa){if(!qa)return!1;const nd=qa;return"method"in nd&&"protocol"in nd&&"hostname"in nd&&"path"in nd&&typeof nd.query=="object"&&typeof nd.headers=="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(Ra){return Object.keys(Ra).reduce((qa,nd)=>{const od=Ra[nd];return{...qa,[nd]:Array.isArray(od)?[...od]:od}},{})}class HttpResponse{constructor(qa){this.statusCode=qa.statusCode,this.reason=qa.reason,this.headers=qa.headers||{},this.body=qa.body}static isInstance(qa){if(!qa)return!1;const nd=qa;return typeof nd.statusCode=="number"&&typeof nd.headers=="object"}}function addExpectContinueMiddleware(Ra){return qa=>async nd=>{var ld,ud;const{request:od}=nd;return HttpRequest.isInstance(od)&&od.body&&Ra.runtime==="node"&&((ud=(ld=Ra.requestHandler)==null?void 0:ld.constructor)==null?void 0:ud.name)!=="FetchHttpHandler"&&(od.headers={...od.headers,Expect:"100-continue"}),qa({...nd,request:od})}}const addExpectContinueMiddlewareOptions={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},getAddExpectContinuePlugin=Ra=>({applyToStack:qa=>{qa.add(addExpectContinueMiddleware(Ra),addExpectContinueMiddlewareOptions)}}),RequestChecksumCalculation={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},DEFAULT_REQUEST_CHECKSUM_CALCULATION=RequestChecksumCalculation.WHEN_SUPPORTED,DEFAULT_RESPONSE_CHECKSUM_VALIDATION=RequestChecksumCalculation.WHEN_SUPPORTED;var ChecksumAlgorithm;(function(Ra){Ra.MD5="MD5",Ra.CRC32="CRC32",Ra.CRC32C="CRC32C",Ra.SHA1="SHA1",Ra.SHA256="SHA256"})(ChecksumAlgorithm||(ChecksumAlgorithm={}));var ChecksumLocation;(function(Ra){Ra.HEADER="header",Ra.TRAILER="trailer"})(ChecksumLocation||(ChecksumLocation={}));const DEFAULT_CHECKSUM_ALGORITHM=ChecksumAlgorithm.MD5,S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM=ChecksumAlgorithm.CRC32;var SelectorType$1;(function(Ra){Ra.ENV="env",Ra.CONFIG="shared config entry"})(SelectorType$1||(SelectorType$1={}));function setCredentialFeature(Ra,qa,nd){return Ra.$source||(Ra.$source={}),Ra.$source[qa]=nd,Ra}function setFeature$1(Ra,qa,nd){Ra.__aws_sdk_context?Ra.__aws_sdk_context.features||(Ra.__aws_sdk_context.features={}):Ra.__aws_sdk_context={features:{}},Ra.__aws_sdk_context.features[qa]=nd}const getDateHeader=Ra=>{var qa,nd;return HttpResponse.isInstance(Ra)?((qa=Ra.headers)==null?void 0:qa.date)??((nd=Ra.headers)==null?void 0:nd.Date):void 0},getSkewCorrectedDate=Ra=>new Date(Date.now()+Ra),isClockSkewed=(Ra,qa)=>Math.abs(getSkewCorrectedDate(qa).getTime()-Ra)>=3e5,getUpdatedSystemClockOffset=(Ra,qa)=>{const nd=Date.parse(Ra);return isClockSkewed(nd,qa)?nd-Date.now():qa},throwSigningPropertyError=(Ra,qa)=>{if(!qa)throw new Error(`Property \`${Ra}\` is not resolved for AWS SDK SigV4Auth`);return qa},validateSigningProperties=async Ra=>{var md,vd,Ad;const qa=throwSigningPropertyError("context",Ra.context),nd=throwSigningPropertyError("config",Ra.config),od=(Ad=(vd=(md=qa.endpointV2)==null?void 0:md.properties)==null?void 0:vd.authSchemes)==null?void 0:Ad[0],ud=await throwSigningPropertyError("signer",nd.signer)(od),dd=Ra==null?void 0:Ra.signingRegion,pd=Ra==null?void 0:Ra.signingRegionSet,fd=Ra==null?void 0:Ra.signingName;return{config:nd,signer:ud,signingRegion:dd,signingRegionSet:pd,signingName:fd}};class AwsSdkSigV4Signer{async sign(qa,nd,od){var Ad;if(!HttpRequest.isInstance(qa))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const ld=await validateSigningProperties(od),{config:ud,signer:dd}=ld;let{signingRegion:pd,signingName:fd}=ld;const md=od.context;if(((Ad=md==null?void 0:md.authSchemes)==null?void 0:Ad.length)??!1){const[Nd,Od]=md.authSchemes;(Nd==null?void 0:Nd.name)==="sigv4a"&&(Od==null?void 0:Od.name)==="sigv4"&&(pd=(Od==null?void 0:Od.signingRegion)??pd,fd=(Od==null?void 0:Od.signingName)??fd)}return await dd.sign(qa,{signingDate:getSkewCorrectedDate(ud.systemClockOffset),signingRegion:pd,signingService:fd})}errorHandler(qa){return nd=>{const od=nd.ServerTime??getDateHeader(nd.$response);if(od){const ld=throwSigningPropertyError("config",qa.config),ud=ld.systemClockOffset;ld.systemClockOffset=getUpdatedSystemClockOffset(od,ld.systemClockOffset),ld.systemClockOffset!==ud&&nd.$metadata&&(nd.$metadata.clockSkewCorrected=!0)}throw nd}}successHandler(qa,nd){const od=getDateHeader(qa);if(od){const ld=throwSigningPropertyError("config",nd.config);ld.systemClockOffset=getUpdatedSystemClockOffset(od,ld.systemClockOffset)}}}class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(qa,nd,od){var Nd;if(!HttpRequest.isInstance(qa))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:ld,signer:ud,signingRegion:dd,signingRegionSet:pd,signingName:fd}=await validateSigningProperties(od),vd=(await((Nd=ld.sigv4aSigningRegionSet)==null?void 0:Nd.call(ld))??pd??[dd]).join(",");return await ud.sign(qa,{signingDate:getSkewCorrectedDate(ld.systemClockOffset),signingRegion:vd,signingService:fd})}}const getSmithyContext=Ra=>Ra[SMITHY_CONTEXT_KEY]||(Ra[SMITHY_CONTEXT_KEY]={}),normalizeProvider$1=Ra=>{if(typeof Ra=="function")return Ra;const qa=Promise.resolve(Ra);return()=>qa};function convertHttpAuthSchemesToMap(Ra){const qa=new Map;for(const nd of Ra)qa.set(nd.schemeId,nd);return qa}const httpAuthSchemeMiddleware=(Ra,qa)=>(nd,od)=>async ld=>{var md;const ud=Ra.httpAuthSchemeProvider(await qa.httpAuthSchemeParametersProvider(Ra,od,ld.input)),dd=convertHttpAuthSchemesToMap(Ra.httpAuthSchemes),pd=getSmithyContext(od),fd=[];for(const vd of ud){const Ad=dd.get(vd.schemeId);if(!Ad){fd.push(`HttpAuthScheme \`${vd.schemeId}\` was not enabled for this service.`);continue}const Nd=Ad.identityProvider(await qa.identityProviderConfigProvider(Ra));if(!Nd){fd.push(`HttpAuthScheme \`${vd.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:Od={},signingProperties:kd={}}=((md=vd.propertiesExtractor)==null?void 0:md.call(vd,Ra,od))||{};vd.identityProperties=Object.assign(vd.identityProperties||{},Od),vd.signingProperties=Object.assign(vd.signingProperties||{},kd),pd.selectedHttpAuthScheme={httpAuthOption:vd,identity:await Nd(vd.identityProperties),signer:Ad.signer};break}if(!pd.selectedHttpAuthScheme)throw new Error(fd.join(` @@ -1108,8 +1119,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `),vd.enqueue(`\r `)}vd.close()}else vd.enqueue(`${(od(Ad)||0).toString(16)}\r ${Ad}\r -`)}})},escapeUri=Ra=>encodeURIComponent(Ra).replace(/[!'()*]/g,hexEncode),hexEncode=Ra=>`%${Ra.charCodeAt(0).toString(16).toUpperCase()}`;function buildQueryString(Ra){const qa=[];for(let nd of Object.keys(Ra).sort()){const od=Ra[nd];if(nd=escapeUri(nd),Array.isArray(od))for(let ld=0,ud=od.length;ld{Ra&&setTimeout(()=>{const od=new Error(`Request did not complete within ${Ra} ms`);od.name="TimeoutError",nd(od)},Ra)})}const keepAliveSupport={supported:void 0};class FetchHttpHandler{static create(qa){return typeof(qa==null?void 0:qa.handle)=="function"?qa:new FetchHttpHandler(qa)}constructor(qa){typeof qa=="function"?this.configProvider=qa().then(nd=>nd||{}):(this.config=qa??{},this.configProvider=Promise.resolve(this.config)),keepAliveSupport.supported===void 0&&(keepAliveSupport.supported=typeof Request<"u"&&"keepalive"in createRequest("https://[::1]"))}destroy(){}async handle(qa,{abortSignal:nd}={}){var Ud;this.config||(this.config=await this.configProvider);const od=this.config.requestTimeout,ld=this.config.keepAlive===!0,ud=this.config.credentials;if(nd!=null&&nd.aborted){const Fd=new Error("Request aborted");return Fd.name="AbortError",Promise.reject(Fd)}let dd=qa.path;const pd=buildQueryString(qa.query||{});pd&&(dd+=`?${pd}`),qa.fragment&&(dd+=`#${qa.fragment}`);let fd="";if(qa.username!=null||qa.password!=null){const Fd=qa.username??"",jd=qa.password??"";fd=`${Fd}:${jd}@`}const{port:md,method:vd}=qa,Ad=`${qa.protocol}//${fd}${qa.hostname}${md?`:${md}`:""}${dd}`,Nd=vd==="GET"||vd==="HEAD"?void 0:qa.body,Od={body:Nd,headers:new Headers(qa.headers),method:vd,credentials:ud};(Ud=this.config)!=null&&Ud.cache&&(Od.cache=this.config.cache),Nd&&(Od.duplex="half"),typeof AbortController<"u"&&(Od.signal=nd),keepAliveSupport.supported&&(Od.keepalive=ld),typeof this.config.requestInit=="function"&&Object.assign(Od,this.config.requestInit(qa));let kd=()=>{};const Ld=createRequest(Ad,Od),Gd=[fetch(Ld).then(Fd=>{const jd=Fd.headers,qd={};for(const Yd of jd.entries())qd[Yd[0]]=Yd[1];return Fd.body!=null?{response:new HttpResponse({headers:qd,reason:Fd.statusText,statusCode:Fd.status,body:Fd.body})}:Fd.blob().then(Yd=>({response:new HttpResponse({headers:qd,reason:Fd.statusText,statusCode:Fd.status,body:Yd})}))}),requestTimeout(od)];return nd&&Gd.push(new Promise((Fd,jd)=>{const qd=()=>{const zd=new Error("Request aborted");zd.name="AbortError",jd(zd)};if(typeof nd.addEventListener=="function"){const zd=nd;zd.addEventListener("abort",qd,{once:!0}),kd=()=>zd.removeEventListener("abort",qd)}else nd.onabort=qd})),Promise.race(Gd).finally(kd)}updateHttpClientConfig(qa,nd){this.config=void 0,this.configProvider=this.configProvider.then(od=>(od[qa]=nd,od))}httpHandlerConfigs(){return this.config??{}}}const streamCollector=async Ra=>{var qa;return typeof Blob=="function"&&Ra instanceof Blob||((qa=Ra.constructor)==null?void 0:qa.name)==="Blob"?new Uint8Array(await Ra.arrayBuffer()):collectStream(Ra)};async function collectStream(Ra){const qa=[],nd=Ra.getReader();let od=!1,ld=0;for(;!od;){const{done:pd,value:fd}=await nd.read();fd&&(qa.push(fd),ld+=fd.length),od=pd}const ud=new Uint8Array(ld);let dd=0;for(const pd of qa)ud.set(pd,dd),dd+=pd.length;return ud}const SHORT_TO_HEX={},HEX_TO_SHORT={};for(let Ra=0;Ra<256;Ra++){let qa=Ra.toString(16).toLowerCase();qa.length===1&&(qa=`0${qa}`),SHORT_TO_HEX[Ra]=qa,HEX_TO_SHORT[qa]=Ra}function fromHex(Ra){if(Ra.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const qa=new Uint8Array(Ra.length/2);for(let nd=0;nd{var qa;return typeof ReadableStream=="function"&&(((qa=Ra==null?void 0:Ra.constructor)==null?void 0:qa.name)===ReadableStream.name||Ra instanceof ReadableStream)},ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED="The stream has already been transformed.",sdkStreamMixin=Ra=>{var ld,ud;if(!isBlobInstance(Ra)&&!isReadableStream$2(Ra)){const dd=((ud=(ld=Ra==null?void 0:Ra.__proto__)==null?void 0:ld.constructor)==null?void 0:ud.name)||Ra;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${dd}`)}let qa=!1;const nd=async()=>{if(qa)throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);return qa=!0,await streamCollector(Ra)},od=dd=>{if(typeof dd.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. -If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return dd.stream()};return Object.assign(Ra,{transformToByteArray:nd,transformToString:async dd=>{const pd=await nd();if(dd==="base64")return toBase64(pd);if(dd==="hex")return toHex(pd);if(dd===void 0||dd==="utf8"||dd==="utf-8")return toUtf8(pd);if(typeof TextDecoder=="function")return new TextDecoder(dd).decode(pd);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(qa)throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);if(qa=!0,isBlobInstance(Ra))return od(Ra);if(isReadableStream$2(Ra))return Ra;throw new Error(`Cannot transform payload to web stream, got ${Ra}`)}})},isBlobInstance=Ra=>typeof Blob=="function"&&Ra instanceof Blob;async function splitStream(Ra){return typeof Ra.stream=="function"&&(Ra=Ra.stream()),Ra.tee()}async function headStream(Ra,qa){let nd=0;const od=[],ld=Ra.getReader();let ud=!1;for(;!ud;){const{done:fd,value:md}=await ld.read();if(md&&(od.push(md),nd+=(md==null?void 0:md.byteLength)??0),nd>=qa)break;ud=fd}ld.releaseLock();const dd=new Uint8Array(Math.min(qa,nd));let pd=0;for(const fd of od){if(fd.byteLength>dd.byteLength-pd){dd.set(fd.subarray(0,dd.byteLength-pd),pd);break}else dd.set(fd,pd);pd+=fd.length}return dd}const ReadableStreamRef=typeof ReadableStream=="function"?ReadableStream:function(){};class ChecksumStream extends ReadableStreamRef{}const createChecksumStream=({expectedChecksum:Ra,checksum:qa,source:nd,checksumSourceLocation:od,base64Encoder:ld})=>{var fd;if(!isReadableStream$2(nd))throw new Error(`@smithy/util-stream: unsupported source type ${((fd=nd==null?void 0:nd.constructor)==null?void 0:fd.name)??nd} in ChecksumStream.`);const ud=ld??toBase64;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const dd=new TransformStream({start(){},async transform(md,vd){qa.update(md),vd.enqueue(md)},async flush(md){const vd=await qa.digest(),Ad=ud(vd);if(Ra!==Ad){const Nd=new Error(`Checksum mismatch: expected "${Ra}" but received "${Ad}" in response header "${od}".`);md.error(Nd)}else md.terminate()}});nd.pipeThrough(dd);const pd=dd.readable;return Object.setPrototypeOf(pd,ChecksumStream.prototype),pd},collectBody$1=async(Ra=new Uint8Array,qa)=>{if(Ra instanceof Uint8Array)return Uint8ArrayBlobAdapter.mutate(Ra);if(!Ra)return Uint8ArrayBlobAdapter.mutate(new Uint8Array);const nd=qa.streamCollector(Ra);return Uint8ArrayBlobAdapter.mutate(await nd)};function extendedEncodeURIComponent(Ra){return encodeURIComponent(Ra).replace(/[!'()*]/g,function(qa){return"%"+qa.charCodeAt(0).toString(16).toUpperCase()})}const resolvedPath=(Ra,qa,nd,od,ld,ud)=>{if(qa!=null&&qa[nd]!==void 0){const dd=od();if(dd.length<=0)throw new Error("Empty value provided for input HTTP label: "+nd+".");Ra=Ra.replace(ld,ud?dd.split("/").map(pd=>extendedEncodeURIComponent(pd)).join("/"):extendedEncodeURIComponent(dd))}else throw new Error("No value provided for input HTTP label: "+nd+".");return Ra};function requestBuilder(Ra,qa){return new RequestBuilder(Ra,qa)}class RequestBuilder{constructor(qa,nd){this.input=qa,this.context=nd,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:qa,protocol:nd="https",port:od,path:ld}=await this.context.endpoint();this.path=ld;for(const ud of this.resolvePathStack)ud(this.path);return new HttpRequest({protocol:nd,hostname:this.hostname||qa,port:od,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(qa){return this.hostname=qa,this}bp(qa){return this.resolvePathStack.push(nd=>{this.path=`${nd!=null&&nd.endsWith("/")?nd.slice(0,-1):nd||""}`+qa}),this}p(qa,nd,od,ld){return this.resolvePathStack.push(ud=>{this.path=resolvedPath(ud,this.input,qa,nd,od,ld)}),this}h(qa){return this.headers=qa,this}q(qa){return this.query=qa,this}b(qa){return this.body=qa,this}m(qa){return this.method=qa,this}}function setFeature(Ra,qa,nd){Ra.__smithy_context?Ra.__smithy_context.features||(Ra.__smithy_context.features={}):Ra.__smithy_context={features:{}},Ra.__smithy_context.features[qa]=nd}class DefaultIdentityProviderConfig{constructor(qa){this.authSchemes=new Map;for(const[nd,od]of Object.entries(qa))od!==void 0&&this.authSchemes.set(nd,od)}getIdentityProvider(qa){return this.authSchemes.get(qa)}}const createIsIdentityExpiredFunction=Ra=>qa=>doesIdentityRequireRefresh(qa)&&qa.expiration.getTime()-Date.now()Ra.expiration!==void 0,memoizeIdentityProvider=(Ra,qa,nd)=>{if(Ra===void 0)return;const od=typeof Ra!="function"?async()=>Promise.resolve(Ra):Ra;let ld,ud,dd,pd=!1;const fd=async md=>{ud||(ud=od(md));try{ld=await ud,dd=!0,pd=!1}finally{ud=void 0}return ld};return qa===void 0?async md=>((!dd||md!=null&&md.forceRefresh)&&(ld=await fd(md)),ld):async md=>((!dd||md!=null&&md.forceRefresh)&&(ld=await fd(md)),pd?ld:nd(ld)?(qa(ld)&&await fd(md),ld):(pd=!0,ld))},memoize$1=(Ra,qa,nd)=>{let od,ld,ud,dd=!1;const pd=async()=>{ld||(ld=Ra());try{od=await ld,ud=!0,dd=!1}finally{ld=void 0}return od};return async fd=>((!ud||fd!=null&&fd.forceRefresh)&&(od=await pd()),od)},resolveAwsSdkSigV4AConfig=Ra=>(Ra.sigv4aSigningRegionSet=normalizeProvider(Ra.sigv4aSigningRegionSet),Ra),ALGORITHM_QUERY_PARAM="X-Amz-Algorithm",CREDENTIAL_QUERY_PARAM="X-Amz-Credential",AMZ_DATE_QUERY_PARAM="X-Amz-Date",SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders",EXPIRES_QUERY_PARAM="X-Amz-Expires",SIGNATURE_QUERY_PARAM="X-Amz-Signature",TOKEN_QUERY_PARAM="X-Amz-Security-Token",AUTH_HEADER="authorization",AMZ_DATE_HEADER=AMZ_DATE_QUERY_PARAM.toLowerCase(),DATE_HEADER="date",GENERATED_HEADERS=[AUTH_HEADER,AMZ_DATE_HEADER,DATE_HEADER],SIGNATURE_HEADER=SIGNATURE_QUERY_PARAM.toLowerCase(),SHA256_HEADER="x-amz-content-sha256",TOKEN_HEADER=TOKEN_QUERY_PARAM.toLowerCase(),ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},PROXY_HEADER_PATTERN=/^proxy-/,SEC_HEADER_PATTERN=/^sec-/,ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256",EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD",UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD",MAX_CACHE_SIZE=50,KEY_TYPE_IDENTIFIER="aws4_request",MAX_PRESIGNED_TTL=60*60*24*7,signingKeyCache={},cacheQueue=[],createScope=(Ra,qa,nd)=>`${Ra}/${qa}/${nd}/${KEY_TYPE_IDENTIFIER}`,getSigningKey$1=async(Ra,qa,nd,od,ld)=>{const ud=await hmac$1(Ra,qa.secretAccessKey,qa.accessKeyId),dd=`${nd}:${od}:${ld}:${toHex(ud)}:${qa.sessionToken}`;if(dd in signingKeyCache)return signingKeyCache[dd];for(cacheQueue.push(dd);cacheQueue.length>MAX_CACHE_SIZE;)delete signingKeyCache[cacheQueue.shift()];let pd=`AWS4${qa.secretAccessKey}`;for(const fd of[nd,od,ld,KEY_TYPE_IDENTIFIER])pd=await hmac$1(Ra,pd,fd);return signingKeyCache[dd]=pd},hmac$1=(Ra,qa,nd)=>{const od=new Ra(qa);return od.update(toUint8Array(nd)),od.digest()},getCanonicalHeaders=({headers:Ra},qa,nd)=>{const od={};for(const ld of Object.keys(Ra).sort()){if(Ra[ld]==null)continue;const ud=ld.toLowerCase();(ud in ALWAYS_UNSIGNABLE_HEADERS||qa!=null&&qa.has(ud)||PROXY_HEADER_PATTERN.test(ud)||SEC_HEADER_PATTERN.test(ud))&&(!nd||nd&&!nd.has(ud))||(od[ud]=Ra[ld].trim().replace(/\s+/g," "))}return od},getCanonicalQuery=({query:Ra={}})=>{const qa=[],nd={};for(const od of Object.keys(Ra)){if(od.toLowerCase()===SIGNATURE_HEADER)continue;const ld=escapeUri(od);qa.push(ld);const ud=Ra[od];typeof ud=="string"?nd[ld]=`${ld}=${escapeUri(ud)}`:Array.isArray(ud)&&(nd[ld]=ud.slice(0).reduce((dd,pd)=>dd.concat([`${ld}=${escapeUri(pd)}`]),[]).sort().join("&"))}return qa.sort().map(od=>nd[od]).filter(od=>od).join("&")},isArrayBuffer$1=Ra=>typeof ArrayBuffer=="function"&&Ra instanceof ArrayBuffer||Object.prototype.toString.call(Ra)==="[object ArrayBuffer]",getPayloadHash=async({headers:Ra,body:qa},nd)=>{for(const od of Object.keys(Ra))if(od.toLowerCase()===SHA256_HEADER)return Ra[od];if(qa==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof qa=="string"||ArrayBuffer.isView(qa)||isArrayBuffer$1(qa)){const od=new nd;return od.update(toUint8Array(qa)),toHex(await od.digest())}return UNSIGNED_PAYLOAD};class HeaderFormatter{format(qa){const nd=[];for(const ud of Object.keys(qa)){const dd=fromUtf8$3(ud);nd.push(Uint8Array.from([dd.byteLength]),dd,this.formatHeaderValue(qa[ud]))}const od=new Uint8Array(nd.reduce((ud,dd)=>ud+dd.byteLength,0));let ld=0;for(const ud of nd)od.set(ud,ld),ld+=ud.byteLength;return od}formatHeaderValue(qa){switch(qa.type){case"boolean":return Uint8Array.from([qa.value?0:1]);case"byte":return Uint8Array.from([2,qa.value]);case"short":const nd=new DataView(new ArrayBuffer(3));return nd.setUint8(0,3),nd.setInt16(1,qa.value,!1),new Uint8Array(nd.buffer);case"integer":const od=new DataView(new ArrayBuffer(5));return od.setUint8(0,4),od.setInt32(1,qa.value,!1),new Uint8Array(od.buffer);case"long":const ld=new Uint8Array(9);return ld[0]=5,ld.set(qa.value.bytes,1),ld;case"binary":const ud=new DataView(new ArrayBuffer(3+qa.value.byteLength));ud.setUint8(0,6),ud.setUint16(1,qa.value.byteLength,!1);const dd=new Uint8Array(ud.buffer);return dd.set(qa.value,3),dd;case"string":const pd=fromUtf8$3(qa.value),fd=new DataView(new ArrayBuffer(3+pd.byteLength));fd.setUint8(0,7),fd.setUint16(1,pd.byteLength,!1);const md=new Uint8Array(fd.buffer);return md.set(pd,3),md;case"timestamp":const vd=new Uint8Array(9);return vd[0]=8,vd.set(Int64$1.fromNumber(qa.value.valueOf()).bytes,1),vd;case"uuid":if(!UUID_PATTERN$1.test(qa.value))throw new Error(`Invalid UUID received: ${qa.value}`);const Ad=new Uint8Array(17);return Ad[0]=9,Ad.set(fromHex(qa.value.replace(/\-/g,"")),1),Ad}}}var HEADER_VALUE_TYPE$1;(function(Ra){Ra[Ra.boolTrue=0]="boolTrue",Ra[Ra.boolFalse=1]="boolFalse",Ra[Ra.byte=2]="byte",Ra[Ra.short=3]="short",Ra[Ra.integer=4]="integer",Ra[Ra.long=5]="long",Ra[Ra.byteArray=6]="byteArray",Ra[Ra.string=7]="string",Ra[Ra.timestamp=8]="timestamp",Ra[Ra.uuid=9]="uuid"})(HEADER_VALUE_TYPE$1||(HEADER_VALUE_TYPE$1={}));const UUID_PATTERN$1=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let Int64$1=class DC{constructor(qa){if(this.bytes=qa,qa.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(qa){if(qa>9223372036854776e3||qa<-9223372036854776e3)throw new Error(`${qa} is too large (or, if negative, too small) to represent as an Int64`);const nd=new Uint8Array(8);for(let od=7,ld=Math.abs(Math.round(qa));od>-1&&ld>0;od--,ld/=256)nd[od]=ld;return qa<0&&negate$1(nd),new DC(nd)}valueOf(){const qa=this.bytes.slice(0),nd=qa[0]&128;return nd&&negate$1(qa),parseInt(toHex(qa),16)*(nd?-1:1)}toString(){return String(this.valueOf())}};function negate$1(Ra){for(let qa=0;qa<8;qa++)Ra[qa]^=255;for(let qa=7;qa>-1&&(Ra[qa]++,Ra[qa]===0);qa--);}const hasHeader$1=(Ra,qa)=>{Ra=Ra.toLowerCase();for(const nd of Object.keys(qa))if(Ra===nd.toLowerCase())return!0;return!1},moveHeadersToQuery=(Ra,qa={})=>{var ld,ud;const{headers:nd,query:od={}}=HttpRequest.clone(Ra);for(const dd of Object.keys(nd)){const pd=dd.toLowerCase();(pd.slice(0,6)==="x-amz-"&&!((ld=qa.unhoistableHeaders)!=null&&ld.has(pd))||(ud=qa.hoistableHeaders)!=null&&ud.has(pd))&&(od[dd]=nd[dd],delete nd[dd])}return{...Ra,headers:nd,query:od}},prepareRequest=Ra=>{Ra=HttpRequest.clone(Ra);for(const qa of Object.keys(Ra.headers))GENERATED_HEADERS.indexOf(qa.toLowerCase())>-1&&delete Ra.headers[qa];return Ra},iso8601=Ra=>toDate(Ra).toISOString().replace(/\.\d{3}Z$/,"Z"),toDate=Ra=>typeof Ra=="number"?new Date(Ra*1e3):typeof Ra=="string"?Number(Ra)?new Date(Number(Ra)*1e3):new Date(Ra):Ra;class SignatureV4{constructor({applyChecksum:qa,credentials:nd,region:od,service:ld,sha256:ud,uriEscapePath:dd=!0}){this.headerFormatter=new HeaderFormatter,this.service=ld,this.sha256=ud,this.uriEscapePath=dd,this.applyChecksum=typeof qa=="boolean"?qa:!0,this.regionProvider=normalizeProvider$1(od),this.credentialProvider=normalizeProvider$1(nd)}async presign(qa,nd={}){const{signingDate:od=new Date,expiresIn:ld=3600,unsignableHeaders:ud,unhoistableHeaders:dd,signableHeaders:pd,hoistableHeaders:fd,signingRegion:md,signingService:vd}=nd,Ad=await this.credentialProvider();this.validateResolvedCredentials(Ad);const Nd=md??await this.regionProvider(),{longDate:Od,shortDate:kd}=formatDate(od);if(ld>MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const Ld=createScope(kd,Nd,vd??this.service),Gd=moveHeadersToQuery(prepareRequest(qa),{unhoistableHeaders:dd,hoistableHeaders:fd});Ad.sessionToken&&(Gd.query[TOKEN_QUERY_PARAM]=Ad.sessionToken),Gd.query[ALGORITHM_QUERY_PARAM]=ALGORITHM_IDENTIFIER,Gd.query[CREDENTIAL_QUERY_PARAM]=`${Ad.accessKeyId}/${Ld}`,Gd.query[AMZ_DATE_QUERY_PARAM]=Od,Gd.query[EXPIRES_QUERY_PARAM]=ld.toString(10);const Ud=getCanonicalHeaders(Gd,ud,pd);return Gd.query[SIGNED_HEADERS_QUERY_PARAM]=getCanonicalHeaderList(Ud),Gd.query[SIGNATURE_QUERY_PARAM]=await this.getSignature(Od,Ld,this.getSigningKey(Ad,Nd,kd,vd),this.createCanonicalRequest(Gd,Ud,await getPayloadHash(qa,this.sha256))),Gd}async sign(qa,nd){return typeof qa=="string"?this.signString(qa,nd):qa.headers&&qa.payload?this.signEvent(qa,nd):qa.message?this.signMessage(qa,nd):this.signRequest(qa,nd)}async signEvent({headers:qa,payload:nd},{signingDate:od=new Date,priorSignature:ld,signingRegion:ud,signingService:dd}){const pd=ud??await this.regionProvider(),{shortDate:fd,longDate:md}=formatDate(od),vd=createScope(fd,pd,dd??this.service),Ad=await getPayloadHash({headers:{},body:nd},this.sha256),Nd=new this.sha256;Nd.update(qa);const Od=toHex(await Nd.digest()),kd=[EVENT_ALGORITHM_IDENTIFIER,md,vd,ld,Od,Ad].join(` +`)}})},escapeUri=Ra=>encodeURIComponent(Ra).replace(/[!'()*]/g,hexEncode),hexEncode=Ra=>`%${Ra.charCodeAt(0).toString(16).toUpperCase()}`;function buildQueryString(Ra){const qa=[];for(let nd of Object.keys(Ra).sort()){const od=Ra[nd];if(nd=escapeUri(nd),Array.isArray(od))for(let ld=0,ud=od.length;ld{Ra&&setTimeout(()=>{const od=new Error(`Request did not complete within ${Ra} ms`);od.name="TimeoutError",nd(od)},Ra)})}const keepAliveSupport={supported:void 0};class FetchHttpHandler{static create(qa){return typeof(qa==null?void 0:qa.handle)=="function"?qa:new FetchHttpHandler(qa)}constructor(qa){typeof qa=="function"?this.configProvider=qa().then(nd=>nd||{}):(this.config=qa??{},this.configProvider=Promise.resolve(this.config)),keepAliveSupport.supported===void 0&&(keepAliveSupport.supported=typeof Request<"u"&&"keepalive"in createRequest("https://[::1]"))}destroy(){}async handle(qa,{abortSignal:nd}={}){var jd;this.config||(this.config=await this.configProvider);const od=this.config.requestTimeout,ld=this.config.keepAlive===!0,ud=this.config.credentials;if(nd!=null&&nd.aborted){const Fd=new Error("Request aborted");return Fd.name="AbortError",Promise.reject(Fd)}let dd=qa.path;const pd=buildQueryString(qa.query||{});pd&&(dd+=`?${pd}`),qa.fragment&&(dd+=`#${qa.fragment}`);let fd="";if(qa.username!=null||qa.password!=null){const Fd=qa.username??"",Ud=qa.password??"";fd=`${Fd}:${Ud}@`}const{port:md,method:vd}=qa,Ad=`${qa.protocol}//${fd}${qa.hostname}${md?`:${md}`:""}${dd}`,Nd=vd==="GET"||vd==="HEAD"?void 0:qa.body,Od={body:Nd,headers:new Headers(qa.headers),method:vd,credentials:ud};(jd=this.config)!=null&&jd.cache&&(Od.cache=this.config.cache),Nd&&(Od.duplex="half"),typeof AbortController<"u"&&(Od.signal=nd),keepAliveSupport.supported&&(Od.keepalive=ld),typeof this.config.requestInit=="function"&&Object.assign(Od,this.config.requestInit(qa));let kd=()=>{};const Ld=createRequest(Ad,Od),Gd=[fetch(Ld).then(Fd=>{const Ud=Fd.headers,qd={};for(const Wd of Ud.entries())qd[Wd[0]]=Wd[1];return Fd.body!=null?{response:new HttpResponse({headers:qd,reason:Fd.statusText,statusCode:Fd.status,body:Fd.body})}:Fd.blob().then(Wd=>({response:new HttpResponse({headers:qd,reason:Fd.statusText,statusCode:Fd.status,body:Wd})}))}),requestTimeout(od)];return nd&&Gd.push(new Promise((Fd,Ud)=>{const qd=()=>{const zd=new Error("Request aborted");zd.name="AbortError",Ud(zd)};if(typeof nd.addEventListener=="function"){const zd=nd;zd.addEventListener("abort",qd,{once:!0}),kd=()=>zd.removeEventListener("abort",qd)}else nd.onabort=qd})),Promise.race(Gd).finally(kd)}updateHttpClientConfig(qa,nd){this.config=void 0,this.configProvider=this.configProvider.then(od=>(od[qa]=nd,od))}httpHandlerConfigs(){return this.config??{}}}const streamCollector=async Ra=>{var qa;return typeof Blob=="function"&&Ra instanceof Blob||((qa=Ra.constructor)==null?void 0:qa.name)==="Blob"?new Uint8Array(await Ra.arrayBuffer()):collectStream(Ra)};async function collectStream(Ra){const qa=[],nd=Ra.getReader();let od=!1,ld=0;for(;!od;){const{done:pd,value:fd}=await nd.read();fd&&(qa.push(fd),ld+=fd.length),od=pd}const ud=new Uint8Array(ld);let dd=0;for(const pd of qa)ud.set(pd,dd),dd+=pd.length;return ud}const SHORT_TO_HEX={},HEX_TO_SHORT={};for(let Ra=0;Ra<256;Ra++){let qa=Ra.toString(16).toLowerCase();qa.length===1&&(qa=`0${qa}`),SHORT_TO_HEX[Ra]=qa,HEX_TO_SHORT[qa]=Ra}function fromHex(Ra){if(Ra.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const qa=new Uint8Array(Ra.length/2);for(let nd=0;nd{var qa;return typeof ReadableStream=="function"&&(((qa=Ra==null?void 0:Ra.constructor)==null?void 0:qa.name)===ReadableStream.name||Ra instanceof ReadableStream)},ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED="The stream has already been transformed.",sdkStreamMixin=Ra=>{var ld,ud;if(!isBlobInstance(Ra)&&!isReadableStream$2(Ra)){const dd=((ud=(ld=Ra==null?void 0:Ra.__proto__)==null?void 0:ld.constructor)==null?void 0:ud.name)||Ra;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${dd}`)}let qa=!1;const nd=async()=>{if(qa)throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);return qa=!0,await streamCollector(Ra)},od=dd=>{if(typeof dd.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled. +If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return dd.stream()};return Object.assign(Ra,{transformToByteArray:nd,transformToString:async dd=>{const pd=await nd();if(dd==="base64")return toBase64(pd);if(dd==="hex")return toHex(pd);if(dd===void 0||dd==="utf8"||dd==="utf-8")return toUtf8(pd);if(typeof TextDecoder=="function")return new TextDecoder(dd).decode(pd);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(qa)throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);if(qa=!0,isBlobInstance(Ra))return od(Ra);if(isReadableStream$2(Ra))return Ra;throw new Error(`Cannot transform payload to web stream, got ${Ra}`)}})},isBlobInstance=Ra=>typeof Blob=="function"&&Ra instanceof Blob;async function splitStream(Ra){return typeof Ra.stream=="function"&&(Ra=Ra.stream()),Ra.tee()}async function headStream(Ra,qa){let nd=0;const od=[],ld=Ra.getReader();let ud=!1;for(;!ud;){const{done:fd,value:md}=await ld.read();if(md&&(od.push(md),nd+=(md==null?void 0:md.byteLength)??0),nd>=qa)break;ud=fd}ld.releaseLock();const dd=new Uint8Array(Math.min(qa,nd));let pd=0;for(const fd of od){if(fd.byteLength>dd.byteLength-pd){dd.set(fd.subarray(0,dd.byteLength-pd),pd);break}else dd.set(fd,pd);pd+=fd.length}return dd}const ReadableStreamRef=typeof ReadableStream=="function"?ReadableStream:function(){};class ChecksumStream extends ReadableStreamRef{}const createChecksumStream=({expectedChecksum:Ra,checksum:qa,source:nd,checksumSourceLocation:od,base64Encoder:ld})=>{var fd;if(!isReadableStream$2(nd))throw new Error(`@smithy/util-stream: unsupported source type ${((fd=nd==null?void 0:nd.constructor)==null?void 0:fd.name)??nd} in ChecksumStream.`);const ud=ld??toBase64;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const dd=new TransformStream({start(){},async transform(md,vd){qa.update(md),vd.enqueue(md)},async flush(md){const vd=await qa.digest(),Ad=ud(vd);if(Ra!==Ad){const Nd=new Error(`Checksum mismatch: expected "${Ra}" but received "${Ad}" in response header "${od}".`);md.error(Nd)}else md.terminate()}});nd.pipeThrough(dd);const pd=dd.readable;return Object.setPrototypeOf(pd,ChecksumStream.prototype),pd},collectBody$1=async(Ra=new Uint8Array,qa)=>{if(Ra instanceof Uint8Array)return Uint8ArrayBlobAdapter.mutate(Ra);if(!Ra)return Uint8ArrayBlobAdapter.mutate(new Uint8Array);const nd=qa.streamCollector(Ra);return Uint8ArrayBlobAdapter.mutate(await nd)};function extendedEncodeURIComponent(Ra){return encodeURIComponent(Ra).replace(/[!'()*]/g,function(qa){return"%"+qa.charCodeAt(0).toString(16).toUpperCase()})}const resolvedPath=(Ra,qa,nd,od,ld,ud)=>{if(qa!=null&&qa[nd]!==void 0){const dd=od();if(dd.length<=0)throw new Error("Empty value provided for input HTTP label: "+nd+".");Ra=Ra.replace(ld,ud?dd.split("/").map(pd=>extendedEncodeURIComponent(pd)).join("/"):extendedEncodeURIComponent(dd))}else throw new Error("No value provided for input HTTP label: "+nd+".");return Ra};function requestBuilder(Ra,qa){return new RequestBuilder(Ra,qa)}class RequestBuilder{constructor(qa,nd){this.input=qa,this.context=nd,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:qa,protocol:nd="https",port:od,path:ld}=await this.context.endpoint();this.path=ld;for(const ud of this.resolvePathStack)ud(this.path);return new HttpRequest({protocol:nd,hostname:this.hostname||qa,port:od,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(qa){return this.hostname=qa,this}bp(qa){return this.resolvePathStack.push(nd=>{this.path=`${nd!=null&&nd.endsWith("/")?nd.slice(0,-1):nd||""}`+qa}),this}p(qa,nd,od,ld){return this.resolvePathStack.push(ud=>{this.path=resolvedPath(ud,this.input,qa,nd,od,ld)}),this}h(qa){return this.headers=qa,this}q(qa){return this.query=qa,this}b(qa){return this.body=qa,this}m(qa){return this.method=qa,this}}function setFeature(Ra,qa,nd){Ra.__smithy_context?Ra.__smithy_context.features||(Ra.__smithy_context.features={}):Ra.__smithy_context={features:{}},Ra.__smithy_context.features[qa]=nd}class DefaultIdentityProviderConfig{constructor(qa){this.authSchemes=new Map;for(const[nd,od]of Object.entries(qa))od!==void 0&&this.authSchemes.set(nd,od)}getIdentityProvider(qa){return this.authSchemes.get(qa)}}const createIsIdentityExpiredFunction=Ra=>qa=>doesIdentityRequireRefresh(qa)&&qa.expiration.getTime()-Date.now()Ra.expiration!==void 0,memoizeIdentityProvider=(Ra,qa,nd)=>{if(Ra===void 0)return;const od=typeof Ra!="function"?async()=>Promise.resolve(Ra):Ra;let ld,ud,dd,pd=!1;const fd=async md=>{ud||(ud=od(md));try{ld=await ud,dd=!0,pd=!1}finally{ud=void 0}return ld};return qa===void 0?async md=>((!dd||md!=null&&md.forceRefresh)&&(ld=await fd(md)),ld):async md=>((!dd||md!=null&&md.forceRefresh)&&(ld=await fd(md)),pd?ld:nd(ld)?(qa(ld)&&await fd(md),ld):(pd=!0,ld))},memoize$1=(Ra,qa,nd)=>{let od,ld,ud,dd=!1;const pd=async()=>{ld||(ld=Ra());try{od=await ld,ud=!0,dd=!1}finally{ld=void 0}return od};return async fd=>((!ud||fd!=null&&fd.forceRefresh)&&(od=await pd()),od)},resolveAwsSdkSigV4AConfig=Ra=>(Ra.sigv4aSigningRegionSet=normalizeProvider(Ra.sigv4aSigningRegionSet),Ra),ALGORITHM_QUERY_PARAM="X-Amz-Algorithm",CREDENTIAL_QUERY_PARAM="X-Amz-Credential",AMZ_DATE_QUERY_PARAM="X-Amz-Date",SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders",EXPIRES_QUERY_PARAM="X-Amz-Expires",SIGNATURE_QUERY_PARAM="X-Amz-Signature",TOKEN_QUERY_PARAM="X-Amz-Security-Token",AUTH_HEADER="authorization",AMZ_DATE_HEADER=AMZ_DATE_QUERY_PARAM.toLowerCase(),DATE_HEADER="date",GENERATED_HEADERS=[AUTH_HEADER,AMZ_DATE_HEADER,DATE_HEADER],SIGNATURE_HEADER=SIGNATURE_QUERY_PARAM.toLowerCase(),SHA256_HEADER="x-amz-content-sha256",TOKEN_HEADER=TOKEN_QUERY_PARAM.toLowerCase(),ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},PROXY_HEADER_PATTERN=/^proxy-/,SEC_HEADER_PATTERN=/^sec-/,ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256",EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD",UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD",MAX_CACHE_SIZE=50,KEY_TYPE_IDENTIFIER="aws4_request",MAX_PRESIGNED_TTL=60*60*24*7,signingKeyCache={},cacheQueue=[],createScope=(Ra,qa,nd)=>`${Ra}/${qa}/${nd}/${KEY_TYPE_IDENTIFIER}`,getSigningKey$1=async(Ra,qa,nd,od,ld)=>{const ud=await hmac$1(Ra,qa.secretAccessKey,qa.accessKeyId),dd=`${nd}:${od}:${ld}:${toHex(ud)}:${qa.sessionToken}`;if(dd in signingKeyCache)return signingKeyCache[dd];for(cacheQueue.push(dd);cacheQueue.length>MAX_CACHE_SIZE;)delete signingKeyCache[cacheQueue.shift()];let pd=`AWS4${qa.secretAccessKey}`;for(const fd of[nd,od,ld,KEY_TYPE_IDENTIFIER])pd=await hmac$1(Ra,pd,fd);return signingKeyCache[dd]=pd},hmac$1=(Ra,qa,nd)=>{const od=new Ra(qa);return od.update(toUint8Array(nd)),od.digest()},getCanonicalHeaders=({headers:Ra},qa,nd)=>{const od={};for(const ld of Object.keys(Ra).sort()){if(Ra[ld]==null)continue;const ud=ld.toLowerCase();(ud in ALWAYS_UNSIGNABLE_HEADERS||qa!=null&&qa.has(ud)||PROXY_HEADER_PATTERN.test(ud)||SEC_HEADER_PATTERN.test(ud))&&(!nd||nd&&!nd.has(ud))||(od[ud]=Ra[ld].trim().replace(/\s+/g," "))}return od},getCanonicalQuery=({query:Ra={}})=>{const qa=[],nd={};for(const od of Object.keys(Ra)){if(od.toLowerCase()===SIGNATURE_HEADER)continue;const ld=escapeUri(od);qa.push(ld);const ud=Ra[od];typeof ud=="string"?nd[ld]=`${ld}=${escapeUri(ud)}`:Array.isArray(ud)&&(nd[ld]=ud.slice(0).reduce((dd,pd)=>dd.concat([`${ld}=${escapeUri(pd)}`]),[]).sort().join("&"))}return qa.sort().map(od=>nd[od]).filter(od=>od).join("&")},isArrayBuffer$1=Ra=>typeof ArrayBuffer=="function"&&Ra instanceof ArrayBuffer||Object.prototype.toString.call(Ra)==="[object ArrayBuffer]",getPayloadHash=async({headers:Ra,body:qa},nd)=>{for(const od of Object.keys(Ra))if(od.toLowerCase()===SHA256_HEADER)return Ra[od];if(qa==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof qa=="string"||ArrayBuffer.isView(qa)||isArrayBuffer$1(qa)){const od=new nd;return od.update(toUint8Array(qa)),toHex(await od.digest())}return UNSIGNED_PAYLOAD};class HeaderFormatter{format(qa){const nd=[];for(const ud of Object.keys(qa)){const dd=fromUtf8$3(ud);nd.push(Uint8Array.from([dd.byteLength]),dd,this.formatHeaderValue(qa[ud]))}const od=new Uint8Array(nd.reduce((ud,dd)=>ud+dd.byteLength,0));let ld=0;for(const ud of nd)od.set(ud,ld),ld+=ud.byteLength;return od}formatHeaderValue(qa){switch(qa.type){case"boolean":return Uint8Array.from([qa.value?0:1]);case"byte":return Uint8Array.from([2,qa.value]);case"short":const nd=new DataView(new ArrayBuffer(3));return nd.setUint8(0,3),nd.setInt16(1,qa.value,!1),new Uint8Array(nd.buffer);case"integer":const od=new DataView(new ArrayBuffer(5));return od.setUint8(0,4),od.setInt32(1,qa.value,!1),new Uint8Array(od.buffer);case"long":const ld=new Uint8Array(9);return ld[0]=5,ld.set(qa.value.bytes,1),ld;case"binary":const ud=new DataView(new ArrayBuffer(3+qa.value.byteLength));ud.setUint8(0,6),ud.setUint16(1,qa.value.byteLength,!1);const dd=new Uint8Array(ud.buffer);return dd.set(qa.value,3),dd;case"string":const pd=fromUtf8$3(qa.value),fd=new DataView(new ArrayBuffer(3+pd.byteLength));fd.setUint8(0,7),fd.setUint16(1,pd.byteLength,!1);const md=new Uint8Array(fd.buffer);return md.set(pd,3),md;case"timestamp":const vd=new Uint8Array(9);return vd[0]=8,vd.set(Int64$1.fromNumber(qa.value.valueOf()).bytes,1),vd;case"uuid":if(!UUID_PATTERN$1.test(qa.value))throw new Error(`Invalid UUID received: ${qa.value}`);const Ad=new Uint8Array(17);return Ad[0]=9,Ad.set(fromHex(qa.value.replace(/\-/g,"")),1),Ad}}}var HEADER_VALUE_TYPE$1;(function(Ra){Ra[Ra.boolTrue=0]="boolTrue",Ra[Ra.boolFalse=1]="boolFalse",Ra[Ra.byte=2]="byte",Ra[Ra.short=3]="short",Ra[Ra.integer=4]="integer",Ra[Ra.long=5]="long",Ra[Ra.byteArray=6]="byteArray",Ra[Ra.string=7]="string",Ra[Ra.timestamp=8]="timestamp",Ra[Ra.uuid=9]="uuid"})(HEADER_VALUE_TYPE$1||(HEADER_VALUE_TYPE$1={}));const UUID_PATTERN$1=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let Int64$1=class NC{constructor(qa){if(this.bytes=qa,qa.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(qa){if(qa>9223372036854776e3||qa<-9223372036854776e3)throw new Error(`${qa} is too large (or, if negative, too small) to represent as an Int64`);const nd=new Uint8Array(8);for(let od=7,ld=Math.abs(Math.round(qa));od>-1&&ld>0;od--,ld/=256)nd[od]=ld;return qa<0&&negate$1(nd),new NC(nd)}valueOf(){const qa=this.bytes.slice(0),nd=qa[0]&128;return nd&&negate$1(qa),parseInt(toHex(qa),16)*(nd?-1:1)}toString(){return String(this.valueOf())}};function negate$1(Ra){for(let qa=0;qa<8;qa++)Ra[qa]^=255;for(let qa=7;qa>-1&&(Ra[qa]++,Ra[qa]===0);qa--);}const hasHeader$1=(Ra,qa)=>{Ra=Ra.toLowerCase();for(const nd of Object.keys(qa))if(Ra===nd.toLowerCase())return!0;return!1},moveHeadersToQuery=(Ra,qa={})=>{var ld,ud;const{headers:nd,query:od={}}=HttpRequest.clone(Ra);for(const dd of Object.keys(nd)){const pd=dd.toLowerCase();(pd.slice(0,6)==="x-amz-"&&!((ld=qa.unhoistableHeaders)!=null&&ld.has(pd))||(ud=qa.hoistableHeaders)!=null&&ud.has(pd))&&(od[dd]=nd[dd],delete nd[dd])}return{...Ra,headers:nd,query:od}},prepareRequest=Ra=>{Ra=HttpRequest.clone(Ra);for(const qa of Object.keys(Ra.headers))GENERATED_HEADERS.indexOf(qa.toLowerCase())>-1&&delete Ra.headers[qa];return Ra},iso8601=Ra=>toDate(Ra).toISOString().replace(/\.\d{3}Z$/,"Z"),toDate=Ra=>typeof Ra=="number"?new Date(Ra*1e3):typeof Ra=="string"?Number(Ra)?new Date(Number(Ra)*1e3):new Date(Ra):Ra;class SignatureV4{constructor({applyChecksum:qa,credentials:nd,region:od,service:ld,sha256:ud,uriEscapePath:dd=!0}){this.headerFormatter=new HeaderFormatter,this.service=ld,this.sha256=ud,this.uriEscapePath=dd,this.applyChecksum=typeof qa=="boolean"?qa:!0,this.regionProvider=normalizeProvider$1(od),this.credentialProvider=normalizeProvider$1(nd)}async presign(qa,nd={}){const{signingDate:od=new Date,expiresIn:ld=3600,unsignableHeaders:ud,unhoistableHeaders:dd,signableHeaders:pd,hoistableHeaders:fd,signingRegion:md,signingService:vd}=nd,Ad=await this.credentialProvider();this.validateResolvedCredentials(Ad);const Nd=md??await this.regionProvider(),{longDate:Od,shortDate:kd}=formatDate(od);if(ld>MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const Ld=createScope(kd,Nd,vd??this.service),Gd=moveHeadersToQuery(prepareRequest(qa),{unhoistableHeaders:dd,hoistableHeaders:fd});Ad.sessionToken&&(Gd.query[TOKEN_QUERY_PARAM]=Ad.sessionToken),Gd.query[ALGORITHM_QUERY_PARAM]=ALGORITHM_IDENTIFIER,Gd.query[CREDENTIAL_QUERY_PARAM]=`${Ad.accessKeyId}/${Ld}`,Gd.query[AMZ_DATE_QUERY_PARAM]=Od,Gd.query[EXPIRES_QUERY_PARAM]=ld.toString(10);const jd=getCanonicalHeaders(Gd,ud,pd);return Gd.query[SIGNED_HEADERS_QUERY_PARAM]=getCanonicalHeaderList(jd),Gd.query[SIGNATURE_QUERY_PARAM]=await this.getSignature(Od,Ld,this.getSigningKey(Ad,Nd,kd,vd),this.createCanonicalRequest(Gd,jd,await getPayloadHash(qa,this.sha256))),Gd}async sign(qa,nd){return typeof qa=="string"?this.signString(qa,nd):qa.headers&&qa.payload?this.signEvent(qa,nd):qa.message?this.signMessage(qa,nd):this.signRequest(qa,nd)}async signEvent({headers:qa,payload:nd},{signingDate:od=new Date,priorSignature:ld,signingRegion:ud,signingService:dd}){const pd=ud??await this.regionProvider(),{shortDate:fd,longDate:md}=formatDate(od),vd=createScope(fd,pd,dd??this.service),Ad=await getPayloadHash({headers:{},body:nd},this.sha256),Nd=new this.sha256;Nd.update(qa);const Od=toHex(await Nd.digest()),kd=[EVENT_ALGORITHM_IDENTIFIER,md,vd,ld,Od,Ad].join(` `);return this.signString(kd,{signingDate:od,signingRegion:pd,signingService:dd})}async signMessage(qa,{signingDate:nd=new Date,signingRegion:od,signingService:ld}){return this.signEvent({headers:this.headerFormatter.format(qa.message.headers),payload:qa.message.body},{signingDate:nd,signingRegion:od,signingService:ld,priorSignature:qa.priorSignature}).then(dd=>({message:qa.message,signature:dd}))}async signString(qa,{signingDate:nd=new Date,signingRegion:od,signingService:ld}={}){const ud=await this.credentialProvider();this.validateResolvedCredentials(ud);const dd=od??await this.regionProvider(),{shortDate:pd}=formatDate(nd),fd=new this.sha256(await this.getSigningKey(ud,dd,pd,ld));return fd.update(toUint8Array(qa)),toHex(await fd.digest())}async signRequest(qa,{signingDate:nd=new Date,signableHeaders:od,unsignableHeaders:ld,signingRegion:ud,signingService:dd}={}){const pd=await this.credentialProvider();this.validateResolvedCredentials(pd);const fd=ud??await this.regionProvider(),md=prepareRequest(qa),{longDate:vd,shortDate:Ad}=formatDate(nd),Nd=createScope(Ad,fd,dd??this.service);md.headers[AMZ_DATE_HEADER]=vd,pd.sessionToken&&(md.headers[TOKEN_HEADER]=pd.sessionToken);const Od=await getPayloadHash(md,this.sha256);!hasHeader$1(SHA256_HEADER,md.headers)&&this.applyChecksum&&(md.headers[SHA256_HEADER]=Od);const kd=getCanonicalHeaders(md,ld,od),Ld=await this.getSignature(vd,Nd,this.getSigningKey(pd,fd,Ad,dd),this.createCanonicalRequest(md,kd,Od));return md.headers[AUTH_HEADER]=`${ALGORITHM_IDENTIFIER} Credential=${pd.accessKeyId}/${Nd}, SignedHeaders=${getCanonicalHeaderList(kd)}, Signature=${Ld}`,md}createCanonicalRequest(qa,nd,od){const ld=Object.keys(nd).sort();return`${qa.method} ${this.getCanonicalPath(qa)} ${getCanonicalQuery(qa)} @@ -1120,7 +1131,7 @@ ${ld.join(";")} ${od}`}async createStringToSign(qa,nd,od){const ld=new this.sha256;ld.update(toUint8Array(od));const ud=await ld.digest();return`${ALGORITHM_IDENTIFIER} ${qa} ${nd} -${toHex(ud)}`}getCanonicalPath({path:qa}){if(this.uriEscapePath){const nd=[];for(const ud of qa.split("/"))(ud==null?void 0:ud.length)!==0&&ud!=="."&&(ud===".."?nd.pop():nd.push(ud));const od=`${qa!=null&&qa.startsWith("/")?"/":""}${nd.join("/")}${nd.length>0&&(qa!=null&&qa.endsWith("/"))?"/":""}`;return escapeUri(od).replace(/%2F/g,"/")}return qa}async getSignature(qa,nd,od,ld){const ud=await this.createStringToSign(qa,nd,ld),dd=new this.sha256(await od);return dd.update(toUint8Array(ud)),toHex(await dd.digest())}getSigningKey(qa,nd,od,ld){return getSigningKey$1(this.sha256,qa,od,nd,ld||this.service)}validateResolvedCredentials(qa){if(typeof qa!="object"||typeof qa.accessKeyId!="string"||typeof qa.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}}const formatDate=Ra=>{const qa=iso8601(Ra).replace(/[\-:]/g,"");return{longDate:qa,shortDate:qa.slice(0,8)}},getCanonicalHeaderList=Ra=>Object.keys(Ra).sort().join(";"),resolveAwsSdkSigV4Config=Ra=>{let qa=!1,nd;Ra.credentials&&(qa=!0,nd=memoizeIdentityProvider(Ra.credentials,isIdentityExpired,doesIdentityRequireRefresh)),nd||(Ra.credentialDefaultProvider?nd=normalizeProvider(Ra.credentialDefaultProvider(Object.assign({},Ra,{parentClientConfig:Ra}))):nd=async()=>{throw new Error("`credentials` is missing")});const od=async()=>nd({callerClientConfig:Ra}),{signingEscapePath:ld=!0,systemClockOffset:ud=Ra.systemClockOffset||0,sha256:dd}=Ra;let pd;return Ra.signer?pd=normalizeProvider(Ra.signer):Ra.regionInfoProvider?pd=()=>normalizeProvider(Ra.region)().then(async fd=>[await Ra.regionInfoProvider(fd,{useFipsEndpoint:await Ra.useFipsEndpoint(),useDualstackEndpoint:await Ra.useDualstackEndpoint()})||{},fd]).then(([fd,md])=>{const{signingRegion:vd,signingService:Ad}=fd;Ra.signingRegion=Ra.signingRegion||vd||md,Ra.signingName=Ra.signingName||Ad||Ra.serviceId;const Nd={...Ra,credentials:od,region:Ra.signingRegion,service:Ra.signingName,sha256:dd,uriEscapePath:ld},Od=Ra.signerConstructor||SignatureV4;return new Od(Nd)}):pd=async fd=>{fd=Object.assign({},{name:"sigv4",signingName:Ra.signingName||Ra.defaultSigningName,signingRegion:await normalizeProvider(Ra.region)(),properties:{}},fd);const md=fd.signingRegion,vd=fd.signingName;Ra.signingRegion=Ra.signingRegion||md,Ra.signingName=Ra.signingName||vd||Ra.serviceId;const Ad={...Ra,credentials:od,region:Ra.signingRegion,service:Ra.signingName,sha256:dd,uriEscapePath:ld},Nd=Ra.signerConstructor||SignatureV4;return new Nd(Ad)},{...Ra,systemClockOffset:ud,signingEscapePath:ld,credentials:qa?async()=>od().then(fd=>setCredentialFeature(fd,"CREDENTIALS_CODE","e")):od,signer:pd}},getAllAliases=(Ra,qa)=>{const nd=[];if(Ra&&nd.push(Ra),qa)for(const od of qa)nd.push(od);return nd},getMiddlewareNameWithAliases=(Ra,qa)=>`${Ra||"anonymous"}${qa&&qa.length>0?` (a.k.a. ${qa.join(",")})`:""}`,constructStack=()=>{let Ra=[],qa=[],nd=!1;const od=new Set,ld=Ad=>Ad.sort((Nd,Od)=>stepWeights[Od.step]-stepWeights[Nd.step]||priorityWeights[Od.priority||"normal"]-priorityWeights[Nd.priority||"normal"]),ud=Ad=>{let Nd=!1;const Od=kd=>{const Ld=getAllAliases(kd.name,kd.aliases);if(Ld.includes(Ad)){Nd=!0;for(const Gd of Ld)od.delete(Gd);return!1}return!0};return Ra=Ra.filter(Od),qa=qa.filter(Od),Nd},dd=Ad=>{let Nd=!1;const Od=kd=>{if(kd.middleware===Ad){Nd=!0;for(const Ld of getAllAliases(kd.name,kd.aliases))od.delete(Ld);return!1}return!0};return Ra=Ra.filter(Od),qa=qa.filter(Od),Nd},pd=Ad=>{var Nd;return Ra.forEach(Od=>{Ad.add(Od.middleware,{...Od})}),qa.forEach(Od=>{Ad.addRelativeTo(Od.middleware,{...Od})}),(Nd=Ad.identifyOnResolve)==null||Nd.call(Ad,vd.identifyOnResolve()),Ad},fd=Ad=>{const Nd=[];return Ad.before.forEach(Od=>{Od.before.length===0&&Od.after.length===0?Nd.push(Od):Nd.push(...fd(Od))}),Nd.push(Ad),Ad.after.reverse().forEach(Od=>{Od.before.length===0&&Od.after.length===0?Nd.push(Od):Nd.push(...fd(Od))}),Nd},md=(Ad=!1)=>{const Nd=[],Od=[],kd={};return Ra.forEach(Gd=>{const Ud={...Gd,before:[],after:[]};for(const Fd of getAllAliases(Ud.name,Ud.aliases))kd[Fd]=Ud;Nd.push(Ud)}),qa.forEach(Gd=>{const Ud={...Gd,before:[],after:[]};for(const Fd of getAllAliases(Ud.name,Ud.aliases))kd[Fd]=Ud;Od.push(Ud)}),Od.forEach(Gd=>{if(Gd.toMiddleware){const Ud=kd[Gd.toMiddleware];if(Ud===void 0){if(Ad)return;throw new Error(`${Gd.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(Gd.name,Gd.aliases)} middleware ${Gd.relation} ${Gd.toMiddleware}`)}Gd.relation==="after"&&Ud.after.push(Gd),Gd.relation==="before"&&Ud.before.push(Gd)}}),ld(Nd).map(fd).reduce((Gd,Ud)=>(Gd.push(...Ud),Gd),[])},vd={add:(Ad,Nd={})=>{const{name:Od,override:kd,aliases:Ld}=Nd,Gd={step:"initialize",priority:"normal",middleware:Ad,...Nd},Ud=getAllAliases(Od,Ld);if(Ud.length>0){if(Ud.some(Fd=>od.has(Fd))){if(!kd)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(Od,Ld)}'`);for(const Fd of Ud){const jd=Ra.findIndex(zd=>{var Yd;return zd.name===Fd||((Yd=zd.aliases)==null?void 0:Yd.some(Jd=>Jd===Fd))});if(jd===-1)continue;const qd=Ra[jd];if(qd.step!==Gd.step||Gd.priority!==qd.priority)throw new Error(`"${getMiddlewareNameWithAliases(qd.name,qd.aliases)}" middleware with ${qd.priority} priority in ${qd.step} step cannot be overridden by "${getMiddlewareNameWithAliases(Od,Ld)}" middleware with ${Gd.priority} priority in ${Gd.step} step.`);Ra.splice(jd,1)}}for(const Fd of Ud)od.add(Fd)}Ra.push(Gd)},addRelativeTo:(Ad,Nd)=>{const{name:Od,override:kd,aliases:Ld}=Nd,Gd={middleware:Ad,...Nd},Ud=getAllAliases(Od,Ld);if(Ud.length>0){if(Ud.some(Fd=>od.has(Fd))){if(!kd)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(Od,Ld)}'`);for(const Fd of Ud){const jd=qa.findIndex(zd=>{var Yd;return zd.name===Fd||((Yd=zd.aliases)==null?void 0:Yd.some(Jd=>Jd===Fd))});if(jd===-1)continue;const qd=qa[jd];if(qd.toMiddleware!==Gd.toMiddleware||qd.relation!==Gd.relation)throw new Error(`"${getMiddlewareNameWithAliases(qd.name,qd.aliases)}" middleware ${qd.relation} "${qd.toMiddleware}" middleware cannot be overridden by "${getMiddlewareNameWithAliases(Od,Ld)}" middleware ${Gd.relation} "${Gd.toMiddleware}" middleware.`);qa.splice(jd,1)}}for(const Fd of Ud)od.add(Fd)}qa.push(Gd)},clone:()=>pd(constructStack()),use:Ad=>{Ad.applyToStack(vd)},remove:Ad=>typeof Ad=="string"?ud(Ad):dd(Ad),removeByTag:Ad=>{let Nd=!1;const Od=kd=>{const{tags:Ld,name:Gd,aliases:Ud}=kd;if(Ld&&Ld.includes(Ad)){const Fd=getAllAliases(Gd,Ud);for(const jd of Fd)od.delete(jd);return Nd=!0,!1}return!0};return Ra=Ra.filter(Od),qa=qa.filter(Od),Nd},concat:Ad=>{var Od;const Nd=pd(constructStack());return Nd.use(Ad),Nd.identifyOnResolve(nd||Nd.identifyOnResolve()||(((Od=Ad.identifyOnResolve)==null?void 0:Od.call(Ad))??!1)),Nd},applyToStack:pd,identify:()=>md(!0).map(Ad=>{const Nd=Ad.step??Ad.relation+" "+Ad.toMiddleware;return getMiddlewareNameWithAliases(Ad.name,Ad.aliases)+" - "+Nd}),identifyOnResolve(Ad){return typeof Ad=="boolean"&&(nd=Ad),nd},resolve:(Ad,Nd)=>{for(const Od of md().map(kd=>kd.middleware).reverse())Ad=Od(Ad,Nd);return nd&&console.log(vd.identify()),Ad}};return vd},stepWeights={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},priorityWeights={high:3,normal:2,low:1};let Client$1=class{constructor(qa){this.config=qa,this.middlewareStack=constructStack()}send(qa,nd,od){const ld=typeof nd!="function"?nd:void 0,ud=typeof nd=="function"?nd:od,dd=ld===void 0&&this.config.cacheMiddleware===!0;let pd;if(dd){this.handlers||(this.handlers=new WeakMap);const fd=this.handlers;fd.has(qa.constructor)?pd=fd.get(qa.constructor):(pd=qa.resolveMiddleware(this.middlewareStack,this.config,ld),fd.set(qa.constructor,pd))}else delete this.handlers,pd=qa.resolveMiddleware(this.middlewareStack,this.config,ld);if(ud)pd(qa).then(fd=>ud(null,fd.output),fd=>ud(fd)).catch(()=>{});else return pd(qa).then(fd=>fd.output)}destroy(){var qa,nd,od;(od=(nd=(qa=this.config)==null?void 0:qa.requestHandler)==null?void 0:nd.destroy)==null||od.call(nd),delete this.handlers}};class Command{constructor(){this.middlewareStack=constructStack()}static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(qa,nd,od,{middlewareFn:ld,clientName:ud,commandName:dd,inputFilterSensitiveLog:pd,outputFilterSensitiveLog:fd,smithyContext:md,additionalContext:vd,CommandCtor:Ad}){for(const Gd of ld.bind(this)(Ad,qa,nd,od))this.middlewareStack.use(Gd);const Nd=qa.concat(this.middlewareStack),{logger:Od}=nd,kd={logger:Od,clientName:ud,commandName:dd,inputFilterSensitiveLog:pd,outputFilterSensitiveLog:fd,[SMITHY_CONTEXT_KEY]:{commandInstance:this,...md},...vd},{requestHandler:Ld}=nd;return Nd.resolve(Gd=>Ld.handle(Gd.request,od||{}),kd)}}class ClassBuilder{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=qa=>qa,this._outputFilterSensitiveLog=qa=>qa,this._serializer=null,this._deserializer=null}init(qa){this._init=qa}ep(qa){return this._ep=qa,this}m(qa){return this._middlewareFn=qa,this}s(qa,nd,od={}){return this._smithyContext={service:qa,operation:nd,...od},this}c(qa={}){return this._additionalContext=qa,this}n(qa,nd){return this._clientName=qa,this._commandName=nd,this}f(qa=od=>od,nd=od=>od){return this._inputFilterSensitiveLog=qa,this._outputFilterSensitiveLog=nd,this}ser(qa){return this._serializer=qa,this}de(qa){return this._deserializer=qa,this}build(){const qa=this;let nd;return nd=class extends Command{static getEndpointParameterInstructions(){return qa._ep}constructor(...[od]){super(),this.serialize=qa._serializer,this.deserialize=qa._deserializer,this.input=od??{},qa._init(this)}resolveMiddleware(od,ld,ud){return this.resolveMiddlewareWithContext(od,ld,ud,{CommandCtor:nd,middlewareFn:qa._middlewareFn,clientName:qa._clientName,commandName:qa._commandName,inputFilterSensitiveLog:qa._inputFilterSensitiveLog,outputFilterSensitiveLog:qa._outputFilterSensitiveLog,smithyContext:qa._smithyContext,additionalContext:qa._additionalContext})}}}}const SENSITIVE_STRING="***SensitiveInformation***",parseBoolean=Ra=>{switch(Ra){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${Ra}"`)}},expectNumber=Ra=>{if(Ra!=null){if(typeof Ra=="string"){const qa=parseFloat(Ra);if(!Number.isNaN(qa))return String(qa)!==String(Ra)&&logger.warn(stackTraceWarning(`Expected number but observed string: ${Ra}`)),qa}if(typeof Ra=="number")return Ra;throw new TypeError(`Expected number, got ${typeof Ra}: ${Ra}`)}},MAX_FLOAT=Math.ceil(2**127*(2-2**-23)),expectFloat32=Ra=>{const qa=expectNumber(Ra);if(qa!==void 0&&!Number.isNaN(qa)&&qa!==1/0&&qa!==-1/0&&Math.abs(qa)>MAX_FLOAT)throw new TypeError(`Expected 32-bit float, got ${Ra}`);return qa},expectLong=Ra=>{if(Ra!=null){if(Number.isInteger(Ra)&&!Number.isNaN(Ra))return Ra;throw new TypeError(`Expected integer, got ${typeof Ra}: ${Ra}`)}},expectShort=Ra=>expectSizedInt(Ra,16),expectByte=Ra=>expectSizedInt(Ra,8),expectSizedInt=(Ra,qa)=>{const nd=expectLong(Ra);if(nd!==void 0&&castInt(nd,qa)!==nd)throw new TypeError(`Expected ${qa}-bit integer, got ${Ra}`);return nd},castInt=(Ra,qa)=>{switch(qa){case 32:return Int32Array.of(Ra)[0];case 16:return Int16Array.of(Ra)[0];case 8:return Int8Array.of(Ra)[0]}},expectNonNull=(Ra,qa)=>{if(Ra==null)throw qa?new TypeError(`Expected a non-null value for ${qa}`):new TypeError("Expected a non-null value");return Ra},expectObject=Ra=>{if(Ra==null)return;if(typeof Ra=="object"&&!Array.isArray(Ra))return Ra;const qa=Array.isArray(Ra)?"array":typeof Ra;throw new TypeError(`Expected object, got ${qa}: ${Ra}`)},expectString=Ra=>{if(Ra!=null){if(typeof Ra=="string")return Ra;if(["boolean","number","bigint"].includes(typeof Ra))return logger.warn(stackTraceWarning(`Expected string, got ${typeof Ra}: ${Ra}`)),String(Ra);throw new TypeError(`Expected string, got ${typeof Ra}: ${Ra}`)}},strictParseFloat32=Ra=>expectFloat32(typeof Ra=="string"?parseNumber(Ra):Ra),NUMBER_REGEX=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,parseNumber=Ra=>{const qa=Ra.match(NUMBER_REGEX);if(qa===null||qa[0].length!==Ra.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(Ra)},strictParseLong=Ra=>expectLong(typeof Ra=="string"?parseNumber(Ra):Ra),strictParseShort=Ra=>expectShort(typeof Ra=="string"?parseNumber(Ra):Ra),strictParseByte=Ra=>expectByte(typeof Ra=="string"?parseNumber(Ra):Ra),stackTraceWarning=Ra=>String(new TypeError(Ra).stack||Ra).split(` +${toHex(ud)}`}getCanonicalPath({path:qa}){if(this.uriEscapePath){const nd=[];for(const ud of qa.split("/"))(ud==null?void 0:ud.length)!==0&&ud!=="."&&(ud===".."?nd.pop():nd.push(ud));const od=`${qa!=null&&qa.startsWith("/")?"/":""}${nd.join("/")}${nd.length>0&&(qa!=null&&qa.endsWith("/"))?"/":""}`;return escapeUri(od).replace(/%2F/g,"/")}return qa}async getSignature(qa,nd,od,ld){const ud=await this.createStringToSign(qa,nd,ld),dd=new this.sha256(await od);return dd.update(toUint8Array(ud)),toHex(await dd.digest())}getSigningKey(qa,nd,od,ld){return getSigningKey$1(this.sha256,qa,od,nd,ld||this.service)}validateResolvedCredentials(qa){if(typeof qa!="object"||typeof qa.accessKeyId!="string"||typeof qa.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}}const formatDate=Ra=>{const qa=iso8601(Ra).replace(/[\-:]/g,"");return{longDate:qa,shortDate:qa.slice(0,8)}},getCanonicalHeaderList=Ra=>Object.keys(Ra).sort().join(";"),resolveAwsSdkSigV4Config=Ra=>{let qa=!1,nd;Ra.credentials&&(qa=!0,nd=memoizeIdentityProvider(Ra.credentials,isIdentityExpired,doesIdentityRequireRefresh)),nd||(Ra.credentialDefaultProvider?nd=normalizeProvider(Ra.credentialDefaultProvider(Object.assign({},Ra,{parentClientConfig:Ra}))):nd=async()=>{throw new Error("`credentials` is missing")});const od=async()=>nd({callerClientConfig:Ra}),{signingEscapePath:ld=!0,systemClockOffset:ud=Ra.systemClockOffset||0,sha256:dd}=Ra;let pd;return Ra.signer?pd=normalizeProvider(Ra.signer):Ra.regionInfoProvider?pd=()=>normalizeProvider(Ra.region)().then(async fd=>[await Ra.regionInfoProvider(fd,{useFipsEndpoint:await Ra.useFipsEndpoint(),useDualstackEndpoint:await Ra.useDualstackEndpoint()})||{},fd]).then(([fd,md])=>{const{signingRegion:vd,signingService:Ad}=fd;Ra.signingRegion=Ra.signingRegion||vd||md,Ra.signingName=Ra.signingName||Ad||Ra.serviceId;const Nd={...Ra,credentials:od,region:Ra.signingRegion,service:Ra.signingName,sha256:dd,uriEscapePath:ld},Od=Ra.signerConstructor||SignatureV4;return new Od(Nd)}):pd=async fd=>{fd=Object.assign({},{name:"sigv4",signingName:Ra.signingName||Ra.defaultSigningName,signingRegion:await normalizeProvider(Ra.region)(),properties:{}},fd);const md=fd.signingRegion,vd=fd.signingName;Ra.signingRegion=Ra.signingRegion||md,Ra.signingName=Ra.signingName||vd||Ra.serviceId;const Ad={...Ra,credentials:od,region:Ra.signingRegion,service:Ra.signingName,sha256:dd,uriEscapePath:ld},Nd=Ra.signerConstructor||SignatureV4;return new Nd(Ad)},{...Ra,systemClockOffset:ud,signingEscapePath:ld,credentials:qa?async()=>od().then(fd=>setCredentialFeature(fd,"CREDENTIALS_CODE","e")):od,signer:pd}},getAllAliases=(Ra,qa)=>{const nd=[];if(Ra&&nd.push(Ra),qa)for(const od of qa)nd.push(od);return nd},getMiddlewareNameWithAliases=(Ra,qa)=>`${Ra||"anonymous"}${qa&&qa.length>0?` (a.k.a. ${qa.join(",")})`:""}`,constructStack=()=>{let Ra=[],qa=[],nd=!1;const od=new Set,ld=Ad=>Ad.sort((Nd,Od)=>stepWeights[Od.step]-stepWeights[Nd.step]||priorityWeights[Od.priority||"normal"]-priorityWeights[Nd.priority||"normal"]),ud=Ad=>{let Nd=!1;const Od=kd=>{const Ld=getAllAliases(kd.name,kd.aliases);if(Ld.includes(Ad)){Nd=!0;for(const Gd of Ld)od.delete(Gd);return!1}return!0};return Ra=Ra.filter(Od),qa=qa.filter(Od),Nd},dd=Ad=>{let Nd=!1;const Od=kd=>{if(kd.middleware===Ad){Nd=!0;for(const Ld of getAllAliases(kd.name,kd.aliases))od.delete(Ld);return!1}return!0};return Ra=Ra.filter(Od),qa=qa.filter(Od),Nd},pd=Ad=>{var Nd;return Ra.forEach(Od=>{Ad.add(Od.middleware,{...Od})}),qa.forEach(Od=>{Ad.addRelativeTo(Od.middleware,{...Od})}),(Nd=Ad.identifyOnResolve)==null||Nd.call(Ad,vd.identifyOnResolve()),Ad},fd=Ad=>{const Nd=[];return Ad.before.forEach(Od=>{Od.before.length===0&&Od.after.length===0?Nd.push(Od):Nd.push(...fd(Od))}),Nd.push(Ad),Ad.after.reverse().forEach(Od=>{Od.before.length===0&&Od.after.length===0?Nd.push(Od):Nd.push(...fd(Od))}),Nd},md=(Ad=!1)=>{const Nd=[],Od=[],kd={};return Ra.forEach(Gd=>{const jd={...Gd,before:[],after:[]};for(const Fd of getAllAliases(jd.name,jd.aliases))kd[Fd]=jd;Nd.push(jd)}),qa.forEach(Gd=>{const jd={...Gd,before:[],after:[]};for(const Fd of getAllAliases(jd.name,jd.aliases))kd[Fd]=jd;Od.push(jd)}),Od.forEach(Gd=>{if(Gd.toMiddleware){const jd=kd[Gd.toMiddleware];if(jd===void 0){if(Ad)return;throw new Error(`${Gd.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(Gd.name,Gd.aliases)} middleware ${Gd.relation} ${Gd.toMiddleware}`)}Gd.relation==="after"&&jd.after.push(Gd),Gd.relation==="before"&&jd.before.push(Gd)}}),ld(Nd).map(fd).reduce((Gd,jd)=>(Gd.push(...jd),Gd),[])},vd={add:(Ad,Nd={})=>{const{name:Od,override:kd,aliases:Ld}=Nd,Gd={step:"initialize",priority:"normal",middleware:Ad,...Nd},jd=getAllAliases(Od,Ld);if(jd.length>0){if(jd.some(Fd=>od.has(Fd))){if(!kd)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(Od,Ld)}'`);for(const Fd of jd){const Ud=Ra.findIndex(zd=>{var Wd;return zd.name===Fd||((Wd=zd.aliases)==null?void 0:Wd.some(Jd=>Jd===Fd))});if(Ud===-1)continue;const qd=Ra[Ud];if(qd.step!==Gd.step||Gd.priority!==qd.priority)throw new Error(`"${getMiddlewareNameWithAliases(qd.name,qd.aliases)}" middleware with ${qd.priority} priority in ${qd.step} step cannot be overridden by "${getMiddlewareNameWithAliases(Od,Ld)}" middleware with ${Gd.priority} priority in ${Gd.step} step.`);Ra.splice(Ud,1)}}for(const Fd of jd)od.add(Fd)}Ra.push(Gd)},addRelativeTo:(Ad,Nd)=>{const{name:Od,override:kd,aliases:Ld}=Nd,Gd={middleware:Ad,...Nd},jd=getAllAliases(Od,Ld);if(jd.length>0){if(jd.some(Fd=>od.has(Fd))){if(!kd)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(Od,Ld)}'`);for(const Fd of jd){const Ud=qa.findIndex(zd=>{var Wd;return zd.name===Fd||((Wd=zd.aliases)==null?void 0:Wd.some(Jd=>Jd===Fd))});if(Ud===-1)continue;const qd=qa[Ud];if(qd.toMiddleware!==Gd.toMiddleware||qd.relation!==Gd.relation)throw new Error(`"${getMiddlewareNameWithAliases(qd.name,qd.aliases)}" middleware ${qd.relation} "${qd.toMiddleware}" middleware cannot be overridden by "${getMiddlewareNameWithAliases(Od,Ld)}" middleware ${Gd.relation} "${Gd.toMiddleware}" middleware.`);qa.splice(Ud,1)}}for(const Fd of jd)od.add(Fd)}qa.push(Gd)},clone:()=>pd(constructStack()),use:Ad=>{Ad.applyToStack(vd)},remove:Ad=>typeof Ad=="string"?ud(Ad):dd(Ad),removeByTag:Ad=>{let Nd=!1;const Od=kd=>{const{tags:Ld,name:Gd,aliases:jd}=kd;if(Ld&&Ld.includes(Ad)){const Fd=getAllAliases(Gd,jd);for(const Ud of Fd)od.delete(Ud);return Nd=!0,!1}return!0};return Ra=Ra.filter(Od),qa=qa.filter(Od),Nd},concat:Ad=>{var Od;const Nd=pd(constructStack());return Nd.use(Ad),Nd.identifyOnResolve(nd||Nd.identifyOnResolve()||(((Od=Ad.identifyOnResolve)==null?void 0:Od.call(Ad))??!1)),Nd},applyToStack:pd,identify:()=>md(!0).map(Ad=>{const Nd=Ad.step??Ad.relation+" "+Ad.toMiddleware;return getMiddlewareNameWithAliases(Ad.name,Ad.aliases)+" - "+Nd}),identifyOnResolve(Ad){return typeof Ad=="boolean"&&(nd=Ad),nd},resolve:(Ad,Nd)=>{for(const Od of md().map(kd=>kd.middleware).reverse())Ad=Od(Ad,Nd);return nd&&console.log(vd.identify()),Ad}};return vd},stepWeights={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},priorityWeights={high:3,normal:2,low:1};let Client$1=class{constructor(qa){this.config=qa,this.middlewareStack=constructStack()}send(qa,nd,od){const ld=typeof nd!="function"?nd:void 0,ud=typeof nd=="function"?nd:od,dd=ld===void 0&&this.config.cacheMiddleware===!0;let pd;if(dd){this.handlers||(this.handlers=new WeakMap);const fd=this.handlers;fd.has(qa.constructor)?pd=fd.get(qa.constructor):(pd=qa.resolveMiddleware(this.middlewareStack,this.config,ld),fd.set(qa.constructor,pd))}else delete this.handlers,pd=qa.resolveMiddleware(this.middlewareStack,this.config,ld);if(ud)pd(qa).then(fd=>ud(null,fd.output),fd=>ud(fd)).catch(()=>{});else return pd(qa).then(fd=>fd.output)}destroy(){var qa,nd,od;(od=(nd=(qa=this.config)==null?void 0:qa.requestHandler)==null?void 0:nd.destroy)==null||od.call(nd),delete this.handlers}};class Command{constructor(){this.middlewareStack=constructStack()}static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(qa,nd,od,{middlewareFn:ld,clientName:ud,commandName:dd,inputFilterSensitiveLog:pd,outputFilterSensitiveLog:fd,smithyContext:md,additionalContext:vd,CommandCtor:Ad}){for(const Gd of ld.bind(this)(Ad,qa,nd,od))this.middlewareStack.use(Gd);const Nd=qa.concat(this.middlewareStack),{logger:Od}=nd,kd={logger:Od,clientName:ud,commandName:dd,inputFilterSensitiveLog:pd,outputFilterSensitiveLog:fd,[SMITHY_CONTEXT_KEY]:{commandInstance:this,...md},...vd},{requestHandler:Ld}=nd;return Nd.resolve(Gd=>Ld.handle(Gd.request,od||{}),kd)}}class ClassBuilder{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=qa=>qa,this._outputFilterSensitiveLog=qa=>qa,this._serializer=null,this._deserializer=null}init(qa){this._init=qa}ep(qa){return this._ep=qa,this}m(qa){return this._middlewareFn=qa,this}s(qa,nd,od={}){return this._smithyContext={service:qa,operation:nd,...od},this}c(qa={}){return this._additionalContext=qa,this}n(qa,nd){return this._clientName=qa,this._commandName=nd,this}f(qa=od=>od,nd=od=>od){return this._inputFilterSensitiveLog=qa,this._outputFilterSensitiveLog=nd,this}ser(qa){return this._serializer=qa,this}de(qa){return this._deserializer=qa,this}build(){const qa=this;let nd;return nd=class extends Command{static getEndpointParameterInstructions(){return qa._ep}constructor(...[od]){super(),this.serialize=qa._serializer,this.deserialize=qa._deserializer,this.input=od??{},qa._init(this)}resolveMiddleware(od,ld,ud){return this.resolveMiddlewareWithContext(od,ld,ud,{CommandCtor:nd,middlewareFn:qa._middlewareFn,clientName:qa._clientName,commandName:qa._commandName,inputFilterSensitiveLog:qa._inputFilterSensitiveLog,outputFilterSensitiveLog:qa._outputFilterSensitiveLog,smithyContext:qa._smithyContext,additionalContext:qa._additionalContext})}}}}const SENSITIVE_STRING="***SensitiveInformation***",parseBoolean=Ra=>{switch(Ra){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${Ra}"`)}},expectNumber=Ra=>{if(Ra!=null){if(typeof Ra=="string"){const qa=parseFloat(Ra);if(!Number.isNaN(qa))return String(qa)!==String(Ra)&&logger.warn(stackTraceWarning(`Expected number but observed string: ${Ra}`)),qa}if(typeof Ra=="number")return Ra;throw new TypeError(`Expected number, got ${typeof Ra}: ${Ra}`)}},MAX_FLOAT=Math.ceil(2**127*(2-2**-23)),expectFloat32=Ra=>{const qa=expectNumber(Ra);if(qa!==void 0&&!Number.isNaN(qa)&&qa!==1/0&&qa!==-1/0&&Math.abs(qa)>MAX_FLOAT)throw new TypeError(`Expected 32-bit float, got ${Ra}`);return qa},expectLong=Ra=>{if(Ra!=null){if(Number.isInteger(Ra)&&!Number.isNaN(Ra))return Ra;throw new TypeError(`Expected integer, got ${typeof Ra}: ${Ra}`)}},expectShort=Ra=>expectSizedInt(Ra,16),expectByte=Ra=>expectSizedInt(Ra,8),expectSizedInt=(Ra,qa)=>{const nd=expectLong(Ra);if(nd!==void 0&&castInt(nd,qa)!==nd)throw new TypeError(`Expected ${qa}-bit integer, got ${Ra}`);return nd},castInt=(Ra,qa)=>{switch(qa){case 32:return Int32Array.of(Ra)[0];case 16:return Int16Array.of(Ra)[0];case 8:return Int8Array.of(Ra)[0]}},expectNonNull=(Ra,qa)=>{if(Ra==null)throw qa?new TypeError(`Expected a non-null value for ${qa}`):new TypeError("Expected a non-null value");return Ra},expectObject=Ra=>{if(Ra==null)return;if(typeof Ra=="object"&&!Array.isArray(Ra))return Ra;const qa=Array.isArray(Ra)?"array":typeof Ra;throw new TypeError(`Expected object, got ${qa}: ${Ra}`)},expectString=Ra=>{if(Ra!=null){if(typeof Ra=="string")return Ra;if(["boolean","number","bigint"].includes(typeof Ra))return logger.warn(stackTraceWarning(`Expected string, got ${typeof Ra}: ${Ra}`)),String(Ra);throw new TypeError(`Expected string, got ${typeof Ra}: ${Ra}`)}},strictParseFloat32=Ra=>expectFloat32(typeof Ra=="string"?parseNumber(Ra):Ra),NUMBER_REGEX=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,parseNumber=Ra=>{const qa=Ra.match(NUMBER_REGEX);if(qa===null||qa[0].length!==Ra.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(Ra)},strictParseLong=Ra=>expectLong(typeof Ra=="string"?parseNumber(Ra):Ra),strictParseShort=Ra=>expectShort(typeof Ra=="string"?parseNumber(Ra):Ra),strictParseByte=Ra=>expectByte(typeof Ra=="string"?parseNumber(Ra):Ra),stackTraceWarning=Ra=>String(new TypeError(Ra).stack||Ra).split(` `).slice(0,5).filter(qa=>!qa.includes("stackTraceWarning")).join(` `),logger={warn:console.warn},DAYS=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MONTHS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(Ra){const qa=Ra.getUTCFullYear(),nd=Ra.getUTCMonth(),od=Ra.getUTCDay(),ld=Ra.getUTCDate(),ud=Ra.getUTCHours(),dd=Ra.getUTCMinutes(),pd=Ra.getUTCSeconds(),fd=ld<10?`0${ld}`:`${ld}`,md=ud<10?`0${ud}`:`${ud}`,vd=dd<10?`0${dd}`:`${dd}`,Ad=pd<10?`0${pd}`:`${pd}`;return`${DAYS[od]}, ${fd} ${MONTHS[nd]} ${qa} ${md}:${vd}:${Ad} GMT`}const RFC3339_WITH_OFFSET=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),parseRfc3339DateTimeWithOffset=Ra=>{if(Ra==null)return;if(typeof Ra!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const qa=RFC3339_WITH_OFFSET.exec(Ra);if(!qa)throw new TypeError("Invalid RFC-3339 date-time value");const[nd,od,ld,ud,dd,pd,fd,md,vd]=qa,Ad=strictParseShort(stripLeadingZeroes(od)),Nd=parseDateValue(ld,"month",1,12),Od=parseDateValue(ud,"day",1,31),kd=buildDate(Ad,Nd,Od,{hours:dd,minutes:pd,seconds:fd,fractionalMilliseconds:md});return vd.toUpperCase()!="Z"&&kd.setTime(kd.getTime()-parseOffsetToMilliseconds(vd)),kd},buildDate=(Ra,qa,nd,od)=>{const ld=qa-1;return validateDayOfMonth(Ra,ld,nd),new Date(Date.UTC(Ra,ld,nd,parseDateValue(od.hours,"hour",0,23),parseDateValue(od.minutes,"minute",0,59),parseDateValue(od.seconds,"seconds",0,60),parseMilliseconds(od.fractionalMilliseconds)))},DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],validateDayOfMonth=(Ra,qa,nd)=>{let od=DAYS_IN_MONTH[qa];if(qa===1&&isLeapYear(Ra)&&(od=29),nd>od)throw new TypeError(`Invalid day for ${MONTHS[qa]} in ${Ra}: ${nd}`)},isLeapYear=Ra=>Ra%4===0&&(Ra%100!==0||Ra%400===0),parseDateValue=(Ra,qa,nd,od)=>{const ld=strictParseByte(stripLeadingZeroes(Ra));if(ldod)throw new TypeError(`${qa} must be between ${nd} and ${od}, inclusive`);return ld},parseMilliseconds=Ra=>Ra==null?0:strictParseFloat32("0."+Ra)*1e3,parseOffsetToMilliseconds=Ra=>{const qa=Ra[0];let nd=1;if(qa=="+")nd=1;else if(qa=="-")nd=-1;else throw new TypeError(`Offset direction, ${qa}, must be "+" or "-"`);const od=Number(Ra.substring(1,3)),ld=Number(Ra.substring(4,6));return nd*(od*60+ld)*60*1e3},stripLeadingZeroes=Ra=>{let qa=0;for(;qa{Object.entries(qa).filter(([,od])=>od!==void 0).forEach(([od,ld])=>{(Ra[od]==null||Ra[od]==="")&&(Ra[od]=ld)});const nd=Ra.message||Ra.Message||"UnknownError";return Ra.message=nd,delete Ra.Message,Ra},throwDefaultError$1=({output:Ra,parsedBody:qa,exceptionCtor:nd,errorCode:od})=>{const ld=deserializeMetadata$1(Ra),ud=ld.httpStatusCode?ld.httpStatusCode+"":void 0,dd=new nd({name:(qa==null?void 0:qa.code)||(qa==null?void 0:qa.Code)||od||ud||"UnknownError",$fault:"client",$metadata:ld});throw decorateServiceException(dd,qa)},withBaseException=Ra=>({output:qa,parsedBody:nd,errorCode:od})=>{throwDefaultError$1({output:qa,parsedBody:nd,exceptionCtor:Ra,errorCode:od})},deserializeMetadata$1=Ra=>({httpStatusCode:Ra.statusCode,requestId:Ra.headers["x-amzn-requestid"]??Ra.headers["x-amzn-request-id"]??Ra.headers["x-amz-request-id"],extendedRequestId:Ra.headers["x-amz-id-2"],cfId:Ra.headers["x-amz-cf-id"]}),loadConfigsForDefaultMode=Ra=>{switch(Ra){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},getChecksumConfiguration=Ra=>{const qa=[];for(const nd in AlgorithmId){const od=AlgorithmId[nd];Ra[od]!==void 0&&qa.push({algorithmId:()=>od,checksumConstructor:()=>Ra[od]})}return{_checksumAlgorithms:qa,addChecksumAlgorithm(nd){this._checksumAlgorithms.push(nd)},checksumAlgorithms(){return this._checksumAlgorithms}}},resolveChecksumRuntimeConfig=Ra=>{const qa={};return Ra.checksumAlgorithms().forEach(nd=>{qa[nd.algorithmId()]=nd.checksumConstructor()}),qa},getRetryConfiguration=Ra=>{let qa=Ra.retryStrategy;return{setRetryStrategy(nd){qa=nd},retryStrategy(){return qa}}},resolveRetryRuntimeConfig=Ra=>{const qa={};return qa.retryStrategy=Ra.retryStrategy(),qa},getDefaultExtensionConfiguration=Ra=>({...getChecksumConfiguration(Ra),...getRetryConfiguration(Ra)}),resolveDefaultRuntimeConfig=Ra=>({...resolveChecksumRuntimeConfig(Ra),...resolveRetryRuntimeConfig(Ra)}),getValueFromTextNode=Ra=>{const qa="#text";for(const nd in Ra)Ra.hasOwnProperty(nd)&&Ra[nd][qa]!==void 0?Ra[nd]=Ra[nd][qa]:typeof Ra[nd]=="object"&&Ra[nd]!==null&&(Ra[nd]=getValueFromTextNode(Ra[nd]));return Ra},isSerializableHeaderValue=Ra=>Ra!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map$2(Ra,qa,nd){let od,ld,ud;if(typeof qa>"u"&&typeof nd>"u")od={},ud=Ra;else{if(od=Ra,typeof qa=="function")return ld=qa,ud=nd,mapWithFilter(od,ld,ud);ud=qa}for(const dd of Object.keys(ud)){if(!Array.isArray(ud[dd])){od[dd]=ud[dd];continue}applyInstruction(od,null,ud,dd)}return od}const mapWithFilter=(Ra,qa,nd)=>map$2(Ra,Object.entries(nd).reduce((od,[ld,ud])=>(Array.isArray(ud)?od[ld]=ud:typeof ud=="function"?od[ld]=[qa,ud()]:od[ld]=[qa,ud],od),{})),applyInstruction=(Ra,qa,nd,od)=>{let[ld,ud]=nd[od];if(typeof ud=="function"){let dd;const pd=ld===void 0&&(dd=ud())!=null,fd=typeof ld=="function"&&!!ld(void 0)||typeof ld!="function"&&!!ld;pd?Ra[od]=dd:fd&&(Ra[od]=ud())}else{const dd=ld===void 0&&ud!=null,pd=typeof ld=="function"&&!!ld(ud)||typeof ld!="function"&&!!ld;(dd||pd)&&(Ra[od]=ud)}},serializeDateTime=Ra=>Ra.toISOString().replace(".000Z","Z"),collectBodyString=(Ra,qa)=>collectBody$1(Ra,qa).then(nd=>qa.utf8Encoder(nd));var validator$5={},util$8={};(function(Ra){const qa=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",nd=qa+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",od="["+qa+"]["+nd+"]*",ld=new RegExp("^"+od+"$"),ud=function(pd,fd){const md=[];let vd=fd.exec(pd);for(;vd;){const Ad=[];Ad.startIndex=fd.lastIndex-vd[0].length;const Nd=vd.length;for(let Od=0;Od"u")};Ra.isExist=function(pd){return typeof pd<"u"},Ra.isEmptyObject=function(pd){return Object.keys(pd).length===0},Ra.merge=function(pd,fd,md){if(fd){const vd=Object.keys(fd),Ad=vd.length;for(let Nd=0;Nd"&&Ra[ud]!==" "&&Ra[ud]!==" "&&Ra[ud]!==` `&&Ra[ud]!=="\r";ud++)fd+=Ra[ud];if(fd=fd.trim(),fd[fd.length-1]==="/"&&(fd=fd.substring(0,fd.length-1),ud--),!validateTagName$1(fd)){let Ad;return fd.trim().length===0?Ad="Invalid space after '<'.":Ad="Tag '"+fd+"' is an invalid name.",getErrorObject$1("InvalidTag",Ad,getLineNumberForPosition$1(Ra,ud))}const md=readAttributeStr$1(Ra,ud);if(md===!1)return getErrorObject$1("InvalidAttr","Attributes for '"+fd+"' have open quote.",getLineNumberForPosition$1(Ra,ud));let vd=md.value;if(ud=md.index,vd[vd.length-1]==="/"){const Ad=ud-vd.length;vd=vd.substring(0,vd.length-1);const Nd=validateAttributeString$1(vd,qa);if(Nd===!0)od=!0;else return getErrorObject$1(Nd.err.code,Nd.err.msg,getLineNumberForPosition$1(Ra,Ad+Nd.err.line))}else if(pd)if(md.tagClosed){if(vd.trim().length>0)return getErrorObject$1("InvalidTag","Closing tag '"+fd+"' can't have attributes or invalid starting.",getLineNumberForPosition$1(Ra,dd));if(nd.length===0)return getErrorObject$1("InvalidTag","Closing tag '"+fd+"' has not been opened.",getLineNumberForPosition$1(Ra,dd));{const Ad=nd.pop();if(fd!==Ad.tagName){let Nd=getLineNumberForPosition$1(Ra,Ad.tagStartPos);return getErrorObject$1("InvalidTag","Expected closing tag '"+Ad.tagName+"' (opened in line "+Nd.line+", col "+Nd.col+") instead of closing tag '"+fd+"'.",getLineNumberForPosition$1(Ra,dd))}nd.length==0&&(ld=!0)}}else return getErrorObject$1("InvalidTag","Closing tag '"+fd+"' doesn't have proper closing.",getLineNumberForPosition$1(Ra,ud));else{const Ad=validateAttributeString$1(vd,qa);if(Ad!==!0)return getErrorObject$1(Ad.err.code,Ad.err.msg,getLineNumberForPosition$1(Ra,ud-vd.length+Ad.err.line));if(ld===!0)return getErrorObject$1("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition$1(Ra,ud));qa.unpairedTags.indexOf(fd)!==-1||nd.push({tagName:fd,tagStartPos:dd}),od=!0}for(ud++;ud0)return getErrorObject$1("InvalidXml","Invalid '"+JSON.stringify(nd.map(ud=>ud.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return getErrorObject$1("InvalidXml","Start tag expected.",1);return!0};function isWhiteSpace$1(Ra){return Ra===" "||Ra===" "||Ra===` @@ -1130,26 +1141,26 @@ ${toHex(ud)}`}getCanonicalPath({path:qa}){if(this.uriEscapePath){const nd=[];for `,this.newLine=` `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Builder$1.prototype.build=function(Ra){return this.options.preserveOrder?buildFromOrderedJs$1(Ra,this.options):(Array.isArray(Ra)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ra={[this.options.arrayNodeName]:Ra}),this.j2x(Ra,0).val)};Builder$1.prototype.j2x=function(Ra,qa){let nd="",od="";for(let ld in Ra)if(Object.prototype.hasOwnProperty.call(Ra,ld))if(typeof Ra[ld]>"u")this.isAttribute(ld)&&(od+="");else if(Ra[ld]===null)this.isAttribute(ld)?od+="":ld[0]==="?"?od+=this.indentate(qa)+"<"+ld+"?"+this.tagEndChar:od+=this.indentate(qa)+"<"+ld+"/"+this.tagEndChar;else if(Ra[ld]instanceof Date)od+=this.buildTextValNode(Ra[ld],ld,"",qa);else if(typeof Ra[ld]!="object"){const ud=this.isAttribute(ld);if(ud)nd+=this.buildAttrPairStr(ud,""+Ra[ld]);else if(ld===this.options.textNodeName){let dd=this.options.tagValueProcessor(ld,""+Ra[ld]);od+=this.replaceEntitiesValue(dd)}else od+=this.buildTextValNode(Ra[ld],ld,"",qa)}else if(Array.isArray(Ra[ld])){const ud=Ra[ld].length;let dd="",pd="";for(let fd=0;fd"u"))if(md===null)ld[0]==="?"?od+=this.indentate(qa)+"<"+ld+"?"+this.tagEndChar:od+=this.indentate(qa)+"<"+ld+"/"+this.tagEndChar;else if(typeof md=="object")if(this.options.oneListGroup){const vd=this.j2x(md,qa+1);dd+=vd.val,this.options.attributesGroupName&&md.hasOwnProperty(this.options.attributesGroupName)&&(pd+=vd.attrStr)}else dd+=this.processTextOrObjNode(md,ld,qa);else if(this.options.oneListGroup){let vd=this.options.tagValueProcessor(ld,md);vd=this.replaceEntitiesValue(vd),dd+=vd}else dd+=this.buildTextValNode(md,ld,"",qa)}this.options.oneListGroup&&(dd=this.buildObjectNode(dd,ld,pd,qa)),od+=dd}else if(this.options.attributesGroupName&&ld===this.options.attributesGroupName){const ud=Object.keys(Ra[ld]),dd=ud.length;for(let pd=0;pd"+Ra+ld:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&ud.length===0?this.indentate(od)+``+this.newLine:this.indentate(od)+"<"+qa+nd+ud+this.tagEndChar+Ra+this.indentate(od)+ld}};Builder$1.prototype.closeTag=function(Ra){let qa="";return this.options.unpairedTags.indexOf(Ra)!==-1?this.options.suppressUnpairedNode||(qa="/"):this.options.suppressEmptyNode?qa="/":qa=`>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(od)+``+this.newLine;if(qa[0]==="?")return this.indentate(od)+"<"+qa+nd+"?"+this.tagEndChar;{let ld=this.options.tagValueProcessor(qa,Ra);return ld=this.replaceEntitiesValue(ld),ld===""?this.indentate(od)+"<"+qa+nd+this.closeTag(qa)+this.tagEndChar:this.indentate(od)+"<"+qa+nd+">"+ld+"0&&this.options.processEntities)for(let qa=0;qacollectBodyString(Ra,qa).then(nd=>{if(nd.length){const od=new fxp$3.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(fd,md)=>md.trim()===""&&md.includes(` `)?"":void 0});od.addEntity("#xD","\r"),od.addEntity("#10",` -`);let ld;try{ld=od.parse(nd,!0)}catch(fd){throw fd&&typeof fd=="object"&&Object.defineProperty(fd,"$responseBodyText",{value:nd}),fd}const ud="#text",dd=Object.keys(ld)[0],pd=ld[dd];return pd[ud]&&(pd[dd]=pd[ud],delete pd[ud]),getValueFromTextNode(pd)}return{}}),parseXmlErrorBody=async(Ra,qa)=>{const nd=await parseXmlBody(Ra,qa);return nd.Error&&(nd.Error.message=nd.Error.message??nd.Error.Message),nd},loadRestXmlErrorCode=(Ra,qa)=>{var nd;if(((nd=qa==null?void 0:qa.Error)==null?void 0:nd.Code)!==void 0)return qa.Error.Code;if((qa==null?void 0:qa.Code)!==void 0)return qa.Code;if(Ra.statusCode==404)return"NotFound"},CLIENT_SUPPORTED_ALGORITHMS=[ChecksumAlgorithm.CRC32,ChecksumAlgorithm.CRC32C,ChecksumAlgorithm.SHA1,ChecksumAlgorithm.SHA256],PRIORITY_ORDER_ALGORITHMS=[ChecksumAlgorithm.SHA256,ChecksumAlgorithm.SHA1,ChecksumAlgorithm.CRC32,ChecksumAlgorithm.CRC32C],getChecksumAlgorithmForRequest=(Ra,{requestChecksumRequired:qa,requestAlgorithmMember:nd},od)=>{const ld=od?S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM:DEFAULT_CHECKSUM_ALGORITHM;if(!nd||!Ra[nd])return qa?ld:void 0;const ud=Ra[nd];if(!CLIENT_SUPPORTED_ALGORITHMS.includes(ud))throw new Error(`The checksum algorithm "${ud}" is not supported by the client. Select one of ${CLIENT_SUPPORTED_ALGORITHMS}.`);return ud},getChecksumLocationName=Ra=>Ra===ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${Ra.toLowerCase()}`,hasHeader=(Ra,qa)=>{const nd=Ra.toLowerCase();for(const od of Object.keys(qa))if(nd===od.toLowerCase())return!0;return!1},hasHeaderWithPrefix=(Ra,qa)=>{const nd=Ra.toLowerCase();for(const od of Object.keys(qa))if(od.toLowerCase().startsWith(nd))return!0;return!1},isStreaming=Ra=>Ra!==void 0&&typeof Ra!="string"&&!ArrayBuffer.isView(Ra)&&!isArrayBuffer$1(Ra);function __awaiter$8(Ra,qa,nd,od){function ld(ud){return ud instanceof nd?ud:new nd(function(dd){dd(ud)})}return new(nd||(nd=Promise))(function(ud,dd){function pd(vd){try{md(od.next(vd))}catch(Ad){dd(Ad)}}function fd(vd){try{md(od.throw(vd))}catch(Ad){dd(Ad)}}function md(vd){vd.done?ud(vd.value):ld(vd.value).then(pd,fd)}md((od=od.apply(Ra,qa||[])).next())})}function __generator$8(Ra,qa){var nd={label:0,sent:function(){if(ud[0]&1)throw ud[1];return ud[1]},trys:[],ops:[]},od,ld,ud,dd=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return dd.next=pd(0),dd.throw=pd(1),dd.return=pd(2),typeof Symbol=="function"&&(dd[Symbol.iterator]=function(){return this}),dd;function pd(md){return function(vd){return fd([md,vd])}}function fd(md){if(od)throw new TypeError("Generator is already executing.");for(;dd&&(dd=0,md[0]&&(nd=0)),nd;)try{if(od=1,ld&&(ud=md[0]&2?ld.return:md[0]?ld.throw||((ud=ld.return)&&ud.call(ld),0):ld.next)&&!(ud=ud.call(ld,md[1])).done)return ud;switch(ld=0,ud&&(md=[md[0]&2,ud.value]),md[0]){case 0:case 1:ud=md;break;case 4:return nd.label++,{value:md[1],done:!1};case 5:nd.label++,ld=md[1],md=[0];continue;case 7:md=nd.ops.pop(),nd.trys.pop();continue;default:if(ud=nd.trys,!(ud=ud.length>0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]=Ra.length&&(Ra=void 0),{value:Ra&&Ra[od++],done:!Ra}}};throw new TypeError(qa?"Object is not iterable.":"Symbol.iterator is not defined.")}typeof SuppressedError=="function"&&SuppressedError;const fromUtf8$2=Ra=>new TextEncoder().encode(Ra);var fromUtf8$1=typeof Buffer$4<"u"&&Buffer$4.from?function(Ra){return Buffer$4.from(Ra,"utf8")}:fromUtf8$2;function convertToBuffer$2(Ra){return Ra instanceof Uint8Array?Ra:typeof Ra=="string"?fromUtf8$1(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,Ra.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(Ra)}function isEmptyData$2(Ra){return typeof Ra=="string"?Ra.length===0:Ra.byteLength===0}function numToUint8(Ra){return new Uint8Array([(Ra&4278190080)>>24,(Ra&16711680)>>16,(Ra&65280)>>8,Ra&255])}function uint32ArrayFrom(Ra){if(!Uint32Array.from){for(var qa=new Uint32Array(Ra.length),nd=0;nd>>8^lookupTable$1[(this.checksum^dd)&255]}}catch(pd){nd={error:pd}}finally{try{ud&&!ud.done&&(od=ld.return)&&od.call(ld)}finally{if(nd)throw nd.error}}return this},Ra.prototype.digest=function(){return(this.checksum^4294967295)>>>0},Ra}(),a_lookupTable=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],lookupTable$1=uint32ArrayFrom(a_lookupTable),AwsCrc32=function(){function Ra(){this.crc32=new Crc32}return Ra.prototype.update=function(qa){isEmptyData$2(qa)||this.crc32.update(convertToBuffer$2(qa))},Ra.prototype.digest=function(){return __awaiter$8(this,void 0,void 0,function(){return __generator$8(this,function(qa){return[2,numToUint8(this.crc32.digest())]})})},Ra.prototype.reset=function(){this.crc32=new Crc32},Ra}(),Crc32=function(){function Ra(){this.checksum=4294967295}return Ra.prototype.update=function(qa){var nd,od;try{for(var ld=__values(qa),ud=ld.next();!ud.done;ud=ld.next()){var dd=ud.value;this.checksum=this.checksum>>>8^lookupTable[(this.checksum^dd)&255]}}catch(pd){nd={error:pd}}finally{try{ud&&!ud.done&&(od=ld.return)&&od.call(ld)}finally{if(nd)throw nd.error}}return this},Ra.prototype.digest=function(){return(this.checksum^4294967295)>>>0},Ra}(),a_lookUpTable=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],lookupTable=uint32ArrayFrom(a_lookUpTable);const getCrc32ChecksumAlgorithmFunction=()=>AwsCrc32,selectChecksumAlgorithmFunction=(Ra,qa)=>{switch(Ra){case ChecksumAlgorithm.MD5:return qa.md5;case ChecksumAlgorithm.CRC32:return getCrc32ChecksumAlgorithmFunction();case ChecksumAlgorithm.CRC32C:return AwsCrc32c;case ChecksumAlgorithm.SHA1:return qa.sha1;case ChecksumAlgorithm.SHA256:return qa.sha256;default:throw new Error(`Unsupported checksum algorithm: ${Ra}`)}},stringHasher=(Ra,qa)=>{const nd=new Ra;return nd.update(toUint8Array(qa||"")),nd.digest()},flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},flexibleChecksumsMiddleware=(Ra,qa)=>(nd,od)=>async ld=>{if(!HttpRequest.isInstance(ld.request)||hasHeaderWithPrefix("x-amz-checksum-",ld.request.headers))return nd(ld);const{request:ud,input:dd}=ld,{body:pd,headers:fd}=ud,{base64Encoder:md,streamHasher:vd}=Ra,{requestChecksumRequired:Ad,requestAlgorithmMember:Nd}=qa,Od=getChecksumAlgorithmForRequest(dd,{requestChecksumRequired:Ad,requestAlgorithmMember:Nd==null?void 0:Nd.name},!!od.isS3ExpressBucket);let kd=pd,Ld=fd;if(Od){switch(Od){case ChecksumAlgorithm.CRC32:setFeature$1(od,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case ChecksumAlgorithm.CRC32C:setFeature$1(od,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case ChecksumAlgorithm.SHA1:setFeature$1(od,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case ChecksumAlgorithm.SHA256:setFeature$1(od,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const Ud=getChecksumLocationName(Od),Fd=selectChecksumAlgorithmFunction(Od,Ra);if(isStreaming(pd)){const{getAwsChunkedEncodingStream:jd,bodyLengthChecker:qd}=Ra;kd=jd(pd,{base64Encoder:md,bodyLengthChecker:qd,checksumLocationName:Ud,checksumAlgorithmFn:Fd,streamHasher:vd}),Ld={...fd,"content-encoding":fd["content-encoding"]?`${fd["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":fd["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":Ud},delete Ld["content-length"]}else if(!hasHeader(Ud,fd)){const jd=await stringHasher(Fd,pd);Ld={...fd,[Ud]:md(jd)}}}return await nd({...ld,request:{...ud,headers:Ld,body:kd}})},getChecksumAlgorithmListForResponse=(Ra=[])=>{const qa=[];for(const nd of PRIORITY_ORDER_ALGORITHMS)!Ra.includes(nd)||!CLIENT_SUPPORTED_ALGORITHMS.includes(nd)||qa.push(nd);return qa},isChecksumWithPartNumber=Ra=>{const qa=Ra.lastIndexOf("-");if(qa!==-1){const nd=Ra.slice(qa+1);if(!nd.startsWith("0")){const od=parseInt(nd,10);if(!isNaN(od)&&od>=1&&od<=1e4)return!0}}return!1};function createReadStreamOnBuffer(Ra){return new Blob([Ra]).stream()}const getChecksum=async(Ra,{checksumAlgorithmFn:qa,base64Encoder:nd})=>nd(await stringHasher(qa,Ra)),validateChecksumFromResponse=async(Ra,{config:qa,responseAlgorithms:nd})=>{const od=getChecksumAlgorithmListForResponse(nd),{body:ld,headers:ud}=Ra;for(const dd of od){const pd=getChecksumLocationName(dd),fd=ud[pd];if(fd){const md=selectChecksumAlgorithmFunction(dd,qa),{base64Encoder:vd}=qa;if(isStreaming(ld)){Ra.body=createChecksumStream({expectedChecksum:fd,checksumSourceLocation:pd,checksum:new md,source:ld,base64Encoder:vd});return}const Ad=await getChecksum(ld,{checksumAlgorithmFn:md,base64Encoder:vd});if(Ad===fd)break;throw new Error(`Checksum mismatch: expected "${Ad}" but received "${fd}" in response header "${pd}".`)}}},flexibleChecksumsResponseMiddlewareOptions={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},flexibleChecksumsResponseMiddleware=(Ra,qa)=>(nd,od)=>async ld=>{if(!HttpRequest.isInstance(ld.request))return nd(ld);const ud=ld.input,dd=await nd(ld),pd=dd.response;let fd;const{requestValidationModeMember:md,responseAlgorithms:vd}=qa;if(md&&ud[md]==="ENABLED"){const{clientName:Ad,commandName:Nd}=od;if(Ad==="S3Client"&&Nd==="GetObjectCommand"&&getChecksumAlgorithmListForResponse(vd).every(Ld=>{const Gd=getChecksumLocationName(Ld),Ud=pd.headers[Gd];return!Ud||isChecksumWithPartNumber(Ud)}))return dd;const kd=isStreaming(pd.body);kd&&(fd=await Ra.streamCollector(pd.body),pd.body=createReadStreamOnBuffer(fd)),await validateChecksumFromResponse(dd.response,{config:Ra,responseAlgorithms:vd}),kd&&fd&&(pd.body=createReadStreamOnBuffer(fd))}return dd},getFlexibleChecksumsPlugin=(Ra,qa)=>({applyToStack:nd=>{nd.add(flexibleChecksumsMiddleware(Ra,qa),flexibleChecksumsMiddlewareOptions),nd.addRelativeTo(flexibleChecksumsResponseMiddleware(Ra,qa),flexibleChecksumsResponseMiddlewareOptions)}}),resolveFlexibleChecksumsConfig=Ra=>({...Ra,requestChecksumCalculation:normalizeProvider$1(Ra.requestChecksumCalculation??DEFAULT_REQUEST_CHECKSUM_CALCULATION),responseChecksumValidation:normalizeProvider$1(Ra.responseChecksumValidation??DEFAULT_RESPONSE_CHECKSUM_VALIDATION)});function resolveHostHeaderConfig(Ra){return Ra}const hostHeaderMiddleware=Ra=>qa=>async nd=>{if(!HttpRequest.isInstance(nd.request))return qa(nd);const{request:od}=nd,{handlerProtocol:ld=""}=Ra.requestHandler.metadata||{};if(ld.indexOf("h2")>=0&&!od.headers[":authority"])delete od.headers.host,od.headers[":authority"]=od.hostname+(od.port?":"+od.port:"");else if(!od.headers.host){let ud=od.hostname;od.port!=null&&(ud+=`:${od.port}`),od.headers.host=ud}return qa(nd)},hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},getHostHeaderPlugin=Ra=>({applyToStack:qa=>{qa.add(hostHeaderMiddleware(Ra),hostHeaderMiddlewareOptions)}}),loggerMiddleware=()=>(Ra,qa)=>async nd=>{var od,ld;try{const ud=await Ra(nd),{clientName:dd,commandName:pd,logger:fd,dynamoDbDocumentClientOptions:md={}}=qa,{overrideInputFilterSensitiveLog:vd,overrideOutputFilterSensitiveLog:Ad}=md,Nd=vd??qa.inputFilterSensitiveLog,Od=Ad??qa.outputFilterSensitiveLog,{$metadata:kd,...Ld}=ud.output;return(od=fd==null?void 0:fd.info)==null||od.call(fd,{clientName:dd,commandName:pd,input:Nd(nd.input),output:Od(Ld),metadata:kd}),ud}catch(ud){const{clientName:dd,commandName:pd,logger:fd,dynamoDbDocumentClientOptions:md={}}=qa,{overrideInputFilterSensitiveLog:vd}=md,Ad=vd??qa.inputFilterSensitiveLog;throw(ld=fd==null?void 0:fd.error)==null||ld.call(fd,{clientName:dd,commandName:pd,input:Ad(nd.input),error:ud,metadata:ud.$metadata}),ud}},loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},getLoggerPlugin=Ra=>({applyToStack:qa=>{qa.add(loggerMiddleware(),loggerMiddlewareOptions)}});var define_process_env_default={};const TRACE_ID_HEADER_NAME="X-Amzn-Trace-Id",ENV_LAMBDA_FUNCTION_NAME="AWS_LAMBDA_FUNCTION_NAME",ENV_TRACE_ID="_X_AMZN_TRACE_ID",recursionDetectionMiddleware=Ra=>qa=>async nd=>{const{request:od}=nd;if(!HttpRequest.isInstance(od)||Ra.runtime!=="node"||od.headers.hasOwnProperty(TRACE_ID_HEADER_NAME))return qa(nd);const ld=define_process_env_default[ENV_LAMBDA_FUNCTION_NAME],ud=define_process_env_default[ENV_TRACE_ID],dd=pd=>typeof pd=="string"&&pd.length>0;return dd(ld)&&dd(ud)&&(od.headers[TRACE_ID_HEADER_NAME]=ud),qa({...nd,request:od})},addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},getRecursionDetectionPlugin=Ra=>({applyToStack:qa=>{qa.add(recursionDetectionMiddleware(Ra),addRecursionDetectionMiddlewareOptions)}}),CONTENT_LENGTH_HEADER$1="content-length";function checkContentLengthHeader(){return(Ra,qa)=>async nd=>{var ld;const{request:od}=nd;if(HttpRequest.isInstance(od)&&!(CONTENT_LENGTH_HEADER$1 in od.headers)){const ud="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((ld=qa==null?void 0:qa.logger)==null?void 0:ld.warn)=="function"&&!(qa.logger instanceof NoOpLogger)?qa.logger.warn(ud):console.warn(ud)}return Ra({...nd})}}const checkContentLengthHeaderMiddlewareOptions={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},getCheckContentLengthHeaderPlugin=Ra=>({applyToStack:qa=>{qa.add(checkContentLengthHeader(),checkContentLengthHeaderMiddlewareOptions)}}),regionRedirectEndpointMiddleware=Ra=>(qa,nd)=>async od=>{const ld=await Ra.region(),ud=Ra.region;let dd=()=>{};nd.__s3RegionRedirect&&(Object.defineProperty(Ra,"region",{writable:!1,value:async()=>nd.__s3RegionRedirect}),dd=()=>Object.defineProperty(Ra,"region",{writable:!0,value:ud}));try{const pd=await qa(od);if(nd.__s3RegionRedirect){dd();const fd=await Ra.region();if(ld!==fd)throw new Error("Region was not restored following S3 region redirect.")}return pd}catch(pd){throw dd(),pd}},regionRedirectEndpointMiddlewareOptions={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function regionRedirectMiddleware(Ra){return(qa,nd)=>async od=>{var ld,ud,dd;try{return await qa(od)}catch(pd){if(Ra.followRegionRedirects&&(((ld=pd==null?void 0:pd.$metadata)==null?void 0:ld.httpStatusCode)===301||((ud=pd==null?void 0:pd.$metadata)==null?void 0:ud.httpStatusCode)===400&&(pd==null?void 0:pd.name)==="IllegalLocationConstraintException")){try{const fd=pd.$response.headers["x-amz-bucket-region"];(dd=nd.logger)==null||dd.debug(`Redirecting from ${await Ra.region()} to ${fd}`),nd.__s3RegionRedirect=fd}catch(fd){throw new Error("Region redirect failed: "+fd)}return qa(od)}throw pd}}}const regionRedirectMiddlewareOptions={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},getRegionRedirectMiddlewarePlugin=Ra=>({applyToStack:qa=>{qa.add(regionRedirectMiddleware(Ra),regionRedirectMiddlewareOptions),qa.addRelativeTo(regionRedirectEndpointMiddleware(Ra),regionRedirectEndpointMiddlewareOptions)}});class S3ExpressIdentityCache{constructor(qa={}){this.data=qa,this.lastPurgeTime=Date.now()}get(qa){const nd=this.data[qa];if(nd)return nd}set(qa,nd){return this.data[qa]=nd,nd}delete(qa){delete this.data[qa]}async purgeExpired(){const qa=Date.now();if(!(this.lastPurgeTime+S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>qa))for(const nd in this.data){const od=this.data[nd];if(!od.isRefreshing){const ld=await od.identity;ld.expiration&&ld.expiration.getTime(){var md,vd;return(((md=dd.expiration)==null?void 0:md.getTime())??0){ld.set(od,new S3ExpressIdentityCacheEntry(Promise.resolve(Ad)))})),dd)}):ld.set(od,new S3ExpressIdentityCacheEntry(this.getIdentity(od))).identity}async getIdentity(qa){var ld,ud;await this.cache.purgeExpired().catch(dd=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: -`+dd)});const nd=await this.createSessionFn(qa);if(!((ld=nd.Credentials)!=null&&ld.AccessKeyId)||!((ud=nd.Credentials)!=null&&ud.SecretAccessKey))throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:nd.Credentials.AccessKeyId,secretAccessKey:nd.Credentials.SecretAccessKey,sessionToken:nd.Credentials.SessionToken,expiration:nd.Credentials.Expiration?new Date(nd.Credentials.Expiration):void 0}}}S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS=6e4;var SelectorType;(function(Ra){Ra.ENV="env",Ra.CONFIG="shared config entry"})(SelectorType||(SelectorType={}));const S3_EXPRESS_BUCKET_TYPE="Directory",S3_EXPRESS_BACKEND="S3Express",S3_EXPRESS_AUTH_SCHEME="sigv4-s3express",SESSION_TOKEN_QUERY_PARAM="X-Amz-S3session-Token",SESSION_TOKEN_HEADER=SESSION_TOKEN_QUERY_PARAM.toLowerCase();class SignatureV4S3Express extends SignatureV4{async signWithCredentials(qa,nd,od){const ld=getCredentialsWithoutSessionToken(nd);qa.headers[SESSION_TOKEN_HEADER]=nd.sessionToken;const ud=this;return setSingleOverride(ud,ld),ud.signRequest(qa,od??{})}async presignWithCredentials(qa,nd,od){const ld=getCredentialsWithoutSessionToken(nd);return delete qa.headers[SESSION_TOKEN_HEADER],qa.headers[SESSION_TOKEN_QUERY_PARAM]=nd.sessionToken,qa.query=qa.query??{},qa.query[SESSION_TOKEN_QUERY_PARAM]=nd.sessionToken,setSingleOverride(this,ld),this.presign(qa,od)}}function getCredentialsWithoutSessionToken(Ra){return{accessKeyId:Ra.accessKeyId,secretAccessKey:Ra.secretAccessKey,expiration:Ra.expiration}}function setSingleOverride(Ra,qa){const nd=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),od=Ra.credentialProvider,ld=()=>(clearTimeout(nd),Ra.credentialProvider=od,Promise.resolve(qa));Ra.credentialProvider=ld}const s3ExpressMiddleware=Ra=>(qa,nd)=>async od=>{var ld,ud,dd,pd,fd;if(nd.endpointV2){const md=nd.endpointV2,vd=((dd=(ud=(ld=md.properties)==null?void 0:ld.authSchemes)==null?void 0:ud[0])==null?void 0:dd.name)===S3_EXPRESS_AUTH_SCHEME;if((((pd=md.properties)==null?void 0:pd.backend)===S3_EXPRESS_BACKEND||((fd=md.properties)==null?void 0:fd.bucketType)===S3_EXPRESS_BUCKET_TYPE)&&(setFeature$1(nd,"S3_EXPRESS_BUCKET","J"),nd.isS3ExpressBucket=!0),vd){const Nd=od.input.Bucket;if(Nd){const Od=await Ra.s3ExpressIdentityProvider.getS3ExpressIdentity(await Ra.credentials(),{Bucket:Nd});nd.s3ExpressIdentity=Od,HttpRequest.isInstance(od.request)&&Od.sessionToken&&(od.request.headers[SESSION_TOKEN_HEADER]=Od.sessionToken)}}}return qa(od)},s3ExpressMiddlewareOptions={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},getS3ExpressPlugin=Ra=>({applyToStack:qa=>{qa.add(s3ExpressMiddleware(Ra),s3ExpressMiddlewareOptions)}}),signS3Express=async(Ra,qa,nd,od)=>{const ld=await od.signWithCredentials(nd,Ra,{});if(ld.headers["X-Amz-Security-Token"]||ld.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return ld},defaultErrorHandler=Ra=>qa=>{throw qa},defaultSuccessHandler=(Ra,qa)=>{},s3ExpressHttpSigningMiddleware=Ra=>(qa,nd)=>async od=>{if(!HttpRequest.isInstance(od.request))return qa(od);const ud=getSmithyContext(nd).selectedHttpAuthScheme;if(!ud)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:dd={}},identity:pd,signer:fd}=ud;let md;nd.s3ExpressIdentity?md=await signS3Express(nd.s3ExpressIdentity,dd,od.request,await Ra.signer()):md=await fd.sign(od.request,pd,dd);const vd=await qa({...od,request:md}).catch((fd.errorHandler||defaultErrorHandler)(dd));return(fd.successHandler||defaultSuccessHandler)(vd.response,dd),vd},getS3ExpressHttpSigningPlugin=Ra=>({applyToStack:qa=>{qa.addRelativeTo(s3ExpressHttpSigningMiddleware(Ra),httpSigningMiddlewareOptions)}}),resolveS3Config=(Ra,{session:qa})=>{const[nd,od]=qa;return{...Ra,forcePathStyle:Ra.forcePathStyle??!1,useAccelerateEndpoint:Ra.useAccelerateEndpoint??!1,disableMultiregionAccessPoints:Ra.disableMultiregionAccessPoints??!1,followRegionRedirects:Ra.followRegionRedirects??!1,s3ExpressIdentityProvider:Ra.s3ExpressIdentityProvider??new S3ExpressIdentityProviderImpl(async ld=>nd().send(new od({Bucket:ld,SessionMode:"ReadWrite"}))),bucketEndpoint:Ra.bucketEndpoint??!1}},THROW_IF_EMPTY_BODY={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},MAX_BYTES_TO_INSPECT=3e3,throw200ExceptionsMiddleware=Ra=>(qa,nd)=>async od=>{const ld=await qa(od),{response:ud}=ld;if(!HttpResponse.isInstance(ud))return ld;const{statusCode:dd,body:pd}=ud;if(dd<200||dd>=300||!(typeof(pd==null?void 0:pd.stream)=="function"||typeof(pd==null?void 0:pd.pipe)=="function"||typeof(pd==null?void 0:pd.tee)=="function"))return ld;let md=pd,vd=pd;pd&&typeof pd=="object"&&!(pd instanceof Uint8Array)&&([md,vd]=await splitStream(pd)),ud.body=vd;const Ad=await collectBody(md,{streamCollector:async Od=>headStream(Od,MAX_BYTES_TO_INSPECT)});typeof(md==null?void 0:md.destroy)=="function"&&md.destroy();const Nd=Ra.utf8Encoder(Ad.subarray(Ad.length-16));if(Ad.length===0&&THROW_IF_EMPTY_BODY[nd.commandName]){const Od=new Error("S3 aborted request");throw Od.name="InternalError",Od}return Nd&&Nd.endsWith("")&&(ud.statusCode=400),ld},collectBody=(Ra=new Uint8Array,qa)=>Ra instanceof Uint8Array?Promise.resolve(Ra):qa.streamCollector(Ra)||Promise.resolve(new Uint8Array),throw200ExceptionsMiddlewareOptions={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},getThrow200ExceptionsPlugin=Ra=>({applyToStack:qa=>{qa.addRelativeTo(throw200ExceptionsMiddleware(Ra),throw200ExceptionsMiddlewareOptions)}}),validate=Ra=>typeof Ra=="string"&&Ra.indexOf("arn:")===0&&Ra.split(":").length>=6;function bucketEndpointMiddleware(Ra){return(qa,nd)=>async od=>{var ld,ud,dd,pd;if(Ra.bucketEndpoint){const fd=nd.endpointV2;if(fd){const md=od.input.Bucket;if(typeof md=="string")try{const vd=new URL(md);nd.endpointV2={...fd,url:vd}}catch(vd){const Ad=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${md} could not be parsed as URL.`;throw((ud=(ld=nd.logger)==null?void 0:ld.constructor)==null?void 0:ud.name)==="NoOpLogger"?console.warn(Ad):(pd=(dd=nd.logger)==null?void 0:dd.warn)==null||pd.call(dd,Ad),vd}}}return qa(od)}}const bucketEndpointMiddlewareOptions={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function validateBucketNameMiddleware({bucketEndpoint:Ra}){return qa=>async nd=>{const{input:{Bucket:od}}=nd;if(!Ra&&typeof od=="string"&&!validate(od)&&od.indexOf("/")>=0){const ld=new Error(`Bucket name shouldn't contain '/', received '${od}'`);throw ld.name="InvalidBucketName",ld}return qa({...nd})}}const validateBucketNameMiddlewareOptions={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},getValidateBucketNamePlugin=Ra=>({applyToStack:qa=>{qa.add(validateBucketNameMiddleware(Ra),validateBucketNameMiddlewareOptions),qa.addRelativeTo(bucketEndpointMiddleware(Ra),bucketEndpointMiddlewareOptions)}}),DEFAULT_UA_APP_ID=void 0;function isValidUserAgentAppId(Ra){return Ra===void 0?!0:typeof Ra=="string"&&Ra.length<=50}function resolveUserAgentConfig(Ra){const qa=normalizeProvider(Ra.userAgentAppId??DEFAULT_UA_APP_ID);return{...Ra,customUserAgent:typeof Ra.customUserAgent=="string"?[[Ra.customUserAgent]]:Ra.customUserAgent,userAgentAppId:async()=>{var od,ld;const nd=await qa();if(!isValidUserAgentAppId(nd)){const ud=((ld=(od=Ra.logger)==null?void 0:od.constructor)==null?void 0:ld.name)==="NoOpLogger"||!Ra.logger?console:Ra.logger;typeof nd!="string"?ud==null||ud.warn("userAgentAppId must be a string or undefined."):nd.length>50&&(ud==null||ud.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."))}return nd}}}class EndpointCache{constructor({size:qa,params:nd}){this.data=new Map,this.parameters=[],this.capacity=qa??50,nd&&(this.parameters=nd)}get(qa,nd){const od=this.hash(qa);if(od===!1)return nd();if(!this.data.has(od)){if(this.data.size>this.capacity+10){const ld=this.data.keys();let ud=0;for(;;){const{value:dd,done:pd}=ld.next();if(this.data.delete(dd),pd||++ud>10)break}}this.data.set(od,nd())}return this.data.get(od)}size(){return this.data.size}hash(qa){let nd="";const{parameters:od}=this;if(od.length===0)return!1;for(const ld of od){const ud=String(qa[ld]??"");if(ud.includes("|;"))return!1;nd+=ud+"|;"}return nd}}const IP_V4_REGEX=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),isIpAddress=Ra=>IP_V4_REGEX.test(Ra)||Ra.startsWith("[")&&Ra.endsWith("]"),VALID_HOST_LABEL_REGEX=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),isValidHostLabel=(Ra,qa=!1)=>{if(!qa)return VALID_HOST_LABEL_REGEX.test(Ra);const nd=Ra.split(".");for(const od of nd)if(!isValidHostLabel(od))return!1;return!0},customEndpointFunctions={},debugId="endpoints";function toDebugString(Ra){return typeof Ra!="object"||Ra==null?Ra:"ref"in Ra?`$${toDebugString(Ra.ref)}`:"fn"in Ra?`${Ra.fn}(${(Ra.argv||[]).map(toDebugString).join(", ")})`:JSON.stringify(Ra,null,2)}class EndpointError extends Error{constructor(qa){super(qa),this.name="EndpointError"}}const booleanEquals=(Ra,qa)=>Ra===qa,getAttrPathList=Ra=>{const qa=Ra.split("."),nd=[];for(const od of qa){const ld=od.indexOf("[");if(ld!==-1){if(od.indexOf("]")!==od.length-1)throw new EndpointError(`Path: '${Ra}' does not end with ']'`);const ud=od.slice(ld+1,-1);if(Number.isNaN(parseInt(ud)))throw new EndpointError(`Invalid array index: '${ud}' in path: '${Ra}'`);ld!==0&&nd.push(od.slice(0,ld)),nd.push(ud)}else nd.push(od)}return nd},getAttr=(Ra,qa)=>getAttrPathList(qa).reduce((nd,od)=>{if(typeof nd!="object")throw new EndpointError(`Index '${od}' in '${qa}' not found in '${JSON.stringify(Ra)}'`);return Array.isArray(nd)?nd[parseInt(od)]:nd[od]},Ra),isSet=Ra=>Ra!=null,not=Ra=>!Ra,DEFAULT_PORTS={[EndpointURLScheme.HTTP]:80,[EndpointURLScheme.HTTPS]:443},parseURL=Ra=>{const qa=(()=>{try{if(Ra instanceof URL)return Ra;if(typeof Ra=="object"&&"hostname"in Ra){const{hostname:Nd,port:Od,protocol:kd="",path:Ld="",query:Gd={}}=Ra,Ud=new URL(`${kd}//${Nd}${Od?`:${Od}`:""}${Ld}`);return Ud.search=Object.entries(Gd).map(([Fd,jd])=>`${Fd}=${jd}`).join("&"),Ud}return new URL(Ra)}catch{return null}})();if(!qa)return console.error(`Unable to parse ${JSON.stringify(Ra)} as a whatwg URL.`),null;const nd=qa.href,{host:od,hostname:ld,pathname:ud,protocol:dd,search:pd}=qa;if(pd)return null;const fd=dd.slice(0,-1);if(!Object.values(EndpointURLScheme).includes(fd))return null;const md=isIpAddress(ld),vd=nd.includes(`${od}:${DEFAULT_PORTS[fd]}`)||typeof Ra=="string"&&Ra.includes(`${od}:${DEFAULT_PORTS[fd]}`),Ad=`${od}${vd?`:${DEFAULT_PORTS[fd]}`:""}`;return{scheme:fd,authority:Ad,path:ud,normalizedPath:ud.endsWith("/")?ud:`${ud}/`,isIp:md}},stringEquals=(Ra,qa)=>Ra===qa,substring=(Ra,qa,nd,od)=>qa>=nd||Ra.lengthencodeURIComponent(Ra).replace(/[!*'()]/g,qa=>`%${qa.charCodeAt(0).toString(16).toUpperCase()}`),endpointFunctions={booleanEquals,getAttr,isSet,isValidHostLabel,not,parseURL,stringEquals,substring,uriEncode},evaluateTemplate=(Ra,qa)=>{const nd=[],od={...qa.endpointParams,...qa.referenceRecord};let ld=0;for(;ld({...qa.endpointParams,...qa.referenceRecord})[Ra],evaluateExpression=(Ra,qa,nd)=>{if(typeof Ra=="string")return evaluateTemplate(Ra,nd);if(Ra.fn)return callFunction(Ra,nd);if(Ra.ref)return getReferenceValue(Ra,nd);throw new EndpointError(`'${qa}': ${String(Ra)} is not a string, function or reference.`)},callFunction=({fn:Ra,argv:qa},nd)=>{const od=qa.map(ud=>["boolean","number"].includes(typeof ud)?ud:evaluateExpression(ud,"arg",nd)),ld=Ra.split(".");return ld[0]in customEndpointFunctions&&ld[1]!=null?customEndpointFunctions[ld[0]][ld[1]](...od):endpointFunctions[Ra](...od)},evaluateCondition=({assign:Ra,...qa},nd)=>{var ld,ud;if(Ra&&Ra in nd.referenceRecord)throw new EndpointError(`'${Ra}' is already defined in Reference Record.`);const od=callFunction(qa,nd);return(ud=(ld=nd.logger)==null?void 0:ld.debug)==null||ud.call(ld,`${debugId} evaluateCondition: ${toDebugString(qa)} = ${toDebugString(od)}`),{result:od===""?!0:!!od,...Ra!=null&&{toAssign:{name:Ra,value:od}}}},evaluateConditions=(Ra=[],qa)=>{var od,ld;const nd={};for(const ud of Ra){const{result:dd,toAssign:pd}=evaluateCondition(ud,{...qa,referenceRecord:{...qa.referenceRecord,...nd}});if(!dd)return{result:dd};pd&&(nd[pd.name]=pd.value,(ld=(od=qa.logger)==null?void 0:od.debug)==null||ld.call(od,`${debugId} assign: ${pd.name} := ${toDebugString(pd.value)}`))}return{result:!0,referenceRecord:nd}},getEndpointHeaders=(Ra,qa)=>Object.entries(Ra).reduce((nd,[od,ld])=>({...nd,[od]:ld.map(ud=>{const dd=evaluateExpression(ud,"Header value entry",qa);if(typeof dd!="string")throw new EndpointError(`Header '${od}' value '${dd}' is not a string`);return dd})}),{}),getEndpointProperty=(Ra,qa)=>{if(Array.isArray(Ra))return Ra.map(nd=>getEndpointProperty(nd,qa));switch(typeof Ra){case"string":return evaluateTemplate(Ra,qa);case"object":if(Ra===null)throw new EndpointError(`Unexpected endpoint property: ${Ra}`);return getEndpointProperties(Ra,qa);case"boolean":return Ra;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof Ra}`)}},getEndpointProperties=(Ra,qa)=>Object.entries(Ra).reduce((nd,[od,ld])=>({...nd,[od]:getEndpointProperty(ld,qa)}),{}),getEndpointUrl=(Ra,qa)=>{const nd=evaluateExpression(Ra,"Endpoint URL",qa);if(typeof nd=="string")try{return new URL(nd)}catch(od){throw console.error(`Failed to construct URL with ${nd}`,od),od}throw new EndpointError(`Endpoint URL must be a string, got ${typeof nd}`)},evaluateEndpointRule=(Ra,qa)=>{var vd,Ad;const{conditions:nd,endpoint:od}=Ra,{result:ld,referenceRecord:ud}=evaluateConditions(nd,qa);if(!ld)return;const dd={...qa,referenceRecord:{...qa.referenceRecord,...ud}},{url:pd,properties:fd,headers:md}=od;return(Ad=(vd=qa.logger)==null?void 0:vd.debug)==null||Ad.call(vd,`${debugId} Resolving endpoint from template: ${toDebugString(od)}`),{...md!=null&&{headers:getEndpointHeaders(md,dd)},...fd!=null&&{properties:getEndpointProperties(fd,dd)},url:getEndpointUrl(pd,dd)}},evaluateErrorRule=(Ra,qa)=>{const{conditions:nd,error:od}=Ra,{result:ld,referenceRecord:ud}=evaluateConditions(nd,qa);if(ld)throw new EndpointError(evaluateExpression(od,"Error",{...qa,referenceRecord:{...qa.referenceRecord,...ud}}))},evaluateTreeRule=(Ra,qa)=>{const{conditions:nd,rules:od}=Ra,{result:ld,referenceRecord:ud}=evaluateConditions(nd,qa);if(ld)return evaluateRules(od,{...qa,referenceRecord:{...qa.referenceRecord,...ud}})},evaluateRules=(Ra,qa)=>{for(const nd of Ra)if(nd.type==="endpoint"){const od=evaluateEndpointRule(nd,qa);if(od)return od}else if(nd.type==="error")evaluateErrorRule(nd,qa);else if(nd.type==="tree"){const od=evaluateTreeRule(nd,qa);if(od)return od}else throw new EndpointError(`Unknown endpoint rule: ${nd}`);throw new EndpointError("Rules evaluation failed")},resolveEndpoint=(Ra,qa)=>{var md,vd,Ad,Nd;const{endpointParams:nd,logger:od}=qa,{parameters:ld,rules:ud}=Ra;(vd=(md=qa.logger)==null?void 0:md.debug)==null||vd.call(md,`${debugId} Initial EndpointParams: ${toDebugString(nd)}`);const dd=Object.entries(ld).filter(([,Od])=>Od.default!=null).map(([Od,kd])=>[Od,kd.default]);if(dd.length>0)for(const[Od,kd]of dd)nd[Od]=nd[Od]??kd;const pd=Object.entries(ld).filter(([,Od])=>Od.required).map(([Od])=>Od);for(const Od of pd)if(nd[Od]==null)throw new EndpointError(`Missing required parameter: '${Od}'`);const fd=evaluateRules(ud,{endpointParams:nd,logger:od,referenceRecord:{}});return(Nd=(Ad=qa.logger)==null?void 0:Ad.debug)==null||Nd.call(Ad,`${debugId} Resolved endpoint: ${toDebugString(fd)}`),fd},isVirtualHostableS3Bucket=(Ra,qa=!1)=>{if(qa){for(const nd of Ra.split("."))if(!isVirtualHostableS3Bucket(nd))return!1;return!0}return!(!isValidHostLabel(Ra)||Ra.length<3||Ra.length>63||Ra!==Ra.toLowerCase()||isIpAddress(Ra))},ARN_DELIMITER=":",RESOURCE_DELIMITER="/",parseArn=Ra=>{const qa=Ra.split(ARN_DELIMITER);if(qa.length<6)return null;const[nd,od,ld,ud,dd,...pd]=qa;if(nd!=="arn"||od===""||ld===""||pd.join(ARN_DELIMITER)==="")return null;const fd=pd.map(md=>md.split(RESOURCE_DELIMITER)).flat();return{partition:od,service:ld,region:ud,accountId:dd,resourceId:fd}},partitions=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version$1="1.1",partitionsInfo={partitions,version:version$1};let selectedPartitionsInfo=partitionsInfo;const partition=Ra=>{const{partitions:qa}=selectedPartitionsInfo;for(const od of qa){const{regions:ld,outputs:ud}=od;for(const[dd,pd]of Object.entries(ld))if(dd===Ra)return{...ud,...pd}}for(const od of qa){const{regionRegex:ld,outputs:ud}=od;if(new RegExp(ld).test(Ra))return{...ud}}const nd=qa.find(od=>od.id==="aws");if(!nd)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...nd.outputs}},awsEndpointFunctions={isVirtualHostableS3Bucket,parseArn,partition};customEndpointFunctions.aws=awsEndpointFunctions;const ACCOUNT_ID_ENDPOINT_REGEX=/\d{12}\.ddb/;async function checkFeatures(Ra,qa,nd){var ud,dd,pd,fd,md,vd,Ad;const od=nd.request;if(((ud=od==null?void 0:od.headers)==null?void 0:ud["smithy-protocol"])==="rpc-v2-cbor"&&setFeature$1(Ra,"PROTOCOL_RPC_V2_CBOR","M"),typeof qa.retryStrategy=="function"){const Nd=await qa.retryStrategy();typeof Nd.acquireInitialRetryToken=="function"?(pd=(dd=Nd.constructor)==null?void 0:dd.name)!=null&&pd.includes("Adaptive")?setFeature$1(Ra,"RETRY_MODE_ADAPTIVE","F"):setFeature$1(Ra,"RETRY_MODE_STANDARD","E"):setFeature$1(Ra,"RETRY_MODE_LEGACY","D")}if(typeof qa.accountIdEndpointMode=="function"){const Nd=Ra.endpointV2;switch(String((fd=Nd==null?void 0:Nd.url)==null?void 0:fd.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)&&setFeature$1(Ra,"ACCOUNT_ID_ENDPOINT","O"),await((md=qa.accountIdEndpointMode)==null?void 0:md.call(qa))){case"disabled":setFeature$1(Ra,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":setFeature$1(Ra,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":setFeature$1(Ra,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const ld=(Ad=(vd=Ra.__smithy_context)==null?void 0:vd.selectedHttpAuthScheme)==null?void 0:Ad.identity;if(ld!=null&&ld.$source){const Nd=ld;Nd.accountId&&setFeature$1(Ra,"RESOLVED_ACCOUNT_ID","T");for(const[Od,kd]of Object.entries(Nd.$source??{}))setFeature$1(Ra,Od,kd)}}const USER_AGENT="user-agent",X_AMZ_USER_AGENT="x-amz-user-agent",SPACE=" ",UA_NAME_SEPARATOR="/",UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,UA_ESCAPE_CHAR="-",BYTE_LIMIT=1024;function encodeFeatures(Ra){let qa="";for(const nd in Ra){const od=Ra[nd];if(qa.length+od.length+1<=BYTE_LIMIT){qa.length?qa+=","+od:qa+=od;continue}break}return qa}const userAgentMiddleware=Ra=>(qa,nd)=>async od=>{var Od,kd,Ld,Gd;const{request:ld}=od;if(!HttpRequest.isInstance(ld))return qa(od);const{headers:ud}=ld,dd=((Od=nd==null?void 0:nd.userAgent)==null?void 0:Od.map(escapeUserAgent))||[],pd=(await Ra.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(nd,Ra,od);const fd=nd;pd.push(`m/${encodeFeatures(Object.assign({},(kd=nd.__smithy_context)==null?void 0:kd.features,(Ld=fd.__aws_sdk_context)==null?void 0:Ld.features))}`);const md=((Gd=Ra==null?void 0:Ra.customUserAgent)==null?void 0:Gd.map(escapeUserAgent))||[],vd=await Ra.userAgentAppId();vd&&pd.push(escapeUserAgent([`app/${vd}`]));const Ad=[].concat([...pd,...dd,...md]).join(SPACE),Nd=[...pd.filter(Ud=>Ud.startsWith("aws-sdk-")),...md].join(SPACE);return Ra.runtime!=="browser"?(Nd&&(ud[X_AMZ_USER_AGENT]=ud[X_AMZ_USER_AGENT]?`${ud[USER_AGENT]} ${Nd}`:Nd),ud[USER_AGENT]=Ad):ud[X_AMZ_USER_AGENT]=Ad,qa({...od,request:ld})},escapeUserAgent=Ra=>{var dd;const qa=Ra[0].split(UA_NAME_SEPARATOR).map(pd=>pd.replace(UA_NAME_ESCAPE_REGEX,UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR),nd=(dd=Ra[1])==null?void 0:dd.replace(UA_VALUE_ESCAPE_REGEX,UA_ESCAPE_CHAR),od=qa.indexOf(UA_NAME_SEPARATOR),ld=qa.substring(0,od);let ud=qa.substring(od+1);return ld==="api"&&(ud=ud.toLowerCase()),[ld,ud,nd].filter(pd=>pd&&pd.length>0).reduce((pd,fd,md)=>{switch(md){case 0:return fd;case 1:return`${pd}/${fd}`;default:return`${pd}#${fd}`}},"")},getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},getUserAgentPlugin=Ra=>({applyToStack:qa=>{qa.add(userAgentMiddleware(Ra),getUserAgentMiddlewareOptions)}}),DEFAULT_USE_DUALSTACK_ENDPOINT=!1,DEFAULT_USE_FIPS_ENDPOINT=!1,isFipsRegion=Ra=>typeof Ra=="string"&&(Ra.startsWith("fips-")||Ra.endsWith("-fips")),getRealRegion=Ra=>isFipsRegion(Ra)?["fips-aws-global","aws-fips"].includes(Ra)?"us-east-1":Ra.replace(/fips-(dkr-|prod-)?|-fips/,""):Ra,resolveRegionConfig=Ra=>{const{region:qa,useFipsEndpoint:nd}=Ra;if(!qa)throw new Error("Region is missing");return{...Ra,region:async()=>{if(typeof qa=="string")return getRealRegion(qa);const od=await qa();return getRealRegion(od)},useFipsEndpoint:async()=>{const od=typeof qa=="string"?qa:await qa();return isFipsRegion(od)?!0:typeof nd!="function"?Promise.resolve(!!nd):nd()}}},resolveEventStreamSerdeConfig=Ra=>({...Ra,eventStreamMarshaller:Ra.eventStreamSerdeProvider(Ra)}),CONTENT_LENGTH_HEADER="content-length";function contentLengthMiddleware(Ra){return qa=>async nd=>{const od=nd.request;if(HttpRequest.isInstance(od)){const{body:ld,headers:ud}=od;if(ld&&Object.keys(ud).map(dd=>dd.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER)===-1)try{const dd=Ra(ld);od.headers={...od.headers,[CONTENT_LENGTH_HEADER]:String(dd)}}catch{}}return qa({...nd,request:od})}}const contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},getContentLengthPlugin=Ra=>({applyToStack:qa=>{qa.add(contentLengthMiddleware(Ra.bodyLengthChecker),contentLengthMiddlewareOptions)}}),resolveParamsForS3=async Ra=>{const qa=(Ra==null?void 0:Ra.Bucket)||"";if(typeof Ra.Bucket=="string"&&(Ra.Bucket=qa.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),isArnBucketName(qa)){if(Ra.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!isDnsCompatibleBucketName(qa)||qa.indexOf(".")!==-1&&!String(Ra.Endpoint).startsWith("http:")||qa.toLowerCase()!==qa||qa.length<3)&&(Ra.ForcePathStyle=!0);return Ra.DisableMultiRegionAccessPoints&&(Ra.disableMultiRegionAccessPoints=!0,Ra.DisableMRAP=!0),Ra},DOMAIN_PATTERN=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,IP_ADDRESS_PATTERN=/(\d+\.){3}\d+/,DOTS_PATTERN=/\.\./,isDnsCompatibleBucketName=Ra=>DOMAIN_PATTERN.test(Ra)&&!IP_ADDRESS_PATTERN.test(Ra)&&!DOTS_PATTERN.test(Ra),isArnBucketName=Ra=>{const[qa,nd,od,,,ld]=Ra.split(":"),ud=qa==="arn"&&Ra.split(":").length>=6,dd=!!(ud&&nd&&od&&ld);if(ud&&!dd)throw new Error(`Invalid ARN: ${Ra} was an invalid ARN.`);return dd},createConfigValueProvider=(Ra,qa,nd)=>{const od=async()=>{const ld=nd[Ra]??nd[qa];return typeof ld=="function"?ld():ld};return Ra==="credentialScope"||qa==="CredentialScope"?async()=>{const ld=typeof nd.credentials=="function"?await nd.credentials():nd.credentials;return(ld==null?void 0:ld.credentialScope)??(ld==null?void 0:ld.CredentialScope)}:Ra==="accountId"||qa==="AccountId"?async()=>{const ld=typeof nd.credentials=="function"?await nd.credentials():nd.credentials;return(ld==null?void 0:ld.accountId)??(ld==null?void 0:ld.AccountId)}:Ra==="endpoint"||qa==="endpoint"?async()=>{const ld=await od();if(ld&&typeof ld=="object"){if("url"in ld)return ld.url.href;if("hostname"in ld){const{protocol:ud,hostname:dd,port:pd,path:fd}=ld;return`${ud}//${dd}${pd?":"+pd:""}${fd}`}}return ld}:od},getEndpointFromConfig=async Ra=>{};function parseQueryString(Ra){const qa={};if(Ra=Ra.replace(/^\?/,""),Ra)for(const nd of Ra.split("&")){let[od,ld=null]=nd.split("=");od=decodeURIComponent(od),ld&&(ld=decodeURIComponent(ld)),od in qa?Array.isArray(qa[od])?qa[od].push(ld):qa[od]=[qa[od],ld]:qa[od]=ld}return qa}const parseUrl=Ra=>{if(typeof Ra=="string")return parseUrl(new URL(Ra));const{hostname:qa,pathname:nd,port:od,protocol:ld,search:ud}=Ra;let dd;return ud&&(dd=parseQueryString(ud)),{hostname:qa,port:od?parseInt(od):void 0,protocol:ld,path:nd,query:dd}},toEndpointV1=Ra=>typeof Ra=="object"?"url"in Ra?parseUrl(Ra.url):Ra:parseUrl(Ra),getEndpointFromInstructions=async(Ra,qa,nd,od)=>{if(!nd.endpoint){let dd;nd.serviceConfiguredEndpoint?dd=await nd.serviceConfiguredEndpoint():dd=await getEndpointFromConfig(nd.serviceId),dd&&(nd.endpoint=()=>Promise.resolve(toEndpointV1(dd)))}const ld=await resolveParams(Ra,qa,nd);if(typeof nd.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return nd.endpointProvider(ld,od)},resolveParams=async(Ra,qa,nd)=>{var ud;const od={},ld=((ud=qa==null?void 0:qa.getEndpointParameterInstructions)==null?void 0:ud.call(qa))||{};for(const[dd,pd]of Object.entries(ld))switch(pd.type){case"staticContextParams":od[dd]=pd.value;break;case"contextParams":od[dd]=Ra[pd.name];break;case"clientContextParams":case"builtInParams":od[dd]=await createConfigValueProvider(pd.name,dd,nd)();break;case"operationContextParams":od[dd]=pd.get(Ra);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(pd))}return Object.keys(ld).length===0&&Object.assign(od,nd),String(nd.serviceId).toLowerCase()==="s3"&&await resolveParamsForS3(od),od},endpointMiddleware=({config:Ra,instructions:qa})=>(nd,od)=>async ld=>{var pd,fd,md;Ra.endpoint&&setFeature(od,"ENDPOINT_OVERRIDE","N");const ud=await getEndpointFromInstructions(ld.input,{getEndpointParameterInstructions(){return qa}},{...Ra},od);od.endpointV2=ud,od.authSchemes=(pd=ud.properties)==null?void 0:pd.authSchemes;const dd=(fd=od.authSchemes)==null?void 0:fd[0];if(dd){od.signing_region=dd.signingRegion,od.signing_service=dd.signingName;const vd=getSmithyContext(od),Ad=(md=vd==null?void 0:vd.selectedHttpAuthScheme)==null?void 0:md.httpAuthOption;Ad&&(Ad.signingProperties=Object.assign(Ad.signingProperties||{},{signing_region:dd.signingRegion,signingRegion:dd.signingRegion,signing_service:dd.signingName,signingName:dd.signingName,signingRegionSet:dd.signingRegionSet},dd.properties))}return nd({...ld})},endpointMiddlewareOptions={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:serializerMiddlewareOption.name},getEndpointPlugin=(Ra,qa)=>({applyToStack:nd=>{nd.addRelativeTo(endpointMiddleware({config:Ra,instructions:qa}),endpointMiddlewareOptions)}}),resolveEndpointConfig=Ra=>{const qa=Ra.tls??!0,{endpoint:nd}=Ra,od=nd!=null?async()=>toEndpointV1(await normalizeProvider$1(nd)()):void 0,ud={...Ra,endpoint:od,tls:qa,isCustomEndpoint:!!nd,useDualstackEndpoint:normalizeProvider$1(Ra.useDualstackEndpoint??!1),useFipsEndpoint:normalizeProvider$1(Ra.useFipsEndpoint??!1)};let dd;return ud.serviceConfiguredEndpoint=async()=>(Ra.serviceId&&!dd&&(dd=getEndpointFromConfig(Ra.serviceId)),dd),ud};var RETRY_MODES;(function(Ra){Ra.STANDARD="standard",Ra.ADAPTIVE="adaptive"})(RETRY_MODES||(RETRY_MODES={}));const DEFAULT_MAX_ATTEMPTS=3,DEFAULT_RETRY_MODE=RETRY_MODES.STANDARD,THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],TRANSIENT_ERROR_CODES=["TimeoutError","RequestTimeout","RequestTimeoutException"],TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504],NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],isClockSkewCorrectedError=Ra=>{var qa;return(qa=Ra.$metadata)==null?void 0:qa.clockSkewCorrected},isThrottlingError=Ra=>{var qa,nd;return((qa=Ra.$metadata)==null?void 0:qa.httpStatusCode)===429||THROTTLING_ERROR_CODES.includes(Ra.name)||((nd=Ra.$retryable)==null?void 0:nd.throttling)==!0},isTransientError=(Ra,qa=0)=>{var nd;return isClockSkewCorrectedError(Ra)||TRANSIENT_ERROR_CODES.includes(Ra.name)||NODEJS_TIMEOUT_ERROR_CODES.includes((Ra==null?void 0:Ra.code)||"")||TRANSIENT_ERROR_STATUS_CODES.includes(((nd=Ra.$metadata)==null?void 0:nd.httpStatusCode)||0)||Ra.cause!==void 0&&qa<=10&&isTransientError(Ra.cause,qa+1)},isServerError=Ra=>{var qa;if(((qa=Ra.$metadata)==null?void 0:qa.httpStatusCode)!==void 0){const nd=Ra.$metadata.httpStatusCode;return 500<=nd&&nd<=599&&!isTransientError(Ra)}return!1};class DefaultRateLimiter{constructor(qa){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(qa==null?void 0:qa.beta)??.7,this.minCapacity=(qa==null?void 0:qa.minCapacity)??1,this.minFillRate=(qa==null?void 0:qa.minFillRate)??.5,this.scaleConstant=(qa==null?void 0:qa.scaleConstant)??.4,this.smooth=(qa==null?void 0:qa.smooth)??.8;const nd=this.getCurrentTimeInSeconds();this.lastThrottleTime=nd,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(qa){if(this.enabled){if(this.refillTokenBucket(),qa>this.currentCapacity){const nd=(qa-this.currentCapacity)/this.fillRate*1e3;await new Promise(od=>DefaultRateLimiter.setTimeoutFn(od,nd))}this.currentCapacity=this.currentCapacity-qa}}refillTokenBucket(){const qa=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=qa;return}const nd=(qa-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+nd),this.lastTimestamp=qa}updateClientSendingRate(qa){let nd;if(this.updateMeasuredRate(),isThrottlingError(qa)){const ld=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=ld,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),nd=this.cubicThrottle(ld),this.enableTokenBucket()}else this.calculateTimeWindow(),nd=this.cubicSuccess(this.getCurrentTimeInSeconds());const od=Math.min(nd,2*this.measuredTxRate);this.updateTokenBucketRate(od)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(qa){return this.getPrecise(qa*this.beta)}cubicSuccess(qa){return this.getPrecise(this.scaleConstant*Math.pow(qa-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(qa){this.refillTokenBucket(),this.fillRate=Math.max(qa,this.minFillRate),this.maxCapacity=Math.max(qa,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const qa=this.getCurrentTimeInSeconds(),nd=Math.floor(qa*2)/2;if(this.requestCount++,nd>this.lastTxRateBucket){const od=this.requestCount/(nd-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(od*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=nd}}getPrecise(qa){return parseFloat(qa.toFixed(8))}}DefaultRateLimiter.setTimeoutFn=setTimeout;const DEFAULT_RETRY_DELAY_BASE=100,MAXIMUM_RETRY_DELAY=20*1e3,THROTTLING_RETRY_DELAY_BASE=500,INITIAL_RETRY_TOKENS=500,RETRY_COST=5,TIMEOUT_RETRY_COST=10,NO_RETRY_INCREMENT=1,INVOCATION_ID_HEADER="amz-sdk-invocation-id",REQUEST_HEADER="amz-sdk-request",getDefaultRetryBackoffStrategy=()=>{let Ra=DEFAULT_RETRY_DELAY_BASE;return{computeNextBackoffDelay:od=>Math.floor(Math.min(MAXIMUM_RETRY_DELAY,Math.random()*2**od*Ra)),setDelayBase:od=>{Ra=od}}},createDefaultRetryToken=({retryDelay:Ra,retryCount:qa,retryCost:nd})=>({getRetryCount:()=>qa,getRetryDelay:()=>Math.min(MAXIMUM_RETRY_DELAY,Ra),getRetryCost:()=>nd});class StandardRetryStrategy{constructor(qa){this.maxAttempts=qa,this.mode=RETRY_MODES.STANDARD,this.capacity=INITIAL_RETRY_TOKENS,this.retryBackoffStrategy=getDefaultRetryBackoffStrategy(),this.maxAttemptsProvider=typeof qa=="function"?qa:async()=>qa}async acquireInitialRetryToken(qa){return createDefaultRetryToken({retryDelay:DEFAULT_RETRY_DELAY_BASE,retryCount:0})}async refreshRetryTokenForRetry(qa,nd){const od=await this.getMaxAttempts();if(this.shouldRetry(qa,nd,od)){const ld=nd.errorType;this.retryBackoffStrategy.setDelayBase(ld==="THROTTLING"?THROTTLING_RETRY_DELAY_BASE:DEFAULT_RETRY_DELAY_BASE);const ud=this.retryBackoffStrategy.computeNextBackoffDelay(qa.getRetryCount()),dd=nd.retryAfterHint?Math.max(nd.retryAfterHint.getTime()-Date.now()||0,ud):ud,pd=this.getCapacityCost(ld);return this.capacity-=pd,createDefaultRetryToken({retryDelay:dd,retryCount:qa.getRetryCount()+1,retryCost:pd})}throw new Error("No retry token available")}recordSuccess(qa){this.capacity=Math.max(INITIAL_RETRY_TOKENS,this.capacity+(qa.getRetryCost()??NO_RETRY_INCREMENT))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`),DEFAULT_MAX_ATTEMPTS}}shouldRetry(qa,nd,od){return qa.getRetryCount()+1=this.getCapacityCost(nd.errorType)&&this.isRetryableError(nd.errorType)}getCapacityCost(qa){return qa==="TRANSIENT"?TIMEOUT_RETRY_COST:RETRY_COST}isRetryableError(qa){return qa==="THROTTLING"||qa==="TRANSIENT"}}class AdaptiveRetryStrategy{constructor(qa,nd){this.maxAttemptsProvider=qa,this.mode=RETRY_MODES.ADAPTIVE;const{rateLimiter:od}=nd??{};this.rateLimiter=od??new DefaultRateLimiter,this.standardRetryStrategy=new StandardRetryStrategy(qa)}async acquireInitialRetryToken(qa){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(qa)}async refreshRetryTokenForRetry(qa,nd){return this.rateLimiter.updateClientSendingRate(nd),this.standardRetryStrategy.refreshRetryTokenForRetry(qa,nd)}recordSuccess(qa){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(qa)}}let getRandomValues$1;const rnds8$1=new Uint8Array(16);function rng$1(){if(!getRandomValues$1&&(getRandomValues$1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues$1))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues$1(rnds8$1)}const byteToHex$1=[];for(let Ra=0;Ra<256;++Ra)byteToHex$1.push((Ra+256).toString(16).slice(1));function unsafeStringify$1(Ra,qa=0){return byteToHex$1[Ra[qa+0]]+byteToHex$1[Ra[qa+1]]+byteToHex$1[Ra[qa+2]]+byteToHex$1[Ra[qa+3]]+"-"+byteToHex$1[Ra[qa+4]]+byteToHex$1[Ra[qa+5]]+"-"+byteToHex$1[Ra[qa+6]]+byteToHex$1[Ra[qa+7]]+"-"+byteToHex$1[Ra[qa+8]]+byteToHex$1[Ra[qa+9]]+"-"+byteToHex$1[Ra[qa+10]]+byteToHex$1[Ra[qa+11]]+byteToHex$1[Ra[qa+12]]+byteToHex$1[Ra[qa+13]]+byteToHex$1[Ra[qa+14]]+byteToHex$1[Ra[qa+15]]}const randomUUID$1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native$1={randomUUID:randomUUID$1};function v4$1(Ra,qa,nd){if(native$1.randomUUID&&!qa&&!Ra)return native$1.randomUUID();Ra=Ra||{};const od=Ra.random||(Ra.rng||rng$1)();return od[6]=od[6]&15|64,od[8]=od[8]&63|128,unsafeStringify$1(od)}const asSdkError=Ra=>Ra instanceof Error?Ra:Ra instanceof Object?Object.assign(new Error,Ra):typeof Ra=="string"?new Error(Ra):new Error(`AWS SDK error wrapper for ${Ra}`),resolveRetryConfig=Ra=>{const{retryStrategy:qa}=Ra,nd=normalizeProvider$1(Ra.maxAttempts??DEFAULT_MAX_ATTEMPTS);return{...Ra,maxAttempts:nd,retryStrategy:async()=>qa||(await normalizeProvider$1(Ra.retryMode)()===RETRY_MODES.ADAPTIVE?new AdaptiveRetryStrategy(nd):new StandardRetryStrategy(nd))}},isStreamingPayload=Ra=>(Ra==null?void 0:Ra.body)instanceof ReadableStream,retryMiddleware=Ra=>(qa,nd)=>async od=>{var dd;let ld=await Ra.retryStrategy();const ud=await Ra.maxAttempts();if(isRetryStrategyV2(ld)){ld=ld;let pd=await ld.acquireInitialRetryToken(nd.partition_id),fd=new Error,md=0,vd=0;const{request:Ad}=od,Nd=HttpRequest.isInstance(Ad);for(Nd&&(Ad.headers[INVOCATION_ID_HEADER]=v4$1());;)try{Nd&&(Ad.headers[REQUEST_HEADER]=`attempt=${md+1}; max=${ud}`);const{response:Od,output:kd}=await qa(od);return ld.recordSuccess(pd),kd.$metadata.attempts=md+1,kd.$metadata.totalRetryDelay=vd,{response:Od,output:kd}}catch(Od){const kd=getRetryErrorInfo(Od);if(fd=asSdkError(Od),Nd&&isStreamingPayload(Ad))throw(dd=nd.logger instanceof NoOpLogger?console:nd.logger)==null||dd.warn("An error was encountered in a non-retryable streaming request."),fd;try{pd=await ld.refreshRetryTokenForRetry(pd,kd)}catch{throw fd.$metadata||(fd.$metadata={}),fd.$metadata.attempts=md+1,fd.$metadata.totalRetryDelay=vd,fd}md=pd.getRetryCount();const Ld=pd.getRetryDelay();vd+=Ld,await new Promise(Gd=>setTimeout(Gd,Ld))}}else return ld=ld,ld!=null&&ld.mode&&(nd.userAgent=[...nd.userAgent||[],["cfg/retry-mode",ld.mode]]),ld.retry(qa,od)},isRetryStrategyV2=Ra=>typeof Ra.acquireInitialRetryToken<"u"&&typeof Ra.refreshRetryTokenForRetry<"u"&&typeof Ra.recordSuccess<"u",getRetryErrorInfo=Ra=>{const qa={error:Ra,errorType:getRetryErrorType(Ra)},nd=getRetryAfterHint(Ra.$response);return nd&&(qa.retryAfterHint=nd),qa},getRetryErrorType=Ra=>isThrottlingError(Ra)?"THROTTLING":isTransientError(Ra)?"TRANSIENT":isServerError(Ra)?"SERVER_ERROR":"CLIENT_ERROR",retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},getRetryPlugin=Ra=>({applyToStack:qa=>{qa.add(retryMiddleware(Ra),retryMiddlewareOptions)}}),getRetryAfterHint=Ra=>{if(!HttpResponse.isInstance(Ra))return;const qa=Object.keys(Ra.headers).find(ud=>ud.toLowerCase()==="retry-after");if(!qa)return;const nd=Ra.headers[qa],od=Number(nd);return Number.isNaN(od)?new Date(nd):new Date(od*1e3)},signatureV4CrtContainer={CrtSignerV4:null};class SignatureV4MultiRegion{constructor(qa){this.sigv4Signer=new SignatureV4S3Express(qa),this.signerOptions=qa}async sign(qa,nd={}){if(nd.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().sign(qa,nd)}return this.sigv4Signer.sign(qa,nd)}async signWithCredentials(qa,nd,od={}){if(od.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().signWithCredentials(qa,nd,od)}return this.sigv4Signer.signWithCredentials(qa,nd,od)}async presign(qa,nd={}){if(nd.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().presign(qa,nd)}return this.sigv4Signer.presign(qa,nd)}async presignWithCredentials(qa,nd,od={}){if(od.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(qa,nd,od)}getSigv4aSigner(){if(!this.sigv4aSigner){let qa=null;try{if(qa=signatureV4CrtContainer.CrtSignerV4,typeof qa!="function")throw new Error}catch(nd){throw nd.message=`${nd.message} +`);let ld;try{ld=od.parse(nd,!0)}catch(fd){throw fd&&typeof fd=="object"&&Object.defineProperty(fd,"$responseBodyText",{value:nd}),fd}const ud="#text",dd=Object.keys(ld)[0],pd=ld[dd];return pd[ud]&&(pd[dd]=pd[ud],delete pd[ud]),getValueFromTextNode(pd)}return{}}),parseXmlErrorBody=async(Ra,qa)=>{const nd=await parseXmlBody(Ra,qa);return nd.Error&&(nd.Error.message=nd.Error.message??nd.Error.Message),nd},loadRestXmlErrorCode=(Ra,qa)=>{var nd;if(((nd=qa==null?void 0:qa.Error)==null?void 0:nd.Code)!==void 0)return qa.Error.Code;if((qa==null?void 0:qa.Code)!==void 0)return qa.Code;if(Ra.statusCode==404)return"NotFound"},CLIENT_SUPPORTED_ALGORITHMS=[ChecksumAlgorithm.CRC32,ChecksumAlgorithm.CRC32C,ChecksumAlgorithm.SHA1,ChecksumAlgorithm.SHA256],PRIORITY_ORDER_ALGORITHMS=[ChecksumAlgorithm.SHA256,ChecksumAlgorithm.SHA1,ChecksumAlgorithm.CRC32,ChecksumAlgorithm.CRC32C],getChecksumAlgorithmForRequest=(Ra,{requestChecksumRequired:qa,requestAlgorithmMember:nd},od)=>{const ld=od?S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM:DEFAULT_CHECKSUM_ALGORITHM;if(!nd||!Ra[nd])return qa?ld:void 0;const ud=Ra[nd];if(!CLIENT_SUPPORTED_ALGORITHMS.includes(ud))throw new Error(`The checksum algorithm "${ud}" is not supported by the client. Select one of ${CLIENT_SUPPORTED_ALGORITHMS}.`);return ud},getChecksumLocationName=Ra=>Ra===ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${Ra.toLowerCase()}`,hasHeader=(Ra,qa)=>{const nd=Ra.toLowerCase();for(const od of Object.keys(qa))if(nd===od.toLowerCase())return!0;return!1},hasHeaderWithPrefix=(Ra,qa)=>{const nd=Ra.toLowerCase();for(const od of Object.keys(qa))if(od.toLowerCase().startsWith(nd))return!0;return!1},isStreaming=Ra=>Ra!==void 0&&typeof Ra!="string"&&!ArrayBuffer.isView(Ra)&&!isArrayBuffer$1(Ra);function __awaiter$8(Ra,qa,nd,od){function ld(ud){return ud instanceof nd?ud:new nd(function(dd){dd(ud)})}return new(nd||(nd=Promise))(function(ud,dd){function pd(vd){try{md(od.next(vd))}catch(Ad){dd(Ad)}}function fd(vd){try{md(od.throw(vd))}catch(Ad){dd(Ad)}}function md(vd){vd.done?ud(vd.value):ld(vd.value).then(pd,fd)}md((od=od.apply(Ra,qa||[])).next())})}function __generator$8(Ra,qa){var nd={label:0,sent:function(){if(ud[0]&1)throw ud[1];return ud[1]},trys:[],ops:[]},od,ld,ud,dd=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return dd.next=pd(0),dd.throw=pd(1),dd.return=pd(2),typeof Symbol=="function"&&(dd[Symbol.iterator]=function(){return this}),dd;function pd(md){return function(vd){return fd([md,vd])}}function fd(md){if(od)throw new TypeError("Generator is already executing.");for(;dd&&(dd=0,md[0]&&(nd=0)),nd;)try{if(od=1,ld&&(ud=md[0]&2?ld.return:md[0]?ld.throw||((ud=ld.return)&&ud.call(ld),0):ld.next)&&!(ud=ud.call(ld,md[1])).done)return ud;switch(ld=0,ud&&(md=[md[0]&2,ud.value]),md[0]){case 0:case 1:ud=md;break;case 4:return nd.label++,{value:md[1],done:!1};case 5:nd.label++,ld=md[1],md=[0];continue;case 7:md=nd.ops.pop(),nd.trys.pop();continue;default:if(ud=nd.trys,!(ud=ud.length>0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]=Ra.length&&(Ra=void 0),{value:Ra&&Ra[od++],done:!Ra}}};throw new TypeError(qa?"Object is not iterable.":"Symbol.iterator is not defined.")}typeof SuppressedError=="function"&&SuppressedError;const fromUtf8$2=Ra=>new TextEncoder().encode(Ra);var fromUtf8$1=typeof Buffer$4<"u"&&Buffer$4.from?function(Ra){return Buffer$4.from(Ra,"utf8")}:fromUtf8$2;function convertToBuffer$2(Ra){return Ra instanceof Uint8Array?Ra:typeof Ra=="string"?fromUtf8$1(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,Ra.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(Ra)}function isEmptyData$2(Ra){return typeof Ra=="string"?Ra.length===0:Ra.byteLength===0}function numToUint8(Ra){return new Uint8Array([(Ra&4278190080)>>24,(Ra&16711680)>>16,(Ra&65280)>>8,Ra&255])}function uint32ArrayFrom(Ra){if(!Uint32Array.from){for(var qa=new Uint32Array(Ra.length),nd=0;nd>>8^lookupTable$1[(this.checksum^dd)&255]}}catch(pd){nd={error:pd}}finally{try{ud&&!ud.done&&(od=ld.return)&&od.call(ld)}finally{if(nd)throw nd.error}}return this},Ra.prototype.digest=function(){return(this.checksum^4294967295)>>>0},Ra}(),a_lookupTable=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],lookupTable$1=uint32ArrayFrom(a_lookupTable),AwsCrc32=function(){function Ra(){this.crc32=new Crc32}return Ra.prototype.update=function(qa){isEmptyData$2(qa)||this.crc32.update(convertToBuffer$2(qa))},Ra.prototype.digest=function(){return __awaiter$8(this,void 0,void 0,function(){return __generator$8(this,function(qa){return[2,numToUint8(this.crc32.digest())]})})},Ra.prototype.reset=function(){this.crc32=new Crc32},Ra}(),Crc32=function(){function Ra(){this.checksum=4294967295}return Ra.prototype.update=function(qa){var nd,od;try{for(var ld=__values(qa),ud=ld.next();!ud.done;ud=ld.next()){var dd=ud.value;this.checksum=this.checksum>>>8^lookupTable[(this.checksum^dd)&255]}}catch(pd){nd={error:pd}}finally{try{ud&&!ud.done&&(od=ld.return)&&od.call(ld)}finally{if(nd)throw nd.error}}return this},Ra.prototype.digest=function(){return(this.checksum^4294967295)>>>0},Ra}(),a_lookUpTable=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],lookupTable=uint32ArrayFrom(a_lookUpTable);const getCrc32ChecksumAlgorithmFunction=()=>AwsCrc32,selectChecksumAlgorithmFunction=(Ra,qa)=>{switch(Ra){case ChecksumAlgorithm.MD5:return qa.md5;case ChecksumAlgorithm.CRC32:return getCrc32ChecksumAlgorithmFunction();case ChecksumAlgorithm.CRC32C:return AwsCrc32c;case ChecksumAlgorithm.SHA1:return qa.sha1;case ChecksumAlgorithm.SHA256:return qa.sha256;default:throw new Error(`Unsupported checksum algorithm: ${Ra}`)}},stringHasher=(Ra,qa)=>{const nd=new Ra;return nd.update(toUint8Array(qa||"")),nd.digest()},flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},flexibleChecksumsMiddleware=(Ra,qa)=>(nd,od)=>async ld=>{if(!HttpRequest.isInstance(ld.request)||hasHeaderWithPrefix("x-amz-checksum-",ld.request.headers))return nd(ld);const{request:ud,input:dd}=ld,{body:pd,headers:fd}=ud,{base64Encoder:md,streamHasher:vd}=Ra,{requestChecksumRequired:Ad,requestAlgorithmMember:Nd}=qa,Od=getChecksumAlgorithmForRequest(dd,{requestChecksumRequired:Ad,requestAlgorithmMember:Nd==null?void 0:Nd.name},!!od.isS3ExpressBucket);let kd=pd,Ld=fd;if(Od){switch(Od){case ChecksumAlgorithm.CRC32:setFeature$1(od,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case ChecksumAlgorithm.CRC32C:setFeature$1(od,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case ChecksumAlgorithm.SHA1:setFeature$1(od,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case ChecksumAlgorithm.SHA256:setFeature$1(od,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const jd=getChecksumLocationName(Od),Fd=selectChecksumAlgorithmFunction(Od,Ra);if(isStreaming(pd)){const{getAwsChunkedEncodingStream:Ud,bodyLengthChecker:qd}=Ra;kd=Ud(pd,{base64Encoder:md,bodyLengthChecker:qd,checksumLocationName:jd,checksumAlgorithmFn:Fd,streamHasher:vd}),Ld={...fd,"content-encoding":fd["content-encoding"]?`${fd["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":fd["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":jd},delete Ld["content-length"]}else if(!hasHeader(jd,fd)){const Ud=await stringHasher(Fd,pd);Ld={...fd,[jd]:md(Ud)}}}return await nd({...ld,request:{...ud,headers:Ld,body:kd}})},getChecksumAlgorithmListForResponse=(Ra=[])=>{const qa=[];for(const nd of PRIORITY_ORDER_ALGORITHMS)!Ra.includes(nd)||!CLIENT_SUPPORTED_ALGORITHMS.includes(nd)||qa.push(nd);return qa},isChecksumWithPartNumber=Ra=>{const qa=Ra.lastIndexOf("-");if(qa!==-1){const nd=Ra.slice(qa+1);if(!nd.startsWith("0")){const od=parseInt(nd,10);if(!isNaN(od)&&od>=1&&od<=1e4)return!0}}return!1};function createReadStreamOnBuffer(Ra){return new Blob([Ra]).stream()}const getChecksum=async(Ra,{checksumAlgorithmFn:qa,base64Encoder:nd})=>nd(await stringHasher(qa,Ra)),validateChecksumFromResponse=async(Ra,{config:qa,responseAlgorithms:nd})=>{const od=getChecksumAlgorithmListForResponse(nd),{body:ld,headers:ud}=Ra;for(const dd of od){const pd=getChecksumLocationName(dd),fd=ud[pd];if(fd){const md=selectChecksumAlgorithmFunction(dd,qa),{base64Encoder:vd}=qa;if(isStreaming(ld)){Ra.body=createChecksumStream({expectedChecksum:fd,checksumSourceLocation:pd,checksum:new md,source:ld,base64Encoder:vd});return}const Ad=await getChecksum(ld,{checksumAlgorithmFn:md,base64Encoder:vd});if(Ad===fd)break;throw new Error(`Checksum mismatch: expected "${Ad}" but received "${fd}" in response header "${pd}".`)}}},flexibleChecksumsResponseMiddlewareOptions={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},flexibleChecksumsResponseMiddleware=(Ra,qa)=>(nd,od)=>async ld=>{if(!HttpRequest.isInstance(ld.request))return nd(ld);const ud=ld.input,dd=await nd(ld),pd=dd.response;let fd;const{requestValidationModeMember:md,responseAlgorithms:vd}=qa;if(md&&ud[md]==="ENABLED"){const{clientName:Ad,commandName:Nd}=od;if(Ad==="S3Client"&&Nd==="GetObjectCommand"&&getChecksumAlgorithmListForResponse(vd).every(Ld=>{const Gd=getChecksumLocationName(Ld),jd=pd.headers[Gd];return!jd||isChecksumWithPartNumber(jd)}))return dd;const kd=isStreaming(pd.body);kd&&(fd=await Ra.streamCollector(pd.body),pd.body=createReadStreamOnBuffer(fd)),await validateChecksumFromResponse(dd.response,{config:Ra,responseAlgorithms:vd}),kd&&fd&&(pd.body=createReadStreamOnBuffer(fd))}return dd},getFlexibleChecksumsPlugin=(Ra,qa)=>({applyToStack:nd=>{nd.add(flexibleChecksumsMiddleware(Ra,qa),flexibleChecksumsMiddlewareOptions),nd.addRelativeTo(flexibleChecksumsResponseMiddleware(Ra,qa),flexibleChecksumsResponseMiddlewareOptions)}}),resolveFlexibleChecksumsConfig=Ra=>({...Ra,requestChecksumCalculation:normalizeProvider$1(Ra.requestChecksumCalculation??DEFAULT_REQUEST_CHECKSUM_CALCULATION),responseChecksumValidation:normalizeProvider$1(Ra.responseChecksumValidation??DEFAULT_RESPONSE_CHECKSUM_VALIDATION)});function resolveHostHeaderConfig(Ra){return Ra}const hostHeaderMiddleware=Ra=>qa=>async nd=>{if(!HttpRequest.isInstance(nd.request))return qa(nd);const{request:od}=nd,{handlerProtocol:ld=""}=Ra.requestHandler.metadata||{};if(ld.indexOf("h2")>=0&&!od.headers[":authority"])delete od.headers.host,od.headers[":authority"]=od.hostname+(od.port?":"+od.port:"");else if(!od.headers.host){let ud=od.hostname;od.port!=null&&(ud+=`:${od.port}`),od.headers.host=ud}return qa(nd)},hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},getHostHeaderPlugin=Ra=>({applyToStack:qa=>{qa.add(hostHeaderMiddleware(Ra),hostHeaderMiddlewareOptions)}}),loggerMiddleware=()=>(Ra,qa)=>async nd=>{var od,ld;try{const ud=await Ra(nd),{clientName:dd,commandName:pd,logger:fd,dynamoDbDocumentClientOptions:md={}}=qa,{overrideInputFilterSensitiveLog:vd,overrideOutputFilterSensitiveLog:Ad}=md,Nd=vd??qa.inputFilterSensitiveLog,Od=Ad??qa.outputFilterSensitiveLog,{$metadata:kd,...Ld}=ud.output;return(od=fd==null?void 0:fd.info)==null||od.call(fd,{clientName:dd,commandName:pd,input:Nd(nd.input),output:Od(Ld),metadata:kd}),ud}catch(ud){const{clientName:dd,commandName:pd,logger:fd,dynamoDbDocumentClientOptions:md={}}=qa,{overrideInputFilterSensitiveLog:vd}=md,Ad=vd??qa.inputFilterSensitiveLog;throw(ld=fd==null?void 0:fd.error)==null||ld.call(fd,{clientName:dd,commandName:pd,input:Ad(nd.input),error:ud,metadata:ud.$metadata}),ud}},loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},getLoggerPlugin=Ra=>({applyToStack:qa=>{qa.add(loggerMiddleware(),loggerMiddlewareOptions)}});var define_process_env_default={};const TRACE_ID_HEADER_NAME="X-Amzn-Trace-Id",ENV_LAMBDA_FUNCTION_NAME="AWS_LAMBDA_FUNCTION_NAME",ENV_TRACE_ID="_X_AMZN_TRACE_ID",recursionDetectionMiddleware=Ra=>qa=>async nd=>{const{request:od}=nd;if(!HttpRequest.isInstance(od)||Ra.runtime!=="node"||od.headers.hasOwnProperty(TRACE_ID_HEADER_NAME))return qa(nd);const ld=define_process_env_default[ENV_LAMBDA_FUNCTION_NAME],ud=define_process_env_default[ENV_TRACE_ID],dd=pd=>typeof pd=="string"&&pd.length>0;return dd(ld)&&dd(ud)&&(od.headers[TRACE_ID_HEADER_NAME]=ud),qa({...nd,request:od})},addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},getRecursionDetectionPlugin=Ra=>({applyToStack:qa=>{qa.add(recursionDetectionMiddleware(Ra),addRecursionDetectionMiddlewareOptions)}}),CONTENT_LENGTH_HEADER$1="content-length";function checkContentLengthHeader(){return(Ra,qa)=>async nd=>{var ld;const{request:od}=nd;if(HttpRequest.isInstance(od)&&!(CONTENT_LENGTH_HEADER$1 in od.headers)){const ud="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((ld=qa==null?void 0:qa.logger)==null?void 0:ld.warn)=="function"&&!(qa.logger instanceof NoOpLogger)?qa.logger.warn(ud):console.warn(ud)}return Ra({...nd})}}const checkContentLengthHeaderMiddlewareOptions={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},getCheckContentLengthHeaderPlugin=Ra=>({applyToStack:qa=>{qa.add(checkContentLengthHeader(),checkContentLengthHeaderMiddlewareOptions)}}),regionRedirectEndpointMiddleware=Ra=>(qa,nd)=>async od=>{const ld=await Ra.region(),ud=Ra.region;let dd=()=>{};nd.__s3RegionRedirect&&(Object.defineProperty(Ra,"region",{writable:!1,value:async()=>nd.__s3RegionRedirect}),dd=()=>Object.defineProperty(Ra,"region",{writable:!0,value:ud}));try{const pd=await qa(od);if(nd.__s3RegionRedirect){dd();const fd=await Ra.region();if(ld!==fd)throw new Error("Region was not restored following S3 region redirect.")}return pd}catch(pd){throw dd(),pd}},regionRedirectEndpointMiddlewareOptions={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function regionRedirectMiddleware(Ra){return(qa,nd)=>async od=>{var ld,ud,dd;try{return await qa(od)}catch(pd){if(Ra.followRegionRedirects&&(((ld=pd==null?void 0:pd.$metadata)==null?void 0:ld.httpStatusCode)===301||((ud=pd==null?void 0:pd.$metadata)==null?void 0:ud.httpStatusCode)===400&&(pd==null?void 0:pd.name)==="IllegalLocationConstraintException")){try{const fd=pd.$response.headers["x-amz-bucket-region"];(dd=nd.logger)==null||dd.debug(`Redirecting from ${await Ra.region()} to ${fd}`),nd.__s3RegionRedirect=fd}catch(fd){throw new Error("Region redirect failed: "+fd)}return qa(od)}throw pd}}}const regionRedirectMiddlewareOptions={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},getRegionRedirectMiddlewarePlugin=Ra=>({applyToStack:qa=>{qa.add(regionRedirectMiddleware(Ra),regionRedirectMiddlewareOptions),qa.addRelativeTo(regionRedirectEndpointMiddleware(Ra),regionRedirectEndpointMiddlewareOptions)}});class S3ExpressIdentityCache{constructor(qa={}){this.data=qa,this.lastPurgeTime=Date.now()}get(qa){const nd=this.data[qa];if(nd)return nd}set(qa,nd){return this.data[qa]=nd,nd}delete(qa){delete this.data[qa]}async purgeExpired(){const qa=Date.now();if(!(this.lastPurgeTime+S3ExpressIdentityCache.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>qa))for(const nd in this.data){const od=this.data[nd];if(!od.isRefreshing){const ld=await od.identity;ld.expiration&&ld.expiration.getTime(){var md,vd;return(((md=dd.expiration)==null?void 0:md.getTime())??0){ld.set(od,new S3ExpressIdentityCacheEntry(Promise.resolve(Ad)))})),dd)}):ld.set(od,new S3ExpressIdentityCacheEntry(this.getIdentity(od))).identity}async getIdentity(qa){var ld,ud;await this.cache.purgeExpired().catch(dd=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache: +`+dd)});const nd=await this.createSessionFn(qa);if(!((ld=nd.Credentials)!=null&&ld.AccessKeyId)||!((ud=nd.Credentials)!=null&&ud.SecretAccessKey))throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:nd.Credentials.AccessKeyId,secretAccessKey:nd.Credentials.SecretAccessKey,sessionToken:nd.Credentials.SessionToken,expiration:nd.Credentials.Expiration?new Date(nd.Credentials.Expiration):void 0}}}S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS=6e4;var SelectorType;(function(Ra){Ra.ENV="env",Ra.CONFIG="shared config entry"})(SelectorType||(SelectorType={}));const S3_EXPRESS_BUCKET_TYPE="Directory",S3_EXPRESS_BACKEND="S3Express",S3_EXPRESS_AUTH_SCHEME="sigv4-s3express",SESSION_TOKEN_QUERY_PARAM="X-Amz-S3session-Token",SESSION_TOKEN_HEADER=SESSION_TOKEN_QUERY_PARAM.toLowerCase();class SignatureV4S3Express extends SignatureV4{async signWithCredentials(qa,nd,od){const ld=getCredentialsWithoutSessionToken(nd);qa.headers[SESSION_TOKEN_HEADER]=nd.sessionToken;const ud=this;return setSingleOverride(ud,ld),ud.signRequest(qa,od??{})}async presignWithCredentials(qa,nd,od){const ld=getCredentialsWithoutSessionToken(nd);return delete qa.headers[SESSION_TOKEN_HEADER],qa.headers[SESSION_TOKEN_QUERY_PARAM]=nd.sessionToken,qa.query=qa.query??{},qa.query[SESSION_TOKEN_QUERY_PARAM]=nd.sessionToken,setSingleOverride(this,ld),this.presign(qa,od)}}function getCredentialsWithoutSessionToken(Ra){return{accessKeyId:Ra.accessKeyId,secretAccessKey:Ra.secretAccessKey,expiration:Ra.expiration}}function setSingleOverride(Ra,qa){const nd=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),od=Ra.credentialProvider,ld=()=>(clearTimeout(nd),Ra.credentialProvider=od,Promise.resolve(qa));Ra.credentialProvider=ld}const s3ExpressMiddleware=Ra=>(qa,nd)=>async od=>{var ld,ud,dd,pd,fd;if(nd.endpointV2){const md=nd.endpointV2,vd=((dd=(ud=(ld=md.properties)==null?void 0:ld.authSchemes)==null?void 0:ud[0])==null?void 0:dd.name)===S3_EXPRESS_AUTH_SCHEME;if((((pd=md.properties)==null?void 0:pd.backend)===S3_EXPRESS_BACKEND||((fd=md.properties)==null?void 0:fd.bucketType)===S3_EXPRESS_BUCKET_TYPE)&&(setFeature$1(nd,"S3_EXPRESS_BUCKET","J"),nd.isS3ExpressBucket=!0),vd){const Nd=od.input.Bucket;if(Nd){const Od=await Ra.s3ExpressIdentityProvider.getS3ExpressIdentity(await Ra.credentials(),{Bucket:Nd});nd.s3ExpressIdentity=Od,HttpRequest.isInstance(od.request)&&Od.sessionToken&&(od.request.headers[SESSION_TOKEN_HEADER]=Od.sessionToken)}}}return qa(od)},s3ExpressMiddlewareOptions={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},getS3ExpressPlugin=Ra=>({applyToStack:qa=>{qa.add(s3ExpressMiddleware(Ra),s3ExpressMiddlewareOptions)}}),signS3Express=async(Ra,qa,nd,od)=>{const ld=await od.signWithCredentials(nd,Ra,{});if(ld.headers["X-Amz-Security-Token"]||ld.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return ld},defaultErrorHandler=Ra=>qa=>{throw qa},defaultSuccessHandler=(Ra,qa)=>{},s3ExpressHttpSigningMiddleware=Ra=>(qa,nd)=>async od=>{if(!HttpRequest.isInstance(od.request))return qa(od);const ud=getSmithyContext(nd).selectedHttpAuthScheme;if(!ud)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:dd={}},identity:pd,signer:fd}=ud;let md;nd.s3ExpressIdentity?md=await signS3Express(nd.s3ExpressIdentity,dd,od.request,await Ra.signer()):md=await fd.sign(od.request,pd,dd);const vd=await qa({...od,request:md}).catch((fd.errorHandler||defaultErrorHandler)(dd));return(fd.successHandler||defaultSuccessHandler)(vd.response,dd),vd},getS3ExpressHttpSigningPlugin=Ra=>({applyToStack:qa=>{qa.addRelativeTo(s3ExpressHttpSigningMiddleware(Ra),httpSigningMiddlewareOptions)}}),resolveS3Config=(Ra,{session:qa})=>{const[nd,od]=qa;return{...Ra,forcePathStyle:Ra.forcePathStyle??!1,useAccelerateEndpoint:Ra.useAccelerateEndpoint??!1,disableMultiregionAccessPoints:Ra.disableMultiregionAccessPoints??!1,followRegionRedirects:Ra.followRegionRedirects??!1,s3ExpressIdentityProvider:Ra.s3ExpressIdentityProvider??new S3ExpressIdentityProviderImpl(async ld=>nd().send(new od({Bucket:ld,SessionMode:"ReadWrite"}))),bucketEndpoint:Ra.bucketEndpoint??!1}},THROW_IF_EMPTY_BODY={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},MAX_BYTES_TO_INSPECT=3e3,throw200ExceptionsMiddleware=Ra=>(qa,nd)=>async od=>{const ld=await qa(od),{response:ud}=ld;if(!HttpResponse.isInstance(ud))return ld;const{statusCode:dd,body:pd}=ud;if(dd<200||dd>=300||!(typeof(pd==null?void 0:pd.stream)=="function"||typeof(pd==null?void 0:pd.pipe)=="function"||typeof(pd==null?void 0:pd.tee)=="function"))return ld;let md=pd,vd=pd;pd&&typeof pd=="object"&&!(pd instanceof Uint8Array)&&([md,vd]=await splitStream(pd)),ud.body=vd;const Ad=await collectBody(md,{streamCollector:async Od=>headStream(Od,MAX_BYTES_TO_INSPECT)});typeof(md==null?void 0:md.destroy)=="function"&&md.destroy();const Nd=Ra.utf8Encoder(Ad.subarray(Ad.length-16));if(Ad.length===0&&THROW_IF_EMPTY_BODY[nd.commandName]){const Od=new Error("S3 aborted request");throw Od.name="InternalError",Od}return Nd&&Nd.endsWith("")&&(ud.statusCode=400),ld},collectBody=(Ra=new Uint8Array,qa)=>Ra instanceof Uint8Array?Promise.resolve(Ra):qa.streamCollector(Ra)||Promise.resolve(new Uint8Array),throw200ExceptionsMiddlewareOptions={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},getThrow200ExceptionsPlugin=Ra=>({applyToStack:qa=>{qa.addRelativeTo(throw200ExceptionsMiddleware(Ra),throw200ExceptionsMiddlewareOptions)}}),validate=Ra=>typeof Ra=="string"&&Ra.indexOf("arn:")===0&&Ra.split(":").length>=6;function bucketEndpointMiddleware(Ra){return(qa,nd)=>async od=>{var ld,ud,dd,pd;if(Ra.bucketEndpoint){const fd=nd.endpointV2;if(fd){const md=od.input.Bucket;if(typeof md=="string")try{const vd=new URL(md);nd.endpointV2={...fd,url:vd}}catch(vd){const Ad=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${md} could not be parsed as URL.`;throw((ud=(ld=nd.logger)==null?void 0:ld.constructor)==null?void 0:ud.name)==="NoOpLogger"?console.warn(Ad):(pd=(dd=nd.logger)==null?void 0:dd.warn)==null||pd.call(dd,Ad),vd}}}return qa(od)}}const bucketEndpointMiddlewareOptions={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function validateBucketNameMiddleware({bucketEndpoint:Ra}){return qa=>async nd=>{const{input:{Bucket:od}}=nd;if(!Ra&&typeof od=="string"&&!validate(od)&&od.indexOf("/")>=0){const ld=new Error(`Bucket name shouldn't contain '/', received '${od}'`);throw ld.name="InvalidBucketName",ld}return qa({...nd})}}const validateBucketNameMiddlewareOptions={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},getValidateBucketNamePlugin=Ra=>({applyToStack:qa=>{qa.add(validateBucketNameMiddleware(Ra),validateBucketNameMiddlewareOptions),qa.addRelativeTo(bucketEndpointMiddleware(Ra),bucketEndpointMiddlewareOptions)}}),DEFAULT_UA_APP_ID=void 0;function isValidUserAgentAppId(Ra){return Ra===void 0?!0:typeof Ra=="string"&&Ra.length<=50}function resolveUserAgentConfig(Ra){const qa=normalizeProvider(Ra.userAgentAppId??DEFAULT_UA_APP_ID);return{...Ra,customUserAgent:typeof Ra.customUserAgent=="string"?[[Ra.customUserAgent]]:Ra.customUserAgent,userAgentAppId:async()=>{var od,ld;const nd=await qa();if(!isValidUserAgentAppId(nd)){const ud=((ld=(od=Ra.logger)==null?void 0:od.constructor)==null?void 0:ld.name)==="NoOpLogger"||!Ra.logger?console:Ra.logger;typeof nd!="string"?ud==null||ud.warn("userAgentAppId must be a string or undefined."):nd.length>50&&(ud==null||ud.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."))}return nd}}}class EndpointCache{constructor({size:qa,params:nd}){this.data=new Map,this.parameters=[],this.capacity=qa??50,nd&&(this.parameters=nd)}get(qa,nd){const od=this.hash(qa);if(od===!1)return nd();if(!this.data.has(od)){if(this.data.size>this.capacity+10){const ld=this.data.keys();let ud=0;for(;;){const{value:dd,done:pd}=ld.next();if(this.data.delete(dd),pd||++ud>10)break}}this.data.set(od,nd())}return this.data.get(od)}size(){return this.data.size}hash(qa){let nd="";const{parameters:od}=this;if(od.length===0)return!1;for(const ld of od){const ud=String(qa[ld]??"");if(ud.includes("|;"))return!1;nd+=ud+"|;"}return nd}}const IP_V4_REGEX=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),isIpAddress=Ra=>IP_V4_REGEX.test(Ra)||Ra.startsWith("[")&&Ra.endsWith("]"),VALID_HOST_LABEL_REGEX=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),isValidHostLabel=(Ra,qa=!1)=>{if(!qa)return VALID_HOST_LABEL_REGEX.test(Ra);const nd=Ra.split(".");for(const od of nd)if(!isValidHostLabel(od))return!1;return!0},customEndpointFunctions={},debugId="endpoints";function toDebugString(Ra){return typeof Ra!="object"||Ra==null?Ra:"ref"in Ra?`$${toDebugString(Ra.ref)}`:"fn"in Ra?`${Ra.fn}(${(Ra.argv||[]).map(toDebugString).join(", ")})`:JSON.stringify(Ra,null,2)}class EndpointError extends Error{constructor(qa){super(qa),this.name="EndpointError"}}const booleanEquals=(Ra,qa)=>Ra===qa,getAttrPathList=Ra=>{const qa=Ra.split("."),nd=[];for(const od of qa){const ld=od.indexOf("[");if(ld!==-1){if(od.indexOf("]")!==od.length-1)throw new EndpointError(`Path: '${Ra}' does not end with ']'`);const ud=od.slice(ld+1,-1);if(Number.isNaN(parseInt(ud)))throw new EndpointError(`Invalid array index: '${ud}' in path: '${Ra}'`);ld!==0&&nd.push(od.slice(0,ld)),nd.push(ud)}else nd.push(od)}return nd},getAttr=(Ra,qa)=>getAttrPathList(qa).reduce((nd,od)=>{if(typeof nd!="object")throw new EndpointError(`Index '${od}' in '${qa}' not found in '${JSON.stringify(Ra)}'`);return Array.isArray(nd)?nd[parseInt(od)]:nd[od]},Ra),isSet=Ra=>Ra!=null,not=Ra=>!Ra,DEFAULT_PORTS={[EndpointURLScheme.HTTP]:80,[EndpointURLScheme.HTTPS]:443},parseURL=Ra=>{const qa=(()=>{try{if(Ra instanceof URL)return Ra;if(typeof Ra=="object"&&"hostname"in Ra){const{hostname:Nd,port:Od,protocol:kd="",path:Ld="",query:Gd={}}=Ra,jd=new URL(`${kd}//${Nd}${Od?`:${Od}`:""}${Ld}`);return jd.search=Object.entries(Gd).map(([Fd,Ud])=>`${Fd}=${Ud}`).join("&"),jd}return new URL(Ra)}catch{return null}})();if(!qa)return console.error(`Unable to parse ${JSON.stringify(Ra)} as a whatwg URL.`),null;const nd=qa.href,{host:od,hostname:ld,pathname:ud,protocol:dd,search:pd}=qa;if(pd)return null;const fd=dd.slice(0,-1);if(!Object.values(EndpointURLScheme).includes(fd))return null;const md=isIpAddress(ld),vd=nd.includes(`${od}:${DEFAULT_PORTS[fd]}`)||typeof Ra=="string"&&Ra.includes(`${od}:${DEFAULT_PORTS[fd]}`),Ad=`${od}${vd?`:${DEFAULT_PORTS[fd]}`:""}`;return{scheme:fd,authority:Ad,path:ud,normalizedPath:ud.endsWith("/")?ud:`${ud}/`,isIp:md}},stringEquals=(Ra,qa)=>Ra===qa,substring=(Ra,qa,nd,od)=>qa>=nd||Ra.lengthencodeURIComponent(Ra).replace(/[!*'()]/g,qa=>`%${qa.charCodeAt(0).toString(16).toUpperCase()}`),endpointFunctions={booleanEquals,getAttr,isSet,isValidHostLabel,not,parseURL,stringEquals,substring,uriEncode},evaluateTemplate=(Ra,qa)=>{const nd=[],od={...qa.endpointParams,...qa.referenceRecord};let ld=0;for(;ld({...qa.endpointParams,...qa.referenceRecord})[Ra],evaluateExpression=(Ra,qa,nd)=>{if(typeof Ra=="string")return evaluateTemplate(Ra,nd);if(Ra.fn)return callFunction(Ra,nd);if(Ra.ref)return getReferenceValue(Ra,nd);throw new EndpointError(`'${qa}': ${String(Ra)} is not a string, function or reference.`)},callFunction=({fn:Ra,argv:qa},nd)=>{const od=qa.map(ud=>["boolean","number"].includes(typeof ud)?ud:evaluateExpression(ud,"arg",nd)),ld=Ra.split(".");return ld[0]in customEndpointFunctions&&ld[1]!=null?customEndpointFunctions[ld[0]][ld[1]](...od):endpointFunctions[Ra](...od)},evaluateCondition=({assign:Ra,...qa},nd)=>{var ld,ud;if(Ra&&Ra in nd.referenceRecord)throw new EndpointError(`'${Ra}' is already defined in Reference Record.`);const od=callFunction(qa,nd);return(ud=(ld=nd.logger)==null?void 0:ld.debug)==null||ud.call(ld,`${debugId} evaluateCondition: ${toDebugString(qa)} = ${toDebugString(od)}`),{result:od===""?!0:!!od,...Ra!=null&&{toAssign:{name:Ra,value:od}}}},evaluateConditions=(Ra=[],qa)=>{var od,ld;const nd={};for(const ud of Ra){const{result:dd,toAssign:pd}=evaluateCondition(ud,{...qa,referenceRecord:{...qa.referenceRecord,...nd}});if(!dd)return{result:dd};pd&&(nd[pd.name]=pd.value,(ld=(od=qa.logger)==null?void 0:od.debug)==null||ld.call(od,`${debugId} assign: ${pd.name} := ${toDebugString(pd.value)}`))}return{result:!0,referenceRecord:nd}},getEndpointHeaders=(Ra,qa)=>Object.entries(Ra).reduce((nd,[od,ld])=>({...nd,[od]:ld.map(ud=>{const dd=evaluateExpression(ud,"Header value entry",qa);if(typeof dd!="string")throw new EndpointError(`Header '${od}' value '${dd}' is not a string`);return dd})}),{}),getEndpointProperty=(Ra,qa)=>{if(Array.isArray(Ra))return Ra.map(nd=>getEndpointProperty(nd,qa));switch(typeof Ra){case"string":return evaluateTemplate(Ra,qa);case"object":if(Ra===null)throw new EndpointError(`Unexpected endpoint property: ${Ra}`);return getEndpointProperties(Ra,qa);case"boolean":return Ra;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof Ra}`)}},getEndpointProperties=(Ra,qa)=>Object.entries(Ra).reduce((nd,[od,ld])=>({...nd,[od]:getEndpointProperty(ld,qa)}),{}),getEndpointUrl=(Ra,qa)=>{const nd=evaluateExpression(Ra,"Endpoint URL",qa);if(typeof nd=="string")try{return new URL(nd)}catch(od){throw console.error(`Failed to construct URL with ${nd}`,od),od}throw new EndpointError(`Endpoint URL must be a string, got ${typeof nd}`)},evaluateEndpointRule=(Ra,qa)=>{var vd,Ad;const{conditions:nd,endpoint:od}=Ra,{result:ld,referenceRecord:ud}=evaluateConditions(nd,qa);if(!ld)return;const dd={...qa,referenceRecord:{...qa.referenceRecord,...ud}},{url:pd,properties:fd,headers:md}=od;return(Ad=(vd=qa.logger)==null?void 0:vd.debug)==null||Ad.call(vd,`${debugId} Resolving endpoint from template: ${toDebugString(od)}`),{...md!=null&&{headers:getEndpointHeaders(md,dd)},...fd!=null&&{properties:getEndpointProperties(fd,dd)},url:getEndpointUrl(pd,dd)}},evaluateErrorRule=(Ra,qa)=>{const{conditions:nd,error:od}=Ra,{result:ld,referenceRecord:ud}=evaluateConditions(nd,qa);if(ld)throw new EndpointError(evaluateExpression(od,"Error",{...qa,referenceRecord:{...qa.referenceRecord,...ud}}))},evaluateTreeRule=(Ra,qa)=>{const{conditions:nd,rules:od}=Ra,{result:ld,referenceRecord:ud}=evaluateConditions(nd,qa);if(ld)return evaluateRules(od,{...qa,referenceRecord:{...qa.referenceRecord,...ud}})},evaluateRules=(Ra,qa)=>{for(const nd of Ra)if(nd.type==="endpoint"){const od=evaluateEndpointRule(nd,qa);if(od)return od}else if(nd.type==="error")evaluateErrorRule(nd,qa);else if(nd.type==="tree"){const od=evaluateTreeRule(nd,qa);if(od)return od}else throw new EndpointError(`Unknown endpoint rule: ${nd}`);throw new EndpointError("Rules evaluation failed")},resolveEndpoint=(Ra,qa)=>{var md,vd,Ad,Nd;const{endpointParams:nd,logger:od}=qa,{parameters:ld,rules:ud}=Ra;(vd=(md=qa.logger)==null?void 0:md.debug)==null||vd.call(md,`${debugId} Initial EndpointParams: ${toDebugString(nd)}`);const dd=Object.entries(ld).filter(([,Od])=>Od.default!=null).map(([Od,kd])=>[Od,kd.default]);if(dd.length>0)for(const[Od,kd]of dd)nd[Od]=nd[Od]??kd;const pd=Object.entries(ld).filter(([,Od])=>Od.required).map(([Od])=>Od);for(const Od of pd)if(nd[Od]==null)throw new EndpointError(`Missing required parameter: '${Od}'`);const fd=evaluateRules(ud,{endpointParams:nd,logger:od,referenceRecord:{}});return(Nd=(Ad=qa.logger)==null?void 0:Ad.debug)==null||Nd.call(Ad,`${debugId} Resolved endpoint: ${toDebugString(fd)}`),fd},isVirtualHostableS3Bucket=(Ra,qa=!1)=>{if(qa){for(const nd of Ra.split("."))if(!isVirtualHostableS3Bucket(nd))return!1;return!0}return!(!isValidHostLabel(Ra)||Ra.length<3||Ra.length>63||Ra!==Ra.toLowerCase()||isIpAddress(Ra))},ARN_DELIMITER=":",RESOURCE_DELIMITER="/",parseArn=Ra=>{const qa=Ra.split(ARN_DELIMITER);if(qa.length<6)return null;const[nd,od,ld,ud,dd,...pd]=qa;if(nd!=="arn"||od===""||ld===""||pd.join(ARN_DELIMITER)==="")return null;const fd=pd.map(md=>md.split(RESOURCE_DELIMITER)).flat();return{partition:od,service:ld,region:ud,accountId:dd,resourceId:fd}},partitions=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version$1="1.1",partitionsInfo={partitions,version:version$1};let selectedPartitionsInfo=partitionsInfo;const partition=Ra=>{const{partitions:qa}=selectedPartitionsInfo;for(const od of qa){const{regions:ld,outputs:ud}=od;for(const[dd,pd]of Object.entries(ld))if(dd===Ra)return{...ud,...pd}}for(const od of qa){const{regionRegex:ld,outputs:ud}=od;if(new RegExp(ld).test(Ra))return{...ud}}const nd=qa.find(od=>od.id==="aws");if(!nd)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...nd.outputs}},awsEndpointFunctions={isVirtualHostableS3Bucket,parseArn,partition};customEndpointFunctions.aws=awsEndpointFunctions;const ACCOUNT_ID_ENDPOINT_REGEX=/\d{12}\.ddb/;async function checkFeatures(Ra,qa,nd){var ud,dd,pd,fd,md,vd,Ad;const od=nd.request;if(((ud=od==null?void 0:od.headers)==null?void 0:ud["smithy-protocol"])==="rpc-v2-cbor"&&setFeature$1(Ra,"PROTOCOL_RPC_V2_CBOR","M"),typeof qa.retryStrategy=="function"){const Nd=await qa.retryStrategy();typeof Nd.acquireInitialRetryToken=="function"?(pd=(dd=Nd.constructor)==null?void 0:dd.name)!=null&&pd.includes("Adaptive")?setFeature$1(Ra,"RETRY_MODE_ADAPTIVE","F"):setFeature$1(Ra,"RETRY_MODE_STANDARD","E"):setFeature$1(Ra,"RETRY_MODE_LEGACY","D")}if(typeof qa.accountIdEndpointMode=="function"){const Nd=Ra.endpointV2;switch(String((fd=Nd==null?void 0:Nd.url)==null?void 0:fd.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)&&setFeature$1(Ra,"ACCOUNT_ID_ENDPOINT","O"),await((md=qa.accountIdEndpointMode)==null?void 0:md.call(qa))){case"disabled":setFeature$1(Ra,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":setFeature$1(Ra,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":setFeature$1(Ra,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const ld=(Ad=(vd=Ra.__smithy_context)==null?void 0:vd.selectedHttpAuthScheme)==null?void 0:Ad.identity;if(ld!=null&&ld.$source){const Nd=ld;Nd.accountId&&setFeature$1(Ra,"RESOLVED_ACCOUNT_ID","T");for(const[Od,kd]of Object.entries(Nd.$source??{}))setFeature$1(Ra,Od,kd)}}const USER_AGENT="user-agent",X_AMZ_USER_AGENT="x-amz-user-agent",SPACE=" ",UA_NAME_SEPARATOR="/",UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,UA_ESCAPE_CHAR="-",BYTE_LIMIT=1024;function encodeFeatures(Ra){let qa="";for(const nd in Ra){const od=Ra[nd];if(qa.length+od.length+1<=BYTE_LIMIT){qa.length?qa+=","+od:qa+=od;continue}break}return qa}const userAgentMiddleware=Ra=>(qa,nd)=>async od=>{var Od,kd,Ld,Gd;const{request:ld}=od;if(!HttpRequest.isInstance(ld))return qa(od);const{headers:ud}=ld,dd=((Od=nd==null?void 0:nd.userAgent)==null?void 0:Od.map(escapeUserAgent))||[],pd=(await Ra.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(nd,Ra,od);const fd=nd;pd.push(`m/${encodeFeatures(Object.assign({},(kd=nd.__smithy_context)==null?void 0:kd.features,(Ld=fd.__aws_sdk_context)==null?void 0:Ld.features))}`);const md=((Gd=Ra==null?void 0:Ra.customUserAgent)==null?void 0:Gd.map(escapeUserAgent))||[],vd=await Ra.userAgentAppId();vd&&pd.push(escapeUserAgent([`app/${vd}`]));const Ad=[].concat([...pd,...dd,...md]).join(SPACE),Nd=[...pd.filter(jd=>jd.startsWith("aws-sdk-")),...md].join(SPACE);return Ra.runtime!=="browser"?(Nd&&(ud[X_AMZ_USER_AGENT]=ud[X_AMZ_USER_AGENT]?`${ud[USER_AGENT]} ${Nd}`:Nd),ud[USER_AGENT]=Ad):ud[X_AMZ_USER_AGENT]=Ad,qa({...od,request:ld})},escapeUserAgent=Ra=>{var dd;const qa=Ra[0].split(UA_NAME_SEPARATOR).map(pd=>pd.replace(UA_NAME_ESCAPE_REGEX,UA_ESCAPE_CHAR)).join(UA_NAME_SEPARATOR),nd=(dd=Ra[1])==null?void 0:dd.replace(UA_VALUE_ESCAPE_REGEX,UA_ESCAPE_CHAR),od=qa.indexOf(UA_NAME_SEPARATOR),ld=qa.substring(0,od);let ud=qa.substring(od+1);return ld==="api"&&(ud=ud.toLowerCase()),[ld,ud,nd].filter(pd=>pd&&pd.length>0).reduce((pd,fd,md)=>{switch(md){case 0:return fd;case 1:return`${pd}/${fd}`;default:return`${pd}#${fd}`}},"")},getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},getUserAgentPlugin=Ra=>({applyToStack:qa=>{qa.add(userAgentMiddleware(Ra),getUserAgentMiddlewareOptions)}}),DEFAULT_USE_DUALSTACK_ENDPOINT=!1,DEFAULT_USE_FIPS_ENDPOINT=!1,isFipsRegion=Ra=>typeof Ra=="string"&&(Ra.startsWith("fips-")||Ra.endsWith("-fips")),getRealRegion=Ra=>isFipsRegion(Ra)?["fips-aws-global","aws-fips"].includes(Ra)?"us-east-1":Ra.replace(/fips-(dkr-|prod-)?|-fips/,""):Ra,resolveRegionConfig=Ra=>{const{region:qa,useFipsEndpoint:nd}=Ra;if(!qa)throw new Error("Region is missing");return{...Ra,region:async()=>{if(typeof qa=="string")return getRealRegion(qa);const od=await qa();return getRealRegion(od)},useFipsEndpoint:async()=>{const od=typeof qa=="string"?qa:await qa();return isFipsRegion(od)?!0:typeof nd!="function"?Promise.resolve(!!nd):nd()}}},resolveEventStreamSerdeConfig=Ra=>({...Ra,eventStreamMarshaller:Ra.eventStreamSerdeProvider(Ra)}),CONTENT_LENGTH_HEADER="content-length";function contentLengthMiddleware(Ra){return qa=>async nd=>{const od=nd.request;if(HttpRequest.isInstance(od)){const{body:ld,headers:ud}=od;if(ld&&Object.keys(ud).map(dd=>dd.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER)===-1)try{const dd=Ra(ld);od.headers={...od.headers,[CONTENT_LENGTH_HEADER]:String(dd)}}catch{}}return qa({...nd,request:od})}}const contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},getContentLengthPlugin=Ra=>({applyToStack:qa=>{qa.add(contentLengthMiddleware(Ra.bodyLengthChecker),contentLengthMiddlewareOptions)}}),resolveParamsForS3=async Ra=>{const qa=(Ra==null?void 0:Ra.Bucket)||"";if(typeof Ra.Bucket=="string"&&(Ra.Bucket=qa.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),isArnBucketName(qa)){if(Ra.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!isDnsCompatibleBucketName(qa)||qa.indexOf(".")!==-1&&!String(Ra.Endpoint).startsWith("http:")||qa.toLowerCase()!==qa||qa.length<3)&&(Ra.ForcePathStyle=!0);return Ra.DisableMultiRegionAccessPoints&&(Ra.disableMultiRegionAccessPoints=!0,Ra.DisableMRAP=!0),Ra},DOMAIN_PATTERN=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,IP_ADDRESS_PATTERN=/(\d+\.){3}\d+/,DOTS_PATTERN=/\.\./,isDnsCompatibleBucketName=Ra=>DOMAIN_PATTERN.test(Ra)&&!IP_ADDRESS_PATTERN.test(Ra)&&!DOTS_PATTERN.test(Ra),isArnBucketName=Ra=>{const[qa,nd,od,,,ld]=Ra.split(":"),ud=qa==="arn"&&Ra.split(":").length>=6,dd=!!(ud&&nd&&od&&ld);if(ud&&!dd)throw new Error(`Invalid ARN: ${Ra} was an invalid ARN.`);return dd},createConfigValueProvider=(Ra,qa,nd)=>{const od=async()=>{const ld=nd[Ra]??nd[qa];return typeof ld=="function"?ld():ld};return Ra==="credentialScope"||qa==="CredentialScope"?async()=>{const ld=typeof nd.credentials=="function"?await nd.credentials():nd.credentials;return(ld==null?void 0:ld.credentialScope)??(ld==null?void 0:ld.CredentialScope)}:Ra==="accountId"||qa==="AccountId"?async()=>{const ld=typeof nd.credentials=="function"?await nd.credentials():nd.credentials;return(ld==null?void 0:ld.accountId)??(ld==null?void 0:ld.AccountId)}:Ra==="endpoint"||qa==="endpoint"?async()=>{const ld=await od();if(ld&&typeof ld=="object"){if("url"in ld)return ld.url.href;if("hostname"in ld){const{protocol:ud,hostname:dd,port:pd,path:fd}=ld;return`${ud}//${dd}${pd?":"+pd:""}${fd}`}}return ld}:od},getEndpointFromConfig=async Ra=>{};function parseQueryString(Ra){const qa={};if(Ra=Ra.replace(/^\?/,""),Ra)for(const nd of Ra.split("&")){let[od,ld=null]=nd.split("=");od=decodeURIComponent(od),ld&&(ld=decodeURIComponent(ld)),od in qa?Array.isArray(qa[od])?qa[od].push(ld):qa[od]=[qa[od],ld]:qa[od]=ld}return qa}const parseUrl=Ra=>{if(typeof Ra=="string")return parseUrl(new URL(Ra));const{hostname:qa,pathname:nd,port:od,protocol:ld,search:ud}=Ra;let dd;return ud&&(dd=parseQueryString(ud)),{hostname:qa,port:od?parseInt(od):void 0,protocol:ld,path:nd,query:dd}},toEndpointV1=Ra=>typeof Ra=="object"?"url"in Ra?parseUrl(Ra.url):Ra:parseUrl(Ra),getEndpointFromInstructions=async(Ra,qa,nd,od)=>{if(!nd.endpoint){let dd;nd.serviceConfiguredEndpoint?dd=await nd.serviceConfiguredEndpoint():dd=await getEndpointFromConfig(nd.serviceId),dd&&(nd.endpoint=()=>Promise.resolve(toEndpointV1(dd)))}const ld=await resolveParams(Ra,qa,nd);if(typeof nd.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return nd.endpointProvider(ld,od)},resolveParams=async(Ra,qa,nd)=>{var ud;const od={},ld=((ud=qa==null?void 0:qa.getEndpointParameterInstructions)==null?void 0:ud.call(qa))||{};for(const[dd,pd]of Object.entries(ld))switch(pd.type){case"staticContextParams":od[dd]=pd.value;break;case"contextParams":od[dd]=Ra[pd.name];break;case"clientContextParams":case"builtInParams":od[dd]=await createConfigValueProvider(pd.name,dd,nd)();break;case"operationContextParams":od[dd]=pd.get(Ra);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(pd))}return Object.keys(ld).length===0&&Object.assign(od,nd),String(nd.serviceId).toLowerCase()==="s3"&&await resolveParamsForS3(od),od},endpointMiddleware=({config:Ra,instructions:qa})=>(nd,od)=>async ld=>{var pd,fd,md;Ra.endpoint&&setFeature(od,"ENDPOINT_OVERRIDE","N");const ud=await getEndpointFromInstructions(ld.input,{getEndpointParameterInstructions(){return qa}},{...Ra},od);od.endpointV2=ud,od.authSchemes=(pd=ud.properties)==null?void 0:pd.authSchemes;const dd=(fd=od.authSchemes)==null?void 0:fd[0];if(dd){od.signing_region=dd.signingRegion,od.signing_service=dd.signingName;const vd=getSmithyContext(od),Ad=(md=vd==null?void 0:vd.selectedHttpAuthScheme)==null?void 0:md.httpAuthOption;Ad&&(Ad.signingProperties=Object.assign(Ad.signingProperties||{},{signing_region:dd.signingRegion,signingRegion:dd.signingRegion,signing_service:dd.signingName,signingName:dd.signingName,signingRegionSet:dd.signingRegionSet},dd.properties))}return nd({...ld})},endpointMiddlewareOptions={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:serializerMiddlewareOption.name},getEndpointPlugin=(Ra,qa)=>({applyToStack:nd=>{nd.addRelativeTo(endpointMiddleware({config:Ra,instructions:qa}),endpointMiddlewareOptions)}}),resolveEndpointConfig=Ra=>{const qa=Ra.tls??!0,{endpoint:nd}=Ra,od=nd!=null?async()=>toEndpointV1(await normalizeProvider$1(nd)()):void 0,ud={...Ra,endpoint:od,tls:qa,isCustomEndpoint:!!nd,useDualstackEndpoint:normalizeProvider$1(Ra.useDualstackEndpoint??!1),useFipsEndpoint:normalizeProvider$1(Ra.useFipsEndpoint??!1)};let dd;return ud.serviceConfiguredEndpoint=async()=>(Ra.serviceId&&!dd&&(dd=getEndpointFromConfig(Ra.serviceId)),dd),ud};var RETRY_MODES;(function(Ra){Ra.STANDARD="standard",Ra.ADAPTIVE="adaptive"})(RETRY_MODES||(RETRY_MODES={}));const DEFAULT_MAX_ATTEMPTS=3,DEFAULT_RETRY_MODE=RETRY_MODES.STANDARD,THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],TRANSIENT_ERROR_CODES=["TimeoutError","RequestTimeout","RequestTimeoutException"],TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504],NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],isClockSkewCorrectedError=Ra=>{var qa;return(qa=Ra.$metadata)==null?void 0:qa.clockSkewCorrected},isThrottlingError=Ra=>{var qa,nd;return((qa=Ra.$metadata)==null?void 0:qa.httpStatusCode)===429||THROTTLING_ERROR_CODES.includes(Ra.name)||((nd=Ra.$retryable)==null?void 0:nd.throttling)==!0},isTransientError=(Ra,qa=0)=>{var nd;return isClockSkewCorrectedError(Ra)||TRANSIENT_ERROR_CODES.includes(Ra.name)||NODEJS_TIMEOUT_ERROR_CODES.includes((Ra==null?void 0:Ra.code)||"")||TRANSIENT_ERROR_STATUS_CODES.includes(((nd=Ra.$metadata)==null?void 0:nd.httpStatusCode)||0)||Ra.cause!==void 0&&qa<=10&&isTransientError(Ra.cause,qa+1)},isServerError=Ra=>{var qa;if(((qa=Ra.$metadata)==null?void 0:qa.httpStatusCode)!==void 0){const nd=Ra.$metadata.httpStatusCode;return 500<=nd&&nd<=599&&!isTransientError(Ra)}return!1};class DefaultRateLimiter{constructor(qa){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(qa==null?void 0:qa.beta)??.7,this.minCapacity=(qa==null?void 0:qa.minCapacity)??1,this.minFillRate=(qa==null?void 0:qa.minFillRate)??.5,this.scaleConstant=(qa==null?void 0:qa.scaleConstant)??.4,this.smooth=(qa==null?void 0:qa.smooth)??.8;const nd=this.getCurrentTimeInSeconds();this.lastThrottleTime=nd,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(qa){if(this.enabled){if(this.refillTokenBucket(),qa>this.currentCapacity){const nd=(qa-this.currentCapacity)/this.fillRate*1e3;await new Promise(od=>DefaultRateLimiter.setTimeoutFn(od,nd))}this.currentCapacity=this.currentCapacity-qa}}refillTokenBucket(){const qa=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=qa;return}const nd=(qa-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+nd),this.lastTimestamp=qa}updateClientSendingRate(qa){let nd;if(this.updateMeasuredRate(),isThrottlingError(qa)){const ld=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=ld,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),nd=this.cubicThrottle(ld),this.enableTokenBucket()}else this.calculateTimeWindow(),nd=this.cubicSuccess(this.getCurrentTimeInSeconds());const od=Math.min(nd,2*this.measuredTxRate);this.updateTokenBucketRate(od)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(qa){return this.getPrecise(qa*this.beta)}cubicSuccess(qa){return this.getPrecise(this.scaleConstant*Math.pow(qa-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(qa){this.refillTokenBucket(),this.fillRate=Math.max(qa,this.minFillRate),this.maxCapacity=Math.max(qa,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const qa=this.getCurrentTimeInSeconds(),nd=Math.floor(qa*2)/2;if(this.requestCount++,nd>this.lastTxRateBucket){const od=this.requestCount/(nd-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(od*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=nd}}getPrecise(qa){return parseFloat(qa.toFixed(8))}}DefaultRateLimiter.setTimeoutFn=setTimeout;const DEFAULT_RETRY_DELAY_BASE=100,MAXIMUM_RETRY_DELAY=20*1e3,THROTTLING_RETRY_DELAY_BASE=500,INITIAL_RETRY_TOKENS=500,RETRY_COST=5,TIMEOUT_RETRY_COST=10,NO_RETRY_INCREMENT=1,INVOCATION_ID_HEADER="amz-sdk-invocation-id",REQUEST_HEADER="amz-sdk-request",getDefaultRetryBackoffStrategy=()=>{let Ra=DEFAULT_RETRY_DELAY_BASE;return{computeNextBackoffDelay:od=>Math.floor(Math.min(MAXIMUM_RETRY_DELAY,Math.random()*2**od*Ra)),setDelayBase:od=>{Ra=od}}},createDefaultRetryToken=({retryDelay:Ra,retryCount:qa,retryCost:nd})=>({getRetryCount:()=>qa,getRetryDelay:()=>Math.min(MAXIMUM_RETRY_DELAY,Ra),getRetryCost:()=>nd});class StandardRetryStrategy{constructor(qa){this.maxAttempts=qa,this.mode=RETRY_MODES.STANDARD,this.capacity=INITIAL_RETRY_TOKENS,this.retryBackoffStrategy=getDefaultRetryBackoffStrategy(),this.maxAttemptsProvider=typeof qa=="function"?qa:async()=>qa}async acquireInitialRetryToken(qa){return createDefaultRetryToken({retryDelay:DEFAULT_RETRY_DELAY_BASE,retryCount:0})}async refreshRetryTokenForRetry(qa,nd){const od=await this.getMaxAttempts();if(this.shouldRetry(qa,nd,od)){const ld=nd.errorType;this.retryBackoffStrategy.setDelayBase(ld==="THROTTLING"?THROTTLING_RETRY_DELAY_BASE:DEFAULT_RETRY_DELAY_BASE);const ud=this.retryBackoffStrategy.computeNextBackoffDelay(qa.getRetryCount()),dd=nd.retryAfterHint?Math.max(nd.retryAfterHint.getTime()-Date.now()||0,ud):ud,pd=this.getCapacityCost(ld);return this.capacity-=pd,createDefaultRetryToken({retryDelay:dd,retryCount:qa.getRetryCount()+1,retryCost:pd})}throw new Error("No retry token available")}recordSuccess(qa){this.capacity=Math.max(INITIAL_RETRY_TOKENS,this.capacity+(qa.getRetryCost()??NO_RETRY_INCREMENT))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`),DEFAULT_MAX_ATTEMPTS}}shouldRetry(qa,nd,od){return qa.getRetryCount()+1=this.getCapacityCost(nd.errorType)&&this.isRetryableError(nd.errorType)}getCapacityCost(qa){return qa==="TRANSIENT"?TIMEOUT_RETRY_COST:RETRY_COST}isRetryableError(qa){return qa==="THROTTLING"||qa==="TRANSIENT"}}class AdaptiveRetryStrategy{constructor(qa,nd){this.maxAttemptsProvider=qa,this.mode=RETRY_MODES.ADAPTIVE;const{rateLimiter:od}=nd??{};this.rateLimiter=od??new DefaultRateLimiter,this.standardRetryStrategy=new StandardRetryStrategy(qa)}async acquireInitialRetryToken(qa){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(qa)}async refreshRetryTokenForRetry(qa,nd){return this.rateLimiter.updateClientSendingRate(nd),this.standardRetryStrategy.refreshRetryTokenForRetry(qa,nd)}recordSuccess(qa){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(qa)}}let getRandomValues$1;const rnds8$1=new Uint8Array(16);function rng$1(){if(!getRandomValues$1&&(getRandomValues$1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues$1))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues$1(rnds8$1)}const byteToHex$1=[];for(let Ra=0;Ra<256;++Ra)byteToHex$1.push((Ra+256).toString(16).slice(1));function unsafeStringify$1(Ra,qa=0){return byteToHex$1[Ra[qa+0]]+byteToHex$1[Ra[qa+1]]+byteToHex$1[Ra[qa+2]]+byteToHex$1[Ra[qa+3]]+"-"+byteToHex$1[Ra[qa+4]]+byteToHex$1[Ra[qa+5]]+"-"+byteToHex$1[Ra[qa+6]]+byteToHex$1[Ra[qa+7]]+"-"+byteToHex$1[Ra[qa+8]]+byteToHex$1[Ra[qa+9]]+"-"+byteToHex$1[Ra[qa+10]]+byteToHex$1[Ra[qa+11]]+byteToHex$1[Ra[qa+12]]+byteToHex$1[Ra[qa+13]]+byteToHex$1[Ra[qa+14]]+byteToHex$1[Ra[qa+15]]}const randomUUID$1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native$1={randomUUID:randomUUID$1};function v4$1(Ra,qa,nd){if(native$1.randomUUID&&!qa&&!Ra)return native$1.randomUUID();Ra=Ra||{};const od=Ra.random||(Ra.rng||rng$1)();return od[6]=od[6]&15|64,od[8]=od[8]&63|128,unsafeStringify$1(od)}const asSdkError=Ra=>Ra instanceof Error?Ra:Ra instanceof Object?Object.assign(new Error,Ra):typeof Ra=="string"?new Error(Ra):new Error(`AWS SDK error wrapper for ${Ra}`),resolveRetryConfig=Ra=>{const{retryStrategy:qa}=Ra,nd=normalizeProvider$1(Ra.maxAttempts??DEFAULT_MAX_ATTEMPTS);return{...Ra,maxAttempts:nd,retryStrategy:async()=>qa||(await normalizeProvider$1(Ra.retryMode)()===RETRY_MODES.ADAPTIVE?new AdaptiveRetryStrategy(nd):new StandardRetryStrategy(nd))}},isStreamingPayload=Ra=>(Ra==null?void 0:Ra.body)instanceof ReadableStream,retryMiddleware=Ra=>(qa,nd)=>async od=>{var dd;let ld=await Ra.retryStrategy();const ud=await Ra.maxAttempts();if(isRetryStrategyV2(ld)){ld=ld;let pd=await ld.acquireInitialRetryToken(nd.partition_id),fd=new Error,md=0,vd=0;const{request:Ad}=od,Nd=HttpRequest.isInstance(Ad);for(Nd&&(Ad.headers[INVOCATION_ID_HEADER]=v4$1());;)try{Nd&&(Ad.headers[REQUEST_HEADER]=`attempt=${md+1}; max=${ud}`);const{response:Od,output:kd}=await qa(od);return ld.recordSuccess(pd),kd.$metadata.attempts=md+1,kd.$metadata.totalRetryDelay=vd,{response:Od,output:kd}}catch(Od){const kd=getRetryErrorInfo(Od);if(fd=asSdkError(Od),Nd&&isStreamingPayload(Ad))throw(dd=nd.logger instanceof NoOpLogger?console:nd.logger)==null||dd.warn("An error was encountered in a non-retryable streaming request."),fd;try{pd=await ld.refreshRetryTokenForRetry(pd,kd)}catch{throw fd.$metadata||(fd.$metadata={}),fd.$metadata.attempts=md+1,fd.$metadata.totalRetryDelay=vd,fd}md=pd.getRetryCount();const Ld=pd.getRetryDelay();vd+=Ld,await new Promise(Gd=>setTimeout(Gd,Ld))}}else return ld=ld,ld!=null&&ld.mode&&(nd.userAgent=[...nd.userAgent||[],["cfg/retry-mode",ld.mode]]),ld.retry(qa,od)},isRetryStrategyV2=Ra=>typeof Ra.acquireInitialRetryToken<"u"&&typeof Ra.refreshRetryTokenForRetry<"u"&&typeof Ra.recordSuccess<"u",getRetryErrorInfo=Ra=>{const qa={error:Ra,errorType:getRetryErrorType(Ra)},nd=getRetryAfterHint(Ra.$response);return nd&&(qa.retryAfterHint=nd),qa},getRetryErrorType=Ra=>isThrottlingError(Ra)?"THROTTLING":isTransientError(Ra)?"TRANSIENT":isServerError(Ra)?"SERVER_ERROR":"CLIENT_ERROR",retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},getRetryPlugin=Ra=>({applyToStack:qa=>{qa.add(retryMiddleware(Ra),retryMiddlewareOptions)}}),getRetryAfterHint=Ra=>{if(!HttpResponse.isInstance(Ra))return;const qa=Object.keys(Ra.headers).find(ud=>ud.toLowerCase()==="retry-after");if(!qa)return;const nd=Ra.headers[qa],od=Number(nd);return Number.isNaN(od)?new Date(nd):new Date(od*1e3)},signatureV4CrtContainer={CrtSignerV4:null};class SignatureV4MultiRegion{constructor(qa){this.sigv4Signer=new SignatureV4S3Express(qa),this.signerOptions=qa}async sign(qa,nd={}){if(nd.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().sign(qa,nd)}return this.sigv4Signer.sign(qa,nd)}async signWithCredentials(qa,nd,od={}){if(od.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().signWithCredentials(qa,nd,od)}return this.sigv4Signer.signWithCredentials(qa,nd,od)}async presign(qa,nd={}){if(nd.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().presign(qa,nd)}return this.sigv4Signer.presign(qa,nd)}async presignWithCredentials(qa,nd,od={}){if(od.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(qa,nd,od)}getSigv4aSigner(){if(!this.sigv4aSigner){let qa=null;try{if(qa=signatureV4CrtContainer.CrtSignerV4,typeof qa!="function")throw new Error}catch(nd){throw nd.message=`${nd.message} Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. -For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,nd}this.sigv4aSigner=new qa({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}}const ci="required",cj="type",ck="conditions",cl="fn",cm="argv",cn="ref",co="assign",cp="url",cq="properties",cr="backend",cs="authSchemes",ct="disableDoubleEncoding",cu="signingName",cv="signingRegion",cw="headers",cx="signingRegionSet",a=6,b=!1,c=!0,d="isSet",e="booleanEquals",f="error",g="aws.partition",h="stringEquals",i="getAttr",j="name",k="substring",l="bucketSuffix",m="parseURL",n="{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",o="endpoint",p="tree",q="aws.isVirtualHostableS3Bucket",r="{url#scheme}://{Bucket}.{url#authority}{url#path}",s="not",t="{url#scheme}://{url#authority}{url#path}",u="hardwareType",v="regionPrefix",w="bucketAliasSuffix",x="outpostId",y="isValidHostLabel",z="sigv4a",A="s3-outposts",B="s3",C="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",D="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",E="https://{Bucket}.s3.{partitionResult#dnsSuffix}",F="aws.parseArn",G="bucketArn",H="arnType",I="",J="s3-object-lambda",K="accesspoint",L="accessPointName",M="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",N="mrapPartition",O="outpostType",P="arnPrefix",Q="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",R="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",S="https://s3.{partitionResult#dnsSuffix}",T={[ci]:!1,[cj]:"String"},U={[ci]:!0,default:!1,[cj]:"Boolean"},V={[ci]:!1,[cj]:"Boolean"},W={[cl]:e,[cm]:[{[cn]:"Accelerate"},!0]},X={[cl]:e,[cm]:[{[cn]:"UseFIPS"},!0]},Y={[cl]:e,[cm]:[{[cn]:"UseDualStack"},!0]},Z={[cl]:d,[cm]:[{[cn]:"Endpoint"}]},aa={[cl]:g,[cm]:[{[cn]:"Region"}],[co]:"partitionResult"},ab={[cl]:h,[cm]:[{[cl]:i,[cm]:[{[cn]:"partitionResult"},j]},"aws-cn"]},ac={[cl]:d,[cm]:[{[cn]:"Bucket"}]},ad={[cn]:"Bucket"},ae={[cl]:m,[cm]:[{[cn]:"Endpoint"}],[co]:"url"},af={[cl]:e,[cm]:[{[cl]:i,[cm]:[{[cn]:"url"},"isIp"]},!0]},ag={[cn]:"url"},ah={[cl]:"uriEncode",[cm]:[ad],[co]:"uri_encoded_bucket"},ai={[cr]:"S3Express",[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:"s3express",[cv]:"{Region}"}]},aj={},ak={[cl]:q,[cm]:[ad,!1]},al={[f]:"S3Express bucket name is not a valid virtual hostable name.",[cj]:f},am={[cr]:"S3Express",[cs]:[{[ct]:!0,[j]:"sigv4-s3express",[cu]:"s3express",[cv]:"{Region}"}]},an={[cl]:d,[cm]:[{[cn]:"UseS3ExpressControlEndpoint"}]},ao={[cl]:e,[cm]:[{[cn]:"UseS3ExpressControlEndpoint"},!0]},ap={[cl]:s,[cm]:[Z]},aq={[f]:"Unrecognized S3Express bucket name format.",[cj]:f},ar={[cl]:s,[cm]:[ac]},as={[cn]:u},at={[ck]:[ap],[f]:"Expected a endpoint to be specified but no endpoint was found",[cj]:f},au={[cs]:[{[ct]:!0,[j]:z,[cu]:A,[cx]:["*"]},{[ct]:!0,[j]:"sigv4",[cu]:A,[cv]:"{Region}"}]},av={[cl]:e,[cm]:[{[cn]:"ForcePathStyle"},!1]},aw={[cn]:"ForcePathStyle"},ax={[cl]:e,[cm]:[{[cn]:"Accelerate"},!1]},ay={[cl]:h,[cm]:[{[cn]:"Region"},"aws-global"]},az={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"us-east-1"}]},aA={[cl]:s,[cm]:[ay]},aB={[cl]:e,[cm]:[{[cn]:"UseGlobalEndpoint"},!0]},aC={[cp]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:{[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"{Region}"}]},[cw]:{}},aD={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"{Region}"}]},aE={[cl]:e,[cm]:[{[cn]:"UseGlobalEndpoint"},!1]},aF={[cl]:e,[cm]:[{[cn]:"UseDualStack"},!1]},aG={[cp]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aH={[cl]:e,[cm]:[{[cn]:"UseFIPS"},!1]},aI={[cp]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aJ={[cp]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aK={[cl]:e,[cm]:[{[cl]:i,[cm]:[ag,"isIp"]},!1]},aL={[cp]:C,[cq]:aD,[cw]:{}},aM={[cp]:r,[cq]:aD,[cw]:{}},aN={[o]:aM,[cj]:o},aO={[cp]:D,[cq]:aD,[cw]:{}},aP={[cp]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aQ={[f]:"Invalid region: region was not a valid DNS name.",[cj]:f},aR={[cn]:G},aS={[cn]:H},aT={[cl]:i,[cm]:[aR,"service"]},aU={[cn]:L},aV={[ck]:[Y],[f]:"S3 Object Lambda does not support Dual-stack",[cj]:f},aW={[ck]:[W],[f]:"S3 Object Lambda does not support S3 Accelerate",[cj]:f},aX={[ck]:[{[cl]:d,[cm]:[{[cn]:"DisableAccessPoints"}]},{[cl]:e,[cm]:[{[cn]:"DisableAccessPoints"},!0]}],[f]:"Access points are not supported for this operation",[cj]:f},aY={[ck]:[{[cl]:d,[cm]:[{[cn]:"UseArnRegion"}]},{[cl]:e,[cm]:[{[cn]:"UseArnRegion"},!1]},{[cl]:s,[cm]:[{[cl]:h,[cm]:[{[cl]:i,[cm]:[aR,"region"]},"{Region}"]}]}],[f]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[cj]:f},aZ={[cl]:i,[cm]:[{[cn]:"bucketPartition"},j]},ba={[cl]:i,[cm]:[aR,"accountId"]},bb={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:J,[cv]:"{bucketArn#region}"}]},bc={[f]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[cj]:f},bd={[f]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[cj]:f},be={[f]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[cj]:f},bf={[f]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[cj]:f},bg={[f]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[cj]:f},bh={[f]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[cj]:f},bi={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"{bucketArn#region}"}]},bj={[cs]:[{[ct]:!0,[j]:z,[cu]:A,[cx]:["*"]},{[ct]:!0,[j]:"sigv4",[cu]:A,[cv]:"{bucketArn#region}"}]},bk={[cl]:F,[cm]:[ad]},bl={[cp]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:aD,[cw]:{}},bm={[cp]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:aD,[cw]:{}},bn={[cp]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:aD,[cw]:{}},bo={[cp]:Q,[cq]:aD,[cw]:{}},bp={[cp]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:aD,[cw]:{}},bq={[cn]:"UseObjectLambdaEndpoint"},br={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:J,[cv]:"{Region}"}]},bs={[cp]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},bt={[cp]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},bu={[cp]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},bv={[cp]:t,[cq]:aD,[cw]:{}},bw={[cp]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},bx=[{[cn]:"Region"}],by=[{[cn]:"Endpoint"}],bz=[ad],bA=[Y],bB=[W],bC=[Z,ae],bD=[{[cl]:d,[cm]:[{[cn]:"DisableS3ExpressSessionAuth"}]},{[cl]:e,[cm]:[{[cn]:"DisableS3ExpressSessionAuth"},!0]}],bE=[af],bF=[ah],bG=[ak],bH=[X],bI=[{[cl]:k,[cm]:[ad,6,14,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,14,16,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bJ=[{[ck]:[X],[o]:{[cp]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com",[cq]:ai,[cw]:{}},[cj]:o},{[o]:{[cp]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com",[cq]:ai,[cw]:{}},[cj]:o}],bK=[{[cl]:k,[cm]:[ad,6,15,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,15,17,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bL=[{[cl]:k,[cm]:[ad,6,19,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,19,21,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bM=[{[cl]:k,[cm]:[ad,6,20,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,20,22,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bN=[{[cl]:k,[cm]:[ad,6,26,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,26,28,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bO=[{[ck]:[X],[o]:{[cp]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com",[cq]:am,[cw]:{}},[cj]:o},{[o]:{[cp]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com",[cq]:am,[cw]:{}},[cj]:o}],bP=[ac],bQ=[{[cl]:y,[cm]:[{[cn]:x},!1]}],bR=[{[cl]:h,[cm]:[{[cn]:v},"beta"]}],bS=["*"],bT=[aa],bU=[{[cl]:y,[cm]:[{[cn]:"Region"},!1]}],bV=[{[cl]:h,[cm]:[{[cn]:"Region"},"us-east-1"]}],bW=[{[cl]:h,[cm]:[aS,K]}],bX=[{[cl]:i,[cm]:[aR,"resourceId[1]"],[co]:L},{[cl]:s,[cm]:[{[cl]:h,[cm]:[aU,I]}]}],bY=[aR,"resourceId[1]"],bZ=[{[cl]:s,[cm]:[{[cl]:h,[cm]:[{[cl]:i,[cm]:[aR,"region"]},I]}]}],ca=[{[cl]:s,[cm]:[{[cl]:d,[cm]:[{[cl]:i,[cm]:[aR,"resourceId[2]"]}]}]}],cb=[aR,"resourceId[2]"],cc=[{[cl]:g,[cm]:[{[cl]:i,[cm]:[aR,"region"]}],[co]:"bucketPartition"}],cd=[{[cl]:h,[cm]:[aZ,{[cl]:i,[cm]:[{[cn]:"partitionResult"},j]}]}],ce=[{[cl]:y,[cm]:[{[cl]:i,[cm]:[aR,"region"]},!0]}],cf=[{[cl]:y,[cm]:[ba,!1]}],cg=[{[cl]:y,[cm]:[aU,!1]}],ch=[{[cl]:y,[cm]:[{[cn]:"Region"},!0]}],_data={version:"1.0",parameters:{Bucket:T,Region:T,UseFIPS:U,UseDualStack:U,Endpoint:T,ForcePathStyle:U,Accelerate:U,UseGlobalEndpoint:U,UseObjectLambdaEndpoint:V,Key:T,Prefix:T,CopySource:T,DisableAccessPoints:V,DisableMultiRegionAccessPoints:U,UseArnRegion:V,UseS3ExpressControlEndpoint:V,DisableS3ExpressSessionAuth:V},rules:[{[ck]:[{[cl]:d,[cm]:bx}],rules:[{[ck]:[W,X],error:"Accelerate cannot be used with FIPS",[cj]:f},{[ck]:[Y,Z],error:"Cannot set dual-stack in combination with a custom endpoint.",[cj]:f},{[ck]:[Z,X],error:"A custom endpoint cannot be combined with FIPS",[cj]:f},{[ck]:[Z,W],error:"A custom endpoint cannot be combined with S3 Accelerate",[cj]:f},{[ck]:[X,aa,ab],error:"Partition does not support FIPS",[cj]:f},{[ck]:[ac,{[cl]:k,[cm]:[ad,0,a,c],[co]:l},{[cl]:h,[cm]:[{[cn]:l},"--x-s3"]}],rules:[{[ck]:bA,error:"S3Express does not support Dual-stack.",[cj]:f},{[ck]:bB,error:"S3Express does not support S3 Accelerate.",[cj]:f},{[ck]:bC,rules:[{[ck]:bD,rules:[{[ck]:bE,rules:[{[ck]:bF,rules:[{endpoint:{[cp]:n,[cq]:ai,[cw]:aj},[cj]:o}],[cj]:p}],[cj]:p},{[ck]:bG,rules:[{endpoint:{[cp]:r,[cq]:ai,[cw]:aj},[cj]:o}],[cj]:p},al],[cj]:p},{[ck]:bE,rules:[{[ck]:bF,rules:[{endpoint:{[cp]:n,[cq]:am,[cw]:aj},[cj]:o}],[cj]:p}],[cj]:p},{[ck]:bG,rules:[{endpoint:{[cp]:r,[cq]:am,[cw]:aj},[cj]:o}],[cj]:p},al],[cj]:p},{[ck]:[an,ao],rules:[{[ck]:[ah,ap],rules:[{[ck]:bH,endpoint:{[cp]:"https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}",[cq]:ai,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}",[cq]:ai,[cw]:aj},[cj]:o}],[cj]:p}],[cj]:p},{[ck]:bG,rules:[{[ck]:bD,rules:[{[ck]:bI,rules:bJ,[cj]:p},{[ck]:bK,rules:bJ,[cj]:p},{[ck]:bL,rules:bJ,[cj]:p},{[ck]:bM,rules:bJ,[cj]:p},{[ck]:bN,rules:bJ,[cj]:p},aq],[cj]:p},{[ck]:bI,rules:bO,[cj]:p},{[ck]:bK,rules:bO,[cj]:p},{[ck]:bL,rules:bO,[cj]:p},{[ck]:bM,rules:bO,[cj]:p},{[ck]:bN,rules:bO,[cj]:p},aq],[cj]:p},al],[cj]:p},{[ck]:[ar,an,ao],rules:[{[ck]:bC,endpoint:{[cp]:t,[cq]:ai,[cw]:aj},[cj]:o},{[ck]:bH,endpoint:{[cp]:"https://s3express-control-fips.{Region}.amazonaws.com",[cq]:ai,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://s3express-control.{Region}.amazonaws.com",[cq]:ai,[cw]:aj},[cj]:o}],[cj]:p},{[ck]:[ac,{[cl]:k,[cm]:[ad,49,50,c],[co]:u},{[cl]:k,[cm]:[ad,8,12,c],[co]:v},{[cl]:k,[cm]:[ad,0,7,c],[co]:w},{[cl]:k,[cm]:[ad,32,49,c],[co]:x},{[cl]:g,[cm]:bx,[co]:"regionPartition"},{[cl]:h,[cm]:[{[cn]:w},"--op-s3"]}],rules:[{[ck]:bQ,rules:[{[ck]:[{[cl]:h,[cm]:[as,"e"]}],rules:[{[ck]:bR,rules:[at,{[ck]:bC,endpoint:{[cp]:"https://{Bucket}.ec2.{url#authority}",[cq]:au,[cw]:aj},[cj]:o}],[cj]:p},{endpoint:{[cp]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cq]:au,[cw]:aj},[cj]:o}],[cj]:p},{[ck]:[{[cl]:h,[cm]:[as,"o"]}],rules:[{[ck]:bR,rules:[at,{[ck]:bC,endpoint:{[cp]:"https://{Bucket}.op-{outpostId}.{url#authority}",[cq]:au,[cw]:aj},[cj]:o}],[cj]:p},{endpoint:{[cp]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cq]:au,[cw]:aj},[cj]:o}],[cj]:p},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[cj]:f}],[cj]:p},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[cj]:f}],[cj]:p},{[ck]:bP,rules:[{[ck]:[Z,{[cl]:s,[cm]:[{[cl]:d,[cm]:[{[cl]:m,[cm]:by}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[cj]:f},{[ck]:[av,ak],rules:[{[ck]:bT,rules:[{[ck]:bU,rules:[{[ck]:[W,ab],error:"S3 Accelerate cannot be used in this region",[cj]:f},{[ck]:[Y,X,ax,ap,ay],endpoint:{[cp]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,X,ax,ap,aA,aB],rules:[{endpoint:aC,[cj]:o}],[cj]:p},{[ck]:[Y,X,ax,ap,aA,aE],endpoint:aC,[cj]:o},{[ck]:[aF,X,ax,ap,ay],endpoint:{[cp]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,X,ax,ap,aA,aB],rules:[{endpoint:aG,[cj]:o}],[cj]:p},{[ck]:[aF,X,ax,ap,aA,aE],endpoint:aG,[cj]:o},{[ck]:[Y,aH,W,ap,ay],endpoint:{[cp]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,aH,W,ap,aA,aB],rules:[{endpoint:aI,[cj]:o}],[cj]:p},{[ck]:[Y,aH,W,ap,aA,aE],endpoint:aI,[cj]:o},{[ck]:[Y,aH,ax,ap,ay],endpoint:{[cp]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,aH,ax,ap,aA,aB],rules:[{endpoint:aJ,[cj]:o}],[cj]:p},{[ck]:[Y,aH,ax,ap,aA,aE],endpoint:aJ,[cj]:o},{[ck]:[aF,aH,ax,Z,ae,af,ay],endpoint:{[cp]:C,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,aH,ax,Z,ae,aK,ay],endpoint:{[cp]:r,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,aH,ax,Z,ae,af,aA,aB],rules:[{[ck]:bV,endpoint:aL,[cj]:o},{endpoint:aL,[cj]:o}],[cj]:p},{[ck]:[aF,aH,ax,Z,ae,aK,aA,aB],rules:[{[ck]:bV,endpoint:aM,[cj]:o},aN],[cj]:p},{[ck]:[aF,aH,ax,Z,ae,af,aA,aE],endpoint:aL,[cj]:o},{[ck]:[aF,aH,ax,Z,ae,aK,aA,aE],endpoint:aM,[cj]:o},{[ck]:[aF,aH,W,ap,ay],endpoint:{[cp]:D,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,aH,W,ap,aA,aB],rules:[{[ck]:bV,endpoint:aO,[cj]:o},{endpoint:aO,[cj]:o}],[cj]:p},{[ck]:[aF,aH,W,ap,aA,aE],endpoint:aO,[cj]:o},{[ck]:[aF,aH,ax,ap,ay],endpoint:{[cp]:E,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,aH,ax,ap,aA,aB],rules:[{[ck]:bV,endpoint:{[cp]:E,[cq]:aD,[cw]:aj},[cj]:o},{endpoint:aP,[cj]:o}],[cj]:p},{[ck]:[aF,aH,ax,ap,aA,aE],endpoint:aP,[cj]:o}],[cj]:p},aQ],[cj]:p}],[cj]:p},{[ck]:[Z,ae,{[cl]:h,[cm]:[{[cl]:i,[cm]:[ag,"scheme"]},"http"]},{[cl]:q,[cm]:[ad,c]},av,aH,aF,ax],rules:[{[ck]:bT,rules:[{[ck]:bU,rules:[aN],[cj]:p},aQ],[cj]:p}],[cj]:p},{[ck]:[av,{[cl]:F,[cm]:bz,[co]:G}],rules:[{[ck]:[{[cl]:i,[cm]:[aR,"resourceId[0]"],[co]:H},{[cl]:s,[cm]:[{[cl]:h,[cm]:[aS,I]}]}],rules:[{[ck]:[{[cl]:h,[cm]:[aT,J]}],rules:[{[ck]:bW,rules:[{[ck]:bX,rules:[aV,aW,{[ck]:bZ,rules:[aX,{[ck]:ca,rules:[aY,{[ck]:cc,rules:[{[ck]:bT,rules:[{[ck]:cd,rules:[{[ck]:ce,rules:[{[ck]:[{[cl]:h,[cm]:[ba,I]}],error:"Invalid ARN: Missing account id",[cj]:f},{[ck]:cf,rules:[{[ck]:cg,rules:[{[ck]:bC,endpoint:{[cp]:M,[cq]:bb,[cw]:aj},[cj]:o},{[ck]:bH,endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bb,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bb,[cw]:aj},[cj]:o}],[cj]:p},bc],[cj]:p},bd],[cj]:p},be],[cj]:p},bf],[cj]:p}],[cj]:p}],[cj]:p},bg],[cj]:p},{error:"Invalid ARN: bucket ARN is missing a region",[cj]:f}],[cj]:p},bh],[cj]:p},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[cj]:f}],[cj]:p},{[ck]:bW,rules:[{[ck]:bX,rules:[{[ck]:bZ,rules:[{[ck]:bW,rules:[{[ck]:bZ,rules:[aX,{[ck]:ca,rules:[aY,{[ck]:cc,rules:[{[ck]:bT,rules:[{[ck]:[{[cl]:h,[cm]:[aZ,"{partitionResult#name}"]}],rules:[{[ck]:ce,rules:[{[ck]:[{[cl]:h,[cm]:[aT,B]}],rules:[{[ck]:cf,rules:[{[ck]:cg,rules:[{[ck]:bB,error:"Access Points do not support S3 Accelerate",[cj]:f},{[ck]:[X,Y],endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bi,[cw]:aj},[cj]:o},{[ck]:[X,aF],endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bi,[cw]:aj},[cj]:o},{[ck]:[aH,Y],endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bi,[cw]:aj},[cj]:o},{[ck]:[aH,aF,Z,ae],endpoint:{[cp]:M,[cq]:bi,[cw]:aj},[cj]:o},{[ck]:[aH,aF],endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bi,[cw]:aj},[cj]:o}],[cj]:p},bc],[cj]:p},bd],[cj]:p},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[cj]:f}],[cj]:p},be],[cj]:p},bf],[cj]:p}],[cj]:p}],[cj]:p},bg],[cj]:p}],[cj]:p}],[cj]:p},{[ck]:[{[cl]:y,[cm]:[aU,c]}],rules:[{[ck]:bA,error:"S3 MRAP does not support dual-stack",[cj]:f},{[ck]:bH,error:"S3 MRAP does not support FIPS",[cj]:f},{[ck]:bB,error:"S3 MRAP does not support S3 Accelerate",[cj]:f},{[ck]:[{[cl]:e,[cm]:[{[cn]:"DisableMultiRegionAccessPoints"},c]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[cj]:f},{[ck]:[{[cl]:g,[cm]:bx,[co]:N}],rules:[{[ck]:[{[cl]:h,[cm]:[{[cl]:i,[cm]:[{[cn]:N},j]},{[cl]:i,[cm]:[aR,"partition"]}]}],rules:[{endpoint:{[cp]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[cq]:{[cs]:[{[ct]:c,name:z,[cu]:B,[cx]:bS}]},[cw]:aj},[cj]:o}],[cj]:p},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[cj]:f}],[cj]:p}],[cj]:p},{error:"Invalid Access Point Name",[cj]:f}],[cj]:p},bh],[cj]:p},{[ck]:[{[cl]:h,[cm]:[aT,A]}],rules:[{[ck]:bA,error:"S3 Outposts does not support Dual-stack",[cj]:f},{[ck]:bH,error:"S3 Outposts does not support FIPS",[cj]:f},{[ck]:bB,error:"S3 Outposts does not support S3 Accelerate",[cj]:f},{[ck]:[{[cl]:d,[cm]:[{[cl]:i,[cm]:[aR,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[cj]:f},{[ck]:[{[cl]:i,[cm]:bY,[co]:x}],rules:[{[ck]:bQ,rules:[aY,{[ck]:cc,rules:[{[ck]:bT,rules:[{[ck]:cd,rules:[{[ck]:ce,rules:[{[ck]:cf,rules:[{[ck]:[{[cl]:i,[cm]:cb,[co]:O}],rules:[{[ck]:[{[cl]:i,[cm]:[aR,"resourceId[3]"],[co]:L}],rules:[{[ck]:[{[cl]:h,[cm]:[{[cn]:O},K]}],rules:[{[ck]:bC,endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[cq]:bj,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bj,[cw]:aj},[cj]:o}],[cj]:p},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[cj]:f}],[cj]:p},{error:"Invalid ARN: expected an access point name",[cj]:f}],[cj]:p},{error:"Invalid ARN: Expected a 4-component resource",[cj]:f}],[cj]:p},bd],[cj]:p},be],[cj]:p},bf],[cj]:p}],[cj]:p}],[cj]:p},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[cj]:f}],[cj]:p},{error:"Invalid ARN: The Outpost Id was not set",[cj]:f}],[cj]:p},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[cj]:f}],[cj]:p},{error:"Invalid ARN: No ARN type specified",[cj]:f}],[cj]:p},{[ck]:[{[cl]:k,[cm]:[ad,0,4,b],[co]:P},{[cl]:h,[cm]:[{[cn]:P},"arn:"]},{[cl]:s,[cm]:[{[cl]:d,[cm]:[bk]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[cj]:f},{[ck]:[{[cl]:e,[cm]:[aw,c]},bk],error:"Path-style addressing cannot be used with ARN buckets",[cj]:f},{[ck]:bF,rules:[{[ck]:bT,rules:[{[ck]:[ax],rules:[{[ck]:[Y,ap,X,ay],endpoint:{[cp]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,ap,X,aA,aB],rules:[{endpoint:bl,[cj]:o}],[cj]:p},{[ck]:[Y,ap,X,aA,aE],endpoint:bl,[cj]:o},{[ck]:[aF,ap,X,ay],endpoint:{[cp]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,ap,X,aA,aB],rules:[{endpoint:bm,[cj]:o}],[cj]:p},{[ck]:[aF,ap,X,aA,aE],endpoint:bm,[cj]:o},{[ck]:[Y,ap,aH,ay],endpoint:{[cp]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,ap,aH,aA,aB],rules:[{endpoint:bn,[cj]:o}],[cj]:p},{[ck]:[Y,ap,aH,aA,aE],endpoint:bn,[cj]:o},{[ck]:[aF,Z,ae,aH,ay],endpoint:{[cp]:Q,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,Z,ae,aH,aA,aB],rules:[{[ck]:bV,endpoint:bo,[cj]:o},{endpoint:bo,[cj]:o}],[cj]:p},{[ck]:[aF,Z,ae,aH,aA,aE],endpoint:bo,[cj]:o},{[ck]:[aF,ap,aH,ay],endpoint:{[cp]:R,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,ap,aH,aA,aB],rules:[{[ck]:bV,endpoint:{[cp]:R,[cq]:aD,[cw]:aj},[cj]:o},{endpoint:bp,[cj]:o}],[cj]:p},{[ck]:[aF,ap,aH,aA,aE],endpoint:bp,[cj]:o}],[cj]:p},{error:"Path-style addressing cannot be used with S3 Accelerate",[cj]:f}],[cj]:p}],[cj]:p}],[cj]:p},{[ck]:[{[cl]:d,[cm]:[bq]},{[cl]:e,[cm]:[bq,c]}],rules:[{[ck]:bT,rules:[{[ck]:ch,rules:[aV,aW,{[ck]:bC,endpoint:{[cp]:t,[cq]:br,[cw]:aj},[cj]:o},{[ck]:bH,endpoint:{[cp]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[cq]:br,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[cq]:br,[cw]:aj},[cj]:o}],[cj]:p},aQ],[cj]:p}],[cj]:p},{[ck]:[ar],rules:[{[ck]:bT,rules:[{[ck]:ch,rules:[{[ck]:[X,Y,ap,ay],endpoint:{[cp]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[X,Y,ap,aA,aB],rules:[{endpoint:bs,[cj]:o}],[cj]:p},{[ck]:[X,Y,ap,aA,aE],endpoint:bs,[cj]:o},{[ck]:[X,aF,ap,ay],endpoint:{[cp]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[X,aF,ap,aA,aB],rules:[{endpoint:bt,[cj]:o}],[cj]:p},{[ck]:[X,aF,ap,aA,aE],endpoint:bt,[cj]:o},{[ck]:[aH,Y,ap,ay],endpoint:{[cp]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aH,Y,ap,aA,aB],rules:[{endpoint:bu,[cj]:o}],[cj]:p},{[ck]:[aH,Y,ap,aA,aE],endpoint:bu,[cj]:o},{[ck]:[aH,aF,Z,ae,ay],endpoint:{[cp]:t,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aH,aF,Z,ae,aA,aB],rules:[{[ck]:bV,endpoint:bv,[cj]:o},{endpoint:bv,[cj]:o}],[cj]:p},{[ck]:[aH,aF,Z,ae,aA,aE],endpoint:bv,[cj]:o},{[ck]:[aH,aF,ap,ay],endpoint:{[cp]:S,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aH,aF,ap,aA,aB],rules:[{[ck]:bV,endpoint:{[cp]:S,[cq]:aD,[cw]:aj},[cj]:o},{endpoint:bw,[cj]:o}],[cj]:p},{[ck]:[aH,aF,ap,aA,aE],endpoint:bw,[cj]:o}],[cj]:p},aQ],[cj]:p}],[cj]:p}],[cj]:p},{error:"A region must be set when sending requests to S3.",[cj]:f}]},ruleSet=_data,cache=new EndpointCache({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),defaultEndpointResolver=(Ra,qa={})=>cache.get(Ra,()=>resolveEndpoint(ruleSet,{endpointParams:Ra,logger:qa.logger}));customEndpointFunctions.aws=awsEndpointFunctions;const createEndpointRuleSetHttpAuthSchemeParametersProvider=Ra=>async(qa,nd,od)=>{var pd,fd,md;if(!od)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const ld=await Ra(qa,nd,od),ud=(md=(fd=(pd=getSmithyContext(nd))==null?void 0:pd.commandInstance)==null?void 0:fd.constructor)==null?void 0:md.getEndpointParameterInstructions;if(!ud)throw new Error(`getEndpointParameterInstructions() is not defined on \`${nd.commandName}\``);const dd=await resolveParams(od,{getEndpointParameterInstructions:ud},qa);return Object.assign(ld,dd)},_defaultS3HttpAuthSchemeParametersProvider=async(Ra,qa,nd)=>({operation:getSmithyContext(qa).operation,region:await normalizeProvider$1(Ra.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),defaultS3HttpAuthSchemeParametersProvider=createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultS3HttpAuthSchemeParametersProvider);function createAwsAuthSigv4HttpAuthOption(Ra){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:Ra.region},propertiesExtractor:(qa,nd)=>({signingProperties:{config:qa,context:nd}})}}function createAwsAuthSigv4aHttpAuthOption(Ra){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:Ra.region},propertiesExtractor:(qa,nd)=>({signingProperties:{config:qa,context:nd}})}}const createEndpointRuleSetHttpAuthSchemeProvider=(Ra,qa,nd)=>ld=>{var fd;const dd=(fd=Ra(ld).properties)==null?void 0:fd.authSchemes;if(!dd)return qa(ld);const pd=[];for(const md of dd){const{name:vd,properties:Ad={},...Nd}=md,Od=vd.toLowerCase();vd!==Od&&console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${vd}\` to \`${Od}\``);let kd;if(Od==="sigv4a"){if(kd="aws.auth#sigv4a",dd.find(Fd=>{const jd=Fd.name.toLowerCase();return jd!=="sigv4a"&&jd.startsWith("sigv4")}))continue}else if(Od.startsWith("sigv4"))kd="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${Od}\``);const Ld=nd[kd];if(!Ld)throw new Error(`Could not find HttpAuthOption create function for \`${kd}\``);const Gd=Ld(ld);Gd.schemeId=kd,Gd.signingProperties={...Gd.signingProperties||{},...Nd,...Ad},pd.push(Gd)}return pd},_defaultS3HttpAuthSchemeProvider=Ra=>{const qa=[];switch(Ra.operation){default:qa.push(createAwsAuthSigv4HttpAuthOption(Ra)),qa.push(createAwsAuthSigv4aHttpAuthOption(Ra))}return qa},defaultS3HttpAuthSchemeProvider=createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver,_defaultS3HttpAuthSchemeProvider,{"aws.auth#sigv4":createAwsAuthSigv4HttpAuthOption,"aws.auth#sigv4a":createAwsAuthSigv4aHttpAuthOption}),resolveHttpAuthSchemeConfig=Ra=>{const qa=resolveAwsSdkSigV4Config(Ra);return{...resolveAwsSdkSigV4AConfig(qa)}},resolveClientEndpointParameters=Ra=>({...Ra,useFipsEndpoint:Ra.useFipsEndpoint??!1,useDualstackEndpoint:Ra.useDualstackEndpoint??!1,forcePathStyle:Ra.forcePathStyle??!1,useAccelerateEndpoint:Ra.useAccelerateEndpoint??!1,useGlobalEndpoint:Ra.useGlobalEndpoint??!1,disableMultiregionAccessPoints:Ra.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"}),commonParams={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class S3ServiceException extends ServiceException{constructor(qa){super(qa),Object.setPrototypeOf(this,S3ServiceException.prototype)}}class NoSuchUpload extends S3ServiceException{constructor(qa){super({name:"NoSuchUpload",$fault:"client",...qa}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,NoSuchUpload.prototype)}}class ObjectNotInActiveTierError extends S3ServiceException{constructor(qa){super({name:"ObjectNotInActiveTierError",$fault:"client",...qa}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,ObjectNotInActiveTierError.prototype)}}class BucketAlreadyExists extends S3ServiceException{constructor(qa){super({name:"BucketAlreadyExists",$fault:"client",...qa}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,BucketAlreadyExists.prototype)}}class BucketAlreadyOwnedByYou extends S3ServiceException{constructor(qa){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...qa}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,BucketAlreadyOwnedByYou.prototype)}}class NoSuchBucket extends S3ServiceException{constructor(qa){super({name:"NoSuchBucket",$fault:"client",...qa}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,NoSuchBucket.prototype)}}var AnalyticsFilter;(function(Ra){Ra.visit=(qa,nd)=>qa.Prefix!==void 0?nd.Prefix(qa.Prefix):qa.Tag!==void 0?nd.Tag(qa.Tag):qa.And!==void 0?nd.And(qa.And):nd._(qa.$unknown[0],qa.$unknown[1])})(AnalyticsFilter||(AnalyticsFilter={}));var MetricsFilter;(function(Ra){Ra.visit=(qa,nd)=>qa.Prefix!==void 0?nd.Prefix(qa.Prefix):qa.Tag!==void 0?nd.Tag(qa.Tag):qa.AccessPointArn!==void 0?nd.AccessPointArn(qa.AccessPointArn):qa.And!==void 0?nd.And(qa.And):nd._(qa.$unknown[0],qa.$unknown[1])})(MetricsFilter||(MetricsFilter={}));class InvalidObjectState extends S3ServiceException{constructor(qa){super({name:"InvalidObjectState",$fault:"client",...qa}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,InvalidObjectState.prototype),this.StorageClass=qa.StorageClass,this.AccessTier=qa.AccessTier}}class NoSuchKey extends S3ServiceException{constructor(qa){super({name:"NoSuchKey",$fault:"client",...qa}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,NoSuchKey.prototype)}}class NotFound extends S3ServiceException{constructor(qa){super({name:"NotFound",$fault:"client",...qa}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,NotFound.prototype)}}const SessionCredentialsFilterSensitiveLog=Ra=>({...Ra,...Ra.SecretAccessKey&&{SecretAccessKey:SENSITIVE_STRING},...Ra.SessionToken&&{SessionToken:SENSITIVE_STRING}}),CreateSessionOutputFilterSensitiveLog=Ra=>({...Ra,...Ra.SSEKMSKeyId&&{SSEKMSKeyId:SENSITIVE_STRING},...Ra.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:SENSITIVE_STRING},...Ra.Credentials&&{Credentials:SessionCredentialsFilterSensitiveLog(Ra.Credentials)}}),CreateSessionRequestFilterSensitiveLog=Ra=>({...Ra,...Ra.SSEKMSKeyId&&{SSEKMSKeyId:SENSITIVE_STRING},...Ra.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:SENSITIVE_STRING}});class EncryptionTypeMismatch extends S3ServiceException{constructor(qa){super({name:"EncryptionTypeMismatch",$fault:"client",...qa}),this.name="EncryptionTypeMismatch",this.$fault="client",Object.setPrototypeOf(this,EncryptionTypeMismatch.prototype)}}class InvalidRequest extends S3ServiceException{constructor(qa){super({name:"InvalidRequest",$fault:"client",...qa}),this.name="InvalidRequest",this.$fault="client",Object.setPrototypeOf(this,InvalidRequest.prototype)}}class InvalidWriteOffset extends S3ServiceException{constructor(qa){super({name:"InvalidWriteOffset",$fault:"client",...qa}),this.name="InvalidWriteOffset",this.$fault="client",Object.setPrototypeOf(this,InvalidWriteOffset.prototype)}}class TooManyParts extends S3ServiceException{constructor(qa){super({name:"TooManyParts",$fault:"client",...qa}),this.name="TooManyParts",this.$fault="client",Object.setPrototypeOf(this,TooManyParts.prototype)}}class ObjectAlreadyInActiveTierError extends S3ServiceException{constructor(qa){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...qa}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,ObjectAlreadyInActiveTierError.prototype)}}var SelectObjectContentEventStream;(function(Ra){Ra.visit=(qa,nd)=>qa.Records!==void 0?nd.Records(qa.Records):qa.Stats!==void 0?nd.Stats(qa.Stats):qa.Progress!==void 0?nd.Progress(qa.Progress):qa.Cont!==void 0?nd.Cont(qa.Cont):qa.End!==void 0?nd.End(qa.End):nd._(qa.$unknown[0],qa.$unknown[1])})(SelectObjectContentEventStream||(SelectObjectContentEventStream={}));const PutObjectOutputFilterSensitiveLog=Ra=>({...Ra,...Ra.SSEKMSKeyId&&{SSEKMSKeyId:SENSITIVE_STRING},...Ra.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:SENSITIVE_STRING}}),PutObjectRequestFilterSensitiveLog=Ra=>({...Ra,...Ra.SSECustomerKey&&{SSECustomerKey:SENSITIVE_STRING},...Ra.SSEKMSKeyId&&{SSEKMSKeyId:SENSITIVE_STRING},...Ra.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:SENSITIVE_STRING}}),se_CreateSessionCommand=async(Ra,qa)=>{const nd=requestBuilder(Ra,qa),od=map$2({},isSerializableHeaderValue,{[_xacsm]:Ra[_SM],[_xasse]:Ra[_SSE],[_xasseakki]:Ra[_SSEKMSKI],[_xassec]:Ra[_SSEKMSEC],[_xassebke]:[()=>isSerializableHeaderValue(Ra[_BKE]),()=>Ra[_BKE].toString()]});nd.bp("/"),nd.p("Bucket",()=>Ra.Bucket,"{Bucket}",!1);const ld=map$2({[_s]:[,""]});return nd.m("GET").h(od).q(ld).b(void 0),nd.build()},se_PutObjectCommand=async(Ra,qa)=>{const nd=requestBuilder(Ra,qa),od=map$2({},isSerializableHeaderValue,{[_ct]:Ra[_CT]||"application/octet-stream",[_xaa]:Ra[_ACL],[_cc]:Ra[_CC],[_cd]:Ra[_CD],[_ce]:Ra[_CE],[_cl]:Ra[_CL],[_cl_]:[()=>isSerializableHeaderValue(Ra[_CLo]),()=>Ra[_CLo].toString()],[_cm]:Ra[_CMD],[_xasca]:Ra[_CA],[_xacc]:Ra[_CCRC],[_xacc_]:Ra[_CCRCC],[_xacs]:Ra[_CSHA],[_xacs_]:Ra[_CSHAh],[_e]:[()=>isSerializableHeaderValue(Ra[_E]),()=>dateToUtcString(Ra[_E]).toString()],[_im]:Ra[_IM],[_inm]:Ra[_INM],[_xagfc]:Ra[_GFC],[_xagr]:Ra[_GR],[_xagra]:Ra[_GRACP],[_xagwa]:Ra[_GWACP],[_xawob]:[()=>isSerializableHeaderValue(Ra[_WOB]),()=>Ra[_WOB].toString()],[_xasse]:Ra[_SSE],[_xasc]:Ra[_SC],[_xawrl]:Ra[_WRL],[_xasseca]:Ra[_SSECA],[_xasseck]:Ra[_SSECK],[_xasseckm]:Ra[_SSECKMD],[_xasseakki]:Ra[_SSEKMSKI],[_xassec]:Ra[_SSEKMSEC],[_xassebke]:[()=>isSerializableHeaderValue(Ra[_BKE]),()=>Ra[_BKE].toString()],[_xarp]:Ra[_RP],[_xat]:Ra[_T],[_xaolm]:Ra[_OLM],[_xaolrud]:[()=>isSerializableHeaderValue(Ra[_OLRUD]),()=>serializeDateTime(Ra[_OLRUD]).toString()],[_xaollh]:Ra[_OLLHS],[_xaebo]:Ra[_EBO],...Ra.Metadata!==void 0&&Object.keys(Ra.Metadata).reduce((pd,fd)=>(pd[`x-amz-meta-${fd.toLowerCase()}`]=Ra.Metadata[fd],pd),{})});nd.bp("/{Key+}"),nd.p("Bucket",()=>Ra.Bucket,"{Bucket}",!1),nd.p("Key",()=>Ra.Key,"{Key+}",!0);const ld=map$2({[_xi]:[,"PutObject"]});let ud,dd;return Ra.Body!==void 0&&(dd=Ra.Body,ud=dd),nd.m("PUT").h(od).q(ld).b(ud),nd.build()},de_CreateSessionCommand=async(Ra,qa)=>{if(Ra.statusCode!==200&&Ra.statusCode>=300)return de_CommandError(Ra,qa);const nd=map$2({$metadata:deserializeMetadata(Ra),[_SSE]:[,Ra.headers[_xasse]],[_SSEKMSKI]:[,Ra.headers[_xasseakki]],[_SSEKMSEC]:[,Ra.headers[_xassec]],[_BKE]:[()=>Ra.headers[_xassebke]!==void 0,()=>parseBoolean(Ra.headers[_xassebke])]}),od=expectNonNull(expectObject(await parseXmlBody(Ra.body,qa)),"body");return od[_C]!=null&&(nd[_C]=de_SessionCredentials(od[_C])),nd},de_PutObjectCommand=async(Ra,qa)=>{if(Ra.statusCode!==200&&Ra.statusCode>=300)return de_CommandError(Ra,qa);const nd=map$2({$metadata:deserializeMetadata(Ra),[_Exp]:[,Ra.headers[_xae]],[_ETa]:[,Ra.headers[_eta]],[_CCRC]:[,Ra.headers[_xacc]],[_CCRCC]:[,Ra.headers[_xacc_]],[_CSHA]:[,Ra.headers[_xacs]],[_CSHAh]:[,Ra.headers[_xacs_]],[_SSE]:[,Ra.headers[_xasse]],[_VI]:[,Ra.headers[_xavi]],[_SSECA]:[,Ra.headers[_xasseca]],[_SSECKMD]:[,Ra.headers[_xasseckm]],[_SSEKMSKI]:[,Ra.headers[_xasseakki]],[_SSEKMSEC]:[,Ra.headers[_xassec]],[_BKE]:[()=>Ra.headers[_xassebke]!==void 0,()=>parseBoolean(Ra.headers[_xassebke])],[_Si]:[()=>Ra.headers[_xaos]!==void 0,()=>strictParseLong(Ra.headers[_xaos])],[_RC]:[,Ra.headers[_xarc]]});return await collectBody$1(Ra.body,qa),nd},de_CommandError=async(Ra,qa)=>{const nd={...Ra,body:await parseXmlErrorBody(Ra.body,qa)},od=loadRestXmlErrorCode(Ra,nd.body);switch(od){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await de_NoSuchUploadRes(nd);case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await de_ObjectNotInActiveTierErrorRes(nd);case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await de_BucketAlreadyExistsRes(nd);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await de_BucketAlreadyOwnedByYouRes(nd);case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await de_NoSuchBucketRes(nd);case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await de_InvalidObjectStateRes(nd);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await de_NoSuchKeyRes(nd);case"NotFound":case"com.amazonaws.s3#NotFound":throw await de_NotFoundRes(nd);case"EncryptionTypeMismatch":case"com.amazonaws.s3#EncryptionTypeMismatch":throw await de_EncryptionTypeMismatchRes(nd);case"InvalidRequest":case"com.amazonaws.s3#InvalidRequest":throw await de_InvalidRequestRes(nd);case"InvalidWriteOffset":case"com.amazonaws.s3#InvalidWriteOffset":throw await de_InvalidWriteOffsetRes(nd);case"TooManyParts":case"com.amazonaws.s3#TooManyParts":throw await de_TooManyPartsRes(nd);case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await de_ObjectAlreadyInActiveTierErrorRes(nd);default:const ld=nd.body;return throwDefaultError({output:Ra,parsedBody:ld,errorCode:od})}},throwDefaultError=withBaseException(S3ServiceException),de_BucketAlreadyExistsRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new BucketAlreadyExists({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_BucketAlreadyOwnedByYouRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new BucketAlreadyOwnedByYou({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_EncryptionTypeMismatchRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new EncryptionTypeMismatch({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_InvalidObjectStateRes=async(Ra,qa)=>{const nd=map$2({}),od=Ra.body;od[_AT]!=null&&(nd[_AT]=expectString(od[_AT])),od[_SC]!=null&&(nd[_SC]=expectString(od[_SC]));const ld=new InvalidObjectState({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(ld,Ra.body)},de_InvalidRequestRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new InvalidRequest({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_InvalidWriteOffsetRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new InvalidWriteOffset({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_NoSuchBucketRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new NoSuchBucket({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_NoSuchKeyRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new NoSuchKey({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_NoSuchUploadRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new NoSuchUpload({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_NotFoundRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new NotFound({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_ObjectAlreadyInActiveTierErrorRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new ObjectAlreadyInActiveTierError({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_ObjectNotInActiveTierErrorRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new ObjectNotInActiveTierError({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_TooManyPartsRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new TooManyParts({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_SessionCredentials=(Ra,qa)=>{const nd={};return Ra[_AKI]!=null&&(nd[_AKI]=expectString(Ra[_AKI])),Ra[_SAK]!=null&&(nd[_SAK]=expectString(Ra[_SAK])),Ra[_ST]!=null&&(nd[_ST]=expectString(Ra[_ST])),Ra[_Exp]!=null&&(nd[_Exp]=expectNonNull(parseRfc3339DateTimeWithOffset(Ra[_Exp]))),nd},deserializeMetadata=Ra=>({httpStatusCode:Ra.statusCode,requestId:Ra.headers["x-amzn-requestid"]??Ra.headers["x-amzn-request-id"]??Ra.headers["x-amz-request-id"],extendedRequestId:Ra.headers["x-amz-id-2"],cfId:Ra.headers["x-amz-cf-id"]}),_ACL="ACL",_AKI="AccessKeyId",_AT="AccessTier",_BKE="BucketKeyEnabled",_C="Credentials",_CA="ChecksumAlgorithm",_CC="CacheControl",_CCRC="ChecksumCRC32",_CCRCC="ChecksumCRC32C",_CD="ContentDisposition",_CE="ContentEncoding",_CL="ContentLanguage",_CLo="ContentLength",_CMD="ContentMD5",_CSHA="ChecksumSHA1",_CSHAh="ChecksumSHA256",_CT="ContentType",_E="Expires",_EBO="ExpectedBucketOwner",_ETa="ETag",_Exp="Expiration",_GFC="GrantFullControl",_GR="GrantRead",_GRACP="GrantReadACP",_GWACP="GrantWriteACP",_IM="IfMatch",_INM="IfNoneMatch",_OLLHS="ObjectLockLegalHoldStatus",_OLM="ObjectLockMode",_OLRUD="ObjectLockRetainUntilDate",_RC="RequestCharged",_RP="RequestPayer",_SAK="SecretAccessKey",_SC="StorageClass",_SM="SessionMode",_SSE="ServerSideEncryption",_SSECA="SSECustomerAlgorithm",_SSECK="SSECustomerKey",_SSECKMD="SSECustomerKeyMD5",_SSEKMSEC="SSEKMSEncryptionContext",_SSEKMSKI="SSEKMSKeyId",_ST="SessionToken",_Si="Size",_T="Tagging",_VI="VersionId",_WOB="WriteOffsetBytes",_WRL="WebsiteRedirectLocation",_cc="cache-control",_cd="content-disposition",_ce="content-encoding",_cl="content-language",_cl_="content-length",_cm="content-md5",_ct="content-type",_e="expires",_eta="etag",_im="if-match",_inm="if-none-match",_s="session",_xaa="x-amz-acl",_xacc="x-amz-checksum-crc32",_xacc_="x-amz-checksum-crc32c",_xacs="x-amz-checksum-sha1",_xacs_="x-amz-checksum-sha256",_xacsm="x-amz-create-session-mode",_xae="x-amz-expiration",_xaebo="x-amz-expected-bucket-owner",_xagfc="x-amz-grant-full-control",_xagr="x-amz-grant-read",_xagra="x-amz-grant-read-acp",_xagwa="x-amz-grant-write-acp",_xaollh="x-amz-object-lock-legal-hold",_xaolm="x-amz-object-lock-mode",_xaolrud="x-amz-object-lock-retain-until-date",_xaos="x-amz-object-size",_xarc="x-amz-request-charged",_xarp="x-amz-request-payer",_xasc="x-amz-storage-class",_xasca="x-amz-sdk-checksum-algorithm",_xasse="x-amz-server-side-encryption",_xasseakki="x-amz-server-side-encryption-aws-kms-key-id",_xassebke="x-amz-server-side-encryption-bucket-key-enabled",_xassec="x-amz-server-side-encryption-context",_xasseca="x-amz-server-side-encryption-customer-algorithm",_xasseck="x-amz-server-side-encryption-customer-key",_xasseckm="x-amz-server-side-encryption-customer-key-md5",_xat="x-amz-tagging",_xavi="x-amz-version-id",_xawob="x-amz-write-offset-bytes",_xawrl="x-amz-website-redirect-location",_xi="x-id";class CreateSessionCommand extends Command.classBuilder().ep({...commonParams,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(qa,nd,od,ld){return[getSerdePlugin(od,this.serialize,this.deserialize),getEndpointPlugin(od,qa.getEndpointParameterInstructions()),getThrow200ExceptionsPlugin(od)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").f(CreateSessionRequestFilterSensitiveLog,CreateSessionOutputFilterSensitiveLog).ser(se_CreateSessionCommand).de(de_CreateSessionCommand).build(){}const name="@aws-sdk/client-s3",description="AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version="3.716.0",scripts={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && vitest run -c vitest.config.browser.ts --mode development","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts --mode development && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts","test:watch":"yarn g:vitest watch"},main$1="./dist-cjs/index.js",types="./dist-types/index.d.ts",module$1="./dist-es/index.js",sideEffects=!1,dependencies={"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.716.0","@aws-sdk/client-sts":"3.716.0","@aws-sdk/core":"3.716.0","@aws-sdk/credential-provider-node":"3.716.0","@aws-sdk/middleware-bucket-endpoint":"3.714.0","@aws-sdk/middleware-expect-continue":"3.714.0","@aws-sdk/middleware-flexible-checksums":"3.716.0","@aws-sdk/middleware-host-header":"3.714.0","@aws-sdk/middleware-location-constraint":"3.714.0","@aws-sdk/middleware-logger":"3.714.0","@aws-sdk/middleware-recursion-detection":"3.714.0","@aws-sdk/middleware-sdk-s3":"3.716.0","@aws-sdk/middleware-ssec":"3.714.0","@aws-sdk/middleware-user-agent":"3.716.0","@aws-sdk/region-config-resolver":"3.714.0","@aws-sdk/signature-v4-multi-region":"3.716.0","@aws-sdk/types":"3.714.0","@aws-sdk/util-endpoints":"3.714.0","@aws-sdk/util-user-agent-browser":"3.714.0","@aws-sdk/util-user-agent-node":"3.716.0","@aws-sdk/xml-builder":"3.709.0","@smithy/config-resolver":"^3.0.13","@smithy/core":"^2.5.5","@smithy/eventstream-serde-browser":"^3.0.14","@smithy/eventstream-serde-config-resolver":"^3.0.11","@smithy/eventstream-serde-node":"^3.0.13","@smithy/fetch-http-handler":"^4.1.2","@smithy/hash-blob-browser":"^3.1.10","@smithy/hash-node":"^3.0.11","@smithy/hash-stream-node":"^3.1.10","@smithy/invalid-dependency":"^3.0.11","@smithy/md5-js":"^3.0.11","@smithy/middleware-content-length":"^3.0.13","@smithy/middleware-endpoint":"^3.2.6","@smithy/middleware-retry":"^3.0.31","@smithy/middleware-serde":"^3.0.11","@smithy/middleware-stack":"^3.0.11","@smithy/node-config-provider":"^3.1.12","@smithy/node-http-handler":"^3.3.2","@smithy/protocol-http":"^4.1.8","@smithy/smithy-client":"^3.5.1","@smithy/types":"^3.7.2","@smithy/url-parser":"^3.0.11","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.31","@smithy/util-defaults-mode-node":"^3.0.31","@smithy/util-endpoints":"^2.1.7","@smithy/util-middleware":"^3.0.11","@smithy/util-retry":"^3.0.11","@smithy/util-stream":"^3.3.2","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.2.0",tslib:"^2.6.2"},devDependencies={"@aws-sdk/signature-v4-crt":"3.716.0","@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines={node:">=16.0.0"},typesVersions={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files=["dist-*/**"],author={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license="Apache-2.0",browser={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},homepage="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"},packageInfo={name,description,version,scripts,main:main$1,types,module:module$1,sideEffects,dependencies,devDependencies,engines,typesVersions,files,author,license,browser,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage,repository},fromUtf8=Ra=>new TextEncoder().encode(Ra);function isEmptyData$1(Ra){return typeof Ra=="string"?Ra.length===0:Ra.byteLength===0}var SHA_1_HASH={name:"SHA-1"},SHA_1_HMAC_ALGO={name:"HMAC",hash:SHA_1_HASH},EMPTY_DATA_SHA_1=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);const fallbackWindow={};function locateWindow(){return typeof window<"u"?window:typeof self<"u"?self:fallbackWindow}var Sha1$1=function(){function Ra(qa){this.toHash=new Uint8Array(0),qa!==void 0&&(this.key=new Promise(function(nd,od){locateWindow().crypto.subtle.importKey("raw",convertToBuffer$1(qa),SHA_1_HMAC_ALGO,!1,["sign"]).then(nd,od)}),this.key.catch(function(){}))}return Ra.prototype.update=function(qa){if(!isEmptyData$1(qa)){var nd=convertToBuffer$1(qa),od=new Uint8Array(this.toHash.byteLength+nd.byteLength);od.set(this.toHash,0),od.set(nd,this.toHash.byteLength),this.toHash=od}},Ra.prototype.digest=function(){var qa=this;return this.key?this.key.then(function(nd){return locateWindow().crypto.subtle.sign(SHA_1_HMAC_ALGO,nd,qa.toHash).then(function(od){return new Uint8Array(od)})}):isEmptyData$1(this.toHash)?Promise.resolve(EMPTY_DATA_SHA_1):Promise.resolve().then(function(){return locateWindow().crypto.subtle.digest(SHA_1_HASH,qa.toHash)}).then(function(nd){return Promise.resolve(new Uint8Array(nd))})},Ra.prototype.reset=function(){this.toHash=new Uint8Array(0)},Ra}();function convertToBuffer$1(Ra){return typeof Ra=="string"?fromUtf8(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,Ra.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(Ra)}var subtleCryptoMethods=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function supportsWebCrypto(Ra){if(supportsSecureRandom(Ra)&&typeof Ra.crypto.subtle=="object"){var qa=Ra.crypto.subtle;return supportsSubtleCrypto(qa)}return!1}function supportsSecureRandom(Ra){if(typeof Ra=="object"&&typeof Ra.crypto=="object"){var qa=Ra.crypto.getRandomValues;return typeof qa=="function"}return!1}function supportsSubtleCrypto(Ra){return Ra&&subtleCryptoMethods.every(function(qa){return typeof Ra[qa]=="function"})}var Sha1=function(){function Ra(qa){if(supportsWebCrypto(locateWindow()))this.hash=new Sha1$1(qa);else throw new Error("SHA1 not supported")}return Ra.prototype.update=function(qa,nd){this.hash.update(convertToBuffer$2(qa))},Ra.prototype.digest=function(){return this.hash.digest()},Ra.prototype.reset=function(){this.hash.reset()},Ra}(),SHA_256_HASH={name:"SHA-256"},SHA_256_HMAC_ALGO={name:"HMAC",hash:SHA_256_HASH},EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),Sha256$2=function(){function Ra(qa){this.toHash=new Uint8Array(0),this.secret=qa,this.reset()}return Ra.prototype.update=function(qa){if(!isEmptyData$2(qa)){var nd=convertToBuffer$2(qa),od=new Uint8Array(this.toHash.byteLength+nd.byteLength);od.set(this.toHash,0),od.set(nd,this.toHash.byteLength),this.toHash=od}},Ra.prototype.digest=function(){var qa=this;return this.key?this.key.then(function(nd){return locateWindow().crypto.subtle.sign(SHA_256_HMAC_ALGO,nd,qa.toHash).then(function(od){return new Uint8Array(od)})}):isEmptyData$2(this.toHash)?Promise.resolve(EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return locateWindow().crypto.subtle.digest(SHA_256_HASH,qa.toHash)}).then(function(nd){return Promise.resolve(new Uint8Array(nd))})},Ra.prototype.reset=function(){var qa=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(nd,od){locateWindow().crypto.subtle.importKey("raw",convertToBuffer$2(qa.secret),SHA_256_HMAC_ALGO,!1,["sign"]).then(nd,od)}),this.key.catch(function(){}))},Ra}(),BLOCK_SIZE$1=64,DIGEST_LENGTH$1=32,KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),INIT$1=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],MAX_HASHABLE_LENGTH=Math.pow(2,53)-1,RawSha256=function(){function Ra(){this.state=Int32Array.from(INIT$1),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return Ra.prototype.update=function(qa){if(this.finished)throw new Error("Attempted to update an already finished hash.");var nd=0,od=qa.byteLength;if(this.bytesHashed+=od,this.bytesHashed*8>MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;od>0;)this.buffer[this.bufferLength++]=qa[nd++],od--,this.bufferLength===BLOCK_SIZE$1&&(this.hashBuffer(),this.bufferLength=0)},Ra.prototype.digest=function(){if(!this.finished){var qa=this.bytesHashed*8,nd=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),od=this.bufferLength;if(nd.setUint8(this.bufferLength++,128),od%BLOCK_SIZE$1>=BLOCK_SIZE$1-8){for(var ld=this.bufferLength;ld>>24&255,ud[ld*4+1]=this.state[ld]>>>16&255,ud[ld*4+2]=this.state[ld]>>>8&255,ud[ld*4+3]=this.state[ld]>>>0&255;return ud},Ra.prototype.hashBuffer=function(){for(var qa=this,nd=qa.buffer,od=qa.state,ld=od[0],ud=od[1],dd=od[2],pd=od[3],fd=od[4],md=od[5],vd=od[6],Ad=od[7],Nd=0;Nd>>17|Od<<15)^(Od>>>19|Od<<13)^Od>>>10;Od=this.temp[Nd-15];var Ld=(Od>>>7|Od<<25)^(Od>>>18|Od<<14)^Od>>>3;this.temp[Nd]=(kd+this.temp[Nd-7]|0)+(Ld+this.temp[Nd-16]|0)}var Gd=(((fd>>>6|fd<<26)^(fd>>>11|fd<<21)^(fd>>>25|fd<<7))+(fd&md^~fd&vd)|0)+(Ad+(KEY[Nd]+this.temp[Nd]|0)|0)|0,Ud=((ld>>>2|ld<<30)^(ld>>>13|ld<<19)^(ld>>>22|ld<<10))+(ld&ud^ld&dd^ud&dd)|0;Ad=vd,vd=md,md=fd,fd=pd+Gd|0,pd=dd,dd=ud,ud=ld,ld=Gd+Ud|0}od[0]+=ld,od[1]+=ud,od[2]+=dd,od[3]+=pd,od[4]+=fd,od[5]+=md,od[6]+=vd,od[7]+=Ad},Ra}(),Sha256$1=function(){function Ra(qa){this.secret=qa,this.hash=new RawSha256,this.reset()}return Ra.prototype.update=function(qa){if(!(isEmptyData$2(qa)||this.error))try{this.hash.update(convertToBuffer$2(qa))}catch(nd){this.error=nd}},Ra.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},Ra.prototype.digest=function(){return __awaiter$8(this,void 0,void 0,function(){return __generator$8(this,function(qa){return[2,this.digestSync()]})})},Ra.prototype.reset=function(){if(this.hash=new RawSha256,this.secret){this.outer=new RawSha256;var qa=bufferFromSecret(this.secret),nd=new Uint8Array(BLOCK_SIZE$1);nd.set(qa);for(var od=0;odBLOCK_SIZE$1){var nd=new RawSha256;nd.update(qa),qa=nd.digest()}var od=new Uint8Array(BLOCK_SIZE$1);return od.set(qa),od}var Sha256=function(){function Ra(qa){supportsWebCrypto(locateWindow())?this.hash=new Sha256$2(qa):this.hash=new Sha256$1(qa)}return Ra.prototype.update=function(qa,nd){this.hash.update(convertToBuffer$2(qa))},Ra.prototype.digest=function(){return this.hash.digest()},Ra.prototype.reset=function(){this.hash.reset()},Ra}();const BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Utils{static getFirstMatch(qa,nd){const od=nd.match(qa);return od&&od.length>0&&od[1]||""}static getSecondMatch(qa,nd){const od=nd.match(qa);return od&&od.length>1&&od[2]||""}static matchAndReturnConst(qa,nd,od){if(qa.test(nd))return od}static getWindowsVersionName(qa){switch(qa){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(qa){const nd=qa.split(".").splice(0,2).map(od=>parseInt(od,10)||0);if(nd.push(0),nd[0]===10)switch(nd[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(qa){const nd=qa.split(".").splice(0,2).map(od=>parseInt(od,10)||0);if(nd.push(0),!(nd[0]===1&&nd[1]<5)){if(nd[0]===1&&nd[1]<6)return"Cupcake";if(nd[0]===1&&nd[1]>=6)return"Donut";if(nd[0]===2&&nd[1]<2)return"Eclair";if(nd[0]===2&&nd[1]===2)return"Froyo";if(nd[0]===2&&nd[1]>2)return"Gingerbread";if(nd[0]===3)return"Honeycomb";if(nd[0]===4&&nd[1]<1)return"Ice Cream Sandwich";if(nd[0]===4&&nd[1]<4)return"Jelly Bean";if(nd[0]===4&&nd[1]>=4)return"KitKat";if(nd[0]===5)return"Lollipop";if(nd[0]===6)return"Marshmallow";if(nd[0]===7)return"Nougat";if(nd[0]===8)return"Oreo";if(nd[0]===9)return"Pie"}}static getVersionPrecision(qa){return qa.split(".").length}static compareVersions(qa,nd,od=!1){const ld=Utils.getVersionPrecision(qa),ud=Utils.getVersionPrecision(nd);let dd=Math.max(ld,ud),pd=0;const fd=Utils.map([qa,nd],md=>{const vd=dd-Utils.getVersionPrecision(md),Ad=md+new Array(vd+1).join(".0");return Utils.map(Ad.split("."),Nd=>new Array(20-Nd.length).join("0")+Nd).reverse()});for(od&&(pd=dd-Math.min(ld,ud)),dd-=1;dd>=pd;){if(fd[0][dd]>fd[1][dd])return 1;if(fd[0][dd]===fd[1][dd]){if(dd===pd)return 0;dd-=1}else if(fd[0][dd]{od[fd]=dd[fd]})}return qa}static getBrowserAlias(qa){return BROWSER_ALIASES_MAP[qa]}static getBrowserTypeByAlias(qa){return BROWSER_MAP[qa]||""}}const commonVersionIdentifier=/version\/(\d+(\.?_?\d+)+)/i,browsersList=[{test:[/googlebot/i],describe(Ra){const qa={name:"Googlebot"},nd=Utils.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/opera/i],describe(Ra){const qa={name:"Opera"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/opr\/|opios/i],describe(Ra){const qa={name:"Opera"},nd=Utils.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/SamsungBrowser/i],describe(Ra){const qa={name:"Samsung Internet for Android"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/Whale/i],describe(Ra){const qa={name:"NAVER Whale Browser"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/MZBrowser/i],describe(Ra){const qa={name:"MZ Browser"},nd=Utils.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/focus/i],describe(Ra){const qa={name:"Focus"},nd=Utils.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/swing/i],describe(Ra){const qa={name:"Swing"},nd=Utils.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/coast/i],describe(Ra){const qa={name:"Opera Coast"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(Ra){const qa={name:"Opera Touch"},nd=Utils.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/yabrowser/i],describe(Ra){const qa={name:"Yandex Browser"},nd=Utils.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/ucbrowser/i],describe(Ra){const qa={name:"UC Browser"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/Maxthon|mxios/i],describe(Ra){const qa={name:"Maxthon"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/epiphany/i],describe(Ra){const qa={name:"Epiphany"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/puffin/i],describe(Ra){const qa={name:"Puffin"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/sleipnir/i],describe(Ra){const qa={name:"Sleipnir"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/k-meleon/i],describe(Ra){const qa={name:"K-Meleon"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/micromessenger/i],describe(Ra){const qa={name:"WeChat"},nd=Utils.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/qqbrowser/i],describe(Ra){const qa={name:/qqbrowserlite/i.test(Ra)?"QQ Browser Lite":"QQ Browser"},nd=Utils.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/msie|trident/i],describe(Ra){const qa={name:"Internet Explorer"},nd=Utils.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/\sedg\//i],describe(Ra){const qa={name:"Microsoft Edge"},nd=Utils.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/edg([ea]|ios)/i],describe(Ra){const qa={name:"Microsoft Edge"},nd=Utils.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/vivaldi/i],describe(Ra){const qa={name:"Vivaldi"},nd=Utils.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/seamonkey/i],describe(Ra){const qa={name:"SeaMonkey"},nd=Utils.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/sailfish/i],describe(Ra){const qa={name:"Sailfish"},nd=Utils.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/silk/i],describe(Ra){const qa={name:"Amazon Silk"},nd=Utils.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/phantom/i],describe(Ra){const qa={name:"PhantomJS"},nd=Utils.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/slimerjs/i],describe(Ra){const qa={name:"SlimerJS"},nd=Utils.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(Ra){const qa={name:"BlackBerry"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/(web|hpw)[o0]s/i],describe(Ra){const qa={name:"WebOS Browser"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/bada/i],describe(Ra){const qa={name:"Bada"},nd=Utils.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/tizen/i],describe(Ra){const qa={name:"Tizen"},nd=Utils.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/qupzilla/i],describe(Ra){const qa={name:"QupZilla"},nd=Utils.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/firefox|iceweasel|fxios/i],describe(Ra){const qa={name:"Firefox"},nd=Utils.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/electron/i],describe(Ra){const qa={name:"Electron"},nd=Utils.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/MiuiBrowser/i],describe(Ra){const qa={name:"Miui"},nd=Utils.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/chromium/i],describe(Ra){const qa={name:"Chromium"},nd=Utils.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/chrome|crios|crmo/i],describe(Ra){const qa={name:"Chrome"},nd=Utils.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/GSA/i],describe(Ra){const qa={name:"Google Search"},nd=Utils.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test(Ra){const qa=!Ra.test(/like android/i),nd=Ra.test(/android/i);return qa&&nd},describe(Ra){const qa={name:"Android Browser"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/playstation 4/i],describe(Ra){const qa={name:"PlayStation 4"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/safari|applewebkit/i],describe(Ra){const qa={name:"Safari"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/.*/i],describe(Ra){const qa=/^(.*)\/(.*) /,nd=/^(.*)\/(.*)[ \t]\((.*)/,ld=Ra.search("\\(")!==-1?nd:qa;return{name:Utils.getFirstMatch(ld,Ra),version:Utils.getSecondMatch(ld,Ra)}}}],osParsersList=[{test:[/Roku\/DVP/],describe(Ra){const qa=Utils.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,Ra);return{name:OS_MAP.Roku,version:qa}}},{test:[/windows phone/i],describe(Ra){const qa=Utils.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,Ra);return{name:OS_MAP.WindowsPhone,version:qa}}},{test:[/windows /i],describe(Ra){const qa=Utils.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,Ra),nd=Utils.getWindowsVersionName(qa);return{name:OS_MAP.Windows,version:qa,versionName:nd}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(Ra){const qa={name:OS_MAP.iOS},nd=Utils.getSecondMatch(/(Version\/)(\d[\d.]+)/,Ra);return nd&&(qa.version=nd),qa}},{test:[/macintosh/i],describe(Ra){const qa=Utils.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,Ra).replace(/[_\s]/g,"."),nd=Utils.getMacOSVersionName(qa),od={name:OS_MAP.MacOS,version:qa};return nd&&(od.versionName=nd),od}},{test:[/(ipod|iphone|ipad)/i],describe(Ra){const qa=Utils.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,Ra).replace(/[_\s]/g,".");return{name:OS_MAP.iOS,version:qa}}},{test(Ra){const qa=!Ra.test(/like android/i),nd=Ra.test(/android/i);return qa&&nd},describe(Ra){const qa=Utils.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,Ra),nd=Utils.getAndroidVersionName(qa),od={name:OS_MAP.Android,version:qa};return nd&&(od.versionName=nd),od}},{test:[/(web|hpw)[o0]s/i],describe(Ra){const qa=Utils.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,Ra),nd={name:OS_MAP.WebOS};return qa&&qa.length&&(nd.version=qa),nd}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(Ra){const qa=Utils.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,Ra)||Utils.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,Ra)||Utils.getFirstMatch(/\bbb(\d+)/i,Ra);return{name:OS_MAP.BlackBerry,version:qa}}},{test:[/bada/i],describe(Ra){const qa=Utils.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,Ra);return{name:OS_MAP.Bada,version:qa}}},{test:[/tizen/i],describe(Ra){const qa=Utils.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,Ra);return{name:OS_MAP.Tizen,version:qa}}},{test:[/linux/i],describe(){return{name:OS_MAP.Linux}}},{test:[/CrOS/],describe(){return{name:OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe(Ra){const qa=Utils.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,Ra);return{name:OS_MAP.PlayStation4,version:qa}}}],platformParsersList=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(Ra){const qa=Utils.getFirstMatch(/(can-l01)/i,Ra)&&"Nova",nd={type:PLATFORMS_MAP.mobile,vendor:"Huawei"};return qa&&(nd.model=qa),nd}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:PLATFORMS_MAP.tablet}}},{test(Ra){const qa=Ra.test(/ipod|iphone/i),nd=Ra.test(/like (ipod|iphone)/i);return qa&&!nd},describe(Ra){const qa=Utils.getFirstMatch(/(ipod|iphone)/i,Ra);return{type:PLATFORMS_MAP.mobile,vendor:"Apple",model:qa}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:PLATFORMS_MAP.mobile}}},{test(Ra){return Ra.getBrowserName(!0)==="blackberry"},describe(){return{type:PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test(Ra){return Ra.getBrowserName(!0)==="bada"},describe(){return{type:PLATFORMS_MAP.mobile}}},{test(Ra){return Ra.getBrowserName()==="windows phone"},describe(){return{type:PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test(Ra){const qa=Number(String(Ra.getOSVersion()).split(".")[0]);return Ra.getOSName(!0)==="android"&&qa>=3},describe(){return{type:PLATFORMS_MAP.tablet}}},{test(Ra){return Ra.getOSName(!0)==="android"},describe(){return{type:PLATFORMS_MAP.mobile}}},{test(Ra){return Ra.getOSName(!0)==="macos"},describe(){return{type:PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test(Ra){return Ra.getOSName(!0)==="windows"},describe(){return{type:PLATFORMS_MAP.desktop}}},{test(Ra){return Ra.getOSName(!0)==="linux"},describe(){return{type:PLATFORMS_MAP.desktop}}},{test(Ra){return Ra.getOSName(!0)==="playstation 4"},describe(){return{type:PLATFORMS_MAP.tv}}},{test(Ra){return Ra.getOSName(!0)==="roku"},describe(){return{type:PLATFORMS_MAP.tv}}}],enginesParsersList=[{test(Ra){return Ra.getBrowserName(!0)==="microsoft edge"},describe(Ra){if(/\sedg\//i.test(Ra))return{name:ENGINE_MAP.Blink};const nd=Utils.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,Ra);return{name:ENGINE_MAP.EdgeHTML,version:nd}}},{test:[/trident/i],describe(Ra){const qa={name:ENGINE_MAP.Trident},nd=Utils.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test(Ra){return Ra.test(/presto/i)},describe(Ra){const qa={name:ENGINE_MAP.Presto},nd=Utils.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test(Ra){const qa=Ra.test(/gecko/i),nd=Ra.test(/like gecko/i);return qa&&!nd},describe(Ra){const qa={name:ENGINE_MAP.Gecko},nd=Utils.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe(Ra){const qa={name:ENGINE_MAP.WebKit},nd=Utils.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}}];class Parser{constructor(qa,nd=!1){if(qa==null||qa==="")throw new Error("UserAgent parameter can't be empty");this._ua=qa,this.parsedResult={},nd!==!0&&this.parse()}getUA(){return this._ua}test(qa){return qa.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const qa=Utils.find(browsersList,nd=>{if(typeof nd.test=="function")return nd.test(this);if(nd.test instanceof Array)return nd.test.some(od=>this.test(od));throw new Error("Browser's test function is not valid")});return qa&&(this.parsedResult.browser=qa.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(qa){return qa?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const qa=Utils.find(osParsersList,nd=>{if(typeof nd.test=="function")return nd.test(this);if(nd.test instanceof Array)return nd.test.some(od=>this.test(od));throw new Error("Browser's test function is not valid")});return qa&&(this.parsedResult.os=qa.describe(this.getUA())),this.parsedResult.os}getOSName(qa){const{name:nd}=this.getOS();return qa?String(nd).toLowerCase()||"":nd||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(qa=!1){const{type:nd}=this.getPlatform();return qa?String(nd).toLowerCase()||"":nd||""}parsePlatform(){this.parsedResult.platform={};const qa=Utils.find(platformParsersList,nd=>{if(typeof nd.test=="function")return nd.test(this);if(nd.test instanceof Array)return nd.test.some(od=>this.test(od));throw new Error("Browser's test function is not valid")});return qa&&(this.parsedResult.platform=qa.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(qa){return qa?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const qa=Utils.find(enginesParsersList,nd=>{if(typeof nd.test=="function")return nd.test(this);if(nd.test instanceof Array)return nd.test.some(od=>this.test(od));throw new Error("Browser's test function is not valid")});return qa&&(this.parsedResult.engine=qa.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Utils.assign({},this.parsedResult)}satisfies(qa){const nd={};let od=0;const ld={};let ud=0;if(Object.keys(qa).forEach(pd=>{const fd=qa[pd];typeof fd=="string"?(ld[pd]=fd,ud+=1):typeof fd=="object"&&(nd[pd]=fd,od+=1)}),od>0){const pd=Object.keys(nd),fd=Utils.find(pd,vd=>this.isOS(vd));if(fd){const vd=this.satisfies(nd[fd]);if(vd!==void 0)return vd}const md=Utils.find(pd,vd=>this.isPlatform(vd));if(md){const vd=this.satisfies(nd[md]);if(vd!==void 0)return vd}}if(ud>0){const pd=Object.keys(ld),fd=Utils.find(pd,md=>this.isBrowser(md,!0));if(fd!==void 0)return this.compareVersion(ld[fd])}}isBrowser(qa,nd=!1){const od=this.getBrowserName().toLowerCase();let ld=qa.toLowerCase();const ud=Utils.getBrowserTypeByAlias(ld);return nd&&ud&&(ld=ud.toLowerCase()),ld===od}compareVersion(qa){let nd=[0],od=qa,ld=!1;const ud=this.getBrowserVersion();if(typeof ud=="string")return qa[0]===">"||qa[0]==="<"?(od=qa.substr(1),qa[1]==="="?(ld=!0,od=qa.substr(2)):nd=[],qa[0]===">"?nd.push(1):nd.push(-1)):qa[0]==="="?od=qa.substr(1):qa[0]==="~"&&(ld=!0,od=qa.substr(1)),nd.indexOf(Utils.compareVersions(ud,od,ld))>-1}isOS(qa){return this.getOSName(!0)===String(qa).toLowerCase()}isPlatform(qa){return this.getPlatformType(!0)===String(qa).toLowerCase()}isEngine(qa){return this.getEngineName(!0)===String(qa).toLowerCase()}is(qa,nd=!1){return this.isBrowser(qa,nd)||this.isOS(qa)||this.isPlatform(qa)}some(qa=[]){return qa.some(nd=>this.is(nd))}}/*! +For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,nd}this.sigv4aSigner=new qa({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}}const ci="required",cj="type",ck="conditions",cl="fn",cm="argv",cn="ref",co="assign",cp="url",cq="properties",cr="backend",cs="authSchemes",ct="disableDoubleEncoding",cu="signingName",cv="signingRegion",cw="headers",cx="signingRegionSet",a=6,b=!1,c=!0,d="isSet",e="booleanEquals",f="error",g="aws.partition",h="stringEquals",i="getAttr",j="name",k="substring",l="bucketSuffix",m="parseURL",n="{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",o="endpoint",p="tree",q="aws.isVirtualHostableS3Bucket",r="{url#scheme}://{Bucket}.{url#authority}{url#path}",s="not",t="{url#scheme}://{url#authority}{url#path}",u="hardwareType",v="regionPrefix",w="bucketAliasSuffix",x="outpostId",y="isValidHostLabel",z="sigv4a",A="s3-outposts",B="s3",C="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",D="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",E="https://{Bucket}.s3.{partitionResult#dnsSuffix}",F="aws.parseArn",G="bucketArn",H="arnType",I="",J="s3-object-lambda",K="accesspoint",L="accessPointName",M="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",N="mrapPartition",O="outpostType",P="arnPrefix",Q="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",R="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",S="https://s3.{partitionResult#dnsSuffix}",T={[ci]:!1,[cj]:"String"},U={[ci]:!0,default:!1,[cj]:"Boolean"},V={[ci]:!1,[cj]:"Boolean"},W={[cl]:e,[cm]:[{[cn]:"Accelerate"},!0]},X={[cl]:e,[cm]:[{[cn]:"UseFIPS"},!0]},Y={[cl]:e,[cm]:[{[cn]:"UseDualStack"},!0]},Z={[cl]:d,[cm]:[{[cn]:"Endpoint"}]},aa={[cl]:g,[cm]:[{[cn]:"Region"}],[co]:"partitionResult"},ab={[cl]:h,[cm]:[{[cl]:i,[cm]:[{[cn]:"partitionResult"},j]},"aws-cn"]},ac={[cl]:d,[cm]:[{[cn]:"Bucket"}]},ad={[cn]:"Bucket"},ae={[cl]:m,[cm]:[{[cn]:"Endpoint"}],[co]:"url"},af={[cl]:e,[cm]:[{[cl]:i,[cm]:[{[cn]:"url"},"isIp"]},!0]},ag={[cn]:"url"},ah={[cl]:"uriEncode",[cm]:[ad],[co]:"uri_encoded_bucket"},ai={[cr]:"S3Express",[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:"s3express",[cv]:"{Region}"}]},aj={},ak={[cl]:q,[cm]:[ad,!1]},al={[f]:"S3Express bucket name is not a valid virtual hostable name.",[cj]:f},am={[cr]:"S3Express",[cs]:[{[ct]:!0,[j]:"sigv4-s3express",[cu]:"s3express",[cv]:"{Region}"}]},an={[cl]:d,[cm]:[{[cn]:"UseS3ExpressControlEndpoint"}]},ao={[cl]:e,[cm]:[{[cn]:"UseS3ExpressControlEndpoint"},!0]},ap={[cl]:s,[cm]:[Z]},aq={[f]:"Unrecognized S3Express bucket name format.",[cj]:f},ar={[cl]:s,[cm]:[ac]},as={[cn]:u},at={[ck]:[ap],[f]:"Expected a endpoint to be specified but no endpoint was found",[cj]:f},au={[cs]:[{[ct]:!0,[j]:z,[cu]:A,[cx]:["*"]},{[ct]:!0,[j]:"sigv4",[cu]:A,[cv]:"{Region}"}]},av={[cl]:e,[cm]:[{[cn]:"ForcePathStyle"},!1]},aw={[cn]:"ForcePathStyle"},ax={[cl]:e,[cm]:[{[cn]:"Accelerate"},!1]},ay={[cl]:h,[cm]:[{[cn]:"Region"},"aws-global"]},az={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"us-east-1"}]},aA={[cl]:s,[cm]:[ay]},aB={[cl]:e,[cm]:[{[cn]:"UseGlobalEndpoint"},!0]},aC={[cp]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:{[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"{Region}"}]},[cw]:{}},aD={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"{Region}"}]},aE={[cl]:e,[cm]:[{[cn]:"UseGlobalEndpoint"},!1]},aF={[cl]:e,[cm]:[{[cn]:"UseDualStack"},!1]},aG={[cp]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aH={[cl]:e,[cm]:[{[cn]:"UseFIPS"},!1]},aI={[cp]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aJ={[cp]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aK={[cl]:e,[cm]:[{[cl]:i,[cm]:[ag,"isIp"]},!1]},aL={[cp]:C,[cq]:aD,[cw]:{}},aM={[cp]:r,[cq]:aD,[cw]:{}},aN={[o]:aM,[cj]:o},aO={[cp]:D,[cq]:aD,[cw]:{}},aP={[cp]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aQ={[f]:"Invalid region: region was not a valid DNS name.",[cj]:f},aR={[cn]:G},aS={[cn]:H},aT={[cl]:i,[cm]:[aR,"service"]},aU={[cn]:L},aV={[ck]:[Y],[f]:"S3 Object Lambda does not support Dual-stack",[cj]:f},aW={[ck]:[W],[f]:"S3 Object Lambda does not support S3 Accelerate",[cj]:f},aX={[ck]:[{[cl]:d,[cm]:[{[cn]:"DisableAccessPoints"}]},{[cl]:e,[cm]:[{[cn]:"DisableAccessPoints"},!0]}],[f]:"Access points are not supported for this operation",[cj]:f},aY={[ck]:[{[cl]:d,[cm]:[{[cn]:"UseArnRegion"}]},{[cl]:e,[cm]:[{[cn]:"UseArnRegion"},!1]},{[cl]:s,[cm]:[{[cl]:h,[cm]:[{[cl]:i,[cm]:[aR,"region"]},"{Region}"]}]}],[f]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[cj]:f},aZ={[cl]:i,[cm]:[{[cn]:"bucketPartition"},j]},ba={[cl]:i,[cm]:[aR,"accountId"]},bb={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:J,[cv]:"{bucketArn#region}"}]},bc={[f]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[cj]:f},bd={[f]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[cj]:f},be={[f]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[cj]:f},bf={[f]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[cj]:f},bg={[f]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[cj]:f},bh={[f]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[cj]:f},bi={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"{bucketArn#region}"}]},bj={[cs]:[{[ct]:!0,[j]:z,[cu]:A,[cx]:["*"]},{[ct]:!0,[j]:"sigv4",[cu]:A,[cv]:"{bucketArn#region}"}]},bk={[cl]:F,[cm]:[ad]},bl={[cp]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:aD,[cw]:{}},bm={[cp]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:aD,[cw]:{}},bn={[cp]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:aD,[cw]:{}},bo={[cp]:Q,[cq]:aD,[cw]:{}},bp={[cp]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:aD,[cw]:{}},bq={[cn]:"UseObjectLambdaEndpoint"},br={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:J,[cv]:"{Region}"}]},bs={[cp]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},bt={[cp]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},bu={[cp]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},bv={[cp]:t,[cq]:aD,[cw]:{}},bw={[cp]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},bx=[{[cn]:"Region"}],by=[{[cn]:"Endpoint"}],bz=[ad],bA=[Y],bB=[W],bC=[Z,ae],bD=[{[cl]:d,[cm]:[{[cn]:"DisableS3ExpressSessionAuth"}]},{[cl]:e,[cm]:[{[cn]:"DisableS3ExpressSessionAuth"},!0]}],bE=[af],bF=[ah],bG=[ak],bH=[X],bI=[{[cl]:k,[cm]:[ad,6,14,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,14,16,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bJ=[{[ck]:[X],[o]:{[cp]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com",[cq]:ai,[cw]:{}},[cj]:o},{[o]:{[cp]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com",[cq]:ai,[cw]:{}},[cj]:o}],bK=[{[cl]:k,[cm]:[ad,6,15,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,15,17,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bL=[{[cl]:k,[cm]:[ad,6,19,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,19,21,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bM=[{[cl]:k,[cm]:[ad,6,20,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,20,22,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bN=[{[cl]:k,[cm]:[ad,6,26,!0],[co]:"s3expressAvailabilityZoneId"},{[cl]:k,[cm]:[ad,26,28,!0],[co]:"s3expressAvailabilityZoneDelim"},{[cl]:h,[cm]:[{[cn]:"s3expressAvailabilityZoneDelim"},"--"]}],bO=[{[ck]:[X],[o]:{[cp]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com",[cq]:am,[cw]:{}},[cj]:o},{[o]:{[cp]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.amazonaws.com",[cq]:am,[cw]:{}},[cj]:o}],bP=[ac],bQ=[{[cl]:y,[cm]:[{[cn]:x},!1]}],bR=[{[cl]:h,[cm]:[{[cn]:v},"beta"]}],bS=["*"],bT=[aa],bU=[{[cl]:y,[cm]:[{[cn]:"Region"},!1]}],bV=[{[cl]:h,[cm]:[{[cn]:"Region"},"us-east-1"]}],bW=[{[cl]:h,[cm]:[aS,K]}],bX=[{[cl]:i,[cm]:[aR,"resourceId[1]"],[co]:L},{[cl]:s,[cm]:[{[cl]:h,[cm]:[aU,I]}]}],bY=[aR,"resourceId[1]"],bZ=[{[cl]:s,[cm]:[{[cl]:h,[cm]:[{[cl]:i,[cm]:[aR,"region"]},I]}]}],ca=[{[cl]:s,[cm]:[{[cl]:d,[cm]:[{[cl]:i,[cm]:[aR,"resourceId[2]"]}]}]}],cb=[aR,"resourceId[2]"],cc=[{[cl]:g,[cm]:[{[cl]:i,[cm]:[aR,"region"]}],[co]:"bucketPartition"}],cd=[{[cl]:h,[cm]:[aZ,{[cl]:i,[cm]:[{[cn]:"partitionResult"},j]}]}],ce=[{[cl]:y,[cm]:[{[cl]:i,[cm]:[aR,"region"]},!0]}],cf=[{[cl]:y,[cm]:[ba,!1]}],cg=[{[cl]:y,[cm]:[aU,!1]}],ch=[{[cl]:y,[cm]:[{[cn]:"Region"},!0]}],_data={version:"1.0",parameters:{Bucket:T,Region:T,UseFIPS:U,UseDualStack:U,Endpoint:T,ForcePathStyle:U,Accelerate:U,UseGlobalEndpoint:U,UseObjectLambdaEndpoint:V,Key:T,Prefix:T,CopySource:T,DisableAccessPoints:V,DisableMultiRegionAccessPoints:U,UseArnRegion:V,UseS3ExpressControlEndpoint:V,DisableS3ExpressSessionAuth:V},rules:[{[ck]:[{[cl]:d,[cm]:bx}],rules:[{[ck]:[W,X],error:"Accelerate cannot be used with FIPS",[cj]:f},{[ck]:[Y,Z],error:"Cannot set dual-stack in combination with a custom endpoint.",[cj]:f},{[ck]:[Z,X],error:"A custom endpoint cannot be combined with FIPS",[cj]:f},{[ck]:[Z,W],error:"A custom endpoint cannot be combined with S3 Accelerate",[cj]:f},{[ck]:[X,aa,ab],error:"Partition does not support FIPS",[cj]:f},{[ck]:[ac,{[cl]:k,[cm]:[ad,0,a,c],[co]:l},{[cl]:h,[cm]:[{[cn]:l},"--x-s3"]}],rules:[{[ck]:bA,error:"S3Express does not support Dual-stack.",[cj]:f},{[ck]:bB,error:"S3Express does not support S3 Accelerate.",[cj]:f},{[ck]:bC,rules:[{[ck]:bD,rules:[{[ck]:bE,rules:[{[ck]:bF,rules:[{endpoint:{[cp]:n,[cq]:ai,[cw]:aj},[cj]:o}],[cj]:p}],[cj]:p},{[ck]:bG,rules:[{endpoint:{[cp]:r,[cq]:ai,[cw]:aj},[cj]:o}],[cj]:p},al],[cj]:p},{[ck]:bE,rules:[{[ck]:bF,rules:[{endpoint:{[cp]:n,[cq]:am,[cw]:aj},[cj]:o}],[cj]:p}],[cj]:p},{[ck]:bG,rules:[{endpoint:{[cp]:r,[cq]:am,[cw]:aj},[cj]:o}],[cj]:p},al],[cj]:p},{[ck]:[an,ao],rules:[{[ck]:[ah,ap],rules:[{[ck]:bH,endpoint:{[cp]:"https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}",[cq]:ai,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}",[cq]:ai,[cw]:aj},[cj]:o}],[cj]:p}],[cj]:p},{[ck]:bG,rules:[{[ck]:bD,rules:[{[ck]:bI,rules:bJ,[cj]:p},{[ck]:bK,rules:bJ,[cj]:p},{[ck]:bL,rules:bJ,[cj]:p},{[ck]:bM,rules:bJ,[cj]:p},{[ck]:bN,rules:bJ,[cj]:p},aq],[cj]:p},{[ck]:bI,rules:bO,[cj]:p},{[ck]:bK,rules:bO,[cj]:p},{[ck]:bL,rules:bO,[cj]:p},{[ck]:bM,rules:bO,[cj]:p},{[ck]:bN,rules:bO,[cj]:p},aq],[cj]:p},al],[cj]:p},{[ck]:[ar,an,ao],rules:[{[ck]:bC,endpoint:{[cp]:t,[cq]:ai,[cw]:aj},[cj]:o},{[ck]:bH,endpoint:{[cp]:"https://s3express-control-fips.{Region}.amazonaws.com",[cq]:ai,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://s3express-control.{Region}.amazonaws.com",[cq]:ai,[cw]:aj},[cj]:o}],[cj]:p},{[ck]:[ac,{[cl]:k,[cm]:[ad,49,50,c],[co]:u},{[cl]:k,[cm]:[ad,8,12,c],[co]:v},{[cl]:k,[cm]:[ad,0,7,c],[co]:w},{[cl]:k,[cm]:[ad,32,49,c],[co]:x},{[cl]:g,[cm]:bx,[co]:"regionPartition"},{[cl]:h,[cm]:[{[cn]:w},"--op-s3"]}],rules:[{[ck]:bQ,rules:[{[ck]:[{[cl]:h,[cm]:[as,"e"]}],rules:[{[ck]:bR,rules:[at,{[ck]:bC,endpoint:{[cp]:"https://{Bucket}.ec2.{url#authority}",[cq]:au,[cw]:aj},[cj]:o}],[cj]:p},{endpoint:{[cp]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cq]:au,[cw]:aj},[cj]:o}],[cj]:p},{[ck]:[{[cl]:h,[cm]:[as,"o"]}],rules:[{[ck]:bR,rules:[at,{[ck]:bC,endpoint:{[cp]:"https://{Bucket}.op-{outpostId}.{url#authority}",[cq]:au,[cw]:aj},[cj]:o}],[cj]:p},{endpoint:{[cp]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cq]:au,[cw]:aj},[cj]:o}],[cj]:p},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[cj]:f}],[cj]:p},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[cj]:f}],[cj]:p},{[ck]:bP,rules:[{[ck]:[Z,{[cl]:s,[cm]:[{[cl]:d,[cm]:[{[cl]:m,[cm]:by}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[cj]:f},{[ck]:[av,ak],rules:[{[ck]:bT,rules:[{[ck]:bU,rules:[{[ck]:[W,ab],error:"S3 Accelerate cannot be used in this region",[cj]:f},{[ck]:[Y,X,ax,ap,ay],endpoint:{[cp]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,X,ax,ap,aA,aB],rules:[{endpoint:aC,[cj]:o}],[cj]:p},{[ck]:[Y,X,ax,ap,aA,aE],endpoint:aC,[cj]:o},{[ck]:[aF,X,ax,ap,ay],endpoint:{[cp]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,X,ax,ap,aA,aB],rules:[{endpoint:aG,[cj]:o}],[cj]:p},{[ck]:[aF,X,ax,ap,aA,aE],endpoint:aG,[cj]:o},{[ck]:[Y,aH,W,ap,ay],endpoint:{[cp]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,aH,W,ap,aA,aB],rules:[{endpoint:aI,[cj]:o}],[cj]:p},{[ck]:[Y,aH,W,ap,aA,aE],endpoint:aI,[cj]:o},{[ck]:[Y,aH,ax,ap,ay],endpoint:{[cp]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,aH,ax,ap,aA,aB],rules:[{endpoint:aJ,[cj]:o}],[cj]:p},{[ck]:[Y,aH,ax,ap,aA,aE],endpoint:aJ,[cj]:o},{[ck]:[aF,aH,ax,Z,ae,af,ay],endpoint:{[cp]:C,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,aH,ax,Z,ae,aK,ay],endpoint:{[cp]:r,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,aH,ax,Z,ae,af,aA,aB],rules:[{[ck]:bV,endpoint:aL,[cj]:o},{endpoint:aL,[cj]:o}],[cj]:p},{[ck]:[aF,aH,ax,Z,ae,aK,aA,aB],rules:[{[ck]:bV,endpoint:aM,[cj]:o},aN],[cj]:p},{[ck]:[aF,aH,ax,Z,ae,af,aA,aE],endpoint:aL,[cj]:o},{[ck]:[aF,aH,ax,Z,ae,aK,aA,aE],endpoint:aM,[cj]:o},{[ck]:[aF,aH,W,ap,ay],endpoint:{[cp]:D,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,aH,W,ap,aA,aB],rules:[{[ck]:bV,endpoint:aO,[cj]:o},{endpoint:aO,[cj]:o}],[cj]:p},{[ck]:[aF,aH,W,ap,aA,aE],endpoint:aO,[cj]:o},{[ck]:[aF,aH,ax,ap,ay],endpoint:{[cp]:E,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,aH,ax,ap,aA,aB],rules:[{[ck]:bV,endpoint:{[cp]:E,[cq]:aD,[cw]:aj},[cj]:o},{endpoint:aP,[cj]:o}],[cj]:p},{[ck]:[aF,aH,ax,ap,aA,aE],endpoint:aP,[cj]:o}],[cj]:p},aQ],[cj]:p}],[cj]:p},{[ck]:[Z,ae,{[cl]:h,[cm]:[{[cl]:i,[cm]:[ag,"scheme"]},"http"]},{[cl]:q,[cm]:[ad,c]},av,aH,aF,ax],rules:[{[ck]:bT,rules:[{[ck]:bU,rules:[aN],[cj]:p},aQ],[cj]:p}],[cj]:p},{[ck]:[av,{[cl]:F,[cm]:bz,[co]:G}],rules:[{[ck]:[{[cl]:i,[cm]:[aR,"resourceId[0]"],[co]:H},{[cl]:s,[cm]:[{[cl]:h,[cm]:[aS,I]}]}],rules:[{[ck]:[{[cl]:h,[cm]:[aT,J]}],rules:[{[ck]:bW,rules:[{[ck]:bX,rules:[aV,aW,{[ck]:bZ,rules:[aX,{[ck]:ca,rules:[aY,{[ck]:cc,rules:[{[ck]:bT,rules:[{[ck]:cd,rules:[{[ck]:ce,rules:[{[ck]:[{[cl]:h,[cm]:[ba,I]}],error:"Invalid ARN: Missing account id",[cj]:f},{[ck]:cf,rules:[{[ck]:cg,rules:[{[ck]:bC,endpoint:{[cp]:M,[cq]:bb,[cw]:aj},[cj]:o},{[ck]:bH,endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bb,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bb,[cw]:aj},[cj]:o}],[cj]:p},bc],[cj]:p},bd],[cj]:p},be],[cj]:p},bf],[cj]:p}],[cj]:p}],[cj]:p},bg],[cj]:p},{error:"Invalid ARN: bucket ARN is missing a region",[cj]:f}],[cj]:p},bh],[cj]:p},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[cj]:f}],[cj]:p},{[ck]:bW,rules:[{[ck]:bX,rules:[{[ck]:bZ,rules:[{[ck]:bW,rules:[{[ck]:bZ,rules:[aX,{[ck]:ca,rules:[aY,{[ck]:cc,rules:[{[ck]:bT,rules:[{[ck]:[{[cl]:h,[cm]:[aZ,"{partitionResult#name}"]}],rules:[{[ck]:ce,rules:[{[ck]:[{[cl]:h,[cm]:[aT,B]}],rules:[{[ck]:cf,rules:[{[ck]:cg,rules:[{[ck]:bB,error:"Access Points do not support S3 Accelerate",[cj]:f},{[ck]:[X,Y],endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bi,[cw]:aj},[cj]:o},{[ck]:[X,aF],endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bi,[cw]:aj},[cj]:o},{[ck]:[aH,Y],endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bi,[cw]:aj},[cj]:o},{[ck]:[aH,aF,Z,ae],endpoint:{[cp]:M,[cq]:bi,[cw]:aj},[cj]:o},{[ck]:[aH,aF],endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bi,[cw]:aj},[cj]:o}],[cj]:p},bc],[cj]:p},bd],[cj]:p},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[cj]:f}],[cj]:p},be],[cj]:p},bf],[cj]:p}],[cj]:p}],[cj]:p},bg],[cj]:p}],[cj]:p}],[cj]:p},{[ck]:[{[cl]:y,[cm]:[aU,c]}],rules:[{[ck]:bA,error:"S3 MRAP does not support dual-stack",[cj]:f},{[ck]:bH,error:"S3 MRAP does not support FIPS",[cj]:f},{[ck]:bB,error:"S3 MRAP does not support S3 Accelerate",[cj]:f},{[ck]:[{[cl]:e,[cm]:[{[cn]:"DisableMultiRegionAccessPoints"},c]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[cj]:f},{[ck]:[{[cl]:g,[cm]:bx,[co]:N}],rules:[{[ck]:[{[cl]:h,[cm]:[{[cl]:i,[cm]:[{[cn]:N},j]},{[cl]:i,[cm]:[aR,"partition"]}]}],rules:[{endpoint:{[cp]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[cq]:{[cs]:[{[ct]:c,name:z,[cu]:B,[cx]:bS}]},[cw]:aj},[cj]:o}],[cj]:p},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[cj]:f}],[cj]:p}],[cj]:p},{error:"Invalid Access Point Name",[cj]:f}],[cj]:p},bh],[cj]:p},{[ck]:[{[cl]:h,[cm]:[aT,A]}],rules:[{[ck]:bA,error:"S3 Outposts does not support Dual-stack",[cj]:f},{[ck]:bH,error:"S3 Outposts does not support FIPS",[cj]:f},{[ck]:bB,error:"S3 Outposts does not support S3 Accelerate",[cj]:f},{[ck]:[{[cl]:d,[cm]:[{[cl]:i,[cm]:[aR,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[cj]:f},{[ck]:[{[cl]:i,[cm]:bY,[co]:x}],rules:[{[ck]:bQ,rules:[aY,{[ck]:cc,rules:[{[ck]:bT,rules:[{[ck]:cd,rules:[{[ck]:ce,rules:[{[ck]:cf,rules:[{[ck]:[{[cl]:i,[cm]:cb,[co]:O}],rules:[{[ck]:[{[cl]:i,[cm]:[aR,"resourceId[3]"],[co]:L}],rules:[{[ck]:[{[cl]:h,[cm]:[{[cn]:O},K]}],rules:[{[ck]:bC,endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[cq]:bj,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cq]:bj,[cw]:aj},[cj]:o}],[cj]:p},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[cj]:f}],[cj]:p},{error:"Invalid ARN: expected an access point name",[cj]:f}],[cj]:p},{error:"Invalid ARN: Expected a 4-component resource",[cj]:f}],[cj]:p},bd],[cj]:p},be],[cj]:p},bf],[cj]:p}],[cj]:p}],[cj]:p},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[cj]:f}],[cj]:p},{error:"Invalid ARN: The Outpost Id was not set",[cj]:f}],[cj]:p},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[cj]:f}],[cj]:p},{error:"Invalid ARN: No ARN type specified",[cj]:f}],[cj]:p},{[ck]:[{[cl]:k,[cm]:[ad,0,4,b],[co]:P},{[cl]:h,[cm]:[{[cn]:P},"arn:"]},{[cl]:s,[cm]:[{[cl]:d,[cm]:[bk]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[cj]:f},{[ck]:[{[cl]:e,[cm]:[aw,c]},bk],error:"Path-style addressing cannot be used with ARN buckets",[cj]:f},{[ck]:bF,rules:[{[ck]:bT,rules:[{[ck]:[ax],rules:[{[ck]:[Y,ap,X,ay],endpoint:{[cp]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,ap,X,aA,aB],rules:[{endpoint:bl,[cj]:o}],[cj]:p},{[ck]:[Y,ap,X,aA,aE],endpoint:bl,[cj]:o},{[ck]:[aF,ap,X,ay],endpoint:{[cp]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,ap,X,aA,aB],rules:[{endpoint:bm,[cj]:o}],[cj]:p},{[ck]:[aF,ap,X,aA,aE],endpoint:bm,[cj]:o},{[ck]:[Y,ap,aH,ay],endpoint:{[cp]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[Y,ap,aH,aA,aB],rules:[{endpoint:bn,[cj]:o}],[cj]:p},{[ck]:[Y,ap,aH,aA,aE],endpoint:bn,[cj]:o},{[ck]:[aF,Z,ae,aH,ay],endpoint:{[cp]:Q,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,Z,ae,aH,aA,aB],rules:[{[ck]:bV,endpoint:bo,[cj]:o},{endpoint:bo,[cj]:o}],[cj]:p},{[ck]:[aF,Z,ae,aH,aA,aE],endpoint:bo,[cj]:o},{[ck]:[aF,ap,aH,ay],endpoint:{[cp]:R,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aF,ap,aH,aA,aB],rules:[{[ck]:bV,endpoint:{[cp]:R,[cq]:aD,[cw]:aj},[cj]:o},{endpoint:bp,[cj]:o}],[cj]:p},{[ck]:[aF,ap,aH,aA,aE],endpoint:bp,[cj]:o}],[cj]:p},{error:"Path-style addressing cannot be used with S3 Accelerate",[cj]:f}],[cj]:p}],[cj]:p}],[cj]:p},{[ck]:[{[cl]:d,[cm]:[bq]},{[cl]:e,[cm]:[bq,c]}],rules:[{[ck]:bT,rules:[{[ck]:ch,rules:[aV,aW,{[ck]:bC,endpoint:{[cp]:t,[cq]:br,[cw]:aj},[cj]:o},{[ck]:bH,endpoint:{[cp]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[cq]:br,[cw]:aj},[cj]:o},{endpoint:{[cp]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[cq]:br,[cw]:aj},[cj]:o}],[cj]:p},aQ],[cj]:p}],[cj]:p},{[ck]:[ar],rules:[{[ck]:bT,rules:[{[ck]:ch,rules:[{[ck]:[X,Y,ap,ay],endpoint:{[cp]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[X,Y,ap,aA,aB],rules:[{endpoint:bs,[cj]:o}],[cj]:p},{[ck]:[X,Y,ap,aA,aE],endpoint:bs,[cj]:o},{[ck]:[X,aF,ap,ay],endpoint:{[cp]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[X,aF,ap,aA,aB],rules:[{endpoint:bt,[cj]:o}],[cj]:p},{[ck]:[X,aF,ap,aA,aE],endpoint:bt,[cj]:o},{[ck]:[aH,Y,ap,ay],endpoint:{[cp]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aH,Y,ap,aA,aB],rules:[{endpoint:bu,[cj]:o}],[cj]:p},{[ck]:[aH,Y,ap,aA,aE],endpoint:bu,[cj]:o},{[ck]:[aH,aF,Z,ae,ay],endpoint:{[cp]:t,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aH,aF,Z,ae,aA,aB],rules:[{[ck]:bV,endpoint:bv,[cj]:o},{endpoint:bv,[cj]:o}],[cj]:p},{[ck]:[aH,aF,Z,ae,aA,aE],endpoint:bv,[cj]:o},{[ck]:[aH,aF,ap,ay],endpoint:{[cp]:S,[cq]:az,[cw]:aj},[cj]:o},{[ck]:[aH,aF,ap,aA,aB],rules:[{[ck]:bV,endpoint:{[cp]:S,[cq]:aD,[cw]:aj},[cj]:o},{endpoint:bw,[cj]:o}],[cj]:p},{[ck]:[aH,aF,ap,aA,aE],endpoint:bw,[cj]:o}],[cj]:p},aQ],[cj]:p}],[cj]:p}],[cj]:p},{error:"A region must be set when sending requests to S3.",[cj]:f}]},ruleSet=_data,cache=new EndpointCache({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),defaultEndpointResolver=(Ra,qa={})=>cache.get(Ra,()=>resolveEndpoint(ruleSet,{endpointParams:Ra,logger:qa.logger}));customEndpointFunctions.aws=awsEndpointFunctions;const createEndpointRuleSetHttpAuthSchemeParametersProvider=Ra=>async(qa,nd,od)=>{var pd,fd,md;if(!od)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const ld=await Ra(qa,nd,od),ud=(md=(fd=(pd=getSmithyContext(nd))==null?void 0:pd.commandInstance)==null?void 0:fd.constructor)==null?void 0:md.getEndpointParameterInstructions;if(!ud)throw new Error(`getEndpointParameterInstructions() is not defined on \`${nd.commandName}\``);const dd=await resolveParams(od,{getEndpointParameterInstructions:ud},qa);return Object.assign(ld,dd)},_defaultS3HttpAuthSchemeParametersProvider=async(Ra,qa,nd)=>({operation:getSmithyContext(qa).operation,region:await normalizeProvider$1(Ra.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),defaultS3HttpAuthSchemeParametersProvider=createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultS3HttpAuthSchemeParametersProvider);function createAwsAuthSigv4HttpAuthOption(Ra){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:Ra.region},propertiesExtractor:(qa,nd)=>({signingProperties:{config:qa,context:nd}})}}function createAwsAuthSigv4aHttpAuthOption(Ra){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:Ra.region},propertiesExtractor:(qa,nd)=>({signingProperties:{config:qa,context:nd}})}}const createEndpointRuleSetHttpAuthSchemeProvider=(Ra,qa,nd)=>ld=>{var fd;const dd=(fd=Ra(ld).properties)==null?void 0:fd.authSchemes;if(!dd)return qa(ld);const pd=[];for(const md of dd){const{name:vd,properties:Ad={},...Nd}=md,Od=vd.toLowerCase();vd!==Od&&console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${vd}\` to \`${Od}\``);let kd;if(Od==="sigv4a"){if(kd="aws.auth#sigv4a",dd.find(Fd=>{const Ud=Fd.name.toLowerCase();return Ud!=="sigv4a"&&Ud.startsWith("sigv4")}))continue}else if(Od.startsWith("sigv4"))kd="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${Od}\``);const Ld=nd[kd];if(!Ld)throw new Error(`Could not find HttpAuthOption create function for \`${kd}\``);const Gd=Ld(ld);Gd.schemeId=kd,Gd.signingProperties={...Gd.signingProperties||{},...Nd,...Ad},pd.push(Gd)}return pd},_defaultS3HttpAuthSchemeProvider=Ra=>{const qa=[];switch(Ra.operation){default:qa.push(createAwsAuthSigv4HttpAuthOption(Ra)),qa.push(createAwsAuthSigv4aHttpAuthOption(Ra))}return qa},defaultS3HttpAuthSchemeProvider=createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver,_defaultS3HttpAuthSchemeProvider,{"aws.auth#sigv4":createAwsAuthSigv4HttpAuthOption,"aws.auth#sigv4a":createAwsAuthSigv4aHttpAuthOption}),resolveHttpAuthSchemeConfig=Ra=>{const qa=resolveAwsSdkSigV4Config(Ra);return{...resolveAwsSdkSigV4AConfig(qa)}},resolveClientEndpointParameters=Ra=>({...Ra,useFipsEndpoint:Ra.useFipsEndpoint??!1,useDualstackEndpoint:Ra.useDualstackEndpoint??!1,forcePathStyle:Ra.forcePathStyle??!1,useAccelerateEndpoint:Ra.useAccelerateEndpoint??!1,useGlobalEndpoint:Ra.useGlobalEndpoint??!1,disableMultiregionAccessPoints:Ra.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"}),commonParams={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class S3ServiceException extends ServiceException{constructor(qa){super(qa),Object.setPrototypeOf(this,S3ServiceException.prototype)}}class NoSuchUpload extends S3ServiceException{constructor(qa){super({name:"NoSuchUpload",$fault:"client",...qa}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,NoSuchUpload.prototype)}}class ObjectNotInActiveTierError extends S3ServiceException{constructor(qa){super({name:"ObjectNotInActiveTierError",$fault:"client",...qa}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,ObjectNotInActiveTierError.prototype)}}class BucketAlreadyExists extends S3ServiceException{constructor(qa){super({name:"BucketAlreadyExists",$fault:"client",...qa}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,BucketAlreadyExists.prototype)}}class BucketAlreadyOwnedByYou extends S3ServiceException{constructor(qa){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...qa}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,BucketAlreadyOwnedByYou.prototype)}}class NoSuchBucket extends S3ServiceException{constructor(qa){super({name:"NoSuchBucket",$fault:"client",...qa}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,NoSuchBucket.prototype)}}var AnalyticsFilter;(function(Ra){Ra.visit=(qa,nd)=>qa.Prefix!==void 0?nd.Prefix(qa.Prefix):qa.Tag!==void 0?nd.Tag(qa.Tag):qa.And!==void 0?nd.And(qa.And):nd._(qa.$unknown[0],qa.$unknown[1])})(AnalyticsFilter||(AnalyticsFilter={}));var MetricsFilter;(function(Ra){Ra.visit=(qa,nd)=>qa.Prefix!==void 0?nd.Prefix(qa.Prefix):qa.Tag!==void 0?nd.Tag(qa.Tag):qa.AccessPointArn!==void 0?nd.AccessPointArn(qa.AccessPointArn):qa.And!==void 0?nd.And(qa.And):nd._(qa.$unknown[0],qa.$unknown[1])})(MetricsFilter||(MetricsFilter={}));class InvalidObjectState extends S3ServiceException{constructor(qa){super({name:"InvalidObjectState",$fault:"client",...qa}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,InvalidObjectState.prototype),this.StorageClass=qa.StorageClass,this.AccessTier=qa.AccessTier}}class NoSuchKey extends S3ServiceException{constructor(qa){super({name:"NoSuchKey",$fault:"client",...qa}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,NoSuchKey.prototype)}}class NotFound extends S3ServiceException{constructor(qa){super({name:"NotFound",$fault:"client",...qa}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,NotFound.prototype)}}const SessionCredentialsFilterSensitiveLog=Ra=>({...Ra,...Ra.SecretAccessKey&&{SecretAccessKey:SENSITIVE_STRING},...Ra.SessionToken&&{SessionToken:SENSITIVE_STRING}}),CreateSessionOutputFilterSensitiveLog=Ra=>({...Ra,...Ra.SSEKMSKeyId&&{SSEKMSKeyId:SENSITIVE_STRING},...Ra.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:SENSITIVE_STRING},...Ra.Credentials&&{Credentials:SessionCredentialsFilterSensitiveLog(Ra.Credentials)}}),CreateSessionRequestFilterSensitiveLog=Ra=>({...Ra,...Ra.SSEKMSKeyId&&{SSEKMSKeyId:SENSITIVE_STRING},...Ra.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:SENSITIVE_STRING}});class EncryptionTypeMismatch extends S3ServiceException{constructor(qa){super({name:"EncryptionTypeMismatch",$fault:"client",...qa}),this.name="EncryptionTypeMismatch",this.$fault="client",Object.setPrototypeOf(this,EncryptionTypeMismatch.prototype)}}class InvalidRequest extends S3ServiceException{constructor(qa){super({name:"InvalidRequest",$fault:"client",...qa}),this.name="InvalidRequest",this.$fault="client",Object.setPrototypeOf(this,InvalidRequest.prototype)}}class InvalidWriteOffset extends S3ServiceException{constructor(qa){super({name:"InvalidWriteOffset",$fault:"client",...qa}),this.name="InvalidWriteOffset",this.$fault="client",Object.setPrototypeOf(this,InvalidWriteOffset.prototype)}}class TooManyParts extends S3ServiceException{constructor(qa){super({name:"TooManyParts",$fault:"client",...qa}),this.name="TooManyParts",this.$fault="client",Object.setPrototypeOf(this,TooManyParts.prototype)}}class ObjectAlreadyInActiveTierError extends S3ServiceException{constructor(qa){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...qa}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,ObjectAlreadyInActiveTierError.prototype)}}var SelectObjectContentEventStream;(function(Ra){Ra.visit=(qa,nd)=>qa.Records!==void 0?nd.Records(qa.Records):qa.Stats!==void 0?nd.Stats(qa.Stats):qa.Progress!==void 0?nd.Progress(qa.Progress):qa.Cont!==void 0?nd.Cont(qa.Cont):qa.End!==void 0?nd.End(qa.End):nd._(qa.$unknown[0],qa.$unknown[1])})(SelectObjectContentEventStream||(SelectObjectContentEventStream={}));const PutObjectOutputFilterSensitiveLog=Ra=>({...Ra,...Ra.SSEKMSKeyId&&{SSEKMSKeyId:SENSITIVE_STRING},...Ra.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:SENSITIVE_STRING}}),PutObjectRequestFilterSensitiveLog=Ra=>({...Ra,...Ra.SSECustomerKey&&{SSECustomerKey:SENSITIVE_STRING},...Ra.SSEKMSKeyId&&{SSEKMSKeyId:SENSITIVE_STRING},...Ra.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:SENSITIVE_STRING}}),se_CreateSessionCommand=async(Ra,qa)=>{const nd=requestBuilder(Ra,qa),od=map$2({},isSerializableHeaderValue,{[_xacsm]:Ra[_SM],[_xasse]:Ra[_SSE],[_xasseakki]:Ra[_SSEKMSKI],[_xassec]:Ra[_SSEKMSEC],[_xassebke]:[()=>isSerializableHeaderValue(Ra[_BKE]),()=>Ra[_BKE].toString()]});nd.bp("/"),nd.p("Bucket",()=>Ra.Bucket,"{Bucket}",!1);const ld=map$2({[_s]:[,""]});return nd.m("GET").h(od).q(ld).b(void 0),nd.build()},se_PutObjectCommand=async(Ra,qa)=>{const nd=requestBuilder(Ra,qa),od=map$2({},isSerializableHeaderValue,{[_ct]:Ra[_CT]||"application/octet-stream",[_xaa]:Ra[_ACL],[_cc]:Ra[_CC],[_cd]:Ra[_CD],[_ce]:Ra[_CE],[_cl]:Ra[_CL],[_cl_]:[()=>isSerializableHeaderValue(Ra[_CLo]),()=>Ra[_CLo].toString()],[_cm]:Ra[_CMD],[_xasca]:Ra[_CA],[_xacc]:Ra[_CCRC],[_xacc_]:Ra[_CCRCC],[_xacs]:Ra[_CSHA],[_xacs_]:Ra[_CSHAh],[_e]:[()=>isSerializableHeaderValue(Ra[_E]),()=>dateToUtcString(Ra[_E]).toString()],[_im]:Ra[_IM],[_inm]:Ra[_INM],[_xagfc]:Ra[_GFC],[_xagr]:Ra[_GR],[_xagra]:Ra[_GRACP],[_xagwa]:Ra[_GWACP],[_xawob]:[()=>isSerializableHeaderValue(Ra[_WOB]),()=>Ra[_WOB].toString()],[_xasse]:Ra[_SSE],[_xasc]:Ra[_SC],[_xawrl]:Ra[_WRL],[_xasseca]:Ra[_SSECA],[_xasseck]:Ra[_SSECK],[_xasseckm]:Ra[_SSECKMD],[_xasseakki]:Ra[_SSEKMSKI],[_xassec]:Ra[_SSEKMSEC],[_xassebke]:[()=>isSerializableHeaderValue(Ra[_BKE]),()=>Ra[_BKE].toString()],[_xarp]:Ra[_RP],[_xat]:Ra[_T],[_xaolm]:Ra[_OLM],[_xaolrud]:[()=>isSerializableHeaderValue(Ra[_OLRUD]),()=>serializeDateTime(Ra[_OLRUD]).toString()],[_xaollh]:Ra[_OLLHS],[_xaebo]:Ra[_EBO],...Ra.Metadata!==void 0&&Object.keys(Ra.Metadata).reduce((pd,fd)=>(pd[`x-amz-meta-${fd.toLowerCase()}`]=Ra.Metadata[fd],pd),{})});nd.bp("/{Key+}"),nd.p("Bucket",()=>Ra.Bucket,"{Bucket}",!1),nd.p("Key",()=>Ra.Key,"{Key+}",!0);const ld=map$2({[_xi]:[,"PutObject"]});let ud,dd;return Ra.Body!==void 0&&(dd=Ra.Body,ud=dd),nd.m("PUT").h(od).q(ld).b(ud),nd.build()},de_CreateSessionCommand=async(Ra,qa)=>{if(Ra.statusCode!==200&&Ra.statusCode>=300)return de_CommandError(Ra,qa);const nd=map$2({$metadata:deserializeMetadata(Ra),[_SSE]:[,Ra.headers[_xasse]],[_SSEKMSKI]:[,Ra.headers[_xasseakki]],[_SSEKMSEC]:[,Ra.headers[_xassec]],[_BKE]:[()=>Ra.headers[_xassebke]!==void 0,()=>parseBoolean(Ra.headers[_xassebke])]}),od=expectNonNull(expectObject(await parseXmlBody(Ra.body,qa)),"body");return od[_C]!=null&&(nd[_C]=de_SessionCredentials(od[_C])),nd},de_PutObjectCommand=async(Ra,qa)=>{if(Ra.statusCode!==200&&Ra.statusCode>=300)return de_CommandError(Ra,qa);const nd=map$2({$metadata:deserializeMetadata(Ra),[_Exp]:[,Ra.headers[_xae]],[_ETa]:[,Ra.headers[_eta]],[_CCRC]:[,Ra.headers[_xacc]],[_CCRCC]:[,Ra.headers[_xacc_]],[_CSHA]:[,Ra.headers[_xacs]],[_CSHAh]:[,Ra.headers[_xacs_]],[_SSE]:[,Ra.headers[_xasse]],[_VI]:[,Ra.headers[_xavi]],[_SSECA]:[,Ra.headers[_xasseca]],[_SSECKMD]:[,Ra.headers[_xasseckm]],[_SSEKMSKI]:[,Ra.headers[_xasseakki]],[_SSEKMSEC]:[,Ra.headers[_xassec]],[_BKE]:[()=>Ra.headers[_xassebke]!==void 0,()=>parseBoolean(Ra.headers[_xassebke])],[_Si]:[()=>Ra.headers[_xaos]!==void 0,()=>strictParseLong(Ra.headers[_xaos])],[_RC]:[,Ra.headers[_xarc]]});return await collectBody$1(Ra.body,qa),nd},de_CommandError=async(Ra,qa)=>{const nd={...Ra,body:await parseXmlErrorBody(Ra.body,qa)},od=loadRestXmlErrorCode(Ra,nd.body);switch(od){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await de_NoSuchUploadRes(nd);case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await de_ObjectNotInActiveTierErrorRes(nd);case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await de_BucketAlreadyExistsRes(nd);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await de_BucketAlreadyOwnedByYouRes(nd);case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await de_NoSuchBucketRes(nd);case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await de_InvalidObjectStateRes(nd);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await de_NoSuchKeyRes(nd);case"NotFound":case"com.amazonaws.s3#NotFound":throw await de_NotFoundRes(nd);case"EncryptionTypeMismatch":case"com.amazonaws.s3#EncryptionTypeMismatch":throw await de_EncryptionTypeMismatchRes(nd);case"InvalidRequest":case"com.amazonaws.s3#InvalidRequest":throw await de_InvalidRequestRes(nd);case"InvalidWriteOffset":case"com.amazonaws.s3#InvalidWriteOffset":throw await de_InvalidWriteOffsetRes(nd);case"TooManyParts":case"com.amazonaws.s3#TooManyParts":throw await de_TooManyPartsRes(nd);case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await de_ObjectAlreadyInActiveTierErrorRes(nd);default:const ld=nd.body;return throwDefaultError({output:Ra,parsedBody:ld,errorCode:od})}},throwDefaultError=withBaseException(S3ServiceException),de_BucketAlreadyExistsRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new BucketAlreadyExists({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_BucketAlreadyOwnedByYouRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new BucketAlreadyOwnedByYou({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_EncryptionTypeMismatchRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new EncryptionTypeMismatch({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_InvalidObjectStateRes=async(Ra,qa)=>{const nd=map$2({}),od=Ra.body;od[_AT]!=null&&(nd[_AT]=expectString(od[_AT])),od[_SC]!=null&&(nd[_SC]=expectString(od[_SC]));const ld=new InvalidObjectState({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(ld,Ra.body)},de_InvalidRequestRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new InvalidRequest({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_InvalidWriteOffsetRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new InvalidWriteOffset({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_NoSuchBucketRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new NoSuchBucket({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_NoSuchKeyRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new NoSuchKey({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_NoSuchUploadRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new NoSuchUpload({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_NotFoundRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new NotFound({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_ObjectAlreadyInActiveTierErrorRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new ObjectAlreadyInActiveTierError({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_ObjectNotInActiveTierErrorRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new ObjectNotInActiveTierError({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_TooManyPartsRes=async(Ra,qa)=>{const nd=map$2({});Ra.body;const od=new TooManyParts({$metadata:deserializeMetadata(Ra),...nd});return decorateServiceException(od,Ra.body)},de_SessionCredentials=(Ra,qa)=>{const nd={};return Ra[_AKI]!=null&&(nd[_AKI]=expectString(Ra[_AKI])),Ra[_SAK]!=null&&(nd[_SAK]=expectString(Ra[_SAK])),Ra[_ST]!=null&&(nd[_ST]=expectString(Ra[_ST])),Ra[_Exp]!=null&&(nd[_Exp]=expectNonNull(parseRfc3339DateTimeWithOffset(Ra[_Exp]))),nd},deserializeMetadata=Ra=>({httpStatusCode:Ra.statusCode,requestId:Ra.headers["x-amzn-requestid"]??Ra.headers["x-amzn-request-id"]??Ra.headers["x-amz-request-id"],extendedRequestId:Ra.headers["x-amz-id-2"],cfId:Ra.headers["x-amz-cf-id"]}),_ACL="ACL",_AKI="AccessKeyId",_AT="AccessTier",_BKE="BucketKeyEnabled",_C="Credentials",_CA="ChecksumAlgorithm",_CC="CacheControl",_CCRC="ChecksumCRC32",_CCRCC="ChecksumCRC32C",_CD="ContentDisposition",_CE="ContentEncoding",_CL="ContentLanguage",_CLo="ContentLength",_CMD="ContentMD5",_CSHA="ChecksumSHA1",_CSHAh="ChecksumSHA256",_CT="ContentType",_E="Expires",_EBO="ExpectedBucketOwner",_ETa="ETag",_Exp="Expiration",_GFC="GrantFullControl",_GR="GrantRead",_GRACP="GrantReadACP",_GWACP="GrantWriteACP",_IM="IfMatch",_INM="IfNoneMatch",_OLLHS="ObjectLockLegalHoldStatus",_OLM="ObjectLockMode",_OLRUD="ObjectLockRetainUntilDate",_RC="RequestCharged",_RP="RequestPayer",_SAK="SecretAccessKey",_SC="StorageClass",_SM="SessionMode",_SSE="ServerSideEncryption",_SSECA="SSECustomerAlgorithm",_SSECK="SSECustomerKey",_SSECKMD="SSECustomerKeyMD5",_SSEKMSEC="SSEKMSEncryptionContext",_SSEKMSKI="SSEKMSKeyId",_ST="SessionToken",_Si="Size",_T="Tagging",_VI="VersionId",_WOB="WriteOffsetBytes",_WRL="WebsiteRedirectLocation",_cc="cache-control",_cd="content-disposition",_ce="content-encoding",_cl="content-language",_cl_="content-length",_cm="content-md5",_ct="content-type",_e="expires",_eta="etag",_im="if-match",_inm="if-none-match",_s="session",_xaa="x-amz-acl",_xacc="x-amz-checksum-crc32",_xacc_="x-amz-checksum-crc32c",_xacs="x-amz-checksum-sha1",_xacs_="x-amz-checksum-sha256",_xacsm="x-amz-create-session-mode",_xae="x-amz-expiration",_xaebo="x-amz-expected-bucket-owner",_xagfc="x-amz-grant-full-control",_xagr="x-amz-grant-read",_xagra="x-amz-grant-read-acp",_xagwa="x-amz-grant-write-acp",_xaollh="x-amz-object-lock-legal-hold",_xaolm="x-amz-object-lock-mode",_xaolrud="x-amz-object-lock-retain-until-date",_xaos="x-amz-object-size",_xarc="x-amz-request-charged",_xarp="x-amz-request-payer",_xasc="x-amz-storage-class",_xasca="x-amz-sdk-checksum-algorithm",_xasse="x-amz-server-side-encryption",_xasseakki="x-amz-server-side-encryption-aws-kms-key-id",_xassebke="x-amz-server-side-encryption-bucket-key-enabled",_xassec="x-amz-server-side-encryption-context",_xasseca="x-amz-server-side-encryption-customer-algorithm",_xasseck="x-amz-server-side-encryption-customer-key",_xasseckm="x-amz-server-side-encryption-customer-key-md5",_xat="x-amz-tagging",_xavi="x-amz-version-id",_xawob="x-amz-write-offset-bytes",_xawrl="x-amz-website-redirect-location",_xi="x-id";class CreateSessionCommand extends Command.classBuilder().ep({...commonParams,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(qa,nd,od,ld){return[getSerdePlugin(od,this.serialize,this.deserialize),getEndpointPlugin(od,qa.getEndpointParameterInstructions()),getThrow200ExceptionsPlugin(od)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").f(CreateSessionRequestFilterSensitiveLog,CreateSessionOutputFilterSensitiveLog).ser(se_CreateSessionCommand).de(de_CreateSessionCommand).build(){}const name="@aws-sdk/client-s3",description="AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version="3.716.0",scripts={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && vitest run -c vitest.config.browser.ts --mode development","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts --mode development && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts","test:watch":"yarn g:vitest watch"},main$1="./dist-cjs/index.js",types="./dist-types/index.d.ts",module$1="./dist-es/index.js",sideEffects=!1,dependencies={"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.716.0","@aws-sdk/client-sts":"3.716.0","@aws-sdk/core":"3.716.0","@aws-sdk/credential-provider-node":"3.716.0","@aws-sdk/middleware-bucket-endpoint":"3.714.0","@aws-sdk/middleware-expect-continue":"3.714.0","@aws-sdk/middleware-flexible-checksums":"3.716.0","@aws-sdk/middleware-host-header":"3.714.0","@aws-sdk/middleware-location-constraint":"3.714.0","@aws-sdk/middleware-logger":"3.714.0","@aws-sdk/middleware-recursion-detection":"3.714.0","@aws-sdk/middleware-sdk-s3":"3.716.0","@aws-sdk/middleware-ssec":"3.714.0","@aws-sdk/middleware-user-agent":"3.716.0","@aws-sdk/region-config-resolver":"3.714.0","@aws-sdk/signature-v4-multi-region":"3.716.0","@aws-sdk/types":"3.714.0","@aws-sdk/util-endpoints":"3.714.0","@aws-sdk/util-user-agent-browser":"3.714.0","@aws-sdk/util-user-agent-node":"3.716.0","@aws-sdk/xml-builder":"3.709.0","@smithy/config-resolver":"^3.0.13","@smithy/core":"^2.5.5","@smithy/eventstream-serde-browser":"^3.0.14","@smithy/eventstream-serde-config-resolver":"^3.0.11","@smithy/eventstream-serde-node":"^3.0.13","@smithy/fetch-http-handler":"^4.1.2","@smithy/hash-blob-browser":"^3.1.10","@smithy/hash-node":"^3.0.11","@smithy/hash-stream-node":"^3.1.10","@smithy/invalid-dependency":"^3.0.11","@smithy/md5-js":"^3.0.11","@smithy/middleware-content-length":"^3.0.13","@smithy/middleware-endpoint":"^3.2.6","@smithy/middleware-retry":"^3.0.31","@smithy/middleware-serde":"^3.0.11","@smithy/middleware-stack":"^3.0.11","@smithy/node-config-provider":"^3.1.12","@smithy/node-http-handler":"^3.3.2","@smithy/protocol-http":"^4.1.8","@smithy/smithy-client":"^3.5.1","@smithy/types":"^3.7.2","@smithy/url-parser":"^3.0.11","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.31","@smithy/util-defaults-mode-node":"^3.0.31","@smithy/util-endpoints":"^2.1.7","@smithy/util-middleware":"^3.0.11","@smithy/util-retry":"^3.0.11","@smithy/util-stream":"^3.3.2","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.2.0",tslib:"^2.6.2"},devDependencies={"@aws-sdk/signature-v4-crt":"3.716.0","@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines={node:">=16.0.0"},typesVersions={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files=["dist-*/**"],author={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license="Apache-2.0",browser={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},homepage="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"},packageInfo={name,description,version,scripts,main:main$1,types,module:module$1,sideEffects,dependencies,devDependencies,engines,typesVersions,files,author,license,browser,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage,repository},fromUtf8=Ra=>new TextEncoder().encode(Ra);function isEmptyData$1(Ra){return typeof Ra=="string"?Ra.length===0:Ra.byteLength===0}var SHA_1_HASH={name:"SHA-1"},SHA_1_HMAC_ALGO={name:"HMAC",hash:SHA_1_HASH},EMPTY_DATA_SHA_1=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);const fallbackWindow={};function locateWindow(){return typeof window<"u"?window:typeof self<"u"?self:fallbackWindow}var Sha1$1=function(){function Ra(qa){this.toHash=new Uint8Array(0),qa!==void 0&&(this.key=new Promise(function(nd,od){locateWindow().crypto.subtle.importKey("raw",convertToBuffer$1(qa),SHA_1_HMAC_ALGO,!1,["sign"]).then(nd,od)}),this.key.catch(function(){}))}return Ra.prototype.update=function(qa){if(!isEmptyData$1(qa)){var nd=convertToBuffer$1(qa),od=new Uint8Array(this.toHash.byteLength+nd.byteLength);od.set(this.toHash,0),od.set(nd,this.toHash.byteLength),this.toHash=od}},Ra.prototype.digest=function(){var qa=this;return this.key?this.key.then(function(nd){return locateWindow().crypto.subtle.sign(SHA_1_HMAC_ALGO,nd,qa.toHash).then(function(od){return new Uint8Array(od)})}):isEmptyData$1(this.toHash)?Promise.resolve(EMPTY_DATA_SHA_1):Promise.resolve().then(function(){return locateWindow().crypto.subtle.digest(SHA_1_HASH,qa.toHash)}).then(function(nd){return Promise.resolve(new Uint8Array(nd))})},Ra.prototype.reset=function(){this.toHash=new Uint8Array(0)},Ra}();function convertToBuffer$1(Ra){return typeof Ra=="string"?fromUtf8(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,Ra.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(Ra)}var subtleCryptoMethods=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function supportsWebCrypto(Ra){if(supportsSecureRandom(Ra)&&typeof Ra.crypto.subtle=="object"){var qa=Ra.crypto.subtle;return supportsSubtleCrypto(qa)}return!1}function supportsSecureRandom(Ra){if(typeof Ra=="object"&&typeof Ra.crypto=="object"){var qa=Ra.crypto.getRandomValues;return typeof qa=="function"}return!1}function supportsSubtleCrypto(Ra){return Ra&&subtleCryptoMethods.every(function(qa){return typeof Ra[qa]=="function"})}var Sha1=function(){function Ra(qa){if(supportsWebCrypto(locateWindow()))this.hash=new Sha1$1(qa);else throw new Error("SHA1 not supported")}return Ra.prototype.update=function(qa,nd){this.hash.update(convertToBuffer$2(qa))},Ra.prototype.digest=function(){return this.hash.digest()},Ra.prototype.reset=function(){this.hash.reset()},Ra}(),SHA_256_HASH={name:"SHA-256"},SHA_256_HMAC_ALGO={name:"HMAC",hash:SHA_256_HASH},EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),Sha256$2=function(){function Ra(qa){this.toHash=new Uint8Array(0),this.secret=qa,this.reset()}return Ra.prototype.update=function(qa){if(!isEmptyData$2(qa)){var nd=convertToBuffer$2(qa),od=new Uint8Array(this.toHash.byteLength+nd.byteLength);od.set(this.toHash,0),od.set(nd,this.toHash.byteLength),this.toHash=od}},Ra.prototype.digest=function(){var qa=this;return this.key?this.key.then(function(nd){return locateWindow().crypto.subtle.sign(SHA_256_HMAC_ALGO,nd,qa.toHash).then(function(od){return new Uint8Array(od)})}):isEmptyData$2(this.toHash)?Promise.resolve(EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return locateWindow().crypto.subtle.digest(SHA_256_HASH,qa.toHash)}).then(function(nd){return Promise.resolve(new Uint8Array(nd))})},Ra.prototype.reset=function(){var qa=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(nd,od){locateWindow().crypto.subtle.importKey("raw",convertToBuffer$2(qa.secret),SHA_256_HMAC_ALGO,!1,["sign"]).then(nd,od)}),this.key.catch(function(){}))},Ra}(),BLOCK_SIZE$1=64,DIGEST_LENGTH$1=32,KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),INIT$1=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],MAX_HASHABLE_LENGTH=Math.pow(2,53)-1,RawSha256=function(){function Ra(){this.state=Int32Array.from(INIT$1),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return Ra.prototype.update=function(qa){if(this.finished)throw new Error("Attempted to update an already finished hash.");var nd=0,od=qa.byteLength;if(this.bytesHashed+=od,this.bytesHashed*8>MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;od>0;)this.buffer[this.bufferLength++]=qa[nd++],od--,this.bufferLength===BLOCK_SIZE$1&&(this.hashBuffer(),this.bufferLength=0)},Ra.prototype.digest=function(){if(!this.finished){var qa=this.bytesHashed*8,nd=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),od=this.bufferLength;if(nd.setUint8(this.bufferLength++,128),od%BLOCK_SIZE$1>=BLOCK_SIZE$1-8){for(var ld=this.bufferLength;ld>>24&255,ud[ld*4+1]=this.state[ld]>>>16&255,ud[ld*4+2]=this.state[ld]>>>8&255,ud[ld*4+3]=this.state[ld]>>>0&255;return ud},Ra.prototype.hashBuffer=function(){for(var qa=this,nd=qa.buffer,od=qa.state,ld=od[0],ud=od[1],dd=od[2],pd=od[3],fd=od[4],md=od[5],vd=od[6],Ad=od[7],Nd=0;Nd>>17|Od<<15)^(Od>>>19|Od<<13)^Od>>>10;Od=this.temp[Nd-15];var Ld=(Od>>>7|Od<<25)^(Od>>>18|Od<<14)^Od>>>3;this.temp[Nd]=(kd+this.temp[Nd-7]|0)+(Ld+this.temp[Nd-16]|0)}var Gd=(((fd>>>6|fd<<26)^(fd>>>11|fd<<21)^(fd>>>25|fd<<7))+(fd&md^~fd&vd)|0)+(Ad+(KEY[Nd]+this.temp[Nd]|0)|0)|0,jd=((ld>>>2|ld<<30)^(ld>>>13|ld<<19)^(ld>>>22|ld<<10))+(ld&ud^ld&dd^ud&dd)|0;Ad=vd,vd=md,md=fd,fd=pd+Gd|0,pd=dd,dd=ud,ud=ld,ld=Gd+jd|0}od[0]+=ld,od[1]+=ud,od[2]+=dd,od[3]+=pd,od[4]+=fd,od[5]+=md,od[6]+=vd,od[7]+=Ad},Ra}(),Sha256$1=function(){function Ra(qa){this.secret=qa,this.hash=new RawSha256,this.reset()}return Ra.prototype.update=function(qa){if(!(isEmptyData$2(qa)||this.error))try{this.hash.update(convertToBuffer$2(qa))}catch(nd){this.error=nd}},Ra.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},Ra.prototype.digest=function(){return __awaiter$8(this,void 0,void 0,function(){return __generator$8(this,function(qa){return[2,this.digestSync()]})})},Ra.prototype.reset=function(){if(this.hash=new RawSha256,this.secret){this.outer=new RawSha256;var qa=bufferFromSecret(this.secret),nd=new Uint8Array(BLOCK_SIZE$1);nd.set(qa);for(var od=0;odBLOCK_SIZE$1){var nd=new RawSha256;nd.update(qa),qa=nd.digest()}var od=new Uint8Array(BLOCK_SIZE$1);return od.set(qa),od}var Sha256=function(){function Ra(qa){supportsWebCrypto(locateWindow())?this.hash=new Sha256$2(qa):this.hash=new Sha256$1(qa)}return Ra.prototype.update=function(qa,nd){this.hash.update(convertToBuffer$2(qa))},Ra.prototype.digest=function(){return this.hash.digest()},Ra.prototype.reset=function(){this.hash.reset()},Ra}();const BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Utils{static getFirstMatch(qa,nd){const od=nd.match(qa);return od&&od.length>0&&od[1]||""}static getSecondMatch(qa,nd){const od=nd.match(qa);return od&&od.length>1&&od[2]||""}static matchAndReturnConst(qa,nd,od){if(qa.test(nd))return od}static getWindowsVersionName(qa){switch(qa){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(qa){const nd=qa.split(".").splice(0,2).map(od=>parseInt(od,10)||0);if(nd.push(0),nd[0]===10)switch(nd[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(qa){const nd=qa.split(".").splice(0,2).map(od=>parseInt(od,10)||0);if(nd.push(0),!(nd[0]===1&&nd[1]<5)){if(nd[0]===1&&nd[1]<6)return"Cupcake";if(nd[0]===1&&nd[1]>=6)return"Donut";if(nd[0]===2&&nd[1]<2)return"Eclair";if(nd[0]===2&&nd[1]===2)return"Froyo";if(nd[0]===2&&nd[1]>2)return"Gingerbread";if(nd[0]===3)return"Honeycomb";if(nd[0]===4&&nd[1]<1)return"Ice Cream Sandwich";if(nd[0]===4&&nd[1]<4)return"Jelly Bean";if(nd[0]===4&&nd[1]>=4)return"KitKat";if(nd[0]===5)return"Lollipop";if(nd[0]===6)return"Marshmallow";if(nd[0]===7)return"Nougat";if(nd[0]===8)return"Oreo";if(nd[0]===9)return"Pie"}}static getVersionPrecision(qa){return qa.split(".").length}static compareVersions(qa,nd,od=!1){const ld=Utils.getVersionPrecision(qa),ud=Utils.getVersionPrecision(nd);let dd=Math.max(ld,ud),pd=0;const fd=Utils.map([qa,nd],md=>{const vd=dd-Utils.getVersionPrecision(md),Ad=md+new Array(vd+1).join(".0");return Utils.map(Ad.split("."),Nd=>new Array(20-Nd.length).join("0")+Nd).reverse()});for(od&&(pd=dd-Math.min(ld,ud)),dd-=1;dd>=pd;){if(fd[0][dd]>fd[1][dd])return 1;if(fd[0][dd]===fd[1][dd]){if(dd===pd)return 0;dd-=1}else if(fd[0][dd]{od[fd]=dd[fd]})}return qa}static getBrowserAlias(qa){return BROWSER_ALIASES_MAP[qa]}static getBrowserTypeByAlias(qa){return BROWSER_MAP[qa]||""}}const commonVersionIdentifier=/version\/(\d+(\.?_?\d+)+)/i,browsersList=[{test:[/googlebot/i],describe(Ra){const qa={name:"Googlebot"},nd=Utils.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/opera/i],describe(Ra){const qa={name:"Opera"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/opr\/|opios/i],describe(Ra){const qa={name:"Opera"},nd=Utils.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/SamsungBrowser/i],describe(Ra){const qa={name:"Samsung Internet for Android"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/Whale/i],describe(Ra){const qa={name:"NAVER Whale Browser"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/MZBrowser/i],describe(Ra){const qa={name:"MZ Browser"},nd=Utils.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/focus/i],describe(Ra){const qa={name:"Focus"},nd=Utils.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/swing/i],describe(Ra){const qa={name:"Swing"},nd=Utils.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/coast/i],describe(Ra){const qa={name:"Opera Coast"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(Ra){const qa={name:"Opera Touch"},nd=Utils.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/yabrowser/i],describe(Ra){const qa={name:"Yandex Browser"},nd=Utils.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/ucbrowser/i],describe(Ra){const qa={name:"UC Browser"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/Maxthon|mxios/i],describe(Ra){const qa={name:"Maxthon"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/epiphany/i],describe(Ra){const qa={name:"Epiphany"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/puffin/i],describe(Ra){const qa={name:"Puffin"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/sleipnir/i],describe(Ra){const qa={name:"Sleipnir"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/k-meleon/i],describe(Ra){const qa={name:"K-Meleon"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/micromessenger/i],describe(Ra){const qa={name:"WeChat"},nd=Utils.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/qqbrowser/i],describe(Ra){const qa={name:/qqbrowserlite/i.test(Ra)?"QQ Browser Lite":"QQ Browser"},nd=Utils.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/msie|trident/i],describe(Ra){const qa={name:"Internet Explorer"},nd=Utils.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/\sedg\//i],describe(Ra){const qa={name:"Microsoft Edge"},nd=Utils.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/edg([ea]|ios)/i],describe(Ra){const qa={name:"Microsoft Edge"},nd=Utils.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/vivaldi/i],describe(Ra){const qa={name:"Vivaldi"},nd=Utils.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/seamonkey/i],describe(Ra){const qa={name:"SeaMonkey"},nd=Utils.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/sailfish/i],describe(Ra){const qa={name:"Sailfish"},nd=Utils.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/silk/i],describe(Ra){const qa={name:"Amazon Silk"},nd=Utils.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/phantom/i],describe(Ra){const qa={name:"PhantomJS"},nd=Utils.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/slimerjs/i],describe(Ra){const qa={name:"SlimerJS"},nd=Utils.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(Ra){const qa={name:"BlackBerry"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/(web|hpw)[o0]s/i],describe(Ra){const qa={name:"WebOS Browser"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra)||Utils.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/bada/i],describe(Ra){const qa={name:"Bada"},nd=Utils.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/tizen/i],describe(Ra){const qa={name:"Tizen"},nd=Utils.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/qupzilla/i],describe(Ra){const qa={name:"QupZilla"},nd=Utils.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/firefox|iceweasel|fxios/i],describe(Ra){const qa={name:"Firefox"},nd=Utils.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/electron/i],describe(Ra){const qa={name:"Electron"},nd=Utils.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/MiuiBrowser/i],describe(Ra){const qa={name:"Miui"},nd=Utils.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/chromium/i],describe(Ra){const qa={name:"Chromium"},nd=Utils.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,Ra)||Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/chrome|crios|crmo/i],describe(Ra){const qa={name:"Chrome"},nd=Utils.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/GSA/i],describe(Ra){const qa={name:"Google Search"},nd=Utils.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test(Ra){const qa=!Ra.test(/like android/i),nd=Ra.test(/android/i);return qa&&nd},describe(Ra){const qa={name:"Android Browser"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/playstation 4/i],describe(Ra){const qa={name:"PlayStation 4"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/safari|applewebkit/i],describe(Ra){const qa={name:"Safari"},nd=Utils.getFirstMatch(commonVersionIdentifier,Ra);return nd&&(qa.version=nd),qa}},{test:[/.*/i],describe(Ra){const qa=/^(.*)\/(.*) /,nd=/^(.*)\/(.*)[ \t]\((.*)/,ld=Ra.search("\\(")!==-1?nd:qa;return{name:Utils.getFirstMatch(ld,Ra),version:Utils.getSecondMatch(ld,Ra)}}}],osParsersList=[{test:[/Roku\/DVP/],describe(Ra){const qa=Utils.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,Ra);return{name:OS_MAP.Roku,version:qa}}},{test:[/windows phone/i],describe(Ra){const qa=Utils.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,Ra);return{name:OS_MAP.WindowsPhone,version:qa}}},{test:[/windows /i],describe(Ra){const qa=Utils.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,Ra),nd=Utils.getWindowsVersionName(qa);return{name:OS_MAP.Windows,version:qa,versionName:nd}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(Ra){const qa={name:OS_MAP.iOS},nd=Utils.getSecondMatch(/(Version\/)(\d[\d.]+)/,Ra);return nd&&(qa.version=nd),qa}},{test:[/macintosh/i],describe(Ra){const qa=Utils.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,Ra).replace(/[_\s]/g,"."),nd=Utils.getMacOSVersionName(qa),od={name:OS_MAP.MacOS,version:qa};return nd&&(od.versionName=nd),od}},{test:[/(ipod|iphone|ipad)/i],describe(Ra){const qa=Utils.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,Ra).replace(/[_\s]/g,".");return{name:OS_MAP.iOS,version:qa}}},{test(Ra){const qa=!Ra.test(/like android/i),nd=Ra.test(/android/i);return qa&&nd},describe(Ra){const qa=Utils.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,Ra),nd=Utils.getAndroidVersionName(qa),od={name:OS_MAP.Android,version:qa};return nd&&(od.versionName=nd),od}},{test:[/(web|hpw)[o0]s/i],describe(Ra){const qa=Utils.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,Ra),nd={name:OS_MAP.WebOS};return qa&&qa.length&&(nd.version=qa),nd}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(Ra){const qa=Utils.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,Ra)||Utils.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,Ra)||Utils.getFirstMatch(/\bbb(\d+)/i,Ra);return{name:OS_MAP.BlackBerry,version:qa}}},{test:[/bada/i],describe(Ra){const qa=Utils.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,Ra);return{name:OS_MAP.Bada,version:qa}}},{test:[/tizen/i],describe(Ra){const qa=Utils.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,Ra);return{name:OS_MAP.Tizen,version:qa}}},{test:[/linux/i],describe(){return{name:OS_MAP.Linux}}},{test:[/CrOS/],describe(){return{name:OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe(Ra){const qa=Utils.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,Ra);return{name:OS_MAP.PlayStation4,version:qa}}}],platformParsersList=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(Ra){const qa=Utils.getFirstMatch(/(can-l01)/i,Ra)&&"Nova",nd={type:PLATFORMS_MAP.mobile,vendor:"Huawei"};return qa&&(nd.model=qa),nd}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:PLATFORMS_MAP.tablet}}},{test(Ra){const qa=Ra.test(/ipod|iphone/i),nd=Ra.test(/like (ipod|iphone)/i);return qa&&!nd},describe(Ra){const qa=Utils.getFirstMatch(/(ipod|iphone)/i,Ra);return{type:PLATFORMS_MAP.mobile,vendor:"Apple",model:qa}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:PLATFORMS_MAP.mobile}}},{test(Ra){return Ra.getBrowserName(!0)==="blackberry"},describe(){return{type:PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test(Ra){return Ra.getBrowserName(!0)==="bada"},describe(){return{type:PLATFORMS_MAP.mobile}}},{test(Ra){return Ra.getBrowserName()==="windows phone"},describe(){return{type:PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test(Ra){const qa=Number(String(Ra.getOSVersion()).split(".")[0]);return Ra.getOSName(!0)==="android"&&qa>=3},describe(){return{type:PLATFORMS_MAP.tablet}}},{test(Ra){return Ra.getOSName(!0)==="android"},describe(){return{type:PLATFORMS_MAP.mobile}}},{test(Ra){return Ra.getOSName(!0)==="macos"},describe(){return{type:PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test(Ra){return Ra.getOSName(!0)==="windows"},describe(){return{type:PLATFORMS_MAP.desktop}}},{test(Ra){return Ra.getOSName(!0)==="linux"},describe(){return{type:PLATFORMS_MAP.desktop}}},{test(Ra){return Ra.getOSName(!0)==="playstation 4"},describe(){return{type:PLATFORMS_MAP.tv}}},{test(Ra){return Ra.getOSName(!0)==="roku"},describe(){return{type:PLATFORMS_MAP.tv}}}],enginesParsersList=[{test(Ra){return Ra.getBrowserName(!0)==="microsoft edge"},describe(Ra){if(/\sedg\//i.test(Ra))return{name:ENGINE_MAP.Blink};const nd=Utils.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,Ra);return{name:ENGINE_MAP.EdgeHTML,version:nd}}},{test:[/trident/i],describe(Ra){const qa={name:ENGINE_MAP.Trident},nd=Utils.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test(Ra){return Ra.test(/presto/i)},describe(Ra){const qa={name:ENGINE_MAP.Presto},nd=Utils.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test(Ra){const qa=Ra.test(/gecko/i),nd=Ra.test(/like gecko/i);return qa&&!nd},describe(Ra){const qa={name:ENGINE_MAP.Gecko},nd=Utils.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe(Ra){const qa={name:ENGINE_MAP.WebKit},nd=Utils.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,Ra);return nd&&(qa.version=nd),qa}}];class Parser{constructor(qa,nd=!1){if(qa==null||qa==="")throw new Error("UserAgent parameter can't be empty");this._ua=qa,this.parsedResult={},nd!==!0&&this.parse()}getUA(){return this._ua}test(qa){return qa.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const qa=Utils.find(browsersList,nd=>{if(typeof nd.test=="function")return nd.test(this);if(nd.test instanceof Array)return nd.test.some(od=>this.test(od));throw new Error("Browser's test function is not valid")});return qa&&(this.parsedResult.browser=qa.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(qa){return qa?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const qa=Utils.find(osParsersList,nd=>{if(typeof nd.test=="function")return nd.test(this);if(nd.test instanceof Array)return nd.test.some(od=>this.test(od));throw new Error("Browser's test function is not valid")});return qa&&(this.parsedResult.os=qa.describe(this.getUA())),this.parsedResult.os}getOSName(qa){const{name:nd}=this.getOS();return qa?String(nd).toLowerCase()||"":nd||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(qa=!1){const{type:nd}=this.getPlatform();return qa?String(nd).toLowerCase()||"":nd||""}parsePlatform(){this.parsedResult.platform={};const qa=Utils.find(platformParsersList,nd=>{if(typeof nd.test=="function")return nd.test(this);if(nd.test instanceof Array)return nd.test.some(od=>this.test(od));throw new Error("Browser's test function is not valid")});return qa&&(this.parsedResult.platform=qa.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(qa){return qa?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const qa=Utils.find(enginesParsersList,nd=>{if(typeof nd.test=="function")return nd.test(this);if(nd.test instanceof Array)return nd.test.some(od=>this.test(od));throw new Error("Browser's test function is not valid")});return qa&&(this.parsedResult.engine=qa.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Utils.assign({},this.parsedResult)}satisfies(qa){const nd={};let od=0;const ld={};let ud=0;if(Object.keys(qa).forEach(pd=>{const fd=qa[pd];typeof fd=="string"?(ld[pd]=fd,ud+=1):typeof fd=="object"&&(nd[pd]=fd,od+=1)}),od>0){const pd=Object.keys(nd),fd=Utils.find(pd,vd=>this.isOS(vd));if(fd){const vd=this.satisfies(nd[fd]);if(vd!==void 0)return vd}const md=Utils.find(pd,vd=>this.isPlatform(vd));if(md){const vd=this.satisfies(nd[md]);if(vd!==void 0)return vd}}if(ud>0){const pd=Object.keys(ld),fd=Utils.find(pd,md=>this.isBrowser(md,!0));if(fd!==void 0)return this.compareVersion(ld[fd])}}isBrowser(qa,nd=!1){const od=this.getBrowserName().toLowerCase();let ld=qa.toLowerCase();const ud=Utils.getBrowserTypeByAlias(ld);return nd&&ud&&(ld=ud.toLowerCase()),ld===od}compareVersion(qa){let nd=[0],od=qa,ld=!1;const ud=this.getBrowserVersion();if(typeof ud=="string")return qa[0]===">"||qa[0]==="<"?(od=qa.substr(1),qa[1]==="="?(ld=!0,od=qa.substr(2)):nd=[],qa[0]===">"?nd.push(1):nd.push(-1)):qa[0]==="="?od=qa.substr(1):qa[0]==="~"&&(ld=!0,od=qa.substr(1)),nd.indexOf(Utils.compareVersions(ud,od,ld))>-1}isOS(qa){return this.getOSName(!0)===String(qa).toLowerCase()}isPlatform(qa){return this.getPlatformType(!0)===String(qa).toLowerCase()}isEngine(qa){return this.getEngineName(!0)===String(qa).toLowerCase()}is(qa,nd=!1){return this.isBrowser(qa,nd)||this.isOS(qa)||this.isPlatform(qa)}some(qa=[]){return qa.some(nd=>this.is(nd))}}/*! * Bowser - a browser detector * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 - */class Bowser{static getParser(qa,nd=!1){if(typeof qa!="string")throw new Error("UserAgent should be a string");return new Parser(qa,nd)}static parse(qa){return new Parser(qa).getResult()}static get BROWSER_MAP(){return BROWSER_MAP}static get ENGINE_MAP(){return ENGINE_MAP}static get OS_MAP(){return OS_MAP}static get PLATFORMS_MAP(){return PLATFORMS_MAP}}const createDefaultUserAgentProvider=({serviceId:Ra,clientVersion:qa})=>async nd=>{var dd,pd,fd,md,vd,Ad;const od=typeof window<"u"&&((dd=window==null?void 0:window.navigator)!=null&&dd.userAgent)?Bowser.parse(window.navigator.userAgent):void 0,ld=[["aws-sdk-js",qa],["ua","2.1"],[`os/${((pd=od==null?void 0:od.os)==null?void 0:pd.name)||"other"}`,(fd=od==null?void 0:od.os)==null?void 0:fd.version],["lang/js"],["md/browser",`${((md=od==null?void 0:od.browser)==null?void 0:md.name)??"unknown"}_${((vd=od==null?void 0:od.browser)==null?void 0:vd.version)??"unknown"}`]];Ra&&ld.push([`api/${Ra}`,qa]);const ud=await((Ad=nd==null?void 0:nd.userAgentAppId)==null?void 0:Ad.call(nd));return ud&&ld.push([`app/${ud}`]),ld};class Int64{constructor(qa){if(this.bytes=qa,qa.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(qa){if(qa>9223372036854776e3||qa<-9223372036854776e3)throw new Error(`${qa} is too large (or, if negative, too small) to represent as an Int64`);const nd=new Uint8Array(8);for(let od=7,ld=Math.abs(Math.round(qa));od>-1&&ld>0;od--,ld/=256)nd[od]=ld;return qa<0&&negate(nd),new Int64(nd)}valueOf(){const qa=this.bytes.slice(0),nd=qa[0]&128;return nd&&negate(qa),parseInt(toHex(qa),16)*(nd?-1:1)}toString(){return String(this.valueOf())}}function negate(Ra){for(let qa=0;qa<8;qa++)Ra[qa]^=255;for(let qa=7;qa>-1&&(Ra[qa]++,Ra[qa]===0);qa--);}class HeaderMarshaller{constructor(qa,nd){this.toUtf8=qa,this.fromUtf8=nd}format(qa){const nd=[];for(const ud of Object.keys(qa)){const dd=this.fromUtf8(ud);nd.push(Uint8Array.from([dd.byteLength]),dd,this.formatHeaderValue(qa[ud]))}const od=new Uint8Array(nd.reduce((ud,dd)=>ud+dd.byteLength,0));let ld=0;for(const ud of nd)od.set(ud,ld),ld+=ud.byteLength;return od}formatHeaderValue(qa){switch(qa.type){case"boolean":return Uint8Array.from([qa.value?0:1]);case"byte":return Uint8Array.from([2,qa.value]);case"short":const nd=new DataView(new ArrayBuffer(3));return nd.setUint8(0,3),nd.setInt16(1,qa.value,!1),new Uint8Array(nd.buffer);case"integer":const od=new DataView(new ArrayBuffer(5));return od.setUint8(0,4),od.setInt32(1,qa.value,!1),new Uint8Array(od.buffer);case"long":const ld=new Uint8Array(9);return ld[0]=5,ld.set(qa.value.bytes,1),ld;case"binary":const ud=new DataView(new ArrayBuffer(3+qa.value.byteLength));ud.setUint8(0,6),ud.setUint16(1,qa.value.byteLength,!1);const dd=new Uint8Array(ud.buffer);return dd.set(qa.value,3),dd;case"string":const pd=this.fromUtf8(qa.value),fd=new DataView(new ArrayBuffer(3+pd.byteLength));fd.setUint8(0,7),fd.setUint16(1,pd.byteLength,!1);const md=new Uint8Array(fd.buffer);return md.set(pd,3),md;case"timestamp":const vd=new Uint8Array(9);return vd[0]=8,vd.set(Int64.fromNumber(qa.value.valueOf()).bytes,1),vd;case"uuid":if(!UUID_PATTERN.test(qa.value))throw new Error(`Invalid UUID received: ${qa.value}`);const Ad=new Uint8Array(17);return Ad[0]=9,Ad.set(fromHex(qa.value.replace(/\-/g,"")),1),Ad}}parse(qa){const nd={};let od=0;for(;od{if(typeof pd!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+pd);qa=pd,nd=4,od=new Uint8Array(pd),new DataView(od.buffer).setUint32(0,pd,!1)},dd=async function*(){const pd=Ra[Symbol.asyncIterator]();for(;;){const{value:fd,done:md}=await pd.next();if(md){if(qa)if(qa===nd)yield od;else throw new Error("Truncated event message received.");else return;return}const vd=fd.length;let Ad=0;for(;Ad({[Symbol.asyncIterator]:async function*(){const qa=Ra.getReader();try{for(;;){const{done:nd,value:od}=await qa.read();if(nd)return;yield od}}finally{qa.releaseLock()}}}),iterableToReadableStream=Ra=>{const qa=Ra[Symbol.asyncIterator]();return new ReadableStream({async pull(nd){const{done:od,value:ld}=await qa.next();if(od)return nd.close();nd.enqueue(ld)}})};class EventStreamMarshaller{constructor({utf8Encoder:qa,utf8Decoder:nd}){this.universalMarshaller=new EventStreamMarshaller$1({utf8Decoder:nd,utf8Encoder:qa})}deserialize(qa,nd){const od=isReadableStream$1(qa)?readableStreamtoIterable(qa):qa;return this.universalMarshaller.deserialize(od,nd)}serialize(qa,nd){const od=this.universalMarshaller.serialize(qa,nd);return typeof ReadableStream=="function"?iterableToReadableStream(od):od}}const isReadableStream$1=Ra=>typeof ReadableStream=="function"&&Ra instanceof ReadableStream,eventStreamSerdeProvider=Ra=>new EventStreamMarshaller(Ra);async function blobReader(Ra,qa,nd=1024*1024){const od=Ra.size;let ld=0;for(;ld{od.update(ld)}),od.digest()},invalidProvider=Ra=>()=>Promise.reject(Ra),BLOCK_SIZE=64,DIGEST_LENGTH=16,INIT=[1732584193,4023233417,2562383102,271733878];class Md5{constructor(){this.reset()}update(qa){if(isEmptyData(qa))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const nd=convertToBuffer(qa);let od=0,{byteLength:ld}=nd;for(this.bytesHashed+=ld;ld>0;)this.buffer.setUint8(this.bufferLength++,nd[od++]),ld--,this.bufferLength===BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:nd,bufferLength:od,bytesHashed:ld}=this,ud=ld*8;if(nd.setUint8(this.bufferLength++,128),od%BLOCK_SIZE>=BLOCK_SIZE-8){for(let dd=this.bufferLength;dd>>0,!0),nd.setUint32(BLOCK_SIZE-4,Math.floor(ud/4294967296),!0),this.hashBuffer(),this.finished=!0}const qa=new DataView(new ArrayBuffer(DIGEST_LENGTH));for(let nd=0;nd<4;nd++)qa.setUint32(nd*4,this.state[nd],!0);return new Uint8Array(qa.buffer,qa.byteOffset,qa.byteLength)}hashBuffer(){const{buffer:qa,state:nd}=this;let od=nd[0],ld=nd[1],ud=nd[2],dd=nd[3];od=ff(od,ld,ud,dd,qa.getUint32(0,!0),7,3614090360),dd=ff(dd,od,ld,ud,qa.getUint32(4,!0),12,3905402710),ud=ff(ud,dd,od,ld,qa.getUint32(8,!0),17,606105819),ld=ff(ld,ud,dd,od,qa.getUint32(12,!0),22,3250441966),od=ff(od,ld,ud,dd,qa.getUint32(16,!0),7,4118548399),dd=ff(dd,od,ld,ud,qa.getUint32(20,!0),12,1200080426),ud=ff(ud,dd,od,ld,qa.getUint32(24,!0),17,2821735955),ld=ff(ld,ud,dd,od,qa.getUint32(28,!0),22,4249261313),od=ff(od,ld,ud,dd,qa.getUint32(32,!0),7,1770035416),dd=ff(dd,od,ld,ud,qa.getUint32(36,!0),12,2336552879),ud=ff(ud,dd,od,ld,qa.getUint32(40,!0),17,4294925233),ld=ff(ld,ud,dd,od,qa.getUint32(44,!0),22,2304563134),od=ff(od,ld,ud,dd,qa.getUint32(48,!0),7,1804603682),dd=ff(dd,od,ld,ud,qa.getUint32(52,!0),12,4254626195),ud=ff(ud,dd,od,ld,qa.getUint32(56,!0),17,2792965006),ld=ff(ld,ud,dd,od,qa.getUint32(60,!0),22,1236535329),od=gg(od,ld,ud,dd,qa.getUint32(4,!0),5,4129170786),dd=gg(dd,od,ld,ud,qa.getUint32(24,!0),9,3225465664),ud=gg(ud,dd,od,ld,qa.getUint32(44,!0),14,643717713),ld=gg(ld,ud,dd,od,qa.getUint32(0,!0),20,3921069994),od=gg(od,ld,ud,dd,qa.getUint32(20,!0),5,3593408605),dd=gg(dd,od,ld,ud,qa.getUint32(40,!0),9,38016083),ud=gg(ud,dd,od,ld,qa.getUint32(60,!0),14,3634488961),ld=gg(ld,ud,dd,od,qa.getUint32(16,!0),20,3889429448),od=gg(od,ld,ud,dd,qa.getUint32(36,!0),5,568446438),dd=gg(dd,od,ld,ud,qa.getUint32(56,!0),9,3275163606),ud=gg(ud,dd,od,ld,qa.getUint32(12,!0),14,4107603335),ld=gg(ld,ud,dd,od,qa.getUint32(32,!0),20,1163531501),od=gg(od,ld,ud,dd,qa.getUint32(52,!0),5,2850285829),dd=gg(dd,od,ld,ud,qa.getUint32(8,!0),9,4243563512),ud=gg(ud,dd,od,ld,qa.getUint32(28,!0),14,1735328473),ld=gg(ld,ud,dd,od,qa.getUint32(48,!0),20,2368359562),od=hh(od,ld,ud,dd,qa.getUint32(20,!0),4,4294588738),dd=hh(dd,od,ld,ud,qa.getUint32(32,!0),11,2272392833),ud=hh(ud,dd,od,ld,qa.getUint32(44,!0),16,1839030562),ld=hh(ld,ud,dd,od,qa.getUint32(56,!0),23,4259657740),od=hh(od,ld,ud,dd,qa.getUint32(4,!0),4,2763975236),dd=hh(dd,od,ld,ud,qa.getUint32(16,!0),11,1272893353),ud=hh(ud,dd,od,ld,qa.getUint32(28,!0),16,4139469664),ld=hh(ld,ud,dd,od,qa.getUint32(40,!0),23,3200236656),od=hh(od,ld,ud,dd,qa.getUint32(52,!0),4,681279174),dd=hh(dd,od,ld,ud,qa.getUint32(0,!0),11,3936430074),ud=hh(ud,dd,od,ld,qa.getUint32(12,!0),16,3572445317),ld=hh(ld,ud,dd,od,qa.getUint32(24,!0),23,76029189),od=hh(od,ld,ud,dd,qa.getUint32(36,!0),4,3654602809),dd=hh(dd,od,ld,ud,qa.getUint32(48,!0),11,3873151461),ud=hh(ud,dd,od,ld,qa.getUint32(60,!0),16,530742520),ld=hh(ld,ud,dd,od,qa.getUint32(8,!0),23,3299628645),od=ii(od,ld,ud,dd,qa.getUint32(0,!0),6,4096336452),dd=ii(dd,od,ld,ud,qa.getUint32(28,!0),10,1126891415),ud=ii(ud,dd,od,ld,qa.getUint32(56,!0),15,2878612391),ld=ii(ld,ud,dd,od,qa.getUint32(20,!0),21,4237533241),od=ii(od,ld,ud,dd,qa.getUint32(48,!0),6,1700485571),dd=ii(dd,od,ld,ud,qa.getUint32(12,!0),10,2399980690),ud=ii(ud,dd,od,ld,qa.getUint32(40,!0),15,4293915773),ld=ii(ld,ud,dd,od,qa.getUint32(4,!0),21,2240044497),od=ii(od,ld,ud,dd,qa.getUint32(32,!0),6,1873313359),dd=ii(dd,od,ld,ud,qa.getUint32(60,!0),10,4264355552),ud=ii(ud,dd,od,ld,qa.getUint32(24,!0),15,2734768916),ld=ii(ld,ud,dd,od,qa.getUint32(52,!0),21,1309151649),od=ii(od,ld,ud,dd,qa.getUint32(16,!0),6,4149444226),dd=ii(dd,od,ld,ud,qa.getUint32(44,!0),10,3174756917),ud=ii(ud,dd,od,ld,qa.getUint32(8,!0),15,718787259),ld=ii(ld,ud,dd,od,qa.getUint32(36,!0),21,3951481745),nd[0]=od+nd[0]&4294967295,nd[1]=ld+nd[1]&4294967295,nd[2]=ud+nd[2]&4294967295,nd[3]=dd+nd[3]&4294967295}reset(){this.state=Uint32Array.from(INIT),this.buffer=new DataView(new ArrayBuffer(BLOCK_SIZE)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function cmn(Ra,qa,nd,od,ld,ud){return qa=(qa+Ra&4294967295)+(od+ud&4294967295)&4294967295,(qa<>>32-ld)+nd&4294967295}function ff(Ra,qa,nd,od,ld,ud,dd){return cmn(qa&nd|~qa&od,Ra,qa,ld,ud,dd)}function gg(Ra,qa,nd,od,ld,ud,dd){return cmn(qa&od|nd&~od,Ra,qa,ld,ud,dd)}function hh(Ra,qa,nd,od,ld,ud,dd){return cmn(qa^nd^od,Ra,qa,ld,ud,dd)}function ii(Ra,qa,nd,od,ld,ud,dd){return cmn(nd^(qa|~od),Ra,qa,ld,ud,dd)}function isEmptyData(Ra){return typeof Ra=="string"?Ra.length===0:Ra.byteLength===0}function convertToBuffer(Ra){return typeof Ra=="string"?fromUtf8$3(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,Ra.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(Ra)}const TEXT_ENCODER=typeof TextEncoder=="function"?new TextEncoder:null,calculateBodyLength=Ra=>{if(typeof Ra=="string"){if(TEXT_ENCODER)return TEXT_ENCODER.encode(Ra).byteLength;let qa=Ra.length;for(let nd=qa-1;nd>=0;nd--){const od=Ra.charCodeAt(nd);od>127&&od<=2047?qa++:od>2047&&od<=65535&&(qa+=2),od>=56320&&od<=57343&&nd--}return qa}else{if(typeof Ra.byteLength=="number")return Ra.byteLength;if(typeof Ra.size=="number")return Ra.size}throw new Error(`Body Length computation failed for ${Ra}`)},getRuntimeConfig$1=Ra=>({apiVersion:"2006-03-01",base64Decoder:(Ra==null?void 0:Ra.base64Decoder)??fromBase64,base64Encoder:(Ra==null?void 0:Ra.base64Encoder)??toBase64,disableHostPrefix:(Ra==null?void 0:Ra.disableHostPrefix)??!1,endpointProvider:(Ra==null?void 0:Ra.endpointProvider)??defaultEndpointResolver,extensions:(Ra==null?void 0:Ra.extensions)??[],getAwsChunkedEncodingStream:(Ra==null?void 0:Ra.getAwsChunkedEncodingStream)??getAwsChunkedEncodingStream,httpAuthSchemeProvider:(Ra==null?void 0:Ra.httpAuthSchemeProvider)??defaultS3HttpAuthSchemeProvider,httpAuthSchemes:(Ra==null?void 0:Ra.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:qa=>qa.getIdentityProvider("aws.auth#sigv4"),signer:new AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:qa=>qa.getIdentityProvider("aws.auth#sigv4a"),signer:new AwsSdkSigV4ASigner}],logger:(Ra==null?void 0:Ra.logger)??new NoOpLogger,sdkStreamMixin:(Ra==null?void 0:Ra.sdkStreamMixin)??sdkStreamMixin,serviceId:(Ra==null?void 0:Ra.serviceId)??"S3",signerConstructor:(Ra==null?void 0:Ra.signerConstructor)??SignatureV4MultiRegion,signingEscapePath:(Ra==null?void 0:Ra.signingEscapePath)??!1,urlParser:(Ra==null?void 0:Ra.urlParser)??parseUrl,useArnRegion:(Ra==null?void 0:Ra.useArnRegion)??!1,utf8Decoder:(Ra==null?void 0:Ra.utf8Decoder)??fromUtf8$3,utf8Encoder:(Ra==null?void 0:Ra.utf8Encoder)??toUtf8}),DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"],resolveDefaultsModeConfig=({defaultsMode:Ra}={})=>memoize$1(async()=>{const qa=typeof Ra=="function"?await Ra():Ra;switch(qa==null?void 0:qa.toLowerCase()){case"auto":return Promise.resolve(isMobileBrowser()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(qa==null?void 0:qa.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${qa}`)}}),isMobileBrowser=()=>{var nd,od;const Ra=typeof window<"u"&&((nd=window==null?void 0:window.navigator)!=null&&nd.userAgent)?Bowser.parse(window.navigator.userAgent):void 0,qa=(od=Ra==null?void 0:Ra.platform)==null?void 0:od.type;return qa==="tablet"||qa==="mobile"},getRuntimeConfig=Ra=>{const qa=resolveDefaultsModeConfig(Ra),nd=()=>qa().then(loadConfigsForDefaultMode),od=getRuntimeConfig$1(Ra);return{...od,...Ra,runtime:"browser",defaultsMode:qa,bodyLengthChecker:(Ra==null?void 0:Ra.bodyLengthChecker)??calculateBodyLength,credentialDefaultProvider:(Ra==null?void 0:Ra.credentialDefaultProvider)??(ld=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(Ra==null?void 0:Ra.defaultUserAgentProvider)??createDefaultUserAgentProvider({serviceId:od.serviceId,clientVersion:packageInfo.version}),eventStreamSerdeProvider:(Ra==null?void 0:Ra.eventStreamSerdeProvider)??eventStreamSerdeProvider,maxAttempts:(Ra==null?void 0:Ra.maxAttempts)??DEFAULT_MAX_ATTEMPTS,md5:(Ra==null?void 0:Ra.md5)??Md5,region:(Ra==null?void 0:Ra.region)??invalidProvider("Region is missing"),requestHandler:FetchHttpHandler.create((Ra==null?void 0:Ra.requestHandler)??nd),retryMode:(Ra==null?void 0:Ra.retryMode)??(async()=>(await nd()).retryMode||DEFAULT_RETRY_MODE),sha1:(Ra==null?void 0:Ra.sha1)??Sha1,sha256:(Ra==null?void 0:Ra.sha256)??Sha256,streamCollector:(Ra==null?void 0:Ra.streamCollector)??streamCollector,streamHasher:(Ra==null?void 0:Ra.streamHasher)??blobHasher,useDualstackEndpoint:(Ra==null?void 0:Ra.useDualstackEndpoint)??(()=>Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:(Ra==null?void 0:Ra.useFipsEndpoint)??(()=>Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT))}},getAwsRegionExtensionConfiguration=Ra=>{let qa=async()=>{if(Ra.region===void 0)throw new Error("Region is missing from runtimeConfig");const nd=Ra.region;return typeof nd=="string"?nd:nd()};return{setRegion(nd){qa=nd},region(){return qa}}},resolveAwsRegionExtensionConfiguration=Ra=>({region:Ra.region()}),getHttpAuthExtensionConfiguration=Ra=>{const qa=Ra.httpAuthSchemes;let nd=Ra.httpAuthSchemeProvider,od=Ra.credentials;return{setHttpAuthScheme(ld){const ud=qa.findIndex(dd=>dd.schemeId===ld.schemeId);ud===-1?qa.push(ld):qa.splice(ud,1,ld)},httpAuthSchemes(){return qa},setHttpAuthSchemeProvider(ld){nd=ld},httpAuthSchemeProvider(){return nd},setCredentials(ld){od=ld},credentials(){return od}}},resolveHttpAuthRuntimeConfig=Ra=>({httpAuthSchemes:Ra.httpAuthSchemes(),httpAuthSchemeProvider:Ra.httpAuthSchemeProvider(),credentials:Ra.credentials()}),asPartial=Ra=>Ra,resolveRuntimeExtensions=(Ra,qa)=>{const nd={...asPartial(getAwsRegionExtensionConfiguration(Ra)),...asPartial(getDefaultExtensionConfiguration(Ra)),...asPartial(getHttpHandlerExtensionConfiguration(Ra)),...asPartial(getHttpAuthExtensionConfiguration(Ra))};return qa.forEach(od=>od.configure(nd)),{...Ra,...resolveAwsRegionExtensionConfiguration(nd),...resolveDefaultRuntimeConfig(nd),...resolveHttpHandlerRuntimeConfig(nd),...resolveHttpAuthRuntimeConfig(nd)}};class S3Client extends Client$1{constructor(...[qa]){const nd=getRuntimeConfig(qa||{}),od=resolveClientEndpointParameters(nd),ld=resolveUserAgentConfig(od),ud=resolveFlexibleChecksumsConfig(ld),dd=resolveRetryConfig(ud),pd=resolveRegionConfig(dd),fd=pd,md=resolveEndpointConfig(fd),vd=resolveEventStreamSerdeConfig(md),Ad=resolveHttpAuthSchemeConfig(vd),Nd=resolveS3Config(Ad,{session:[()=>this,CreateSessionCommand]}),Od=resolveRuntimeExtensions(Nd,(qa==null?void 0:qa.extensions)||[]);super(Od),this.config=Od,this.middlewareStack.use(getUserAgentPlugin(this.config)),this.middlewareStack.use(getRetryPlugin(this.config)),this.middlewareStack.use(getContentLengthPlugin(this.config)),this.middlewareStack.use(getHostHeaderPlugin(this.config)),this.middlewareStack.use(getLoggerPlugin(this.config)),this.middlewareStack.use(getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:defaultS3HttpAuthSchemeParametersProvider,identityProviderConfigProvider:async kd=>new DefaultIdentityProviderConfig({"aws.auth#sigv4":kd.credentials,"aws.auth#sigv4a":kd.credentials})})),this.middlewareStack.use(getHttpSigningPlugin(this.config)),this.middlewareStack.use(getValidateBucketNamePlugin(this.config)),this.middlewareStack.use(getAddExpectContinuePlugin(this.config)),this.middlewareStack.use(getRegionRedirectMiddlewarePlugin(this.config)),this.middlewareStack.use(getS3ExpressPlugin(this.config)),this.middlewareStack.use(getS3ExpressHttpSigningPlugin(this.config))}destroy(){super.destroy()}}function ssecMiddleware(Ra){return qa=>async nd=>{const od={...nd.input},ld=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const ud of ld){const dd=od[ud.target];if(dd){let pd;typeof dd=="string"?isValidBase64EncodedSSECustomerKey(dd,Ra)?pd=Ra.base64Decoder(dd):(pd=Ra.utf8Decoder(dd),od[ud.target]=Ra.base64Encoder(pd)):(pd=ArrayBuffer.isView(dd)?new Uint8Array(dd.buffer,dd.byteOffset,dd.byteLength):new Uint8Array(dd),od[ud.target]=Ra.base64Encoder(pd));const fd=new Ra.md5;fd.update(pd),od[ud.hash]=Ra.base64Encoder(await fd.digest())}}return qa({...nd,input:od})}}const ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},getSsecPlugin=Ra=>({applyToStack:qa=>{qa.add(ssecMiddleware(Ra),ssecMiddlewareOptions)}});function isValidBase64EncodedSSECustomerKey(Ra,qa){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(Ra))return!1;try{return qa.base64Decoder(Ra).length===32}catch{return!1}}class PutObjectCommand extends Command.classBuilder().ep({...commonParams,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(qa,nd,od,ld){return[getSerdePlugin(od,this.serialize,this.deserialize),getEndpointPlugin(od,qa.getEndpointParameterInstructions()),getFlexibleChecksumsPlugin(od,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),getCheckContentLengthHeaderPlugin(),getThrow200ExceptionsPlugin(od),getSsecPlugin(od)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").f(PutObjectRequestFilterSensitiveLog,PutObjectOutputFilterSensitiveLog).ser(se_PutObjectCommand).de(de_PutObjectCommand).build(){}var toString=Object.prototype.toString,isModern=typeof Buffer$4<"u"&&typeof Buffer$4.alloc=="function"&&typeof Buffer$4.allocUnsafe=="function"&&typeof Buffer$4.from=="function";function isArrayBuffer(Ra){return toString.call(Ra).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(Ra,qa,nd){qa>>>=0;var od=Ra.byteLength-qa;if(od<0)throw new RangeError("'offset' is out of bounds");if(nd===void 0)nd=od;else if(nd>>>=0,nd>od)throw new RangeError("'length' is out of bounds");return isModern?Buffer$4.from(Ra.slice(qa,qa+nd)):new Buffer$4(new Uint8Array(Ra.slice(qa,qa+nd)))}function fromString(Ra,qa){if((typeof qa!="string"||qa==="")&&(qa="utf8"),!Buffer$4.isEncoding(qa))throw new TypeError('"encoding" must be a valid string encoding');return isModern?Buffer$4.from(Ra,qa):new Buffer$4(Ra,qa)}function bufferFrom(Ra,qa,nd){if(typeof Ra=="number")throw new TypeError('"value" argument must not be a number');return isArrayBuffer(Ra)?fromArrayBuffer(Ra,qa,nd):typeof Ra=="string"?fromString(Ra,qa):isModern?Buffer$4.from(Ra):new Buffer$4(Ra)}var bufferFrom_1=bufferFrom;const Buffer$1=getDefaultExportFromCjs(bufferFrom_1);var cosJsSdkV5={exports:{}};(function(Ra,qa){(function(od,ld){Ra.exports=ld()})(commonjsGlobal,function(){return function(nd){var od={};function ld(ud){if(od[ud])return od[ud].exports;var dd=od[ud]={i:ud,l:!1,exports:{}};return nd[ud].call(dd.exports,dd,dd.exports,ld),dd.l=!0,dd.exports}return ld.m=nd,ld.c=od,ld.d=function(ud,dd,pd){ld.o(ud,dd)||Object.defineProperty(ud,dd,{enumerable:!0,get:pd})},ld.r=function(ud){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ud,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ud,"__esModule",{value:!0})},ld.t=function(ud,dd){if(dd&1&&(ud=ld(ud)),dd&8||dd&4&&typeof ud=="object"&&ud&&ud.__esModule)return ud;var pd=Object.create(null);if(ld.r(pd),Object.defineProperty(pd,"default",{enumerable:!0,value:ud}),dd&2&&typeof ud!="string")for(var fd in ud)ld.d(pd,fd,(function(md){return ud[md]}).bind(null,fd));return pd},ld.n=function(ud){var dd=ud&&ud.__esModule?function(){return ud.default}:function(){return ud};return ld.d(dd,"a",dd),dd},ld.o=function(ud,dd){return Object.prototype.hasOwnProperty.call(ud,dd)},ld.p="/dist/",ld(ld.s="./index.js")}({"./index.js":function(nd,od,ld){var ud=ld("./src/cos.js");nd.exports=ud},"./lib/base64.js":function(nd,od){var ld=function(ud){ud=ud||{};var dd=ud.Base64,pd="2.1.9",fd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",md=function(Tf){for(var vf={},Af=0,Sf=Tf.length;Af>>6)+vd(128|Af&63):vd(224|Af>>>12&15)+vd(128|Af>>>6&63)+vd(128|Af&63)}else{var Af=65536+(vf.charCodeAt(0)-55296)*1024+(vf.charCodeAt(1)-56320);return vd(240|Af>>>18&7)+vd(128|Af>>>12&63)+vd(128|Af>>>6&63)+vd(128|Af&63)}},Nd=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Od=function(vf){return vf.replace(Nd,Ad)},kd=function(vf){var Af=[0,2,1][vf.length%3],Sf=vf.charCodeAt(0)<<16|(vf.length>1?vf.charCodeAt(1):0)<<8|(vf.length>2?vf.charCodeAt(2):0),Df=[fd.charAt(Sf>>>18),fd.charAt(Sf>>>12&63),Af>=2?"=":fd.charAt(Sf>>>6&63),Af>=1?"=":fd.charAt(Sf&63)];return Df.join("")},Ld=ud.btoa?function(Tf){return ud.btoa(Tf)}:function(Tf){return Tf.replace(/[\s\S]{1,3}/g,kd)},Gd=function(Tf){return Ld(Od(Tf))},Ud=function(vf,Af){return Af?Gd(String(vf)).replace(/[+\/]/g,function(Sf){return Sf=="+"?"-":"_"}).replace(/=/g,""):Gd(String(vf))},Fd=function(vf){return Ud(vf,!0)},jd=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),qd=function(vf){switch(vf.length){case 4:var Af=(7&vf.charCodeAt(0))<<18|(63&vf.charCodeAt(1))<<12|(63&vf.charCodeAt(2))<<6|63&vf.charCodeAt(3),Sf=Af-65536;return vd((Sf>>>10)+55296)+vd((Sf&1023)+56320);case 3:return vd((15&vf.charCodeAt(0))<<12|(63&vf.charCodeAt(1))<<6|63&vf.charCodeAt(2));default:return vd((31&vf.charCodeAt(0))<<6|63&vf.charCodeAt(1))}},zd=function(vf){return vf.replace(jd,qd)},Yd=function(vf){var Af=vf.length,Sf=Af%4,Df=(Af>0?md[vf.charAt(0)]<<18:0)|(Af>1?md[vf.charAt(1)]<<12:0)|(Af>2?md[vf.charAt(2)]<<6:0)|(Af>3?md[vf.charAt(3)]:0),If=[vd(Df>>>16),vd(Df>>>8&255),vd(Df&255)];return If.length-=[0,0,2,1][Sf],If.join("")},Jd=ud.atob?function(Tf){return ud.atob(Tf)}:function(Tf){return Tf.replace(/[\s\S]{1,4}/g,Yd)},yf=function(Tf){return zd(Jd(Tf))},Xd=function(vf){return yf(String(vf).replace(/[-_]/g,function(Af){return Af=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},pf=function(){var vf=ud.Base64;return ud.Base64=dd,vf},mf={VERSION:pd,atob:Jd,btoa:Ld,fromBase64:Xd,toBase64:Ud,utob:Od,encode:Ud,encodeURI:Fd,btou:zd,decode:Xd,noConflict:pf};return mf}();nd.exports=ld},"./lib/crypto.js":function(nd,od,ld){(function(ud){var dd=ld("./node_modules/@babel/runtime/helpers/typeof.js"),pd=pd||function(fd,md){var vd={},Ad=vd.lib={},Nd=function(){},Od=Ad.Base={extend:function(Yd){Nd.prototype=this;var Jd=new Nd;return Yd&&Jd.mixIn(Yd),Jd.hasOwnProperty("init")||(Jd.init=function(){Jd.$super.init.apply(this,arguments)}),Jd.init.prototype=Jd,Jd.$super=this,Jd},create:function(){var Yd=this.extend();return Yd.init.apply(Yd,arguments),Yd},init:function(){},mixIn:function(Yd){for(var Jd in Yd)Yd.hasOwnProperty(Jd)&&(this[Jd]=Yd[Jd]);Yd.hasOwnProperty("toString")&&(this.toString=Yd.toString)},clone:function(){return this.init.prototype.extend(this)}},kd=Ad.WordArray=Od.extend({init:function(Yd,Jd){Yd=this.words=Yd||[],this.sigBytes=Jd!=md?Jd:4*Yd.length},toString:function(Yd){return(Yd||Gd).stringify(this)},concat:function(Yd){var Jd=this.words,yf=Yd.words,Xd=this.sigBytes;if(Yd=Yd.sigBytes,this.clamp(),Xd%4)for(var pf=0;pf>>2]|=(yf[pf>>>2]>>>24-8*(pf%4)&255)<<24-8*((Xd+pf)%4);else if(65535>>2]=yf[pf>>>2];else Jd.push.apply(Jd,yf);return this.sigBytes+=Yd,this},clamp:function(){var Yd=this.words,Jd=this.sigBytes;Yd[Jd>>>2]&=4294967295<<32-8*(Jd%4),Yd.length=fd.ceil(Jd/4)},clone:function(){var Yd=Od.clone.call(this);return Yd.words=this.words.slice(0),Yd},random:function(Yd){for(var Jd=[],yf=0;yf>>2]>>>24-8*(Xd%4)&255;yf.push((pf>>>4).toString(16)),yf.push((pf&15).toString(16))}return yf.join("")},parse:function(Yd){for(var Jd=Yd.length,yf=[],Xd=0;Xd>>3]|=parseInt(Yd.substr(Xd,2),16)<<24-4*(Xd%8);return new kd.init(yf,Jd/2)}},Ud=Ld.Latin1={stringify:function(Yd){var Jd=Yd.words;Yd=Yd.sigBytes;for(var yf=[],Xd=0;Xd>>2]>>>24-8*(Xd%4)&255));return yf.join("")},parse:function(Yd){for(var Jd=Yd.length,yf=[],Xd=0;Xd>>2]|=(Yd.charCodeAt(Xd)&255)<<24-8*(Xd%4);return new kd.init(yf,Jd)}},Fd=Ld.Utf8={stringify:function(Yd){try{return decodeURIComponent(escape(Ud.stringify(Yd)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(Yd){return Ud.parse(unescape(encodeURIComponent(Yd)))}},jd=Ad.BufferedBlockAlgorithm=Od.extend({reset:function(){this._data=new kd.init,this._nDataBytes=0},_append:function(Yd){typeof Yd=="string"&&(Yd=Fd.parse(Yd)),this._data.concat(Yd),this._nDataBytes+=Yd.sigBytes},_process:function(Yd){var Jd=this._data,yf=Jd.words,Xd=Jd.sigBytes,pf=this.blockSize,mf=Xd/(4*pf),mf=Yd?fd.ceil(mf):fd.max((mf|0)-this._minBufferSize,0);if(Yd=mf*pf,Xd=fd.min(4*Yd,Xd),Yd){for(var Tf=0;TfYd;Yd++){if(16>Yd)Ad[Yd]=kd[Ld+Yd]|0;else{var Jd=Ad[Yd-3]^Ad[Yd-8]^Ad[Yd-14]^Ad[Yd-16];Ad[Yd]=Jd<<1|Jd>>>31}Jd=(Ud<<5|Ud>>>27)+zd+Ad[Yd],Jd=20>Yd?Jd+((Fd&jd|~Fd&qd)+1518500249):40>Yd?Jd+((Fd^jd^qd)+1859775393):60>Yd?Jd+((Fd&jd|Fd&qd|jd&qd)-1894007588):Jd+((Fd^jd^qd)-899497514),zd=qd,qd=jd,jd=Fd<<30|Fd>>>2,Fd=Ud,Ud=Jd}Gd[0]=Gd[0]+Ud|0,Gd[1]=Gd[1]+Fd|0,Gd[2]=Gd[2]+jd|0,Gd[3]=Gd[3]+qd|0,Gd[4]=Gd[4]+zd|0},_doFinalize:function(){var kd=this._data,Ld=kd.words,Gd=8*this._nDataBytes,Ud=8*kd.sigBytes;return Ld[Ud>>>5]|=128<<24-Ud%32,Ld[(Ud+64>>>9<<4)+14]=Math.floor(Gd/4294967296),Ld[(Ud+64>>>9<<4)+15]=Gd,kd.sigBytes=4*Ld.length,this._process(),this._hash},clone:function(){var kd=vd.clone.call(this);return kd._hash=this._hash.clone(),kd}});fd.SHA1=vd._createHelper(Nd),fd.HmacSHA1=vd._createHmacHelper(Nd)})(),function(){var fd=pd,md=fd.enc.Utf8;fd.algo.HMAC=fd.lib.Base.extend({init:function(Ad,Nd){Ad=this._hasher=new Ad.init,typeof Nd=="string"&&(Nd=md.parse(Nd));var Od=Ad.blockSize,kd=4*Od;Nd.sigBytes>kd&&(Nd=Ad.finalize(Nd)),Nd.clamp();for(var Ld=this._oKey=Nd.clone(),Gd=this._iKey=Nd.clone(),Ud=Ld.words,Fd=Gd.words,jd=0;jd>>2]>>>24-Fd%4*8&255,qd=kd[Fd+1>>>2]>>>24-(Fd+1)%4*8&255,zd=kd[Fd+2>>>2]>>>24-(Fd+2)%4*8&255,Yd=jd<<16|qd<<8|zd,Jd=0;Jd<4&&Fd+Jd*.75>>6*(3-Jd)&63));var yf=Gd.charAt(64);if(yf)for(;Ud.length%4;)Ud.push(yf);return Ud.join("")},parse:function(Od){var kd=Od.length,Ld=this._map,Gd=Ld.charAt(64);if(Gd){var Ud=Od.indexOf(Gd);Ud!=-1&&(kd=Ud)}for(var Fd=[],jd=0,qd=0;qd>>6-qd%4*2;Fd[jd>>>2]|=(zd|Yd)<<24-jd%4*8,jd++}return vd.create(Fd,jd)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),dd(ud)==="object"?ud.exports=pd:window.CryptoJS=pd}).call(this,ld("./node_modules/webpack/buildin/module.js")(nd))},"./lib/md5.js":function(nd,od,ld){(function(ud){var dd,pd=ld("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var fd=(typeof window>"u"?"undefined":pd(window))==="object",md=fd?window:{};md.JS_MD5_NO_WINDOW&&(fd=!1);var vd=!fd&&(typeof self>"u"?"undefined":pd(self))==="object";vd&&(md=self);var Ad=!md.JS_MD5_NO_COMMON_JS&&pd(ud)==="object"&&ud.exports,Nd=ld("./node_modules/webpack/buildin/amd-options.js"),Od=!md.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",kd="0123456789abcdef".split(""),Ld=[128,32768,8388608,-2147483648],Gd=[0,8,16,24],Ud=["hex","array","digest","buffer","arrayBuffer","base64"],Fd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),jd=[],qd;if(Od){var zd=new ArrayBuffer(68);qd=new Uint8Array(zd),jd=new Uint32Array(zd)}(md.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(pf){return Object.prototype.toString.call(pf)==="[object Array]"}),Od&&(md.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(pf){return pd(pf)==="object"&&pf.buffer&&pf.buffer.constructor===ArrayBuffer});var Yd=function(mf){return function(Tf,vf){return new yf(!0).update(Tf,vf)[mf]()}},Jd=function(){var mf=Yd("hex");mf.getCtx=mf.create=function(){return new yf},mf.update=function(Af){return mf.create().update(Af)};for(var Tf=0;Tf>6,If[Af++]=128|Tf&63):Tf<55296||Tf>=57344?(If[Af++]=224|Tf>>12,If[Af++]=128|Tf>>6&63,If[Af++]=128|Tf&63):(Tf=65536+((Tf&1023)<<10|pf.charCodeAt(++vf)&1023),If[Af++]=240|Tf>>18,If[Af++]=128|Tf>>12&63,If[Af++]=128|Tf>>6&63,If[Af++]=128|Tf&63);else for(Af=this.start;vf>2]|=Tf<>2]|=(192|Tf>>6)<>2]|=(128|Tf&63)<=57344?(Df[Af>>2]|=(224|Tf>>12)<>2]|=(128|Tf>>6&63)<>2]|=(128|Tf&63)<>2]|=(240|Tf>>18)<>2]|=(128|Tf>>12&63)<>2]|=(128|Tf>>6&63)<>2]|=(128|Tf&63)<=64?(this.start=Af-64,this.hash(),this.hashed=!0):this.start=Af}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},yf.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var pf=this.blocks,mf=this.lastByteIndex;pf[mf>>2]|=Ld[mf&3],mf>=56&&(this.hashed||this.hash(),pf[0]=pf[16],pf[16]=pf[1]=pf[2]=pf[3]=pf[4]=pf[5]=pf[6]=pf[7]=pf[8]=pf[9]=pf[10]=pf[11]=pf[12]=pf[13]=pf[14]=pf[15]=0),pf[14]=this.bytes<<3,pf[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},yf.prototype.hash=function(){var pf,mf,Tf,vf,Af,Sf,Df=this.blocks;this.first?(pf=Df[0]-680876937,pf=(pf<<7|pf>>>25)-271733879<<0,vf=(-1732584194^pf&2004318071)+Df[1]-117830708,vf=(vf<<12|vf>>>20)+pf<<0,Tf=(-271733879^vf&(pf^-271733879))+Df[2]-1126478375,Tf=(Tf<<17|Tf>>>15)+vf<<0,mf=(pf^Tf&(vf^pf))+Df[3]-1316259209,mf=(mf<<22|mf>>>10)+Tf<<0):(pf=this.h0,mf=this.h1,Tf=this.h2,vf=this.h3,pf+=(vf^mf&(Tf^vf))+Df[0]-680876936,pf=(pf<<7|pf>>>25)+mf<<0,vf+=(Tf^pf&(mf^Tf))+Df[1]-389564586,vf=(vf<<12|vf>>>20)+pf<<0,Tf+=(mf^vf&(pf^mf))+Df[2]+606105819,Tf=(Tf<<17|Tf>>>15)+vf<<0,mf+=(pf^Tf&(vf^pf))+Df[3]-1044525330,mf=(mf<<22|mf>>>10)+Tf<<0),pf+=(vf^mf&(Tf^vf))+Df[4]-176418897,pf=(pf<<7|pf>>>25)+mf<<0,vf+=(Tf^pf&(mf^Tf))+Df[5]+1200080426,vf=(vf<<12|vf>>>20)+pf<<0,Tf+=(mf^vf&(pf^mf))+Df[6]-1473231341,Tf=(Tf<<17|Tf>>>15)+vf<<0,mf+=(pf^Tf&(vf^pf))+Df[7]-45705983,mf=(mf<<22|mf>>>10)+Tf<<0,pf+=(vf^mf&(Tf^vf))+Df[8]+1770035416,pf=(pf<<7|pf>>>25)+mf<<0,vf+=(Tf^pf&(mf^Tf))+Df[9]-1958414417,vf=(vf<<12|vf>>>20)+pf<<0,Tf+=(mf^vf&(pf^mf))+Df[10]-42063,Tf=(Tf<<17|Tf>>>15)+vf<<0,mf+=(pf^Tf&(vf^pf))+Df[11]-1990404162,mf=(mf<<22|mf>>>10)+Tf<<0,pf+=(vf^mf&(Tf^vf))+Df[12]+1804603682,pf=(pf<<7|pf>>>25)+mf<<0,vf+=(Tf^pf&(mf^Tf))+Df[13]-40341101,vf=(vf<<12|vf>>>20)+pf<<0,Tf+=(mf^vf&(pf^mf))+Df[14]-1502002290,Tf=(Tf<<17|Tf>>>15)+vf<<0,mf+=(pf^Tf&(vf^pf))+Df[15]+1236535329,mf=(mf<<22|mf>>>10)+Tf<<0,pf+=(Tf^vf&(mf^Tf))+Df[1]-165796510,pf=(pf<<5|pf>>>27)+mf<<0,vf+=(mf^Tf&(pf^mf))+Df[6]-1069501632,vf=(vf<<9|vf>>>23)+pf<<0,Tf+=(pf^mf&(vf^pf))+Df[11]+643717713,Tf=(Tf<<14|Tf>>>18)+vf<<0,mf+=(vf^pf&(Tf^vf))+Df[0]-373897302,mf=(mf<<20|mf>>>12)+Tf<<0,pf+=(Tf^vf&(mf^Tf))+Df[5]-701558691,pf=(pf<<5|pf>>>27)+mf<<0,vf+=(mf^Tf&(pf^mf))+Df[10]+38016083,vf=(vf<<9|vf>>>23)+pf<<0,Tf+=(pf^mf&(vf^pf))+Df[15]-660478335,Tf=(Tf<<14|Tf>>>18)+vf<<0,mf+=(vf^pf&(Tf^vf))+Df[4]-405537848,mf=(mf<<20|mf>>>12)+Tf<<0,pf+=(Tf^vf&(mf^Tf))+Df[9]+568446438,pf=(pf<<5|pf>>>27)+mf<<0,vf+=(mf^Tf&(pf^mf))+Df[14]-1019803690,vf=(vf<<9|vf>>>23)+pf<<0,Tf+=(pf^mf&(vf^pf))+Df[3]-187363961,Tf=(Tf<<14|Tf>>>18)+vf<<0,mf+=(vf^pf&(Tf^vf))+Df[8]+1163531501,mf=(mf<<20|mf>>>12)+Tf<<0,pf+=(Tf^vf&(mf^Tf))+Df[13]-1444681467,pf=(pf<<5|pf>>>27)+mf<<0,vf+=(mf^Tf&(pf^mf))+Df[2]-51403784,vf=(vf<<9|vf>>>23)+pf<<0,Tf+=(pf^mf&(vf^pf))+Df[7]+1735328473,Tf=(Tf<<14|Tf>>>18)+vf<<0,mf+=(vf^pf&(Tf^vf))+Df[12]-1926607734,mf=(mf<<20|mf>>>12)+Tf<<0,Af=mf^Tf,pf+=(Af^vf)+Df[5]-378558,pf=(pf<<4|pf>>>28)+mf<<0,vf+=(Af^pf)+Df[8]-2022574463,vf=(vf<<11|vf>>>21)+pf<<0,Sf=vf^pf,Tf+=(Sf^mf)+Df[11]+1839030562,Tf=(Tf<<16|Tf>>>16)+vf<<0,mf+=(Sf^Tf)+Df[14]-35309556,mf=(mf<<23|mf>>>9)+Tf<<0,Af=mf^Tf,pf+=(Af^vf)+Df[1]-1530992060,pf=(pf<<4|pf>>>28)+mf<<0,vf+=(Af^pf)+Df[4]+1272893353,vf=(vf<<11|vf>>>21)+pf<<0,Sf=vf^pf,Tf+=(Sf^mf)+Df[7]-155497632,Tf=(Tf<<16|Tf>>>16)+vf<<0,mf+=(Sf^Tf)+Df[10]-1094730640,mf=(mf<<23|mf>>>9)+Tf<<0,Af=mf^Tf,pf+=(Af^vf)+Df[13]+681279174,pf=(pf<<4|pf>>>28)+mf<<0,vf+=(Af^pf)+Df[0]-358537222,vf=(vf<<11|vf>>>21)+pf<<0,Sf=vf^pf,Tf+=(Sf^mf)+Df[3]-722521979,Tf=(Tf<<16|Tf>>>16)+vf<<0,mf+=(Sf^Tf)+Df[6]+76029189,mf=(mf<<23|mf>>>9)+Tf<<0,Af=mf^Tf,pf+=(Af^vf)+Df[9]-640364487,pf=(pf<<4|pf>>>28)+mf<<0,vf+=(Af^pf)+Df[12]-421815835,vf=(vf<<11|vf>>>21)+pf<<0,Sf=vf^pf,Tf+=(Sf^mf)+Df[15]+530742520,Tf=(Tf<<16|Tf>>>16)+vf<<0,mf+=(Sf^Tf)+Df[2]-995338651,mf=(mf<<23|mf>>>9)+Tf<<0,pf+=(Tf^(mf|~vf))+Df[0]-198630844,pf=(pf<<6|pf>>>26)+mf<<0,vf+=(mf^(pf|~Tf))+Df[7]+1126891415,vf=(vf<<10|vf>>>22)+pf<<0,Tf+=(pf^(vf|~mf))+Df[14]-1416354905,Tf=(Tf<<15|Tf>>>17)+vf<<0,mf+=(vf^(Tf|~pf))+Df[5]-57434055,mf=(mf<<21|mf>>>11)+Tf<<0,pf+=(Tf^(mf|~vf))+Df[12]+1700485571,pf=(pf<<6|pf>>>26)+mf<<0,vf+=(mf^(pf|~Tf))+Df[3]-1894986606,vf=(vf<<10|vf>>>22)+pf<<0,Tf+=(pf^(vf|~mf))+Df[10]-1051523,Tf=(Tf<<15|Tf>>>17)+vf<<0,mf+=(vf^(Tf|~pf))+Df[1]-2054922799,mf=(mf<<21|mf>>>11)+Tf<<0,pf+=(Tf^(mf|~vf))+Df[8]+1873313359,pf=(pf<<6|pf>>>26)+mf<<0,vf+=(mf^(pf|~Tf))+Df[15]-30611744,vf=(vf<<10|vf>>>22)+pf<<0,Tf+=(pf^(vf|~mf))+Df[6]-1560198380,Tf=(Tf<<15|Tf>>>17)+vf<<0,mf+=(vf^(Tf|~pf))+Df[13]+1309151649,mf=(mf<<21|mf>>>11)+Tf<<0,pf+=(Tf^(mf|~vf))+Df[4]-145523070,pf=(pf<<6|pf>>>26)+mf<<0,vf+=(mf^(pf|~Tf))+Df[11]-1120210379,vf=(vf<<10|vf>>>22)+pf<<0,Tf+=(pf^(vf|~mf))+Df[2]+718787259,Tf=(Tf<<15|Tf>>>17)+vf<<0,mf+=(vf^(Tf|~pf))+Df[9]-343485551,mf=(mf<<21|mf>>>11)+Tf<<0,this.first?(this.h0=pf+1732584193<<0,this.h1=mf-271733879<<0,this.h2=Tf-1732584194<<0,this.h3=vf+271733878<<0,this.first=!1):(this.h0=this.h0+pf<<0,this.h1=this.h1+mf<<0,this.h2=this.h2+Tf<<0,this.h3=this.h3+vf<<0)},yf.prototype.hex=function(){this.finalize();var pf=this.h0,mf=this.h1,Tf=this.h2,vf=this.h3;return kd[pf>>4&15]+kd[pf&15]+kd[pf>>12&15]+kd[pf>>8&15]+kd[pf>>20&15]+kd[pf>>16&15]+kd[pf>>28&15]+kd[pf>>24&15]+kd[mf>>4&15]+kd[mf&15]+kd[mf>>12&15]+kd[mf>>8&15]+kd[mf>>20&15]+kd[mf>>16&15]+kd[mf>>28&15]+kd[mf>>24&15]+kd[Tf>>4&15]+kd[Tf&15]+kd[Tf>>12&15]+kd[Tf>>8&15]+kd[Tf>>20&15]+kd[Tf>>16&15]+kd[Tf>>28&15]+kd[Tf>>24&15]+kd[vf>>4&15]+kd[vf&15]+kd[vf>>12&15]+kd[vf>>8&15]+kd[vf>>20&15]+kd[vf>>16&15]+kd[vf>>28&15]+kd[vf>>24&15]},yf.prototype.toString=yf.prototype.hex,yf.prototype.digest=function(pf){if(pf==="hex")return this.hex();this.finalize();var mf=this.h0,Tf=this.h1,vf=this.h2,Af=this.h3,Sf=[mf&255,mf>>8&255,mf>>16&255,mf>>24&255,Tf&255,Tf>>8&255,Tf>>16&255,Tf>>24&255,vf&255,vf>>8&255,vf>>16&255,vf>>24&255,Af&255,Af>>8&255,Af>>16&255,Af>>24&255];return Sf},yf.prototype.array=yf.prototype.digest,yf.prototype.arrayBuffer=function(){this.finalize();var pf=new ArrayBuffer(16),mf=new Uint32Array(pf);return mf[0]=this.h0,mf[1]=this.h1,mf[2]=this.h2,mf[3]=this.h3,pf},yf.prototype.buffer=yf.prototype.arrayBuffer,yf.prototype.base64=function(){for(var pf,mf,Tf,vf="",Af=this.array(),Sf=0;Sf<15;)pf=Af[Sf++],mf=Af[Sf++],Tf=Af[Sf++],vf+=Fd[pf>>>2]+Fd[(pf<<4|mf>>>4)&63]+Fd[(mf<<2|Tf>>>6)&63]+Fd[Tf&63];return pf=Af[Sf],vf+=Fd[pf>>>2]+Fd[pf<<4&63]+"==",vf};var Xd=Jd();Ad?ud.exports=Xd:(md.md5=Xd,Nd&&(dd=(function(){return Xd}).call(Xd,ld,Xd,ud),dd!==void 0&&(ud.exports=dd)))})()}).call(this,ld("./node_modules/webpack/buildin/module.js")(nd))},"./lib/request.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/typeof.js"),dd=function(Nd){switch(ud(Nd)){case"string":return Nd;case"boolean":return Nd?"true":"false";case"number":return isFinite(Nd)?Nd:"";default:return""}},pd=function(Nd,Od,kd,Ld){return Od=Od||"&",kd=kd||"=",Nd===null&&(Nd=void 0),ud(Nd)==="object"?Object.keys(Nd).map(function(Gd){var Ud=encodeURIComponent(dd(Gd))+kd;return Array.isArray(Nd[Gd])?Nd[Gd].map(function(Fd){return Ud+encodeURIComponent(dd(Fd))}).join(Od):Ud+encodeURIComponent(dd(Nd[Gd]))}).filter(Boolean).join(Od):""},fd=function(Nd,Od,kd){var Ld={},Gd=Od.getAllResponseHeaders();return Gd&&Gd.length>0&&Gd.trim().split(` -`).forEach(function(Ud){if(Ud){var Fd=Ud.indexOf(":"),jd=Ud.substr(0,Fd).trim().toLowerCase(),qd=Ud.substr(Fd+1).trim();Ld[jd]=qd}}),{error:Nd,statusCode:Od.status,statusMessage:Od.statusText,headers:Ld,body:kd}},md=function(Nd,Od){return!Od&&Od==="text"?Nd.responseText:Nd.response},vd=function(Nd,Od){var kd=(Nd.method||"GET").toUpperCase(),Ld=Nd.url;if(Nd.qs){var Gd=pd(Nd.qs);Gd&&(Ld+=(Ld.indexOf("?")===-1?"?":"&")+Gd)}var Ud=new XMLHttpRequest;if(Ud.open(kd,Ld,!0),Ud.responseType=Nd.dataType||"text",Nd.xhrFields)for(var Fd in Nd.xhrFields)Ud[Fd]=Nd.xhrFields[Fd];var jd=Nd.headers;if(jd)for(var qd in jd)jd.hasOwnProperty(qd)&&qd.toLowerCase()!=="content-length"&&qd.toLowerCase()!=="user-agent"&&qd.toLowerCase()!=="origin"&&qd.toLowerCase()!=="host"&&Ud.setRequestHeader(qd,jd[qd]);return Nd.onProgress&&Ud.upload&&(Ud.upload.onprogress=Nd.onProgress),Nd.onDownloadProgress&&(Ud.onprogress=Nd.onDownloadProgress),Nd.timeout&&(Ud.timeout=Nd.timeout),Ud.ontimeout=function(zd){var Yd=new Error("timeout");Od(fd(Yd,Ud))},Ud.onload=function(){Od(fd(null,Ud,md(Ud,Nd.dataType)))},Ud.onerror=function(zd){var Yd=md(Ud,Nd.dataType);if(Yd)Od(fd(null,Ud,Yd));else{var Jd=Ud.statusText;!Jd&&Ud.status===0&&(Jd=new Error("CORS blocked or network error")),Od(fd(Jd,Ud,Yd))}},Ud.send(Nd.body||""),Ud};nd.exports=vd},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(nd,od){function ld(ud,dd){if(!(ud instanceof dd))throw new TypeError("Cannot call a class as a function")}nd.exports=ld,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function dd(fd,md){for(var vd=0;vd"u")};od.isExist=function(Ad){return typeof Ad<"u"},od.isEmptyObject=function(Ad){return Object.keys(Ad).length===0},od.merge=function(Ad,Nd,Od){if(Nd){const kd=Object.keys(Nd),Ld=kd.length;for(let Gd=0;Gd"&&Yd[mf]!==" "&&Yd[mf]!==" "&&Yd[mf]!==` -`&&Yd[mf]!=="\r";mf++)Af+=Yd[mf];if(Af=Af.trim(),Af[Af.length-1]==="/"&&(Af=Af.substring(0,Af.length-1),mf--),!jd(Af)){let If;return Af.trim().length===0?If="Invalid space after '<'.":If="Tag '"+Af+"' is an invalid name.",Ud("InvalidTag",If,qd(Yd,mf))}const Sf=Nd(Yd,mf);if(Sf===!1)return Ud("InvalidAttr","Attributes for '"+Af+"' have open quote.",qd(Yd,mf));let Df=Sf.value;if(mf=Sf.index,Df[Df.length-1]==="/"){const If=mf-Df.length;Df=Df.substring(0,Df.length-1);const Gf=kd(Df,Jd);if(Gf===!0)Xd=!0;else return Ud(Gf.err.code,Gf.err.msg,qd(Yd,If+Gf.err.line))}else if(vf)if(Sf.tagClosed){if(Df.trim().length>0)return Ud("InvalidTag","Closing tag '"+Af+"' can't have attributes or invalid starting.",qd(Yd,Tf));if(yf.length===0)return Ud("InvalidTag","Closing tag '"+Af+"' has not been opened.",qd(Yd,Tf));{const If=yf.pop();if(Af!==If.tagName){let Gf=qd(Yd,If.tagStartPos);return Ud("InvalidTag","Expected closing tag '"+If.tagName+"' (opened in line "+Gf.line+", col "+Gf.col+") instead of closing tag '"+Af+"'.",qd(Yd,Tf))}yf.length==0&&(pf=!0)}}else return Ud("InvalidTag","Closing tag '"+Af+"' doesn't have proper closing.",qd(Yd,mf));else{const If=kd(Df,Jd);if(If!==!0)return Ud(If.err.code,If.err.msg,qd(Yd,mf-Df.length+If.err.line));if(pf===!0)return Ud("InvalidXml","Multiple possible root nodes found.",qd(Yd,mf));Jd.unpairedTags.indexOf(Af)!==-1||yf.push({tagName:Af,tagStartPos:Tf}),Xd=!0}for(mf++;mf0)return Ud("InvalidXml","Invalid '"+JSON.stringify(yf.map(mf=>mf.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ud("InvalidXml","Start tag expected.",1);return!0};function pd(Yd){return Yd===" "||Yd===" "||Yd===` -`||Yd==="\r"}function fd(Yd,Jd){const yf=Jd;for(;Jd5&&Xd==="xml")return Ud("InvalidXml","XML declaration allowed only at the start of the document.",qd(Yd,Jd));if(Yd[Jd]=="?"&&Yd[Jd+1]==">"){Jd++;break}else continue}return Jd}function md(Yd,Jd){if(Yd.length>Jd+5&&Yd[Jd+1]==="-"&&Yd[Jd+2]==="-"){for(Jd+=3;Jd"){Jd+=2;break}}else if(Yd.length>Jd+8&&Yd[Jd+1]==="D"&&Yd[Jd+2]==="O"&&Yd[Jd+3]==="C"&&Yd[Jd+4]==="T"&&Yd[Jd+5]==="Y"&&Yd[Jd+6]==="P"&&Yd[Jd+7]==="E"){let yf=1;for(Jd+=8;Jd"&&(yf--,yf===0))break}else if(Yd.length>Jd+9&&Yd[Jd+1]==="["&&Yd[Jd+2]==="C"&&Yd[Jd+3]==="D"&&Yd[Jd+4]==="A"&&Yd[Jd+5]==="T"&&Yd[Jd+6]==="A"&&Yd[Jd+7]==="["){for(Jd+=8;Jd"){Jd+=2;break}}return Jd}const vd='"',Ad="'";function Nd(Yd,Jd){let yf="",Xd="",pf=!1;for(;Jd"&&Xd===""){pf=!0;break}yf+=Yd[Jd]}return Xd!==""?!1:{value:yf,index:Jd,tagClosed:pf}}const Od=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function kd(Yd,Jd){const yf=ud.getAllMatches(Yd,Od),Xd={};for(let pf=0;pf","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function pd(Ad){this.options=Object.assign({},dd,Ad),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=vd),this.processTextOrObjNode=fd,this.options.format?(this.indentate=md,this.tagEndChar=`> + */class Bowser{static getParser(qa,nd=!1){if(typeof qa!="string")throw new Error("UserAgent should be a string");return new Parser(qa,nd)}static parse(qa){return new Parser(qa).getResult()}static get BROWSER_MAP(){return BROWSER_MAP}static get ENGINE_MAP(){return ENGINE_MAP}static get OS_MAP(){return OS_MAP}static get PLATFORMS_MAP(){return PLATFORMS_MAP}}const createDefaultUserAgentProvider=({serviceId:Ra,clientVersion:qa})=>async nd=>{var dd,pd,fd,md,vd,Ad;const od=typeof window<"u"&&((dd=window==null?void 0:window.navigator)!=null&&dd.userAgent)?Bowser.parse(window.navigator.userAgent):void 0,ld=[["aws-sdk-js",qa],["ua","2.1"],[`os/${((pd=od==null?void 0:od.os)==null?void 0:pd.name)||"other"}`,(fd=od==null?void 0:od.os)==null?void 0:fd.version],["lang/js"],["md/browser",`${((md=od==null?void 0:od.browser)==null?void 0:md.name)??"unknown"}_${((vd=od==null?void 0:od.browser)==null?void 0:vd.version)??"unknown"}`]];Ra&&ld.push([`api/${Ra}`,qa]);const ud=await((Ad=nd==null?void 0:nd.userAgentAppId)==null?void 0:Ad.call(nd));return ud&&ld.push([`app/${ud}`]),ld};class Int64{constructor(qa){if(this.bytes=qa,qa.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(qa){if(qa>9223372036854776e3||qa<-9223372036854776e3)throw new Error(`${qa} is too large (or, if negative, too small) to represent as an Int64`);const nd=new Uint8Array(8);for(let od=7,ld=Math.abs(Math.round(qa));od>-1&&ld>0;od--,ld/=256)nd[od]=ld;return qa<0&&negate(nd),new Int64(nd)}valueOf(){const qa=this.bytes.slice(0),nd=qa[0]&128;return nd&&negate(qa),parseInt(toHex(qa),16)*(nd?-1:1)}toString(){return String(this.valueOf())}}function negate(Ra){for(let qa=0;qa<8;qa++)Ra[qa]^=255;for(let qa=7;qa>-1&&(Ra[qa]++,Ra[qa]===0);qa--);}class HeaderMarshaller{constructor(qa,nd){this.toUtf8=qa,this.fromUtf8=nd}format(qa){const nd=[];for(const ud of Object.keys(qa)){const dd=this.fromUtf8(ud);nd.push(Uint8Array.from([dd.byteLength]),dd,this.formatHeaderValue(qa[ud]))}const od=new Uint8Array(nd.reduce((ud,dd)=>ud+dd.byteLength,0));let ld=0;for(const ud of nd)od.set(ud,ld),ld+=ud.byteLength;return od}formatHeaderValue(qa){switch(qa.type){case"boolean":return Uint8Array.from([qa.value?0:1]);case"byte":return Uint8Array.from([2,qa.value]);case"short":const nd=new DataView(new ArrayBuffer(3));return nd.setUint8(0,3),nd.setInt16(1,qa.value,!1),new Uint8Array(nd.buffer);case"integer":const od=new DataView(new ArrayBuffer(5));return od.setUint8(0,4),od.setInt32(1,qa.value,!1),new Uint8Array(od.buffer);case"long":const ld=new Uint8Array(9);return ld[0]=5,ld.set(qa.value.bytes,1),ld;case"binary":const ud=new DataView(new ArrayBuffer(3+qa.value.byteLength));ud.setUint8(0,6),ud.setUint16(1,qa.value.byteLength,!1);const dd=new Uint8Array(ud.buffer);return dd.set(qa.value,3),dd;case"string":const pd=this.fromUtf8(qa.value),fd=new DataView(new ArrayBuffer(3+pd.byteLength));fd.setUint8(0,7),fd.setUint16(1,pd.byteLength,!1);const md=new Uint8Array(fd.buffer);return md.set(pd,3),md;case"timestamp":const vd=new Uint8Array(9);return vd[0]=8,vd.set(Int64.fromNumber(qa.value.valueOf()).bytes,1),vd;case"uuid":if(!UUID_PATTERN.test(qa.value))throw new Error(`Invalid UUID received: ${qa.value}`);const Ad=new Uint8Array(17);return Ad[0]=9,Ad.set(fromHex(qa.value.replace(/\-/g,"")),1),Ad}}parse(qa){const nd={};let od=0;for(;od{if(typeof pd!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+pd);qa=pd,nd=4,od=new Uint8Array(pd),new DataView(od.buffer).setUint32(0,pd,!1)},dd=async function*(){const pd=Ra[Symbol.asyncIterator]();for(;;){const{value:fd,done:md}=await pd.next();if(md){if(qa)if(qa===nd)yield od;else throw new Error("Truncated event message received.");else return;return}const vd=fd.length;let Ad=0;for(;Ad({[Symbol.asyncIterator]:async function*(){const qa=Ra.getReader();try{for(;;){const{done:nd,value:od}=await qa.read();if(nd)return;yield od}}finally{qa.releaseLock()}}}),iterableToReadableStream=Ra=>{const qa=Ra[Symbol.asyncIterator]();return new ReadableStream({async pull(nd){const{done:od,value:ld}=await qa.next();if(od)return nd.close();nd.enqueue(ld)}})};class EventStreamMarshaller{constructor({utf8Encoder:qa,utf8Decoder:nd}){this.universalMarshaller=new EventStreamMarshaller$1({utf8Decoder:nd,utf8Encoder:qa})}deserialize(qa,nd){const od=isReadableStream$1(qa)?readableStreamtoIterable(qa):qa;return this.universalMarshaller.deserialize(od,nd)}serialize(qa,nd){const od=this.universalMarshaller.serialize(qa,nd);return typeof ReadableStream=="function"?iterableToReadableStream(od):od}}const isReadableStream$1=Ra=>typeof ReadableStream=="function"&&Ra instanceof ReadableStream,eventStreamSerdeProvider=Ra=>new EventStreamMarshaller(Ra);async function blobReader(Ra,qa,nd=1024*1024){const od=Ra.size;let ld=0;for(;ld{od.update(ld)}),od.digest()},invalidProvider=Ra=>()=>Promise.reject(Ra),BLOCK_SIZE=64,DIGEST_LENGTH=16,INIT=[1732584193,4023233417,2562383102,271733878];class Md5{constructor(){this.reset()}update(qa){if(isEmptyData(qa))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const nd=convertToBuffer(qa);let od=0,{byteLength:ld}=nd;for(this.bytesHashed+=ld;ld>0;)this.buffer.setUint8(this.bufferLength++,nd[od++]),ld--,this.bufferLength===BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:nd,bufferLength:od,bytesHashed:ld}=this,ud=ld*8;if(nd.setUint8(this.bufferLength++,128),od%BLOCK_SIZE>=BLOCK_SIZE-8){for(let dd=this.bufferLength;dd>>0,!0),nd.setUint32(BLOCK_SIZE-4,Math.floor(ud/4294967296),!0),this.hashBuffer(),this.finished=!0}const qa=new DataView(new ArrayBuffer(DIGEST_LENGTH));for(let nd=0;nd<4;nd++)qa.setUint32(nd*4,this.state[nd],!0);return new Uint8Array(qa.buffer,qa.byteOffset,qa.byteLength)}hashBuffer(){const{buffer:qa,state:nd}=this;let od=nd[0],ld=nd[1],ud=nd[2],dd=nd[3];od=ff(od,ld,ud,dd,qa.getUint32(0,!0),7,3614090360),dd=ff(dd,od,ld,ud,qa.getUint32(4,!0),12,3905402710),ud=ff(ud,dd,od,ld,qa.getUint32(8,!0),17,606105819),ld=ff(ld,ud,dd,od,qa.getUint32(12,!0),22,3250441966),od=ff(od,ld,ud,dd,qa.getUint32(16,!0),7,4118548399),dd=ff(dd,od,ld,ud,qa.getUint32(20,!0),12,1200080426),ud=ff(ud,dd,od,ld,qa.getUint32(24,!0),17,2821735955),ld=ff(ld,ud,dd,od,qa.getUint32(28,!0),22,4249261313),od=ff(od,ld,ud,dd,qa.getUint32(32,!0),7,1770035416),dd=ff(dd,od,ld,ud,qa.getUint32(36,!0),12,2336552879),ud=ff(ud,dd,od,ld,qa.getUint32(40,!0),17,4294925233),ld=ff(ld,ud,dd,od,qa.getUint32(44,!0),22,2304563134),od=ff(od,ld,ud,dd,qa.getUint32(48,!0),7,1804603682),dd=ff(dd,od,ld,ud,qa.getUint32(52,!0),12,4254626195),ud=ff(ud,dd,od,ld,qa.getUint32(56,!0),17,2792965006),ld=ff(ld,ud,dd,od,qa.getUint32(60,!0),22,1236535329),od=gg(od,ld,ud,dd,qa.getUint32(4,!0),5,4129170786),dd=gg(dd,od,ld,ud,qa.getUint32(24,!0),9,3225465664),ud=gg(ud,dd,od,ld,qa.getUint32(44,!0),14,643717713),ld=gg(ld,ud,dd,od,qa.getUint32(0,!0),20,3921069994),od=gg(od,ld,ud,dd,qa.getUint32(20,!0),5,3593408605),dd=gg(dd,od,ld,ud,qa.getUint32(40,!0),9,38016083),ud=gg(ud,dd,od,ld,qa.getUint32(60,!0),14,3634488961),ld=gg(ld,ud,dd,od,qa.getUint32(16,!0),20,3889429448),od=gg(od,ld,ud,dd,qa.getUint32(36,!0),5,568446438),dd=gg(dd,od,ld,ud,qa.getUint32(56,!0),9,3275163606),ud=gg(ud,dd,od,ld,qa.getUint32(12,!0),14,4107603335),ld=gg(ld,ud,dd,od,qa.getUint32(32,!0),20,1163531501),od=gg(od,ld,ud,dd,qa.getUint32(52,!0),5,2850285829),dd=gg(dd,od,ld,ud,qa.getUint32(8,!0),9,4243563512),ud=gg(ud,dd,od,ld,qa.getUint32(28,!0),14,1735328473),ld=gg(ld,ud,dd,od,qa.getUint32(48,!0),20,2368359562),od=hh(od,ld,ud,dd,qa.getUint32(20,!0),4,4294588738),dd=hh(dd,od,ld,ud,qa.getUint32(32,!0),11,2272392833),ud=hh(ud,dd,od,ld,qa.getUint32(44,!0),16,1839030562),ld=hh(ld,ud,dd,od,qa.getUint32(56,!0),23,4259657740),od=hh(od,ld,ud,dd,qa.getUint32(4,!0),4,2763975236),dd=hh(dd,od,ld,ud,qa.getUint32(16,!0),11,1272893353),ud=hh(ud,dd,od,ld,qa.getUint32(28,!0),16,4139469664),ld=hh(ld,ud,dd,od,qa.getUint32(40,!0),23,3200236656),od=hh(od,ld,ud,dd,qa.getUint32(52,!0),4,681279174),dd=hh(dd,od,ld,ud,qa.getUint32(0,!0),11,3936430074),ud=hh(ud,dd,od,ld,qa.getUint32(12,!0),16,3572445317),ld=hh(ld,ud,dd,od,qa.getUint32(24,!0),23,76029189),od=hh(od,ld,ud,dd,qa.getUint32(36,!0),4,3654602809),dd=hh(dd,od,ld,ud,qa.getUint32(48,!0),11,3873151461),ud=hh(ud,dd,od,ld,qa.getUint32(60,!0),16,530742520),ld=hh(ld,ud,dd,od,qa.getUint32(8,!0),23,3299628645),od=ii(od,ld,ud,dd,qa.getUint32(0,!0),6,4096336452),dd=ii(dd,od,ld,ud,qa.getUint32(28,!0),10,1126891415),ud=ii(ud,dd,od,ld,qa.getUint32(56,!0),15,2878612391),ld=ii(ld,ud,dd,od,qa.getUint32(20,!0),21,4237533241),od=ii(od,ld,ud,dd,qa.getUint32(48,!0),6,1700485571),dd=ii(dd,od,ld,ud,qa.getUint32(12,!0),10,2399980690),ud=ii(ud,dd,od,ld,qa.getUint32(40,!0),15,4293915773),ld=ii(ld,ud,dd,od,qa.getUint32(4,!0),21,2240044497),od=ii(od,ld,ud,dd,qa.getUint32(32,!0),6,1873313359),dd=ii(dd,od,ld,ud,qa.getUint32(60,!0),10,4264355552),ud=ii(ud,dd,od,ld,qa.getUint32(24,!0),15,2734768916),ld=ii(ld,ud,dd,od,qa.getUint32(52,!0),21,1309151649),od=ii(od,ld,ud,dd,qa.getUint32(16,!0),6,4149444226),dd=ii(dd,od,ld,ud,qa.getUint32(44,!0),10,3174756917),ud=ii(ud,dd,od,ld,qa.getUint32(8,!0),15,718787259),ld=ii(ld,ud,dd,od,qa.getUint32(36,!0),21,3951481745),nd[0]=od+nd[0]&4294967295,nd[1]=ld+nd[1]&4294967295,nd[2]=ud+nd[2]&4294967295,nd[3]=dd+nd[3]&4294967295}reset(){this.state=Uint32Array.from(INIT),this.buffer=new DataView(new ArrayBuffer(BLOCK_SIZE)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function cmn(Ra,qa,nd,od,ld,ud){return qa=(qa+Ra&4294967295)+(od+ud&4294967295)&4294967295,(qa<>>32-ld)+nd&4294967295}function ff(Ra,qa,nd,od,ld,ud,dd){return cmn(qa&nd|~qa&od,Ra,qa,ld,ud,dd)}function gg(Ra,qa,nd,od,ld,ud,dd){return cmn(qa&od|nd&~od,Ra,qa,ld,ud,dd)}function hh(Ra,qa,nd,od,ld,ud,dd){return cmn(qa^nd^od,Ra,qa,ld,ud,dd)}function ii(Ra,qa,nd,od,ld,ud,dd){return cmn(nd^(qa|~od),Ra,qa,ld,ud,dd)}function isEmptyData(Ra){return typeof Ra=="string"?Ra.length===0:Ra.byteLength===0}function convertToBuffer(Ra){return typeof Ra=="string"?fromUtf8$3(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,Ra.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(Ra)}const TEXT_ENCODER=typeof TextEncoder=="function"?new TextEncoder:null,calculateBodyLength=Ra=>{if(typeof Ra=="string"){if(TEXT_ENCODER)return TEXT_ENCODER.encode(Ra).byteLength;let qa=Ra.length;for(let nd=qa-1;nd>=0;nd--){const od=Ra.charCodeAt(nd);od>127&&od<=2047?qa++:od>2047&&od<=65535&&(qa+=2),od>=56320&&od<=57343&&nd--}return qa}else{if(typeof Ra.byteLength=="number")return Ra.byteLength;if(typeof Ra.size=="number")return Ra.size}throw new Error(`Body Length computation failed for ${Ra}`)},getRuntimeConfig$1=Ra=>({apiVersion:"2006-03-01",base64Decoder:(Ra==null?void 0:Ra.base64Decoder)??fromBase64,base64Encoder:(Ra==null?void 0:Ra.base64Encoder)??toBase64,disableHostPrefix:(Ra==null?void 0:Ra.disableHostPrefix)??!1,endpointProvider:(Ra==null?void 0:Ra.endpointProvider)??defaultEndpointResolver,extensions:(Ra==null?void 0:Ra.extensions)??[],getAwsChunkedEncodingStream:(Ra==null?void 0:Ra.getAwsChunkedEncodingStream)??getAwsChunkedEncodingStream,httpAuthSchemeProvider:(Ra==null?void 0:Ra.httpAuthSchemeProvider)??defaultS3HttpAuthSchemeProvider,httpAuthSchemes:(Ra==null?void 0:Ra.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:qa=>qa.getIdentityProvider("aws.auth#sigv4"),signer:new AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:qa=>qa.getIdentityProvider("aws.auth#sigv4a"),signer:new AwsSdkSigV4ASigner}],logger:(Ra==null?void 0:Ra.logger)??new NoOpLogger,sdkStreamMixin:(Ra==null?void 0:Ra.sdkStreamMixin)??sdkStreamMixin,serviceId:(Ra==null?void 0:Ra.serviceId)??"S3",signerConstructor:(Ra==null?void 0:Ra.signerConstructor)??SignatureV4MultiRegion,signingEscapePath:(Ra==null?void 0:Ra.signingEscapePath)??!1,urlParser:(Ra==null?void 0:Ra.urlParser)??parseUrl,useArnRegion:(Ra==null?void 0:Ra.useArnRegion)??!1,utf8Decoder:(Ra==null?void 0:Ra.utf8Decoder)??fromUtf8$3,utf8Encoder:(Ra==null?void 0:Ra.utf8Encoder)??toUtf8}),DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"],resolveDefaultsModeConfig=({defaultsMode:Ra}={})=>memoize$1(async()=>{const qa=typeof Ra=="function"?await Ra():Ra;switch(qa==null?void 0:qa.toLowerCase()){case"auto":return Promise.resolve(isMobileBrowser()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(qa==null?void 0:qa.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${qa}`)}}),isMobileBrowser=()=>{var nd,od;const Ra=typeof window<"u"&&((nd=window==null?void 0:window.navigator)!=null&&nd.userAgent)?Bowser.parse(window.navigator.userAgent):void 0,qa=(od=Ra==null?void 0:Ra.platform)==null?void 0:od.type;return qa==="tablet"||qa==="mobile"},getRuntimeConfig=Ra=>{const qa=resolveDefaultsModeConfig(Ra),nd=()=>qa().then(loadConfigsForDefaultMode),od=getRuntimeConfig$1(Ra);return{...od,...Ra,runtime:"browser",defaultsMode:qa,bodyLengthChecker:(Ra==null?void 0:Ra.bodyLengthChecker)??calculateBodyLength,credentialDefaultProvider:(Ra==null?void 0:Ra.credentialDefaultProvider)??(ld=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(Ra==null?void 0:Ra.defaultUserAgentProvider)??createDefaultUserAgentProvider({serviceId:od.serviceId,clientVersion:packageInfo.version}),eventStreamSerdeProvider:(Ra==null?void 0:Ra.eventStreamSerdeProvider)??eventStreamSerdeProvider,maxAttempts:(Ra==null?void 0:Ra.maxAttempts)??DEFAULT_MAX_ATTEMPTS,md5:(Ra==null?void 0:Ra.md5)??Md5,region:(Ra==null?void 0:Ra.region)??invalidProvider("Region is missing"),requestHandler:FetchHttpHandler.create((Ra==null?void 0:Ra.requestHandler)??nd),retryMode:(Ra==null?void 0:Ra.retryMode)??(async()=>(await nd()).retryMode||DEFAULT_RETRY_MODE),sha1:(Ra==null?void 0:Ra.sha1)??Sha1,sha256:(Ra==null?void 0:Ra.sha256)??Sha256,streamCollector:(Ra==null?void 0:Ra.streamCollector)??streamCollector,streamHasher:(Ra==null?void 0:Ra.streamHasher)??blobHasher,useDualstackEndpoint:(Ra==null?void 0:Ra.useDualstackEndpoint)??(()=>Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:(Ra==null?void 0:Ra.useFipsEndpoint)??(()=>Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT))}},getAwsRegionExtensionConfiguration=Ra=>{let qa=async()=>{if(Ra.region===void 0)throw new Error("Region is missing from runtimeConfig");const nd=Ra.region;return typeof nd=="string"?nd:nd()};return{setRegion(nd){qa=nd},region(){return qa}}},resolveAwsRegionExtensionConfiguration=Ra=>({region:Ra.region()}),getHttpAuthExtensionConfiguration=Ra=>{const qa=Ra.httpAuthSchemes;let nd=Ra.httpAuthSchemeProvider,od=Ra.credentials;return{setHttpAuthScheme(ld){const ud=qa.findIndex(dd=>dd.schemeId===ld.schemeId);ud===-1?qa.push(ld):qa.splice(ud,1,ld)},httpAuthSchemes(){return qa},setHttpAuthSchemeProvider(ld){nd=ld},httpAuthSchemeProvider(){return nd},setCredentials(ld){od=ld},credentials(){return od}}},resolveHttpAuthRuntimeConfig=Ra=>({httpAuthSchemes:Ra.httpAuthSchemes(),httpAuthSchemeProvider:Ra.httpAuthSchemeProvider(),credentials:Ra.credentials()}),asPartial=Ra=>Ra,resolveRuntimeExtensions=(Ra,qa)=>{const nd={...asPartial(getAwsRegionExtensionConfiguration(Ra)),...asPartial(getDefaultExtensionConfiguration(Ra)),...asPartial(getHttpHandlerExtensionConfiguration(Ra)),...asPartial(getHttpAuthExtensionConfiguration(Ra))};return qa.forEach(od=>od.configure(nd)),{...Ra,...resolveAwsRegionExtensionConfiguration(nd),...resolveDefaultRuntimeConfig(nd),...resolveHttpHandlerRuntimeConfig(nd),...resolveHttpAuthRuntimeConfig(nd)}};class S3Client extends Client$1{constructor(...[qa]){const nd=getRuntimeConfig(qa||{}),od=resolveClientEndpointParameters(nd),ld=resolveUserAgentConfig(od),ud=resolveFlexibleChecksumsConfig(ld),dd=resolveRetryConfig(ud),pd=resolveRegionConfig(dd),fd=pd,md=resolveEndpointConfig(fd),vd=resolveEventStreamSerdeConfig(md),Ad=resolveHttpAuthSchemeConfig(vd),Nd=resolveS3Config(Ad,{session:[()=>this,CreateSessionCommand]}),Od=resolveRuntimeExtensions(Nd,(qa==null?void 0:qa.extensions)||[]);super(Od),this.config=Od,this.middlewareStack.use(getUserAgentPlugin(this.config)),this.middlewareStack.use(getRetryPlugin(this.config)),this.middlewareStack.use(getContentLengthPlugin(this.config)),this.middlewareStack.use(getHostHeaderPlugin(this.config)),this.middlewareStack.use(getLoggerPlugin(this.config)),this.middlewareStack.use(getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:defaultS3HttpAuthSchemeParametersProvider,identityProviderConfigProvider:async kd=>new DefaultIdentityProviderConfig({"aws.auth#sigv4":kd.credentials,"aws.auth#sigv4a":kd.credentials})})),this.middlewareStack.use(getHttpSigningPlugin(this.config)),this.middlewareStack.use(getValidateBucketNamePlugin(this.config)),this.middlewareStack.use(getAddExpectContinuePlugin(this.config)),this.middlewareStack.use(getRegionRedirectMiddlewarePlugin(this.config)),this.middlewareStack.use(getS3ExpressPlugin(this.config)),this.middlewareStack.use(getS3ExpressHttpSigningPlugin(this.config))}destroy(){super.destroy()}}function ssecMiddleware(Ra){return qa=>async nd=>{const od={...nd.input},ld=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const ud of ld){const dd=od[ud.target];if(dd){let pd;typeof dd=="string"?isValidBase64EncodedSSECustomerKey(dd,Ra)?pd=Ra.base64Decoder(dd):(pd=Ra.utf8Decoder(dd),od[ud.target]=Ra.base64Encoder(pd)):(pd=ArrayBuffer.isView(dd)?new Uint8Array(dd.buffer,dd.byteOffset,dd.byteLength):new Uint8Array(dd),od[ud.target]=Ra.base64Encoder(pd));const fd=new Ra.md5;fd.update(pd),od[ud.hash]=Ra.base64Encoder(await fd.digest())}}return qa({...nd,input:od})}}const ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},getSsecPlugin=Ra=>({applyToStack:qa=>{qa.add(ssecMiddleware(Ra),ssecMiddlewareOptions)}});function isValidBase64EncodedSSECustomerKey(Ra,qa){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(Ra))return!1;try{return qa.base64Decoder(Ra).length===32}catch{return!1}}class PutObjectCommand extends Command.classBuilder().ep({...commonParams,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(qa,nd,od,ld){return[getSerdePlugin(od,this.serialize,this.deserialize),getEndpointPlugin(od,qa.getEndpointParameterInstructions()),getFlexibleChecksumsPlugin(od,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),getCheckContentLengthHeaderPlugin(),getThrow200ExceptionsPlugin(od),getSsecPlugin(od)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").f(PutObjectRequestFilterSensitiveLog,PutObjectOutputFilterSensitiveLog).ser(se_PutObjectCommand).de(de_PutObjectCommand).build(){}var toString=Object.prototype.toString,isModern=typeof Buffer$4<"u"&&typeof Buffer$4.alloc=="function"&&typeof Buffer$4.allocUnsafe=="function"&&typeof Buffer$4.from=="function";function isArrayBuffer(Ra){return toString.call(Ra).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(Ra,qa,nd){qa>>>=0;var od=Ra.byteLength-qa;if(od<0)throw new RangeError("'offset' is out of bounds");if(nd===void 0)nd=od;else if(nd>>>=0,nd>od)throw new RangeError("'length' is out of bounds");return isModern?Buffer$4.from(Ra.slice(qa,qa+nd)):new Buffer$4(new Uint8Array(Ra.slice(qa,qa+nd)))}function fromString(Ra,qa){if((typeof qa!="string"||qa==="")&&(qa="utf8"),!Buffer$4.isEncoding(qa))throw new TypeError('"encoding" must be a valid string encoding');return isModern?Buffer$4.from(Ra,qa):new Buffer$4(Ra,qa)}function bufferFrom(Ra,qa,nd){if(typeof Ra=="number")throw new TypeError('"value" argument must not be a number');return isArrayBuffer(Ra)?fromArrayBuffer(Ra,qa,nd):typeof Ra=="string"?fromString(Ra,qa):isModern?Buffer$4.from(Ra):new Buffer$4(Ra)}var bufferFrom_1=bufferFrom;const Buffer$1=getDefaultExportFromCjs(bufferFrom_1);var cosJsSdkV5={exports:{}};(function(Ra,qa){(function(od,ld){Ra.exports=ld()})(commonjsGlobal,function(){return function(nd){var od={};function ld(ud){if(od[ud])return od[ud].exports;var dd=od[ud]={i:ud,l:!1,exports:{}};return nd[ud].call(dd.exports,dd,dd.exports,ld),dd.l=!0,dd.exports}return ld.m=nd,ld.c=od,ld.d=function(ud,dd,pd){ld.o(ud,dd)||Object.defineProperty(ud,dd,{enumerable:!0,get:pd})},ld.r=function(ud){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ud,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ud,"__esModule",{value:!0})},ld.t=function(ud,dd){if(dd&1&&(ud=ld(ud)),dd&8||dd&4&&typeof ud=="object"&&ud&&ud.__esModule)return ud;var pd=Object.create(null);if(ld.r(pd),Object.defineProperty(pd,"default",{enumerable:!0,value:ud}),dd&2&&typeof ud!="string")for(var fd in ud)ld.d(pd,fd,(function(md){return ud[md]}).bind(null,fd));return pd},ld.n=function(ud){var dd=ud&&ud.__esModule?function(){return ud.default}:function(){return ud};return ld.d(dd,"a",dd),dd},ld.o=function(ud,dd){return Object.prototype.hasOwnProperty.call(ud,dd)},ld.p="/dist/",ld(ld.s="./index.js")}({"./index.js":function(nd,od,ld){var ud=ld("./src/cos.js");nd.exports=ud},"./lib/base64.js":function(nd,od){var ld=function(ud){ud=ud||{};var dd=ud.Base64,pd="2.1.9",fd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",md=function(Sf){for(var Tf={},Af=0,Ef=Sf.length;Af>>6)+vd(128|Af&63):vd(224|Af>>>12&15)+vd(128|Af>>>6&63)+vd(128|Af&63)}else{var Af=65536+(Tf.charCodeAt(0)-55296)*1024+(Tf.charCodeAt(1)-56320);return vd(240|Af>>>18&7)+vd(128|Af>>>12&63)+vd(128|Af>>>6&63)+vd(128|Af&63)}},Nd=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Od=function(Tf){return Tf.replace(Nd,Ad)},kd=function(Tf){var Af=[0,2,1][Tf.length%3],Ef=Tf.charCodeAt(0)<<16|(Tf.length>1?Tf.charCodeAt(1):0)<<8|(Tf.length>2?Tf.charCodeAt(2):0),Nf=[fd.charAt(Ef>>>18),fd.charAt(Ef>>>12&63),Af>=2?"=":fd.charAt(Ef>>>6&63),Af>=1?"=":fd.charAt(Ef&63)];return Nf.join("")},Ld=ud.btoa?function(Sf){return ud.btoa(Sf)}:function(Sf){return Sf.replace(/[\s\S]{1,3}/g,kd)},Gd=function(Sf){return Ld(Od(Sf))},jd=function(Tf,Af){return Af?Gd(String(Tf)).replace(/[+\/]/g,function(Ef){return Ef=="+"?"-":"_"}).replace(/=/g,""):Gd(String(Tf))},Fd=function(Tf){return jd(Tf,!0)},Ud=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),qd=function(Tf){switch(Tf.length){case 4:var Af=(7&Tf.charCodeAt(0))<<18|(63&Tf.charCodeAt(1))<<12|(63&Tf.charCodeAt(2))<<6|63&Tf.charCodeAt(3),Ef=Af-65536;return vd((Ef>>>10)+55296)+vd((Ef&1023)+56320);case 3:return vd((15&Tf.charCodeAt(0))<<12|(63&Tf.charCodeAt(1))<<6|63&Tf.charCodeAt(2));default:return vd((31&Tf.charCodeAt(0))<<6|63&Tf.charCodeAt(1))}},zd=function(Tf){return Tf.replace(Ud,qd)},Wd=function(Tf){var Af=Tf.length,Ef=Af%4,Nf=(Af>0?md[Tf.charAt(0)]<<18:0)|(Af>1?md[Tf.charAt(1)]<<12:0)|(Af>2?md[Tf.charAt(2)]<<6:0)|(Af>3?md[Tf.charAt(3)]:0),If=[vd(Nf>>>16),vd(Nf>>>8&255),vd(Nf&255)];return If.length-=[0,0,2,1][Ef],If.join("")},Jd=ud.atob?function(Sf){return ud.atob(Sf)}:function(Sf){return Sf.replace(/[\s\S]{1,4}/g,Wd)},_f=function(Sf){return zd(Jd(Sf))},Xd=function(Tf){return _f(String(Tf).replace(/[-_]/g,function(Af){return Af=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},pf=function(){var Tf=ud.Base64;return ud.Base64=dd,Tf},mf={VERSION:pd,atob:Jd,btoa:Ld,fromBase64:Xd,toBase64:jd,utob:Od,encode:jd,encodeURI:Fd,btou:zd,decode:Xd,noConflict:pf};return mf}();nd.exports=ld},"./lib/crypto.js":function(nd,od,ld){(function(ud){var dd=ld("./node_modules/@babel/runtime/helpers/typeof.js"),pd=pd||function(fd,md){var vd={},Ad=vd.lib={},Nd=function(){},Od=Ad.Base={extend:function(Wd){Nd.prototype=this;var Jd=new Nd;return Wd&&Jd.mixIn(Wd),Jd.hasOwnProperty("init")||(Jd.init=function(){Jd.$super.init.apply(this,arguments)}),Jd.init.prototype=Jd,Jd.$super=this,Jd},create:function(){var Wd=this.extend();return Wd.init.apply(Wd,arguments),Wd},init:function(){},mixIn:function(Wd){for(var Jd in Wd)Wd.hasOwnProperty(Jd)&&(this[Jd]=Wd[Jd]);Wd.hasOwnProperty("toString")&&(this.toString=Wd.toString)},clone:function(){return this.init.prototype.extend(this)}},kd=Ad.WordArray=Od.extend({init:function(Wd,Jd){Wd=this.words=Wd||[],this.sigBytes=Jd!=md?Jd:4*Wd.length},toString:function(Wd){return(Wd||Gd).stringify(this)},concat:function(Wd){var Jd=this.words,_f=Wd.words,Xd=this.sigBytes;if(Wd=Wd.sigBytes,this.clamp(),Xd%4)for(var pf=0;pf>>2]|=(_f[pf>>>2]>>>24-8*(pf%4)&255)<<24-8*((Xd+pf)%4);else if(65535<_f.length)for(pf=0;pf>>2]=_f[pf>>>2];else Jd.push.apply(Jd,_f);return this.sigBytes+=Wd,this},clamp:function(){var Wd=this.words,Jd=this.sigBytes;Wd[Jd>>>2]&=4294967295<<32-8*(Jd%4),Wd.length=fd.ceil(Jd/4)},clone:function(){var Wd=Od.clone.call(this);return Wd.words=this.words.slice(0),Wd},random:function(Wd){for(var Jd=[],_f=0;_f>>2]>>>24-8*(Xd%4)&255;_f.push((pf>>>4).toString(16)),_f.push((pf&15).toString(16))}return _f.join("")},parse:function(Wd){for(var Jd=Wd.length,_f=[],Xd=0;Xd>>3]|=parseInt(Wd.substr(Xd,2),16)<<24-4*(Xd%8);return new kd.init(_f,Jd/2)}},jd=Ld.Latin1={stringify:function(Wd){var Jd=Wd.words;Wd=Wd.sigBytes;for(var _f=[],Xd=0;Xd>>2]>>>24-8*(Xd%4)&255));return _f.join("")},parse:function(Wd){for(var Jd=Wd.length,_f=[],Xd=0;Xd>>2]|=(Wd.charCodeAt(Xd)&255)<<24-8*(Xd%4);return new kd.init(_f,Jd)}},Fd=Ld.Utf8={stringify:function(Wd){try{return decodeURIComponent(escape(jd.stringify(Wd)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(Wd){return jd.parse(unescape(encodeURIComponent(Wd)))}},Ud=Ad.BufferedBlockAlgorithm=Od.extend({reset:function(){this._data=new kd.init,this._nDataBytes=0},_append:function(Wd){typeof Wd=="string"&&(Wd=Fd.parse(Wd)),this._data.concat(Wd),this._nDataBytes+=Wd.sigBytes},_process:function(Wd){var Jd=this._data,_f=Jd.words,Xd=Jd.sigBytes,pf=this.blockSize,mf=Xd/(4*pf),mf=Wd?fd.ceil(mf):fd.max((mf|0)-this._minBufferSize,0);if(Wd=mf*pf,Xd=fd.min(4*Wd,Xd),Wd){for(var Sf=0;SfWd;Wd++){if(16>Wd)Ad[Wd]=kd[Ld+Wd]|0;else{var Jd=Ad[Wd-3]^Ad[Wd-8]^Ad[Wd-14]^Ad[Wd-16];Ad[Wd]=Jd<<1|Jd>>>31}Jd=(jd<<5|jd>>>27)+zd+Ad[Wd],Jd=20>Wd?Jd+((Fd&Ud|~Fd&qd)+1518500249):40>Wd?Jd+((Fd^Ud^qd)+1859775393):60>Wd?Jd+((Fd&Ud|Fd&qd|Ud&qd)-1894007588):Jd+((Fd^Ud^qd)-899497514),zd=qd,qd=Ud,Ud=Fd<<30|Fd>>>2,Fd=jd,jd=Jd}Gd[0]=Gd[0]+jd|0,Gd[1]=Gd[1]+Fd|0,Gd[2]=Gd[2]+Ud|0,Gd[3]=Gd[3]+qd|0,Gd[4]=Gd[4]+zd|0},_doFinalize:function(){var kd=this._data,Ld=kd.words,Gd=8*this._nDataBytes,jd=8*kd.sigBytes;return Ld[jd>>>5]|=128<<24-jd%32,Ld[(jd+64>>>9<<4)+14]=Math.floor(Gd/4294967296),Ld[(jd+64>>>9<<4)+15]=Gd,kd.sigBytes=4*Ld.length,this._process(),this._hash},clone:function(){var kd=vd.clone.call(this);return kd._hash=this._hash.clone(),kd}});fd.SHA1=vd._createHelper(Nd),fd.HmacSHA1=vd._createHmacHelper(Nd)})(),function(){var fd=pd,md=fd.enc.Utf8;fd.algo.HMAC=fd.lib.Base.extend({init:function(Ad,Nd){Ad=this._hasher=new Ad.init,typeof Nd=="string"&&(Nd=md.parse(Nd));var Od=Ad.blockSize,kd=4*Od;Nd.sigBytes>kd&&(Nd=Ad.finalize(Nd)),Nd.clamp();for(var Ld=this._oKey=Nd.clone(),Gd=this._iKey=Nd.clone(),jd=Ld.words,Fd=Gd.words,Ud=0;Ud>>2]>>>24-Fd%4*8&255,qd=kd[Fd+1>>>2]>>>24-(Fd+1)%4*8&255,zd=kd[Fd+2>>>2]>>>24-(Fd+2)%4*8&255,Wd=Ud<<16|qd<<8|zd,Jd=0;Jd<4&&Fd+Jd*.75>>6*(3-Jd)&63));var _f=Gd.charAt(64);if(_f)for(;jd.length%4;)jd.push(_f);return jd.join("")},parse:function(Od){var kd=Od.length,Ld=this._map,Gd=Ld.charAt(64);if(Gd){var jd=Od.indexOf(Gd);jd!=-1&&(kd=jd)}for(var Fd=[],Ud=0,qd=0;qd>>6-qd%4*2;Fd[Ud>>>2]|=(zd|Wd)<<24-Ud%4*8,Ud++}return vd.create(Fd,Ud)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),dd(ud)==="object"?ud.exports=pd:window.CryptoJS=pd}).call(this,ld("./node_modules/webpack/buildin/module.js")(nd))},"./lib/md5.js":function(nd,od,ld){(function(ud){var dd,pd=ld("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var fd=(typeof window>"u"?"undefined":pd(window))==="object",md=fd?window:{};md.JS_MD5_NO_WINDOW&&(fd=!1);var vd=!fd&&(typeof self>"u"?"undefined":pd(self))==="object";vd&&(md=self);var Ad=!md.JS_MD5_NO_COMMON_JS&&pd(ud)==="object"&&ud.exports,Nd=ld("./node_modules/webpack/buildin/amd-options.js"),Od=!md.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",kd="0123456789abcdef".split(""),Ld=[128,32768,8388608,-2147483648],Gd=[0,8,16,24],jd=["hex","array","digest","buffer","arrayBuffer","base64"],Fd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Ud=[],qd;if(Od){var zd=new ArrayBuffer(68);qd=new Uint8Array(zd),Ud=new Uint32Array(zd)}(md.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(pf){return Object.prototype.toString.call(pf)==="[object Array]"}),Od&&(md.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(pf){return pd(pf)==="object"&&pf.buffer&&pf.buffer.constructor===ArrayBuffer});var Wd=function(mf){return function(Sf,Tf){return new _f(!0).update(Sf,Tf)[mf]()}},Jd=function(){var mf=Wd("hex");mf.getCtx=mf.create=function(){return new _f},mf.update=function(Af){return mf.create().update(Af)};for(var Sf=0;Sf>6,If[Af++]=128|Sf&63):Sf<55296||Sf>=57344?(If[Af++]=224|Sf>>12,If[Af++]=128|Sf>>6&63,If[Af++]=128|Sf&63):(Sf=65536+((Sf&1023)<<10|pf.charCodeAt(++Tf)&1023),If[Af++]=240|Sf>>18,If[Af++]=128|Sf>>12&63,If[Af++]=128|Sf>>6&63,If[Af++]=128|Sf&63);else for(Af=this.start;Tf>2]|=Sf<>2]|=(192|Sf>>6)<>2]|=(128|Sf&63)<=57344?(Nf[Af>>2]|=(224|Sf>>12)<>2]|=(128|Sf>>6&63)<>2]|=(128|Sf&63)<>2]|=(240|Sf>>18)<>2]|=(128|Sf>>12&63)<>2]|=(128|Sf>>6&63)<>2]|=(128|Sf&63)<=64?(this.start=Af-64,this.hash(),this.hashed=!0):this.start=Af}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},_f.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var pf=this.blocks,mf=this.lastByteIndex;pf[mf>>2]|=Ld[mf&3],mf>=56&&(this.hashed||this.hash(),pf[0]=pf[16],pf[16]=pf[1]=pf[2]=pf[3]=pf[4]=pf[5]=pf[6]=pf[7]=pf[8]=pf[9]=pf[10]=pf[11]=pf[12]=pf[13]=pf[14]=pf[15]=0),pf[14]=this.bytes<<3,pf[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},_f.prototype.hash=function(){var pf,mf,Sf,Tf,Af,Ef,Nf=this.blocks;this.first?(pf=Nf[0]-680876937,pf=(pf<<7|pf>>>25)-271733879<<0,Tf=(-1732584194^pf&2004318071)+Nf[1]-117830708,Tf=(Tf<<12|Tf>>>20)+pf<<0,Sf=(-271733879^Tf&(pf^-271733879))+Nf[2]-1126478375,Sf=(Sf<<17|Sf>>>15)+Tf<<0,mf=(pf^Sf&(Tf^pf))+Nf[3]-1316259209,mf=(mf<<22|mf>>>10)+Sf<<0):(pf=this.h0,mf=this.h1,Sf=this.h2,Tf=this.h3,pf+=(Tf^mf&(Sf^Tf))+Nf[0]-680876936,pf=(pf<<7|pf>>>25)+mf<<0,Tf+=(Sf^pf&(mf^Sf))+Nf[1]-389564586,Tf=(Tf<<12|Tf>>>20)+pf<<0,Sf+=(mf^Tf&(pf^mf))+Nf[2]+606105819,Sf=(Sf<<17|Sf>>>15)+Tf<<0,mf+=(pf^Sf&(Tf^pf))+Nf[3]-1044525330,mf=(mf<<22|mf>>>10)+Sf<<0),pf+=(Tf^mf&(Sf^Tf))+Nf[4]-176418897,pf=(pf<<7|pf>>>25)+mf<<0,Tf+=(Sf^pf&(mf^Sf))+Nf[5]+1200080426,Tf=(Tf<<12|Tf>>>20)+pf<<0,Sf+=(mf^Tf&(pf^mf))+Nf[6]-1473231341,Sf=(Sf<<17|Sf>>>15)+Tf<<0,mf+=(pf^Sf&(Tf^pf))+Nf[7]-45705983,mf=(mf<<22|mf>>>10)+Sf<<0,pf+=(Tf^mf&(Sf^Tf))+Nf[8]+1770035416,pf=(pf<<7|pf>>>25)+mf<<0,Tf+=(Sf^pf&(mf^Sf))+Nf[9]-1958414417,Tf=(Tf<<12|Tf>>>20)+pf<<0,Sf+=(mf^Tf&(pf^mf))+Nf[10]-42063,Sf=(Sf<<17|Sf>>>15)+Tf<<0,mf+=(pf^Sf&(Tf^pf))+Nf[11]-1990404162,mf=(mf<<22|mf>>>10)+Sf<<0,pf+=(Tf^mf&(Sf^Tf))+Nf[12]+1804603682,pf=(pf<<7|pf>>>25)+mf<<0,Tf+=(Sf^pf&(mf^Sf))+Nf[13]-40341101,Tf=(Tf<<12|Tf>>>20)+pf<<0,Sf+=(mf^Tf&(pf^mf))+Nf[14]-1502002290,Sf=(Sf<<17|Sf>>>15)+Tf<<0,mf+=(pf^Sf&(Tf^pf))+Nf[15]+1236535329,mf=(mf<<22|mf>>>10)+Sf<<0,pf+=(Sf^Tf&(mf^Sf))+Nf[1]-165796510,pf=(pf<<5|pf>>>27)+mf<<0,Tf+=(mf^Sf&(pf^mf))+Nf[6]-1069501632,Tf=(Tf<<9|Tf>>>23)+pf<<0,Sf+=(pf^mf&(Tf^pf))+Nf[11]+643717713,Sf=(Sf<<14|Sf>>>18)+Tf<<0,mf+=(Tf^pf&(Sf^Tf))+Nf[0]-373897302,mf=(mf<<20|mf>>>12)+Sf<<0,pf+=(Sf^Tf&(mf^Sf))+Nf[5]-701558691,pf=(pf<<5|pf>>>27)+mf<<0,Tf+=(mf^Sf&(pf^mf))+Nf[10]+38016083,Tf=(Tf<<9|Tf>>>23)+pf<<0,Sf+=(pf^mf&(Tf^pf))+Nf[15]-660478335,Sf=(Sf<<14|Sf>>>18)+Tf<<0,mf+=(Tf^pf&(Sf^Tf))+Nf[4]-405537848,mf=(mf<<20|mf>>>12)+Sf<<0,pf+=(Sf^Tf&(mf^Sf))+Nf[9]+568446438,pf=(pf<<5|pf>>>27)+mf<<0,Tf+=(mf^Sf&(pf^mf))+Nf[14]-1019803690,Tf=(Tf<<9|Tf>>>23)+pf<<0,Sf+=(pf^mf&(Tf^pf))+Nf[3]-187363961,Sf=(Sf<<14|Sf>>>18)+Tf<<0,mf+=(Tf^pf&(Sf^Tf))+Nf[8]+1163531501,mf=(mf<<20|mf>>>12)+Sf<<0,pf+=(Sf^Tf&(mf^Sf))+Nf[13]-1444681467,pf=(pf<<5|pf>>>27)+mf<<0,Tf+=(mf^Sf&(pf^mf))+Nf[2]-51403784,Tf=(Tf<<9|Tf>>>23)+pf<<0,Sf+=(pf^mf&(Tf^pf))+Nf[7]+1735328473,Sf=(Sf<<14|Sf>>>18)+Tf<<0,mf+=(Tf^pf&(Sf^Tf))+Nf[12]-1926607734,mf=(mf<<20|mf>>>12)+Sf<<0,Af=mf^Sf,pf+=(Af^Tf)+Nf[5]-378558,pf=(pf<<4|pf>>>28)+mf<<0,Tf+=(Af^pf)+Nf[8]-2022574463,Tf=(Tf<<11|Tf>>>21)+pf<<0,Ef=Tf^pf,Sf+=(Ef^mf)+Nf[11]+1839030562,Sf=(Sf<<16|Sf>>>16)+Tf<<0,mf+=(Ef^Sf)+Nf[14]-35309556,mf=(mf<<23|mf>>>9)+Sf<<0,Af=mf^Sf,pf+=(Af^Tf)+Nf[1]-1530992060,pf=(pf<<4|pf>>>28)+mf<<0,Tf+=(Af^pf)+Nf[4]+1272893353,Tf=(Tf<<11|Tf>>>21)+pf<<0,Ef=Tf^pf,Sf+=(Ef^mf)+Nf[7]-155497632,Sf=(Sf<<16|Sf>>>16)+Tf<<0,mf+=(Ef^Sf)+Nf[10]-1094730640,mf=(mf<<23|mf>>>9)+Sf<<0,Af=mf^Sf,pf+=(Af^Tf)+Nf[13]+681279174,pf=(pf<<4|pf>>>28)+mf<<0,Tf+=(Af^pf)+Nf[0]-358537222,Tf=(Tf<<11|Tf>>>21)+pf<<0,Ef=Tf^pf,Sf+=(Ef^mf)+Nf[3]-722521979,Sf=(Sf<<16|Sf>>>16)+Tf<<0,mf+=(Ef^Sf)+Nf[6]+76029189,mf=(mf<<23|mf>>>9)+Sf<<0,Af=mf^Sf,pf+=(Af^Tf)+Nf[9]-640364487,pf=(pf<<4|pf>>>28)+mf<<0,Tf+=(Af^pf)+Nf[12]-421815835,Tf=(Tf<<11|Tf>>>21)+pf<<0,Ef=Tf^pf,Sf+=(Ef^mf)+Nf[15]+530742520,Sf=(Sf<<16|Sf>>>16)+Tf<<0,mf+=(Ef^Sf)+Nf[2]-995338651,mf=(mf<<23|mf>>>9)+Sf<<0,pf+=(Sf^(mf|~Tf))+Nf[0]-198630844,pf=(pf<<6|pf>>>26)+mf<<0,Tf+=(mf^(pf|~Sf))+Nf[7]+1126891415,Tf=(Tf<<10|Tf>>>22)+pf<<0,Sf+=(pf^(Tf|~mf))+Nf[14]-1416354905,Sf=(Sf<<15|Sf>>>17)+Tf<<0,mf+=(Tf^(Sf|~pf))+Nf[5]-57434055,mf=(mf<<21|mf>>>11)+Sf<<0,pf+=(Sf^(mf|~Tf))+Nf[12]+1700485571,pf=(pf<<6|pf>>>26)+mf<<0,Tf+=(mf^(pf|~Sf))+Nf[3]-1894986606,Tf=(Tf<<10|Tf>>>22)+pf<<0,Sf+=(pf^(Tf|~mf))+Nf[10]-1051523,Sf=(Sf<<15|Sf>>>17)+Tf<<0,mf+=(Tf^(Sf|~pf))+Nf[1]-2054922799,mf=(mf<<21|mf>>>11)+Sf<<0,pf+=(Sf^(mf|~Tf))+Nf[8]+1873313359,pf=(pf<<6|pf>>>26)+mf<<0,Tf+=(mf^(pf|~Sf))+Nf[15]-30611744,Tf=(Tf<<10|Tf>>>22)+pf<<0,Sf+=(pf^(Tf|~mf))+Nf[6]-1560198380,Sf=(Sf<<15|Sf>>>17)+Tf<<0,mf+=(Tf^(Sf|~pf))+Nf[13]+1309151649,mf=(mf<<21|mf>>>11)+Sf<<0,pf+=(Sf^(mf|~Tf))+Nf[4]-145523070,pf=(pf<<6|pf>>>26)+mf<<0,Tf+=(mf^(pf|~Sf))+Nf[11]-1120210379,Tf=(Tf<<10|Tf>>>22)+pf<<0,Sf+=(pf^(Tf|~mf))+Nf[2]+718787259,Sf=(Sf<<15|Sf>>>17)+Tf<<0,mf+=(Tf^(Sf|~pf))+Nf[9]-343485551,mf=(mf<<21|mf>>>11)+Sf<<0,this.first?(this.h0=pf+1732584193<<0,this.h1=mf-271733879<<0,this.h2=Sf-1732584194<<0,this.h3=Tf+271733878<<0,this.first=!1):(this.h0=this.h0+pf<<0,this.h1=this.h1+mf<<0,this.h2=this.h2+Sf<<0,this.h3=this.h3+Tf<<0)},_f.prototype.hex=function(){this.finalize();var pf=this.h0,mf=this.h1,Sf=this.h2,Tf=this.h3;return kd[pf>>4&15]+kd[pf&15]+kd[pf>>12&15]+kd[pf>>8&15]+kd[pf>>20&15]+kd[pf>>16&15]+kd[pf>>28&15]+kd[pf>>24&15]+kd[mf>>4&15]+kd[mf&15]+kd[mf>>12&15]+kd[mf>>8&15]+kd[mf>>20&15]+kd[mf>>16&15]+kd[mf>>28&15]+kd[mf>>24&15]+kd[Sf>>4&15]+kd[Sf&15]+kd[Sf>>12&15]+kd[Sf>>8&15]+kd[Sf>>20&15]+kd[Sf>>16&15]+kd[Sf>>28&15]+kd[Sf>>24&15]+kd[Tf>>4&15]+kd[Tf&15]+kd[Tf>>12&15]+kd[Tf>>8&15]+kd[Tf>>20&15]+kd[Tf>>16&15]+kd[Tf>>28&15]+kd[Tf>>24&15]},_f.prototype.toString=_f.prototype.hex,_f.prototype.digest=function(pf){if(pf==="hex")return this.hex();this.finalize();var mf=this.h0,Sf=this.h1,Tf=this.h2,Af=this.h3,Ef=[mf&255,mf>>8&255,mf>>16&255,mf>>24&255,Sf&255,Sf>>8&255,Sf>>16&255,Sf>>24&255,Tf&255,Tf>>8&255,Tf>>16&255,Tf>>24&255,Af&255,Af>>8&255,Af>>16&255,Af>>24&255];return Ef},_f.prototype.array=_f.prototype.digest,_f.prototype.arrayBuffer=function(){this.finalize();var pf=new ArrayBuffer(16),mf=new Uint32Array(pf);return mf[0]=this.h0,mf[1]=this.h1,mf[2]=this.h2,mf[3]=this.h3,pf},_f.prototype.buffer=_f.prototype.arrayBuffer,_f.prototype.base64=function(){for(var pf,mf,Sf,Tf="",Af=this.array(),Ef=0;Ef<15;)pf=Af[Ef++],mf=Af[Ef++],Sf=Af[Ef++],Tf+=Fd[pf>>>2]+Fd[(pf<<4|mf>>>4)&63]+Fd[(mf<<2|Sf>>>6)&63]+Fd[Sf&63];return pf=Af[Ef],Tf+=Fd[pf>>>2]+Fd[pf<<4&63]+"==",Tf};var Xd=Jd();Ad?ud.exports=Xd:(md.md5=Xd,Nd&&(dd=(function(){return Xd}).call(Xd,ld,Xd,ud),dd!==void 0&&(ud.exports=dd)))})()}).call(this,ld("./node_modules/webpack/buildin/module.js")(nd))},"./lib/request.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/typeof.js"),dd=function(Nd){switch(ud(Nd)){case"string":return Nd;case"boolean":return Nd?"true":"false";case"number":return isFinite(Nd)?Nd:"";default:return""}},pd=function(Nd,Od,kd,Ld){return Od=Od||"&",kd=kd||"=",Nd===null&&(Nd=void 0),ud(Nd)==="object"?Object.keys(Nd).map(function(Gd){var jd=encodeURIComponent(dd(Gd))+kd;return Array.isArray(Nd[Gd])?Nd[Gd].map(function(Fd){return jd+encodeURIComponent(dd(Fd))}).join(Od):jd+encodeURIComponent(dd(Nd[Gd]))}).filter(Boolean).join(Od):""},fd=function(Nd,Od,kd){var Ld={},Gd=Od.getAllResponseHeaders();return Gd&&Gd.length>0&&Gd.trim().split(` +`).forEach(function(jd){if(jd){var Fd=jd.indexOf(":"),Ud=jd.substr(0,Fd).trim().toLowerCase(),qd=jd.substr(Fd+1).trim();Ld[Ud]=qd}}),{error:Nd,statusCode:Od.status,statusMessage:Od.statusText,headers:Ld,body:kd}},md=function(Nd,Od){return!Od&&Od==="text"?Nd.responseText:Nd.response},vd=function(Nd,Od){var kd=(Nd.method||"GET").toUpperCase(),Ld=Nd.url;if(Nd.qs){var Gd=pd(Nd.qs);Gd&&(Ld+=(Ld.indexOf("?")===-1?"?":"&")+Gd)}var jd=new XMLHttpRequest;if(jd.open(kd,Ld,!0),jd.responseType=Nd.dataType||"text",Nd.xhrFields)for(var Fd in Nd.xhrFields)jd[Fd]=Nd.xhrFields[Fd];var Ud=Nd.headers;if(Ud)for(var qd in Ud)Ud.hasOwnProperty(qd)&&qd.toLowerCase()!=="content-length"&&qd.toLowerCase()!=="user-agent"&&qd.toLowerCase()!=="origin"&&qd.toLowerCase()!=="host"&&jd.setRequestHeader(qd,Ud[qd]);return Nd.onProgress&&jd.upload&&(jd.upload.onprogress=Nd.onProgress),Nd.onDownloadProgress&&(jd.onprogress=Nd.onDownloadProgress),Nd.timeout&&(jd.timeout=Nd.timeout),jd.ontimeout=function(zd){var Wd=new Error("timeout");Od(fd(Wd,jd))},jd.onload=function(){Od(fd(null,jd,md(jd,Nd.dataType)))},jd.onerror=function(zd){var Wd=md(jd,Nd.dataType);if(Wd)Od(fd(null,jd,Wd));else{var Jd=jd.statusText;!Jd&&jd.status===0&&(Jd=new Error("CORS blocked or network error")),Od(fd(Jd,jd,Wd))}},jd.send(Nd.body||""),jd};nd.exports=vd},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(nd,od){function ld(ud,dd){if(!(ud instanceof dd))throw new TypeError("Cannot call a class as a function")}nd.exports=ld,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function dd(fd,md){for(var vd=0;vd"u")};od.isExist=function(Ad){return typeof Ad<"u"},od.isEmptyObject=function(Ad){return Object.keys(Ad).length===0},od.merge=function(Ad,Nd,Od){if(Nd){const kd=Object.keys(Nd),Ld=kd.length;for(let Gd=0;Gd"&&Wd[mf]!==" "&&Wd[mf]!==" "&&Wd[mf]!==` +`&&Wd[mf]!=="\r";mf++)Af+=Wd[mf];if(Af=Af.trim(),Af[Af.length-1]==="/"&&(Af=Af.substring(0,Af.length-1),mf--),!Ud(Af)){let If;return Af.trim().length===0?If="Invalid space after '<'.":If="Tag '"+Af+"' is an invalid name.",jd("InvalidTag",If,qd(Wd,mf))}const Ef=Nd(Wd,mf);if(Ef===!1)return jd("InvalidAttr","Attributes for '"+Af+"' have open quote.",qd(Wd,mf));let Nf=Ef.value;if(mf=Ef.index,Nf[Nf.length-1]==="/"){const If=mf-Nf.length;Nf=Nf.substring(0,Nf.length-1);const Gf=kd(Nf,Jd);if(Gf===!0)Xd=!0;else return jd(Gf.err.code,Gf.err.msg,qd(Wd,If+Gf.err.line))}else if(Tf)if(Ef.tagClosed){if(Nf.trim().length>0)return jd("InvalidTag","Closing tag '"+Af+"' can't have attributes or invalid starting.",qd(Wd,Sf));if(_f.length===0)return jd("InvalidTag","Closing tag '"+Af+"' has not been opened.",qd(Wd,Sf));{const If=_f.pop();if(Af!==If.tagName){let Gf=qd(Wd,If.tagStartPos);return jd("InvalidTag","Expected closing tag '"+If.tagName+"' (opened in line "+Gf.line+", col "+Gf.col+") instead of closing tag '"+Af+"'.",qd(Wd,Sf))}_f.length==0&&(pf=!0)}}else return jd("InvalidTag","Closing tag '"+Af+"' doesn't have proper closing.",qd(Wd,mf));else{const If=kd(Nf,Jd);if(If!==!0)return jd(If.err.code,If.err.msg,qd(Wd,mf-Nf.length+If.err.line));if(pf===!0)return jd("InvalidXml","Multiple possible root nodes found.",qd(Wd,mf));Jd.unpairedTags.indexOf(Af)!==-1||_f.push({tagName:Af,tagStartPos:Sf}),Xd=!0}for(mf++;mf0)return jd("InvalidXml","Invalid '"+JSON.stringify(_f.map(mf=>mf.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return jd("InvalidXml","Start tag expected.",1);return!0};function pd(Wd){return Wd===" "||Wd===" "||Wd===` +`||Wd==="\r"}function fd(Wd,Jd){const _f=Jd;for(;Jd5&&Xd==="xml")return jd("InvalidXml","XML declaration allowed only at the start of the document.",qd(Wd,Jd));if(Wd[Jd]=="?"&&Wd[Jd+1]==">"){Jd++;break}else continue}return Jd}function md(Wd,Jd){if(Wd.length>Jd+5&&Wd[Jd+1]==="-"&&Wd[Jd+2]==="-"){for(Jd+=3;Jd"){Jd+=2;break}}else if(Wd.length>Jd+8&&Wd[Jd+1]==="D"&&Wd[Jd+2]==="O"&&Wd[Jd+3]==="C"&&Wd[Jd+4]==="T"&&Wd[Jd+5]==="Y"&&Wd[Jd+6]==="P"&&Wd[Jd+7]==="E"){let _f=1;for(Jd+=8;Jd"&&(_f--,_f===0))break}else if(Wd.length>Jd+9&&Wd[Jd+1]==="["&&Wd[Jd+2]==="C"&&Wd[Jd+3]==="D"&&Wd[Jd+4]==="A"&&Wd[Jd+5]==="T"&&Wd[Jd+6]==="A"&&Wd[Jd+7]==="["){for(Jd+=8;Jd"){Jd+=2;break}}return Jd}const vd='"',Ad="'";function Nd(Wd,Jd){let _f="",Xd="",pf=!1;for(;Jd"&&Xd===""){pf=!0;break}_f+=Wd[Jd]}return Xd!==""?!1:{value:_f,index:Jd,tagClosed:pf}}const Od=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function kd(Wd,Jd){const _f=ud.getAllMatches(Wd,Od),Xd={};for(let pf=0;pf<_f.length;pf++){if(_f[pf][1].length===0)return jd("InvalidAttr","Attribute '"+_f[pf][2]+"' has no space in starting.",zd(_f[pf]));if(_f[pf][3]!==void 0&&_f[pf][4]===void 0)return jd("InvalidAttr","Attribute '"+_f[pf][2]+"' is without value.",zd(_f[pf]));if(_f[pf][3]===void 0&&!Jd.allowBooleanAttributes)return jd("InvalidAttr","boolean attribute '"+_f[pf][2]+"' is not allowed.",zd(_f[pf]));const mf=_f[pf][2];if(!Fd(mf))return jd("InvalidAttr","Attribute '"+mf+"' is an invalid name.",zd(_f[pf]));if(!Xd.hasOwnProperty(mf))Xd[mf]=1;else return jd("InvalidAttr","Attribute '"+mf+"' is repeated.",zd(_f[pf]))}return!0}function Ld(Wd,Jd){let _f=/\d/;for(Wd[Jd]==="x"&&(Jd++,_f=/[\da-fA-F]/);Jd","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function pd(Ad){this.options=Object.assign({},dd,Ad),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=vd),this.processTextOrObjNode=fd,this.options.format?(this.indentate=md,this.tagEndChar=`> `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}pd.prototype.build=function(Ad){return this.options.preserveOrder?ud(Ad,this.options):(Array.isArray(Ad)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ad={[this.options.arrayNodeName]:Ad}),this.j2x(Ad,0).val)},pd.prototype.j2x=function(Ad,Nd){let Od="",kd="";for(let Ld in Ad)if(Object.prototype.hasOwnProperty.call(Ad,Ld))if(typeof Ad[Ld]>"u")this.isAttribute(Ld)&&(kd+="");else if(Ad[Ld]===null)this.isAttribute(Ld)?kd+="":Ld[0]==="?"?kd+=this.indentate(Nd)+"<"+Ld+"?"+this.tagEndChar:kd+=this.indentate(Nd)+"<"+Ld+"/"+this.tagEndChar;else if(Ad[Ld]instanceof Date)kd+=this.buildTextValNode(Ad[Ld],Ld,"",Nd);else if(typeof Ad[Ld]!="object"){const Gd=this.isAttribute(Ld);if(Gd)Od+=this.buildAttrPairStr(Gd,""+Ad[Ld]);else if(Ld===this.options.textNodeName){let Ud=this.options.tagValueProcessor(Ld,""+Ad[Ld]);kd+=this.replaceEntitiesValue(Ud)}else kd+=this.buildTextValNode(Ad[Ld],Ld,"",Nd)}else if(Array.isArray(Ad[Ld])){const Gd=Ad[Ld].length;let Ud="";for(let Fd=0;Fd"u"||(jd===null?Ld[0]==="?"?kd+=this.indentate(Nd)+"<"+Ld+"?"+this.tagEndChar:kd+=this.indentate(Nd)+"<"+Ld+"/"+this.tagEndChar:typeof jd=="object"?this.options.oneListGroup?Ud+=this.j2x(jd,Nd+1).val:Ud+=this.processTextOrObjNode(jd,Ld,Nd):Ud+=this.buildTextValNode(jd,Ld,"",Nd))}this.options.oneListGroup&&(Ud=this.buildObjectNode(Ud,Ld,"",Nd)),kd+=Ud}else if(this.options.attributesGroupName&&Ld===this.options.attributesGroupName){const Gd=Object.keys(Ad[Ld]),Ud=Gd.length;for(let Fd=0;Fd"+Ad+Ld:this.options.commentPropName!==!1&&Nd===this.options.commentPropName&&Gd.length===0?this.indentate(kd)+``+this.newLine:this.indentate(kd)+"<"+Nd+Od+Gd+this.tagEndChar+Ad+this.indentate(kd)+Ld}},pd.prototype.closeTag=function(Ad){let Nd="";return this.options.unpairedTags.indexOf(Ad)!==-1?this.options.suppressUnpairedNode||(Nd="/"):this.options.suppressEmptyNode?Nd="/":Nd=`>`+this.newLine;if(this.options.commentPropName!==!1&&Nd===this.options.commentPropName)return this.indentate(kd)+``+this.newLine;if(Nd[0]==="?")return this.indentate(kd)+"<"+Nd+Od+"?"+this.tagEndChar;{let Ld=this.options.tagValueProcessor(Nd,Ad);return Ld=this.replaceEntitiesValue(Ld),Ld===""?this.indentate(kd)+"<"+Nd+Od+this.closeTag(Nd)+this.tagEndChar:this.indentate(kd)+"<"+Nd+Od+">"+Ld+"0&&this.options.processEntities)for(let Nd=0;Nd0&&(Od=ld),dd(Ad,Nd,"",Od)}function dd(Ad,Nd,Od,kd){let Ld="",Gd=!1;for(let Ud=0;Ud`,Gd=!1;continue}else if(jd===Nd.commentPropName){Ld+=kd+``,Gd=!0;continue}else if(jd[0]==="?"){const Xd=fd(Fd[":@"],Nd),pf=jd==="?xml"?"":kd;let mf=Fd[jd][0][Nd.textNodeName];mf=mf.length!==0?" "+mf:"",Ld+=pf+`<${jd}${mf}${Xd}?>`,Gd=!0;continue}let zd=kd;zd!==""&&(zd+=Nd.indentBy);const Yd=fd(Fd[":@"],Nd),Jd=kd+`<${jd}${Yd}`,yf=dd(Fd[jd],Nd,qd,zd);Nd.unpairedTags.indexOf(jd)!==-1?Nd.suppressUnpairedNode?Ld+=Jd+">":Ld+=Jd+"/>":(!yf||yf.length===0)&&Nd.suppressEmptyNode?Ld+=Jd+"/>":yf&&yf.endsWith(">")?Ld+=Jd+`>${yf}${kd}`:(Ld+=Jd+">",yf&&kd!==""&&(yf.includes("/>")||yf.includes("`),Gd=!0}return Ld}function pd(Ad){const Nd=Object.keys(Ad);for(let Od=0;Od0&&Nd.processEntities)for(let Od=0;Od"){if(jd?kd[Ld-1]==="-"&&kd[Ld-2]==="-"&&(jd=!1,Ud--):Ud--,Ud===0)break}else kd[Ld]==="["?Fd=!0:qd+=kd[Ld];if(Ud!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Gd,i:Ld}}function pd(kd,Ld){let Gd="";for(;Ld!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(dd,pd,fd){return dd}},ud=function(dd){return Object.assign({},ld,dd)};od.buildOptions=ud,od.defaultOptions=ld},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(nd,od,ld){const ud=ld("./node_modules/fast-xml-parser/src/util.js"),dd=ld("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),pd=ld("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),fd=ld("./node_modules/strnum/strnum.js");class md{constructor(pf){this.options=pf,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(mf,Tf)=>String.fromCharCode(Number.parseInt(Tf,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(mf,Tf)=>String.fromCharCode(Number.parseInt(Tf,16))}},this.addExternalEntities=vd,this.parseXml=Ld,this.parseTextData=Ad,this.resolveNameSpace=Nd,this.buildAttributesMap=kd,this.isItStopNode=jd,this.replaceEntitiesValue=Ud,this.readStopNodeData=Jd,this.saveTextToParentTag=Fd,this.addChild=Gd}}function vd(Xd){const pf=Object.keys(Xd);for(let mf=0;mf0)){Sf||(Xd=this.replaceEntitiesValue(Xd));const Df=this.options.tagValueProcessor(pf,Xd,mf,vf,Af);return Df==null?Xd:typeof Df!=typeof Xd||Df!==Xd?Df:this.options.trimValues?yf(Xd,this.options.parseTagValue,this.options.numberParseOptions):Xd.trim()===Xd?yf(Xd,this.options.parseTagValue,this.options.numberParseOptions):Xd}}function Nd(Xd){if(this.options.removeNSPrefix){const pf=Xd.split(":"),mf=Xd.charAt(0)==="/"?"/":"";if(pf[0]==="xmlns")return"";pf.length===2&&(Xd=mf+pf[1])}return Xd}const Od=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function kd(Xd,pf,mf){if(!this.options.ignoreAttributes&&typeof Xd=="string"){const Tf=ud.getAllMatches(Xd,Od),vf=Tf.length,Af={};for(let Sf=0;Sf",Af,"Closing Tag is not closed.");let If=Xd.substring(Af+2,Df).trim();if(this.options.removeNSPrefix){const ih=If.indexOf(":");ih!==-1&&(If=If.substr(ih+1))}this.options.transformTagName&&(If=this.options.transformTagName(If)),mf&&(Tf=this.saveTextToParentTag(Tf,mf,vf));const Gf=vf.substring(vf.lastIndexOf(".")+1);if(If&&this.options.unpairedTags.indexOf(If)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let Jf=0;Gf&&this.options.unpairedTags.indexOf(Gf)!==-1?(Jf=vf.lastIndexOf(".",vf.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Jf=vf.lastIndexOf("."),vf=vf.substring(0,Jf),mf=this.tagsNodeStack.pop(),Tf="",Af=Df}else if(Xd[Af+1]==="?"){let Df=Yd(Xd,Af,!1,"?>");if(!Df)throw new Error("Pi Tag is not closed.");if(Tf=this.saveTextToParentTag(Tf,mf,vf),!(this.options.ignoreDeclaration&&Df.tagName==="?xml"||this.options.ignorePiTags)){const If=new dd(Df.tagName);If.add(this.options.textNodeName,""),Df.tagName!==Df.tagExp&&Df.attrExpPresent&&(If[":@"]=this.buildAttributesMap(Df.tagExp,vf,Df.tagName)),this.addChild(mf,If,vf)}Af=Df.closeIndex+1}else if(Xd.substr(Af+1,3)==="!--"){const Df=zd(Xd,"-->",Af+4,"Comment is not closed.");if(this.options.commentPropName){const If=Xd.substring(Af+4,Df-2);Tf=this.saveTextToParentTag(Tf,mf,vf),mf.add(this.options.commentPropName,[{[this.options.textNodeName]:If}])}Af=Df}else if(Xd.substr(Af+1,2)==="!D"){const Df=pd(Xd,Af);this.docTypeEntities=Df.entities,Af=Df.i}else if(Xd.substr(Af+1,2)==="!["){const Df=zd(Xd,"]]>",Af,"CDATA is not closed.")-2,If=Xd.substring(Af+9,Df);Tf=this.saveTextToParentTag(Tf,mf,vf);let Gf=this.parseTextData(If,mf.tagname,vf,!0,!1,!0,!0);Gf==null&&(Gf=""),this.options.cdataPropName?mf.add(this.options.cdataPropName,[{[this.options.textNodeName]:If}]):mf.add(this.options.textNodeName,Gf),Af=Df+2}else{let Df=Yd(Xd,Af,this.options.removeNSPrefix),If=Df.tagName;const Gf=Df.rawTagName;let Jf=Df.tagExp,ih=Df.attrExpPresent,uh=Df.closeIndex;this.options.transformTagName&&(If=this.options.transformTagName(If)),mf&&Tf&&mf.tagname!=="!xml"&&(Tf=this.saveTextToParentTag(Tf,mf,vf,!1));const qf=mf;if(qf&&this.options.unpairedTags.indexOf(qf.tagname)!==-1&&(mf=this.tagsNodeStack.pop(),vf=vf.substring(0,vf.lastIndexOf("."))),If!==pf.tagname&&(vf+=vf?"."+If:If),this.isItStopNode(this.options.stopNodes,vf,If)){let Pf="";if(Jf.length>0&&Jf.lastIndexOf("/")===Jf.length-1)If[If.length-1]==="/"?(If=If.substr(0,If.length-1),vf=vf.substr(0,vf.length-1),Jf=If):Jf=Jf.substr(0,Jf.length-1),Af=Df.closeIndex;else if(this.options.unpairedTags.indexOf(If)!==-1)Af=Df.closeIndex;else{const Yf=this.readStopNodeData(Xd,Gf,uh+1);if(!Yf)throw new Error(`Unexpected end of ${Gf}`);Af=Yf.i,Pf=Yf.tagContent}const Wf=new dd(If);If!==Jf&&ih&&(Wf[":@"]=this.buildAttributesMap(Jf,vf,If)),Pf&&(Pf=this.parseTextData(Pf,If,vf,!0,ih,!0,!0)),vf=vf.substr(0,vf.lastIndexOf(".")),Wf.add(this.options.textNodeName,Pf),this.addChild(mf,Wf,vf)}else{if(Jf.length>0&&Jf.lastIndexOf("/")===Jf.length-1){If[If.length-1]==="/"?(If=If.substr(0,If.length-1),vf=vf.substr(0,vf.length-1),Jf=If):Jf=Jf.substr(0,Jf.length-1),this.options.transformTagName&&(If=this.options.transformTagName(If));const Pf=new dd(If);If!==Jf&&ih&&(Pf[":@"]=this.buildAttributesMap(Jf,vf,If)),this.addChild(mf,Pf,vf),vf=vf.substr(0,vf.lastIndexOf("."))}else{const Pf=new dd(If);this.tagsNodeStack.push(mf),If!==Jf&&ih&&(Pf[":@"]=this.buildAttributesMap(Jf,vf,If)),this.addChild(mf,Pf,vf),mf=Pf}Tf="",Af=uh}}else Tf+=Xd[Af];return pf.child};function Gd(Xd,pf,mf){const Tf=this.options.updateTag(pf.tagname,mf,pf[":@"]);Tf===!1||(typeof Tf=="string"&&(pf.tagname=Tf),Xd.addChild(pf))}const Ud=function(Xd){if(this.options.processEntities){for(let pf in this.docTypeEntities){const mf=this.docTypeEntities[pf];Xd=Xd.replace(mf.regx,mf.val)}for(let pf in this.lastEntities){const mf=this.lastEntities[pf];Xd=Xd.replace(mf.regex,mf.val)}if(this.options.htmlEntities)for(let pf in this.htmlEntities){const mf=this.htmlEntities[pf];Xd=Xd.replace(mf.regex,mf.val)}Xd=Xd.replace(this.ampEntity.regex,this.ampEntity.val)}return Xd};function Fd(Xd,pf,mf,Tf){return Xd&&(Tf===void 0&&(Tf=Object.keys(pf.child).length===0),Xd=this.parseTextData(Xd,pf.tagname,mf,!1,pf[":@"]?Object.keys(pf[":@"]).length!==0:!1,Tf),Xd!==void 0&&Xd!==""&&pf.add(this.options.textNodeName,Xd),Xd=""),Xd}function jd(Xd,pf,mf){const Tf="*."+mf;for(const vf in Xd){const Af=Xd[vf];if(Tf===Af||pf===Af)return!0}return!1}function qd(Xd,pf,mf=">"){let Tf,vf="";for(let Af=pf;Af",mf,`${pf} is not closed`);if(Xd.substring(mf+2,Af).trim()===pf&&(vf--,vf===0))return{tagContent:Xd.substring(Tf,mf),i:Af};mf=Af}else if(Xd[mf+1]==="?")mf=zd(Xd,"?>",mf+1,"StopNode is not closed.");else if(Xd.substr(mf+1,3)==="!--")mf=zd(Xd,"-->",mf+3,"StopNode is not closed.");else if(Xd.substr(mf+1,2)==="![")mf=zd(Xd,"]]>",mf,"StopNode is not closed.")-2;else{const Af=Yd(Xd,mf,">");Af&&((Af&&Af.tagName)===pf&&Af.tagExp[Af.tagExp.length-1]!=="/"&&vf++,mf=Af.closeIndex)}}function yf(Xd,pf,mf){if(pf&&typeof Xd=="string"){const Tf=Xd.trim();return Tf==="true"?!0:Tf==="false"?!1:fd(Xd,mf)}else return ud.isExist(Xd)?Xd:""}nd.exports=md},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(nd,od,ld){const{buildOptions:ud}=ld("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),dd=ld("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:pd}=ld("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),fd=ld("./node_modules/fast-xml-parser/src/validator.js");class md{constructor(Ad){this.externalEntities={},this.options=ud(Ad)}parse(Ad,Nd){if(typeof Ad!="string")if(Ad.toString)Ad=Ad.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(Nd){Nd===!0&&(Nd={});const Ld=fd.validate(Ad,Nd);if(Ld!==!0)throw Error(`${Ld.err.msg}:${Ld.err.line}:${Ld.err.col}`)}const Od=new dd(this.options);Od.addExternalEntities(this.externalEntities);const kd=Od.parseXml(Ad);return this.options.preserveOrder||kd===void 0?kd:pd(kd,this.options)}addEntity(Ad,Nd){if(Nd.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(Ad.indexOf("&")!==-1||Ad.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(Nd==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[Ad]=Nd}}nd.exports=md},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(nd,od,ld){function ud(vd,Ad){return dd(vd,Ad)}function dd(vd,Ad,Nd){let Od;const kd={};for(let Ld=0;Ld0&&(kd[Ad.textNodeName]=Od):Od!==void 0&&(kd[Ad.textNodeName]=Od),kd}function pd(vd){const Ad=Object.keys(vd);for(let Nd=0;Nd0?this.child.push({[pd.tagname]:pd.child,":@":pd[":@"]}):this.child.push({[pd.tagname]:pd.child})}}nd.exports=ud},"./node_modules/process/browser.js":function(nd,od){var ld=nd.exports={},ud,dd;function pd(){throw new Error("setTimeout has not been defined")}function fd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ud=setTimeout:ud=pd}catch{ud=pd}try{typeof clearTimeout=="function"?dd=clearTimeout:dd=fd}catch{dd=fd}})();function md(jd){if(ud===setTimeout)return setTimeout(jd,0);if((ud===pd||!ud)&&setTimeout)return ud=setTimeout,setTimeout(jd,0);try{return ud(jd,0)}catch{try{return ud.call(null,jd,0)}catch{return ud.call(this,jd,0)}}}function vd(jd){if(dd===clearTimeout)return clearTimeout(jd);if((dd===fd||!dd)&&clearTimeout)return dd=clearTimeout,clearTimeout(jd);try{return dd(jd)}catch{try{return dd.call(null,jd)}catch{return dd.call(this,jd)}}}var Ad=[],Nd=!1,Od,kd=-1;function Ld(){!Nd||!Od||(Nd=!1,Od.length?Ad=Od.concat(Ad):kd=-1,Ad.length&&Gd())}function Gd(){if(!Nd){var jd=md(Ld);Nd=!0;for(var qd=Ad.length;qd;){for(Od=Ad,Ad=[];++kd1)for(var zd=1;zd0&&Od&&Ad[2]!==".")return md;if(!vd.leadingZeros&&kd.length>0&&!Od&&Ad[1]!==".")return md;{const Ud=Number(Ad),Fd=""+Ud;return Fd.search(/[eE]/)!==-1||Gd?vd.eNotation?Ud:md:Ad.indexOf(".")!==-1?Fd==="0"&&Ld===""||Fd===Ld||Od&&Fd==="-"+Ld?Ud:md:kd?Ld===Fd||Od+Ld===Fd?Ud:md:Ad===Fd||Ad===Od+Fd?Ud:md}}else return md}}function fd(md){return md&&md.indexOf(".")!==-1&&(md=md.replace(/0+$/,""),md==="."?md="0":md[0]==="."?md="0"+md:md[md.length-1]==="."&&(md=md.substr(0,md.length-1))),md}nd.exports=pd},"./node_modules/webpack/buildin/amd-options.js":function(nd,od){(function(ld){nd.exports=ld}).call(this,{})},"./node_modules/webpack/buildin/module.js":function(nd,od){nd.exports=function(ld){return ld.webpackPolyfill||(ld.deprecate=function(){},ld.paths=[],ld.children||(ld.children=[]),Object.defineProperty(ld,"loaded",{enumerable:!0,get:function(){return ld.l}}),Object.defineProperty(ld,"id",{enumerable:!0,get:function(){return ld.i}}),ld.webpackPolyfill=1),ld}},"./package.json":function(nd){nd.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.8.6","description":"JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"fast-xml-parser":"^4.4.0"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/typeof.js"),dd=ld("./src/session.js"),pd=ld("./src/async.js"),fd=ld("./src/event.js").EventProxy,md=ld("./src/util.js"),vd=ld("./src/tracker.js");function Ad(Xd,pf){var mf=this,Tf=new fd,vf=Xd.TaskId,Af=Xd.Bucket,Sf=Xd.Region,Df=Xd.Key,If=Xd.Body,Gf=Xd.ChunkSize||Xd.SliceSize||mf.options.ChunkSize,Jf=Xd.AsyncLimit,ih=Xd.StorageClass,uh=Xd.ServerSideEncryption,qf,Pf,Wf=Xd.onHashProgress,Yf=Xd.tracker;Yf&&Yf.setParams({chunkSize:Gf}),Tf.on("error",function(Kf){if(mf._isRunningTask(vf))return Xd.UploadData.UploadId&&dd.removeUsing(Xd.UploadData.UploadId),Kf.UploadId=Xd.UploadData.UploadId||"",pf(Kf)}),Tf.on("upload_complete",function(Kf){var Cf=md.extend({UploadId:Xd.UploadData.UploadId||""},Kf);pf(null,Cf)}),Tf.on("upload_slice_complete",function(Kf){var Cf={};md.each(Xd.Headers,function(xf,Xf){var sh=Xf.toLowerCase();(sh.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(sh))&&(Cf[Xf]=xf)}),Ud.call(mf,{Bucket:Af,Region:Sf,Key:Df,UploadId:Kf.UploadId,SliceList:Kf.SliceList,Headers:Cf,tracker:Yf},function(xf,Xf){if(mf._isRunningTask(vf)){if(dd.removeUsing(Kf.UploadId),xf)return Pf(null,!0),Tf.emit("error",xf);dd.removeUploadId.call(mf,Kf.UploadId),Pf({loaded:qf,total:qf},!0),Tf.emit("upload_complete",Xf)}})}),Tf.on("get_upload_data_finish",function(Kf){var Cf=dd.getFileId(If,Xd.ChunkSize,Af,Df);Cf&&dd.saveUploadId.call(mf,Cf,Kf.UploadId,mf.options.UploadIdCacheLimit),dd.setUsing(Kf.UploadId),Pf(null,!0),Ld.call(mf,{TaskId:vf,Bucket:Af,Region:Sf,Key:Df,Body:If,FileSize:qf,SliceSize:Gf,AsyncLimit:Jf,ServerSideEncryption:uh,UploadData:Kf,Headers:Xd.Headers,onProgress:Pf,tracker:Yf},function(xf,Xf){if(mf._isRunningTask(vf)){if(xf)return Pf(null,!0),Tf.emit("error",xf);Tf.emit("upload_slice_complete",Xf)}})}),Tf.on("get_file_size_finish",function(){if(Pf=md.throttleOnProgress.call(mf,qf,Xd.onProgress),Xd.UploadData.UploadId)Tf.emit("get_upload_data_finish",Xd.UploadData);else{var Kf=md.extend({TaskId:vf,Bucket:Af,Region:Sf,Key:Df,Headers:Xd.Headers,StorageClass:ih,Body:If,FileSize:qf,SliceSize:Gf,onHashProgress:Wf,tracker:Yf},Xd);Nd.call(mf,Kf,function(Cf,xf){if(mf._isRunningTask(vf)){if(Cf)return Tf.emit("error",Cf);Xd.UploadData.UploadId=xf.UploadId,Xd.UploadData.PartList=xf.PartList,Tf.emit("get_upload_data_finish",Xd.UploadData)}})}}),qf=Xd.ContentLength,delete Xd.ContentLength,!Xd.Headers&&(Xd.Headers={}),md.each(Xd.Headers,function(Kf,Cf){Cf.toLowerCase()==="content-length"&&delete Xd.Headers[Cf]}),function(){for(var Kf=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],Cf=1024*1024,xf=0;xfih)return xf(null,!1);if(Xf>1){var sh=Math.max(Cf[0].Size,Cf[1].Size);if(sh!==Jf)return xf(null,!1)}var Ah=function dh(Rf){if(Rf=xf.length){Yf.emit("has_and_check_upload_id",Kf);return}var dh=xf[Ah];if(!md.isInArray(Kf,dh)){dd.removeUploadId.call(Df,dh),sh(Ah+1);return}if(dd.using[dh]){sh(Ah+1);return}kd.call(Df,{Bucket:Tf,Region:vf,Key:Af,UploadId:dh,tracker:Xd.tracker},function(Rf,gh){Df._isRunningTask(mf)&&(Rf?(dd.removeUploadId.call(Df,dh),sh(Ah+1)):Yf.emit("upload_id_available",{UploadId:dh,PartList:gh.PartList}))})};Xf(0)}),Yf.on("get_remote_upload_id_list",function(){Od.call(Df,{Bucket:Tf,Region:vf,Key:Af,tracker:Xd.tracker},function(Kf,Cf){if(Df._isRunningTask(mf)){if(Kf)return Yf.emit("error",Kf);var xf=md.filter(Cf.UploadList,function(Ah){return Ah.Key===Af&&(!Sf||Ah.StorageClass.toUpperCase()===Sf.toUpperCase())}).reverse().map(function(Ah){return Ah.UploadId||Ah.UploadID});if(xf.length)Yf.emit("seek_local_avail_upload_id",xf);else{var Xf=dd.getFileId(Xd.Body,Xd.ChunkSize,Tf,Af),sh;Xf&&(sh=dd.getUploadIdList.call(Df,Xf))&&md.each(sh,function(Ah){dd.removeUploadId.call(Df,Ah)}),Yf.emit("no_available_upload_id")}}})}),Yf.emit("get_remote_upload_id_list")}function Od(Xd,pf){var mf=this,Tf=[],vf={Bucket:Xd.Bucket,Region:Xd.Region,Prefix:Xd.Key,calledBySdk:Xd.calledBySdk||"sliceUploadFile",tracker:Xd.tracker},Af=function Sf(){mf.multipartList(vf,function(Df,If){if(Df)return pf(Df);Tf.push.apply(Tf,If.Upload||[]),If.IsTruncated==="true"?(vf.KeyMarker=If.NextKeyMarker,vf.UploadIdMarker=If.NextUploadIdMarker,Sf()):pf(null,{UploadList:Tf})})};Af()}function kd(Xd,pf){var mf=this,Tf=[],vf={Bucket:Xd.Bucket,Region:Xd.Region,Key:Xd.Key,UploadId:Xd.UploadId,calledBySdk:"sliceUploadFile",tracker:Xd.tracker},Af=function Sf(){mf.multipartListPart(vf,function(Df,If){if(Df)return pf(Df);Tf.push.apply(Tf,If.Part||[]),If.IsTruncated==="true"?(vf.PartNumberMarker=If.NextPartNumberMarker,Sf()):pf(null,{PartList:Tf})})};Af()}function Ld(Xd,pf){var mf=this,Tf=Xd.TaskId,vf=Xd.Bucket,Af=Xd.Region,Sf=Xd.Key,Df=Xd.UploadData,If=Xd.FileSize,Gf=Xd.SliceSize,Jf=Math.min(Xd.AsyncLimit||mf.options.ChunkParallelLimit||1,256),ih=Xd.Body,uh=Math.ceil(If/Gf),qf=0,Pf=Xd.ServerSideEncryption,Wf=Xd.Headers,Yf=md.filter(Df.PartList,function(Cf){return Cf.Uploaded&&(qf+=Cf.PartNumber>=uh&&If%Gf||Gf),!Cf.Uploaded}),Kf=Xd.onProgress;pd.eachLimit(Yf,Jf,function(Cf,xf){if(mf._isRunningTask(Tf)){var Xf=Cf.PartNumber,sh=Math.min(If,Cf.PartNumber*Gf)-(Cf.PartNumber-1)*Gf,Ah=0;Gd.call(mf,{TaskId:Tf,Bucket:vf,Region:Af,Key:Sf,SliceSize:Gf,FileSize:If,PartNumber:Xf,ServerSideEncryption:Pf,Body:ih,UploadData:Df,Headers:Wf,onProgress:function(Rf){qf+=Rf.loaded-Ah,Ah=Rf.loaded,Kf({loaded:qf,total:If})},tracker:Xd.tracker},function(dh,Rf){mf._isRunningTask(Tf)&&(!dh&&!Rf.ETag&&(dh='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),dh?qf-=Ah:(qf+=sh-Ah,Cf.ETag=Rf.ETag),Kf({loaded:qf,total:If}),xf(dh||null,Rf))})}},function(Cf){if(mf._isRunningTask(Tf)){if(Cf)return pf(Cf);pf(null,{UploadId:Df.UploadId,SliceList:Df.PartList})}})}function Gd(Xd,pf){var mf=this,Tf=Xd.TaskId,vf=Xd.Bucket,Af=Xd.Region,Sf=Xd.Key,Df=Xd.FileSize,If=Xd.Body,Gf=Xd.PartNumber*1,Jf=Xd.SliceSize,ih=Xd.ServerSideEncryption,uh=Xd.UploadData,qf=Xd.Headers||{},Pf=mf.options.ChunkRetryTimes+1,Wf=Jf*(Gf-1),Yf=Jf,Kf=Wf+Jf;Kf>Df&&(Kf=Df,Yf=Kf-Wf);var Cf=["x-cos-traffic-limit","x-cos-mime-limit"],xf={};md.each(qf,function(sh,Ah){Cf.indexOf(Ah)>-1&&(xf[Ah]=sh)});var Xf=uh.PartList[Gf-1];pd.retry(Pf,function(sh){mf._isRunningTask(Tf)&&md.fileSlice(If,Wf,Kf,!0,function(Ah){mf.multipartUpload({TaskId:Tf,Bucket:vf,Region:Af,Key:Sf,ContentLength:Yf,PartNumber:Gf,UploadId:uh.UploadId,ServerSideEncryption:ih,Body:Ah,Headers:xf,onProgress:Xd.onProgress,calledBySdk:"sliceUploadFile",tracker:Xd.tracker},function(dh,Rf){if(mf._isRunningTask(Tf))return dh?sh(dh):(Xf.Uploaded=!0,sh(null,Rf))})})},function(sh,Ah){if(mf._isRunningTask(Tf))return pf(sh,Ah)})}function Ud(Xd,pf){var mf=Xd.Bucket,Tf=Xd.Region,vf=Xd.Key,Af=Xd.UploadId,Sf=Xd.SliceList,Df=this,If=this.options.ChunkRetryTimes+1,Gf=Xd.Headers,Jf=Sf.map(function(ih){return{PartNumber:ih.PartNumber,ETag:ih.ETag}});pd.retry(If,function(ih){Df.multipartComplete({Bucket:mf,Region:Tf,Key:vf,UploadId:Af,Parts:Jf,Headers:Gf,calledBySdk:"sliceUploadFile",tracker:Xd.tracker},ih)},function(ih,uh){pf(ih,uh)})}function Fd(Xd,pf){var mf=Xd.Bucket,Tf=Xd.Region,vf=Xd.Key,Af=Xd.UploadId,Sf=Xd.Level||"task",Df=Xd.AsyncLimit,If=this,Gf=new fd;if(Gf.on("error",function(Jf){return pf(Jf)}),Gf.on("get_abort_array",function(Jf){jd.call(If,{Bucket:mf,Region:Tf,Key:vf,Headers:Xd.Headers,AsyncLimit:Df,AbortArray:Jf},pf)}),Sf==="bucket")Od.call(If,{Bucket:mf,Region:Tf,calledBySdk:"abortUploadTask"},function(Jf,ih){if(Jf)return pf(Jf);Gf.emit("get_abort_array",ih.UploadList||[])});else if(Sf==="file"){if(!vf)return pf(md.error(new Error("abort_upload_task_no_key")));Od.call(If,{Bucket:mf,Region:Tf,Key:vf,calledBySdk:"abortUploadTask"},function(Jf,ih){if(Jf)return pf(Jf);Gf.emit("get_abort_array",ih.UploadList||[])})}else if(Sf==="task"){if(!Af)return pf(md.error(new Error("abort_upload_task_no_id")));if(!vf)return pf(md.error(new Error("abort_upload_task_no_key")));Gf.emit("get_abort_array",[{Key:vf,UploadId:Af}])}else return pf(md.error(new Error("abort_unknown_level")))}function jd(Xd,pf){var mf=Xd.Bucket,Tf=Xd.Region,vf=Xd.Key,Af=Xd.AbortArray,Sf=Xd.AsyncLimit||1,Df=this,If=0,Gf=new Array(Af.length);pd.eachLimit(Af,Sf,function(Jf,ih){var uh=If;if(vf&&vf!==Jf.Key){Gf[uh]={error:{KeyNotMatch:!0}},ih(null);return}var qf=Jf.UploadId||Jf.UploadID;Df.multipartAbort({Bucket:mf,Region:Tf,Key:Jf.Key,Headers:Xd.Headers,UploadId:qf},function(Pf){var Wf={Bucket:mf,Region:Tf,Key:Jf.Key,UploadId:qf};Gf[uh]={error:Pf,task:Wf},ih(null)}),If++},function(Jf){if(Jf)return pf(Jf);for(var ih=[],uh=[],qf=0,Pf=Gf.length;qfTf?"sliceUploadFile":"putObject";Xd.tracker=new vd({Beacon:mf.options.BeaconReporter,clsReporter:mf.options.ClsReporter,bucket:Xd.Bucket,region:Xd.Region,apiName:"uploadFile",realApi:Gf,fileKey:Xd.Key,fileSize:Sf,accelerate:If,deepTracker:mf.options.DeepTracker,customId:mf.options.CustomId,delay:mf.options.TrackerDelay})}md.each(Xd,function(Wf,Yf){ud(Wf)!=="object"&&typeof Wf!="function"&&(Df[Yf]=Wf)});var Jf=Xd.onTaskReady,ih=function(Yf){Df.TaskId=Yf,Jf&&Jf(Yf)};Xd.onTaskReady=ih;var uh=Sf>Tf?"sliceUploadFile":"putObject",qf=Xd.onFileFinish,Pf=function(Yf,Kf){Xd.tracker&&Xd.tracker.report(Yf,Kf),qf&&qf(Yf,Kf,Df),pf&&pf(Yf,Kf)};vf.push({api:uh,params:Xd,callback:Pf}),mf._addTasks(vf)}function zd(Xd,pf){var mf=this,Tf=Xd.SliceSize===void 0?mf.options.SliceSize:Xd.SliceSize,vf=0,Af=0,Sf=md.throttleOnProgress.call(mf,Af,Xd.onProgress),Df=Xd.files.length,If=Xd.onFileFinish,Gf=Array(Df),Jf=function(qf,Pf,Wf){Sf(null,!0),If&&If(qf,Pf,Wf),Gf[Wf.Index]={options:Wf,error:qf,data:Pf},--Df<=0&&pf&&pf(null,{files:Gf})},ih=[];md.each(Xd.files,function(uh,qf){(function(){var Pf=uh.Body,Wf=Pf.size||Pf.length||0,Yf={Index:qf,TaskId:""};if(!mf.options.UseRawKey&&uh.Key&&uh.Key.substr(0,1)==="/"&&(uh.Key=uh.Key.substr(1)),vf+=Wf,mf.options.EnableReporter){var Kf=mf.options.UseAccelerate||typeof mf.options.Domain=="string"&&mf.options.Domain.includes("accelerate."),Cf=Wf>Tf?"sliceUploadFile":"putObject";uh.tracker=new vd({Beacon:mf.options.BeaconReporter,clsReporter:mf.options.ClsReporter,bucket:uh.Bucket,region:uh.Region,apiName:"uploadFiles",realApi:Cf,fileKey:uh.Key,fileSize:Wf,accelerate:Kf,deepTracker:mf.options.DeepTracker,customId:mf.options.CustomId,delay:mf.options.TrackerDelay})}md.each(uh,function(th,$f){ud(th)!=="object"&&typeof th!="function"&&(Yf[$f]=th)});var xf=uh.onTaskReady,Xf=function($f){Yf.TaskId=$f,xf&&xf($f)};uh.onTaskReady=Xf;var sh=0,Ah=uh.onProgress,dh=function($f){Af=Af-sh+$f.loaded,sh=$f.loaded,Ah&&Ah($f),Sf({loaded:Af,total:vf})};uh.onProgress=dh;var Rf=Wf>Tf?"sliceUploadFile":"putObject",gh=uh.onFileFinish,Bh=function($f,Uf){uh.tracker&&uh.tracker.report($f,Uf),gh&&gh($f,Uf),Jf&&Jf($f,Uf,Yf)};ih.push({api:Rf,params:uh,callback:Bh})})()}),mf._addTasks(ih)}function Yd(Xd,pf){var mf=new fd,Tf=this,vf=Xd.Bucket,Af=Xd.Region,Sf=Xd.Key,Df=Xd.CopySource,If=md.getSourceParams.call(this,Df);if(!If){pf(md.error(new Error("CopySource format error")));return}var Gf=If.Bucket,Jf=If.Region,ih=decodeURIComponent(If.Key),uh=Xd.CopySliceSize===void 0?Tf.options.CopySliceSize:Xd.CopySliceSize;uh=Math.max(0,uh);var qf=Xd.CopyChunkSize||this.options.CopyChunkSize,Pf=this.options.CopyChunkParallelLimit,Wf=this.options.ChunkRetryTimes+1,Yf=0,Kf=0,Cf,xf,Xf={},sh={},Ah={};mf.on("copy_slice_complete",function(dh){md.each(Xd.Headers,function(gh,Bh){Bh.toLowerCase().indexOf("x-cos-meta-")});var Rf=md.map(dh.PartList,function(gh){return{PartNumber:gh.PartNumber,ETag:gh.ETag}});pd.retry(Wf,function(gh){Tf.multipartComplete({Bucket:vf,Region:Af,Key:Sf,UploadId:dh.UploadId,Parts:Rf,tracker:Xd.tracker,calledBySdk:"sliceCopyFile"},gh)},function(gh,Bh){if(dd.removeUsing(dh.UploadId),gh)return xf(null,!0),pf(gh);dd.removeUploadId(dh.UploadId),xf({loaded:Cf,total:Cf},!0),pf(null,Bh)})}),mf.on("get_copy_data_finish",function(dh){var Rf=dd.getCopyFileId(Df,Xf,qf,vf,Sf);Rf&&dd.saveUploadId(Rf,dh.UploadId,Tf.options.UploadIdCacheLimit),dd.setUsing(dh.UploadId);var gh=md.filter(dh.PartList,function(Bh){return Bh.Uploaded&&(Kf+=Bh.PartNumber>=Yf&&Cf%qf||qf),!Bh.Uploaded});pd.eachLimit(gh,Pf,function(Bh,th){var $f=Bh.PartNumber,Uf=Bh.CopySourceRange,Zf=Bh.end-Bh.start;pd.retry(Wf,function(kh){Jd.call(Tf,{Bucket:vf,Region:Af,Key:Sf,CopySource:Df,UploadId:dh.UploadId,PartNumber:$f,CopySourceRange:Uf,tracker:Xd.tracker,calledBySdk:"sliceCopyFile"},kh)},function(kh,Wh){if(kh)return th(kh);Kf+=Zf,xf({loaded:Kf,total:Cf}),Bh.ETag=Wh.ETag,th(kh||null,Wh)})},function(Bh){if(Bh)return dd.removeUsing(dh.UploadId),xf(null,!0),pf(Bh);mf.emit("copy_slice_complete",dh)})}),mf.on("get_chunk_size_finish",function(){var dh=function(){Tf.multipartInit({Bucket:vf,Region:Af,Key:Sf,Headers:Ah,tracker:Xd.tracker,calledBySdk:"sliceCopyFile"},function($f,Uf){if($f)return pf($f);Xd.UploadId=Uf.UploadId,mf.emit("get_copy_data_finish",{UploadId:Xd.UploadId,PartList:Xd.PartList})})},Rf=dd.getCopyFileId(Df,Xf,qf,vf,Sf),gh=dd.getUploadIdList(Rf);if(!Rf||!gh)return dh();var Bh=function th($f){if($f>=gh.length)return dh();var Uf=gh[$f];if(dd.using[Uf])return th($f+1);kd.call(Tf,{Bucket:vf,Region:Af,Key:Sf,UploadId:Uf,tracker:Xd.tracker,calledBySdk:"sliceCopyFile"},function(Zf,kh){if(Zf)dd.removeUploadId(Uf),th($f+1);else{if(dd.using[Uf])return th($f+1);var Wh={},xh=0;md.each(kh.PartList,function(pm){var Jh=parseInt(pm.Size),Om=xh+Jh-1;Wh[pm.PartNumber+"|"+xh+"|"+Om]=pm.ETag,xh+=Jh}),md.each(Xd.PartList,function(pm){var Jh=Wh[pm.PartNumber+"|"+pm.start+"|"+pm.end];Jh&&(pm.ETag=Jh,pm.Uploaded=!0)}),mf.emit("get_copy_data_finish",{UploadId:Uf,PartList:Xd.PartList})}})};Bh(0)}),mf.on("get_file_size_finish",function(){if(function(){for(var Rf=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],gh=1024*1024,Bh=0;Bh$f.length&&(sh[th]=Bh)}),mf.emit("get_file_size_finish")}})}function Jd(Xd,pf){var mf=Xd.TaskId,Tf=Xd.Bucket,vf=Xd.Region,Af=Xd.Key,Sf=Xd.CopySource,Df=Xd.UploadId,If=Xd.PartNumber*1,Gf=Xd.CopySourceRange,Jf=this.options.ChunkRetryTimes+1,ih=this;pd.retry(Jf,function(uh){ih.uploadPartCopy({TaskId:mf,Bucket:Tf,Region:vf,Key:Af,CopySource:Sf,UploadId:Df,PartNumber:If,CopySourceRange:Gf,tracker:Xd.tracker,calledBySdk:Xd.calledBySdk},function(qf,Pf){uh(qf||null,Pf)})},function(uh,qf){return pf(uh,qf)})}var yf={sliceUploadFile:Ad,abortUploadTask:Fd,uploadFile:qd,uploadFiles:zd,sliceCopyFile:Yd};nd.exports.init=function(Xd,pf){pf.transferToTaskMethod(yf,"sliceUploadFile"),md.each(yf,function(mf,Tf){Xd.prototype[Tf]=md.apiWrapper(Tf,mf)})}},"./src/async.js":function(nd,od){var ld=function(fd,md,vd,Ad){if(Ad=Ad||function(){},!fd.length||md<=0)return Ad();var Nd=0,Od=0,kd=0;(function Ld(){if(Nd>=fd.length)return Ad();for(;kd=fd.length?Ad():Ld())})})()},ud=function(fd,md,vd){var Ad=function Nd(Od){md(function(kd,Ld){kd&&Od"u"?"undefined":ud(location))==="object"&&location.protocol==="http:"?"http:":"https:"),Mh=this.options.ServiceDomain,dm=Bf.AppId||this.options.appId,om=Bf.Region;Mh?(Mh=Mh.replace(/\{\{AppId\}\}/gi,dm||"").replace(/\{\{Region\}\}/gi,om||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(Mh)||(Mh=Ch+"//"+Mh),Mh.slice(-1)==="/"&&(Mh=Mh.slice(0,-1))):om?Mh=Ch+"//cos."+om+".myqcloud.com":Mh=Ch+"//service.cos.myqcloud.com";var Tm="",_m=om?"cos."+om+".myqcloud.com":"service.cos.myqcloud.com",Xh=Mh.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");_m===Xh&&(Tm=_m),lg.call(this,{Action:"name/cos:GetService",url:Mh,method:"GET",headers:Bf.Headers,SignHost:Tm,tracker:Bf.tracker},function(Hm,Ym){if(Hm)return Fh(Hm);var Tg=Ym&&Ym.ListAllMyBucketsResult&&Ym.ListAllMyBucketsResult.Buckets&&Ym.ListAllMyBucketsResult.Buckets.Bucket||[];Tg=pd.isArray(Tg)?Tg:[Tg];var Zm=Ym&&Ym.ListAllMyBucketsResult&&Ym.ListAllMyBucketsResult.Owner||{};Fh(null,{Buckets:Tg,Owner:Zm,statusCode:Ym.statusCode,headers:Ym.headers})})}function md(Bf,Fh){var Ch=this,Mh="";if(Bf.BucketAZConfig){var dm={BucketAZConfig:Bf.BucketAZConfig};Mh=pd.json2xml({CreateBucketConfiguration:dm})}lg.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,body:Mh,tracker:Bf.tracker},function(om,Tm){if(om)return Fh(om);var _m=o_({protocol:Ch.options.Protocol,domain:Ch.options.Domain,bucket:Bf.Bucket,region:Bf.Region,isLocation:!0});Fh(null,{Location:_m,statusCode:Tm.statusCode,headers:Tm.headers})})}function vd(Bf,Fh){lg.call(this,{Action:"name/cos:HeadBucket",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,method:"HEAD",tracker:Bf.tracker},Fh)}function Ad(Bf,Fh){var Ch={};Ch.prefix=Bf.Prefix||"",Ch.delimiter=Bf.Delimiter,Ch.marker=Bf.Marker,Ch["max-keys"]=Bf.MaxKeys,Ch["encoding-type"]=Bf.EncodingType,lg.call(this,{Action:"name/cos:GetBucket",ResourceKey:Ch.prefix,method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,qs:Ch,tracker:Bf.tracker},function(Mh,dm){if(Mh)return Fh(Mh);var om=dm.ListBucketResult||{},Tm=om.Contents||[],_m=om.CommonPrefixes||[];Tm=pd.isArray(Tm)?Tm:[Tm],_m=pd.isArray(_m)?_m:[_m];var Xh=pd.clone(om);pd.extend(Xh,{Contents:Tm,CommonPrefixes:_m,statusCode:dm.statusCode,headers:dm.headers}),Fh(null,Xh)})}function Nd(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucket",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,method:"DELETE",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function Od(Bf,Fh){var Ch=Bf.Headers,Mh="";if(Bf.AccessControlPolicy){var dm=pd.clone(Bf.AccessControlPolicy||{}),om=dm.Grants||dm.Grant;om=pd.isArray(om)?om:[om],delete dm.Grant,delete dm.Grants,dm.AccessControlList={Grant:om},Mh=pd.json2xml({AccessControlPolicy:dm}),Ch["Content-Type"]="application/xml",Ch["Content-MD5"]=pd.b64(pd.md5(Mh))}pd.each(Ch,function(Tm,_m){_m.indexOf("x-cos-grant-")===0&&(Ch[_m]=C_(Ch[_m]))}),lg.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,headers:Ch,action:"acl",body:Mh,tracker:Bf.tracker},function(Tm,_m){if(Tm)return Fh(Tm);Fh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function kd(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"acl",tracker:Bf.tracker},function(Ch,Mh){if(Ch)return Fh(Ch);var dm=Mh.AccessControlPolicy||{},om=dm.Owner||{},Tm=dm.AccessControlList.Grant||[];Tm=pd.isArray(Tm)?Tm:[Tm];var _m=$g(dm);Mh.headers&&Mh.headers["x-cos-acl"]&&(_m.ACL=Mh.headers["x-cos-acl"]),_m=pd.extend(_m,{Owner:om,Grants:Tm,statusCode:Mh.statusCode,headers:Mh.headers}),Fh(null,_m)})}function Ld(Bf,Fh){var Ch=Bf.CORSConfiguration||{},Mh=Ch.CORSRules||Bf.CORSRules||[];Mh=pd.clone(pd.isArray(Mh)?Mh:[Mh]),pd.each(Mh,function(_m){pd.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Xh){var Hm=Xh+"s",Ym=_m[Hm]||_m[Xh]||[];delete _m[Hm],_m[Xh]=pd.isArray(Ym)?Ym:[Ym]})});var dm={CORSRule:Mh};Bf.ResponseVary&&(dm.ResponseVary=Bf.ResponseVary);var om=pd.json2xml({CORSConfiguration:dm}),Tm=Bf.Headers;Tm["Content-Type"]="application/xml",Tm["Content-MD5"]=pd.b64(pd.md5(om)),lg.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:om,action:"cors",headers:Tm,tracker:Bf.tracker},function(_m,Xh){if(_m)return Fh(_m);Fh(null,{statusCode:Xh.statusCode,headers:Xh.headers})})}function Gd(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"cors",tracker:Bf.tracker},function(Ch,Mh){if(Ch){if(Ch.statusCode===404&&Ch.error&&Ch.error.Code==="NoSuchCORSConfiguration"){var dm={CORSRules:[],statusCode:Ch.statusCode};Ch.headers&&(dm.headers=Ch.headers),Fh(null,dm)}else Fh(Ch);return}var om=Mh.CORSConfiguration||{},Tm=om.CORSRules||om.CORSRule||[];Tm=pd.clone(pd.isArray(Tm)?Tm:[Tm]);var _m=om.ResponseVary;pd.each(Tm,function(Xh){pd.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Hm){var Ym=Hm+"s",Tg=Xh[Ym]||Xh[Hm]||[];delete Xh[Hm],Xh[Ym]=pd.isArray(Tg)?Tg:[Tg]})}),Fh(null,{CORSRules:Tm,ResponseVary:_m,statusCode:Mh.statusCode,headers:Mh.headers})})}function Ud(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"cors",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode||Ch.statusCode,headers:Mh.headers})})}function Fd(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"location",tracker:Bf.tracker},Fh)}function jd(Bf,Fh){var Ch=Bf.Policy;try{typeof Ch=="string"&&(Ch=JSON.parse(Ch))}catch{}if(!Ch||typeof Ch=="string")return Fh(pd.error(new Error("Policy format error")));var Mh=JSON.stringify(Ch);Ch.version||(Ch.version="2.0");var dm=Bf.Headers;dm["Content-Type"]="application/json",dm["Content-MD5"]=pd.b64(pd.md5(Mh)),lg.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,action:"policy",body:Mh,headers:dm,tracker:Bf.tracker},function(om,Tm){if(om&&om.statusCode===204)return Fh(null,{statusCode:om.statusCode});if(om)return Fh(om);Fh(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function qd(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"policy",rawBody:!0,tracker:Bf.tracker},function(Ch,Mh){if(Ch)return Ch.statusCode&&Ch.statusCode===403?Fh(pd.error(Ch,{ErrorStatus:"Access Denied"})):Ch.statusCode&&Ch.statusCode===405?Fh(pd.error(Ch,{ErrorStatus:"Method Not Allowed"})):Ch.statusCode&&Ch.statusCode===404?Fh(pd.error(Ch,{ErrorStatus:"Policy Not Found"})):Fh(Ch);var dm={};try{dm=JSON.parse(Mh.body)}catch{}Fh(null,{Policy:dm,statusCode:Mh.statusCode,headers:Mh.headers})})}function zd(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"policy",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode||Ch.statusCode,headers:Mh.headers})})}function Yd(Bf,Fh){var Ch=Bf.Tagging||{},Mh=Ch.TagSet||Ch.Tags||Bf.Tags||[];Mh=pd.clone(pd.isArray(Mh)?Mh:[Mh]);var dm=pd.json2xml({Tagging:{TagSet:{Tag:Mh}}}),om=Bf.Headers;om["Content-Type"]="application/xml",om["Content-MD5"]=pd.b64(pd.md5(dm)),lg.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:dm,action:"tagging",headers:om,tracker:Bf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Fh(null,{statusCode:Tm.statusCode});if(Tm)return Fh(Tm);Fh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Jd(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"tagging",tracker:Bf.tracker},function(Ch,Mh){if(Ch){if(Ch.statusCode===404&&Ch.error&&(Ch.error==="Not Found"||Ch.error.Code==="NoSuchTagSet")){var dm={Tags:[],statusCode:Ch.statusCode};Ch.headers&&(dm.headers=Ch.headers),Fh(null,dm)}else Fh(Ch);return}var om=[];try{om=Mh.Tagging.TagSet.Tag||[]}catch{}om=pd.clone(pd.isArray(om)?om:[om]),Fh(null,{Tags:om,statusCode:Mh.statusCode,headers:Mh.headers})})}function yf(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"tagging",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function Xd(Bf,Fh){var Ch=Bf.LifecycleConfiguration||{},Mh=Ch.Rules||Bf.Rules||[];Mh=pd.clone(Mh);var dm=pd.json2xml({LifecycleConfiguration:{Rule:Mh}}),om=Bf.Headers;om["Content-Type"]="application/xml",om["Content-MD5"]=pd.b64(pd.md5(dm)),lg.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:dm,action:"lifecycle",headers:om,tracker:Bf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Fh(null,{statusCode:Tm.statusCode});if(Tm)return Fh(Tm);Fh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function pf(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"lifecycle",tracker:Bf.tracker},function(Ch,Mh){if(Ch){if(Ch.statusCode===404&&Ch.error&&Ch.error.Code==="NoSuchLifecycleConfiguration"){var dm={Rules:[],statusCode:Ch.statusCode};Ch.headers&&(dm.headers=Ch.headers),Fh(null,dm)}else Fh(Ch);return}var om=[];try{om=Mh.LifecycleConfiguration.Rule||[]}catch{}om=pd.clone(pd.isArray(om)?om:[om]),Fh(null,{Rules:om,statusCode:Mh.statusCode,headers:Mh.headers})})}function mf(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"lifecycle",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function Tf(Bf,Fh){if(!Bf.VersioningConfiguration){Fh(pd.error(new Error("missing param VersioningConfiguration")));return}var Ch=Bf.VersioningConfiguration||{},Mh=pd.json2xml({VersioningConfiguration:Ch}),dm=Bf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(Mh)),lg.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:Mh,action:"versioning",headers:dm,tracker:Bf.tracker},function(om,Tm){if(om&&om.statusCode===204)return Fh(null,{statusCode:om.statusCode});if(om)return Fh(om);Fh(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function vf(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"versioning",tracker:Bf.tracker},function(Ch,Mh){Ch||!Mh.VersioningConfiguration&&(Mh.VersioningConfiguration={}),Fh(Ch,Mh)})}function Af(Bf,Fh){var Ch=pd.clone(Bf.ReplicationConfiguration),Mh=pd.json2xml({ReplicationConfiguration:Ch});Mh=Mh.replace(/<(\/?)Rules>/gi,"<$1Rule>"),Mh=Mh.replace(/<(\/?)Tags>/gi,"<$1Tag>");var dm=Bf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(Mh)),lg.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:Mh,action:"replication",headers:dm,tracker:Bf.tracker},function(om,Tm){if(om&&om.statusCode===204)return Fh(null,{statusCode:om.statusCode});if(om)return Fh(om);Fh(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function Sf(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"replication",tracker:Bf.tracker},function(Ch,Mh){if(Ch){if(Ch.statusCode===404&&Ch.error&&(Ch.error==="Not Found"||Ch.error.Code==="ReplicationConfigurationnotFoundError")){var dm={ReplicationConfiguration:{Rules:[]},statusCode:Ch.statusCode};Ch.headers&&(dm.headers=Ch.headers),Fh(null,dm)}else Fh(Ch);return}!Mh.ReplicationConfiguration&&(Mh.ReplicationConfiguration={}),Mh.ReplicationConfiguration.Rule&&(Mh.ReplicationConfiguration.Rules=pd.makeArray(Mh.ReplicationConfiguration.Rule),delete Mh.ReplicationConfiguration.Rule),Fh(Ch,Mh)})}function Df(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"replication",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function If(Bf,Fh){if(!Bf.WebsiteConfiguration){Fh(pd.error(new Error("missing param WebsiteConfiguration")));return}var Ch=pd.clone(Bf.WebsiteConfiguration||{}),Mh=Ch.RoutingRules||Ch.RoutingRule||[];Mh=pd.isArray(Mh)?Mh:[Mh],delete Ch.RoutingRule,delete Ch.RoutingRules,Mh.length&&(Ch.RoutingRules={RoutingRule:Mh});var dm=pd.json2xml({WebsiteConfiguration:Ch}),om=Bf.Headers;om["Content-Type"]="application/xml",om["Content-MD5"]=pd.b64(pd.md5(dm)),lg.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:dm,action:"website",headers:om,tracker:Bf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Fh(null,{statusCode:Tm.statusCode});if(Tm)return Fh(Tm);Fh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Gf(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Bf.Headers,action:"website",tracker:Bf.tracker},function(Ch,Mh){if(Ch){if(Ch.statusCode===404&&Ch.error.Code==="NoSuchWebsiteConfiguration"){var dm={WebsiteConfiguration:{},statusCode:Ch.statusCode};Ch.headers&&(dm.headers=Ch.headers),Fh(null,dm)}else Fh(Ch);return}var om=Mh.WebsiteConfiguration||{};if(om.RoutingRules){var Tm=pd.clone(om.RoutingRules.RoutingRule||[]);Tm=pd.makeArray(Tm),om.RoutingRules=Tm}Fh(null,{WebsiteConfiguration:om,statusCode:Mh.statusCode,headers:Mh.headers})})}function Jf(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"website",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function ih(Bf,Fh){if(!Bf.RefererConfiguration){Fh(pd.error(new Error("missing param RefererConfiguration")));return}var Ch=pd.clone(Bf.RefererConfiguration||{}),Mh=Ch.DomainList||{},dm=Mh.Domains||Mh.Domain||[];dm=pd.isArray(dm)?dm:[dm],dm.length&&(Ch.DomainList={Domain:dm});var om=pd.json2xml({RefererConfiguration:Ch}),Tm=Bf.Headers;Tm["Content-Type"]="application/xml",Tm["Content-MD5"]=pd.b64(pd.md5(om)),lg.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:om,action:"referer",headers:Tm,tracker:Bf.tracker},function(_m,Xh){if(_m&&_m.statusCode===204)return Fh(null,{statusCode:_m.statusCode});if(_m)return Fh(_m);Fh(null,{statusCode:Xh.statusCode,headers:Xh.headers})})}function uh(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Bf.Headers,action:"referer",tracker:Bf.tracker},function(Ch,Mh){if(Ch){if(Ch.statusCode===404&&Ch.error.Code==="NoSuchRefererConfiguration"){var dm={WebsiteConfiguration:{},statusCode:Ch.statusCode};Ch.headers&&(dm.headers=Ch.headers),Fh(null,dm)}else Fh(Ch);return}var om=Mh.RefererConfiguration||{};if(om.DomainList){var Tm=pd.makeArray(om.DomainList.Domain||[]);om.DomainList={Domains:Tm}}Fh(null,{RefererConfiguration:om,statusCode:Mh.statusCode,headers:Mh.headers})})}function qf(Bf,Fh){var Ch=Bf.DomainConfiguration||{},Mh=Ch.DomainRule||Bf.DomainRule||[];Mh=pd.clone(Mh);var dm=pd.json2xml({DomainConfiguration:{DomainRule:Mh}}),om=Bf.Headers;om["Content-Type"]="application/xml",om["Content-MD5"]=pd.b64(pd.md5(dm)),lg.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:dm,action:"domain",headers:om,tracker:Bf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Fh(null,{statusCode:Tm.statusCode});if(Tm)return Fh(Tm);Fh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Pf(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"domain",tracker:Bf.tracker},function(Ch,Mh){if(Ch)return Fh(Ch);var dm=[];try{dm=Mh.DomainConfiguration.DomainRule||[]}catch{}dm=pd.clone(pd.isArray(dm)?dm:[dm]),Fh(null,{DomainRule:dm,statusCode:Mh.statusCode,headers:Mh.headers})})}function Wf(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"domain",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function Yf(Bf,Fh){var Ch=Bf.OriginConfiguration||{},Mh=Ch.OriginRule||Bf.OriginRule||[];Mh=pd.clone(Mh);var dm=pd.json2xml({OriginConfiguration:{OriginRule:Mh}}),om=Bf.Headers;om["Content-Type"]="application/xml",om["Content-MD5"]=pd.b64(pd.md5(dm)),lg.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:dm,action:"origin",headers:om,tracker:Bf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Fh(null,{statusCode:Tm.statusCode});if(Tm)return Fh(Tm);Fh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Kf(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"origin",tracker:Bf.tracker},function(Ch,Mh){if(Ch)return Fh(Ch);var dm=[];try{dm=Mh.OriginConfiguration.OriginRule||[]}catch{}dm=pd.clone(pd.isArray(dm)?dm:[dm]),Fh(null,{OriginRule:dm,statusCode:Mh.statusCode,headers:Mh.headers})})}function Cf(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"origin",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function xf(Bf,Fh){var Ch=pd.json2xml({BucketLoggingStatus:Bf.BucketLoggingStatus||""}),Mh=Bf.Headers;Mh["Content-Type"]="application/xml",Mh["Content-MD5"]=pd.b64(pd.md5(Ch)),lg.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:Ch,action:"logging",headers:Mh,tracker:Bf.tracker},function(dm,om){if(dm&&dm.statusCode===204)return Fh(null,{statusCode:dm.statusCode});if(dm)return Fh(dm);Fh(null,{statusCode:om.statusCode,headers:om.headers})})}function Xf(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"logging",tracker:Bf.tracker},function(Ch,Mh){if(Ch)return Fh(Ch);Fh(null,{BucketLoggingStatus:Mh.BucketLoggingStatus,statusCode:Mh.statusCode,headers:Mh.headers})})}function sh(Bf,Fh,Ch){var Mh=pd.clone(Fh.InventoryConfiguration);if(Mh.OptionalFields){var dm=Mh.OptionalFields||[];Mh.OptionalFields={Field:dm}}if(Mh.Destination&&Mh.Destination.COSBucketDestination&&Mh.Destination.COSBucketDestination.Encryption){var om=Mh.Destination.COSBucketDestination.Encryption;Object.keys(om).indexOf("SSECOS")>-1&&(om["SSE-COS"]=om.SSECOS,delete om.SSECOS)}var Tm=pd.json2xml({InventoryConfiguration:Mh}),_m=Fh.Headers;_m["Content-Type"]="application/xml",_m["Content-MD5"]=pd.b64(pd.md5(Tm));var Xh=Bf==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";lg.call(this,{Action:Xh,method:Bf,Bucket:Fh.Bucket,Region:Fh.Region,body:Tm,action:"inventory",qs:{id:Fh.Id},headers:_m,tracker:Fh.tracker},function(Hm,Ym){if(Hm&&Hm.statusCode===204)return Ch(null,{statusCode:Hm.statusCode});if(Hm)return Ch(Hm);Ch(null,{statusCode:Ym.statusCode,headers:Ym.headers})})}function Ah(Bf,Fh){return sh.call(this,"PUT",Bf,Fh)}function dh(Bf,Fh){return sh.call(this,"POST",Bf,Fh)}function Rf(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"inventory",qs:{id:Bf.Id},tracker:Bf.tracker},function(Ch,Mh){if(Ch)return Fh(Ch);var dm=Mh.InventoryConfiguration;if(dm&&dm.OptionalFields&&dm.OptionalFields.Field){var om=dm.OptionalFields.Field;pd.isArray(om)||(om=[om]),dm.OptionalFields=om}if(dm.Destination&&dm.Destination.COSBucketDestination&&dm.Destination.COSBucketDestination.Encryption){var Tm=dm.Destination.COSBucketDestination.Encryption;Object.keys(Tm).indexOf("SSE-COS")>-1&&(Tm.SSECOS=Tm["SSE-COS"],delete Tm["SSE-COS"])}Fh(null,{InventoryConfiguration:dm,statusCode:Mh.statusCode,headers:Mh.headers})})}function gh(Bf,Fh){lg.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"inventory",qs:{"continuation-token":Bf.ContinuationToken},tracker:Bf.tracker},function(Ch,Mh){if(Ch)return Fh(Ch);var dm=Mh.ListInventoryConfigurationResult,om=dm.InventoryConfiguration||[];om=pd.isArray(om)?om:[om],delete dm.InventoryConfiguration,pd.each(om,function(Tm){if(Tm&&Tm.OptionalFields&&Tm.OptionalFields.Field){var _m=Tm.OptionalFields.Field;pd.isArray(_m)||(_m=[_m]),Tm.OptionalFields=_m}if(Tm.Destination&&Tm.Destination.COSBucketDestination&&Tm.Destination.COSBucketDestination.Encryption){var Xh=Tm.Destination.COSBucketDestination.Encryption;Object.keys(Xh).indexOf("SSE-COS")>-1&&(Xh.SSECOS=Xh["SSE-COS"],delete Xh["SSE-COS"])}}),dm.InventoryConfigurations=om,pd.extend(dm,{statusCode:Mh.statusCode,headers:Mh.headers}),Fh(null,dm)})}function Bh(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"inventory",qs:{id:Bf.Id},tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function th(Bf,Fh){if(!Bf.AccelerateConfiguration){Fh(pd.error(new Error("missing param AccelerateConfiguration")));return}var Ch={AccelerateConfiguration:Bf.AccelerateConfiguration||{}},Mh=pd.json2xml(Ch),dm={};dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(Mh)),lg.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:Mh,action:"accelerate",headers:dm,tracker:Bf.tracker},function(om,Tm){if(om)return Fh(om);Fh(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function $f(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,action:"accelerate",tracker:Bf.tracker},function(Ch,Mh){Ch||!Mh.AccelerateConfiguration&&(Mh.AccelerateConfiguration={}),Fh(Ch,Mh)})}function Uf(Bf,Fh){var Ch=Bf.ServerSideEncryptionConfiguration||{},Mh=Ch.Rule||Ch.Rules||[],dm=pd.json2xml({ServerSideEncryptionConfiguration:{Rule:Mh}}),om=Bf.Headers;om["Content-Type"]="application/xml",om["Content-MD5"]=pd.b64(pd.md5(dm)),lg.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,body:dm,action:"encryption",headers:om,tracker:Bf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Fh(null,{statusCode:Tm.statusCode});if(Tm)return Fh(Tm);Fh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Zf(Bf,Fh){lg.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"encryption",tracker:Bf.tracker},function(Ch,Mh){if(Ch){if(Ch.statusCode===404&&Ch.code==="NoSuchEncryptionConfiguration"){var dm={EncryptionConfiguration:{Rules:[]},statusCode:Ch.statusCode};Ch.headers&&(dm.headers=Ch.headers),Fh(null,dm)}else Fh(Ch);return}var om=pd.makeArray(Mh.EncryptionConfiguration&&Mh.EncryptionConfiguration.Rule||[]);Mh.EncryptionConfiguration={Rules:om},Fh(Ch,Mh)})}function kh(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"encryption",tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function Wh(Bf,Fh){lg.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,VersionId:Bf.VersionId,headers:Bf.Headers,tracker:Bf.tracker},function(Ch,Mh){if(Ch){var dm=Ch.statusCode;return Bf.Headers["If-Modified-Since"]&&dm&&dm===304?Fh(null,{NotModified:!0,statusCode:dm}):Fh(Ch)}Mh.ETag=pd.attr(Mh.headers,"etag",""),Fh(null,Mh)})}function xh(Bf,Fh){var Ch={};Ch.prefix=Bf.Prefix||"",Ch.delimiter=Bf.Delimiter,Ch["key-marker"]=Bf.KeyMarker,Ch["version-id-marker"]=Bf.VersionIdMarker,Ch["max-keys"]=Bf.MaxKeys,Ch["encoding-type"]=Bf.EncodingType,lg.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:Ch.prefix,method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,qs:Ch,action:"versions",tracker:Bf.tracker},function(Mh,dm){if(Mh)return Fh(Mh);var om=dm.ListVersionsResult||{},Tm=om.DeleteMarker||[];Tm=pd.isArray(Tm)?Tm:[Tm];var _m=om.Version||[];_m=pd.isArray(_m)?_m:[_m];var Xh=pd.clone(om);delete Xh.DeleteMarker,delete Xh.Version,pd.extend(Xh,{DeleteMarkers:Tm,Versions:_m,statusCode:dm.statusCode,headers:dm.headers}),Fh(null,Xh)})}function pm(Bf,Fh){if(this.options.ObjectKeySimplifyCheck){var Ch=pd.simplifyPath(Bf.Key);if(Ch==="/"){Fh(pd.error(new Error("The Getobject Key is illegal")));return}}var Mh=Bf.Query||{},dm=Bf.QueryString||"",om=pd.throttleOnProgress.call(this,0,Bf.onProgress),Tm=Bf.tracker;Tm&&Tm.setParams({signStartTime:new Date().getTime()}),Mh["response-content-type"]=Bf.ResponseContentType,Mh["response-content-language"]=Bf.ResponseContentLanguage,Mh["response-expires"]=Bf.ResponseExpires,Mh["response-cache-control"]=Bf.ResponseCacheControl,Mh["response-content-disposition"]=Bf.ResponseContentDisposition,Mh["response-content-encoding"]=Bf.ResponseContentEncoding,lg.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,VersionId:Bf.VersionId,DataType:Bf.DataType,headers:Bf.Headers,qs:Mh,qsStr:dm,rawBody:!0,onDownloadProgress:om,tracker:Tm},function(_m,Xh){if(om(null,!0),_m){var Hm=_m.statusCode;return Bf.Headers["If-Modified-Since"]&&Hm&&Hm===304?Fh(null,{NotModified:!0}):Fh(_m)}Fh(null,{Body:Xh.body,ETag:pd.attr(Xh.headers,"etag",""),statusCode:Xh.statusCode,headers:Xh.headers})})}function Jh(Bf,Fh){var Ch=this,Mh=Bf.ContentLength,dm=pd.throttleOnProgress.call(Ch,Mh,Bf.onProgress),om=Bf.Headers;!om["Cache-Control"]&&!om["cache-control"]&&(om["Cache-Control"]=""),!om["Content-Type"]&&!om["content-type"]&&(om["Content-Type"]=Bf.Body&&Bf.Body.type||"");var Tm=Bf.UploadAddMetaMd5||Ch.options.UploadAddMetaMd5||Ch.options.UploadCheckContentMd5,_m=Bf.tracker;Tm&&_m&&_m.setParams({md5StartTime:new Date().getTime()}),pd.getBodyMd5(Tm,Bf.Body,function(Xh){Xh&&(_m&&_m.setParams({md5EndTime:new Date().getTime()}),Ch.options.UploadCheckContentMd5&&(om["Content-MD5"]=pd.b64(Xh)),(Bf.UploadAddMetaMd5||Ch.options.UploadAddMetaMd5)&&(om["x-cos-meta-md5"]=Xh)),Bf.ContentLength!==void 0&&(om["Content-Length"]=Bf.ContentLength),dm(null,!0),lg.call(Ch,{Action:"name/cos:PutObject",TaskId:Bf.TaskId,method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Bf.Headers,qs:Bf.Query,body:Bf.Body,onProgress:dm,tracker:_m},function(Hm,Ym){if(Hm)return dm(null,!0),Fh(Hm);dm({loaded:Mh,total:Mh},!0);var Tg=o_({ForcePathStyle:Ch.options.ForcePathStyle,protocol:Ch.options.Protocol,domain:Ch.options.Domain,bucket:Bf.Bucket,region:Ch.options.UseAccelerate?"accelerate":Bf.Region,object:Bf.Key});Tg=Tg.substr(Tg.indexOf("://")+3),Ym.Location=Tg,Ym.ETag=pd.attr(Ym.headers,"etag",""),Fh(null,Ym)})},Bf.onHashProgress)}function Om(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Bf.Headers,VersionId:Bf.VersionId,action:Bf.Recursive?"recursive":"",tracker:Bf.tracker},function(Ch,Mh){if(Ch){var dm=Ch.statusCode;return dm&&dm===404?Fh(null,{BucketNotFound:!0,statusCode:dm}):Fh(Ch)}Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function Nm(Bf,Fh){var Ch={};Bf.VersionId&&(Ch.versionId=Bf.VersionId),lg.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Bf.Headers,qs:Ch,action:"acl",tracker:Bf.tracker},function(Mh,dm){if(Mh)return Fh(Mh);var om=dm.AccessControlPolicy||{},Tm=om.Owner||{},_m=om.AccessControlList&&om.AccessControlList.Grant||[];_m=pd.isArray(_m)?_m:[_m];var Xh=$g(om);delete Xh.GrantWrite,dm.headers&&dm.headers["x-cos-acl"]&&(Xh.ACL=dm.headers["x-cos-acl"]),Xh=pd.extend(Xh,{Owner:Tm,Grants:_m,statusCode:dm.statusCode,headers:dm.headers}),Fh(null,Xh)})}function mm(Bf,Fh){var Ch=Bf.Headers,Mh="";if(Bf.AccessControlPolicy){var dm=pd.clone(Bf.AccessControlPolicy||{}),om=dm.Grants||dm.Grant;om=pd.isArray(om)?om:[om],delete dm.Grant,delete dm.Grants,dm.AccessControlList={Grant:om},Mh=pd.json2xml({AccessControlPolicy:dm}),Ch["Content-Type"]="application/xml",Ch["Content-MD5"]=pd.b64(pd.md5(Mh))}pd.each(Ch,function(Tm,_m){_m.indexOf("x-cos-grant-")===0&&(Ch[_m]=C_(Ch[_m]))}),lg.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,action:"acl",headers:Ch,body:Mh,tracker:Bf.tracker},function(Tm,_m){if(Tm)return Fh(Tm);Fh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Pm(Bf,Fh){var Ch=Bf.Headers;Ch.Origin=Bf.Origin,Ch["Access-Control-Request-Method"]=Bf.AccessControlRequestMethod,Ch["Access-Control-Request-Headers"]=Bf.AccessControlRequestHeaders,lg.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Ch,tracker:Bf.tracker},function(Mh,dm){if(Mh)return Mh.statusCode&&Mh.statusCode===403?Fh(null,{OptionsForbidden:!0,statusCode:Mh.statusCode}):Fh(Mh);var om=dm.headers||{};Fh(null,{AccessControlAllowOrigin:om["access-control-allow-origin"],AccessControlAllowMethods:om["access-control-allow-methods"],AccessControlAllowHeaders:om["access-control-allow-headers"],AccessControlExposeHeaders:om["access-control-expose-headers"],AccessControlMaxAge:om["access-control-max-age"],statusCode:dm.statusCode,headers:dm.headers})})}function Vm(Bf,Fh){var Ch=this,Mh=Bf.Headers;!Mh["Cache-Control"]&&!Mh["cache-control"]&&(Mh["Cache-Control"]="");var dm=Bf.CopySource||"",om=pd.getSourceParams.call(this,dm);if(!om){Fh(pd.error(new Error("CopySource format error")));return}var Tm=om.Bucket,_m=om.Region,Xh=decodeURIComponent(om.Key);lg.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Tm,region:_m,prefix:Xh},{action:"name/cos:PutObject",bucket:Bf.Bucket,region:Bf.Region,prefix:Bf.Key}],method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,VersionId:Bf.VersionId,headers:Bf.Headers,tracker:Bf.tracker},function(Hm,Ym){if(Hm)return Fh(Hm);var Tg=pd.clone(Ym.CopyObjectResult||{}),Zm=o_({ForcePathStyle:Ch.options.ForcePathStyle,protocol:Ch.options.Protocol,domain:Ch.options.Domain,bucket:Bf.Bucket,region:Bf.Region,object:Bf.Key,isLocation:!0});pd.extend(Tg,{Location:Zm,statusCode:Ym.statusCode,headers:Ym.headers}),Fh(null,Tg)})}function yh(Bf,Fh){var Ch=Bf.CopySource||"",Mh=pd.getSourceParams.call(this,Ch);if(!Mh){Fh(pd.error(new Error("CopySource format error")));return}var dm=Mh.Bucket,om=Mh.Region,Tm=decodeURIComponent(Mh.Key);lg.call(this,{Scope:[{action:"name/cos:GetObject",bucket:dm,region:om,prefix:Tm},{action:"name/cos:PutObject",bucket:Bf.Bucket,region:Bf.Region,prefix:Bf.Key}],method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,VersionId:Bf.VersionId,qs:{partNumber:Bf.PartNumber,uploadId:Bf.UploadId},headers:Bf.Headers,tracker:Bf.tracker},function(_m,Xh){if(_m)return Fh(_m);var Hm=pd.clone(Xh.CopyPartResult||{});pd.extend(Hm,{statusCode:Xh.statusCode,headers:Xh.headers}),Fh(null,Hm)})}function jf(Bf,Fh){var Ch=Bf.Objects||[],Mh=Bf.Quiet;Ch=pd.isArray(Ch)?Ch:[Ch];var dm=pd.json2xml({Delete:{Object:Ch,Quiet:Mh||!1}}),om=Bf.Headers;om["Content-Type"]="application/xml",om["Content-MD5"]=pd.b64(pd.md5(dm));var Tm=pd.map(Ch,function(_m){return{action:"name/cos:DeleteObject",bucket:Bf.Bucket,region:Bf.Region,prefix:_m.Key}});lg.call(this,{Scope:Tm,method:"POST",Bucket:Bf.Bucket,Region:Bf.Region,body:dm,action:"delete",headers:om,tracker:Bf.tracker},function(_m,Xh){if(_m)return Fh(_m);var Hm=Xh.DeleteResult||{},Ym=Hm.Deleted||[],Tg=Hm.Error||[];Ym=pd.isArray(Ym)?Ym:[Ym],Tg=pd.isArray(Tg)?Tg:[Tg];var Zm=pd.clone(Hm);pd.extend(Zm,{Error:Tg,Deleted:Ym,statusCode:Xh.statusCode,headers:Xh.headers}),Fh(null,Zm)})}function Lf(Bf,Fh){var Ch=Bf.Headers;if(!Bf.RestoreRequest){Fh(pd.error(new Error("missing param RestoreRequest")));return}var Mh=Bf.RestoreRequest||{},dm=pd.json2xml({RestoreRequest:Mh});Ch["Content-Type"]="application/xml",Ch["Content-MD5"]=pd.b64(pd.md5(dm)),lg.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,VersionId:Bf.VersionId,body:dm,action:"restore",headers:Ch,tracker:Bf.tracker},Fh)}function _h(Bf,Fh){var Ch=Bf.Tagging||{},Mh=Ch.TagSet||Ch.Tags||Bf.Tags||[];Mh=pd.clone(pd.isArray(Mh)?Mh:[Mh]);var dm=pd.json2xml({Tagging:{TagSet:{Tag:Mh}}}),om=Bf.Headers;om["Content-Type"]="application/xml",om["Content-MD5"]=pd.b64(pd.md5(dm)),lg.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:Bf.Bucket,Key:Bf.Key,Region:Bf.Region,body:dm,action:"tagging",headers:om,VersionId:Bf.VersionId,tracker:Bf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Fh(null,{statusCode:Tm.statusCode});if(Tm)return Fh(Tm);Fh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Oh(Bf,Fh){lg.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:Bf.Key,Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,action:"tagging",VersionId:Bf.VersionId,tracker:Bf.tracker},function(Ch,Mh){if(Ch){if(Ch.statusCode===404&&Ch.error&&(Ch.error==="Not Found"||Ch.error.Code==="NoSuchTagSet")){var dm={Tags:[],statusCode:Ch.statusCode};Ch.headers&&(dm.headers=Ch.headers),Fh(null,dm)}else Fh(Ch);return}var om=[];try{om=Mh.Tagging.TagSet.Tag||[]}catch{}om=pd.clone(pd.isArray(om)?om:[om]),Fh(null,{Tags:om,statusCode:Mh.statusCode,headers:Mh.headers})})}function um(Bf,Fh){lg.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Bf.Headers,action:"tagging",VersionId:Bf.VersionId,tracker:Bf.tracker},function(Ch,Mh){if(Ch&&Ch.statusCode===204)return Fh(null,{statusCode:Ch.statusCode});if(Ch)return Fh(Ch);Fh(null,{statusCode:Mh.statusCode,headers:Mh.headers})})}function gm(Bf,Fh){var Ch=Bf.SelectType;if(!Ch)return Fh(pd.error(new Error("missing param SelectType")));var Mh=Bf.SelectRequest||{},dm=pd.json2xml({SelectRequest:Mh}),om=Bf.Headers;om["Content-Type"]="application/xml",om["Content-MD5"]=pd.b64(pd.md5(dm)),lg.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Bf.Headers,action:"select",qs:{"select-type":Bf.SelectType},VersionId:Bf.VersionId,body:dm,DataType:"arraybuffer",rawBody:!0,tracker:Bf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Fh(null,{statusCode:Tm.statusCode});if(Tm)return Fh(Tm);var Xh=pd.parseSelectPayload(_m.body);Fh(null,{statusCode:_m.statusCode,headers:_m.headers,Body:Xh.body,Payload:Xh.payload})})}function Lm(Bf,Fh){var Ch=this,Mh=Bf.Headers,dm=Bf.tracker;!Mh["Cache-Control"]&&!Mh["cache-control"]&&(Mh["Cache-Control"]=""),!Mh["Content-Type"]&&!Mh["content-type"]&&(Mh["Content-Type"]=Bf.Body&&Bf.Body.type||"");var om=Bf.Body&&(Bf.UploadAddMetaMd5||Ch.options.UploadAddMetaMd5);om&&dm&&dm.setParams({md5StartTime:new Date().getTime()}),pd.getBodyMd5(om,Bf.Body,function(Tm){Tm&&(Bf.Headers["x-cos-meta-md5"]=Tm),om&&dm&&dm.setParams({md5EndTime:new Date().getTime()}),lg.call(Ch,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,action:"uploads",headers:Bf.Headers,qs:Bf.Query,tracker:dm},function(_m,Xh){if(_m)return dm&&dm.parent&&dm.parent.setParams({errorNode:"multipartInit"}),Fh(_m);if(Xh=pd.clone(Xh||{}),Xh&&Xh.InitiateMultipartUploadResult)return Fh(null,pd.extend(Xh.InitiateMultipartUploadResult,{statusCode:Xh.statusCode,headers:Xh.headers}));Fh(null,Xh)})},Bf.onHashProgress)}function Jm(Bf,Fh){var Ch=this;pd.getFileSize("multipartUpload",Bf,function(){var Mh=Bf.tracker,dm=Ch.options.UploadCheckContentMd5;dm&&Mh&&Mh.setParams({md5StartTime:new Date().getTime()}),pd.getBodyMd5(dm,Bf.Body,function(om){om&&(Bf.Headers["Content-MD5"]=pd.b64(om)),dm&&Mh&&Mh.setParams({md5EndTime:new Date().getTime()}),Mh&&Mh.setParams({partNumber:Bf.PartNumber}),lg.call(Ch,{Action:"name/cos:UploadPart",TaskId:Bf.TaskId,method:"PUT",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,qs:{partNumber:Bf.PartNumber,uploadId:Bf.UploadId},headers:Bf.Headers,onProgress:Bf.onProgress,body:Bf.Body||null,tracker:Mh},function(Tm,_m){if(Tm)return Mh&&Mh.parent&&Mh.parent.setParams({errorNode:"multipartUpload"}),Fh(Tm);Fh(null,{ETag:pd.attr(_m.headers,"etag",""),statusCode:_m.statusCode,headers:_m.headers})})})})}function Gm(Bf,Fh){for(var Ch=this,Mh=Bf.UploadId,dm=Bf.Parts,om=Bf.tracker,Tm=0,_m=dm.length;Tm<_m;Tm++)dm[Tm].ETag&&dm[Tm].ETag.indexOf('"')===0||(dm[Tm].ETag='"'+dm[Tm].ETag+'"');var Xh=pd.json2xml({CompleteMultipartUpload:{Part:dm}});Xh=Xh.replace(/\n\s*/g,"");var Hm=Bf.Headers;Hm["Content-Type"]="application/xml",Hm["Content-MD5"]=pd.b64(pd.md5(Xh)),lg.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,qs:{uploadId:Mh},body:Xh,headers:Hm,tracker:om},function(Ym,Tg){if(Ym)return om&&om.parent&&om.parent.setParams({errorNode:"multipartComplete"}),Fh(Ym);var Zm=o_({ForcePathStyle:Ch.options.ForcePathStyle,protocol:Ch.options.Protocol,domain:Ch.options.Domain,bucket:Bf.Bucket,region:Bf.Region,object:Bf.Key,isLocation:!0}),Ag=Tg.CompleteMultipartUploadResult||{};if(Ag.ProcessResults&&(Ag.UploadResult={OriginalInfo:{Key:Ag.Key,Location:Zm,ETag:Ag.ETag,ImageInfo:Ag.ImageInfo},ProcessResults:Ag.ProcessResults},delete Ag.ImageInfo,delete Ag.ProcessResults),Ag.CallbackResult){var u_=Ag.CallbackResult;if(u_.Status==="200"&&u_.CallbackBody)try{Ag.CallbackBody=JSON.parse(pd.decodeBase64(u_.CallbackBody))}catch{Ag.CallbackBody={}}else Ag.CallbackError=u_.Error||{};delete Ag.CallbackResult}if(Ag.ReturnBodyResult){var l_=Ag.ReturnBodyResult;if(l_.Status==="200"&&l_.ReturnBody)try{Ag.ReturnBody=JSON.parse(pd.decodeBase64(l_.ReturnBody))}catch{Ag.ReturnBody={}}else Ag.ReturnError={Code:l_.Code,Message:l_.Message,Status:l_.Status};delete Ag.ReturnBodyResult}var Kg=pd.extend(Ag,{Location:Zm,statusCode:Tg.statusCode,headers:Tg.headers});Fh(null,Kg)})}function Eg(Bf,Fh){var Ch={};Ch.delimiter=Bf.Delimiter,Ch["encoding-type"]=Bf.EncodingType,Ch.prefix=Bf.Prefix||"",Ch["max-uploads"]=Bf.MaxUploads,Ch["key-marker"]=Bf.KeyMarker,Ch["upload-id-marker"]=Bf.UploadIdMarker,Ch=pd.clearKey(Ch);var Mh=Bf.tracker;Mh&&Mh.setParams({signStartTime:new Date().getTime()}),lg.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:Ch.prefix,method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,headers:Bf.Headers,qs:Ch,action:"uploads",tracker:Mh},function(dm,om){if(dm)return Mh&&Mh.parent&&Mh.parent.setParams({errorNode:"multipartList"}),Fh(dm);if(om&&om.ListMultipartUploadsResult){var Tm=om.ListMultipartUploadsResult.Upload||[];Tm=pd.isArray(Tm)?Tm:[Tm],om.ListMultipartUploadsResult.Upload=Tm}var _m=pd.clone(om.ListMultipartUploadsResult||{});pd.extend(_m,{statusCode:om.statusCode,headers:om.headers}),Fh(null,_m)})}function og(Bf,Fh){var Ch={},Mh=Bf.tracker;Ch.uploadId=Bf.UploadId,Ch["encoding-type"]=Bf.EncodingType,Ch["max-parts"]=Bf.MaxParts,Ch["part-number-marker"]=Bf.PartNumberMarker,lg.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Bf.Headers,qs:Ch,tracker:Mh},function(dm,om){if(dm)return Mh&&Mh.parent&&Mh.parent.setParams({errorNode:"multipartListPart"}),Fh(dm);var Tm=om.ListPartsResult||{},_m=Tm.Part||[];_m=pd.isArray(_m)?_m:[_m],Tm.Part=_m;var Xh=pd.clone(Tm);pd.extend(Xh,{statusCode:om.statusCode,headers:om.headers}),Fh(null,Xh)})}function Cg(Bf,Fh){var Ch={};Ch.uploadId=Bf.UploadId,lg.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,headers:Bf.Headers,qs:Ch,tracker:Bf.tracker},function(Mh,dm){if(Mh)return Fh(Mh);Fh(null,{statusCode:dm.statusCode,headers:dm.headers})})}function jg(Bf,Fh){lg.call(this,{method:Bf.Method,Bucket:Bf.Bucket,Region:Bf.Region,Key:Bf.Key,action:Bf.Action,headers:Bf.Headers,qs:Bf.Query,body:Bf.Body,Url:Bf.Url,rawBody:Bf.RawBody,DataType:Bf.DataType,tracker:Bf.tracker},function(Ch,Mh){if(Ch)return Fh(Ch);Mh&&Mh.body&&(Mh.Body=Mh.body,delete Mh.body),Fh(Ch,Mh)})}function p_(Bf,Fh){var Ch=Bf.Headers;!Ch["Cache-Control"]&&!Ch["cache-control"]&&(Ch["Cache-Control"]=""),!Ch["Content-Type"]&&!Ch["content-type"]&&(Ch["Content-Type"]=Bf.Body&&Bf.Body.type||""),lg.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:Bf.Bucket,Region:Bf.Region,action:"append",Key:Bf.Key,body:Bf.Body,qs:{position:Bf.Position},headers:Bf.Headers,tracker:Bf.tracker},function(Mh,dm){if(Mh)return Fh(Mh);Fh(null,dm)})}function Yg(Bf){var Fh=this;return pd.getAuth({SecretId:Bf.SecretId||this.options.SecretId||"",SecretKey:Bf.SecretKey||this.options.SecretKey||"",Bucket:Bf.Bucket,Region:Bf.Region,Method:Bf.Method,Key:Bf.Key,Query:Bf.Query,Headers:Bf.Headers,Expires:Bf.Expires,UseRawKey:Fh.options.UseRawKey,SystemClockOffset:Fh.options.SystemClockOffset})}function i_(Bf,Fh){var Ch=this,Mh=Bf.UseAccelerate===void 0?Ch.options.UseAccelerate:Bf.UseAccelerate,dm=o_({ForcePathStyle:Ch.options.ForcePathStyle,protocol:Bf.Protocol||Ch.options.Protocol,domain:Bf.Domain||Ch.options.Domain,bucket:Bf.Bucket,region:Mh?"accelerate":Bf.Region,object:Bf.Key}),om="";Bf.Query&&(om+=pd.obj2str(Bf.Query)),Bf.QueryString&&(om+=(om?"&":"")+Bf.QueryString);var Tm=dm;if(Bf.Sign!==void 0&&!Bf.Sign)return om&&(Tm+="?"+om),Fh(null,{Url:Tm}),Tm;var _m=M_.call(this,{Bucket:Bf.Bucket,Region:Bf.Region,UseAccelerate:Bf.UseAccelerate,Url:dm}),Xh=B_.call(this,{Action:(Bf.Method||"").toUpperCase()==="PUT"?"name/cos:PutObject":"name/cos:GetObject",Bucket:Bf.Bucket||"",Region:Bf.Region||"",Method:Bf.Method||"get",Key:Bf.Key,Expires:Bf.Expires,Headers:Bf.Headers,Query:Bf.Query,SignHost:_m,ForceSignHost:Bf.ForceSignHost===!1?!1:Ch.options.ForceSignHost},function(Hm,Ym){if(Fh){if(Hm){Fh(Hm);return}var Tg=function(u_){var l_=u_.match(/q-url-param-list.*?(?=&)/g)[0],Kg="q-url-param-list="+encodeURIComponent(l_.replace(/q-url-param-list=/,"")).toLowerCase(),sg=new RegExp(l_,"g"),D_=u_.replace(sg,Kg);return D_},Zm=dm;Zm+="?"+(Ym.Authorization.indexOf("q-signature")>-1?Tg(Ym.Authorization):"sign="+encodeURIComponent(Ym.Authorization)),Ym.SecurityToken&&(Zm+="&x-cos-security-token="+Ym.SecurityToken),Ym.ClientIP&&(Zm+="&clientIP="+Ym.ClientIP),Ym.ClientUA&&(Zm+="&clientUA="+Ym.ClientUA),Ym.Token&&(Zm+="&token="+Ym.Token),om&&(Zm+="&"+om),setTimeout(function(){Fh(null,{Url:Zm})})}});return Xh?(Tm+="?"+Xh.Authorization+(Xh.SecurityToken?"&x-cos-security-token="+Xh.SecurityToken:""),om&&(Tm+="&"+om)):om&&(Tm+="?"+om),Tm}function $g(Bf){var Fh={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},Ch={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},Mh=Bf&&Bf.AccessControlList||{},dm=Mh.Grant;dm&&(dm=pd.isArray(dm)?dm:[dm]);var om={READ:0,WRITE:0,FULL_CONTROL:0};return dm&&dm.length&&pd.each(dm,function(Tm){var _m=Tm.Grantee.URI&&Tm.Grantee.URI.endsWith("/groups/global/AllUsers");Tm.Grantee.ID==="qcs::cam::anyone:anyone"||_m?om[Tm.Permission]=1:Tm.Grantee.ID!==Bf.Owner.ID&&Fh[Ch[Tm.Permission]].push('id="'+Tm.Grantee.ID+'"')}),om.FULL_CONTROL||om.WRITE&&om.READ?Fh.ACL="public-read-write":om.READ?Fh.ACL="public-read":Fh.ACL="private",pd.each(Ch,function(Tm){Fh[Tm]=C_(Fh[Tm].join(","))}),Fh}function C_(Bf){var Fh=Bf.split(","),Ch={},Mh,dm;for(Mh=0;Mh"u"?"undefined":ud(location))==="object"&&location.protocol==="http:"?"http:":"https:");om||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(Fh)>-1?om="{Region}.myqcloud.com":om="cos.{Region}.myqcloud.com",Bf.ForcePathStyle||(om="{Bucket}."+om)),om=om.replace(/\{\{AppId\}\}/gi,dm).replace(/\{\{Bucket\}\}/gi,Mh).replace(/\{\{Region\}\}/gi,Fh).replace(/\{\{.*?\}\}/gi,""),om=om.replace(/\{AppId\}/gi,dm).replace(/\{BucketName\}/gi,Mh).replace(/\{Bucket\}/gi,Ch).replace(/\{Region\}/gi,Fh).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(om)||(om=_m+"//"+om),om.slice(-1)==="/"&&(om=om.slice(0,-1));var Xh=om;return Bf.ForcePathStyle&&(Xh+="/"+Ch),Xh+="/",Tm&&(Xh+=pd.camSafeUrlEncode(Tm).replace(/%2F/g,"/")),Bf.isLocation&&(Xh=Xh.replace(/^https?:\/\//,"")),Xh}var M_=function(Fh){if(!Fh.Bucket||!Fh.Region)return"";var Ch=Fh.UseAccelerate===void 0?this.options.UseAccelerate:Fh.UseAccelerate,Mh=Fh.Url||o_({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:Fh.Bucket,region:Ch?"accelerate":Fh.Region}),dm=Mh.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return dm};function B_(Bf,Fh){var Ch=pd.clone(Bf.Headers),Mh="";pd.each(Ch,function(Jg,Ug){(Jg===""||["content-type","cache-control","expires"].indexOf(Ug.toLowerCase())>-1)&&delete Ch[Ug],Ug.toLowerCase()==="host"&&(Mh=Jg)});var dm=Bf.ForceSignHost!==!1;!Mh&&Bf.SignHost&&dm&&(Ch.Host=Bf.SignHost);var om=!1,Tm=function(Ug,Sh){om||(om=!0,Sh&&Sh.XCosSecurityToken&&!Sh.SecurityToken&&(Sh=pd.clone(Sh),Sh.SecurityToken=Sh.XCosSecurityToken,delete Sh.XCosSecurityToken),Fh&&Fh(Ug,Sh))},_m=this,Xh=Bf.Bucket||"",Hm=Bf.Region||"",Ym=Bf.Key||"";_m.options.ForcePathStyle&&Xh&&(Ym=Xh+"/"+Ym);var Tg="/"+Ym,Zm={},Ag=Bf.Scope;if(!Ag){var u_=Bf.Action||"",l_=Bf.ResourceKey||Bf.Key||"";Ag=Bf.Scope||[{action:u_,bucket:Xh,region:Hm,prefix:l_}]}var Kg=pd.md5(JSON.stringify(Ag));_m._StsCache=_m._StsCache||[],function(){var Jg,Ug;for(Jg=_m._StsCache.length-1;Jg>=0;Jg--){Ug=_m._StsCache[Jg];var Sh=Math.round(pd.getSkewTime(_m.options.SystemClockOffset)/1e3)+30;if(Ug.StartTime&&Sh=Ug.ExpiredTime){_m._StsCache.splice(Jg,1);continue}if(!Ug.ScopeLimit||Ug.ScopeLimit&&Ug.ScopeKey===Kg){Zm=Ug;break}}}();var sg=function(){var Ug="";Zm.StartTime&&Bf.Expires?Ug=Zm.StartTime+";"+(Zm.StartTime+Bf.Expires*1):Zm.StartTime&&Zm.ExpiredTime&&(Ug=Zm.StartTime+";"+Zm.ExpiredTime);var Sh=pd.getAuth({SecretId:Zm.TmpSecretId,SecretKey:Zm.TmpSecretKey,Method:Bf.Method,Pathname:Tg,Query:Bf.Query,Headers:Ch,Expires:Bf.Expires,UseRawKey:_m.options.UseRawKey,SystemClockOffset:_m.options.SystemClockOffset,KeyTime:Ug,ForceSignHost:dm}),sm={Authorization:Sh,SecurityToken:Zm.SecurityToken||Zm.XCosSecurityToken||"",Token:Zm.Token||"",ClientIP:Zm.ClientIP||"",ClientUA:Zm.ClientUA||"",SignFrom:"client"};Tm(null,sm)},D_=function(Ug){if(Ug.Authorization){var Sh=!1,sm=Ug.Authorization;if(sm)if(sm.indexOf(" ")>-1)Sh=!1;else if(sm.indexOf("q-sign-algorithm=")>-1&&sm.indexOf("q-ak=")>-1&&sm.indexOf("q-sign-time=")>-1&&sm.indexOf("q-key-time=")>-1&&sm.indexOf("q-url-param-list=")>-1)Sh=!0;else try{sm=atob(sm),sm.indexOf("a=")>-1&&sm.indexOf("k=")>-1&&sm.indexOf("t=")>-1&&sm.indexOf("r=")>-1&&sm.indexOf("b=")>-1&&(Sh=!0)}catch{}if(!Sh)return pd.error(new Error("getAuthorization callback params format error"))}else{if(!Ug.TmpSecretId)return pd.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Ug.TmpSecretKey)return pd.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Ug.SecurityToken&&!Ug.XCosSecurityToken)return pd.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Ug.ExpiredTime)return pd.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Ug.ExpiredTime&&Ug.ExpiredTime.toString().length!==10)return pd.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Ug.StartTime&&Ug.StartTime.toString().length!==10)return pd.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Zm.ExpiredTime&&Zm.ExpiredTime-pd.getSkewTime(_m.options.SystemClockOffset)/1e3>60)sg();else if(_m.options.getAuthorization)_m.options.getAuthorization.call(_m,{Bucket:Xh,Region:Hm,Method:Bf.Method,Key:Ym,Pathname:Tg,Query:Bf.Query,Headers:Ch,Scope:Ag,SystemClockOffset:_m.options.SystemClockOffset,ForceSignHost:dm},function(Jg){typeof Jg=="string"&&(Jg={Authorization:Jg});var Ug=D_(Jg);if(Ug)return Tm(Ug);Jg.Authorization?Tm(null,Jg):(Zm=Jg||{},Zm.Scope=Ag,Zm.ScopeKey=Kg,_m._StsCache.push(Zm),sg())});else if(_m.options.getSTS)_m.options.getSTS.call(_m,{Bucket:Xh,Region:Hm},function(Jg){Zm=Jg||{},Zm.Scope=Ag,Zm.ScopeKey=Kg,Zm.TmpSecretId||(Zm.TmpSecretId=Zm.SecretId),Zm.TmpSecretKey||(Zm.TmpSecretKey=Zm.SecretKey);var Ug=D_(Zm);if(Ug)return Tm(Ug);_m._StsCache.push(Zm),sg()});else return function(){var Jg="";if(_m.options.StartTime&&Bf.Expires){if(_m.options.StartTime.toString().length!==10)return Tm(pd.error(new Error('params "StartTime" should be 10 digits')));Jg=_m.options.StartTime+";"+(_m.options.StartTime+Bf.Expires*1)}else if(_m.options.StartTime&&_m.options.ExpiredTime){if(_m.options.StartTime.toString().length!==10)return Tm(pd.error(new Error('params "StartTime" should be 10 digits')));if(_m.options.ExpiredTime.toString().length!==10)return Tm(pd.error(new Error('params "ExpiredTime" should be 10 digits')));Jg=_m.options.StartTime+";"+_m.options.ExpiredTime*1}var Ug=pd.getAuth({SecretId:Bf.SecretId||_m.options.SecretId,SecretKey:Bf.SecretKey||_m.options.SecretKey,Method:Bf.Method,Pathname:Tg,Query:Bf.Query,Headers:Ch,Expires:Bf.Expires,KeyTime:Jg,UseRawKey:_m.options.UseRawKey,SystemClockOffset:_m.options.SystemClockOffset,ForceSignHost:dm}),Sh={Authorization:Ug,SecurityToken:_m.options.SecurityToken||_m.options.XCosSecurityToken,SignFrom:"client"};return Tm(null,Sh),Sh}();return""}function h_(Bf){var Fh=this,Ch=!1,Mh=!1,dm=!1,om=Bf.headers&&(Bf.headers.date||Bf.headers.Date)||Bf.error&&Bf.error.ServerTime;try{var Tm=Bf.error.Code,_m=Bf.error.Message;(Tm==="RequestTimeTooSkewed"||Tm==="AccessDenied"&&_m==="Request has expired")&&(Mh=!0)}catch{}if(Bf)if(Mh&&om){var Xh=Date.parse(om);this.options.CorrectClockSkew&&Math.abs(pd.getSkewTime(this.options.SystemClockOffset)-Xh)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=Xh-Date.now(),Ch=!0)}else Math.floor(Bf.statusCode/100)===5?Ch=!0:Bf.message==="CORS blocked or network error"&&(dm=!0,Ch=Fh.options.AutoSwitchHost);return{canRetry:Ch,networkError:dm}}function b_(Bf){var Fh=Bf.requestUrl,Ch=Bf.clientCalcSign,Mh=Bf.networkError;if(!this.options.AutoSwitchHost||!Fh||!Ch||!Mh)return!1;var dm=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,om=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,Tm=dm.test(Fh)&&!om.test(Fh);return Tm}function lg(Bf,Fh){var Ch=this;!Bf.headers&&(Bf.headers={}),!Bf.qs&&(Bf.qs={}),Bf.VersionId&&(Bf.qs.versionId=Bf.VersionId),Bf.qs=pd.clearKey(Bf.qs),Bf.headers&&(Bf.headers=pd.clearKey(Bf.headers)),Bf.qs&&(Bf.qs=pd.clearKey(Bf.qs));var Mh=pd.clone(Bf.qs);Bf.action&&(Mh[Bf.action]="");var dm=Bf.url||Bf.Url,om=Bf.SignHost||M_.call(this,{Bucket:Bf.Bucket,Region:Bf.Region,Url:dm}),Tm=Bf.tracker,_m=function Xh(Hm){var Ym=Ch.options.SystemClockOffset;Tm&&Tm.setParams({signStartTime:new Date().getTime(),httpRetryTimes:Hm-1}),Bf.SwitchHost&&(om=om.replace(/myqcloud.com/,"tencentcos.cn")),B_.call(Ch,{Bucket:Bf.Bucket||"",Region:Bf.Region||"",Method:Bf.method,Key:Bf.Key,Query:Mh,Headers:Bf.headers,SignHost:om,Action:Bf.Action,ResourceKey:Bf.ResourceKey,Scope:Bf.Scope,ForceSignHost:Ch.options.ForceSignHost,SwitchHost:Bf.SwitchHost},function(Tg,Zm){if(Tg){Fh(Tg);return}Tm&&Tm.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),Bf.AuthData=Zm,vb.call(Ch,Bf,function(Ag,u_){Tm&&Tm.setParams({httpEndTime:new Date().getTime()});var l_=!1,Kg=!1;if(Ag){var sg=h_.call(Ch,Ag);l_=sg.canRetry||Ym!==Ch.options.SystemClockOffset,Kg=sg.networkError}if(Ag&&Hm<2&&l_){Bf.headers&&(delete Bf.headers.Authorization,delete Bf.headers.token,delete Bf.headers.clientIP,delete Bf.headers.clientUA,Bf.headers["x-cos-security-token"]&&delete Bf.headers["x-cos-security-token"],Bf.headers["x-ci-security-token"]&&delete Bf.headers["x-ci-security-token"]);var D_=b_.call(Ch,{requestUrl:(Ag==null?void 0:Ag.url)||"",clientCalcSign:Zm.SignFrom==="client",networkError:Kg});Bf.SwitchHost=D_,Bf.retry=!0,Xh(Hm+1)}else Fh(Ag,u_)})})};_m(1)}function vb(Bf,Fh){var Ch=this,Mh=Bf.TaskId;if(!(Mh&&!Ch._isRunningTask(Mh))){var dm=Bf.Bucket,om=Bf.Region,Tm=Bf.Key,_m=Bf.method||"GET",Xh=Bf.Url||Bf.url,Hm=Bf.body,Ym=Bf.rawBody;Ch.options.UseAccelerate&&(om="accelerate"),Xh=Xh||o_({ForcePathStyle:Ch.options.ForcePathStyle,protocol:Ch.options.Protocol,domain:Ch.options.Domain,bucket:dm,region:om,object:Tm}),Bf.SwitchHost&&(Xh=Xh.replace(/myqcloud.com/,"tencentcos.cn"));var Tg=Tm?Xh:"";Bf.action&&(Xh=Xh+"?"+(pd.isIOS_QQ?"".concat(Bf.action,"="):Bf.action)),Bf.qsStr&&(Xh.indexOf("?")>-1?Xh=Xh+"&"+Bf.qsStr:Xh=Xh+"?"+Bf.qsStr);var Zm={method:_m,url:Xh,headers:Bf.headers,qs:Bf.qs,body:Hm},Ag="x-cos-security-token";if(pd.isCIHost(Xh)&&(Ag="x-ci-security-token"),Zm.headers.Authorization=Bf.AuthData.Authorization,Bf.AuthData.Token&&(Zm.headers.token=Bf.AuthData.Token),Bf.AuthData.ClientIP&&(Zm.headers.clientIP=Bf.AuthData.ClientIP),Bf.AuthData.ClientUA&&(Zm.headers.clientUA=Bf.AuthData.ClientUA),Bf.AuthData.SecurityToken&&(Zm.headers[Ag]=Bf.AuthData.SecurityToken),Zm.headers&&(Zm.headers=pd.clearKey(Zm.headers)),Bf.retry&&(Zm.headers["x-cos-sdk-retry"]=!0),Zm=pd.clearKey(Zm),Bf.onProgress&&typeof Bf.onProgress=="function"){var u_=Hm&&(Hm.size||Hm.length)||0;Zm.onProgress=function(Sh){if(!(Mh&&!Ch._isRunningTask(Mh))){var sm=Sh?Sh.loaded:0;Bf.onProgress({loaded:sm,total:u_})}}}Bf.onDownloadProgress&&(Zm.onDownloadProgress=Bf.onDownloadProgress),Bf.DataType&&(Zm.dataType=Bf.DataType),this.options.Timeout&&(Zm.timeout=this.options.Timeout),Ch.options.ForcePathStyle&&(Zm.pathStyle=Ch.options.ForcePathStyle),Ch.emit("before-send",Zm);var l_=Zm.url.includes("accelerate."),Kg=Zm.qs?Object.keys(Zm.qs).map(function(Sh){return"".concat(Sh,"=").concat(Zm.qs[Sh])}).join("&"):"",sg=Kg?Zm.url+"?"+Kg:Zm.url;if(Bf.tracker){var D_;Bf.tracker.setParams({url:sg,httpMethod:Zm.method,accelerate:l_,httpSize:((D_=Zm.body)===null||D_===void 0?void 0:D_.size)||0}),Bf.tracker.parent&&!Bf.tracker.parent.params.url&&Bf.tracker.parent.setParams({url:Tg,accelerate:l_})}var Jg=(Ch.options.Request||dd)(Zm,function(Sh){if(!(Sh&&Sh.error==="abort")){var sm={options:Zm,error:Sh&&Sh.error,statusCode:Sh&&Sh.statusCode||0,statusMessage:Sh&&Sh.statusMessage||"",headers:Sh&&Sh.headers||{},body:Sh&&Sh.body};Ch.emit("after-receive",sm);var Wm=sm.error,rg=sm.body,jm={statusCode:sm.statusCode,statusMessage:sm.statusMessage,headers:sm.headers},_g,t_=function(xb,O_){if(Mh&&Ch.off("inner-kill-task",Ug),!_g){_g=!0;var ib={};if(jm&&jm.statusCode&&(ib.statusCode=jm.statusCode),jm&&jm.headers&&(ib.headers=jm.headers),xb)Zm.url&&(ib.url=Zm.url),Zm.method&&(ib.method=Zm.method),xb=pd.extend(xb||{},ib),Fh(xb,null);else{if(Bf.Action==="name/cos:PutObject"){var W_={};for(var qb in Bf.headers){var y0=qb.toLowerCase();W_[y0]=Bf.headers[qb]}W_["x-cos-callback"]?O_.Error?(O_.CallbackError=pd.clone(O_.Error),delete O_.Error):O_.CallbackBody=pd.clone(O_):W_["x-cos-return-body"]&&(O_.Error?(O_.ReturnError=pd.clone(O_.Error),delete O_.Error):O_.ReturnBody=pd.clone(O_))}O_=pd.extend(O_||{},ib),Fh(null,O_)}Jg=null}};if(Wm)return t_(pd.error(Wm));var R_=jm.statusCode,G_=Math.floor(R_/100)===2;if(Ym){if(G_)return t_(null,{body:rg});if(rg instanceof Blob){pd.readAsBinaryString(rg,function(Gg){var xb=pd.parseResBody(Gg),O_=xb.Error||xb;return t_(pd.error(new Error(O_.Message||"response body error"),{code:O_.Code,error:O_}))});return}}var Tb=pd.parseResBody(rg),Gb=Tb.Error||Tb;G_?t_(null,Tb):Gb?t_(pd.error(new Error(Gb.Message),{code:Gb.Code,error:Gb})):R_?t_(pd.error(new Error(jm.statusMessage),{code:""+R_})):R_&&t_(pd.error(new Error("statusCode error")))}}),Ug=function Sh(sm){sm.TaskId===Mh&&(Jg&&Jg.abort&&Jg.abort(),Ch.off("inner-kill-task",Sh))};Mh&&Ch.on("inner-kill-task",Ug)}}var kb={getService:fd,putBucket:md,headBucket:vd,getBucket:Ad,deleteBucket:Nd,putBucketAcl:Od,getBucketAcl:kd,putBucketCors:Ld,getBucketCors:Gd,deleteBucketCors:Ud,getBucketLocation:Fd,getBucketPolicy:qd,putBucketPolicy:jd,deleteBucketPolicy:zd,putBucketTagging:Yd,getBucketTagging:Jd,deleteBucketTagging:yf,putBucketLifecycle:Xd,getBucketLifecycle:pf,deleteBucketLifecycle:mf,putBucketVersioning:Tf,getBucketVersioning:vf,putBucketReplication:Af,getBucketReplication:Sf,deleteBucketReplication:Df,putBucketWebsite:If,getBucketWebsite:Gf,deleteBucketWebsite:Jf,putBucketReferer:ih,getBucketReferer:uh,putBucketDomain:qf,getBucketDomain:Pf,deleteBucketDomain:Wf,putBucketOrigin:Yf,getBucketOrigin:Kf,deleteBucketOrigin:Cf,putBucketLogging:xf,getBucketLogging:Xf,putBucketInventory:Ah,postBucketInventory:dh,getBucketInventory:Rf,listBucketInventory:gh,deleteBucketInventory:Bh,putBucketAccelerate:th,getBucketAccelerate:$f,putBucketEncryption:Uf,getBucketEncryption:Zf,deleteBucketEncryption:kh,getObject:pm,headObject:Wh,listObjectVersions:xh,putObject:Jh,deleteObject:Om,getObjectAcl:Nm,putObjectAcl:mm,optionsObject:Pm,putObjectCopy:Vm,deleteMultipleObject:jf,restoreObject:Lf,putObjectTagging:_h,getObjectTagging:Oh,deleteObjectTagging:um,selectObjectContent:gm,appendObject:p_,uploadPartCopy:yh,multipartInit:Lm,multipartUpload:Jm,multipartComplete:Gm,multipartList:Eg,multipartListPart:og,multipartAbort:Cg,request:jg,getObjectUrl:i_,getAuth:Yg};function Z_(Bf,Fh,Ch){pd.each(["Cors","Acl"],function(Mh){if(Bf.slice(-Mh.length)===Mh){var dm=Bf.slice(0,-Mh.length)+Mh.toUpperCase(),om=pd.apiWrapper(Bf,Fh),Tm=!1;Ch[dm]=function(){!Tm&&console.warn("warning: cos."+dm+" has been deprecated. Please Use cos."+Bf+" instead."),Tm=!0,om.apply(this,arguments)}}})}nd.exports.init=function(Bf,Fh){Fh.transferToTaskMethod(kb,"putObject"),pd.each(kb,function(Ch,Mh){Bf.prototype[Mh]=pd.apiWrapper(Mh,Ch),Z_(Mh,Ch,Bf.prototype)})}},"./src/cos.js":function(nd,od,ld){var ud=ld("./src/util.js"),dd=ld("./src/event.js"),pd=ld("./src/task.js"),fd=ld("./src/base.js"),md=ld("./src/advance.js"),vd=ld("./package.json"),Ad={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",StartTime:0,ExpiredTime:0,ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null},Nd=function(kd){if(this.options=ud.extend(ud.clone(Ad),kd||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),ud.isNode()&&(console.log("Tip: Next.js、Nuxt.js 等服务端渲染技术可正常使用JavaScript SDK,请忽略下方 nodejs 环境警告"),console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5不再支持使用path-style,仅支持使用virtual-hosted-style,参考文档:https://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");dd.init(this),pd.init(this)};fd.init(Nd,pd),md.init(Nd,pd),Nd.util={md5:ud.md5,xml2json:ud.xml2json,json2xml:ud.json2xml,encodeBase64:ud.encodeBase64},Nd.getAuthorization=ud.getAuth,Nd.version=vd.version,nd.exports=Nd},"./src/event.js":function(nd,od){var ld=function(pd){var fd={},md=function(Ad){return!fd[Ad]&&(fd[Ad]=[]),fd[Ad]};pd.on=function(vd,Ad){vd==="task-list-update"&&console.warn('warning: Event "'+vd+'" has been deprecated. Please use "list-update" instead.'),md(vd).push(Ad)},pd.off=function(vd,Ad){for(var Nd=md(vd),Od=Nd.length-1;Od>=0;Od--)Ad===Nd[Od]&&Nd.splice(Od,1)},pd.emit=function(vd,Ad){for(var Nd=md(vd).map(function(kd){return kd}),Od=0;Od=0;Fd--){var jd=fd[Fd][2];(!jd||jd+pd=0;jd--){var qd=fd[jd];qd[0]===Gd&&qd[1]===Ud&&fd.splice(jd,1)}fd.unshift([Gd,Ud,Math.round(Date.now()/1e3)]),fd.length>Fd&&fd.splice(Fd),Od()}},removeUploadId:function(Gd){Nd.call(this),delete kd.using[Gd];for(var Ud=fd.length-1;Ud>=0;Ud--)fd[Ud][1]===Gd&&fd.splice(Ud,1);Od()}};nd.exports=kd},"./src/task.js":function(nd,od,ld){var ud=ld("./src/session.js"),dd=ld("./src/util.js"),pd={},fd=function(Ad,Nd){pd[Nd]=Ad[Nd],Ad[Nd]=function(Od,kd){Od.SkipTask?pd[Nd].call(this,Od,kd):this._addTask(Nd,Od,kd)}},md=function(Ad){var Nd=[],Od={},kd=0,Ld=0,Gd=function(Jd){var yf={id:Jd.id,Bucket:Jd.Bucket,Region:Jd.Region,Key:Jd.Key,FilePath:Jd.FilePath,state:Jd.state,loaded:Jd.loaded,size:Jd.size,speed:Jd.speed,percent:Jd.percent,hashPercent:Jd.hashPercent,error:Jd.error};return Jd.FilePath&&(yf.FilePath=Jd.FilePath),Jd._custom&&(yf._custom=Jd._custom),yf},Ud=function(){var Yd,Jd=function(){Yd=0,Ad.emit("task-list-update",{list:dd.map(Nd,Gd)}),Ad.emit("list-update",{list:dd.map(Nd,Gd)})};return function(){Yd||(Yd=setTimeout(Jd))}}(),Fd=function(){if(!(Nd.length<=Ad.options.UploadQueueSize)){for(var Jd=0;JdAd.options.UploadQueueSize;){var yf=Nd[Jd].state==="waiting"||Nd[Jd].state==="checking"||Nd[Jd].state==="uploading";!Nd[Jd]||!yf?(Od[Nd[Jd].id]&&delete Od[Nd[Jd].id],Nd.splice(Jd,1),Ld--):Jd++}Ud()}},jd=function Yd(){if(!(kd>=Ad.options.FileParallelLimit)){for(;Nd[Ld]&&Nd[Ld].state!=="waiting";)Ld++;if(!(Ld>=Nd.length)){var Jd=Nd[Ld];Ld++,kd++,Jd.state="checking",Jd.params.onTaskStart&&Jd.params.onTaskStart(Gd(Jd)),!Jd.params.UploadData&&(Jd.params.UploadData={});var yf=dd.formatParams(Jd.api,Jd.params);pd[Jd.api].call(Ad,yf,function(Xd,pf){Ad._isRunningTask(Jd.id)&&((Jd.state==="checking"||Jd.state==="uploading")&&(Jd.state=Xd?"error":"success",Xd&&(Jd.error=Xd),kd--,Ud(),Yd(),Jd.callback&&Jd.callback(Xd,pf),Jd.state==="success"&&(Jd.params&&(delete Jd.params.UploadData,delete Jd.params.Body,delete Jd.params),delete Jd.callback)),Fd())}),Ud(),setTimeout(Yd)}}},qd=function(Jd,yf){var Xd=Od[Jd];if(Xd){var pf=Xd&&Xd.state==="waiting",mf=Xd&&(Xd.state==="checking"||Xd.state==="uploading");if(yf==="canceled"&&Xd.state!=="canceled"||yf==="paused"&&pf||yf==="paused"&&mf){Xd.state=yf,Ad.emit("inner-kill-task",{TaskId:Jd,toState:yf});try{var Tf=Xd&&Xd.params&&Xd.params.UploadData.UploadId}catch{}yf==="canceled"&&Tf&&ud.removeUsing(Tf),Ud(),mf&&(kd--,jd()),yf==="canceled"&&(Xd.params&&(delete Xd.params.UploadData,delete Xd.params.Body,delete Xd.params),delete Xd.callback)}Fd()}};Ad._addTasks=function(Yd){dd.each(Yd,function(Jd){Ad._addTask(Jd.api,Jd.params,Jd.callback,!0)}),Ud()};var zd=!0;Ad._addTask=function(Yd,Jd,yf,Xd){Jd=dd.formatParams(Yd,Jd);var pf=dd.uuid();Jd.TaskId=pf,Jd.onTaskReady&&Jd.onTaskReady(pf),Jd.TaskReady&&(Jd.TaskReady(pf),zd&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),zd=!1);var mf={params:Jd,callback:yf,api:Yd,index:Nd.length,id:pf,Bucket:Jd.Bucket,Region:Jd.Region,Key:Jd.Key,FilePath:Jd.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:Jd._custom},Tf=Jd.onHashProgress;Jd.onHashProgress=function(Af){Ad._isRunningTask(mf.id)&&(mf.hashPercent=Af.percent,Tf&&Tf(Af),Ud())};var vf=Jd.onProgress;return Jd.onProgress=function(Af){Ad._isRunningTask(mf.id)&&(mf.state==="checking"&&(mf.state="uploading"),mf.loaded=Af.loaded,mf.speed=Af.speed,mf.percent=Af.percent,vf&&vf(Af),Ud())},dd.getFileSize(Yd,Jd,function(Af,Sf){if(Af)return yf(dd.error(Af));Od[pf]=mf,Nd.push(mf),mf.size=Sf,!Xd&&Ud(),jd(),Fd()}),pf},Ad._isRunningTask=function(Yd){var Jd=Od[Yd];return!!(Jd&&(Jd.state==="checking"||Jd.state==="uploading"))},Ad.getTaskList=function(){return dd.map(Nd,Gd)},Ad.cancelTask=function(Yd){qd(Yd,"canceled")},Ad.pauseTask=function(Yd){qd(Yd,"paused")},Ad.restartTask=function(Yd){var Jd=Od[Yd];Jd&&(Jd.state==="paused"||Jd.state==="error")&&(Jd.state="waiting",Ud(),Ld=Math.min(Ld,Jd.index),jd())},Ad.isUploadRunning=function(){return kd||Ld"u"?"undefined":pd(navigator))==="object"){var yf=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(yf==null?void 0:yf.type)||(yf==null?void 0:yf.effectiveType)||"unknown"}return"unknown"},getProtocol:function(){return(typeof location>"u"?"undefined":pd(location))==="object"?location.protocol.replace(/:/,""):"unknown protocol"},getOsType:function(){if((typeof navigator>"u"?"undefined":pd(navigator))!=="object")return"unknown os";var yf=navigator.userAgent.toLowerCase(),Xd=/macintosh|mac os x/i.test(navigator.userAgent);return yf.indexOf("win32")>=0||yf.indexOf("wow32")>=0?"win32":yf.indexOf("win64")>=0||yf.indexOf("wow64")>=0?"win64":Xd?"mac":"unknown os"},isMobile:function(){var yf=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator>"u"?"undefined":pd(navigator))==="object"&&navigator.userAgent.match(yf))},isAndroid:function(){var yf=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":pd(navigator))==="object"&&navigator.userAgent.match(yf))},isIOS:function(){var yf=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":pd(navigator))==="object"&&navigator.userAgent.match(yf))},isOtherMobile:function(){return Od&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":pd(navigator))!=="object")return"unknown device";var yf=navigator.userAgent;return yf}},Od=Nd.isMobile(),kd=Nd.isAndroid()?"android":Nd.isIOS?"ios":"other_mobile",Ld=Nd.getOsType(),Gd=Od?kd:Ld,Ud=Nd.getUA(),Fd=Nd.getProtocol(),jd=function(yf){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(yf)?"UploadTask":yf==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(yf)?"CopyTask":yf};function qd(Jd){return Jd.replace(/([A-Z])/g,"_$1").toLowerCase()}function zd(Jd){var yf={},Xd=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],pf=[].concat(Xd,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),mf=Jd.requestResult==="Success"?Xd:pf;for(var Tf in Jd)if(mf.includes(Tf)){var vf=qd(Tf);yf[vf]=Jd[Tf]}return yf.request_name=Jd.realApi?jd(Jd.realApi):Jd.requestName,yf}var Yd=function(){function Jd(yf){ud(this,Jd);var Xd=yf.parent,pf=yf.traceId,mf=yf.bucket,Tf=yf.region,vf=yf.apiName,Af=yf.realApi,Sf=yf.httpMethod,Df=yf.fileKey,If=yf.fileSize,Gf=yf.accelerate,Jf=yf.customId,ih=yf.delay,uh=yf.deepTracker,qf=yf.Beacon,Pf=yf.clsReporter,Wf=mf&&mf.substr(mf.lastIndexOf("-")+1)||"";this.parent=Xd,this.deepTracker=uh,this.delay=ih,Pf&&!this.clsReporter&&(this.clsReporter=Pf),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:fd.version,osName:Gd,networkType:"",requestName:vf||"",requestResult:"",realApi:Af,bucket:mf,region:Tf,accelerate:Gf,httpMethod:Sf,url:"",host:"",httpDomain:"",requestPath:Df||"",userAgent:Ud,networkProtocol:Fd,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:If||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0,traceId:pf||Nd.getUid(),appid:Wf,partNumber:0,httpRetryTimes:0,customId:Jf||"",partTime:0},qf&&(this.beacon=vd(qf,ih))}return dd(Jd,[{key:"formatResult",value:function(Xd,pf){var mf,Tf,vf,Af,Sf,Df,If=new Date().getTime(),Gf=Nd.getNetType(),Jf=Xd?(Xd==null?void 0:Xd.code)||(Xd==null||(mf=Xd.error)===null||mf===void 0?void 0:mf.code)||(Xd==null||(Tf=Xd.error)===null||Tf===void 0?void 0:Tf.Code):"",ih=Xd?(Xd==null?void 0:Xd.message)||(Xd==null||(vf=Xd.error)===null||vf===void 0?void 0:vf.message)||(Xd==null||(Af=Xd.error)===null||Af===void 0?void 0:Af.Message):"",uh=ih,qf=Xd?(Xd==null?void 0:Xd.resource)||(Xd==null||(Sf=Xd.error)===null||Sf===void 0?void 0:Sf.resource)||(Xd==null||(Df=Xd.error)===null||Df===void 0?void 0:Df.Resource):"",Pf=Xd?Xd==null?void 0:Xd.statusCode:pf.statusCode,Wf=Xd?(Xd==null?void 0:Xd.headers)&&(Xd==null?void 0:Xd.headers["x-cos-request-id"]):(pf==null?void 0:pf.headers)&&(pf==null?void 0:pf.headers["x-cos-request-id"]),Yf=Xd?Wf?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=pf?pf.headers&&pf.headers["content-length"]:0);var Kf=this.params.realApi==="sliceUploadFile",Cf=this.params.realApi==="sliceCopyFile";if(Kf||Cf){var xf=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:xf<0?0:xf.toFixed(3)})}else{var Xf=If-this.params.startTime,sh=this.params.httpEndTime-this.params.httpStartTime,Ah=this.params.httpSize/1024/(sh/1e3),dh=this.params.md5EndTime-this.params.md5StartTime,Rf=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",Ad(sh)),this.parent.addParamValue("httpFullTime",Ad(Xf)),this.parent.addParamValue("httpMd5",Ad(dh)),this.parent.addParamValue("httpSign",Ad(Rf)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",Ad(sh))),Object.assign(this.params,{httpFullTime:Ad(Xf),httpMd5:Ad(dh),httpSign:Ad(Rf),httpTookTime:Ad(sh),httpSpeed:Ah<0?0:Ah.toFixed(3)})}if(Object.assign(this.params,{networkType:Gf,requestResult:Xd?"Failure":"Success",errorType:Yf,errorCode:Jf,errorHttpCode:Pf,errorName:uh,errorMessage:ih,errorServiceName:qf,errorRequestId:Wf}),Xd&&(!Jf||!ih)&&(this.params.fullError=Xd?JSON.stringify(Xd):""),this.params.url){try{var gh=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=gh[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(Xd,pf){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(Xd,pf);var mf=zd(this.params);this.beacon&&this.sendEventsToBeacon(mf),this.clsReporter&&this.sendEventsToCLS(mf)}}},{key:"setParams",value:function(Xd){Object.assign(this.params,Xd)}},{key:"addParamValue",value:function(Xd,pf){this.params[Xd]=(+this.params[Xd]+ +pf).toFixed(3)}},{key:"sendEventsToBeacon",value:function(Xd){var pf=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(pf&&!this.deepTracker)){var mf="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(mf,Xd):this.beacon&&this.beacon.onUserAction(mf,Xd)}}},{key:"sendEventsToCLS",value:function(Xd){var pf=this.delay===0;this.clsReporter.log(Xd,pf)}},{key:"generateSubTracker",value:function(Xd){return Object.assign(Xd,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new Jd(Xd)}}]),Jd}();nd.exports=Yd},"./src/util.js":function(nd,od,ld){(function(ud){var dd=ld("./node_modules/@babel/runtime/helpers/typeof.js");function pd(jf,Lf){var _h=typeof Symbol<"u"&&jf[Symbol.iterator]||jf["@@iterator"];if(!_h){if(Array.isArray(jf)||(_h=fd(jf))||Lf){_h&&(jf=_h);var Oh=0,um=function(){};return{s:um,n:function(){return Oh>=jf.length?{done:!0}:{done:!1,value:jf[Oh++]}},e:function(Eg){throw Eg},f:um}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gm=!0,Lm=!1,Jm;return{s:function(){_h=_h.call(jf)},n:function(){var Eg=_h.next();return gm=Eg.done,Eg},e:function(Eg){Lm=!0,Jm=Eg},f:function(){try{!gm&&_h.return!=null&&_h.return()}finally{if(Lm)throw Jm}}}}function fd(jf,Lf){if(jf){if(typeof jf=="string")return md(jf,Lf);var _h=Object.prototype.toString.call(jf).slice(8,-1);if(_h==="Object"&&jf.constructor&&(_h=jf.constructor.name),_h==="Map"||_h==="Set")return Array.from(jf);if(_h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_h))return md(jf,Lf)}}function md(jf,Lf){(Lf==null||Lf>jf.length)&&(Lf=jf.length);for(var _h=0,Oh=new Array(Lf);_hgm?1:-1})}var Jd=function(Lf,_h){var Oh,um,gm,Lm=[],Jm=Yd(Lf);for(Oh=0;Oh-1||yf.indexOf(um)>-1)&&(_h[Oh]=Lf[Oh])}return _h},pf=function(Lf){Lf=Lf||{};var _h=Lf.SecretId,Oh=Lf.SecretKey,um=Lf.KeyTime,gm=(Lf.method||Lf.Method||"get").toLowerCase(),Lm=Pf(Lf.Query||Lf.params||{}),Jm=Xd(Pf(Lf.Headers||Lf.headers||{})),Gm=Lf.Key||"",Eg;Lf.UseRawKey?Eg=Lf.Pathname||Lf.pathname||"/"+Gm:(Eg=Lf.Pathname||Lf.pathname||Gm,Eg.indexOf("/")!==0&&(Eg="/"+Eg));var og=Lf.ForceSignHost!==!1;if(!Jm.Host&&!Jm.host&&Lf.Bucket&&Lf.Region&&og&&(Jm.Host=Lf.Bucket+".cos."+Lf.Region+".myqcloud.com"),!_h)throw new Error("missing param SecretId");if(!Oh)throw new Error("missing param SecretKey");var Cg=Math.round(Zf(Lf.SystemClockOffset)/1e3)-1,jg=Cg,p_=Lf.Expires||Lf.expires;p_===void 0?jg+=900:jg+=p_*1||0;var Yg="sha1",i_=_h,$g=um||Cg+";"+jg,C_=um||Cg+";"+jg,o_=Yd(Jm,!0).join(";").toLowerCase(),M_=Yd(Lm,!0).join(";").toLowerCase(),B_=Ad.HmacSHA1(C_,Oh).toString(),h_=[gm,Eg,yh.obj2str(Lm,!0),yh.obj2str(Jm,!0),""].join(` -`),b_=["sha1",$g,Ad.SHA1(h_).toString(),""].join(` -`),lg=Ad.HmacSHA1(b_,B_).toString(),vb=["q-sign-algorithm="+Yg,"q-ak="+i_,"q-sign-time="+$g,"q-key-time="+C_,"q-header-list="+o_,"q-url-param-list="+M_,"q-signature="+lg].join("&");return vb},mf=function(Lf,_h,Oh){var um=_h/8,gm=Lf.slice(Oh,Oh+um);return new Uint8Array(gm).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[_h](gm)[0]},Tf=function(Lf,_h,Oh,um){var gm=Lf.slice(_h,Oh),Lm="";return new Uint8Array(gm).forEach(function(Jm){Lm+=String.fromCharCode(Jm)}),um&&(Lm=decodeURIComponent(escape(Lm))),Lm},vf=function(Lf){for(var _h={},Oh=Tf(Lf),um={records:[]};Lf.byteLength;){var gm=mf(Lf,32,0),Lm=mf(Lf,32,4),Jm=gm-Lm-16,Gm=0,Eg;for(Lf=Lf.slice(12);GmparseInt(um[gm])?1:-1;return 0},Lf=function(Oh){if(!Oh)return!1;var um=(Oh.match(/Chrome\/([.\d]+)/)||[])[1],gm=(Oh.match(/QBCore\/([.\d]+)/)||[])[1],Lm=(Oh.match(/QQBrowser\/([.\d]+)/)||[])[1],Jm=um&&jf(um,"53.0.2785.116")<0&&gm&&jf(gm,"3.53.991.400")<0&&Lm&&jf(Lm,"9.0.2524.400")<=0||!1;return Jm};return Lf(typeof navigator<"u"&&navigator.userAgent)}(),Jf=function(Lf,_h,Oh,um,gm){var Lm;if(Lf.slice?Lm=Lf.slice(_h,Oh):Lf.mozSlice?Lm=Lf.mozSlice(_h,Oh):Lf.webkitSlice&&(Lm=Lf.webkitSlice(_h,Oh)),um&&Gf){var Jm=new FileReader;Jm.onload=function(Gm){Lm=null,gm(new Blob([Jm.result]))},Jm.readAsArrayBuffer(Lm)}else gm(Lm)},ih=function(Lf,_h,Oh,um){Oh=Oh||Sf,Lf?typeof _h=="string"?Oh(yh.md5(_h,!0)):Blob&&_h instanceof Blob?yh.getFileMd5(_h,function(gm,Lm){Oh(Lm)},um):Oh():Oh()},uh=1024*1024,qf=function(Lf,_h,Oh){var um=Lf.size,gm=0,Lm=vd.getCtx(),Jm=function Gm(Eg){if(Eg>=um){var og=Lm.digest("hex");_h(null,og);return}var Cg=Math.min(um,Eg+uh);yh.fileSlice(Lf,Eg,Cg,!1,function(jg){If(jg,function(p_){jg=null,Lm=Lm.update(p_,!0),gm+=p_.length,p_=null,Oh&&Oh({loaded:gm,total:um,percent:Math.round(gm/um*1e4)/1e4}),Gm(Eg+uh)})})};Jm(0)};function Pf(jf){return sh(jf,function(Lf){return dd(Lf)==="object"&&Lf!==null?Pf(Lf):Lf})}function Wf(jf,Lf,_h){return jf&&Lf in jf?jf[Lf]:_h}function Yf(jf,Lf){return Xf(Lf,function(_h,Oh){jf[Oh]=Lf[Oh]}),jf}function Kf(jf){return jf instanceof Array}function Cf(jf,Lf){for(var _h=!1,Oh=0;Oh-1,Gm=!Lm||typeof Lm=="string"&&Lm.indexOf("{Region}")>-1;if(Lf.indexOf("Bucket")>-1||Lf==="deleteMultipleObject"||Lf==="multipartList"||Lf==="listObjectVersions"){if(Jm&&!Oh)return"Bucket";if(Gm&&!um)return"Region"}else if(Lf.indexOf("Object")>-1||Lf.indexOf("multipart")>-1||Lf==="sliceUploadFile"||Lf==="abortUploadTask"||Lf==="uploadFile"){if(Jm&&!Oh)return"Bucket";if(Gm&&!um)return"Region";if(!gm)return"Key"}return!1},Bh=function(Lf,_h){if(_h=Yf({},_h),Lf!=="getAuth"&&Lf!=="getV4Auth"&&Lf!=="getObjectUrl"){var Oh=_h.Headers||{};if(_h&&dd(_h)==="object"){(function(){for(var gm in _h)_h.hasOwnProperty(gm)&&gm.indexOf("x-cos-")>-1&&(Oh[gm]=_h[gm])})();var um={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations","x-cos-callback":"Callback","x-cos-callback-var":"CallbackVar","x-cos-return-body":"ReturnBody"};yh.each(um,function(gm,Lm){_h[gm]!==void 0&&(Oh[Lm]=_h[gm])}),_h.Headers=Df(Oh)}}return _h},th=function(Lf,_h){return function(Oh,um){var gm=this;typeof Oh=="function"&&(um=Oh,Oh={}),Oh=Bh(Lf,Oh);var Lm;if(gm.options.EnableReporter)if(Oh.calledBySdk==="sliceUploadFile"||Oh.calledBySdk==="sliceCopyFile")Lm=Oh.tracker&&Oh.tracker.generateSubTracker({apiName:Lf});else if(["uploadFile","uploadFiles"].includes(Lf))Lm=null;else{var Jm=0;Oh.Body&&(Jm=typeof Oh.Body=="string"?Oh.Body.length:Oh.Body.size||Oh.Body.byteLength||0);var Gm=gm.options.UseAccelerate||typeof gm.options.Domain=="string"&&gm.options.Domain.includes("accelerate.");Lm=new Fd({Beacon:gm.options.BeaconReporter,clsReporter:gm.options.ClsReporter,bucket:Oh.Bucket,region:Oh.Region,apiName:Lf,realApi:Lf,accelerate:Gm,fileKey:Oh.Key,fileSize:Jm,deepTracker:gm.options.DeepTracker,customId:gm.options.CustomId,delay:gm.options.TrackerDelay})}Oh.tracker=Lm;var Eg=function($g){return $g&&$g.headers&&($g.headers["x-cos-request-id"]&&($g.RequestId=$g.headers["x-cos-request-id"]),$g.headers["x-ci-request-id"]&&($g.RequestId=$g.headers["x-ci-request-id"]),$g.headers["x-cos-version-id"]&&($g.VersionId=$g.headers["x-cos-version-id"]),$g.headers["x-cos-delete-marker"]&&($g.DeleteMarker=$g.headers["x-cos-delete-marker"])),$g},og=function($g,C_){Lm&&Lm.report($g,C_),um&&um(Eg($g),Eg(C_))},Cg=function(){if(Lf!=="getService"&&Lf!=="abortUploadTask"){var $g=gh.call(gm,Lf,Oh);if($g)return"missing param "+$g;if(Oh.Region){if(gm.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(Oh.Region))return"Region format error."}else{if(Oh.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(Oh.Region))return"Region format error."}!gm.options.CompatibilityMode&&Oh.Region.indexOf("-")===-1&&Oh.Region!=="yfb"&&Oh.Region!=="default"&&Oh.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(Oh.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(Oh.Bucket))if(Oh.AppId)Oh.Bucket=Oh.Bucket+"-"+Oh.AppId;else if(gm.options.AppId)Oh.Bucket=Oh.Bucket+"-"+gm.options.AppId;else return'Bucket should format as "test-1250000000".';Oh.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete Oh.AppId)}!gm.options.UseRawKey&&Oh.Key&&Oh.Key.substr(0,1)==="/"&&(Oh.Key=Oh.Key.substr(1))}},jg=Cg(),p_=["getAuth","getObjectUrl"].includes(Lf);if(typeof Promise=="function"&&!p_&&!um)return new Promise(function(i_,$g){if(um=function(o_,M_){o_?$g(o_):i_(M_)},jg)return og(yh.error(new Error(jg)));_h.call(gm,Oh,og)});if(jg)return og(yh.error(new Error(jg)));var Yg=_h.call(gm,Oh,og);if(p_)return Yg}},$f=function(Lf,_h){var Oh=this,um=0,gm=0,Lm=Date.now(),Jm,Gm;function Eg(){if(Gm=0,_h&&typeof _h=="function"){Jm=Date.now();var og=Math.max(0,Math.round((gm-um)/((Jm-Lm)/1e3)*100)/100)||0,Cg;gm===0&&Lf===0?Cg=1:Cg=Math.floor(gm/Lf*100)/100||0,Lm=Jm,um=gm;try{_h({loaded:gm,total:Lf,speed:og,percent:Cg})}catch{}}}return function(og,Cg){if(og&&(gm=og.loaded,Lf=og.total),Cg)clearTimeout(Gm),Eg();else{if(Gm)return;Gm=setTimeout(Eg,Oh.options.ProgressInterval)}}},Uf=function(Lf,_h,Oh){var um;if(typeof _h.Body=="string"?_h.Body=new Blob([_h.Body],{type:"text/plain"}):_h.Body instanceof ArrayBuffer&&(_h.Body=new Blob([_h.Body])),_h.Body&&(_h.Body instanceof Blob||_h.Body.toString()==="[object File]"||_h.Body.toString()==="[object Blob]"))um=_h.Body.size;else{Oh(yh.error(new Error("params body format error, Only allow File|Blob|String.")));return}_h.ContentLength=um,Oh(null,um)},Zf=function(Lf){return Date.now()+(Lf||0)},kh=function(Lf,_h){var Oh=Lf;return Lf.message=Lf.message||null,typeof _h=="string"?(Lf.error=_h,Lf.message=_h):dd(_h)==="object"&&_h!==null&&(Yf(Lf,_h),(_h.code||_h.name)&&(Lf.code=_h.code||_h.name),_h.message&&(Lf.message=_h.message),_h.stack&&(Lf.stack=_h.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(Lf,"name",{writable:!0,enumerable:!1}),Object.defineProperty(Lf,"message",{enumerable:!0})),Lf.name=_h&&_h.name||Lf.name||Lf.code||"Error",Lf.code||(Lf.code=Lf.name),Lf.error||(Lf.error=Pf(Oh)),Lf},Wh=function(){return(typeof globalThis>"u"?"undefined":dd(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},xh=function(){return(typeof window>"u"?"undefined":dd(window))!=="object"&&(typeof ud>"u"?"undefined":dd(ud))==="object"&&!0&&!Wh()},pm=function(Lf){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(Lf)},Jh=function(){if((typeof navigator>"u"?"undefined":dd(navigator))!=="object")return!1;var jf=navigator.userAgent,Lf=!!jf.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return Lf}(),Om=function(){return(typeof navigator>"u"?"undefined":dd(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Nm=function(Lf,_h){var Oh=Ud.encode(Lf);return _h&&(Oh=Oh.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),Oh},mm=function(Lf){return Lf?Ud.decode(Lf):""},Pm=function(Lf){var _h=Lf.split("/"),Oh=[],um=pd(_h),gm;try{for(um.s();!(gm=um.n()).done;){var Lm=gm.value;Lm===".."?Oh.length&&Oh.pop():Lm.length&&Lm!=="."&&Oh.push(Lm)}}catch(Jm){um.e(Jm)}finally{um.f()}return"/"+Oh.join("/")},Vm=function(Lf){var _h;if(Lf&&typeof Lf=="string"){var Oh=Lf.trim(),um=Oh.indexOf("<")===0,gm=Oh.indexOf("{")===0;if(um)_h=yh.xml2json(Lf)||{};else if(gm)try{var Lm=Lf.replace(/\n/g," "),Jm=JSON.parse(Lm);Object.prototype.toString.call(Jm)==="[object Object]"?_h=Jm:_h=Lf}catch{_h=Lf}else _h=Lf}else _h=Lf||{};return _h},yh={noop:Sf,formatParams:Bh,apiWrapper:th,xml2json:jd,json2xml:qd,md5:vd,clearKey:Df,fileSlice:Jf,getBodyMd5:ih,getFileMd5:qf,b64:dh,extend:Yf,isArray:Kf,isInArray:Cf,makeArray:xf,each:Xf,map:sh,filter:Ah,clone:Pf,attr:Wf,uuid:Rf,camSafeUrlEncode:zd,throttleOnProgress:$f,getFileSize:Uf,getSkewTime:Zf,error:kh,obj2str:Jd,getAuth:pf,parseSelectPayload:vf,getSourceParams:Af,isBrowser:!0,isNode:xh,isCIHost:pm,isIOS_QQ:Jh&&Om,encodeBase64:Nm,decodeBase64:mm,simplifyPath:Pm,readAsBinaryString:If,parseResBody:Vm};nd.exports=yh}).call(this,ld("./node_modules/process/browser.js"))}})})})(cosJsSdkV5);var cosJsSdkV5Exports=cosJsSdkV5.exports;const COS=getDefaultExportFromCjs(cosJsSdkV5Exports);var cryptoJs={exports:{}},core={exports:{}};const __viteBrowserExternal={},http=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(http);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(Ra,qa){(function(nd,od){Ra.exports=od()})(commonjsGlobal,function(){var nd=nd||function(od,ld){var ud;if(typeof window<"u"&&window.crypto&&(ud=window.crypto),typeof self<"u"&&self.crypto&&(ud=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(ud=globalThis.crypto),!ud&&typeof window<"u"&&window.msCrypto&&(ud=window.msCrypto),!ud&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(ud=commonjsGlobal.crypto),!ud&&typeof commonjsRequire=="function")try{ud=require$$0$1}catch{}var dd=function(){if(ud){if(typeof ud.getRandomValues=="function")try{return ud.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof ud.randomBytes=="function")try{return ud.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},pd=Object.create||function(){function Fd(){}return function(jd){var qd;return Fd.prototype=jd,qd=new Fd,Fd.prototype=null,qd}}(),fd={},md=fd.lib={},vd=md.Base=function(){return{extend:function(Fd){var jd=pd(this);return Fd&&jd.mixIn(Fd),(!jd.hasOwnProperty("init")||this.init===jd.init)&&(jd.init=function(){jd.$super.init.apply(this,arguments)}),jd.init.prototype=jd,jd.$super=this,jd},create:function(){var Fd=this.extend();return Fd.init.apply(Fd,arguments),Fd},init:function(){},mixIn:function(Fd){for(var jd in Fd)Fd.hasOwnProperty(jd)&&(this[jd]=Fd[jd]);Fd.hasOwnProperty("toString")&&(this.toString=Fd.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Ad=md.WordArray=vd.extend({init:function(Fd,jd){Fd=this.words=Fd||[],jd!=ld?this.sigBytes=jd:this.sigBytes=Fd.length*4},toString:function(Fd){return(Fd||Od).stringify(this)},concat:function(Fd){var jd=this.words,qd=Fd.words,zd=this.sigBytes,Yd=Fd.sigBytes;if(this.clamp(),zd%4)for(var Jd=0;Jd>>2]>>>24-Jd%4*8&255;jd[zd+Jd>>>2]|=yf<<24-(zd+Jd)%4*8}else for(var Xd=0;Xd>>2]=qd[Xd>>>2];return this.sigBytes+=Yd,this},clamp:function(){var Fd=this.words,jd=this.sigBytes;Fd[jd>>>2]&=4294967295<<32-jd%4*8,Fd.length=od.ceil(jd/4)},clone:function(){var Fd=vd.clone.call(this);return Fd.words=this.words.slice(0),Fd},random:function(Fd){for(var jd=[],qd=0;qd>>2]>>>24-Yd%4*8&255;zd.push((Jd>>>4).toString(16)),zd.push((Jd&15).toString(16))}return zd.join("")},parse:function(Fd){for(var jd=Fd.length,qd=[],zd=0;zd>>3]|=parseInt(Fd.substr(zd,2),16)<<24-zd%8*4;return new Ad.init(qd,jd/2)}},kd=Nd.Latin1={stringify:function(Fd){for(var jd=Fd.words,qd=Fd.sigBytes,zd=[],Yd=0;Yd>>2]>>>24-Yd%4*8&255;zd.push(String.fromCharCode(Jd))}return zd.join("")},parse:function(Fd){for(var jd=Fd.length,qd=[],zd=0;zd>>2]|=(Fd.charCodeAt(zd)&255)<<24-zd%4*8;return new Ad.init(qd,jd)}},Ld=Nd.Utf8={stringify:function(Fd){try{return decodeURIComponent(escape(kd.stringify(Fd)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(Fd){return kd.parse(unescape(encodeURIComponent(Fd)))}},Gd=md.BufferedBlockAlgorithm=vd.extend({reset:function(){this._data=new Ad.init,this._nDataBytes=0},_append:function(Fd){typeof Fd=="string"&&(Fd=Ld.parse(Fd)),this._data.concat(Fd),this._nDataBytes+=Fd.sigBytes},_process:function(Fd){var jd,qd=this._data,zd=qd.words,Yd=qd.sigBytes,Jd=this.blockSize,yf=Jd*4,Xd=Yd/yf;Fd?Xd=od.ceil(Xd):Xd=od.max((Xd|0)-this._minBufferSize,0);var pf=Xd*Jd,mf=od.min(pf*4,Yd);if(pf){for(var Tf=0;Tf>>2]|=fd[Ad]<<24-Ad%4*8;dd.call(this,vd,md)}else dd.apply(this,arguments)};pd.prototype=ud}}(),nd.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=od.enc;dd.Utf16=dd.Utf16BE={stringify:function(fd){for(var md=fd.words,vd=fd.sigBytes,Ad=[],Nd=0;Nd>>2]>>>16-Nd%4*8&65535;Ad.push(String.fromCharCode(Od))}return Ad.join("")},parse:function(fd){for(var md=fd.length,vd=[],Ad=0;Ad>>1]|=fd.charCodeAt(Ad)<<16-Ad%2*16;return ud.create(vd,md*2)}},dd.Utf16LE={stringify:function(fd){for(var md=fd.words,vd=fd.sigBytes,Ad=[],Nd=0;Nd>>2]>>>16-Nd%4*8&65535);Ad.push(String.fromCharCode(Od))}return Ad.join("")},parse:function(fd){for(var md=fd.length,vd=[],Ad=0;Ad>>1]|=pd(fd.charCodeAt(Ad)<<16-Ad%2*16);return ud.create(vd,md*2)}};function pd(fd){return fd<<8&4278255360|fd>>>8&16711935}}(),nd.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=od.enc;dd.Base64={stringify:function(fd){var md=fd.words,vd=fd.sigBytes,Ad=this._map;fd.clamp();for(var Nd=[],Od=0;Od>>2]>>>24-Od%4*8&255,Ld=md[Od+1>>>2]>>>24-(Od+1)%4*8&255,Gd=md[Od+2>>>2]>>>24-(Od+2)%4*8&255,Ud=kd<<16|Ld<<8|Gd,Fd=0;Fd<4&&Od+Fd*.75>>6*(3-Fd)&63));var jd=Ad.charAt(64);if(jd)for(;Nd.length%4;)Nd.push(jd);return Nd.join("")},parse:function(fd){var md=fd.length,vd=this._map,Ad=this._reverseMap;if(!Ad){Ad=this._reverseMap=[];for(var Nd=0;Nd>>6-Od%4*2,Gd=kd|Ld;Ad[Nd>>>2]|=Gd<<24-Nd%4*8,Nd++}return ud.create(Ad,Nd)}}(),nd.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=od.enc;dd.Base64url={stringify:function(fd,md){md===void 0&&(md=!0);var vd=fd.words,Ad=fd.sigBytes,Nd=md?this._safe_map:this._map;fd.clamp();for(var Od=[],kd=0;kd>>2]>>>24-kd%4*8&255,Gd=vd[kd+1>>>2]>>>24-(kd+1)%4*8&255,Ud=vd[kd+2>>>2]>>>24-(kd+2)%4*8&255,Fd=Ld<<16|Gd<<8|Ud,jd=0;jd<4&&kd+jd*.75>>6*(3-jd)&63));var qd=Nd.charAt(64);if(qd)for(;Od.length%4;)Od.push(qd);return Od.join("")},parse:function(fd,md){md===void 0&&(md=!0);var vd=fd.length,Ad=md?this._safe_map:this._map,Nd=this._reverseMap;if(!Nd){Nd=this._reverseMap=[];for(var Od=0;Od>>6-Od%4*2,Gd=kd|Ld;Ad[Nd>>>2]|=Gd<<24-Nd%4*8,Nd++}return ud.create(Ad,Nd)}}(),nd.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5$1={exports:{}},hasRequiredMd5$1;function requireMd5$1(){return hasRequiredMd5$1||(hasRequiredMd5$1=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(od){var ld=nd,ud=ld.lib,dd=ud.WordArray,pd=ud.Hasher,fd=ld.algo,md=[];(function(){for(var Ld=0;Ld<64;Ld++)md[Ld]=od.abs(od.sin(Ld+1))*4294967296|0})();var vd=fd.MD5=pd.extend({_doReset:function(){this._hash=new dd.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Ld,Gd){for(var Ud=0;Ud<16;Ud++){var Fd=Gd+Ud,jd=Ld[Fd];Ld[Fd]=(jd<<8|jd>>>24)&16711935|(jd<<24|jd>>>8)&4278255360}var qd=this._hash.words,zd=Ld[Gd+0],Yd=Ld[Gd+1],Jd=Ld[Gd+2],yf=Ld[Gd+3],Xd=Ld[Gd+4],pf=Ld[Gd+5],mf=Ld[Gd+6],Tf=Ld[Gd+7],vf=Ld[Gd+8],Af=Ld[Gd+9],Sf=Ld[Gd+10],Df=Ld[Gd+11],If=Ld[Gd+12],Gf=Ld[Gd+13],Jf=Ld[Gd+14],ih=Ld[Gd+15],uh=qd[0],qf=qd[1],Pf=qd[2],Wf=qd[3];uh=Ad(uh,qf,Pf,Wf,zd,7,md[0]),Wf=Ad(Wf,uh,qf,Pf,Yd,12,md[1]),Pf=Ad(Pf,Wf,uh,qf,Jd,17,md[2]),qf=Ad(qf,Pf,Wf,uh,yf,22,md[3]),uh=Ad(uh,qf,Pf,Wf,Xd,7,md[4]),Wf=Ad(Wf,uh,qf,Pf,pf,12,md[5]),Pf=Ad(Pf,Wf,uh,qf,mf,17,md[6]),qf=Ad(qf,Pf,Wf,uh,Tf,22,md[7]),uh=Ad(uh,qf,Pf,Wf,vf,7,md[8]),Wf=Ad(Wf,uh,qf,Pf,Af,12,md[9]),Pf=Ad(Pf,Wf,uh,qf,Sf,17,md[10]),qf=Ad(qf,Pf,Wf,uh,Df,22,md[11]),uh=Ad(uh,qf,Pf,Wf,If,7,md[12]),Wf=Ad(Wf,uh,qf,Pf,Gf,12,md[13]),Pf=Ad(Pf,Wf,uh,qf,Jf,17,md[14]),qf=Ad(qf,Pf,Wf,uh,ih,22,md[15]),uh=Nd(uh,qf,Pf,Wf,Yd,5,md[16]),Wf=Nd(Wf,uh,qf,Pf,mf,9,md[17]),Pf=Nd(Pf,Wf,uh,qf,Df,14,md[18]),qf=Nd(qf,Pf,Wf,uh,zd,20,md[19]),uh=Nd(uh,qf,Pf,Wf,pf,5,md[20]),Wf=Nd(Wf,uh,qf,Pf,Sf,9,md[21]),Pf=Nd(Pf,Wf,uh,qf,ih,14,md[22]),qf=Nd(qf,Pf,Wf,uh,Xd,20,md[23]),uh=Nd(uh,qf,Pf,Wf,Af,5,md[24]),Wf=Nd(Wf,uh,qf,Pf,Jf,9,md[25]),Pf=Nd(Pf,Wf,uh,qf,yf,14,md[26]),qf=Nd(qf,Pf,Wf,uh,vf,20,md[27]),uh=Nd(uh,qf,Pf,Wf,Gf,5,md[28]),Wf=Nd(Wf,uh,qf,Pf,Jd,9,md[29]),Pf=Nd(Pf,Wf,uh,qf,Tf,14,md[30]),qf=Nd(qf,Pf,Wf,uh,If,20,md[31]),uh=Od(uh,qf,Pf,Wf,pf,4,md[32]),Wf=Od(Wf,uh,qf,Pf,vf,11,md[33]),Pf=Od(Pf,Wf,uh,qf,Df,16,md[34]),qf=Od(qf,Pf,Wf,uh,Jf,23,md[35]),uh=Od(uh,qf,Pf,Wf,Yd,4,md[36]),Wf=Od(Wf,uh,qf,Pf,Xd,11,md[37]),Pf=Od(Pf,Wf,uh,qf,Tf,16,md[38]),qf=Od(qf,Pf,Wf,uh,Sf,23,md[39]),uh=Od(uh,qf,Pf,Wf,Gf,4,md[40]),Wf=Od(Wf,uh,qf,Pf,zd,11,md[41]),Pf=Od(Pf,Wf,uh,qf,yf,16,md[42]),qf=Od(qf,Pf,Wf,uh,mf,23,md[43]),uh=Od(uh,qf,Pf,Wf,Af,4,md[44]),Wf=Od(Wf,uh,qf,Pf,If,11,md[45]),Pf=Od(Pf,Wf,uh,qf,ih,16,md[46]),qf=Od(qf,Pf,Wf,uh,Jd,23,md[47]),uh=kd(uh,qf,Pf,Wf,zd,6,md[48]),Wf=kd(Wf,uh,qf,Pf,Tf,10,md[49]),Pf=kd(Pf,Wf,uh,qf,Jf,15,md[50]),qf=kd(qf,Pf,Wf,uh,pf,21,md[51]),uh=kd(uh,qf,Pf,Wf,If,6,md[52]),Wf=kd(Wf,uh,qf,Pf,yf,10,md[53]),Pf=kd(Pf,Wf,uh,qf,Sf,15,md[54]),qf=kd(qf,Pf,Wf,uh,Yd,21,md[55]),uh=kd(uh,qf,Pf,Wf,vf,6,md[56]),Wf=kd(Wf,uh,qf,Pf,ih,10,md[57]),Pf=kd(Pf,Wf,uh,qf,mf,15,md[58]),qf=kd(qf,Pf,Wf,uh,Gf,21,md[59]),uh=kd(uh,qf,Pf,Wf,Xd,6,md[60]),Wf=kd(Wf,uh,qf,Pf,Df,10,md[61]),Pf=kd(Pf,Wf,uh,qf,Jd,15,md[62]),qf=kd(qf,Pf,Wf,uh,Af,21,md[63]),qd[0]=qd[0]+uh|0,qd[1]=qd[1]+qf|0,qd[2]=qd[2]+Pf|0,qd[3]=qd[3]+Wf|0},_doFinalize:function(){var Ld=this._data,Gd=Ld.words,Ud=this._nDataBytes*8,Fd=Ld.sigBytes*8;Gd[Fd>>>5]|=128<<24-Fd%32;var jd=od.floor(Ud/4294967296),qd=Ud;Gd[(Fd+64>>>9<<4)+15]=(jd<<8|jd>>>24)&16711935|(jd<<24|jd>>>8)&4278255360,Gd[(Fd+64>>>9<<4)+14]=(qd<<8|qd>>>24)&16711935|(qd<<24|qd>>>8)&4278255360,Ld.sigBytes=(Gd.length+1)*4,this._process();for(var zd=this._hash,Yd=zd.words,Jd=0;Jd<4;Jd++){var yf=Yd[Jd];Yd[Jd]=(yf<<8|yf>>>24)&16711935|(yf<<24|yf>>>8)&4278255360}return zd},clone:function(){var Ld=pd.clone.call(this);return Ld._hash=this._hash.clone(),Ld}});function Ad(Ld,Gd,Ud,Fd,jd,qd,zd){var Yd=Ld+(Gd&Ud|~Gd&Fd)+jd+zd;return(Yd<>>32-qd)+Gd}function Nd(Ld,Gd,Ud,Fd,jd,qd,zd){var Yd=Ld+(Gd&Fd|Ud&~Fd)+jd+zd;return(Yd<>>32-qd)+Gd}function Od(Ld,Gd,Ud,Fd,jd,qd,zd){var Yd=Ld+(Gd^Ud^Fd)+jd+zd;return(Yd<>>32-qd)+Gd}function kd(Ld,Gd,Ud,Fd,jd,qd,zd){var Yd=Ld+(Ud^(Gd|~Fd))+jd+zd;return(Yd<>>32-qd)+Gd}ld.MD5=pd._createHelper(vd),ld.HmacMD5=pd._createHmacHelper(vd)}(Math),nd.MD5})}(md5$1)),md5$1.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=ld.Hasher,pd=od.algo,fd=[],md=pd.SHA1=dd.extend({_doReset:function(){this._hash=new ud.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(vd,Ad){for(var Nd=this._hash.words,Od=Nd[0],kd=Nd[1],Ld=Nd[2],Gd=Nd[3],Ud=Nd[4],Fd=0;Fd<80;Fd++){if(Fd<16)fd[Fd]=vd[Ad+Fd]|0;else{var jd=fd[Fd-3]^fd[Fd-8]^fd[Fd-14]^fd[Fd-16];fd[Fd]=jd<<1|jd>>>31}var qd=(Od<<5|Od>>>27)+Ud+fd[Fd];Fd<20?qd+=(kd&Ld|~kd&Gd)+1518500249:Fd<40?qd+=(kd^Ld^Gd)+1859775393:Fd<60?qd+=(kd&Ld|kd&Gd|Ld&Gd)-1894007588:qd+=(kd^Ld^Gd)-899497514,Ud=Gd,Gd=Ld,Ld=kd<<30|kd>>>2,kd=Od,Od=qd}Nd[0]=Nd[0]+Od|0,Nd[1]=Nd[1]+kd|0,Nd[2]=Nd[2]+Ld|0,Nd[3]=Nd[3]+Gd|0,Nd[4]=Nd[4]+Ud|0},_doFinalize:function(){var vd=this._data,Ad=vd.words,Nd=this._nDataBytes*8,Od=vd.sigBytes*8;return Ad[Od>>>5]|=128<<24-Od%32,Ad[(Od+64>>>9<<4)+14]=Math.floor(Nd/4294967296),Ad[(Od+64>>>9<<4)+15]=Nd,vd.sigBytes=Ad.length*4,this._process(),this._hash},clone:function(){var vd=dd.clone.call(this);return vd._hash=this._hash.clone(),vd}});od.SHA1=dd._createHelper(md),od.HmacSHA1=dd._createHmacHelper(md)}(),nd.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(od){var ld=nd,ud=ld.lib,dd=ud.WordArray,pd=ud.Hasher,fd=ld.algo,md=[],vd=[];(function(){function Od(Ud){for(var Fd=od.sqrt(Ud),jd=2;jd<=Fd;jd++)if(!(Ud%jd))return!1;return!0}function kd(Ud){return(Ud-(Ud|0))*4294967296|0}for(var Ld=2,Gd=0;Gd<64;)Od(Ld)&&(Gd<8&&(md[Gd]=kd(od.pow(Ld,1/2))),vd[Gd]=kd(od.pow(Ld,1/3)),Gd++),Ld++})();var Ad=[],Nd=fd.SHA256=pd.extend({_doReset:function(){this._hash=new dd.init(md.slice(0))},_doProcessBlock:function(Od,kd){for(var Ld=this._hash.words,Gd=Ld[0],Ud=Ld[1],Fd=Ld[2],jd=Ld[3],qd=Ld[4],zd=Ld[5],Yd=Ld[6],Jd=Ld[7],yf=0;yf<64;yf++){if(yf<16)Ad[yf]=Od[kd+yf]|0;else{var Xd=Ad[yf-15],pf=(Xd<<25|Xd>>>7)^(Xd<<14|Xd>>>18)^Xd>>>3,mf=Ad[yf-2],Tf=(mf<<15|mf>>>17)^(mf<<13|mf>>>19)^mf>>>10;Ad[yf]=pf+Ad[yf-7]+Tf+Ad[yf-16]}var vf=qd&zd^~qd&Yd,Af=Gd&Ud^Gd&Fd^Ud&Fd,Sf=(Gd<<30|Gd>>>2)^(Gd<<19|Gd>>>13)^(Gd<<10|Gd>>>22),Df=(qd<<26|qd>>>6)^(qd<<21|qd>>>11)^(qd<<7|qd>>>25),If=Jd+Df+vf+vd[yf]+Ad[yf],Gf=Sf+Af;Jd=Yd,Yd=zd,zd=qd,qd=jd+If|0,jd=Fd,Fd=Ud,Ud=Gd,Gd=If+Gf|0}Ld[0]=Ld[0]+Gd|0,Ld[1]=Ld[1]+Ud|0,Ld[2]=Ld[2]+Fd|0,Ld[3]=Ld[3]+jd|0,Ld[4]=Ld[4]+qd|0,Ld[5]=Ld[5]+zd|0,Ld[6]=Ld[6]+Yd|0,Ld[7]=Ld[7]+Jd|0},_doFinalize:function(){var Od=this._data,kd=Od.words,Ld=this._nDataBytes*8,Gd=Od.sigBytes*8;return kd[Gd>>>5]|=128<<24-Gd%32,kd[(Gd+64>>>9<<4)+14]=od.floor(Ld/4294967296),kd[(Gd+64>>>9<<4)+15]=Ld,Od.sigBytes=kd.length*4,this._process(),this._hash},clone:function(){var Od=pd.clone.call(this);return Od._hash=this._hash.clone(),Od}});ld.SHA256=pd._createHelper(Nd),ld.HmacSHA256=pd._createHmacHelper(Nd)}(Math),nd.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireSha256())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=od.algo,pd=dd.SHA256,fd=dd.SHA224=pd.extend({_doReset:function(){this._hash=new ud.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var md=pd._doFinalize.call(this);return md.sigBytes-=4,md}});od.SHA224=pd._createHelper(fd),od.HmacSHA224=pd._createHmacHelper(fd)}(),nd.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireX64Core())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.Hasher,dd=od.x64,pd=dd.Word,fd=dd.WordArray,md=od.algo;function vd(){return pd.create.apply(pd,arguments)}var Ad=[vd(1116352408,3609767458),vd(1899447441,602891725),vd(3049323471,3964484399),vd(3921009573,2173295548),vd(961987163,4081628472),vd(1508970993,3053834265),vd(2453635748,2937671579),vd(2870763221,3664609560),vd(3624381080,2734883394),vd(310598401,1164996542),vd(607225278,1323610764),vd(1426881987,3590304994),vd(1925078388,4068182383),vd(2162078206,991336113),vd(2614888103,633803317),vd(3248222580,3479774868),vd(3835390401,2666613458),vd(4022224774,944711139),vd(264347078,2341262773),vd(604807628,2007800933),vd(770255983,1495990901),vd(1249150122,1856431235),vd(1555081692,3175218132),vd(1996064986,2198950837),vd(2554220882,3999719339),vd(2821834349,766784016),vd(2952996808,2566594879),vd(3210313671,3203337956),vd(3336571891,1034457026),vd(3584528711,2466948901),vd(113926993,3758326383),vd(338241895,168717936),vd(666307205,1188179964),vd(773529912,1546045734),vd(1294757372,1522805485),vd(1396182291,2643833823),vd(1695183700,2343527390),vd(1986661051,1014477480),vd(2177026350,1206759142),vd(2456956037,344077627),vd(2730485921,1290863460),vd(2820302411,3158454273),vd(3259730800,3505952657),vd(3345764771,106217008),vd(3516065817,3606008344),vd(3600352804,1432725776),vd(4094571909,1467031594),vd(275423344,851169720),vd(430227734,3100823752),vd(506948616,1363258195),vd(659060556,3750685593),vd(883997877,3785050280),vd(958139571,3318307427),vd(1322822218,3812723403),vd(1537002063,2003034995),vd(1747873779,3602036899),vd(1955562222,1575990012),vd(2024104815,1125592928),vd(2227730452,2716904306),vd(2361852424,442776044),vd(2428436474,593698344),vd(2756734187,3733110249),vd(3204031479,2999351573),vd(3329325298,3815920427),vd(3391569614,3928383900),vd(3515267271,566280711),vd(3940187606,3454069534),vd(4118630271,4000239992),vd(116418474,1914138554),vd(174292421,2731055270),vd(289380356,3203993006),vd(460393269,320620315),vd(685471733,587496836),vd(852142971,1086792851),vd(1017036298,365543100),vd(1126000580,2618297676),vd(1288033470,3409855158),vd(1501505948,4234509866),vd(1607167915,987167468),vd(1816402316,1246189591)],Nd=[];(function(){for(var kd=0;kd<80;kd++)Nd[kd]=vd()})();var Od=md.SHA512=ud.extend({_doReset:function(){this._hash=new fd.init([new pd.init(1779033703,4089235720),new pd.init(3144134277,2227873595),new pd.init(1013904242,4271175723),new pd.init(2773480762,1595750129),new pd.init(1359893119,2917565137),new pd.init(2600822924,725511199),new pd.init(528734635,4215389547),new pd.init(1541459225,327033209)])},_doProcessBlock:function(kd,Ld){for(var Gd=this._hash.words,Ud=Gd[0],Fd=Gd[1],jd=Gd[2],qd=Gd[3],zd=Gd[4],Yd=Gd[5],Jd=Gd[6],yf=Gd[7],Xd=Ud.high,pf=Ud.low,mf=Fd.high,Tf=Fd.low,vf=jd.high,Af=jd.low,Sf=qd.high,Df=qd.low,If=zd.high,Gf=zd.low,Jf=Yd.high,ih=Yd.low,uh=Jd.high,qf=Jd.low,Pf=yf.high,Wf=yf.low,Yf=Xd,Kf=pf,Cf=mf,xf=Tf,Xf=vf,sh=Af,Ah=Sf,dh=Df,Rf=If,gh=Gf,Bh=Jf,th=ih,$f=uh,Uf=qf,Zf=Pf,kh=Wf,Wh=0;Wh<80;Wh++){var xh,pm,Jh=Nd[Wh];if(Wh<16)pm=Jh.high=kd[Ld+Wh*2]|0,xh=Jh.low=kd[Ld+Wh*2+1]|0;else{var Om=Nd[Wh-15],Nm=Om.high,mm=Om.low,Pm=(Nm>>>1|mm<<31)^(Nm>>>8|mm<<24)^Nm>>>7,Vm=(mm>>>1|Nm<<31)^(mm>>>8|Nm<<24)^(mm>>>7|Nm<<25),yh=Nd[Wh-2],jf=yh.high,Lf=yh.low,_h=(jf>>>19|Lf<<13)^(jf<<3|Lf>>>29)^jf>>>6,Oh=(Lf>>>19|jf<<13)^(Lf<<3|jf>>>29)^(Lf>>>6|jf<<26),um=Nd[Wh-7],gm=um.high,Lm=um.low,Jm=Nd[Wh-16],Gm=Jm.high,Eg=Jm.low;xh=Vm+Lm,pm=Pm+gm+(xh>>>0>>0?1:0),xh=xh+Oh,pm=pm+_h+(xh>>>0>>0?1:0),xh=xh+Eg,pm=pm+Gm+(xh>>>0>>0?1:0),Jh.high=pm,Jh.low=xh}var og=Rf&Bh^~Rf&$f,Cg=gh&th^~gh&Uf,jg=Yf&Cf^Yf&Xf^Cf&Xf,p_=Kf&xf^Kf&sh^xf&sh,Yg=(Yf>>>28|Kf<<4)^(Yf<<30|Kf>>>2)^(Yf<<25|Kf>>>7),i_=(Kf>>>28|Yf<<4)^(Kf<<30|Yf>>>2)^(Kf<<25|Yf>>>7),$g=(Rf>>>14|gh<<18)^(Rf>>>18|gh<<14)^(Rf<<23|gh>>>9),C_=(gh>>>14|Rf<<18)^(gh>>>18|Rf<<14)^(gh<<23|Rf>>>9),o_=Ad[Wh],M_=o_.high,B_=o_.low,h_=kh+C_,b_=Zf+$g+(h_>>>0>>0?1:0),h_=h_+Cg,b_=b_+og+(h_>>>0>>0?1:0),h_=h_+B_,b_=b_+M_+(h_>>>0>>0?1:0),h_=h_+xh,b_=b_+pm+(h_>>>0>>0?1:0),lg=i_+p_,vb=Yg+jg+(lg>>>0>>0?1:0);Zf=$f,kh=Uf,$f=Bh,Uf=th,Bh=Rf,th=gh,gh=dh+h_|0,Rf=Ah+b_+(gh>>>0>>0?1:0)|0,Ah=Xf,dh=sh,Xf=Cf,sh=xf,Cf=Yf,xf=Kf,Kf=h_+lg|0,Yf=b_+vb+(Kf>>>0>>0?1:0)|0}pf=Ud.low=pf+Kf,Ud.high=Xd+Yf+(pf>>>0>>0?1:0),Tf=Fd.low=Tf+xf,Fd.high=mf+Cf+(Tf>>>0>>0?1:0),Af=jd.low=Af+sh,jd.high=vf+Xf+(Af>>>0>>0?1:0),Df=qd.low=Df+dh,qd.high=Sf+Ah+(Df>>>0>>0?1:0),Gf=zd.low=Gf+gh,zd.high=If+Rf+(Gf>>>0>>0?1:0),ih=Yd.low=ih+th,Yd.high=Jf+Bh+(ih>>>0>>0?1:0),qf=Jd.low=qf+Uf,Jd.high=uh+$f+(qf>>>0>>0?1:0),Wf=yf.low=Wf+kh,yf.high=Pf+Zf+(Wf>>>0>>0?1:0)},_doFinalize:function(){var kd=this._data,Ld=kd.words,Gd=this._nDataBytes*8,Ud=kd.sigBytes*8;Ld[Ud>>>5]|=128<<24-Ud%32,Ld[(Ud+128>>>10<<5)+30]=Math.floor(Gd/4294967296),Ld[(Ud+128>>>10<<5)+31]=Gd,kd.sigBytes=Ld.length*4,this._process();var Fd=this._hash.toX32();return Fd},clone:function(){var kd=ud.clone.call(this);return kd._hash=this._hash.clone(),kd},blockSize:1024/32});od.SHA512=ud._createHelper(Od),od.HmacSHA512=ud._createHmacHelper(Od)}(),nd.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.x64,ud=ld.Word,dd=ld.WordArray,pd=od.algo,fd=pd.SHA512,md=pd.SHA384=fd.extend({_doReset:function(){this._hash=new dd.init([new ud.init(3418070365,3238371032),new ud.init(1654270250,914150663),new ud.init(2438529370,812702999),new ud.init(355462360,4144912697),new ud.init(1731405415,4290775857),new ud.init(2394180231,1750603025),new ud.init(3675008525,1694076839),new ud.init(1203062813,3204075428)])},_doFinalize:function(){var vd=fd._doFinalize.call(this);return vd.sigBytes-=16,vd}});od.SHA384=fd._createHelper(md),od.HmacSHA384=fd._createHmacHelper(md)}(),nd.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireX64Core())})(commonjsGlobal,function(nd){return function(od){var ld=nd,ud=ld.lib,dd=ud.WordArray,pd=ud.Hasher,fd=ld.x64,md=fd.Word,vd=ld.algo,Ad=[],Nd=[],Od=[];(function(){for(var Gd=1,Ud=0,Fd=0;Fd<24;Fd++){Ad[Gd+5*Ud]=(Fd+1)*(Fd+2)/2%64;var jd=Ud%5,qd=(2*Gd+3*Ud)%5;Gd=jd,Ud=qd}for(var Gd=0;Gd<5;Gd++)for(var Ud=0;Ud<5;Ud++)Nd[Gd+5*Ud]=Ud+(2*Gd+3*Ud)%5*5;for(var zd=1,Yd=0;Yd<24;Yd++){for(var Jd=0,yf=0,Xd=0;Xd<7;Xd++){if(zd&1){var pf=(1<>>24)&16711935|(zd<<24|zd>>>8)&4278255360,Yd=(Yd<<8|Yd>>>24)&16711935|(Yd<<24|Yd>>>8)&4278255360;var Jd=Fd[qd];Jd.high^=Yd,Jd.low^=zd}for(var yf=0;yf<24;yf++){for(var Xd=0;Xd<5;Xd++){for(var pf=0,mf=0,Tf=0;Tf<5;Tf++){var Jd=Fd[Xd+5*Tf];pf^=Jd.high,mf^=Jd.low}var vf=kd[Xd];vf.high=pf,vf.low=mf}for(var Xd=0;Xd<5;Xd++)for(var Af=kd[(Xd+4)%5],Sf=kd[(Xd+1)%5],Df=Sf.high,If=Sf.low,pf=Af.high^(Df<<1|If>>>31),mf=Af.low^(If<<1|Df>>>31),Tf=0;Tf<5;Tf++){var Jd=Fd[Xd+5*Tf];Jd.high^=pf,Jd.low^=mf}for(var Gf=1;Gf<25;Gf++){var pf,mf,Jd=Fd[Gf],Jf=Jd.high,ih=Jd.low,uh=Ad[Gf];uh<32?(pf=Jf<>>32-uh,mf=ih<>>32-uh):(pf=ih<>>64-uh,mf=Jf<>>64-uh);var qf=kd[Nd[Gf]];qf.high=pf,qf.low=mf}var Pf=kd[0],Wf=Fd[0];Pf.high=Wf.high,Pf.low=Wf.low;for(var Xd=0;Xd<5;Xd++)for(var Tf=0;Tf<5;Tf++){var Gf=Xd+5*Tf,Jd=Fd[Gf],Yf=kd[Gf],Kf=kd[(Xd+1)%5+5*Tf],Cf=kd[(Xd+2)%5+5*Tf];Jd.high=Yf.high^~Kf.high&Cf.high,Jd.low=Yf.low^~Kf.low&Cf.low}var Jd=Fd[0],xf=Od[yf];Jd.high^=xf.high,Jd.low^=xf.low}},_doFinalize:function(){var Gd=this._data,Ud=Gd.words;this._nDataBytes*8;var Fd=Gd.sigBytes*8,jd=this.blockSize*32;Ud[Fd>>>5]|=1<<24-Fd%32,Ud[(od.ceil((Fd+1)/jd)*jd>>>5)-1]|=128,Gd.sigBytes=Ud.length*4,this._process();for(var qd=this._state,zd=this.cfg.outputLength/8,Yd=zd/8,Jd=[],yf=0;yf>>24)&16711935|(pf<<24|pf>>>8)&4278255360,mf=(mf<<8|mf>>>24)&16711935|(mf<<24|mf>>>8)&4278255360,Jd.push(mf),Jd.push(pf)}return new dd.init(Jd,zd)},clone:function(){for(var Gd=pd.clone.call(this),Ud=Gd._state=this._state.slice(0),Fd=0;Fd<25;Fd++)Ud[Fd]=Ud[Fd].clone();return Gd}});ld.SHA3=pd._createHelper(Ld),ld.HmacSHA3=pd._createHmacHelper(Ld)}(Math),nd.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){/** @preserve +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}pd.prototype.build=function(Ad){return this.options.preserveOrder?ud(Ad,this.options):(Array.isArray(Ad)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ad={[this.options.arrayNodeName]:Ad}),this.j2x(Ad,0).val)},pd.prototype.j2x=function(Ad,Nd){let Od="",kd="";for(let Ld in Ad)if(Object.prototype.hasOwnProperty.call(Ad,Ld))if(typeof Ad[Ld]>"u")this.isAttribute(Ld)&&(kd+="");else if(Ad[Ld]===null)this.isAttribute(Ld)?kd+="":Ld[0]==="?"?kd+=this.indentate(Nd)+"<"+Ld+"?"+this.tagEndChar:kd+=this.indentate(Nd)+"<"+Ld+"/"+this.tagEndChar;else if(Ad[Ld]instanceof Date)kd+=this.buildTextValNode(Ad[Ld],Ld,"",Nd);else if(typeof Ad[Ld]!="object"){const Gd=this.isAttribute(Ld);if(Gd)Od+=this.buildAttrPairStr(Gd,""+Ad[Ld]);else if(Ld===this.options.textNodeName){let jd=this.options.tagValueProcessor(Ld,""+Ad[Ld]);kd+=this.replaceEntitiesValue(jd)}else kd+=this.buildTextValNode(Ad[Ld],Ld,"",Nd)}else if(Array.isArray(Ad[Ld])){const Gd=Ad[Ld].length;let jd="";for(let Fd=0;Fd"u"||(Ud===null?Ld[0]==="?"?kd+=this.indentate(Nd)+"<"+Ld+"?"+this.tagEndChar:kd+=this.indentate(Nd)+"<"+Ld+"/"+this.tagEndChar:typeof Ud=="object"?this.options.oneListGroup?jd+=this.j2x(Ud,Nd+1).val:jd+=this.processTextOrObjNode(Ud,Ld,Nd):jd+=this.buildTextValNode(Ud,Ld,"",Nd))}this.options.oneListGroup&&(jd=this.buildObjectNode(jd,Ld,"",Nd)),kd+=jd}else if(this.options.attributesGroupName&&Ld===this.options.attributesGroupName){const Gd=Object.keys(Ad[Ld]),jd=Gd.length;for(let Fd=0;Fd"+Ad+Ld:this.options.commentPropName!==!1&&Nd===this.options.commentPropName&&Gd.length===0?this.indentate(kd)+``+this.newLine:this.indentate(kd)+"<"+Nd+Od+Gd+this.tagEndChar+Ad+this.indentate(kd)+Ld}},pd.prototype.closeTag=function(Ad){let Nd="";return this.options.unpairedTags.indexOf(Ad)!==-1?this.options.suppressUnpairedNode||(Nd="/"):this.options.suppressEmptyNode?Nd="/":Nd=`>`+this.newLine;if(this.options.commentPropName!==!1&&Nd===this.options.commentPropName)return this.indentate(kd)+``+this.newLine;if(Nd[0]==="?")return this.indentate(kd)+"<"+Nd+Od+"?"+this.tagEndChar;{let Ld=this.options.tagValueProcessor(Nd,Ad);return Ld=this.replaceEntitiesValue(Ld),Ld===""?this.indentate(kd)+"<"+Nd+Od+this.closeTag(Nd)+this.tagEndChar:this.indentate(kd)+"<"+Nd+Od+">"+Ld+"0&&this.options.processEntities)for(let Nd=0;Nd0&&(Od=ld),dd(Ad,Nd,"",Od)}function dd(Ad,Nd,Od,kd){let Ld="",Gd=!1;for(let jd=0;jd`,Gd=!1;continue}else if(Ud===Nd.commentPropName){Ld+=kd+``,Gd=!0;continue}else if(Ud[0]==="?"){const Xd=fd(Fd[":@"],Nd),pf=Ud==="?xml"?"":kd;let mf=Fd[Ud][0][Nd.textNodeName];mf=mf.length!==0?" "+mf:"",Ld+=pf+`<${Ud}${mf}${Xd}?>`,Gd=!0;continue}let zd=kd;zd!==""&&(zd+=Nd.indentBy);const Wd=fd(Fd[":@"],Nd),Jd=kd+`<${Ud}${Wd}`,_f=dd(Fd[Ud],Nd,qd,zd);Nd.unpairedTags.indexOf(Ud)!==-1?Nd.suppressUnpairedNode?Ld+=Jd+">":Ld+=Jd+"/>":(!_f||_f.length===0)&&Nd.suppressEmptyNode?Ld+=Jd+"/>":_f&&_f.endsWith(">")?Ld+=Jd+`>${_f}${kd}`:(Ld+=Jd+">",_f&&kd!==""&&(_f.includes("/>")||_f.includes("`),Gd=!0}return Ld}function pd(Ad){const Nd=Object.keys(Ad);for(let Od=0;Od0&&Nd.processEntities)for(let Od=0;Od"){if(Ud?kd[Ld-1]==="-"&&kd[Ld-2]==="-"&&(Ud=!1,jd--):jd--,jd===0)break}else kd[Ld]==="["?Fd=!0:qd+=kd[Ld];if(jd!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Gd,i:Ld}}function pd(kd,Ld){let Gd="";for(;Ld!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(dd,pd,fd){return dd}},ud=function(dd){return Object.assign({},ld,dd)};od.buildOptions=ud,od.defaultOptions=ld},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(nd,od,ld){const ud=ld("./node_modules/fast-xml-parser/src/util.js"),dd=ld("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),pd=ld("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),fd=ld("./node_modules/strnum/strnum.js");class md{constructor(pf){this.options=pf,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(mf,Sf)=>String.fromCharCode(Number.parseInt(Sf,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(mf,Sf)=>String.fromCharCode(Number.parseInt(Sf,16))}},this.addExternalEntities=vd,this.parseXml=Ld,this.parseTextData=Ad,this.resolveNameSpace=Nd,this.buildAttributesMap=kd,this.isItStopNode=Ud,this.replaceEntitiesValue=jd,this.readStopNodeData=Jd,this.saveTextToParentTag=Fd,this.addChild=Gd}}function vd(Xd){const pf=Object.keys(Xd);for(let mf=0;mf0)){Ef||(Xd=this.replaceEntitiesValue(Xd));const Nf=this.options.tagValueProcessor(pf,Xd,mf,Tf,Af);return Nf==null?Xd:typeof Nf!=typeof Xd||Nf!==Xd?Nf:this.options.trimValues?_f(Xd,this.options.parseTagValue,this.options.numberParseOptions):Xd.trim()===Xd?_f(Xd,this.options.parseTagValue,this.options.numberParseOptions):Xd}}function Nd(Xd){if(this.options.removeNSPrefix){const pf=Xd.split(":"),mf=Xd.charAt(0)==="/"?"/":"";if(pf[0]==="xmlns")return"";pf.length===2&&(Xd=mf+pf[1])}return Xd}const Od=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function kd(Xd,pf,mf){if(!this.options.ignoreAttributes&&typeof Xd=="string"){const Sf=ud.getAllMatches(Xd,Od),Tf=Sf.length,Af={};for(let Ef=0;Ef",Af,"Closing Tag is not closed.");let If=Xd.substring(Af+2,Nf).trim();if(this.options.removeNSPrefix){const Xf=If.indexOf(":");Xf!==-1&&(If=If.substr(Xf+1))}this.options.transformTagName&&(If=this.options.transformTagName(If)),mf&&(Sf=this.saveTextToParentTag(Sf,mf,Tf));const Gf=Tf.substring(Tf.lastIndexOf(".")+1);if(If&&this.options.unpairedTags.indexOf(If)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let Qf=0;Gf&&this.options.unpairedTags.indexOf(Gf)!==-1?(Qf=Tf.lastIndexOf(".",Tf.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Qf=Tf.lastIndexOf("."),Tf=Tf.substring(0,Qf),mf=this.tagsNodeStack.pop(),Sf="",Af=Nf}else if(Xd[Af+1]==="?"){let Nf=Wd(Xd,Af,!1,"?>");if(!Nf)throw new Error("Pi Tag is not closed.");if(Sf=this.saveTextToParentTag(Sf,mf,Tf),!(this.options.ignoreDeclaration&&Nf.tagName==="?xml"||this.options.ignorePiTags)){const If=new dd(Nf.tagName);If.add(this.options.textNodeName,""),Nf.tagName!==Nf.tagExp&&Nf.attrExpPresent&&(If[":@"]=this.buildAttributesMap(Nf.tagExp,Tf,Nf.tagName)),this.addChild(mf,If,Tf)}Af=Nf.closeIndex+1}else if(Xd.substr(Af+1,3)==="!--"){const Nf=zd(Xd,"-->",Af+4,"Comment is not closed.");if(this.options.commentPropName){const If=Xd.substring(Af+4,Nf-2);Sf=this.saveTextToParentTag(Sf,mf,Tf),mf.add(this.options.commentPropName,[{[this.options.textNodeName]:If}])}Af=Nf}else if(Xd.substr(Af+1,2)==="!D"){const Nf=pd(Xd,Af);this.docTypeEntities=Nf.entities,Af=Nf.i}else if(Xd.substr(Af+1,2)==="!["){const Nf=zd(Xd,"]]>",Af,"CDATA is not closed.")-2,If=Xd.substring(Af+9,Nf);Sf=this.saveTextToParentTag(Sf,mf,Tf);let Gf=this.parseTextData(If,mf.tagname,Tf,!0,!1,!0,!0);Gf==null&&(Gf=""),this.options.cdataPropName?mf.add(this.options.cdataPropName,[{[this.options.textNodeName]:If}]):mf.add(this.options.textNodeName,Gf),Af=Nf+2}else{let Nf=Wd(Xd,Af,this.options.removeNSPrefix),If=Nf.tagName;const Gf=Nf.rawTagName;let Qf=Nf.tagExp,Xf=Nf.attrExpPresent,ph=Nf.closeIndex;this.options.transformTagName&&(If=this.options.transformTagName(If)),mf&&Sf&&mf.tagname!=="!xml"&&(Sf=this.saveTextToParentTag(Sf,mf,Tf,!1));const qf=mf;if(qf&&this.options.unpairedTags.indexOf(qf.tagname)!==-1&&(mf=this.tagsNodeStack.pop(),Tf=Tf.substring(0,Tf.lastIndexOf("."))),If!==pf.tagname&&(Tf+=Tf?"."+If:If),this.isItStopNode(this.options.stopNodes,Tf,If)){let Lf="";if(Qf.length>0&&Qf.lastIndexOf("/")===Qf.length-1)If[If.length-1]==="/"?(If=If.substr(0,If.length-1),Tf=Tf.substr(0,Tf.length-1),Qf=If):Qf=Qf.substr(0,Qf.length-1),Af=Nf.closeIndex;else if(this.options.unpairedTags.indexOf(If)!==-1)Af=Nf.closeIndex;else{const Jf=this.readStopNodeData(Xd,Gf,ph+1);if(!Jf)throw new Error(`Unexpected end of ${Gf}`);Af=Jf.i,Lf=Jf.tagContent}const Wf=new dd(If);If!==Qf&&Xf&&(Wf[":@"]=this.buildAttributesMap(Qf,Tf,If)),Lf&&(Lf=this.parseTextData(Lf,If,Tf,!0,Xf,!0,!0)),Tf=Tf.substr(0,Tf.lastIndexOf(".")),Wf.add(this.options.textNodeName,Lf),this.addChild(mf,Wf,Tf)}else{if(Qf.length>0&&Qf.lastIndexOf("/")===Qf.length-1){If[If.length-1]==="/"?(If=If.substr(0,If.length-1),Tf=Tf.substr(0,Tf.length-1),Qf=If):Qf=Qf.substr(0,Qf.length-1),this.options.transformTagName&&(If=this.options.transformTagName(If));const Lf=new dd(If);If!==Qf&&Xf&&(Lf[":@"]=this.buildAttributesMap(Qf,Tf,If)),this.addChild(mf,Lf,Tf),Tf=Tf.substr(0,Tf.lastIndexOf("."))}else{const Lf=new dd(If);this.tagsNodeStack.push(mf),If!==Qf&&Xf&&(Lf[":@"]=this.buildAttributesMap(Qf,Tf,If)),this.addChild(mf,Lf,Tf),mf=Lf}Sf="",Af=ph}}else Sf+=Xd[Af];return pf.child};function Gd(Xd,pf,mf){const Sf=this.options.updateTag(pf.tagname,mf,pf[":@"]);Sf===!1||(typeof Sf=="string"&&(pf.tagname=Sf),Xd.addChild(pf))}const jd=function(Xd){if(this.options.processEntities){for(let pf in this.docTypeEntities){const mf=this.docTypeEntities[pf];Xd=Xd.replace(mf.regx,mf.val)}for(let pf in this.lastEntities){const mf=this.lastEntities[pf];Xd=Xd.replace(mf.regex,mf.val)}if(this.options.htmlEntities)for(let pf in this.htmlEntities){const mf=this.htmlEntities[pf];Xd=Xd.replace(mf.regex,mf.val)}Xd=Xd.replace(this.ampEntity.regex,this.ampEntity.val)}return Xd};function Fd(Xd,pf,mf,Sf){return Xd&&(Sf===void 0&&(Sf=Object.keys(pf.child).length===0),Xd=this.parseTextData(Xd,pf.tagname,mf,!1,pf[":@"]?Object.keys(pf[":@"]).length!==0:!1,Sf),Xd!==void 0&&Xd!==""&&pf.add(this.options.textNodeName,Xd),Xd=""),Xd}function Ud(Xd,pf,mf){const Sf="*."+mf;for(const Tf in Xd){const Af=Xd[Tf];if(Sf===Af||pf===Af)return!0}return!1}function qd(Xd,pf,mf=">"){let Sf,Tf="";for(let Af=pf;Af",mf,`${pf} is not closed`);if(Xd.substring(mf+2,Af).trim()===pf&&(Tf--,Tf===0))return{tagContent:Xd.substring(Sf,mf),i:Af};mf=Af}else if(Xd[mf+1]==="?")mf=zd(Xd,"?>",mf+1,"StopNode is not closed.");else if(Xd.substr(mf+1,3)==="!--")mf=zd(Xd,"-->",mf+3,"StopNode is not closed.");else if(Xd.substr(mf+1,2)==="![")mf=zd(Xd,"]]>",mf,"StopNode is not closed.")-2;else{const Af=Wd(Xd,mf,">");Af&&((Af&&Af.tagName)===pf&&Af.tagExp[Af.tagExp.length-1]!=="/"&&Tf++,mf=Af.closeIndex)}}function _f(Xd,pf,mf){if(pf&&typeof Xd=="string"){const Sf=Xd.trim();return Sf==="true"?!0:Sf==="false"?!1:fd(Xd,mf)}else return ud.isExist(Xd)?Xd:""}nd.exports=md},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(nd,od,ld){const{buildOptions:ud}=ld("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),dd=ld("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:pd}=ld("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),fd=ld("./node_modules/fast-xml-parser/src/validator.js");class md{constructor(Ad){this.externalEntities={},this.options=ud(Ad)}parse(Ad,Nd){if(typeof Ad!="string")if(Ad.toString)Ad=Ad.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(Nd){Nd===!0&&(Nd={});const Ld=fd.validate(Ad,Nd);if(Ld!==!0)throw Error(`${Ld.err.msg}:${Ld.err.line}:${Ld.err.col}`)}const Od=new dd(this.options);Od.addExternalEntities(this.externalEntities);const kd=Od.parseXml(Ad);return this.options.preserveOrder||kd===void 0?kd:pd(kd,this.options)}addEntity(Ad,Nd){if(Nd.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(Ad.indexOf("&")!==-1||Ad.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(Nd==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[Ad]=Nd}}nd.exports=md},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(nd,od,ld){function ud(vd,Ad){return dd(vd,Ad)}function dd(vd,Ad,Nd){let Od;const kd={};for(let Ld=0;Ld0&&(kd[Ad.textNodeName]=Od):Od!==void 0&&(kd[Ad.textNodeName]=Od),kd}function pd(vd){const Ad=Object.keys(vd);for(let Nd=0;Nd0?this.child.push({[pd.tagname]:pd.child,":@":pd[":@"]}):this.child.push({[pd.tagname]:pd.child})}}nd.exports=ud},"./node_modules/process/browser.js":function(nd,od){var ld=nd.exports={},ud,dd;function pd(){throw new Error("setTimeout has not been defined")}function fd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ud=setTimeout:ud=pd}catch{ud=pd}try{typeof clearTimeout=="function"?dd=clearTimeout:dd=fd}catch{dd=fd}})();function md(Ud){if(ud===setTimeout)return setTimeout(Ud,0);if((ud===pd||!ud)&&setTimeout)return ud=setTimeout,setTimeout(Ud,0);try{return ud(Ud,0)}catch{try{return ud.call(null,Ud,0)}catch{return ud.call(this,Ud,0)}}}function vd(Ud){if(dd===clearTimeout)return clearTimeout(Ud);if((dd===fd||!dd)&&clearTimeout)return dd=clearTimeout,clearTimeout(Ud);try{return dd(Ud)}catch{try{return dd.call(null,Ud)}catch{return dd.call(this,Ud)}}}var Ad=[],Nd=!1,Od,kd=-1;function Ld(){!Nd||!Od||(Nd=!1,Od.length?Ad=Od.concat(Ad):kd=-1,Ad.length&&Gd())}function Gd(){if(!Nd){var Ud=md(Ld);Nd=!0;for(var qd=Ad.length;qd;){for(Od=Ad,Ad=[];++kd1)for(var zd=1;zd0&&Od&&Ad[2]!==".")return md;if(!vd.leadingZeros&&kd.length>0&&!Od&&Ad[1]!==".")return md;{const jd=Number(Ad),Fd=""+jd;return Fd.search(/[eE]/)!==-1||Gd?vd.eNotation?jd:md:Ad.indexOf(".")!==-1?Fd==="0"&&Ld===""||Fd===Ld||Od&&Fd==="-"+Ld?jd:md:kd?Ld===Fd||Od+Ld===Fd?jd:md:Ad===Fd||Ad===Od+Fd?jd:md}}else return md}}function fd(md){return md&&md.indexOf(".")!==-1&&(md=md.replace(/0+$/,""),md==="."?md="0":md[0]==="."?md="0"+md:md[md.length-1]==="."&&(md=md.substr(0,md.length-1))),md}nd.exports=pd},"./node_modules/webpack/buildin/amd-options.js":function(nd,od){(function(ld){nd.exports=ld}).call(this,{})},"./node_modules/webpack/buildin/module.js":function(nd,od){nd.exports=function(ld){return ld.webpackPolyfill||(ld.deprecate=function(){},ld.paths=[],ld.children||(ld.children=[]),Object.defineProperty(ld,"loaded",{enumerable:!0,get:function(){return ld.l}}),Object.defineProperty(ld,"id",{enumerable:!0,get:function(){return ld.i}}),ld.webpackPolyfill=1),ld}},"./package.json":function(nd){nd.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.8.6","description":"JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"fast-xml-parser":"^4.4.0"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/typeof.js"),dd=ld("./src/session.js"),pd=ld("./src/async.js"),fd=ld("./src/event.js").EventProxy,md=ld("./src/util.js"),vd=ld("./src/tracker.js");function Ad(Xd,pf){var mf=this,Sf=new fd,Tf=Xd.TaskId,Af=Xd.Bucket,Ef=Xd.Region,Nf=Xd.Key,If=Xd.Body,Gf=Xd.ChunkSize||Xd.SliceSize||mf.options.ChunkSize,Qf=Xd.AsyncLimit,Xf=Xd.StorageClass,ph=Xd.ServerSideEncryption,qf,Lf,Wf=Xd.onHashProgress,Jf=Xd.tracker;Jf&&Jf.setParams({chunkSize:Gf}),Sf.on("error",function(Kf){if(mf._isRunningTask(Tf))return Xd.UploadData.UploadId&&dd.removeUsing(Xd.UploadData.UploadId),Kf.UploadId=Xd.UploadData.UploadId||"",pf(Kf)}),Sf.on("upload_complete",function(Kf){var Cf=md.extend({UploadId:Xd.UploadData.UploadId||""},Kf);pf(null,Cf)}),Sf.on("upload_slice_complete",function(Kf){var Cf={};md.each(Xd.Headers,function(xf,Yf){var dh=Yf.toLowerCase();(dh.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(dh))&&(Cf[Yf]=xf)}),jd.call(mf,{Bucket:Af,Region:Ef,Key:Nf,UploadId:Kf.UploadId,SliceList:Kf.SliceList,Headers:Cf,tracker:Jf},function(xf,Yf){if(mf._isRunningTask(Tf)){if(dd.removeUsing(Kf.UploadId),xf)return Lf(null,!0),Sf.emit("error",xf);dd.removeUploadId.call(mf,Kf.UploadId),Lf({loaded:qf,total:qf},!0),Sf.emit("upload_complete",Yf)}})}),Sf.on("get_upload_data_finish",function(Kf){var Cf=dd.getFileId(If,Xd.ChunkSize,Af,Nf);Cf&&dd.saveUploadId.call(mf,Cf,Kf.UploadId,mf.options.UploadIdCacheLimit),dd.setUsing(Kf.UploadId),Lf(null,!0),Ld.call(mf,{TaskId:Tf,Bucket:Af,Region:Ef,Key:Nf,Body:If,FileSize:qf,SliceSize:Gf,AsyncLimit:Qf,ServerSideEncryption:ph,UploadData:Kf,Headers:Xd.Headers,onProgress:Lf,tracker:Jf},function(xf,Yf){if(mf._isRunningTask(Tf)){if(xf)return Lf(null,!0),Sf.emit("error",xf);Sf.emit("upload_slice_complete",Yf)}})}),Sf.on("get_file_size_finish",function(){if(Lf=md.throttleOnProgress.call(mf,qf,Xd.onProgress),Xd.UploadData.UploadId)Sf.emit("get_upload_data_finish",Xd.UploadData);else{var Kf=md.extend({TaskId:Tf,Bucket:Af,Region:Ef,Key:Nf,Headers:Xd.Headers,StorageClass:Xf,Body:If,FileSize:qf,SliceSize:Gf,onHashProgress:Wf,tracker:Jf},Xd);Nd.call(mf,Kf,function(Cf,xf){if(mf._isRunningTask(Tf)){if(Cf)return Sf.emit("error",Cf);Xd.UploadData.UploadId=xf.UploadId,Xd.UploadData.PartList=xf.PartList,Sf.emit("get_upload_data_finish",Xd.UploadData)}})}}),qf=Xd.ContentLength,delete Xd.ContentLength,!Xd.Headers&&(Xd.Headers={}),md.each(Xd.Headers,function(Kf,Cf){Cf.toLowerCase()==="content-length"&&delete Xd.Headers[Cf]}),function(){for(var Kf=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],Cf=1024*1024,xf=0;xfXf)return xf(null,!1);if(Yf>1){var dh=Math.max(Cf[0].Size,Cf[1].Size);if(dh!==Qf)return xf(null,!1)}var Rh=function th(Bf){if(Bf=xf.length){Jf.emit("has_and_check_upload_id",Kf);return}var th=xf[Rh];if(!md.isInArray(Kf,th)){dd.removeUploadId.call(Nf,th),dh(Rh+1);return}if(dd.using[th]){dh(Rh+1);return}kd.call(Nf,{Bucket:Sf,Region:Tf,Key:Af,UploadId:th,tracker:Xd.tracker},function(Bf,Sh){Nf._isRunningTask(mf)&&(Bf?(dd.removeUploadId.call(Nf,th),dh(Rh+1)):Jf.emit("upload_id_available",{UploadId:th,PartList:Sh.PartList}))})};Yf(0)}),Jf.on("get_remote_upload_id_list",function(){Od.call(Nf,{Bucket:Sf,Region:Tf,Key:Af,tracker:Xd.tracker},function(Kf,Cf){if(Nf._isRunningTask(mf)){if(Kf)return Jf.emit("error",Kf);var xf=md.filter(Cf.UploadList,function(Rh){return Rh.Key===Af&&(!Ef||Rh.StorageClass.toUpperCase()===Ef.toUpperCase())}).reverse().map(function(Rh){return Rh.UploadId||Rh.UploadID});if(xf.length)Jf.emit("seek_local_avail_upload_id",xf);else{var Yf=dd.getFileId(Xd.Body,Xd.ChunkSize,Sf,Af),dh;Yf&&(dh=dd.getUploadIdList.call(Nf,Yf))&&md.each(dh,function(Rh){dd.removeUploadId.call(Nf,Rh)}),Jf.emit("no_available_upload_id")}}})}),Jf.emit("get_remote_upload_id_list")}function Od(Xd,pf){var mf=this,Sf=[],Tf={Bucket:Xd.Bucket,Region:Xd.Region,Prefix:Xd.Key,calledBySdk:Xd.calledBySdk||"sliceUploadFile",tracker:Xd.tracker},Af=function Ef(){mf.multipartList(Tf,function(Nf,If){if(Nf)return pf(Nf);Sf.push.apply(Sf,If.Upload||[]),If.IsTruncated==="true"?(Tf.KeyMarker=If.NextKeyMarker,Tf.UploadIdMarker=If.NextUploadIdMarker,Ef()):pf(null,{UploadList:Sf})})};Af()}function kd(Xd,pf){var mf=this,Sf=[],Tf={Bucket:Xd.Bucket,Region:Xd.Region,Key:Xd.Key,UploadId:Xd.UploadId,calledBySdk:"sliceUploadFile",tracker:Xd.tracker},Af=function Ef(){mf.multipartListPart(Tf,function(Nf,If){if(Nf)return pf(Nf);Sf.push.apply(Sf,If.Part||[]),If.IsTruncated==="true"?(Tf.PartNumberMarker=If.NextPartNumberMarker,Ef()):pf(null,{PartList:Sf})})};Af()}function Ld(Xd,pf){var mf=this,Sf=Xd.TaskId,Tf=Xd.Bucket,Af=Xd.Region,Ef=Xd.Key,Nf=Xd.UploadData,If=Xd.FileSize,Gf=Xd.SliceSize,Qf=Math.min(Xd.AsyncLimit||mf.options.ChunkParallelLimit||1,256),Xf=Xd.Body,ph=Math.ceil(If/Gf),qf=0,Lf=Xd.ServerSideEncryption,Wf=Xd.Headers,Jf=md.filter(Nf.PartList,function(Cf){return Cf.Uploaded&&(qf+=Cf.PartNumber>=ph&&If%Gf||Gf),!Cf.Uploaded}),Kf=Xd.onProgress;pd.eachLimit(Jf,Qf,function(Cf,xf){if(mf._isRunningTask(Sf)){var Yf=Cf.PartNumber,dh=Math.min(If,Cf.PartNumber*Gf)-(Cf.PartNumber-1)*Gf,Rh=0;Gd.call(mf,{TaskId:Sf,Bucket:Tf,Region:Af,Key:Ef,SliceSize:Gf,FileSize:If,PartNumber:Yf,ServerSideEncryption:Lf,Body:Xf,UploadData:Nf,Headers:Wf,onProgress:function(Bf){qf+=Bf.loaded-Rh,Rh=Bf.loaded,Kf({loaded:qf,total:If})},tracker:Xd.tracker},function(th,Bf){mf._isRunningTask(Sf)&&(!th&&!Bf.ETag&&(th='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),th?qf-=Rh:(qf+=dh-Rh,Cf.ETag=Bf.ETag),Kf({loaded:qf,total:If}),xf(th||null,Bf))})}},function(Cf){if(mf._isRunningTask(Sf)){if(Cf)return pf(Cf);pf(null,{UploadId:Nf.UploadId,SliceList:Nf.PartList})}})}function Gd(Xd,pf){var mf=this,Sf=Xd.TaskId,Tf=Xd.Bucket,Af=Xd.Region,Ef=Xd.Key,Nf=Xd.FileSize,If=Xd.Body,Gf=Xd.PartNumber*1,Qf=Xd.SliceSize,Xf=Xd.ServerSideEncryption,ph=Xd.UploadData,qf=Xd.Headers||{},Lf=mf.options.ChunkRetryTimes+1,Wf=Qf*(Gf-1),Jf=Qf,Kf=Wf+Qf;Kf>Nf&&(Kf=Nf,Jf=Kf-Wf);var Cf=["x-cos-traffic-limit","x-cos-mime-limit"],xf={};md.each(qf,function(dh,Rh){Cf.indexOf(Rh)>-1&&(xf[Rh]=dh)});var Yf=ph.PartList[Gf-1];pd.retry(Lf,function(dh){mf._isRunningTask(Sf)&&md.fileSlice(If,Wf,Kf,!0,function(Rh){mf.multipartUpload({TaskId:Sf,Bucket:Tf,Region:Af,Key:Ef,ContentLength:Jf,PartNumber:Gf,UploadId:ph.UploadId,ServerSideEncryption:Xf,Body:Rh,Headers:xf,onProgress:Xd.onProgress,calledBySdk:"sliceUploadFile",tracker:Xd.tracker},function(th,Bf){if(mf._isRunningTask(Sf))return th?dh(th):(Yf.Uploaded=!0,dh(null,Bf))})})},function(dh,Rh){if(mf._isRunningTask(Sf))return pf(dh,Rh)})}function jd(Xd,pf){var mf=Xd.Bucket,Sf=Xd.Region,Tf=Xd.Key,Af=Xd.UploadId,Ef=Xd.SliceList,Nf=this,If=this.options.ChunkRetryTimes+1,Gf=Xd.Headers,Qf=Ef.map(function(Xf){return{PartNumber:Xf.PartNumber,ETag:Xf.ETag}});pd.retry(If,function(Xf){Nf.multipartComplete({Bucket:mf,Region:Sf,Key:Tf,UploadId:Af,Parts:Qf,Headers:Gf,calledBySdk:"sliceUploadFile",tracker:Xd.tracker},Xf)},function(Xf,ph){pf(Xf,ph)})}function Fd(Xd,pf){var mf=Xd.Bucket,Sf=Xd.Region,Tf=Xd.Key,Af=Xd.UploadId,Ef=Xd.Level||"task",Nf=Xd.AsyncLimit,If=this,Gf=new fd;if(Gf.on("error",function(Qf){return pf(Qf)}),Gf.on("get_abort_array",function(Qf){Ud.call(If,{Bucket:mf,Region:Sf,Key:Tf,Headers:Xd.Headers,AsyncLimit:Nf,AbortArray:Qf},pf)}),Ef==="bucket")Od.call(If,{Bucket:mf,Region:Sf,calledBySdk:"abortUploadTask"},function(Qf,Xf){if(Qf)return pf(Qf);Gf.emit("get_abort_array",Xf.UploadList||[])});else if(Ef==="file"){if(!Tf)return pf(md.error(new Error("abort_upload_task_no_key")));Od.call(If,{Bucket:mf,Region:Sf,Key:Tf,calledBySdk:"abortUploadTask"},function(Qf,Xf){if(Qf)return pf(Qf);Gf.emit("get_abort_array",Xf.UploadList||[])})}else if(Ef==="task"){if(!Af)return pf(md.error(new Error("abort_upload_task_no_id")));if(!Tf)return pf(md.error(new Error("abort_upload_task_no_key")));Gf.emit("get_abort_array",[{Key:Tf,UploadId:Af}])}else return pf(md.error(new Error("abort_unknown_level")))}function Ud(Xd,pf){var mf=Xd.Bucket,Sf=Xd.Region,Tf=Xd.Key,Af=Xd.AbortArray,Ef=Xd.AsyncLimit||1,Nf=this,If=0,Gf=new Array(Af.length);pd.eachLimit(Af,Ef,function(Qf,Xf){var ph=If;if(Tf&&Tf!==Qf.Key){Gf[ph]={error:{KeyNotMatch:!0}},Xf(null);return}var qf=Qf.UploadId||Qf.UploadID;Nf.multipartAbort({Bucket:mf,Region:Sf,Key:Qf.Key,Headers:Xd.Headers,UploadId:qf},function(Lf){var Wf={Bucket:mf,Region:Sf,Key:Qf.Key,UploadId:qf};Gf[ph]={error:Lf,task:Wf},Xf(null)}),If++},function(Qf){if(Qf)return pf(Qf);for(var Xf=[],ph=[],qf=0,Lf=Gf.length;qfSf?"sliceUploadFile":"putObject";Xd.tracker=new vd({Beacon:mf.options.BeaconReporter,clsReporter:mf.options.ClsReporter,bucket:Xd.Bucket,region:Xd.Region,apiName:"uploadFile",realApi:Gf,fileKey:Xd.Key,fileSize:Ef,accelerate:If,deepTracker:mf.options.DeepTracker,customId:mf.options.CustomId,delay:mf.options.TrackerDelay})}md.each(Xd,function(Wf,Jf){ud(Wf)!=="object"&&typeof Wf!="function"&&(Nf[Jf]=Wf)});var Qf=Xd.onTaskReady,Xf=function(Jf){Nf.TaskId=Jf,Qf&&Qf(Jf)};Xd.onTaskReady=Xf;var ph=Ef>Sf?"sliceUploadFile":"putObject",qf=Xd.onFileFinish,Lf=function(Jf,Kf){Xd.tracker&&Xd.tracker.report(Jf,Kf),qf&&qf(Jf,Kf,Nf),pf&&pf(Jf,Kf)};Tf.push({api:ph,params:Xd,callback:Lf}),mf._addTasks(Tf)}function zd(Xd,pf){var mf=this,Sf=Xd.SliceSize===void 0?mf.options.SliceSize:Xd.SliceSize,Tf=0,Af=0,Ef=md.throttleOnProgress.call(mf,Af,Xd.onProgress),Nf=Xd.files.length,If=Xd.onFileFinish,Gf=Array(Nf),Qf=function(qf,Lf,Wf){Ef(null,!0),If&&If(qf,Lf,Wf),Gf[Wf.Index]={options:Wf,error:qf,data:Lf},--Nf<=0&&pf&&pf(null,{files:Gf})},Xf=[];md.each(Xd.files,function(ph,qf){(function(){var Lf=ph.Body,Wf=Lf.size||Lf.length||0,Jf={Index:qf,TaskId:""};if(!mf.options.UseRawKey&&ph.Key&&ph.Key.substr(0,1)==="/"&&(ph.Key=ph.Key.substr(1)),Tf+=Wf,mf.options.EnableReporter){var Kf=mf.options.UseAccelerate||typeof mf.options.Domain=="string"&&mf.options.Domain.includes("accelerate."),Cf=Wf>Sf?"sliceUploadFile":"putObject";ph.tracker=new vd({Beacon:mf.options.BeaconReporter,clsReporter:mf.options.ClsReporter,bucket:ph.Bucket,region:ph.Region,apiName:"uploadFiles",realApi:Cf,fileKey:ph.Key,fileSize:Wf,accelerate:Kf,deepTracker:mf.options.DeepTracker,customId:mf.options.CustomId,delay:mf.options.TrackerDelay})}md.each(ph,function(uh,Pf){ud(uh)!=="object"&&typeof uh!="function"&&(Jf[Pf]=uh)});var xf=ph.onTaskReady,Yf=function(Pf){Jf.TaskId=Pf,xf&&xf(Pf)};ph.onTaskReady=Yf;var dh=0,Rh=ph.onProgress,th=function(Pf){Af=Af-dh+Pf.loaded,dh=Pf.loaded,Rh&&Rh(Pf),Ef({loaded:Af,total:Tf})};ph.onProgress=th;var Bf=Wf>Sf?"sliceUploadFile":"putObject",Sh=ph.onFileFinish,Fh=function(Pf,Uf){ph.tracker&&ph.tracker.report(Pf,Uf),Sh&&Sh(Pf,Uf),Qf&&Qf(Pf,Uf,Jf)};Xf.push({api:Bf,params:ph,callback:Fh})})()}),mf._addTasks(Xf)}function Wd(Xd,pf){var mf=new fd,Sf=this,Tf=Xd.Bucket,Af=Xd.Region,Ef=Xd.Key,Nf=Xd.CopySource,If=md.getSourceParams.call(this,Nf);if(!If){pf(md.error(new Error("CopySource format error")));return}var Gf=If.Bucket,Qf=If.Region,Xf=decodeURIComponent(If.Key),ph=Xd.CopySliceSize===void 0?Sf.options.CopySliceSize:Xd.CopySliceSize;ph=Math.max(0,ph);var qf=Xd.CopyChunkSize||this.options.CopyChunkSize,Lf=this.options.CopyChunkParallelLimit,Wf=this.options.ChunkRetryTimes+1,Jf=0,Kf=0,Cf,xf,Yf={},dh={},Rh={};mf.on("copy_slice_complete",function(th){md.each(Xd.Headers,function(Sh,Fh){Fh.toLowerCase().indexOf("x-cos-meta-")});var Bf=md.map(th.PartList,function(Sh){return{PartNumber:Sh.PartNumber,ETag:Sh.ETag}});pd.retry(Wf,function(Sh){Sf.multipartComplete({Bucket:Tf,Region:Af,Key:Ef,UploadId:th.UploadId,Parts:Bf,tracker:Xd.tracker,calledBySdk:"sliceCopyFile"},Sh)},function(Sh,Fh){if(dd.removeUsing(th.UploadId),Sh)return xf(null,!0),pf(Sh);dd.removeUploadId(th.UploadId),xf({loaded:Cf,total:Cf},!0),pf(null,Fh)})}),mf.on("get_copy_data_finish",function(th){var Bf=dd.getCopyFileId(Nf,Yf,qf,Tf,Ef);Bf&&dd.saveUploadId(Bf,th.UploadId,Sf.options.UploadIdCacheLimit),dd.setUsing(th.UploadId);var Sh=md.filter(th.PartList,function(Fh){return Fh.Uploaded&&(Kf+=Fh.PartNumber>=Jf&&Cf%qf||qf),!Fh.Uploaded});pd.eachLimit(Sh,Lf,function(Fh,uh){var Pf=Fh.PartNumber,Uf=Fh.CopySourceRange,Zf=Fh.end-Fh.start;pd.retry(Wf,function(mh){Jd.call(Sf,{Bucket:Tf,Region:Af,Key:Ef,CopySource:Nf,UploadId:th.UploadId,PartNumber:Pf,CopySourceRange:Uf,tracker:Xd.tracker,calledBySdk:"sliceCopyFile"},mh)},function(mh,Mh){if(mh)return uh(mh);Kf+=Zf,xf({loaded:Kf,total:Cf}),Fh.ETag=Mh.ETag,uh(mh||null,Mh)})},function(Fh){if(Fh)return dd.removeUsing(th.UploadId),xf(null,!0),pf(Fh);mf.emit("copy_slice_complete",th)})}),mf.on("get_chunk_size_finish",function(){var th=function(){Sf.multipartInit({Bucket:Tf,Region:Af,Key:Ef,Headers:Rh,tracker:Xd.tracker,calledBySdk:"sliceCopyFile"},function(Pf,Uf){if(Pf)return pf(Pf);Xd.UploadId=Uf.UploadId,mf.emit("get_copy_data_finish",{UploadId:Xd.UploadId,PartList:Xd.PartList})})},Bf=dd.getCopyFileId(Nf,Yf,qf,Tf,Ef),Sh=dd.getUploadIdList(Bf);if(!Bf||!Sh)return th();var Fh=function uh(Pf){if(Pf>=Sh.length)return th();var Uf=Sh[Pf];if(dd.using[Uf])return uh(Pf+1);kd.call(Sf,{Bucket:Tf,Region:Af,Key:Ef,UploadId:Uf,tracker:Xd.tracker,calledBySdk:"sliceCopyFile"},function(Zf,mh){if(Zf)dd.removeUploadId(Uf),uh(Pf+1);else{if(dd.using[Uf])return uh(Pf+1);var Mh={},_h=0;md.each(mh.PartList,function(pm){var Jh=parseInt(pm.Size),Mm=_h+Jh-1;Mh[pm.PartNumber+"|"+_h+"|"+Mm]=pm.ETag,_h+=Jh}),md.each(Xd.PartList,function(pm){var Jh=Mh[pm.PartNumber+"|"+pm.start+"|"+pm.end];Jh&&(pm.ETag=Jh,pm.Uploaded=!0)}),mf.emit("get_copy_data_finish",{UploadId:Uf,PartList:Xd.PartList})}})};Fh(0)}),mf.on("get_file_size_finish",function(){if(function(){for(var Bf=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],Sh=1024*1024,Fh=0;FhPf.length&&(dh[uh]=Fh)}),mf.emit("get_file_size_finish")}})}function Jd(Xd,pf){var mf=Xd.TaskId,Sf=Xd.Bucket,Tf=Xd.Region,Af=Xd.Key,Ef=Xd.CopySource,Nf=Xd.UploadId,If=Xd.PartNumber*1,Gf=Xd.CopySourceRange,Qf=this.options.ChunkRetryTimes+1,Xf=this;pd.retry(Qf,function(ph){Xf.uploadPartCopy({TaskId:mf,Bucket:Sf,Region:Tf,Key:Af,CopySource:Ef,UploadId:Nf,PartNumber:If,CopySourceRange:Gf,tracker:Xd.tracker,calledBySdk:Xd.calledBySdk},function(qf,Lf){ph(qf||null,Lf)})},function(ph,qf){return pf(ph,qf)})}var _f={sliceUploadFile:Ad,abortUploadTask:Fd,uploadFile:qd,uploadFiles:zd,sliceCopyFile:Wd};nd.exports.init=function(Xd,pf){pf.transferToTaskMethod(_f,"sliceUploadFile"),md.each(_f,function(mf,Sf){Xd.prototype[Sf]=md.apiWrapper(Sf,mf)})}},"./src/async.js":function(nd,od){var ld=function(fd,md,vd,Ad){if(Ad=Ad||function(){},!fd.length||md<=0)return Ad();var Nd=0,Od=0,kd=0;(function Ld(){if(Nd>=fd.length)return Ad();for(;kd=fd.length?Ad():Ld())})})()},ud=function(fd,md,vd){var Ad=function Nd(Od){md(function(kd,Ld){kd&&Od"u"?"undefined":ud(location))==="object"&&location.protocol==="http:"?"http:":"https:"),Bh=this.options.ServiceDomain,fm=jf.AppId||this.options.appId,dm=jf.Region;Bh?(Bh=Bh.replace(/\{\{AppId\}\}/gi,fm||"").replace(/\{\{Region\}\}/gi,dm||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(Bh)||(Bh=wh+"//"+Bh),Bh.slice(-1)==="/"&&(Bh=Bh.slice(0,-1))):dm?Bh=wh+"//cos."+dm+".myqcloud.com":Bh=wh+"//service.cos.myqcloud.com";var Tm="",_m=dm?"cos."+dm+".myqcloud.com":"service.cos.myqcloud.com",Zh=Bh.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");_m===Zh&&(Tm=_m),dg.call(this,{Action:"name/cos:GetService",url:Bh,method:"GET",headers:jf.Headers,SignHost:Tm,tracker:jf.tracker},function(Gm,Km){if(Gm)return Uh(Gm);var xg=Km&&Km.ListAllMyBucketsResult&&Km.ListAllMyBucketsResult.Buckets&&Km.ListAllMyBucketsResult.Buckets.Bucket||[];xg=pd.isArray(xg)?xg:[xg];var eg=Km&&Km.ListAllMyBucketsResult&&Km.ListAllMyBucketsResult.Owner||{};Uh(null,{Buckets:xg,Owner:eg,statusCode:Km.statusCode,headers:Km.headers})})}function md(jf,Uh){var wh=this,Bh="";if(jf.BucketAZConfig){var fm={BucketAZConfig:jf.BucketAZConfig};Bh=pd.json2xml({CreateBucketConfiguration:fm})}dg.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,body:Bh,tracker:jf.tracker},function(dm,Tm){if(dm)return Uh(dm);var _m=a_({protocol:wh.options.Protocol,domain:wh.options.Domain,bucket:jf.Bucket,region:jf.Region,isLocation:!0});Uh(null,{Location:_m,statusCode:Tm.statusCode,headers:Tm.headers})})}function vd(jf,Uh){dg.call(this,{Action:"name/cos:HeadBucket",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,method:"HEAD",tracker:jf.tracker},Uh)}function Ad(jf,Uh){var wh={};wh.prefix=jf.Prefix||"",wh.delimiter=jf.Delimiter,wh.marker=jf.Marker,wh["max-keys"]=jf.MaxKeys,wh["encoding-type"]=jf.EncodingType,dg.call(this,{Action:"name/cos:GetBucket",ResourceKey:wh.prefix,method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,qs:wh,tracker:jf.tracker},function(Bh,fm){if(Bh)return Uh(Bh);var dm=fm.ListBucketResult||{},Tm=dm.Contents||[],_m=dm.CommonPrefixes||[];Tm=pd.isArray(Tm)?Tm:[Tm],_m=pd.isArray(_m)?_m:[_m];var Zh=pd.clone(dm);pd.extend(Zh,{Contents:Tm,CommonPrefixes:_m,statusCode:fm.statusCode,headers:fm.headers}),Uh(null,Zh)})}function Nd(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucket",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,method:"DELETE",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function Od(jf,Uh){var wh=jf.Headers,Bh="";if(jf.AccessControlPolicy){var fm=pd.clone(jf.AccessControlPolicy||{}),dm=fm.Grants||fm.Grant;dm=pd.isArray(dm)?dm:[dm],delete fm.Grant,delete fm.Grants,fm.AccessControlList={Grant:dm},Bh=pd.json2xml({AccessControlPolicy:fm}),wh["Content-Type"]="application/xml",wh["Content-MD5"]=pd.b64(pd.md5(Bh))}pd.each(wh,function(Tm,_m){_m.indexOf("x-cos-grant-")===0&&(wh[_m]=m_(wh[_m]))}),dg.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,headers:wh,action:"acl",body:Bh,tracker:jf.tracker},function(Tm,_m){if(Tm)return Uh(Tm);Uh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function kd(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"acl",tracker:jf.tracker},function(wh,Bh){if(wh)return Uh(wh);var fm=Bh.AccessControlPolicy||{},dm=fm.Owner||{},Tm=fm.AccessControlList.Grant||[];Tm=pd.isArray(Tm)?Tm:[Tm];var _m=Pg(fm);Bh.headers&&Bh.headers["x-cos-acl"]&&(_m.ACL=Bh.headers["x-cos-acl"]),_m=pd.extend(_m,{Owner:dm,Grants:Tm,statusCode:Bh.statusCode,headers:Bh.headers}),Uh(null,_m)})}function Ld(jf,Uh){var wh=jf.CORSConfiguration||{},Bh=wh.CORSRules||jf.CORSRules||[];Bh=pd.clone(pd.isArray(Bh)?Bh:[Bh]),pd.each(Bh,function(_m){pd.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Zh){var Gm=Zh+"s",Km=_m[Gm]||_m[Zh]||[];delete _m[Gm],_m[Zh]=pd.isArray(Km)?Km:[Km]})});var fm={CORSRule:Bh};jf.ResponseVary&&(fm.ResponseVary=jf.ResponseVary);var dm=pd.json2xml({CORSConfiguration:fm}),Tm=jf.Headers;Tm["Content-Type"]="application/xml",Tm["Content-MD5"]=pd.b64(pd.md5(dm)),dg.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:dm,action:"cors",headers:Tm,tracker:jf.tracker},function(_m,Zh){if(_m)return Uh(_m);Uh(null,{statusCode:Zh.statusCode,headers:Zh.headers})})}function Gd(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"cors",tracker:jf.tracker},function(wh,Bh){if(wh){if(wh.statusCode===404&&wh.error&&wh.error.Code==="NoSuchCORSConfiguration"){var fm={CORSRules:[],statusCode:wh.statusCode};wh.headers&&(fm.headers=wh.headers),Uh(null,fm)}else Uh(wh);return}var dm=Bh.CORSConfiguration||{},Tm=dm.CORSRules||dm.CORSRule||[];Tm=pd.clone(pd.isArray(Tm)?Tm:[Tm]);var _m=dm.ResponseVary;pd.each(Tm,function(Zh){pd.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Gm){var Km=Gm+"s",xg=Zh[Km]||Zh[Gm]||[];delete Zh[Gm],Zh[Km]=pd.isArray(xg)?xg:[xg]})}),Uh(null,{CORSRules:Tm,ResponseVary:_m,statusCode:Bh.statusCode,headers:Bh.headers})})}function jd(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"cors",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode||wh.statusCode,headers:Bh.headers})})}function Fd(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"location",tracker:jf.tracker},Uh)}function Ud(jf,Uh){var wh=jf.Policy;try{typeof wh=="string"&&(wh=JSON.parse(wh))}catch{}if(!wh||typeof wh=="string")return Uh(pd.error(new Error("Policy format error")));var Bh=JSON.stringify(wh);wh.version||(wh.version="2.0");var fm=jf.Headers;fm["Content-Type"]="application/json",fm["Content-MD5"]=pd.b64(pd.md5(Bh)),dg.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,action:"policy",body:Bh,headers:fm,tracker:jf.tracker},function(dm,Tm){if(dm&&dm.statusCode===204)return Uh(null,{statusCode:dm.statusCode});if(dm)return Uh(dm);Uh(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function qd(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"policy",rawBody:!0,tracker:jf.tracker},function(wh,Bh){if(wh)return wh.statusCode&&wh.statusCode===403?Uh(pd.error(wh,{ErrorStatus:"Access Denied"})):wh.statusCode&&wh.statusCode===405?Uh(pd.error(wh,{ErrorStatus:"Method Not Allowed"})):wh.statusCode&&wh.statusCode===404?Uh(pd.error(wh,{ErrorStatus:"Policy Not Found"})):Uh(wh);var fm={};try{fm=JSON.parse(Bh.body)}catch{}Uh(null,{Policy:fm,statusCode:Bh.statusCode,headers:Bh.headers})})}function zd(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"policy",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode||wh.statusCode,headers:Bh.headers})})}function Wd(jf,Uh){var wh=jf.Tagging||{},Bh=wh.TagSet||wh.Tags||jf.Tags||[];Bh=pd.clone(pd.isArray(Bh)?Bh:[Bh]);var fm=pd.json2xml({Tagging:{TagSet:{Tag:Bh}}}),dm=jf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(fm)),dg.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:fm,action:"tagging",headers:dm,tracker:jf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Uh(null,{statusCode:Tm.statusCode});if(Tm)return Uh(Tm);Uh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Jd(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"tagging",tracker:jf.tracker},function(wh,Bh){if(wh){if(wh.statusCode===404&&wh.error&&(wh.error==="Not Found"||wh.error.Code==="NoSuchTagSet")){var fm={Tags:[],statusCode:wh.statusCode};wh.headers&&(fm.headers=wh.headers),Uh(null,fm)}else Uh(wh);return}var dm=[];try{dm=Bh.Tagging.TagSet.Tag||[]}catch{}dm=pd.clone(pd.isArray(dm)?dm:[dm]),Uh(null,{Tags:dm,statusCode:Bh.statusCode,headers:Bh.headers})})}function _f(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"tagging",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function Xd(jf,Uh){var wh=jf.LifecycleConfiguration||{},Bh=wh.Rules||jf.Rules||[];Bh=pd.clone(Bh);var fm=pd.json2xml({LifecycleConfiguration:{Rule:Bh}}),dm=jf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(fm)),dg.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:fm,action:"lifecycle",headers:dm,tracker:jf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Uh(null,{statusCode:Tm.statusCode});if(Tm)return Uh(Tm);Uh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function pf(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"lifecycle",tracker:jf.tracker},function(wh,Bh){if(wh){if(wh.statusCode===404&&wh.error&&wh.error.Code==="NoSuchLifecycleConfiguration"){var fm={Rules:[],statusCode:wh.statusCode};wh.headers&&(fm.headers=wh.headers),Uh(null,fm)}else Uh(wh);return}var dm=[];try{dm=Bh.LifecycleConfiguration.Rule||[]}catch{}dm=pd.clone(pd.isArray(dm)?dm:[dm]),Uh(null,{Rules:dm,statusCode:Bh.statusCode,headers:Bh.headers})})}function mf(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"lifecycle",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function Sf(jf,Uh){if(!jf.VersioningConfiguration){Uh(pd.error(new Error("missing param VersioningConfiguration")));return}var wh=jf.VersioningConfiguration||{},Bh=pd.json2xml({VersioningConfiguration:wh}),fm=jf.Headers;fm["Content-Type"]="application/xml",fm["Content-MD5"]=pd.b64(pd.md5(Bh)),dg.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:Bh,action:"versioning",headers:fm,tracker:jf.tracker},function(dm,Tm){if(dm&&dm.statusCode===204)return Uh(null,{statusCode:dm.statusCode});if(dm)return Uh(dm);Uh(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function Tf(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"versioning",tracker:jf.tracker},function(wh,Bh){wh||!Bh.VersioningConfiguration&&(Bh.VersioningConfiguration={}),Uh(wh,Bh)})}function Af(jf,Uh){var wh=pd.clone(jf.ReplicationConfiguration),Bh=pd.json2xml({ReplicationConfiguration:wh});Bh=Bh.replace(/<(\/?)Rules>/gi,"<$1Rule>"),Bh=Bh.replace(/<(\/?)Tags>/gi,"<$1Tag>");var fm=jf.Headers;fm["Content-Type"]="application/xml",fm["Content-MD5"]=pd.b64(pd.md5(Bh)),dg.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:Bh,action:"replication",headers:fm,tracker:jf.tracker},function(dm,Tm){if(dm&&dm.statusCode===204)return Uh(null,{statusCode:dm.statusCode});if(dm)return Uh(dm);Uh(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function Ef(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"replication",tracker:jf.tracker},function(wh,Bh){if(wh){if(wh.statusCode===404&&wh.error&&(wh.error==="Not Found"||wh.error.Code==="ReplicationConfigurationnotFoundError")){var fm={ReplicationConfiguration:{Rules:[]},statusCode:wh.statusCode};wh.headers&&(fm.headers=wh.headers),Uh(null,fm)}else Uh(wh);return}!Bh.ReplicationConfiguration&&(Bh.ReplicationConfiguration={}),Bh.ReplicationConfiguration.Rule&&(Bh.ReplicationConfiguration.Rules=pd.makeArray(Bh.ReplicationConfiguration.Rule),delete Bh.ReplicationConfiguration.Rule),Uh(wh,Bh)})}function Nf(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"replication",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function If(jf,Uh){if(!jf.WebsiteConfiguration){Uh(pd.error(new Error("missing param WebsiteConfiguration")));return}var wh=pd.clone(jf.WebsiteConfiguration||{}),Bh=wh.RoutingRules||wh.RoutingRule||[];Bh=pd.isArray(Bh)?Bh:[Bh],delete wh.RoutingRule,delete wh.RoutingRules,Bh.length&&(wh.RoutingRules={RoutingRule:Bh});var fm=pd.json2xml({WebsiteConfiguration:wh}),dm=jf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(fm)),dg.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:fm,action:"website",headers:dm,tracker:jf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Uh(null,{statusCode:Tm.statusCode});if(Tm)return Uh(Tm);Uh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Gf(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:jf.Headers,action:"website",tracker:jf.tracker},function(wh,Bh){if(wh){if(wh.statusCode===404&&wh.error.Code==="NoSuchWebsiteConfiguration"){var fm={WebsiteConfiguration:{},statusCode:wh.statusCode};wh.headers&&(fm.headers=wh.headers),Uh(null,fm)}else Uh(wh);return}var dm=Bh.WebsiteConfiguration||{};if(dm.RoutingRules){var Tm=pd.clone(dm.RoutingRules.RoutingRule||[]);Tm=pd.makeArray(Tm),dm.RoutingRules=Tm}Uh(null,{WebsiteConfiguration:dm,statusCode:Bh.statusCode,headers:Bh.headers})})}function Qf(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"website",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function Xf(jf,Uh){if(!jf.RefererConfiguration){Uh(pd.error(new Error("missing param RefererConfiguration")));return}var wh=pd.clone(jf.RefererConfiguration||{}),Bh=wh.DomainList||{},fm=Bh.Domains||Bh.Domain||[];fm=pd.isArray(fm)?fm:[fm],fm.length&&(wh.DomainList={Domain:fm});var dm=pd.json2xml({RefererConfiguration:wh}),Tm=jf.Headers;Tm["Content-Type"]="application/xml",Tm["Content-MD5"]=pd.b64(pd.md5(dm)),dg.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:dm,action:"referer",headers:Tm,tracker:jf.tracker},function(_m,Zh){if(_m&&_m.statusCode===204)return Uh(null,{statusCode:_m.statusCode});if(_m)return Uh(_m);Uh(null,{statusCode:Zh.statusCode,headers:Zh.headers})})}function ph(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:jf.Headers,action:"referer",tracker:jf.tracker},function(wh,Bh){if(wh){if(wh.statusCode===404&&wh.error.Code==="NoSuchRefererConfiguration"){var fm={WebsiteConfiguration:{},statusCode:wh.statusCode};wh.headers&&(fm.headers=wh.headers),Uh(null,fm)}else Uh(wh);return}var dm=Bh.RefererConfiguration||{};if(dm.DomainList){var Tm=pd.makeArray(dm.DomainList.Domain||[]);dm.DomainList={Domains:Tm}}Uh(null,{RefererConfiguration:dm,statusCode:Bh.statusCode,headers:Bh.headers})})}function qf(jf,Uh){var wh=jf.DomainConfiguration||{},Bh=wh.DomainRule||jf.DomainRule||[];Bh=pd.clone(Bh);var fm=pd.json2xml({DomainConfiguration:{DomainRule:Bh}}),dm=jf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(fm)),dg.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:fm,action:"domain",headers:dm,tracker:jf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Uh(null,{statusCode:Tm.statusCode});if(Tm)return Uh(Tm);Uh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Lf(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"domain",tracker:jf.tracker},function(wh,Bh){if(wh)return Uh(wh);var fm=[];try{fm=Bh.DomainConfiguration.DomainRule||[]}catch{}fm=pd.clone(pd.isArray(fm)?fm:[fm]),Uh(null,{DomainRule:fm,statusCode:Bh.statusCode,headers:Bh.headers})})}function Wf(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"domain",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function Jf(jf,Uh){var wh=jf.OriginConfiguration||{},Bh=wh.OriginRule||jf.OriginRule||[];Bh=pd.clone(Bh);var fm=pd.json2xml({OriginConfiguration:{OriginRule:Bh}}),dm=jf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(fm)),dg.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:fm,action:"origin",headers:dm,tracker:jf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Uh(null,{statusCode:Tm.statusCode});if(Tm)return Uh(Tm);Uh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Kf(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"origin",tracker:jf.tracker},function(wh,Bh){if(wh)return Uh(wh);var fm=[];try{fm=Bh.OriginConfiguration.OriginRule||[]}catch{}fm=pd.clone(pd.isArray(fm)?fm:[fm]),Uh(null,{OriginRule:fm,statusCode:Bh.statusCode,headers:Bh.headers})})}function Cf(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"origin",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function xf(jf,Uh){var wh=pd.json2xml({BucketLoggingStatus:jf.BucketLoggingStatus||""}),Bh=jf.Headers;Bh["Content-Type"]="application/xml",Bh["Content-MD5"]=pd.b64(pd.md5(wh)),dg.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:wh,action:"logging",headers:Bh,tracker:jf.tracker},function(fm,dm){if(fm&&fm.statusCode===204)return Uh(null,{statusCode:fm.statusCode});if(fm)return Uh(fm);Uh(null,{statusCode:dm.statusCode,headers:dm.headers})})}function Yf(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"logging",tracker:jf.tracker},function(wh,Bh){if(wh)return Uh(wh);Uh(null,{BucketLoggingStatus:Bh.BucketLoggingStatus,statusCode:Bh.statusCode,headers:Bh.headers})})}function dh(jf,Uh,wh){var Bh=pd.clone(Uh.InventoryConfiguration);if(Bh.OptionalFields){var fm=Bh.OptionalFields||[];Bh.OptionalFields={Field:fm}}if(Bh.Destination&&Bh.Destination.COSBucketDestination&&Bh.Destination.COSBucketDestination.Encryption){var dm=Bh.Destination.COSBucketDestination.Encryption;Object.keys(dm).indexOf("SSECOS")>-1&&(dm["SSE-COS"]=dm.SSECOS,delete dm.SSECOS)}var Tm=pd.json2xml({InventoryConfiguration:Bh}),_m=Uh.Headers;_m["Content-Type"]="application/xml",_m["Content-MD5"]=pd.b64(pd.md5(Tm));var Zh=jf==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";dg.call(this,{Action:Zh,method:jf,Bucket:Uh.Bucket,Region:Uh.Region,body:Tm,action:"inventory",qs:{id:Uh.Id},headers:_m,tracker:Uh.tracker},function(Gm,Km){if(Gm&&Gm.statusCode===204)return wh(null,{statusCode:Gm.statusCode});if(Gm)return wh(Gm);wh(null,{statusCode:Km.statusCode,headers:Km.headers})})}function Rh(jf,Uh){return dh.call(this,"PUT",jf,Uh)}function th(jf,Uh){return dh.call(this,"POST",jf,Uh)}function Bf(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"inventory",qs:{id:jf.Id},tracker:jf.tracker},function(wh,Bh){if(wh)return Uh(wh);var fm=Bh.InventoryConfiguration;if(fm&&fm.OptionalFields&&fm.OptionalFields.Field){var dm=fm.OptionalFields.Field;pd.isArray(dm)||(dm=[dm]),fm.OptionalFields=dm}if(fm.Destination&&fm.Destination.COSBucketDestination&&fm.Destination.COSBucketDestination.Encryption){var Tm=fm.Destination.COSBucketDestination.Encryption;Object.keys(Tm).indexOf("SSE-COS")>-1&&(Tm.SSECOS=Tm["SSE-COS"],delete Tm["SSE-COS"])}Uh(null,{InventoryConfiguration:fm,statusCode:Bh.statusCode,headers:Bh.headers})})}function Sh(jf,Uh){dg.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"inventory",qs:{"continuation-token":jf.ContinuationToken},tracker:jf.tracker},function(wh,Bh){if(wh)return Uh(wh);var fm=Bh.ListInventoryConfigurationResult,dm=fm.InventoryConfiguration||[];dm=pd.isArray(dm)?dm:[dm],delete fm.InventoryConfiguration,pd.each(dm,function(Tm){if(Tm&&Tm.OptionalFields&&Tm.OptionalFields.Field){var _m=Tm.OptionalFields.Field;pd.isArray(_m)||(_m=[_m]),Tm.OptionalFields=_m}if(Tm.Destination&&Tm.Destination.COSBucketDestination&&Tm.Destination.COSBucketDestination.Encryption){var Zh=Tm.Destination.COSBucketDestination.Encryption;Object.keys(Zh).indexOf("SSE-COS")>-1&&(Zh.SSECOS=Zh["SSE-COS"],delete Zh["SSE-COS"])}}),fm.InventoryConfigurations=dm,pd.extend(fm,{statusCode:Bh.statusCode,headers:Bh.headers}),Uh(null,fm)})}function Fh(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"inventory",qs:{id:jf.Id},tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function uh(jf,Uh){if(!jf.AccelerateConfiguration){Uh(pd.error(new Error("missing param AccelerateConfiguration")));return}var wh={AccelerateConfiguration:jf.AccelerateConfiguration||{}},Bh=pd.json2xml(wh),fm={};fm["Content-Type"]="application/xml",fm["Content-MD5"]=pd.b64(pd.md5(Bh)),dg.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:Bh,action:"accelerate",headers:fm,tracker:jf.tracker},function(dm,Tm){if(dm)return Uh(dm);Uh(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function Pf(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:jf.Bucket,Region:jf.Region,action:"accelerate",tracker:jf.tracker},function(wh,Bh){wh||!Bh.AccelerateConfiguration&&(Bh.AccelerateConfiguration={}),Uh(wh,Bh)})}function Uf(jf,Uh){var wh=jf.ServerSideEncryptionConfiguration||{},Bh=wh.Rule||wh.Rules||[],fm=pd.json2xml({ServerSideEncryptionConfiguration:{Rule:Bh}}),dm=jf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(fm)),dg.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,body:fm,action:"encryption",headers:dm,tracker:jf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Uh(null,{statusCode:Tm.statusCode});if(Tm)return Uh(Tm);Uh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Zf(jf,Uh){dg.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"encryption",tracker:jf.tracker},function(wh,Bh){if(wh){if(wh.statusCode===404&&wh.code==="NoSuchEncryptionConfiguration"){var fm={EncryptionConfiguration:{Rules:[]},statusCode:wh.statusCode};wh.headers&&(fm.headers=wh.headers),Uh(null,fm)}else Uh(wh);return}var dm=pd.makeArray(Bh.EncryptionConfiguration&&Bh.EncryptionConfiguration.Rule||[]);Bh.EncryptionConfiguration={Rules:dm},Uh(wh,Bh)})}function mh(jf,Uh){dg.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"encryption",tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function Mh(jf,Uh){dg.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,VersionId:jf.VersionId,headers:jf.Headers,tracker:jf.tracker},function(wh,Bh){if(wh){var fm=wh.statusCode;return jf.Headers["If-Modified-Since"]&&fm&&fm===304?Uh(null,{NotModified:!0,statusCode:fm}):Uh(wh)}Bh.ETag=pd.attr(Bh.headers,"etag",""),Uh(null,Bh)})}function _h(jf,Uh){var wh={};wh.prefix=jf.Prefix||"",wh.delimiter=jf.Delimiter,wh["key-marker"]=jf.KeyMarker,wh["version-id-marker"]=jf.VersionIdMarker,wh["max-keys"]=jf.MaxKeys,wh["encoding-type"]=jf.EncodingType,dg.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:wh.prefix,method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,qs:wh,action:"versions",tracker:jf.tracker},function(Bh,fm){if(Bh)return Uh(Bh);var dm=fm.ListVersionsResult||{},Tm=dm.DeleteMarker||[];Tm=pd.isArray(Tm)?Tm:[Tm];var _m=dm.Version||[];_m=pd.isArray(_m)?_m:[_m];var Zh=pd.clone(dm);delete Zh.DeleteMarker,delete Zh.Version,pd.extend(Zh,{DeleteMarkers:Tm,Versions:_m,statusCode:fm.statusCode,headers:fm.headers}),Uh(null,Zh)})}function pm(jf,Uh){if(this.options.ObjectKeySimplifyCheck){var wh=pd.simplifyPath(jf.Key);if(wh==="/"){Uh(pd.error(new Error("The Getobject Key is illegal")));return}}var Bh=jf.Query||{},fm=jf.QueryString||"",dm=pd.throttleOnProgress.call(this,0,jf.onProgress),Tm=jf.tracker;Tm&&Tm.setParams({signStartTime:new Date().getTime()}),Bh["response-content-type"]=jf.ResponseContentType,Bh["response-content-language"]=jf.ResponseContentLanguage,Bh["response-expires"]=jf.ResponseExpires,Bh["response-cache-control"]=jf.ResponseCacheControl,Bh["response-content-disposition"]=jf.ResponseContentDisposition,Bh["response-content-encoding"]=jf.ResponseContentEncoding,dg.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,VersionId:jf.VersionId,DataType:jf.DataType,headers:jf.Headers,qs:Bh,qsStr:fm,rawBody:!0,onDownloadProgress:dm,tracker:Tm},function(_m,Zh){if(dm(null,!0),_m){var Gm=_m.statusCode;return jf.Headers["If-Modified-Since"]&&Gm&&Gm===304?Uh(null,{NotModified:!0}):Uh(_m)}Uh(null,{Body:Zh.body,ETag:pd.attr(Zh.headers,"etag",""),statusCode:Zh.statusCode,headers:Zh.headers})})}function Jh(jf,Uh){var wh=this,Bh=jf.ContentLength,fm=pd.throttleOnProgress.call(wh,Bh,jf.onProgress),dm=jf.Headers;!dm["Cache-Control"]&&!dm["cache-control"]&&(dm["Cache-Control"]=""),!dm["Content-Type"]&&!dm["content-type"]&&(dm["Content-Type"]=jf.Body&&jf.Body.type||"");var Tm=jf.UploadAddMetaMd5||wh.options.UploadAddMetaMd5||wh.options.UploadCheckContentMd5,_m=jf.tracker;Tm&&_m&&_m.setParams({md5StartTime:new Date().getTime()}),pd.getBodyMd5(Tm,jf.Body,function(Zh){Zh&&(_m&&_m.setParams({md5EndTime:new Date().getTime()}),wh.options.UploadCheckContentMd5&&(dm["Content-MD5"]=pd.b64(Zh)),(jf.UploadAddMetaMd5||wh.options.UploadAddMetaMd5)&&(dm["x-cos-meta-md5"]=Zh)),jf.ContentLength!==void 0&&(dm["Content-Length"]=jf.ContentLength),fm(null,!0),dg.call(wh,{Action:"name/cos:PutObject",TaskId:jf.TaskId,method:"PUT",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:jf.Headers,qs:jf.Query,body:jf.Body,onProgress:fm,tracker:_m},function(Gm,Km){if(Gm)return fm(null,!0),Uh(Gm);fm({loaded:Bh,total:Bh},!0);var xg=a_({ForcePathStyle:wh.options.ForcePathStyle,protocol:wh.options.Protocol,domain:wh.options.Domain,bucket:jf.Bucket,region:wh.options.UseAccelerate?"accelerate":jf.Region,object:jf.Key});xg=xg.substr(xg.indexOf("://")+3),Km.Location=xg,Km.ETag=pd.attr(Km.headers,"etag",""),Uh(null,Km)})},jf.onHashProgress)}function Mm(jf,Uh){dg.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:jf.Headers,VersionId:jf.VersionId,action:jf.Recursive?"recursive":"",tracker:jf.tracker},function(wh,Bh){if(wh){var fm=wh.statusCode;return fm&&fm===404?Uh(null,{BucketNotFound:!0,statusCode:fm}):Uh(wh)}Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function Im(jf,Uh){var wh={};jf.VersionId&&(wh.versionId=jf.VersionId),dg.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:jf.Headers,qs:wh,action:"acl",tracker:jf.tracker},function(Bh,fm){if(Bh)return Uh(Bh);var dm=fm.AccessControlPolicy||{},Tm=dm.Owner||{},_m=dm.AccessControlList&&dm.AccessControlList.Grant||[];_m=pd.isArray(_m)?_m:[_m];var Zh=Pg(dm);delete Zh.GrantWrite,fm.headers&&fm.headers["x-cos-acl"]&&(Zh.ACL=fm.headers["x-cos-acl"]),Zh=pd.extend(Zh,{Owner:Tm,Grants:_m,statusCode:fm.statusCode,headers:fm.headers}),Uh(null,Zh)})}function gm(jf,Uh){var wh=jf.Headers,Bh="";if(jf.AccessControlPolicy){var fm=pd.clone(jf.AccessControlPolicy||{}),dm=fm.Grants||fm.Grant;dm=pd.isArray(dm)?dm:[dm],delete fm.Grant,delete fm.Grants,fm.AccessControlList={Grant:dm},Bh=pd.json2xml({AccessControlPolicy:fm}),wh["Content-Type"]="application/xml",wh["Content-MD5"]=pd.b64(pd.md5(Bh))}pd.each(wh,function(Tm,_m){_m.indexOf("x-cos-grant-")===0&&(wh[_m]=m_(wh[_m]))}),dg.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,action:"acl",headers:wh,body:Bh,tracker:jf.tracker},function(Tm,_m){if(Tm)return Uh(Tm);Uh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function Lm(jf,Uh){var wh=jf.Headers;wh.Origin=jf.Origin,wh["Access-Control-Request-Method"]=jf.AccessControlRequestMethod,wh["Access-Control-Request-Headers"]=jf.AccessControlRequestHeaders,dg.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:wh,tracker:jf.tracker},function(Bh,fm){if(Bh)return Bh.statusCode&&Bh.statusCode===403?Uh(null,{OptionsForbidden:!0,statusCode:Bh.statusCode}):Uh(Bh);var dm=fm.headers||{};Uh(null,{AccessControlAllowOrigin:dm["access-control-allow-origin"],AccessControlAllowMethods:dm["access-control-allow-methods"],AccessControlAllowHeaders:dm["access-control-allow-headers"],AccessControlExposeHeaders:dm["access-control-expose-headers"],AccessControlMaxAge:dm["access-control-max-age"],statusCode:fm.statusCode,headers:fm.headers})})}function Vm(jf,Uh){var wh=this,Bh=jf.Headers;!Bh["Cache-Control"]&&!Bh["cache-control"]&&(Bh["Cache-Control"]="");var fm=jf.CopySource||"",dm=pd.getSourceParams.call(this,fm);if(!dm){Uh(pd.error(new Error("CopySource format error")));return}var Tm=dm.Bucket,_m=dm.Region,Zh=decodeURIComponent(dm.Key);dg.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Tm,region:_m,prefix:Zh},{action:"name/cos:PutObject",bucket:jf.Bucket,region:jf.Region,prefix:jf.Key}],method:"PUT",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,VersionId:jf.VersionId,headers:jf.Headers,tracker:jf.tracker},function(Gm,Km){if(Gm)return Uh(Gm);var xg=pd.clone(Km.CopyObjectResult||{}),eg=a_({ForcePathStyle:wh.options.ForcePathStyle,protocol:wh.options.Protocol,domain:wh.options.Domain,bucket:jf.Bucket,region:jf.Region,object:jf.Key,isLocation:!0});pd.extend(xg,{Location:eg,statusCode:Km.statusCode,headers:Km.headers}),Uh(null,xg)})}function Th(jf,Uh){var wh=jf.CopySource||"",Bh=pd.getSourceParams.call(this,wh);if(!Bh){Uh(pd.error(new Error("CopySource format error")));return}var fm=Bh.Bucket,dm=Bh.Region,Tm=decodeURIComponent(Bh.Key);dg.call(this,{Scope:[{action:"name/cos:GetObject",bucket:fm,region:dm,prefix:Tm},{action:"name/cos:PutObject",bucket:jf.Bucket,region:jf.Region,prefix:jf.Key}],method:"PUT",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,VersionId:jf.VersionId,qs:{partNumber:jf.PartNumber,uploadId:jf.UploadId},headers:jf.Headers,tracker:jf.tracker},function(_m,Zh){if(_m)return Uh(_m);var Gm=pd.clone(Zh.CopyPartResult||{});pd.extend(Gm,{statusCode:Zh.statusCode,headers:Zh.headers}),Uh(null,Gm)})}function Rf(jf,Uh){var wh=jf.Objects||[],Bh=jf.Quiet;wh=pd.isArray(wh)?wh:[wh];var fm=pd.json2xml({Delete:{Object:wh,Quiet:Bh||!1}}),dm=jf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(fm));var Tm=pd.map(wh,function(_m){return{action:"name/cos:DeleteObject",bucket:jf.Bucket,region:jf.Region,prefix:_m.Key}});dg.call(this,{Scope:Tm,method:"POST",Bucket:jf.Bucket,Region:jf.Region,body:fm,action:"delete",headers:dm,tracker:jf.tracker},function(_m,Zh){if(_m)return Uh(_m);var Gm=Zh.DeleteResult||{},Km=Gm.Deleted||[],xg=Gm.Error||[];Km=pd.isArray(Km)?Km:[Km],xg=pd.isArray(xg)?xg:[xg];var eg=pd.clone(Gm);pd.extend(eg,{Error:xg,Deleted:Km,statusCode:Zh.statusCode,headers:Zh.headers}),Uh(null,eg)})}function wf(jf,Uh){var wh=jf.Headers;if(!jf.RestoreRequest){Uh(pd.error(new Error("missing param RestoreRequest")));return}var Bh=jf.RestoreRequest||{},fm=pd.json2xml({RestoreRequest:Bh});wh["Content-Type"]="application/xml",wh["Content-MD5"]=pd.b64(pd.md5(fm)),dg.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,VersionId:jf.VersionId,body:fm,action:"restore",headers:wh,tracker:jf.tracker},Uh)}function sh(jf,Uh){var wh=jf.Tagging||{},Bh=wh.TagSet||wh.Tags||jf.Tags||[];Bh=pd.clone(pd.isArray(Bh)?Bh:[Bh]);var fm=pd.json2xml({Tagging:{TagSet:{Tag:Bh}}}),dm=jf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(fm)),dg.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:jf.Bucket,Key:jf.Key,Region:jf.Region,body:fm,action:"tagging",headers:dm,VersionId:jf.VersionId,tracker:jf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Uh(null,{statusCode:Tm.statusCode});if(Tm)return Uh(Tm);Uh(null,{statusCode:_m.statusCode,headers:_m.headers})})}function xh(jf,Uh){dg.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:jf.Key,Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,action:"tagging",VersionId:jf.VersionId,tracker:jf.tracker},function(wh,Bh){if(wh){if(wh.statusCode===404&&wh.error&&(wh.error==="Not Found"||wh.error.Code==="NoSuchTagSet")){var fm={Tags:[],statusCode:wh.statusCode};wh.headers&&(fm.headers=wh.headers),Uh(null,fm)}else Uh(wh);return}var dm=[];try{dm=Bh.Tagging.TagSet.Tag||[]}catch{}dm=pd.clone(pd.isArray(dm)?dm:[dm]),Uh(null,{Tags:dm,statusCode:Bh.statusCode,headers:Bh.headers})})}function Wh(jf,Uh){dg.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:jf.Headers,action:"tagging",VersionId:jf.VersionId,tracker:jf.tracker},function(wh,Bh){if(wh&&wh.statusCode===204)return Uh(null,{statusCode:wh.statusCode});if(wh)return Uh(wh);Uh(null,{statusCode:Bh.statusCode,headers:Bh.headers})})}function om(jf,Uh){var wh=jf.SelectType;if(!wh)return Uh(pd.error(new Error("missing param SelectType")));var Bh=jf.SelectRequest||{},fm=pd.json2xml({SelectRequest:Bh}),dm=jf.Headers;dm["Content-Type"]="application/xml",dm["Content-MD5"]=pd.b64(pd.md5(fm)),dg.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:jf.Headers,action:"select",qs:{"select-type":jf.SelectType},VersionId:jf.VersionId,body:fm,DataType:"arraybuffer",rawBody:!0,tracker:jf.tracker},function(Tm,_m){if(Tm&&Tm.statusCode===204)return Uh(null,{statusCode:Tm.statusCode});if(Tm)return Uh(Tm);var Zh=pd.parseSelectPayload(_m.body);Uh(null,{statusCode:_m.statusCode,headers:_m.headers,Body:Zh.body,Payload:Zh.payload})})}function Dm(jf,Uh){var wh=this,Bh=jf.Headers,fm=jf.tracker;!Bh["Cache-Control"]&&!Bh["cache-control"]&&(Bh["Cache-Control"]=""),!Bh["Content-Type"]&&!Bh["content-type"]&&(Bh["Content-Type"]=jf.Body&&jf.Body.type||"");var dm=jf.Body&&(jf.UploadAddMetaMd5||wh.options.UploadAddMetaMd5);dm&&fm&&fm.setParams({md5StartTime:new Date().getTime()}),pd.getBodyMd5(dm,jf.Body,function(Tm){Tm&&(jf.Headers["x-cos-meta-md5"]=Tm),dm&&fm&&fm.setParams({md5EndTime:new Date().getTime()}),dg.call(wh,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,action:"uploads",headers:jf.Headers,qs:jf.Query,tracker:fm},function(_m,Zh){if(_m)return fm&&fm.parent&&fm.parent.setParams({errorNode:"multipartInit"}),Uh(_m);if(Zh=pd.clone(Zh||{}),Zh&&Zh.InitiateMultipartUploadResult)return Uh(null,pd.extend(Zh.InitiateMultipartUploadResult,{statusCode:Zh.statusCode,headers:Zh.headers}));Uh(null,Zh)})},jf.onHashProgress)}function zm(jf,Uh){var wh=this;pd.getFileSize("multipartUpload",jf,function(){var Bh=jf.tracker,fm=wh.options.UploadCheckContentMd5;fm&&Bh&&Bh.setParams({md5StartTime:new Date().getTime()}),pd.getBodyMd5(fm,jf.Body,function(dm){dm&&(jf.Headers["Content-MD5"]=pd.b64(dm)),fm&&Bh&&Bh.setParams({md5EndTime:new Date().getTime()}),Bh&&Bh.setParams({partNumber:jf.PartNumber}),dg.call(wh,{Action:"name/cos:UploadPart",TaskId:jf.TaskId,method:"PUT",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,qs:{partNumber:jf.PartNumber,uploadId:jf.UploadId},headers:jf.Headers,onProgress:jf.onProgress,body:jf.Body||null,tracker:Bh},function(Tm,_m){if(Tm)return Bh&&Bh.parent&&Bh.parent.setParams({errorNode:"multipartUpload"}),Uh(Tm);Uh(null,{ETag:pd.attr(_m.headers,"etag",""),statusCode:_m.statusCode,headers:_m.headers})})})})}function jm(jf,Uh){for(var wh=this,Bh=jf.UploadId,fm=jf.Parts,dm=jf.tracker,Tm=0,_m=fm.length;Tm<_m;Tm++)fm[Tm].ETag&&fm[Tm].ETag.indexOf('"')===0||(fm[Tm].ETag='"'+fm[Tm].ETag+'"');var Zh=pd.json2xml({CompleteMultipartUpload:{Part:fm}});Zh=Zh.replace(/\n\s*/g,"");var Gm=jf.Headers;Gm["Content-Type"]="application/xml",Gm["Content-MD5"]=pd.b64(pd.md5(Zh)),dg.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,qs:{uploadId:Bh},body:Zh,headers:Gm,tracker:dm},function(Km,xg){if(Km)return dm&&dm.parent&&dm.parent.setParams({errorNode:"multipartComplete"}),Uh(Km);var eg=a_({ForcePathStyle:wh.options.ForcePathStyle,protocol:wh.options.Protocol,domain:wh.options.Domain,bucket:jf.Bucket,region:jf.Region,object:jf.Key,isLocation:!0}),Ag=xg.CompleteMultipartUploadResult||{};if(Ag.ProcessResults&&(Ag.UploadResult={OriginalInfo:{Key:Ag.Key,Location:eg,ETag:Ag.ETag,ImageInfo:Ag.ImageInfo},ProcessResults:Ag.ProcessResults},delete Ag.ImageInfo,delete Ag.ProcessResults),Ag.CallbackResult){var d_=Ag.CallbackResult;if(d_.Status==="200"&&d_.CallbackBody)try{Ag.CallbackBody=JSON.parse(pd.decodeBase64(d_.CallbackBody))}catch{Ag.CallbackBody={}}else Ag.CallbackError=d_.Error||{};delete Ag.CallbackResult}if(Ag.ReturnBodyResult){var u_=Ag.ReturnBodyResult;if(u_.Status==="200"&&u_.ReturnBody)try{Ag.ReturnBody=JSON.parse(pd.decodeBase64(u_.ReturnBody))}catch{Ag.ReturnBody={}}else Ag.ReturnError={Code:u_.Code,Message:u_.Message,Status:u_.Status};delete Ag.ReturnBodyResult}var Xg=pd.extend(Ag,{Location:eg,statusCode:xg.statusCode,headers:xg.headers});Uh(null,Xg)})}function ig(jf,Uh){var wh={};wh.delimiter=jf.Delimiter,wh["encoding-type"]=jf.EncodingType,wh.prefix=jf.Prefix||"",wh["max-uploads"]=jf.MaxUploads,wh["key-marker"]=jf.KeyMarker,wh["upload-id-marker"]=jf.UploadIdMarker,wh=pd.clearKey(wh);var Bh=jf.tracker;Bh&&Bh.setParams({signStartTime:new Date().getTime()}),dg.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:wh.prefix,method:"GET",Bucket:jf.Bucket,Region:jf.Region,headers:jf.Headers,qs:wh,action:"uploads",tracker:Bh},function(fm,dm){if(fm)return Bh&&Bh.parent&&Bh.parent.setParams({errorNode:"multipartList"}),Uh(fm);if(dm&&dm.ListMultipartUploadsResult){var Tm=dm.ListMultipartUploadsResult.Upload||[];Tm=pd.isArray(Tm)?Tm:[Tm],dm.ListMultipartUploadsResult.Upload=Tm}var _m=pd.clone(dm.ListMultipartUploadsResult||{});pd.extend(_m,{statusCode:dm.statusCode,headers:dm.headers}),Uh(null,_m)})}function Zm(jf,Uh){var wh={},Bh=jf.tracker;wh.uploadId=jf.UploadId,wh["encoding-type"]=jf.EncodingType,wh["max-parts"]=jf.MaxParts,wh["part-number-marker"]=jf.PartNumberMarker,dg.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:jf.Headers,qs:wh,tracker:Bh},function(fm,dm){if(fm)return Bh&&Bh.parent&&Bh.parent.setParams({errorNode:"multipartListPart"}),Uh(fm);var Tm=dm.ListPartsResult||{},_m=Tm.Part||[];_m=pd.isArray(_m)?_m:[_m],Tm.Part=_m;var Zh=pd.clone(Tm);pd.extend(Zh,{statusCode:dm.statusCode,headers:dm.headers}),Uh(null,Zh)})}function ug(jf,Uh){var wh={};wh.uploadId=jf.UploadId,dg.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,headers:jf.Headers,qs:wh,tracker:jf.tracker},function(Bh,fm){if(Bh)return Uh(Bh);Uh(null,{statusCode:fm.statusCode,headers:fm.headers})})}function wg(jf,Uh){dg.call(this,{method:jf.Method,Bucket:jf.Bucket,Region:jf.Region,Key:jf.Key,action:jf.Action,headers:jf.Headers,qs:jf.Query,body:jf.Body,Url:jf.Url,rawBody:jf.RawBody,DataType:jf.DataType,tracker:jf.tracker},function(wh,Bh){if(wh)return Uh(wh);Bh&&Bh.body&&(Bh.Body=Bh.body,delete Bh.body),Uh(wh,Bh)})}function Kg(jf,Uh){var wh=jf.Headers;!wh["Cache-Control"]&&!wh["cache-control"]&&(wh["Cache-Control"]=""),!wh["Content-Type"]&&!wh["content-type"]&&(wh["Content-Type"]=jf.Body&&jf.Body.type||""),dg.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:jf.Bucket,Region:jf.Region,action:"append",Key:jf.Key,body:jf.Body,qs:{position:jf.Position},headers:jf.Headers,tracker:jf.tracker},function(Bh,fm){if(Bh)return Uh(Bh);Uh(null,fm)})}function Gg(jf){var Uh=this;return pd.getAuth({SecretId:jf.SecretId||this.options.SecretId||"",SecretKey:jf.SecretKey||this.options.SecretKey||"",Bucket:jf.Bucket,Region:jf.Region,Method:jf.Method,Key:jf.Key,Query:jf.Query,Headers:jf.Headers,Expires:jf.Expires,UseRawKey:Uh.options.UseRawKey,SystemClockOffset:Uh.options.SystemClockOffset})}function n_(jf,Uh){var wh=this,Bh=jf.UseAccelerate===void 0?wh.options.UseAccelerate:jf.UseAccelerate,fm=a_({ForcePathStyle:wh.options.ForcePathStyle,protocol:jf.Protocol||wh.options.Protocol,domain:jf.Domain||wh.options.Domain,bucket:jf.Bucket,region:Bh?"accelerate":jf.Region,object:jf.Key}),dm="";jf.Query&&(dm+=pd.obj2str(jf.Query)),jf.QueryString&&(dm+=(dm?"&":"")+jf.QueryString);var Tm=fm;if(jf.Sign!==void 0&&!jf.Sign)return dm&&(Tm+="?"+dm),Uh(null,{Url:Tm}),Tm;var _m=M_.call(this,{Bucket:jf.Bucket,Region:jf.Region,UseAccelerate:jf.UseAccelerate,Url:fm}),Zh=B_.call(this,{Action:(jf.Method||"").toUpperCase()==="PUT"?"name/cos:PutObject":"name/cos:GetObject",Bucket:jf.Bucket||"",Region:jf.Region||"",Method:jf.Method||"get",Key:jf.Key,Expires:jf.Expires,Headers:jf.Headers,Query:jf.Query,SignHost:_m,ForceSignHost:jf.ForceSignHost===!1?!1:wh.options.ForceSignHost},function(Gm,Km){if(Uh){if(Gm){Uh(Gm);return}var xg=function(d_){var u_=d_.match(/q-url-param-list.*?(?=&)/g)[0],Xg="q-url-param-list="+encodeURIComponent(u_.replace(/q-url-param-list=/,"")).toLowerCase(),lg=new RegExp(u_,"g"),N_=d_.replace(lg,Xg);return N_},eg=fm;eg+="?"+(Km.Authorization.indexOf("q-signature")>-1?xg(Km.Authorization):"sign="+encodeURIComponent(Km.Authorization)),Km.SecurityToken&&(eg+="&x-cos-security-token="+Km.SecurityToken),Km.ClientIP&&(eg+="&clientIP="+Km.ClientIP),Km.ClientUA&&(eg+="&clientUA="+Km.ClientUA),Km.Token&&(eg+="&token="+Km.Token),dm&&(eg+="&"+dm),setTimeout(function(){Uh(null,{Url:eg})})}});return Zh?(Tm+="?"+Zh.Authorization+(Zh.SecurityToken?"&x-cos-security-token="+Zh.SecurityToken:""),dm&&(Tm+="&"+dm)):dm&&(Tm+="?"+dm),Tm}function Pg(jf){var Uh={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},wh={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},Bh=jf&&jf.AccessControlList||{},fm=Bh.Grant;fm&&(fm=pd.isArray(fm)?fm:[fm]);var dm={READ:0,WRITE:0,FULL_CONTROL:0};return fm&&fm.length&&pd.each(fm,function(Tm){var _m=Tm.Grantee.URI&&Tm.Grantee.URI.endsWith("/groups/global/AllUsers");Tm.Grantee.ID==="qcs::cam::anyone:anyone"||_m?dm[Tm.Permission]=1:Tm.Grantee.ID!==jf.Owner.ID&&Uh[wh[Tm.Permission]].push('id="'+Tm.Grantee.ID+'"')}),dm.FULL_CONTROL||dm.WRITE&&dm.READ?Uh.ACL="public-read-write":dm.READ?Uh.ACL="public-read":Uh.ACL="private",pd.each(wh,function(Tm){Uh[Tm]=m_(Uh[Tm].join(","))}),Uh}function m_(jf){var Uh=jf.split(","),wh={},Bh,fm;for(Bh=0;Bh"u"?"undefined":ud(location))==="object"&&location.protocol==="http:"?"http:":"https:");dm||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(Uh)>-1?dm="{Region}.myqcloud.com":dm="cos.{Region}.myqcloud.com",jf.ForcePathStyle||(dm="{Bucket}."+dm)),dm=dm.replace(/\{\{AppId\}\}/gi,fm).replace(/\{\{Bucket\}\}/gi,Bh).replace(/\{\{Region\}\}/gi,Uh).replace(/\{\{.*?\}\}/gi,""),dm=dm.replace(/\{AppId\}/gi,fm).replace(/\{BucketName\}/gi,Bh).replace(/\{Bucket\}/gi,wh).replace(/\{Region\}/gi,Uh).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(dm)||(dm=_m+"//"+dm),dm.slice(-1)==="/"&&(dm=dm.slice(0,-1));var Zh=dm;return jf.ForcePathStyle&&(Zh+="/"+wh),Zh+="/",Tm&&(Zh+=pd.camSafeUrlEncode(Tm).replace(/%2F/g,"/")),jf.isLocation&&(Zh=Zh.replace(/^https?:\/\//,"")),Zh}var M_=function(Uh){if(!Uh.Bucket||!Uh.Region)return"";var wh=Uh.UseAccelerate===void 0?this.options.UseAccelerate:Uh.UseAccelerate,Bh=Uh.Url||a_({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:Uh.Bucket,region:wh?"accelerate":Uh.Region}),fm=Bh.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return fm};function B_(jf,Uh){var wh=pd.clone(jf.Headers),Bh="";pd.each(wh,function(Zg,Ug){(Zg===""||["content-type","cache-control","expires"].indexOf(Ug.toLowerCase())>-1)&&delete wh[Ug],Ug.toLowerCase()==="host"&&(Bh=Zg)});var fm=jf.ForceSignHost!==!1;!Bh&&jf.SignHost&&fm&&(wh.Host=jf.SignHost);var dm=!1,Tm=function(Ug,Ch){dm||(dm=!0,Ch&&Ch.XCosSecurityToken&&!Ch.SecurityToken&&(Ch=pd.clone(Ch),Ch.SecurityToken=Ch.XCosSecurityToken,delete Ch.XCosSecurityToken),Uh&&Uh(Ug,Ch))},_m=this,Zh=jf.Bucket||"",Gm=jf.Region||"",Km=jf.Key||"";_m.options.ForcePathStyle&&Zh&&(Km=Zh+"/"+Km);var xg="/"+Km,eg={},Ag=jf.Scope;if(!Ag){var d_=jf.Action||"",u_=jf.ResourceKey||jf.Key||"";Ag=jf.Scope||[{action:d_,bucket:Zh,region:Gm,prefix:u_}]}var Xg=pd.md5(JSON.stringify(Ag));_m._StsCache=_m._StsCache||[],function(){var Zg,Ug;for(Zg=_m._StsCache.length-1;Zg>=0;Zg--){Ug=_m._StsCache[Zg];var Ch=Math.round(pd.getSkewTime(_m.options.SystemClockOffset)/1e3)+30;if(Ug.StartTime&&Ch=Ug.ExpiredTime){_m._StsCache.splice(Zg,1);continue}if(!Ug.ScopeLimit||Ug.ScopeLimit&&Ug.ScopeKey===Xg){eg=Ug;break}}}();var lg=function(){var Ug="";eg.StartTime&&jf.Expires?Ug=eg.StartTime+";"+(eg.StartTime+jf.Expires*1):eg.StartTime&&eg.ExpiredTime&&(Ug=eg.StartTime+";"+eg.ExpiredTime);var Ch=pd.getAuth({SecretId:eg.TmpSecretId,SecretKey:eg.TmpSecretKey,Method:jf.Method,Pathname:xg,Query:jf.Query,Headers:wh,Expires:jf.Expires,UseRawKey:_m.options.UseRawKey,SystemClockOffset:_m.options.SystemClockOffset,KeyTime:Ug,ForceSignHost:fm}),um={Authorization:Ch,SecurityToken:eg.SecurityToken||eg.XCosSecurityToken||"",Token:eg.Token||"",ClientIP:eg.ClientIP||"",ClientUA:eg.ClientUA||"",SignFrom:"client"};Tm(null,um)},N_=function(Ug){if(Ug.Authorization){var Ch=!1,um=Ug.Authorization;if(um)if(um.indexOf(" ")>-1)Ch=!1;else if(um.indexOf("q-sign-algorithm=")>-1&&um.indexOf("q-ak=")>-1&&um.indexOf("q-sign-time=")>-1&&um.indexOf("q-key-time=")>-1&&um.indexOf("q-url-param-list=")>-1)Ch=!0;else try{um=atob(um),um.indexOf("a=")>-1&&um.indexOf("k=")>-1&&um.indexOf("t=")>-1&&um.indexOf("r=")>-1&&um.indexOf("b=")>-1&&(Ch=!0)}catch{}if(!Ch)return pd.error(new Error("getAuthorization callback params format error"))}else{if(!Ug.TmpSecretId)return pd.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Ug.TmpSecretKey)return pd.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Ug.SecurityToken&&!Ug.XCosSecurityToken)return pd.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Ug.ExpiredTime)return pd.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Ug.ExpiredTime&&Ug.ExpiredTime.toString().length!==10)return pd.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Ug.StartTime&&Ug.StartTime.toString().length!==10)return pd.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(eg.ExpiredTime&&eg.ExpiredTime-pd.getSkewTime(_m.options.SystemClockOffset)/1e3>60)lg();else if(_m.options.getAuthorization)_m.options.getAuthorization.call(_m,{Bucket:Zh,Region:Gm,Method:jf.Method,Key:Km,Pathname:xg,Query:jf.Query,Headers:wh,Scope:Ag,SystemClockOffset:_m.options.SystemClockOffset,ForceSignHost:fm},function(Zg){typeof Zg=="string"&&(Zg={Authorization:Zg});var Ug=N_(Zg);if(Ug)return Tm(Ug);Zg.Authorization?Tm(null,Zg):(eg=Zg||{},eg.Scope=Ag,eg.ScopeKey=Xg,_m._StsCache.push(eg),lg())});else if(_m.options.getSTS)_m.options.getSTS.call(_m,{Bucket:Zh,Region:Gm},function(Zg){eg=Zg||{},eg.Scope=Ag,eg.ScopeKey=Xg,eg.TmpSecretId||(eg.TmpSecretId=eg.SecretId),eg.TmpSecretKey||(eg.TmpSecretKey=eg.SecretKey);var Ug=N_(eg);if(Ug)return Tm(Ug);_m._StsCache.push(eg),lg()});else return function(){var Zg="";if(_m.options.StartTime&&jf.Expires){if(_m.options.StartTime.toString().length!==10)return Tm(pd.error(new Error('params "StartTime" should be 10 digits')));Zg=_m.options.StartTime+";"+(_m.options.StartTime+jf.Expires*1)}else if(_m.options.StartTime&&_m.options.ExpiredTime){if(_m.options.StartTime.toString().length!==10)return Tm(pd.error(new Error('params "StartTime" should be 10 digits')));if(_m.options.ExpiredTime.toString().length!==10)return Tm(pd.error(new Error('params "ExpiredTime" should be 10 digits')));Zg=_m.options.StartTime+";"+_m.options.ExpiredTime*1}var Ug=pd.getAuth({SecretId:jf.SecretId||_m.options.SecretId,SecretKey:jf.SecretKey||_m.options.SecretKey,Method:jf.Method,Pathname:xg,Query:jf.Query,Headers:wh,Expires:jf.Expires,KeyTime:Zg,UseRawKey:_m.options.UseRawKey,SystemClockOffset:_m.options.SystemClockOffset,ForceSignHost:fm}),Ch={Authorization:Ug,SecurityToken:_m.options.SecurityToken||_m.options.XCosSecurityToken,SignFrom:"client"};return Tm(null,Ch),Ch}();return""}function h_(jf){var Uh=this,wh=!1,Bh=!1,fm=!1,dm=jf.headers&&(jf.headers.date||jf.headers.Date)||jf.error&&jf.error.ServerTime;try{var Tm=jf.error.Code,_m=jf.error.Message;(Tm==="RequestTimeTooSkewed"||Tm==="AccessDenied"&&_m==="Request has expired")&&(Bh=!0)}catch{}if(jf)if(Bh&&dm){var Zh=Date.parse(dm);this.options.CorrectClockSkew&&Math.abs(pd.getSkewTime(this.options.SystemClockOffset)-Zh)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=Zh-Date.now(),wh=!0)}else Math.floor(jf.statusCode/100)===5?wh=!0:jf.message==="CORS blocked or network error"&&(fm=!0,wh=Uh.options.AutoSwitchHost);return{canRetry:wh,networkError:fm}}function y_(jf){var Uh=jf.requestUrl,wh=jf.clientCalcSign,Bh=jf.networkError;if(!this.options.AutoSwitchHost||!Uh||!wh||!Bh)return!1;var fm=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,dm=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,Tm=fm.test(Uh)&&!dm.test(Uh);return Tm}function dg(jf,Uh){var wh=this;!jf.headers&&(jf.headers={}),!jf.qs&&(jf.qs={}),jf.VersionId&&(jf.qs.versionId=jf.VersionId),jf.qs=pd.clearKey(jf.qs),jf.headers&&(jf.headers=pd.clearKey(jf.headers)),jf.qs&&(jf.qs=pd.clearKey(jf.qs));var Bh=pd.clone(jf.qs);jf.action&&(Bh[jf.action]="");var fm=jf.url||jf.Url,dm=jf.SignHost||M_.call(this,{Bucket:jf.Bucket,Region:jf.Region,Url:fm}),Tm=jf.tracker,_m=function Zh(Gm){var Km=wh.options.SystemClockOffset;Tm&&Tm.setParams({signStartTime:new Date().getTime(),httpRetryTimes:Gm-1}),jf.SwitchHost&&(dm=dm.replace(/myqcloud.com/,"tencentcos.cn")),B_.call(wh,{Bucket:jf.Bucket||"",Region:jf.Region||"",Method:jf.method,Key:jf.Key,Query:Bh,Headers:jf.headers,SignHost:dm,Action:jf.Action,ResourceKey:jf.ResourceKey,Scope:jf.Scope,ForceSignHost:wh.options.ForceSignHost,SwitchHost:jf.SwitchHost},function(xg,eg){if(xg){Uh(xg);return}Tm&&Tm.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),jf.AuthData=eg,vb.call(wh,jf,function(Ag,d_){Tm&&Tm.setParams({httpEndTime:new Date().getTime()});var u_=!1,Xg=!1;if(Ag){var lg=h_.call(wh,Ag);u_=lg.canRetry||Km!==wh.options.SystemClockOffset,Xg=lg.networkError}if(Ag&&Gm<2&&u_){jf.headers&&(delete jf.headers.Authorization,delete jf.headers.token,delete jf.headers.clientIP,delete jf.headers.clientUA,jf.headers["x-cos-security-token"]&&delete jf.headers["x-cos-security-token"],jf.headers["x-ci-security-token"]&&delete jf.headers["x-ci-security-token"]);var N_=y_.call(wh,{requestUrl:(Ag==null?void 0:Ag.url)||"",clientCalcSign:eg.SignFrom==="client",networkError:Xg});jf.SwitchHost=N_,jf.retry=!0,Zh(Gm+1)}else Uh(Ag,d_)})})};_m(1)}function vb(jf,Uh){var wh=this,Bh=jf.TaskId;if(!(Bh&&!wh._isRunningTask(Bh))){var fm=jf.Bucket,dm=jf.Region,Tm=jf.Key,_m=jf.method||"GET",Zh=jf.Url||jf.url,Gm=jf.body,Km=jf.rawBody;wh.options.UseAccelerate&&(dm="accelerate"),Zh=Zh||a_({ForcePathStyle:wh.options.ForcePathStyle,protocol:wh.options.Protocol,domain:wh.options.Domain,bucket:fm,region:dm,object:Tm}),jf.SwitchHost&&(Zh=Zh.replace(/myqcloud.com/,"tencentcos.cn"));var xg=Tm?Zh:"";jf.action&&(Zh=Zh+"?"+(pd.isIOS_QQ?"".concat(jf.action,"="):jf.action)),jf.qsStr&&(Zh.indexOf("?")>-1?Zh=Zh+"&"+jf.qsStr:Zh=Zh+"?"+jf.qsStr);var eg={method:_m,url:Zh,headers:jf.headers,qs:jf.qs,body:Gm},Ag="x-cos-security-token";if(pd.isCIHost(Zh)&&(Ag="x-ci-security-token"),eg.headers.Authorization=jf.AuthData.Authorization,jf.AuthData.Token&&(eg.headers.token=jf.AuthData.Token),jf.AuthData.ClientIP&&(eg.headers.clientIP=jf.AuthData.ClientIP),jf.AuthData.ClientUA&&(eg.headers.clientUA=jf.AuthData.ClientUA),jf.AuthData.SecurityToken&&(eg.headers[Ag]=jf.AuthData.SecurityToken),eg.headers&&(eg.headers=pd.clearKey(eg.headers)),jf.retry&&(eg.headers["x-cos-sdk-retry"]=!0),eg=pd.clearKey(eg),jf.onProgress&&typeof jf.onProgress=="function"){var d_=Gm&&(Gm.size||Gm.length)||0;eg.onProgress=function(Ch){if(!(Bh&&!wh._isRunningTask(Bh))){var um=Ch?Ch.loaded:0;jf.onProgress({loaded:um,total:d_})}}}jf.onDownloadProgress&&(eg.onDownloadProgress=jf.onDownloadProgress),jf.DataType&&(eg.dataType=jf.DataType),this.options.Timeout&&(eg.timeout=this.options.Timeout),wh.options.ForcePathStyle&&(eg.pathStyle=wh.options.ForcePathStyle),wh.emit("before-send",eg);var u_=eg.url.includes("accelerate."),Xg=eg.qs?Object.keys(eg.qs).map(function(Ch){return"".concat(Ch,"=").concat(eg.qs[Ch])}).join("&"):"",lg=Xg?eg.url+"?"+Xg:eg.url;if(jf.tracker){var N_;jf.tracker.setParams({url:lg,httpMethod:eg.method,accelerate:u_,httpSize:((N_=eg.body)===null||N_===void 0?void 0:N_.size)||0}),jf.tracker.parent&&!jf.tracker.parent.params.url&&jf.tracker.parent.setParams({url:xg,accelerate:u_})}var Zg=(wh.options.Request||dd)(eg,function(Ch){if(!(Ch&&Ch.error==="abort")){var um={options:eg,error:Ch&&Ch.error,statusCode:Ch&&Ch.statusCode||0,statusMessage:Ch&&Ch.statusMessage||"",headers:Ch&&Ch.headers||{},body:Ch&&Ch.body};wh.emit("after-receive",um);var Ym=um.error,ng=um.body,Um={statusCode:um.statusCode,statusMessage:um.statusMessage,headers:um.headers},Eg,r_=function(xb,O_){if(Bh&&wh.off("inner-kill-task",Ug),!Eg){Eg=!0;var ib={};if(Um&&Um.statusCode&&(ib.statusCode=Um.statusCode),Um&&Um.headers&&(ib.headers=Um.headers),xb)eg.url&&(ib.url=eg.url),eg.method&&(ib.method=eg.method),xb=pd.extend(xb||{},ib),Uh(xb,null);else{if(jf.Action==="name/cos:PutObject"){var W_={};for(var qb in jf.headers){var y0=qb.toLowerCase();W_[y0]=jf.headers[qb]}W_["x-cos-callback"]?O_.Error?(O_.CallbackError=pd.clone(O_.Error),delete O_.Error):O_.CallbackBody=pd.clone(O_):W_["x-cos-return-body"]&&(O_.Error?(O_.ReturnError=pd.clone(O_.Error),delete O_.Error):O_.ReturnBody=pd.clone(O_))}O_=pd.extend(O_||{},ib),Uh(null,O_)}Zg=null}};if(Ym)return r_(pd.error(Ym));var R_=Um.statusCode,G_=Math.floor(R_/100)===2;if(Km){if(G_)return r_(null,{body:ng});if(ng instanceof Blob){pd.readAsBinaryString(ng,function(qg){var xb=pd.parseResBody(qg),O_=xb.Error||xb;return r_(pd.error(new Error(O_.Message||"response body error"),{code:O_.Code,error:O_}))});return}}var Tb=pd.parseResBody(ng),Gb=Tb.Error||Tb;G_?r_(null,Tb):Gb?r_(pd.error(new Error(Gb.Message),{code:Gb.Code,error:Gb})):R_?r_(pd.error(new Error(Um.statusMessage),{code:""+R_})):R_&&r_(pd.error(new Error("statusCode error")))}}),Ug=function Ch(um){um.TaskId===Bh&&(Zg&&Zg.abort&&Zg.abort(),wh.off("inner-kill-task",Ch))};Bh&&wh.on("inner-kill-task",Ug)}}var kb={getService:fd,putBucket:md,headBucket:vd,getBucket:Ad,deleteBucket:Nd,putBucketAcl:Od,getBucketAcl:kd,putBucketCors:Ld,getBucketCors:Gd,deleteBucketCors:jd,getBucketLocation:Fd,getBucketPolicy:qd,putBucketPolicy:Ud,deleteBucketPolicy:zd,putBucketTagging:Wd,getBucketTagging:Jd,deleteBucketTagging:_f,putBucketLifecycle:Xd,getBucketLifecycle:pf,deleteBucketLifecycle:mf,putBucketVersioning:Sf,getBucketVersioning:Tf,putBucketReplication:Af,getBucketReplication:Ef,deleteBucketReplication:Nf,putBucketWebsite:If,getBucketWebsite:Gf,deleteBucketWebsite:Qf,putBucketReferer:Xf,getBucketReferer:ph,putBucketDomain:qf,getBucketDomain:Lf,deleteBucketDomain:Wf,putBucketOrigin:Jf,getBucketOrigin:Kf,deleteBucketOrigin:Cf,putBucketLogging:xf,getBucketLogging:Yf,putBucketInventory:Rh,postBucketInventory:th,getBucketInventory:Bf,listBucketInventory:Sh,deleteBucketInventory:Fh,putBucketAccelerate:uh,getBucketAccelerate:Pf,putBucketEncryption:Uf,getBucketEncryption:Zf,deleteBucketEncryption:mh,getObject:pm,headObject:Mh,listObjectVersions:_h,putObject:Jh,deleteObject:Mm,getObjectAcl:Im,putObjectAcl:gm,optionsObject:Lm,putObjectCopy:Vm,deleteMultipleObject:Rf,restoreObject:wf,putObjectTagging:sh,getObjectTagging:xh,deleteObjectTagging:Wh,selectObjectContent:om,appendObject:Kg,uploadPartCopy:Th,multipartInit:Dm,multipartUpload:zm,multipartComplete:jm,multipartList:ig,multipartListPart:Zm,multipartAbort:ug,request:wg,getObjectUrl:n_,getAuth:Gg};function Z_(jf,Uh,wh){pd.each(["Cors","Acl"],function(Bh){if(jf.slice(-Bh.length)===Bh){var fm=jf.slice(0,-Bh.length)+Bh.toUpperCase(),dm=pd.apiWrapper(jf,Uh),Tm=!1;wh[fm]=function(){!Tm&&console.warn("warning: cos."+fm+" has been deprecated. Please Use cos."+jf+" instead."),Tm=!0,dm.apply(this,arguments)}}})}nd.exports.init=function(jf,Uh){Uh.transferToTaskMethod(kb,"putObject"),pd.each(kb,function(wh,Bh){jf.prototype[Bh]=pd.apiWrapper(Bh,wh),Z_(Bh,wh,jf.prototype)})}},"./src/cos.js":function(nd,od,ld){var ud=ld("./src/util.js"),dd=ld("./src/event.js"),pd=ld("./src/task.js"),fd=ld("./src/base.js"),md=ld("./src/advance.js"),vd=ld("./package.json"),Ad={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",StartTime:0,ExpiredTime:0,ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null},Nd=function(kd){if(this.options=ud.extend(ud.clone(Ad),kd||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),ud.isNode()&&(console.log("Tip: Next.js、Nuxt.js 等服务端渲染技术可正常使用JavaScript SDK,请忽略下方 nodejs 环境警告"),console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5不再支持使用path-style,仅支持使用virtual-hosted-style,参考文档:https://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");dd.init(this),pd.init(this)};fd.init(Nd,pd),md.init(Nd,pd),Nd.util={md5:ud.md5,xml2json:ud.xml2json,json2xml:ud.json2xml,encodeBase64:ud.encodeBase64},Nd.getAuthorization=ud.getAuth,Nd.version=vd.version,nd.exports=Nd},"./src/event.js":function(nd,od){var ld=function(pd){var fd={},md=function(Ad){return!fd[Ad]&&(fd[Ad]=[]),fd[Ad]};pd.on=function(vd,Ad){vd==="task-list-update"&&console.warn('warning: Event "'+vd+'" has been deprecated. Please use "list-update" instead.'),md(vd).push(Ad)},pd.off=function(vd,Ad){for(var Nd=md(vd),Od=Nd.length-1;Od>=0;Od--)Ad===Nd[Od]&&Nd.splice(Od,1)},pd.emit=function(vd,Ad){for(var Nd=md(vd).map(function(kd){return kd}),Od=0;Od=0;Fd--){var Ud=fd[Fd][2];(!Ud||Ud+pd=0;Ud--){var qd=fd[Ud];qd[0]===Gd&&qd[1]===jd&&fd.splice(Ud,1)}fd.unshift([Gd,jd,Math.round(Date.now()/1e3)]),fd.length>Fd&&fd.splice(Fd),Od()}},removeUploadId:function(Gd){Nd.call(this),delete kd.using[Gd];for(var jd=fd.length-1;jd>=0;jd--)fd[jd][1]===Gd&&fd.splice(jd,1);Od()}};nd.exports=kd},"./src/task.js":function(nd,od,ld){var ud=ld("./src/session.js"),dd=ld("./src/util.js"),pd={},fd=function(Ad,Nd){pd[Nd]=Ad[Nd],Ad[Nd]=function(Od,kd){Od.SkipTask?pd[Nd].call(this,Od,kd):this._addTask(Nd,Od,kd)}},md=function(Ad){var Nd=[],Od={},kd=0,Ld=0,Gd=function(Jd){var _f={id:Jd.id,Bucket:Jd.Bucket,Region:Jd.Region,Key:Jd.Key,FilePath:Jd.FilePath,state:Jd.state,loaded:Jd.loaded,size:Jd.size,speed:Jd.speed,percent:Jd.percent,hashPercent:Jd.hashPercent,error:Jd.error};return Jd.FilePath&&(_f.FilePath=Jd.FilePath),Jd._custom&&(_f._custom=Jd._custom),_f},jd=function(){var Wd,Jd=function(){Wd=0,Ad.emit("task-list-update",{list:dd.map(Nd,Gd)}),Ad.emit("list-update",{list:dd.map(Nd,Gd)})};return function(){Wd||(Wd=setTimeout(Jd))}}(),Fd=function(){if(!(Nd.length<=Ad.options.UploadQueueSize)){for(var Jd=0;JdAd.options.UploadQueueSize;){var _f=Nd[Jd].state==="waiting"||Nd[Jd].state==="checking"||Nd[Jd].state==="uploading";!Nd[Jd]||!_f?(Od[Nd[Jd].id]&&delete Od[Nd[Jd].id],Nd.splice(Jd,1),Ld--):Jd++}jd()}},Ud=function Wd(){if(!(kd>=Ad.options.FileParallelLimit)){for(;Nd[Ld]&&Nd[Ld].state!=="waiting";)Ld++;if(!(Ld>=Nd.length)){var Jd=Nd[Ld];Ld++,kd++,Jd.state="checking",Jd.params.onTaskStart&&Jd.params.onTaskStart(Gd(Jd)),!Jd.params.UploadData&&(Jd.params.UploadData={});var _f=dd.formatParams(Jd.api,Jd.params);pd[Jd.api].call(Ad,_f,function(Xd,pf){Ad._isRunningTask(Jd.id)&&((Jd.state==="checking"||Jd.state==="uploading")&&(Jd.state=Xd?"error":"success",Xd&&(Jd.error=Xd),kd--,jd(),Wd(),Jd.callback&&Jd.callback(Xd,pf),Jd.state==="success"&&(Jd.params&&(delete Jd.params.UploadData,delete Jd.params.Body,delete Jd.params),delete Jd.callback)),Fd())}),jd(),setTimeout(Wd)}}},qd=function(Jd,_f){var Xd=Od[Jd];if(Xd){var pf=Xd&&Xd.state==="waiting",mf=Xd&&(Xd.state==="checking"||Xd.state==="uploading");if(_f==="canceled"&&Xd.state!=="canceled"||_f==="paused"&&pf||_f==="paused"&&mf){Xd.state=_f,Ad.emit("inner-kill-task",{TaskId:Jd,toState:_f});try{var Sf=Xd&&Xd.params&&Xd.params.UploadData.UploadId}catch{}_f==="canceled"&&Sf&&ud.removeUsing(Sf),jd(),mf&&(kd--,Ud()),_f==="canceled"&&(Xd.params&&(delete Xd.params.UploadData,delete Xd.params.Body,delete Xd.params),delete Xd.callback)}Fd()}};Ad._addTasks=function(Wd){dd.each(Wd,function(Jd){Ad._addTask(Jd.api,Jd.params,Jd.callback,!0)}),jd()};var zd=!0;Ad._addTask=function(Wd,Jd,_f,Xd){Jd=dd.formatParams(Wd,Jd);var pf=dd.uuid();Jd.TaskId=pf,Jd.onTaskReady&&Jd.onTaskReady(pf),Jd.TaskReady&&(Jd.TaskReady(pf),zd&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),zd=!1);var mf={params:Jd,callback:_f,api:Wd,index:Nd.length,id:pf,Bucket:Jd.Bucket,Region:Jd.Region,Key:Jd.Key,FilePath:Jd.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:Jd._custom},Sf=Jd.onHashProgress;Jd.onHashProgress=function(Af){Ad._isRunningTask(mf.id)&&(mf.hashPercent=Af.percent,Sf&&Sf(Af),jd())};var Tf=Jd.onProgress;return Jd.onProgress=function(Af){Ad._isRunningTask(mf.id)&&(mf.state==="checking"&&(mf.state="uploading"),mf.loaded=Af.loaded,mf.speed=Af.speed,mf.percent=Af.percent,Tf&&Tf(Af),jd())},dd.getFileSize(Wd,Jd,function(Af,Ef){if(Af)return _f(dd.error(Af));Od[pf]=mf,Nd.push(mf),mf.size=Ef,!Xd&&jd(),Ud(),Fd()}),pf},Ad._isRunningTask=function(Wd){var Jd=Od[Wd];return!!(Jd&&(Jd.state==="checking"||Jd.state==="uploading"))},Ad.getTaskList=function(){return dd.map(Nd,Gd)},Ad.cancelTask=function(Wd){qd(Wd,"canceled")},Ad.pauseTask=function(Wd){qd(Wd,"paused")},Ad.restartTask=function(Wd){var Jd=Od[Wd];Jd&&(Jd.state==="paused"||Jd.state==="error")&&(Jd.state="waiting",jd(),Ld=Math.min(Ld,Jd.index),Ud())},Ad.isUploadRunning=function(){return kd||Ld"u"?"undefined":pd(navigator))==="object"){var _f=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(_f==null?void 0:_f.type)||(_f==null?void 0:_f.effectiveType)||"unknown"}return"unknown"},getProtocol:function(){return(typeof location>"u"?"undefined":pd(location))==="object"?location.protocol.replace(/:/,""):"unknown protocol"},getOsType:function(){if((typeof navigator>"u"?"undefined":pd(navigator))!=="object")return"unknown os";var _f=navigator.userAgent.toLowerCase(),Xd=/macintosh|mac os x/i.test(navigator.userAgent);return _f.indexOf("win32")>=0||_f.indexOf("wow32")>=0?"win32":_f.indexOf("win64")>=0||_f.indexOf("wow64")>=0?"win64":Xd?"mac":"unknown os"},isMobile:function(){var _f=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator>"u"?"undefined":pd(navigator))==="object"&&navigator.userAgent.match(_f))},isAndroid:function(){var _f=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":pd(navigator))==="object"&&navigator.userAgent.match(_f))},isIOS:function(){var _f=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":pd(navigator))==="object"&&navigator.userAgent.match(_f))},isOtherMobile:function(){return Od&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":pd(navigator))!=="object")return"unknown device";var _f=navigator.userAgent;return _f}},Od=Nd.isMobile(),kd=Nd.isAndroid()?"android":Nd.isIOS?"ios":"other_mobile",Ld=Nd.getOsType(),Gd=Od?kd:Ld,jd=Nd.getUA(),Fd=Nd.getProtocol(),Ud=function(_f){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(_f)?"UploadTask":_f==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(_f)?"CopyTask":_f};function qd(Jd){return Jd.replace(/([A-Z])/g,"_$1").toLowerCase()}function zd(Jd){var _f={},Xd=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],pf=[].concat(Xd,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),mf=Jd.requestResult==="Success"?Xd:pf;for(var Sf in Jd)if(mf.includes(Sf)){var Tf=qd(Sf);_f[Tf]=Jd[Sf]}return _f.request_name=Jd.realApi?Ud(Jd.realApi):Jd.requestName,_f}var Wd=function(){function Jd(_f){ud(this,Jd);var Xd=_f.parent,pf=_f.traceId,mf=_f.bucket,Sf=_f.region,Tf=_f.apiName,Af=_f.realApi,Ef=_f.httpMethod,Nf=_f.fileKey,If=_f.fileSize,Gf=_f.accelerate,Qf=_f.customId,Xf=_f.delay,ph=_f.deepTracker,qf=_f.Beacon,Lf=_f.clsReporter,Wf=mf&&mf.substr(mf.lastIndexOf("-")+1)||"";this.parent=Xd,this.deepTracker=ph,this.delay=Xf,Lf&&!this.clsReporter&&(this.clsReporter=Lf),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:fd.version,osName:Gd,networkType:"",requestName:Tf||"",requestResult:"",realApi:Af,bucket:mf,region:Sf,accelerate:Gf,httpMethod:Ef,url:"",host:"",httpDomain:"",requestPath:Nf||"",userAgent:jd,networkProtocol:Fd,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:If||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0,traceId:pf||Nd.getUid(),appid:Wf,partNumber:0,httpRetryTimes:0,customId:Qf||"",partTime:0},qf&&(this.beacon=vd(qf,Xf))}return dd(Jd,[{key:"formatResult",value:function(Xd,pf){var mf,Sf,Tf,Af,Ef,Nf,If=new Date().getTime(),Gf=Nd.getNetType(),Qf=Xd?(Xd==null?void 0:Xd.code)||(Xd==null||(mf=Xd.error)===null||mf===void 0?void 0:mf.code)||(Xd==null||(Sf=Xd.error)===null||Sf===void 0?void 0:Sf.Code):"",Xf=Xd?(Xd==null?void 0:Xd.message)||(Xd==null||(Tf=Xd.error)===null||Tf===void 0?void 0:Tf.message)||(Xd==null||(Af=Xd.error)===null||Af===void 0?void 0:Af.Message):"",ph=Xf,qf=Xd?(Xd==null?void 0:Xd.resource)||(Xd==null||(Ef=Xd.error)===null||Ef===void 0?void 0:Ef.resource)||(Xd==null||(Nf=Xd.error)===null||Nf===void 0?void 0:Nf.Resource):"",Lf=Xd?Xd==null?void 0:Xd.statusCode:pf.statusCode,Wf=Xd?(Xd==null?void 0:Xd.headers)&&(Xd==null?void 0:Xd.headers["x-cos-request-id"]):(pf==null?void 0:pf.headers)&&(pf==null?void 0:pf.headers["x-cos-request-id"]),Jf=Xd?Wf?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=pf?pf.headers&&pf.headers["content-length"]:0);var Kf=this.params.realApi==="sliceUploadFile",Cf=this.params.realApi==="sliceCopyFile";if(Kf||Cf){var xf=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:xf<0?0:xf.toFixed(3)})}else{var Yf=If-this.params.startTime,dh=this.params.httpEndTime-this.params.httpStartTime,Rh=this.params.httpSize/1024/(dh/1e3),th=this.params.md5EndTime-this.params.md5StartTime,Bf=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",Ad(dh)),this.parent.addParamValue("httpFullTime",Ad(Yf)),this.parent.addParamValue("httpMd5",Ad(th)),this.parent.addParamValue("httpSign",Ad(Bf)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",Ad(dh))),Object.assign(this.params,{httpFullTime:Ad(Yf),httpMd5:Ad(th),httpSign:Ad(Bf),httpTookTime:Ad(dh),httpSpeed:Rh<0?0:Rh.toFixed(3)})}if(Object.assign(this.params,{networkType:Gf,requestResult:Xd?"Failure":"Success",errorType:Jf,errorCode:Qf,errorHttpCode:Lf,errorName:ph,errorMessage:Xf,errorServiceName:qf,errorRequestId:Wf}),Xd&&(!Qf||!Xf)&&(this.params.fullError=Xd?JSON.stringify(Xd):""),this.params.url){try{var Sh=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=Sh[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(Xd,pf){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(Xd,pf);var mf=zd(this.params);this.beacon&&this.sendEventsToBeacon(mf),this.clsReporter&&this.sendEventsToCLS(mf)}}},{key:"setParams",value:function(Xd){Object.assign(this.params,Xd)}},{key:"addParamValue",value:function(Xd,pf){this.params[Xd]=(+this.params[Xd]+ +pf).toFixed(3)}},{key:"sendEventsToBeacon",value:function(Xd){var pf=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(pf&&!this.deepTracker)){var mf="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(mf,Xd):this.beacon&&this.beacon.onUserAction(mf,Xd)}}},{key:"sendEventsToCLS",value:function(Xd){var pf=this.delay===0;this.clsReporter.log(Xd,pf)}},{key:"generateSubTracker",value:function(Xd){return Object.assign(Xd,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new Jd(Xd)}}]),Jd}();nd.exports=Wd},"./src/util.js":function(nd,od,ld){(function(ud){var dd=ld("./node_modules/@babel/runtime/helpers/typeof.js");function pd(Rf,wf){var sh=typeof Symbol<"u"&&Rf[Symbol.iterator]||Rf["@@iterator"];if(!sh){if(Array.isArray(Rf)||(sh=fd(Rf))||wf){sh&&(Rf=sh);var xh=0,Wh=function(){};return{s:Wh,n:function(){return xh>=Rf.length?{done:!0}:{done:!1,value:Rf[xh++]}},e:function(ig){throw ig},f:Wh}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var om=!0,Dm=!1,zm;return{s:function(){sh=sh.call(Rf)},n:function(){var ig=sh.next();return om=ig.done,ig},e:function(ig){Dm=!0,zm=ig},f:function(){try{!om&&sh.return!=null&&sh.return()}finally{if(Dm)throw zm}}}}function fd(Rf,wf){if(Rf){if(typeof Rf=="string")return md(Rf,wf);var sh=Object.prototype.toString.call(Rf).slice(8,-1);if(sh==="Object"&&Rf.constructor&&(sh=Rf.constructor.name),sh==="Map"||sh==="Set")return Array.from(Rf);if(sh==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(sh))return md(Rf,wf)}}function md(Rf,wf){(wf==null||wf>Rf.length)&&(wf=Rf.length);for(var sh=0,xh=new Array(wf);shom?1:-1})}var Jd=function(wf,sh){var xh,Wh,om,Dm=[],zm=Wd(wf);for(xh=0;xh-1||_f.indexOf(Wh)>-1)&&(sh[xh]=wf[xh])}return sh},pf=function(wf){wf=wf||{};var sh=wf.SecretId,xh=wf.SecretKey,Wh=wf.KeyTime,om=(wf.method||wf.Method||"get").toLowerCase(),Dm=Lf(wf.Query||wf.params||{}),zm=Xd(Lf(wf.Headers||wf.headers||{})),jm=wf.Key||"",ig;wf.UseRawKey?ig=wf.Pathname||wf.pathname||"/"+jm:(ig=wf.Pathname||wf.pathname||jm,ig.indexOf("/")!==0&&(ig="/"+ig));var Zm=wf.ForceSignHost!==!1;if(!zm.Host&&!zm.host&&wf.Bucket&&wf.Region&&Zm&&(zm.Host=wf.Bucket+".cos."+wf.Region+".myqcloud.com"),!sh)throw new Error("missing param SecretId");if(!xh)throw new Error("missing param SecretKey");var ug=Math.round(Zf(wf.SystemClockOffset)/1e3)-1,wg=ug,Kg=wf.Expires||wf.expires;Kg===void 0?wg+=900:wg+=Kg*1||0;var Gg="sha1",n_=sh,Pg=Wh||ug+";"+wg,m_=Wh||ug+";"+wg,a_=Wd(zm,!0).join(";").toLowerCase(),M_=Wd(Dm,!0).join(";").toLowerCase(),B_=Ad.HmacSHA1(m_,xh).toString(),h_=[om,ig,Th.obj2str(Dm,!0),Th.obj2str(zm,!0),""].join(` +`),y_=["sha1",Pg,Ad.SHA1(h_).toString(),""].join(` +`),dg=Ad.HmacSHA1(y_,B_).toString(),vb=["q-sign-algorithm="+Gg,"q-ak="+n_,"q-sign-time="+Pg,"q-key-time="+m_,"q-header-list="+a_,"q-url-param-list="+M_,"q-signature="+dg].join("&");return vb},mf=function(wf,sh,xh){var Wh=sh/8,om=wf.slice(xh,xh+Wh);return new Uint8Array(om).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[sh](om)[0]},Sf=function(wf,sh,xh,Wh){var om=wf.slice(sh,xh),Dm="";return new Uint8Array(om).forEach(function(zm){Dm+=String.fromCharCode(zm)}),Wh&&(Dm=decodeURIComponent(escape(Dm))),Dm},Tf=function(wf){for(var sh={},xh=Sf(wf),Wh={records:[]};wf.byteLength;){var om=mf(wf,32,0),Dm=mf(wf,32,4),zm=om-Dm-16,jm=0,ig;for(wf=wf.slice(12);jmparseInt(Wh[om])?1:-1;return 0},wf=function(xh){if(!xh)return!1;var Wh=(xh.match(/Chrome\/([.\d]+)/)||[])[1],om=(xh.match(/QBCore\/([.\d]+)/)||[])[1],Dm=(xh.match(/QQBrowser\/([.\d]+)/)||[])[1],zm=Wh&&Rf(Wh,"53.0.2785.116")<0&&om&&Rf(om,"3.53.991.400")<0&&Dm&&Rf(Dm,"9.0.2524.400")<=0||!1;return zm};return wf(typeof navigator<"u"&&navigator.userAgent)}(),Qf=function(wf,sh,xh,Wh,om){var Dm;if(wf.slice?Dm=wf.slice(sh,xh):wf.mozSlice?Dm=wf.mozSlice(sh,xh):wf.webkitSlice&&(Dm=wf.webkitSlice(sh,xh)),Wh&&Gf){var zm=new FileReader;zm.onload=function(jm){Dm=null,om(new Blob([zm.result]))},zm.readAsArrayBuffer(Dm)}else om(Dm)},Xf=function(wf,sh,xh,Wh){xh=xh||Ef,wf?typeof sh=="string"?xh(Th.md5(sh,!0)):Blob&&sh instanceof Blob?Th.getFileMd5(sh,function(om,Dm){xh(Dm)},Wh):xh():xh()},ph=1024*1024,qf=function(wf,sh,xh){var Wh=wf.size,om=0,Dm=vd.getCtx(),zm=function jm(ig){if(ig>=Wh){var Zm=Dm.digest("hex");sh(null,Zm);return}var ug=Math.min(Wh,ig+ph);Th.fileSlice(wf,ig,ug,!1,function(wg){If(wg,function(Kg){wg=null,Dm=Dm.update(Kg,!0),om+=Kg.length,Kg=null,xh&&xh({loaded:om,total:Wh,percent:Math.round(om/Wh*1e4)/1e4}),jm(ig+ph)})})};zm(0)};function Lf(Rf){return dh(Rf,function(wf){return dd(wf)==="object"&&wf!==null?Lf(wf):wf})}function Wf(Rf,wf,sh){return Rf&&wf in Rf?Rf[wf]:sh}function Jf(Rf,wf){return Yf(wf,function(sh,xh){Rf[xh]=wf[xh]}),Rf}function Kf(Rf){return Rf instanceof Array}function Cf(Rf,wf){for(var sh=!1,xh=0;xh-1,jm=!Dm||typeof Dm=="string"&&Dm.indexOf("{Region}")>-1;if(wf.indexOf("Bucket")>-1||wf==="deleteMultipleObject"||wf==="multipartList"||wf==="listObjectVersions"){if(zm&&!xh)return"Bucket";if(jm&&!Wh)return"Region"}else if(wf.indexOf("Object")>-1||wf.indexOf("multipart")>-1||wf==="sliceUploadFile"||wf==="abortUploadTask"||wf==="uploadFile"){if(zm&&!xh)return"Bucket";if(jm&&!Wh)return"Region";if(!om)return"Key"}return!1},Fh=function(wf,sh){if(sh=Jf({},sh),wf!=="getAuth"&&wf!=="getV4Auth"&&wf!=="getObjectUrl"){var xh=sh.Headers||{};if(sh&&dd(sh)==="object"){(function(){for(var om in sh)sh.hasOwnProperty(om)&&om.indexOf("x-cos-")>-1&&(xh[om]=sh[om])})();var Wh={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations","x-cos-callback":"Callback","x-cos-callback-var":"CallbackVar","x-cos-return-body":"ReturnBody"};Th.each(Wh,function(om,Dm){sh[om]!==void 0&&(xh[Dm]=sh[om])}),sh.Headers=Nf(xh)}}return sh},uh=function(wf,sh){return function(xh,Wh){var om=this;typeof xh=="function"&&(Wh=xh,xh={}),xh=Fh(wf,xh);var Dm;if(om.options.EnableReporter)if(xh.calledBySdk==="sliceUploadFile"||xh.calledBySdk==="sliceCopyFile")Dm=xh.tracker&&xh.tracker.generateSubTracker({apiName:wf});else if(["uploadFile","uploadFiles"].includes(wf))Dm=null;else{var zm=0;xh.Body&&(zm=typeof xh.Body=="string"?xh.Body.length:xh.Body.size||xh.Body.byteLength||0);var jm=om.options.UseAccelerate||typeof om.options.Domain=="string"&&om.options.Domain.includes("accelerate.");Dm=new Fd({Beacon:om.options.BeaconReporter,clsReporter:om.options.ClsReporter,bucket:xh.Bucket,region:xh.Region,apiName:wf,realApi:wf,accelerate:jm,fileKey:xh.Key,fileSize:zm,deepTracker:om.options.DeepTracker,customId:om.options.CustomId,delay:om.options.TrackerDelay})}xh.tracker=Dm;var ig=function(Pg){return Pg&&Pg.headers&&(Pg.headers["x-cos-request-id"]&&(Pg.RequestId=Pg.headers["x-cos-request-id"]),Pg.headers["x-ci-request-id"]&&(Pg.RequestId=Pg.headers["x-ci-request-id"]),Pg.headers["x-cos-version-id"]&&(Pg.VersionId=Pg.headers["x-cos-version-id"]),Pg.headers["x-cos-delete-marker"]&&(Pg.DeleteMarker=Pg.headers["x-cos-delete-marker"])),Pg},Zm=function(Pg,m_){Dm&&Dm.report(Pg,m_),Wh&&Wh(ig(Pg),ig(m_))},ug=function(){if(wf!=="getService"&&wf!=="abortUploadTask"){var Pg=Sh.call(om,wf,xh);if(Pg)return"missing param "+Pg;if(xh.Region){if(om.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(xh.Region))return"Region format error."}else{if(xh.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(xh.Region))return"Region format error."}!om.options.CompatibilityMode&&xh.Region.indexOf("-")===-1&&xh.Region!=="yfb"&&xh.Region!=="default"&&xh.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(xh.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(xh.Bucket))if(xh.AppId)xh.Bucket=xh.Bucket+"-"+xh.AppId;else if(om.options.AppId)xh.Bucket=xh.Bucket+"-"+om.options.AppId;else return'Bucket should format as "test-1250000000".';xh.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete xh.AppId)}!om.options.UseRawKey&&xh.Key&&xh.Key.substr(0,1)==="/"&&(xh.Key=xh.Key.substr(1))}},wg=ug(),Kg=["getAuth","getObjectUrl"].includes(wf);if(typeof Promise=="function"&&!Kg&&!Wh)return new Promise(function(n_,Pg){if(Wh=function(a_,M_){a_?Pg(a_):n_(M_)},wg)return Zm(Th.error(new Error(wg)));sh.call(om,xh,Zm)});if(wg)return Zm(Th.error(new Error(wg)));var Gg=sh.call(om,xh,Zm);if(Kg)return Gg}},Pf=function(wf,sh){var xh=this,Wh=0,om=0,Dm=Date.now(),zm,jm;function ig(){if(jm=0,sh&&typeof sh=="function"){zm=Date.now();var Zm=Math.max(0,Math.round((om-Wh)/((zm-Dm)/1e3)*100)/100)||0,ug;om===0&&wf===0?ug=1:ug=Math.floor(om/wf*100)/100||0,Dm=zm,Wh=om;try{sh({loaded:om,total:wf,speed:Zm,percent:ug})}catch{}}}return function(Zm,ug){if(Zm&&(om=Zm.loaded,wf=Zm.total),ug)clearTimeout(jm),ig();else{if(jm)return;jm=setTimeout(ig,xh.options.ProgressInterval)}}},Uf=function(wf,sh,xh){var Wh;if(typeof sh.Body=="string"?sh.Body=new Blob([sh.Body],{type:"text/plain"}):sh.Body instanceof ArrayBuffer&&(sh.Body=new Blob([sh.Body])),sh.Body&&(sh.Body instanceof Blob||sh.Body.toString()==="[object File]"||sh.Body.toString()==="[object Blob]"))Wh=sh.Body.size;else{xh(Th.error(new Error("params body format error, Only allow File|Blob|String.")));return}sh.ContentLength=Wh,xh(null,Wh)},Zf=function(wf){return Date.now()+(wf||0)},mh=function(wf,sh){var xh=wf;return wf.message=wf.message||null,typeof sh=="string"?(wf.error=sh,wf.message=sh):dd(sh)==="object"&&sh!==null&&(Jf(wf,sh),(sh.code||sh.name)&&(wf.code=sh.code||sh.name),sh.message&&(wf.message=sh.message),sh.stack&&(wf.stack=sh.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(wf,"name",{writable:!0,enumerable:!1}),Object.defineProperty(wf,"message",{enumerable:!0})),wf.name=sh&&sh.name||wf.name||wf.code||"Error",wf.code||(wf.code=wf.name),wf.error||(wf.error=Lf(xh)),wf},Mh=function(){return(typeof globalThis>"u"?"undefined":dd(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},_h=function(){return(typeof window>"u"?"undefined":dd(window))!=="object"&&(typeof ud>"u"?"undefined":dd(ud))==="object"&&!0&&!Mh()},pm=function(wf){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(wf)},Jh=function(){if((typeof navigator>"u"?"undefined":dd(navigator))!=="object")return!1;var Rf=navigator.userAgent,wf=!!Rf.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return wf}(),Mm=function(){return(typeof navigator>"u"?"undefined":dd(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Im=function(wf,sh){var xh=jd.encode(wf);return sh&&(xh=xh.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),xh},gm=function(wf){return wf?jd.decode(wf):""},Lm=function(wf){var sh=wf.split("/"),xh=[],Wh=pd(sh),om;try{for(Wh.s();!(om=Wh.n()).done;){var Dm=om.value;Dm===".."?xh.length&&xh.pop():Dm.length&&Dm!=="."&&xh.push(Dm)}}catch(zm){Wh.e(zm)}finally{Wh.f()}return"/"+xh.join("/")},Vm=function(wf){var sh;if(wf&&typeof wf=="string"){var xh=wf.trim(),Wh=xh.indexOf("<")===0,om=xh.indexOf("{")===0;if(Wh)sh=Th.xml2json(wf)||{};else if(om)try{var Dm=wf.replace(/\n/g," "),zm=JSON.parse(Dm);Object.prototype.toString.call(zm)==="[object Object]"?sh=zm:sh=wf}catch{sh=wf}else sh=wf}else sh=wf||{};return sh},Th={noop:Ef,formatParams:Fh,apiWrapper:uh,xml2json:Ud,json2xml:qd,md5:vd,clearKey:Nf,fileSlice:Qf,getBodyMd5:Xf,getFileMd5:qf,b64:th,extend:Jf,isArray:Kf,isInArray:Cf,makeArray:xf,each:Yf,map:dh,filter:Rh,clone:Lf,attr:Wf,uuid:Bf,camSafeUrlEncode:zd,throttleOnProgress:Pf,getFileSize:Uf,getSkewTime:Zf,error:mh,obj2str:Jd,getAuth:pf,parseSelectPayload:Tf,getSourceParams:Af,isBrowser:!0,isNode:_h,isCIHost:pm,isIOS_QQ:Jh&&Mm,encodeBase64:Im,decodeBase64:gm,simplifyPath:Lm,readAsBinaryString:If,parseResBody:Vm};nd.exports=Th}).call(this,ld("./node_modules/process/browser.js"))}})})})(cosJsSdkV5);var cosJsSdkV5Exports=cosJsSdkV5.exports;const COS=getDefaultExportFromCjs(cosJsSdkV5Exports);var cryptoJs={exports:{}},core={exports:{}};const __viteBrowserExternal={},http=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(http);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(Ra,qa){(function(nd,od){Ra.exports=od()})(commonjsGlobal,function(){var nd=nd||function(od,ld){var ud;if(typeof window<"u"&&window.crypto&&(ud=window.crypto),typeof self<"u"&&self.crypto&&(ud=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(ud=globalThis.crypto),!ud&&typeof window<"u"&&window.msCrypto&&(ud=window.msCrypto),!ud&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(ud=commonjsGlobal.crypto),!ud&&typeof commonjsRequire=="function")try{ud=require$$0$1}catch{}var dd=function(){if(ud){if(typeof ud.getRandomValues=="function")try{return ud.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof ud.randomBytes=="function")try{return ud.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},pd=Object.create||function(){function Fd(){}return function(Ud){var qd;return Fd.prototype=Ud,qd=new Fd,Fd.prototype=null,qd}}(),fd={},md=fd.lib={},vd=md.Base=function(){return{extend:function(Fd){var Ud=pd(this);return Fd&&Ud.mixIn(Fd),(!Ud.hasOwnProperty("init")||this.init===Ud.init)&&(Ud.init=function(){Ud.$super.init.apply(this,arguments)}),Ud.init.prototype=Ud,Ud.$super=this,Ud},create:function(){var Fd=this.extend();return Fd.init.apply(Fd,arguments),Fd},init:function(){},mixIn:function(Fd){for(var Ud in Fd)Fd.hasOwnProperty(Ud)&&(this[Ud]=Fd[Ud]);Fd.hasOwnProperty("toString")&&(this.toString=Fd.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Ad=md.WordArray=vd.extend({init:function(Fd,Ud){Fd=this.words=Fd||[],Ud!=ld?this.sigBytes=Ud:this.sigBytes=Fd.length*4},toString:function(Fd){return(Fd||Od).stringify(this)},concat:function(Fd){var Ud=this.words,qd=Fd.words,zd=this.sigBytes,Wd=Fd.sigBytes;if(this.clamp(),zd%4)for(var Jd=0;Jd>>2]>>>24-Jd%4*8&255;Ud[zd+Jd>>>2]|=_f<<24-(zd+Jd)%4*8}else for(var Xd=0;Xd>>2]=qd[Xd>>>2];return this.sigBytes+=Wd,this},clamp:function(){var Fd=this.words,Ud=this.sigBytes;Fd[Ud>>>2]&=4294967295<<32-Ud%4*8,Fd.length=od.ceil(Ud/4)},clone:function(){var Fd=vd.clone.call(this);return Fd.words=this.words.slice(0),Fd},random:function(Fd){for(var Ud=[],qd=0;qd>>2]>>>24-Wd%4*8&255;zd.push((Jd>>>4).toString(16)),zd.push((Jd&15).toString(16))}return zd.join("")},parse:function(Fd){for(var Ud=Fd.length,qd=[],zd=0;zd>>3]|=parseInt(Fd.substr(zd,2),16)<<24-zd%8*4;return new Ad.init(qd,Ud/2)}},kd=Nd.Latin1={stringify:function(Fd){for(var Ud=Fd.words,qd=Fd.sigBytes,zd=[],Wd=0;Wd>>2]>>>24-Wd%4*8&255;zd.push(String.fromCharCode(Jd))}return zd.join("")},parse:function(Fd){for(var Ud=Fd.length,qd=[],zd=0;zd>>2]|=(Fd.charCodeAt(zd)&255)<<24-zd%4*8;return new Ad.init(qd,Ud)}},Ld=Nd.Utf8={stringify:function(Fd){try{return decodeURIComponent(escape(kd.stringify(Fd)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(Fd){return kd.parse(unescape(encodeURIComponent(Fd)))}},Gd=md.BufferedBlockAlgorithm=vd.extend({reset:function(){this._data=new Ad.init,this._nDataBytes=0},_append:function(Fd){typeof Fd=="string"&&(Fd=Ld.parse(Fd)),this._data.concat(Fd),this._nDataBytes+=Fd.sigBytes},_process:function(Fd){var Ud,qd=this._data,zd=qd.words,Wd=qd.sigBytes,Jd=this.blockSize,_f=Jd*4,Xd=Wd/_f;Fd?Xd=od.ceil(Xd):Xd=od.max((Xd|0)-this._minBufferSize,0);var pf=Xd*Jd,mf=od.min(pf*4,Wd);if(pf){for(var Sf=0;Sf>>2]|=fd[Ad]<<24-Ad%4*8;dd.call(this,vd,md)}else dd.apply(this,arguments)};pd.prototype=ud}}(),nd.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=od.enc;dd.Utf16=dd.Utf16BE={stringify:function(fd){for(var md=fd.words,vd=fd.sigBytes,Ad=[],Nd=0;Nd>>2]>>>16-Nd%4*8&65535;Ad.push(String.fromCharCode(Od))}return Ad.join("")},parse:function(fd){for(var md=fd.length,vd=[],Ad=0;Ad>>1]|=fd.charCodeAt(Ad)<<16-Ad%2*16;return ud.create(vd,md*2)}},dd.Utf16LE={stringify:function(fd){for(var md=fd.words,vd=fd.sigBytes,Ad=[],Nd=0;Nd>>2]>>>16-Nd%4*8&65535);Ad.push(String.fromCharCode(Od))}return Ad.join("")},parse:function(fd){for(var md=fd.length,vd=[],Ad=0;Ad>>1]|=pd(fd.charCodeAt(Ad)<<16-Ad%2*16);return ud.create(vd,md*2)}};function pd(fd){return fd<<8&4278255360|fd>>>8&16711935}}(),nd.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=od.enc;dd.Base64={stringify:function(fd){var md=fd.words,vd=fd.sigBytes,Ad=this._map;fd.clamp();for(var Nd=[],Od=0;Od>>2]>>>24-Od%4*8&255,Ld=md[Od+1>>>2]>>>24-(Od+1)%4*8&255,Gd=md[Od+2>>>2]>>>24-(Od+2)%4*8&255,jd=kd<<16|Ld<<8|Gd,Fd=0;Fd<4&&Od+Fd*.75>>6*(3-Fd)&63));var Ud=Ad.charAt(64);if(Ud)for(;Nd.length%4;)Nd.push(Ud);return Nd.join("")},parse:function(fd){var md=fd.length,vd=this._map,Ad=this._reverseMap;if(!Ad){Ad=this._reverseMap=[];for(var Nd=0;Nd>>6-Od%4*2,Gd=kd|Ld;Ad[Nd>>>2]|=Gd<<24-Nd%4*8,Nd++}return ud.create(Ad,Nd)}}(),nd.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=od.enc;dd.Base64url={stringify:function(fd,md){md===void 0&&(md=!0);var vd=fd.words,Ad=fd.sigBytes,Nd=md?this._safe_map:this._map;fd.clamp();for(var Od=[],kd=0;kd>>2]>>>24-kd%4*8&255,Gd=vd[kd+1>>>2]>>>24-(kd+1)%4*8&255,jd=vd[kd+2>>>2]>>>24-(kd+2)%4*8&255,Fd=Ld<<16|Gd<<8|jd,Ud=0;Ud<4&&kd+Ud*.75>>6*(3-Ud)&63));var qd=Nd.charAt(64);if(qd)for(;Od.length%4;)Od.push(qd);return Od.join("")},parse:function(fd,md){md===void 0&&(md=!0);var vd=fd.length,Ad=md?this._safe_map:this._map,Nd=this._reverseMap;if(!Nd){Nd=this._reverseMap=[];for(var Od=0;Od>>6-Od%4*2,Gd=kd|Ld;Ad[Nd>>>2]|=Gd<<24-Nd%4*8,Nd++}return ud.create(Ad,Nd)}}(),nd.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5$1={exports:{}},hasRequiredMd5$1;function requireMd5$1(){return hasRequiredMd5$1||(hasRequiredMd5$1=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(od){var ld=nd,ud=ld.lib,dd=ud.WordArray,pd=ud.Hasher,fd=ld.algo,md=[];(function(){for(var Ld=0;Ld<64;Ld++)md[Ld]=od.abs(od.sin(Ld+1))*4294967296|0})();var vd=fd.MD5=pd.extend({_doReset:function(){this._hash=new dd.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Ld,Gd){for(var jd=0;jd<16;jd++){var Fd=Gd+jd,Ud=Ld[Fd];Ld[Fd]=(Ud<<8|Ud>>>24)&16711935|(Ud<<24|Ud>>>8)&4278255360}var qd=this._hash.words,zd=Ld[Gd+0],Wd=Ld[Gd+1],Jd=Ld[Gd+2],_f=Ld[Gd+3],Xd=Ld[Gd+4],pf=Ld[Gd+5],mf=Ld[Gd+6],Sf=Ld[Gd+7],Tf=Ld[Gd+8],Af=Ld[Gd+9],Ef=Ld[Gd+10],Nf=Ld[Gd+11],If=Ld[Gd+12],Gf=Ld[Gd+13],Qf=Ld[Gd+14],Xf=Ld[Gd+15],ph=qd[0],qf=qd[1],Lf=qd[2],Wf=qd[3];ph=Ad(ph,qf,Lf,Wf,zd,7,md[0]),Wf=Ad(Wf,ph,qf,Lf,Wd,12,md[1]),Lf=Ad(Lf,Wf,ph,qf,Jd,17,md[2]),qf=Ad(qf,Lf,Wf,ph,_f,22,md[3]),ph=Ad(ph,qf,Lf,Wf,Xd,7,md[4]),Wf=Ad(Wf,ph,qf,Lf,pf,12,md[5]),Lf=Ad(Lf,Wf,ph,qf,mf,17,md[6]),qf=Ad(qf,Lf,Wf,ph,Sf,22,md[7]),ph=Ad(ph,qf,Lf,Wf,Tf,7,md[8]),Wf=Ad(Wf,ph,qf,Lf,Af,12,md[9]),Lf=Ad(Lf,Wf,ph,qf,Ef,17,md[10]),qf=Ad(qf,Lf,Wf,ph,Nf,22,md[11]),ph=Ad(ph,qf,Lf,Wf,If,7,md[12]),Wf=Ad(Wf,ph,qf,Lf,Gf,12,md[13]),Lf=Ad(Lf,Wf,ph,qf,Qf,17,md[14]),qf=Ad(qf,Lf,Wf,ph,Xf,22,md[15]),ph=Nd(ph,qf,Lf,Wf,Wd,5,md[16]),Wf=Nd(Wf,ph,qf,Lf,mf,9,md[17]),Lf=Nd(Lf,Wf,ph,qf,Nf,14,md[18]),qf=Nd(qf,Lf,Wf,ph,zd,20,md[19]),ph=Nd(ph,qf,Lf,Wf,pf,5,md[20]),Wf=Nd(Wf,ph,qf,Lf,Ef,9,md[21]),Lf=Nd(Lf,Wf,ph,qf,Xf,14,md[22]),qf=Nd(qf,Lf,Wf,ph,Xd,20,md[23]),ph=Nd(ph,qf,Lf,Wf,Af,5,md[24]),Wf=Nd(Wf,ph,qf,Lf,Qf,9,md[25]),Lf=Nd(Lf,Wf,ph,qf,_f,14,md[26]),qf=Nd(qf,Lf,Wf,ph,Tf,20,md[27]),ph=Nd(ph,qf,Lf,Wf,Gf,5,md[28]),Wf=Nd(Wf,ph,qf,Lf,Jd,9,md[29]),Lf=Nd(Lf,Wf,ph,qf,Sf,14,md[30]),qf=Nd(qf,Lf,Wf,ph,If,20,md[31]),ph=Od(ph,qf,Lf,Wf,pf,4,md[32]),Wf=Od(Wf,ph,qf,Lf,Tf,11,md[33]),Lf=Od(Lf,Wf,ph,qf,Nf,16,md[34]),qf=Od(qf,Lf,Wf,ph,Qf,23,md[35]),ph=Od(ph,qf,Lf,Wf,Wd,4,md[36]),Wf=Od(Wf,ph,qf,Lf,Xd,11,md[37]),Lf=Od(Lf,Wf,ph,qf,Sf,16,md[38]),qf=Od(qf,Lf,Wf,ph,Ef,23,md[39]),ph=Od(ph,qf,Lf,Wf,Gf,4,md[40]),Wf=Od(Wf,ph,qf,Lf,zd,11,md[41]),Lf=Od(Lf,Wf,ph,qf,_f,16,md[42]),qf=Od(qf,Lf,Wf,ph,mf,23,md[43]),ph=Od(ph,qf,Lf,Wf,Af,4,md[44]),Wf=Od(Wf,ph,qf,Lf,If,11,md[45]),Lf=Od(Lf,Wf,ph,qf,Xf,16,md[46]),qf=Od(qf,Lf,Wf,ph,Jd,23,md[47]),ph=kd(ph,qf,Lf,Wf,zd,6,md[48]),Wf=kd(Wf,ph,qf,Lf,Sf,10,md[49]),Lf=kd(Lf,Wf,ph,qf,Qf,15,md[50]),qf=kd(qf,Lf,Wf,ph,pf,21,md[51]),ph=kd(ph,qf,Lf,Wf,If,6,md[52]),Wf=kd(Wf,ph,qf,Lf,_f,10,md[53]),Lf=kd(Lf,Wf,ph,qf,Ef,15,md[54]),qf=kd(qf,Lf,Wf,ph,Wd,21,md[55]),ph=kd(ph,qf,Lf,Wf,Tf,6,md[56]),Wf=kd(Wf,ph,qf,Lf,Xf,10,md[57]),Lf=kd(Lf,Wf,ph,qf,mf,15,md[58]),qf=kd(qf,Lf,Wf,ph,Gf,21,md[59]),ph=kd(ph,qf,Lf,Wf,Xd,6,md[60]),Wf=kd(Wf,ph,qf,Lf,Nf,10,md[61]),Lf=kd(Lf,Wf,ph,qf,Jd,15,md[62]),qf=kd(qf,Lf,Wf,ph,Af,21,md[63]),qd[0]=qd[0]+ph|0,qd[1]=qd[1]+qf|0,qd[2]=qd[2]+Lf|0,qd[3]=qd[3]+Wf|0},_doFinalize:function(){var Ld=this._data,Gd=Ld.words,jd=this._nDataBytes*8,Fd=Ld.sigBytes*8;Gd[Fd>>>5]|=128<<24-Fd%32;var Ud=od.floor(jd/4294967296),qd=jd;Gd[(Fd+64>>>9<<4)+15]=(Ud<<8|Ud>>>24)&16711935|(Ud<<24|Ud>>>8)&4278255360,Gd[(Fd+64>>>9<<4)+14]=(qd<<8|qd>>>24)&16711935|(qd<<24|qd>>>8)&4278255360,Ld.sigBytes=(Gd.length+1)*4,this._process();for(var zd=this._hash,Wd=zd.words,Jd=0;Jd<4;Jd++){var _f=Wd[Jd];Wd[Jd]=(_f<<8|_f>>>24)&16711935|(_f<<24|_f>>>8)&4278255360}return zd},clone:function(){var Ld=pd.clone.call(this);return Ld._hash=this._hash.clone(),Ld}});function Ad(Ld,Gd,jd,Fd,Ud,qd,zd){var Wd=Ld+(Gd&jd|~Gd&Fd)+Ud+zd;return(Wd<>>32-qd)+Gd}function Nd(Ld,Gd,jd,Fd,Ud,qd,zd){var Wd=Ld+(Gd&Fd|jd&~Fd)+Ud+zd;return(Wd<>>32-qd)+Gd}function Od(Ld,Gd,jd,Fd,Ud,qd,zd){var Wd=Ld+(Gd^jd^Fd)+Ud+zd;return(Wd<>>32-qd)+Gd}function kd(Ld,Gd,jd,Fd,Ud,qd,zd){var Wd=Ld+(jd^(Gd|~Fd))+Ud+zd;return(Wd<>>32-qd)+Gd}ld.MD5=pd._createHelper(vd),ld.HmacMD5=pd._createHmacHelper(vd)}(Math),nd.MD5})}(md5$1)),md5$1.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=ld.Hasher,pd=od.algo,fd=[],md=pd.SHA1=dd.extend({_doReset:function(){this._hash=new ud.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(vd,Ad){for(var Nd=this._hash.words,Od=Nd[0],kd=Nd[1],Ld=Nd[2],Gd=Nd[3],jd=Nd[4],Fd=0;Fd<80;Fd++){if(Fd<16)fd[Fd]=vd[Ad+Fd]|0;else{var Ud=fd[Fd-3]^fd[Fd-8]^fd[Fd-14]^fd[Fd-16];fd[Fd]=Ud<<1|Ud>>>31}var qd=(Od<<5|Od>>>27)+jd+fd[Fd];Fd<20?qd+=(kd&Ld|~kd&Gd)+1518500249:Fd<40?qd+=(kd^Ld^Gd)+1859775393:Fd<60?qd+=(kd&Ld|kd&Gd|Ld&Gd)-1894007588:qd+=(kd^Ld^Gd)-899497514,jd=Gd,Gd=Ld,Ld=kd<<30|kd>>>2,kd=Od,Od=qd}Nd[0]=Nd[0]+Od|0,Nd[1]=Nd[1]+kd|0,Nd[2]=Nd[2]+Ld|0,Nd[3]=Nd[3]+Gd|0,Nd[4]=Nd[4]+jd|0},_doFinalize:function(){var vd=this._data,Ad=vd.words,Nd=this._nDataBytes*8,Od=vd.sigBytes*8;return Ad[Od>>>5]|=128<<24-Od%32,Ad[(Od+64>>>9<<4)+14]=Math.floor(Nd/4294967296),Ad[(Od+64>>>9<<4)+15]=Nd,vd.sigBytes=Ad.length*4,this._process(),this._hash},clone:function(){var vd=dd.clone.call(this);return vd._hash=this._hash.clone(),vd}});od.SHA1=dd._createHelper(md),od.HmacSHA1=dd._createHmacHelper(md)}(),nd.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){return function(od){var ld=nd,ud=ld.lib,dd=ud.WordArray,pd=ud.Hasher,fd=ld.algo,md=[],vd=[];(function(){function Od(jd){for(var Fd=od.sqrt(jd),Ud=2;Ud<=Fd;Ud++)if(!(jd%Ud))return!1;return!0}function kd(jd){return(jd-(jd|0))*4294967296|0}for(var Ld=2,Gd=0;Gd<64;)Od(Ld)&&(Gd<8&&(md[Gd]=kd(od.pow(Ld,1/2))),vd[Gd]=kd(od.pow(Ld,1/3)),Gd++),Ld++})();var Ad=[],Nd=fd.SHA256=pd.extend({_doReset:function(){this._hash=new dd.init(md.slice(0))},_doProcessBlock:function(Od,kd){for(var Ld=this._hash.words,Gd=Ld[0],jd=Ld[1],Fd=Ld[2],Ud=Ld[3],qd=Ld[4],zd=Ld[5],Wd=Ld[6],Jd=Ld[7],_f=0;_f<64;_f++){if(_f<16)Ad[_f]=Od[kd+_f]|0;else{var Xd=Ad[_f-15],pf=(Xd<<25|Xd>>>7)^(Xd<<14|Xd>>>18)^Xd>>>3,mf=Ad[_f-2],Sf=(mf<<15|mf>>>17)^(mf<<13|mf>>>19)^mf>>>10;Ad[_f]=pf+Ad[_f-7]+Sf+Ad[_f-16]}var Tf=qd&zd^~qd&Wd,Af=Gd&jd^Gd&Fd^jd&Fd,Ef=(Gd<<30|Gd>>>2)^(Gd<<19|Gd>>>13)^(Gd<<10|Gd>>>22),Nf=(qd<<26|qd>>>6)^(qd<<21|qd>>>11)^(qd<<7|qd>>>25),If=Jd+Nf+Tf+vd[_f]+Ad[_f],Gf=Ef+Af;Jd=Wd,Wd=zd,zd=qd,qd=Ud+If|0,Ud=Fd,Fd=jd,jd=Gd,Gd=If+Gf|0}Ld[0]=Ld[0]+Gd|0,Ld[1]=Ld[1]+jd|0,Ld[2]=Ld[2]+Fd|0,Ld[3]=Ld[3]+Ud|0,Ld[4]=Ld[4]+qd|0,Ld[5]=Ld[5]+zd|0,Ld[6]=Ld[6]+Wd|0,Ld[7]=Ld[7]+Jd|0},_doFinalize:function(){var Od=this._data,kd=Od.words,Ld=this._nDataBytes*8,Gd=Od.sigBytes*8;return kd[Gd>>>5]|=128<<24-Gd%32,kd[(Gd+64>>>9<<4)+14]=od.floor(Ld/4294967296),kd[(Gd+64>>>9<<4)+15]=Ld,Od.sigBytes=kd.length*4,this._process(),this._hash},clone:function(){var Od=pd.clone.call(this);return Od._hash=this._hash.clone(),Od}});ld.SHA256=pd._createHelper(Nd),ld.HmacSHA256=pd._createHmacHelper(Nd)}(Math),nd.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireSha256())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=od.algo,pd=dd.SHA256,fd=dd.SHA224=pd.extend({_doReset:function(){this._hash=new ud.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var md=pd._doFinalize.call(this);return md.sigBytes-=4,md}});od.SHA224=pd._createHelper(fd),od.HmacSHA224=pd._createHmacHelper(fd)}(),nd.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireX64Core())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.Hasher,dd=od.x64,pd=dd.Word,fd=dd.WordArray,md=od.algo;function vd(){return pd.create.apply(pd,arguments)}var Ad=[vd(1116352408,3609767458),vd(1899447441,602891725),vd(3049323471,3964484399),vd(3921009573,2173295548),vd(961987163,4081628472),vd(1508970993,3053834265),vd(2453635748,2937671579),vd(2870763221,3664609560),vd(3624381080,2734883394),vd(310598401,1164996542),vd(607225278,1323610764),vd(1426881987,3590304994),vd(1925078388,4068182383),vd(2162078206,991336113),vd(2614888103,633803317),vd(3248222580,3479774868),vd(3835390401,2666613458),vd(4022224774,944711139),vd(264347078,2341262773),vd(604807628,2007800933),vd(770255983,1495990901),vd(1249150122,1856431235),vd(1555081692,3175218132),vd(1996064986,2198950837),vd(2554220882,3999719339),vd(2821834349,766784016),vd(2952996808,2566594879),vd(3210313671,3203337956),vd(3336571891,1034457026),vd(3584528711,2466948901),vd(113926993,3758326383),vd(338241895,168717936),vd(666307205,1188179964),vd(773529912,1546045734),vd(1294757372,1522805485),vd(1396182291,2643833823),vd(1695183700,2343527390),vd(1986661051,1014477480),vd(2177026350,1206759142),vd(2456956037,344077627),vd(2730485921,1290863460),vd(2820302411,3158454273),vd(3259730800,3505952657),vd(3345764771,106217008),vd(3516065817,3606008344),vd(3600352804,1432725776),vd(4094571909,1467031594),vd(275423344,851169720),vd(430227734,3100823752),vd(506948616,1363258195),vd(659060556,3750685593),vd(883997877,3785050280),vd(958139571,3318307427),vd(1322822218,3812723403),vd(1537002063,2003034995),vd(1747873779,3602036899),vd(1955562222,1575990012),vd(2024104815,1125592928),vd(2227730452,2716904306),vd(2361852424,442776044),vd(2428436474,593698344),vd(2756734187,3733110249),vd(3204031479,2999351573),vd(3329325298,3815920427),vd(3391569614,3928383900),vd(3515267271,566280711),vd(3940187606,3454069534),vd(4118630271,4000239992),vd(116418474,1914138554),vd(174292421,2731055270),vd(289380356,3203993006),vd(460393269,320620315),vd(685471733,587496836),vd(852142971,1086792851),vd(1017036298,365543100),vd(1126000580,2618297676),vd(1288033470,3409855158),vd(1501505948,4234509866),vd(1607167915,987167468),vd(1816402316,1246189591)],Nd=[];(function(){for(var kd=0;kd<80;kd++)Nd[kd]=vd()})();var Od=md.SHA512=ud.extend({_doReset:function(){this._hash=new fd.init([new pd.init(1779033703,4089235720),new pd.init(3144134277,2227873595),new pd.init(1013904242,4271175723),new pd.init(2773480762,1595750129),new pd.init(1359893119,2917565137),new pd.init(2600822924,725511199),new pd.init(528734635,4215389547),new pd.init(1541459225,327033209)])},_doProcessBlock:function(kd,Ld){for(var Gd=this._hash.words,jd=Gd[0],Fd=Gd[1],Ud=Gd[2],qd=Gd[3],zd=Gd[4],Wd=Gd[5],Jd=Gd[6],_f=Gd[7],Xd=jd.high,pf=jd.low,mf=Fd.high,Sf=Fd.low,Tf=Ud.high,Af=Ud.low,Ef=qd.high,Nf=qd.low,If=zd.high,Gf=zd.low,Qf=Wd.high,Xf=Wd.low,ph=Jd.high,qf=Jd.low,Lf=_f.high,Wf=_f.low,Jf=Xd,Kf=pf,Cf=mf,xf=Sf,Yf=Tf,dh=Af,Rh=Ef,th=Nf,Bf=If,Sh=Gf,Fh=Qf,uh=Xf,Pf=ph,Uf=qf,Zf=Lf,mh=Wf,Mh=0;Mh<80;Mh++){var _h,pm,Jh=Nd[Mh];if(Mh<16)pm=Jh.high=kd[Ld+Mh*2]|0,_h=Jh.low=kd[Ld+Mh*2+1]|0;else{var Mm=Nd[Mh-15],Im=Mm.high,gm=Mm.low,Lm=(Im>>>1|gm<<31)^(Im>>>8|gm<<24)^Im>>>7,Vm=(gm>>>1|Im<<31)^(gm>>>8|Im<<24)^(gm>>>7|Im<<25),Th=Nd[Mh-2],Rf=Th.high,wf=Th.low,sh=(Rf>>>19|wf<<13)^(Rf<<3|wf>>>29)^Rf>>>6,xh=(wf>>>19|Rf<<13)^(wf<<3|Rf>>>29)^(wf>>>6|Rf<<26),Wh=Nd[Mh-7],om=Wh.high,Dm=Wh.low,zm=Nd[Mh-16],jm=zm.high,ig=zm.low;_h=Vm+Dm,pm=Lm+om+(_h>>>0>>0?1:0),_h=_h+xh,pm=pm+sh+(_h>>>0>>0?1:0),_h=_h+ig,pm=pm+jm+(_h>>>0>>0?1:0),Jh.high=pm,Jh.low=_h}var Zm=Bf&Fh^~Bf&Pf,ug=Sh&uh^~Sh&Uf,wg=Jf&Cf^Jf&Yf^Cf&Yf,Kg=Kf&xf^Kf&dh^xf&dh,Gg=(Jf>>>28|Kf<<4)^(Jf<<30|Kf>>>2)^(Jf<<25|Kf>>>7),n_=(Kf>>>28|Jf<<4)^(Kf<<30|Jf>>>2)^(Kf<<25|Jf>>>7),Pg=(Bf>>>14|Sh<<18)^(Bf>>>18|Sh<<14)^(Bf<<23|Sh>>>9),m_=(Sh>>>14|Bf<<18)^(Sh>>>18|Bf<<14)^(Sh<<23|Bf>>>9),a_=Ad[Mh],M_=a_.high,B_=a_.low,h_=mh+m_,y_=Zf+Pg+(h_>>>0>>0?1:0),h_=h_+ug,y_=y_+Zm+(h_>>>0>>0?1:0),h_=h_+B_,y_=y_+M_+(h_>>>0>>0?1:0),h_=h_+_h,y_=y_+pm+(h_>>>0<_h>>>0?1:0),dg=n_+Kg,vb=Gg+wg+(dg>>>0>>0?1:0);Zf=Pf,mh=Uf,Pf=Fh,Uf=uh,Fh=Bf,uh=Sh,Sh=th+h_|0,Bf=Rh+y_+(Sh>>>0>>0?1:0)|0,Rh=Yf,th=dh,Yf=Cf,dh=xf,Cf=Jf,xf=Kf,Kf=h_+dg|0,Jf=y_+vb+(Kf>>>0>>0?1:0)|0}pf=jd.low=pf+Kf,jd.high=Xd+Jf+(pf>>>0>>0?1:0),Sf=Fd.low=Sf+xf,Fd.high=mf+Cf+(Sf>>>0>>0?1:0),Af=Ud.low=Af+dh,Ud.high=Tf+Yf+(Af>>>0>>0?1:0),Nf=qd.low=Nf+th,qd.high=Ef+Rh+(Nf>>>0>>0?1:0),Gf=zd.low=Gf+Sh,zd.high=If+Bf+(Gf>>>0>>0?1:0),Xf=Wd.low=Xf+uh,Wd.high=Qf+Fh+(Xf>>>0>>0?1:0),qf=Jd.low=qf+Uf,Jd.high=ph+Pf+(qf>>>0>>0?1:0),Wf=_f.low=Wf+mh,_f.high=Lf+Zf+(Wf>>>0>>0?1:0)},_doFinalize:function(){var kd=this._data,Ld=kd.words,Gd=this._nDataBytes*8,jd=kd.sigBytes*8;Ld[jd>>>5]|=128<<24-jd%32,Ld[(jd+128>>>10<<5)+30]=Math.floor(Gd/4294967296),Ld[(jd+128>>>10<<5)+31]=Gd,kd.sigBytes=Ld.length*4,this._process();var Fd=this._hash.toX32();return Fd},clone:function(){var kd=ud.clone.call(this);return kd._hash=this._hash.clone(),kd},blockSize:1024/32});od.SHA512=ud._createHelper(Od),od.HmacSHA512=ud._createHmacHelper(Od)}(),nd.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.x64,ud=ld.Word,dd=ld.WordArray,pd=od.algo,fd=pd.SHA512,md=pd.SHA384=fd.extend({_doReset:function(){this._hash=new dd.init([new ud.init(3418070365,3238371032),new ud.init(1654270250,914150663),new ud.init(2438529370,812702999),new ud.init(355462360,4144912697),new ud.init(1731405415,4290775857),new ud.init(2394180231,1750603025),new ud.init(3675008525,1694076839),new ud.init(1203062813,3204075428)])},_doFinalize:function(){var vd=fd._doFinalize.call(this);return vd.sigBytes-=16,vd}});od.SHA384=fd._createHelper(md),od.HmacSHA384=fd._createHmacHelper(md)}(),nd.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireX64Core())})(commonjsGlobal,function(nd){return function(od){var ld=nd,ud=ld.lib,dd=ud.WordArray,pd=ud.Hasher,fd=ld.x64,md=fd.Word,vd=ld.algo,Ad=[],Nd=[],Od=[];(function(){for(var Gd=1,jd=0,Fd=0;Fd<24;Fd++){Ad[Gd+5*jd]=(Fd+1)*(Fd+2)/2%64;var Ud=jd%5,qd=(2*Gd+3*jd)%5;Gd=Ud,jd=qd}for(var Gd=0;Gd<5;Gd++)for(var jd=0;jd<5;jd++)Nd[Gd+5*jd]=jd+(2*Gd+3*jd)%5*5;for(var zd=1,Wd=0;Wd<24;Wd++){for(var Jd=0,_f=0,Xd=0;Xd<7;Xd++){if(zd&1){var pf=(1<>>24)&16711935|(zd<<24|zd>>>8)&4278255360,Wd=(Wd<<8|Wd>>>24)&16711935|(Wd<<24|Wd>>>8)&4278255360;var Jd=Fd[qd];Jd.high^=Wd,Jd.low^=zd}for(var _f=0;_f<24;_f++){for(var Xd=0;Xd<5;Xd++){for(var pf=0,mf=0,Sf=0;Sf<5;Sf++){var Jd=Fd[Xd+5*Sf];pf^=Jd.high,mf^=Jd.low}var Tf=kd[Xd];Tf.high=pf,Tf.low=mf}for(var Xd=0;Xd<5;Xd++)for(var Af=kd[(Xd+4)%5],Ef=kd[(Xd+1)%5],Nf=Ef.high,If=Ef.low,pf=Af.high^(Nf<<1|If>>>31),mf=Af.low^(If<<1|Nf>>>31),Sf=0;Sf<5;Sf++){var Jd=Fd[Xd+5*Sf];Jd.high^=pf,Jd.low^=mf}for(var Gf=1;Gf<25;Gf++){var pf,mf,Jd=Fd[Gf],Qf=Jd.high,Xf=Jd.low,ph=Ad[Gf];ph<32?(pf=Qf<>>32-ph,mf=Xf<>>32-ph):(pf=Xf<>>64-ph,mf=Qf<>>64-ph);var qf=kd[Nd[Gf]];qf.high=pf,qf.low=mf}var Lf=kd[0],Wf=Fd[0];Lf.high=Wf.high,Lf.low=Wf.low;for(var Xd=0;Xd<5;Xd++)for(var Sf=0;Sf<5;Sf++){var Gf=Xd+5*Sf,Jd=Fd[Gf],Jf=kd[Gf],Kf=kd[(Xd+1)%5+5*Sf],Cf=kd[(Xd+2)%5+5*Sf];Jd.high=Jf.high^~Kf.high&Cf.high,Jd.low=Jf.low^~Kf.low&Cf.low}var Jd=Fd[0],xf=Od[_f];Jd.high^=xf.high,Jd.low^=xf.low}},_doFinalize:function(){var Gd=this._data,jd=Gd.words;this._nDataBytes*8;var Fd=Gd.sigBytes*8,Ud=this.blockSize*32;jd[Fd>>>5]|=1<<24-Fd%32,jd[(od.ceil((Fd+1)/Ud)*Ud>>>5)-1]|=128,Gd.sigBytes=jd.length*4,this._process();for(var qd=this._state,zd=this.cfg.outputLength/8,Wd=zd/8,Jd=[],_f=0;_f>>24)&16711935|(pf<<24|pf>>>8)&4278255360,mf=(mf<<8|mf>>>24)&16711935|(mf<<24|mf>>>8)&4278255360,Jd.push(mf),Jd.push(pf)}return new dd.init(Jd,zd)},clone:function(){for(var Gd=pd.clone.call(this),jd=Gd._state=this._state.slice(0),Fd=0;Fd<25;Fd++)jd[Fd]=jd[Fd].clone();return Gd}});ld.SHA3=pd._createHelper(Ld),ld.HmacSHA3=pd._createHmacHelper(Ld)}(Math),nd.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -1158,59 +1169,59 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(od){var ld=nd,ud=ld.lib,dd=ud.WordArray,pd=ud.Hasher,fd=ld.algo,md=dd.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),vd=dd.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Ad=dd.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),Nd=dd.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),Od=dd.create([0,1518500249,1859775393,2400959708,2840853838]),kd=dd.create([1352829926,1548603684,1836072691,2053994217,0]),Ld=fd.RIPEMD160=pd.extend({_doReset:function(){this._hash=dd.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Yd,Jd){for(var yf=0;yf<16;yf++){var Xd=Jd+yf,pf=Yd[Xd];Yd[Xd]=(pf<<8|pf>>>24)&16711935|(pf<<24|pf>>>8)&4278255360}var mf=this._hash.words,Tf=Od.words,vf=kd.words,Af=md.words,Sf=vd.words,Df=Ad.words,If=Nd.words,Gf,Jf,ih,uh,qf,Pf,Wf,Yf,Kf,Cf;Pf=Gf=mf[0],Wf=Jf=mf[1],Yf=ih=mf[2],Kf=uh=mf[3],Cf=qf=mf[4];for(var xf,yf=0;yf<80;yf+=1)xf=Gf+Yd[Jd+Af[yf]]|0,yf<16?xf+=Gd(Jf,ih,uh)+Tf[0]:yf<32?xf+=Ud(Jf,ih,uh)+Tf[1]:yf<48?xf+=Fd(Jf,ih,uh)+Tf[2]:yf<64?xf+=jd(Jf,ih,uh)+Tf[3]:xf+=qd(Jf,ih,uh)+Tf[4],xf=xf|0,xf=zd(xf,Df[yf]),xf=xf+qf|0,Gf=qf,qf=uh,uh=zd(ih,10),ih=Jf,Jf=xf,xf=Pf+Yd[Jd+Sf[yf]]|0,yf<16?xf+=qd(Wf,Yf,Kf)+vf[0]:yf<32?xf+=jd(Wf,Yf,Kf)+vf[1]:yf<48?xf+=Fd(Wf,Yf,Kf)+vf[2]:yf<64?xf+=Ud(Wf,Yf,Kf)+vf[3]:xf+=Gd(Wf,Yf,Kf)+vf[4],xf=xf|0,xf=zd(xf,If[yf]),xf=xf+Cf|0,Pf=Cf,Cf=Kf,Kf=zd(Yf,10),Yf=Wf,Wf=xf;xf=mf[1]+ih+Kf|0,mf[1]=mf[2]+uh+Cf|0,mf[2]=mf[3]+qf+Pf|0,mf[3]=mf[4]+Gf+Wf|0,mf[4]=mf[0]+Jf+Yf|0,mf[0]=xf},_doFinalize:function(){var Yd=this._data,Jd=Yd.words,yf=this._nDataBytes*8,Xd=Yd.sigBytes*8;Jd[Xd>>>5]|=128<<24-Xd%32,Jd[(Xd+64>>>9<<4)+14]=(yf<<8|yf>>>24)&16711935|(yf<<24|yf>>>8)&4278255360,Yd.sigBytes=(Jd.length+1)*4,this._process();for(var pf=this._hash,mf=pf.words,Tf=0;Tf<5;Tf++){var vf=mf[Tf];mf[Tf]=(vf<<8|vf>>>24)&16711935|(vf<<24|vf>>>8)&4278255360}return pf},clone:function(){var Yd=pd.clone.call(this);return Yd._hash=this._hash.clone(),Yd}});function Gd(Yd,Jd,yf){return Yd^Jd^yf}function Ud(Yd,Jd,yf){return Yd&Jd|~Yd&yf}function Fd(Yd,Jd,yf){return(Yd|~Jd)^yf}function jd(Yd,Jd,yf){return Yd&yf|Jd&~yf}function qd(Yd,Jd,yf){return Yd^(Jd|~yf)}function zd(Yd,Jd){return Yd<>>32-Jd}ld.RIPEMD160=pd._createHelper(Ld),ld.HmacRIPEMD160=pd._createHmacHelper(Ld)}(),nd.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){(function(){var od=nd,ld=od.lib,ud=ld.Base,dd=od.enc,pd=dd.Utf8,fd=od.algo;fd.HMAC=ud.extend({init:function(md,vd){md=this._hasher=new md.init,typeof vd=="string"&&(vd=pd.parse(vd));var Ad=md.blockSize,Nd=Ad*4;vd.sigBytes>Nd&&(vd=md.finalize(vd)),vd.clamp();for(var Od=this._oKey=vd.clone(),kd=this._iKey=vd.clone(),Ld=Od.words,Gd=kd.words,Ud=0;Ud>>2]&255;pf.sigBytes-=mf}};ud.BlockCipher=Od.extend({cfg:Od.cfg.extend({mode:Gd,padding:Fd}),reset:function(){var pf;Od.reset.call(this);var mf=this.cfg,Tf=mf.iv,vf=mf.mode;this._xformMode==this._ENC_XFORM_MODE?pf=vf.createEncryptor:(pf=vf.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==pf?this._mode.init(this,Tf&&Tf.words):(this._mode=pf.call(vf,this,Tf&&Tf.words),this._mode.__creator=pf)},_doProcessBlock:function(pf,mf){this._mode.processBlock(pf,mf)},_doFinalize:function(){var pf,mf=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(mf.pad(this._data,this.blockSize),pf=this._process(!0)):(pf=this._process(!0),mf.unpad(pf)),pf},blockSize:128/32});var jd=ud.CipherParams=dd.extend({init:function(pf){this.mixIn(pf)},toString:function(pf){return(pf||this.formatter).stringify(this)}}),qd=ld.format={},zd=qd.OpenSSL={stringify:function(pf){var mf,Tf=pf.ciphertext,vf=pf.salt;return vf?mf=pd.create([1398893684,1701076831]).concat(vf).concat(Tf):mf=Tf,mf.toString(vd)},parse:function(pf){var mf,Tf=vd.parse(pf),vf=Tf.words;return vf[0]==1398893684&&vf[1]==1701076831&&(mf=pd.create(vf.slice(2,4)),vf.splice(0,4),Tf.sigBytes-=16),jd.create({ciphertext:Tf,salt:mf})}},Yd=ud.SerializableCipher=dd.extend({cfg:dd.extend({format:zd}),encrypt:function(pf,mf,Tf,vf){vf=this.cfg.extend(vf);var Af=pf.createEncryptor(Tf,vf),Sf=Af.finalize(mf),Df=Af.cfg;return jd.create({ciphertext:Sf,key:Tf,iv:Df.iv,algorithm:pf,mode:Df.mode,padding:Df.padding,blockSize:pf.blockSize,formatter:vf.format})},decrypt:function(pf,mf,Tf,vf){vf=this.cfg.extend(vf),mf=this._parse(mf,vf.format);var Af=pf.createDecryptor(Tf,vf).finalize(mf.ciphertext);return Af},_parse:function(pf,mf){return typeof pf=="string"?mf.parse(pf,this):pf}}),Jd=ld.kdf={},yf=Jd.OpenSSL={execute:function(pf,mf,Tf,vf,Af){if(vf||(vf=pd.random(64/8)),Af)var Sf=Nd.create({keySize:mf+Tf,hasher:Af}).compute(pf,vf);else var Sf=Nd.create({keySize:mf+Tf}).compute(pf,vf);var Df=pd.create(Sf.words.slice(mf),Tf*4);return Sf.sigBytes=mf*4,jd.create({key:Sf,iv:Df,salt:vf})}},Xd=ud.PasswordBasedCipher=Yd.extend({cfg:Yd.cfg.extend({kdf:yf}),encrypt:function(pf,mf,Tf,vf){vf=this.cfg.extend(vf);var Af=vf.kdf.execute(Tf,pf.keySize,pf.ivSize,vf.salt,vf.hasher);vf.iv=Af.iv;var Sf=Yd.encrypt.call(this,pf,mf,Af.key,vf);return Sf.mixIn(Af),Sf},decrypt:function(pf,mf,Tf,vf){vf=this.cfg.extend(vf),mf=this._parse(mf,vf.format);var Af=vf.kdf.execute(Tf,pf.keySize,pf.ivSize,mf.salt,vf.hasher);vf.iv=Af.iv;var Sf=Yd.decrypt.call(this,pf,mf,Af.key,vf);return Sf}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.mode.CFB=function(){var od=nd.lib.BlockCipherMode.extend();od.Encryptor=od.extend({processBlock:function(ud,dd){var pd=this._cipher,fd=pd.blockSize;ld.call(this,ud,dd,fd,pd),this._prevBlock=ud.slice(dd,dd+fd)}}),od.Decryptor=od.extend({processBlock:function(ud,dd){var pd=this._cipher,fd=pd.blockSize,md=ud.slice(dd,dd+fd);ld.call(this,ud,dd,fd,pd),this._prevBlock=md}});function ld(ud,dd,pd,fd){var md,vd=this._iv;vd?(md=vd.slice(0),this._iv=void 0):md=this._prevBlock,fd.encryptBlock(md,0);for(var Ad=0;Ad>>24)&16711935|(pf<<24|pf>>>8)&4278255360}var mf=this._hash.words,Sf=Od.words,Tf=kd.words,Af=md.words,Ef=vd.words,Nf=Ad.words,If=Nd.words,Gf,Qf,Xf,ph,qf,Lf,Wf,Jf,Kf,Cf;Lf=Gf=mf[0],Wf=Qf=mf[1],Jf=Xf=mf[2],Kf=ph=mf[3],Cf=qf=mf[4];for(var xf,_f=0;_f<80;_f+=1)xf=Gf+Wd[Jd+Af[_f]]|0,_f<16?xf+=Gd(Qf,Xf,ph)+Sf[0]:_f<32?xf+=jd(Qf,Xf,ph)+Sf[1]:_f<48?xf+=Fd(Qf,Xf,ph)+Sf[2]:_f<64?xf+=Ud(Qf,Xf,ph)+Sf[3]:xf+=qd(Qf,Xf,ph)+Sf[4],xf=xf|0,xf=zd(xf,Nf[_f]),xf=xf+qf|0,Gf=qf,qf=ph,ph=zd(Xf,10),Xf=Qf,Qf=xf,xf=Lf+Wd[Jd+Ef[_f]]|0,_f<16?xf+=qd(Wf,Jf,Kf)+Tf[0]:_f<32?xf+=Ud(Wf,Jf,Kf)+Tf[1]:_f<48?xf+=Fd(Wf,Jf,Kf)+Tf[2]:_f<64?xf+=jd(Wf,Jf,Kf)+Tf[3]:xf+=Gd(Wf,Jf,Kf)+Tf[4],xf=xf|0,xf=zd(xf,If[_f]),xf=xf+Cf|0,Lf=Cf,Cf=Kf,Kf=zd(Jf,10),Jf=Wf,Wf=xf;xf=mf[1]+Xf+Kf|0,mf[1]=mf[2]+ph+Cf|0,mf[2]=mf[3]+qf+Lf|0,mf[3]=mf[4]+Gf+Wf|0,mf[4]=mf[0]+Qf+Jf|0,mf[0]=xf},_doFinalize:function(){var Wd=this._data,Jd=Wd.words,_f=this._nDataBytes*8,Xd=Wd.sigBytes*8;Jd[Xd>>>5]|=128<<24-Xd%32,Jd[(Xd+64>>>9<<4)+14]=(_f<<8|_f>>>24)&16711935|(_f<<24|_f>>>8)&4278255360,Wd.sigBytes=(Jd.length+1)*4,this._process();for(var pf=this._hash,mf=pf.words,Sf=0;Sf<5;Sf++){var Tf=mf[Sf];mf[Sf]=(Tf<<8|Tf>>>24)&16711935|(Tf<<24|Tf>>>8)&4278255360}return pf},clone:function(){var Wd=pd.clone.call(this);return Wd._hash=this._hash.clone(),Wd}});function Gd(Wd,Jd,_f){return Wd^Jd^_f}function jd(Wd,Jd,_f){return Wd&Jd|~Wd&_f}function Fd(Wd,Jd,_f){return(Wd|~Jd)^_f}function Ud(Wd,Jd,_f){return Wd&_f|Jd&~_f}function qd(Wd,Jd,_f){return Wd^(Jd|~_f)}function zd(Wd,Jd){return Wd<>>32-Jd}ld.RIPEMD160=pd._createHelper(Ld),ld.HmacRIPEMD160=pd._createHmacHelper(Ld)}(),nd.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){(function(){var od=nd,ld=od.lib,ud=ld.Base,dd=od.enc,pd=dd.Utf8,fd=od.algo;fd.HMAC=ud.extend({init:function(md,vd){md=this._hasher=new md.init,typeof vd=="string"&&(vd=pd.parse(vd));var Ad=md.blockSize,Nd=Ad*4;vd.sigBytes>Nd&&(vd=md.finalize(vd)),vd.clamp();for(var Od=this._oKey=vd.clone(),kd=this._iKey=vd.clone(),Ld=Od.words,Gd=kd.words,jd=0;jd>>2]&255;pf.sigBytes-=mf}};ud.BlockCipher=Od.extend({cfg:Od.cfg.extend({mode:Gd,padding:Fd}),reset:function(){var pf;Od.reset.call(this);var mf=this.cfg,Sf=mf.iv,Tf=mf.mode;this._xformMode==this._ENC_XFORM_MODE?pf=Tf.createEncryptor:(pf=Tf.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==pf?this._mode.init(this,Sf&&Sf.words):(this._mode=pf.call(Tf,this,Sf&&Sf.words),this._mode.__creator=pf)},_doProcessBlock:function(pf,mf){this._mode.processBlock(pf,mf)},_doFinalize:function(){var pf,mf=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(mf.pad(this._data,this.blockSize),pf=this._process(!0)):(pf=this._process(!0),mf.unpad(pf)),pf},blockSize:128/32});var Ud=ud.CipherParams=dd.extend({init:function(pf){this.mixIn(pf)},toString:function(pf){return(pf||this.formatter).stringify(this)}}),qd=ld.format={},zd=qd.OpenSSL={stringify:function(pf){var mf,Sf=pf.ciphertext,Tf=pf.salt;return Tf?mf=pd.create([1398893684,1701076831]).concat(Tf).concat(Sf):mf=Sf,mf.toString(vd)},parse:function(pf){var mf,Sf=vd.parse(pf),Tf=Sf.words;return Tf[0]==1398893684&&Tf[1]==1701076831&&(mf=pd.create(Tf.slice(2,4)),Tf.splice(0,4),Sf.sigBytes-=16),Ud.create({ciphertext:Sf,salt:mf})}},Wd=ud.SerializableCipher=dd.extend({cfg:dd.extend({format:zd}),encrypt:function(pf,mf,Sf,Tf){Tf=this.cfg.extend(Tf);var Af=pf.createEncryptor(Sf,Tf),Ef=Af.finalize(mf),Nf=Af.cfg;return Ud.create({ciphertext:Ef,key:Sf,iv:Nf.iv,algorithm:pf,mode:Nf.mode,padding:Nf.padding,blockSize:pf.blockSize,formatter:Tf.format})},decrypt:function(pf,mf,Sf,Tf){Tf=this.cfg.extend(Tf),mf=this._parse(mf,Tf.format);var Af=pf.createDecryptor(Sf,Tf).finalize(mf.ciphertext);return Af},_parse:function(pf,mf){return typeof pf=="string"?mf.parse(pf,this):pf}}),Jd=ld.kdf={},_f=Jd.OpenSSL={execute:function(pf,mf,Sf,Tf,Af){if(Tf||(Tf=pd.random(64/8)),Af)var Ef=Nd.create({keySize:mf+Sf,hasher:Af}).compute(pf,Tf);else var Ef=Nd.create({keySize:mf+Sf}).compute(pf,Tf);var Nf=pd.create(Ef.words.slice(mf),Sf*4);return Ef.sigBytes=mf*4,Ud.create({key:Ef,iv:Nf,salt:Tf})}},Xd=ud.PasswordBasedCipher=Wd.extend({cfg:Wd.cfg.extend({kdf:_f}),encrypt:function(pf,mf,Sf,Tf){Tf=this.cfg.extend(Tf);var Af=Tf.kdf.execute(Sf,pf.keySize,pf.ivSize,Tf.salt,Tf.hasher);Tf.iv=Af.iv;var Ef=Wd.encrypt.call(this,pf,mf,Af.key,Tf);return Ef.mixIn(Af),Ef},decrypt:function(pf,mf,Sf,Tf){Tf=this.cfg.extend(Tf),mf=this._parse(mf,Tf.format);var Af=Tf.kdf.execute(Sf,pf.keySize,pf.ivSize,mf.salt,Tf.hasher);Tf.iv=Af.iv;var Ef=Wd.decrypt.call(this,pf,mf,Af.key,Tf);return Ef}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.mode.CFB=function(){var od=nd.lib.BlockCipherMode.extend();od.Encryptor=od.extend({processBlock:function(ud,dd){var pd=this._cipher,fd=pd.blockSize;ld.call(this,ud,dd,fd,pd),this._prevBlock=ud.slice(dd,dd+fd)}}),od.Decryptor=od.extend({processBlock:function(ud,dd){var pd=this._cipher,fd=pd.blockSize,md=ud.slice(dd,dd+fd);ld.call(this,ud,dd,fd,pd),this._prevBlock=md}});function ld(ud,dd,pd,fd){var md,vd=this._iv;vd?(md=vd.slice(0),this._iv=void 0):md=this._prevBlock,fd.encryptBlock(md,0);for(var Ad=0;Ad>24&255)===255){var fd=pd>>16&255,md=pd>>8&255,vd=pd&255;fd===255?(fd=0,md===255?(md=0,vd===255?vd=0:++vd):++md):++fd,pd=0,pd+=fd<<16,pd+=md<<8,pd+=vd}else pd+=1<<24;return pd}function ud(pd){return(pd[0]=ld(pd[0]))===0&&(pd[1]=ld(pd[1])),pd}var dd=od.Encryptor=od.extend({processBlock:function(pd,fd){var md=this._cipher,vd=md.blockSize,Ad=this._iv,Nd=this._counter;Ad&&(Nd=this._counter=Ad.slice(0),this._iv=void 0),ud(Nd);var Od=Nd.slice(0);md.encryptBlock(Od,0);for(var kd=0;kd>>2]|=pd<<24-fd%4*8,od.sigBytes+=pd},unpad:function(od){var ld=od.words[od.sigBytes-1>>>2]&255;od.sigBytes-=ld}},nd.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.Iso10126={pad:function(od,ld){var ud=ld*4,dd=ud-od.sigBytes%ud;od.concat(nd.lib.WordArray.random(dd-1)).concat(nd.lib.WordArray.create([dd<<24],1))},unpad:function(od){var ld=od.words[od.sigBytes-1>>>2]&255;od.sigBytes-=ld}},nd.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.Iso97971={pad:function(od,ld){od.concat(nd.lib.WordArray.create([2147483648],1)),nd.pad.ZeroPadding.pad(od,ld)},unpad:function(od){nd.pad.ZeroPadding.unpad(od),od.sigBytes--}},nd.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.ZeroPadding={pad:function(od,ld){var ud=ld*4;od.clamp(),od.sigBytes+=ud-(od.sigBytes%ud||ud)},unpad:function(od){for(var ld=od.words,ud=od.sigBytes-1,ud=od.sigBytes-1;ud>=0;ud--)if(ld[ud>>>2]>>>24-ud%4*8&255){od.sigBytes=ud+1;break}}},nd.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.NoPadding={pad:function(){},unpad:function(){}},nd.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return function(od){var ld=nd,ud=ld.lib,dd=ud.CipherParams,pd=ld.enc,fd=pd.Hex,md=ld.format;md.Hex={stringify:function(vd){return vd.ciphertext.toString(fd)},parse:function(vd){var Ad=fd.parse(vd);return dd.create({ciphertext:Ad})}}}(),nd.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.BlockCipher,dd=od.algo,pd=[],fd=[],md=[],vd=[],Ad=[],Nd=[],Od=[],kd=[],Ld=[],Gd=[];(function(){for(var jd=[],qd=0;qd<256;qd++)qd<128?jd[qd]=qd<<1:jd[qd]=qd<<1^283;for(var zd=0,Yd=0,qd=0;qd<256;qd++){var Jd=Yd^Yd<<1^Yd<<2^Yd<<3^Yd<<4;Jd=Jd>>>8^Jd&255^99,pd[zd]=Jd,fd[Jd]=zd;var yf=jd[zd],Xd=jd[yf],pf=jd[Xd],mf=jd[Jd]*257^Jd*16843008;md[zd]=mf<<24|mf>>>8,vd[zd]=mf<<16|mf>>>16,Ad[zd]=mf<<8|mf>>>24,Nd[zd]=mf;var mf=pf*16843009^Xd*65537^yf*257^zd*16843008;Od[Jd]=mf<<24|mf>>>8,kd[Jd]=mf<<16|mf>>>16,Ld[Jd]=mf<<8|mf>>>24,Gd[Jd]=mf,zd?(zd=yf^jd[jd[jd[pf^yf]]],Yd^=jd[jd[Yd]]):zd=Yd=1}})();var Ud=[0,1,2,4,8,16,32,64,128,27,54],Fd=dd.AES=ud.extend({_doReset:function(){var jd;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var qd=this._keyPriorReset=this._key,zd=qd.words,Yd=qd.sigBytes/4,Jd=this._nRounds=Yd+6,yf=(Jd+1)*4,Xd=this._keySchedule=[],pf=0;pf6&&pf%Yd==4&&(jd=pd[jd>>>24]<<24|pd[jd>>>16&255]<<16|pd[jd>>>8&255]<<8|pd[jd&255]):(jd=jd<<8|jd>>>24,jd=pd[jd>>>24]<<24|pd[jd>>>16&255]<<16|pd[jd>>>8&255]<<8|pd[jd&255],jd^=Ud[pf/Yd|0]<<24),Xd[pf]=Xd[pf-Yd]^jd);for(var mf=this._invKeySchedule=[],Tf=0;Tf>>24]]^kd[pd[jd>>>16&255]]^Ld[pd[jd>>>8&255]]^Gd[pd[jd&255]]}}},encryptBlock:function(jd,qd){this._doCryptBlock(jd,qd,this._keySchedule,md,vd,Ad,Nd,pd)},decryptBlock:function(jd,qd){var zd=jd[qd+1];jd[qd+1]=jd[qd+3],jd[qd+3]=zd,this._doCryptBlock(jd,qd,this._invKeySchedule,Od,kd,Ld,Gd,fd);var zd=jd[qd+1];jd[qd+1]=jd[qd+3],jd[qd+3]=zd},_doCryptBlock:function(jd,qd,zd,Yd,Jd,yf,Xd,pf){for(var mf=this._nRounds,Tf=jd[qd]^zd[0],vf=jd[qd+1]^zd[1],Af=jd[qd+2]^zd[2],Sf=jd[qd+3]^zd[3],Df=4,If=1;If>>24]^Jd[vf>>>16&255]^yf[Af>>>8&255]^Xd[Sf&255]^zd[Df++],Jf=Yd[vf>>>24]^Jd[Af>>>16&255]^yf[Sf>>>8&255]^Xd[Tf&255]^zd[Df++],ih=Yd[Af>>>24]^Jd[Sf>>>16&255]^yf[Tf>>>8&255]^Xd[vf&255]^zd[Df++],uh=Yd[Sf>>>24]^Jd[Tf>>>16&255]^yf[vf>>>8&255]^Xd[Af&255]^zd[Df++];Tf=Gf,vf=Jf,Af=ih,Sf=uh}var Gf=(pf[Tf>>>24]<<24|pf[vf>>>16&255]<<16|pf[Af>>>8&255]<<8|pf[Sf&255])^zd[Df++],Jf=(pf[vf>>>24]<<24|pf[Af>>>16&255]<<16|pf[Sf>>>8&255]<<8|pf[Tf&255])^zd[Df++],ih=(pf[Af>>>24]<<24|pf[Sf>>>16&255]<<16|pf[Tf>>>8&255]<<8|pf[vf&255])^zd[Df++],uh=(pf[Sf>>>24]<<24|pf[Tf>>>16&255]<<16|pf[vf>>>8&255]<<8|pf[Af&255])^zd[Df++];jd[qd]=Gf,jd[qd+1]=Jf,jd[qd+2]=ih,jd[qd+3]=uh},keySize:256/32});od.AES=ud._createHelper(Fd)}(),nd.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=ld.BlockCipher,pd=od.algo,fd=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],md=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],vd=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Ad=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Nd=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],Od=pd.DES=dd.extend({_doReset:function(){for(var Ud=this._key,Fd=Ud.words,jd=[],qd=0;qd<56;qd++){var zd=fd[qd]-1;jd[qd]=Fd[zd>>>5]>>>31-zd%32&1}for(var Yd=this._subKeys=[],Jd=0;Jd<16;Jd++){for(var yf=Yd[Jd]=[],Xd=vd[Jd],qd=0;qd<24;qd++)yf[qd/6|0]|=jd[(md[qd]-1+Xd)%28]<<31-qd%6,yf[4+(qd/6|0)]|=jd[28+(md[qd+24]-1+Xd)%28]<<31-qd%6;yf[0]=yf[0]<<1|yf[0]>>>31;for(var qd=1;qd<7;qd++)yf[qd]=yf[qd]>>>(qd-1)*4+3;yf[7]=yf[7]<<5|yf[7]>>>27}for(var pf=this._invSubKeys=[],qd=0;qd<16;qd++)pf[qd]=Yd[15-qd]},encryptBlock:function(Ud,Fd){this._doCryptBlock(Ud,Fd,this._subKeys)},decryptBlock:function(Ud,Fd){this._doCryptBlock(Ud,Fd,this._invSubKeys)},_doCryptBlock:function(Ud,Fd,jd){this._lBlock=Ud[Fd],this._rBlock=Ud[Fd+1],kd.call(this,4,252645135),kd.call(this,16,65535),Ld.call(this,2,858993459),Ld.call(this,8,16711935),kd.call(this,1,1431655765);for(var qd=0;qd<16;qd++){for(var zd=jd[qd],Yd=this._lBlock,Jd=this._rBlock,yf=0,Xd=0;Xd<8;Xd++)yf|=Ad[Xd][((Jd^zd[Xd])&Nd[Xd])>>>0];this._lBlock=Jd,this._rBlock=Yd^yf}var pf=this._lBlock;this._lBlock=this._rBlock,this._rBlock=pf,kd.call(this,1,1431655765),Ld.call(this,8,16711935),Ld.call(this,2,858993459),kd.call(this,16,65535),kd.call(this,4,252645135),Ud[Fd]=this._lBlock,Ud[Fd+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function kd(Ud,Fd){var jd=(this._lBlock>>>Ud^this._rBlock)&Fd;this._rBlock^=jd,this._lBlock^=jd<>>Ud^this._lBlock)&Fd;this._lBlock^=jd,this._rBlock^=jd<192.");var jd=Fd.slice(0,2),qd=Fd.length<4?Fd.slice(0,2):Fd.slice(2,4),zd=Fd.length<6?Fd.slice(0,2):Fd.slice(4,6);this._des1=Od.createEncryptor(ud.create(jd)),this._des2=Od.createEncryptor(ud.create(qd)),this._des3=Od.createEncryptor(ud.create(zd))},encryptBlock:function(Ud,Fd){this._des1.encryptBlock(Ud,Fd),this._des2.decryptBlock(Ud,Fd),this._des3.encryptBlock(Ud,Fd)},decryptBlock:function(Ud,Fd){this._des3.decryptBlock(Ud,Fd),this._des2.encryptBlock(Ud,Fd),this._des1.decryptBlock(Ud,Fd)},keySize:192/32,ivSize:64/32,blockSize:64/32});od.TripleDES=dd._createHelper(Gd)}(),nd.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.StreamCipher,dd=od.algo,pd=dd.RC4=ud.extend({_doReset:function(){for(var vd=this._key,Ad=vd.words,Nd=vd.sigBytes,Od=this._S=[],kd=0;kd<256;kd++)Od[kd]=kd;for(var kd=0,Ld=0;kd<256;kd++){var Gd=kd%Nd,Ud=Ad[Gd>>>2]>>>24-Gd%4*8&255;Ld=(Ld+Od[kd]+Ud)%256;var Fd=Od[kd];Od[kd]=Od[Ld],Od[Ld]=Fd}this._i=this._j=0},_doProcessBlock:function(vd,Ad){vd[Ad]^=fd.call(this)},keySize:256/32,ivSize:0});function fd(){for(var vd=this._S,Ad=this._i,Nd=this._j,Od=0,kd=0;kd<4;kd++){Ad=(Ad+1)%256,Nd=(Nd+vd[Ad])%256;var Ld=vd[Ad];vd[Ad]=vd[Nd],vd[Nd]=Ld,Od|=vd[(vd[Ad]+vd[Nd])%256]<<24-kd*8}return this._i=Ad,this._j=Nd,Od}od.RC4=ud._createHelper(pd);var md=dd.RC4Drop=pd.extend({cfg:pd.cfg.extend({drop:192}),_doReset:function(){pd._doReset.call(this);for(var vd=this.cfg.drop;vd>0;vd--)fd.call(this)}});od.RC4Drop=ud._createHelper(md)}(),nd.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.StreamCipher,dd=od.algo,pd=[],fd=[],md=[],vd=dd.Rabbit=ud.extend({_doReset:function(){for(var Nd=this._key.words,Od=this.cfg.iv,kd=0;kd<4;kd++)Nd[kd]=(Nd[kd]<<8|Nd[kd]>>>24)&16711935|(Nd[kd]<<24|Nd[kd]>>>8)&4278255360;var Ld=this._X=[Nd[0],Nd[3]<<16|Nd[2]>>>16,Nd[1],Nd[0]<<16|Nd[3]>>>16,Nd[2],Nd[1]<<16|Nd[0]>>>16,Nd[3],Nd[2]<<16|Nd[1]>>>16],Gd=this._C=[Nd[2]<<16|Nd[2]>>>16,Nd[0]&4294901760|Nd[1]&65535,Nd[3]<<16|Nd[3]>>>16,Nd[1]&4294901760|Nd[2]&65535,Nd[0]<<16|Nd[0]>>>16,Nd[2]&4294901760|Nd[3]&65535,Nd[1]<<16|Nd[1]>>>16,Nd[3]&4294901760|Nd[0]&65535];this._b=0;for(var kd=0;kd<4;kd++)Ad.call(this);for(var kd=0;kd<8;kd++)Gd[kd]^=Ld[kd+4&7];if(Od){var Ud=Od.words,Fd=Ud[0],jd=Ud[1],qd=(Fd<<8|Fd>>>24)&16711935|(Fd<<24|Fd>>>8)&4278255360,zd=(jd<<8|jd>>>24)&16711935|(jd<<24|jd>>>8)&4278255360,Yd=qd>>>16|zd&4294901760,Jd=zd<<16|qd&65535;Gd[0]^=qd,Gd[1]^=Yd,Gd[2]^=zd,Gd[3]^=Jd,Gd[4]^=qd,Gd[5]^=Yd,Gd[6]^=zd,Gd[7]^=Jd;for(var kd=0;kd<4;kd++)Ad.call(this)}},_doProcessBlock:function(Nd,Od){var kd=this._X;Ad.call(this),pd[0]=kd[0]^kd[5]>>>16^kd[3]<<16,pd[1]=kd[2]^kd[7]>>>16^kd[5]<<16,pd[2]=kd[4]^kd[1]>>>16^kd[7]<<16,pd[3]=kd[6]^kd[3]>>>16^kd[1]<<16;for(var Ld=0;Ld<4;Ld++)pd[Ld]=(pd[Ld]<<8|pd[Ld]>>>24)&16711935|(pd[Ld]<<24|pd[Ld]>>>8)&4278255360,Nd[Od+Ld]^=pd[Ld]},blockSize:128/32,ivSize:64/32});function Ad(){for(var Nd=this._X,Od=this._C,kd=0;kd<8;kd++)fd[kd]=Od[kd];Od[0]=Od[0]+1295307597+this._b|0,Od[1]=Od[1]+3545052371+(Od[0]>>>0>>0?1:0)|0,Od[2]=Od[2]+886263092+(Od[1]>>>0>>0?1:0)|0,Od[3]=Od[3]+1295307597+(Od[2]>>>0>>0?1:0)|0,Od[4]=Od[4]+3545052371+(Od[3]>>>0>>0?1:0)|0,Od[5]=Od[5]+886263092+(Od[4]>>>0>>0?1:0)|0,Od[6]=Od[6]+1295307597+(Od[5]>>>0>>0?1:0)|0,Od[7]=Od[7]+3545052371+(Od[6]>>>0>>0?1:0)|0,this._b=Od[7]>>>0>>0?1:0;for(var kd=0;kd<8;kd++){var Ld=Nd[kd]+Od[kd],Gd=Ld&65535,Ud=Ld>>>16,Fd=((Gd*Gd>>>17)+Gd*Ud>>>15)+Ud*Ud,jd=((Ld&4294901760)*Ld|0)+((Ld&65535)*Ld|0);md[kd]=Fd^jd}Nd[0]=md[0]+(md[7]<<16|md[7]>>>16)+(md[6]<<16|md[6]>>>16)|0,Nd[1]=md[1]+(md[0]<<8|md[0]>>>24)+md[7]|0,Nd[2]=md[2]+(md[1]<<16|md[1]>>>16)+(md[0]<<16|md[0]>>>16)|0,Nd[3]=md[3]+(md[2]<<8|md[2]>>>24)+md[1]|0,Nd[4]=md[4]+(md[3]<<16|md[3]>>>16)+(md[2]<<16|md[2]>>>16)|0,Nd[5]=md[5]+(md[4]<<8|md[4]>>>24)+md[3]|0,Nd[6]=md[6]+(md[5]<<16|md[5]>>>16)+(md[4]<<16|md[4]>>>16)|0,Nd[7]=md[7]+(md[6]<<8|md[6]>>>24)+md[5]|0}od.Rabbit=ud._createHelper(vd)}(),nd.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.StreamCipher,dd=od.algo,pd=[],fd=[],md=[],vd=dd.RabbitLegacy=ud.extend({_doReset:function(){var Nd=this._key.words,Od=this.cfg.iv,kd=this._X=[Nd[0],Nd[3]<<16|Nd[2]>>>16,Nd[1],Nd[0]<<16|Nd[3]>>>16,Nd[2],Nd[1]<<16|Nd[0]>>>16,Nd[3],Nd[2]<<16|Nd[1]>>>16],Ld=this._C=[Nd[2]<<16|Nd[2]>>>16,Nd[0]&4294901760|Nd[1]&65535,Nd[3]<<16|Nd[3]>>>16,Nd[1]&4294901760|Nd[2]&65535,Nd[0]<<16|Nd[0]>>>16,Nd[2]&4294901760|Nd[3]&65535,Nd[1]<<16|Nd[1]>>>16,Nd[3]&4294901760|Nd[0]&65535];this._b=0;for(var Gd=0;Gd<4;Gd++)Ad.call(this);for(var Gd=0;Gd<8;Gd++)Ld[Gd]^=kd[Gd+4&7];if(Od){var Ud=Od.words,Fd=Ud[0],jd=Ud[1],qd=(Fd<<8|Fd>>>24)&16711935|(Fd<<24|Fd>>>8)&4278255360,zd=(jd<<8|jd>>>24)&16711935|(jd<<24|jd>>>8)&4278255360,Yd=qd>>>16|zd&4294901760,Jd=zd<<16|qd&65535;Ld[0]^=qd,Ld[1]^=Yd,Ld[2]^=zd,Ld[3]^=Jd,Ld[4]^=qd,Ld[5]^=Yd,Ld[6]^=zd,Ld[7]^=Jd;for(var Gd=0;Gd<4;Gd++)Ad.call(this)}},_doProcessBlock:function(Nd,Od){var kd=this._X;Ad.call(this),pd[0]=kd[0]^kd[5]>>>16^kd[3]<<16,pd[1]=kd[2]^kd[7]>>>16^kd[5]<<16,pd[2]=kd[4]^kd[1]>>>16^kd[7]<<16,pd[3]=kd[6]^kd[3]>>>16^kd[1]<<16;for(var Ld=0;Ld<4;Ld++)pd[Ld]=(pd[Ld]<<8|pd[Ld]>>>24)&16711935|(pd[Ld]<<24|pd[Ld]>>>8)&4278255360,Nd[Od+Ld]^=pd[Ld]},blockSize:128/32,ivSize:64/32});function Ad(){for(var Nd=this._X,Od=this._C,kd=0;kd<8;kd++)fd[kd]=Od[kd];Od[0]=Od[0]+1295307597+this._b|0,Od[1]=Od[1]+3545052371+(Od[0]>>>0>>0?1:0)|0,Od[2]=Od[2]+886263092+(Od[1]>>>0>>0?1:0)|0,Od[3]=Od[3]+1295307597+(Od[2]>>>0>>0?1:0)|0,Od[4]=Od[4]+3545052371+(Od[3]>>>0>>0?1:0)|0,Od[5]=Od[5]+886263092+(Od[4]>>>0>>0?1:0)|0,Od[6]=Od[6]+1295307597+(Od[5]>>>0>>0?1:0)|0,Od[7]=Od[7]+3545052371+(Od[6]>>>0>>0?1:0)|0,this._b=Od[7]>>>0>>0?1:0;for(var kd=0;kd<8;kd++){var Ld=Nd[kd]+Od[kd],Gd=Ld&65535,Ud=Ld>>>16,Fd=((Gd*Gd>>>17)+Gd*Ud>>>15)+Ud*Ud,jd=((Ld&4294901760)*Ld|0)+((Ld&65535)*Ld|0);md[kd]=Fd^jd}Nd[0]=md[0]+(md[7]<<16|md[7]>>>16)+(md[6]<<16|md[6]>>>16)|0,Nd[1]=md[1]+(md[0]<<8|md[0]>>>24)+md[7]|0,Nd[2]=md[2]+(md[1]<<16|md[1]>>>16)+(md[0]<<16|md[0]>>>16)|0,Nd[3]=md[3]+(md[2]<<8|md[2]>>>24)+md[1]|0,Nd[4]=md[4]+(md[3]<<16|md[3]>>>16)+(md[2]<<16|md[2]>>>16)|0,Nd[5]=md[5]+(md[4]<<8|md[4]>>>24)+md[3]|0,Nd[6]=md[6]+(md[5]<<16|md[5]>>>16)+(md[4]<<16|md[4]>>>16)|0,Nd[7]=md[7]+(md[6]<<8|md[6]>>>24)+md[5]|0}od.RabbitLegacy=ud._createHelper(vd)}(),nd.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}var blowfish={exports:{}},hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.BlockCipher,dd=od.algo;const pd=16,fd=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],md=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var vd={pbox:[],sbox:[]};function Ad(Gd,Ud){let Fd=Ud>>24&255,jd=Ud>>16&255,qd=Ud>>8&255,zd=Ud&255,Yd=Gd.sbox[0][Fd]+Gd.sbox[1][jd];return Yd=Yd^Gd.sbox[2][qd],Yd=Yd+Gd.sbox[3][zd],Yd}function Nd(Gd,Ud,Fd){let jd=Ud,qd=Fd,zd;for(let Yd=0;Yd1;--Yd)jd=jd^Gd.pbox[Yd],qd=Ad(Gd,jd)^qd,zd=jd,jd=qd,qd=zd;return zd=jd,jd=qd,qd=zd,qd=qd^Gd.pbox[1],jd=jd^Gd.pbox[0],{left:jd,right:qd}}function kd(Gd,Ud,Fd){for(let Jd=0;Jd<4;Jd++){Gd.sbox[Jd]=[];for(let yf=0;yf<256;yf++)Gd.sbox[Jd][yf]=md[Jd][yf]}let jd=0;for(let Jd=0;Jd=Fd&&(jd=0);let qd=0,zd=0,Yd=0;for(let Jd=0;Jd2){var fd=nd.lastIndexOf("/");if(fd!==nd.length-1){fd===-1?(nd="",od=0):(nd=nd.slice(0,fd),od=nd.length-1-nd.lastIndexOf("/")),ld=pd,ud=0;continue}}else if(nd.length===2||nd.length===1){nd="",od=0,ld=pd,ud=0;continue}}qa&&(nd.length>0?nd+="/..":nd="..",od=2)}else nd.length>0?nd+="/"+Ra.slice(ld+1,pd):nd=Ra.slice(ld+1,pd),od=pd-ld-1;ld=pd,ud=0}else dd===46&&ud!==-1?++ud:ud=-1}return nd}function _format(Ra,qa){var nd=qa.dir||qa.root,od=qa.base||(qa.name||"")+(qa.ext||"");return nd?nd===qa.root?nd+od:nd+Ra+od:od}var posix={resolve:function(){for(var qa="",nd=!1,od,ld=arguments.length-1;ld>=-1&&!nd;ld--){var ud;ld>=0?ud=arguments[ld]:(od===void 0&&(od=define_process_default$6.cwd()),ud=od),assertPath(ud),ud.length!==0&&(qa=ud+"/"+qa,nd=ud.charCodeAt(0)===47)}return qa=normalizeStringPosix(qa,!nd),nd?qa.length>0?"/"+qa:"/":qa.length>0?qa:"."},normalize:function(qa){if(assertPath(qa),qa.length===0)return".";var nd=qa.charCodeAt(0)===47,od=qa.charCodeAt(qa.length-1)===47;return qa=normalizeStringPosix(qa,!nd),qa.length===0&&!nd&&(qa="."),qa.length>0&&od&&(qa+="/"),nd?"/"+qa:qa},isAbsolute:function(qa){return assertPath(qa),qa.length>0&&qa.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var qa,nd=0;nd0&&(qa===void 0?qa=od:qa+="/"+od)}return qa===void 0?".":posix.normalize(qa)},relative:function(qa,nd){if(assertPath(qa),assertPath(nd),qa===nd||(qa=posix.resolve(qa),nd=posix.resolve(nd),qa===nd))return"";for(var od=1;odmd){if(nd.charCodeAt(dd+Ad)===47)return nd.slice(dd+Ad+1);if(Ad===0)return nd.slice(dd+Ad)}else ud>md&&(qa.charCodeAt(od+Ad)===47?vd=Ad:Ad===0&&(vd=0));break}var Nd=qa.charCodeAt(od+Ad),Od=nd.charCodeAt(dd+Ad);if(Nd!==Od)break;Nd===47&&(vd=Ad)}var kd="";for(Ad=od+vd+1;Ad<=ld;++Ad)(Ad===ld||qa.charCodeAt(Ad)===47)&&(kd.length===0?kd+="..":kd+="/..");return kd.length>0?kd+nd.slice(dd+vd):(dd+=vd,nd.charCodeAt(dd)===47&&++dd,nd.slice(dd))},_makeLong:function(qa){return qa},dirname:function(qa){if(assertPath(qa),qa.length===0)return".";for(var nd=qa.charCodeAt(0),od=nd===47,ld=-1,ud=!0,dd=qa.length-1;dd>=1;--dd)if(nd=qa.charCodeAt(dd),nd===47){if(!ud){ld=dd;break}}else ud=!1;return ld===-1?od?"/":".":od&&ld===1?"//":qa.slice(0,ld)},basename:function(qa,nd){if(nd!==void 0&&typeof nd!="string")throw new TypeError('"ext" argument must be a string');assertPath(qa);var od=0,ld=-1,ud=!0,dd;if(nd!==void 0&&nd.length>0&&nd.length<=qa.length){if(nd.length===qa.length&&nd===qa)return"";var pd=nd.length-1,fd=-1;for(dd=qa.length-1;dd>=0;--dd){var md=qa.charCodeAt(dd);if(md===47){if(!ud){od=dd+1;break}}else fd===-1&&(ud=!1,fd=dd+1),pd>=0&&(md===nd.charCodeAt(pd)?--pd===-1&&(ld=dd):(pd=-1,ld=fd))}return od===ld?ld=fd:ld===-1&&(ld=qa.length),qa.slice(od,ld)}else{for(dd=qa.length-1;dd>=0;--dd)if(qa.charCodeAt(dd)===47){if(!ud){od=dd+1;break}}else ld===-1&&(ud=!1,ld=dd+1);return ld===-1?"":qa.slice(od,ld)}},extname:function(qa){assertPath(qa);for(var nd=-1,od=0,ld=-1,ud=!0,dd=0,pd=qa.length-1;pd>=0;--pd){var fd=qa.charCodeAt(pd);if(fd===47){if(!ud){od=pd+1;break}continue}ld===-1&&(ud=!1,ld=pd+1),fd===46?nd===-1?nd=pd:dd!==1&&(dd=1):nd!==-1&&(dd=-1)}return nd===-1||ld===-1||dd===0||dd===1&&nd===ld-1&&nd===od+1?"":qa.slice(nd,ld)},format:function(qa){if(qa===null||typeof qa!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof qa);return _format("/",qa)},parse:function(qa){assertPath(qa);var nd={root:"",dir:"",base:"",ext:"",name:""};if(qa.length===0)return nd;var od=qa.charCodeAt(0),ld=od===47,ud;ld?(nd.root="/",ud=1):ud=0;for(var dd=-1,pd=0,fd=-1,md=!0,vd=qa.length-1,Ad=0;vd>=ud;--vd){if(od=qa.charCodeAt(vd),od===47){if(!md){pd=vd+1;break}continue}fd===-1&&(md=!1,fd=vd+1),od===46?dd===-1?dd=vd:Ad!==1&&(Ad=1):dd!==-1&&(Ad=-1)}return dd===-1||fd===-1||Ad===0||Ad===1&&dd===fd-1&&dd===pd+1?fd!==-1&&(pd===0&&ld?nd.base=nd.name=qa.slice(1,fd):nd.base=nd.name=qa.slice(pd,fd)):(pd===0&&ld?(nd.name=qa.slice(1,dd),nd.base=qa.slice(1,fd)):(nd.name=qa.slice(pd,dd),nd.base=qa.slice(pd,fd)),nd.ext=qa.slice(dd,fd)),pd>0?nd.dir=qa.slice(0,pd-1):ld&&(nd.dir="/"),nd},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix,define_process_default$5={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};function apply(Ra,...qa){return(...nd)=>Ra(...qa,...nd)}function initialParams(Ra){return function(...qa){var nd=qa.pop();return Ra.call(this,qa,nd)}}var hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,hasSetImmediate=typeof setImmediate=="function"&&setImmediate,hasNextTick=typeof define_process_default$5=="object"&&typeof define_process_default$5.nextTick=="function";function fallback(Ra){setTimeout(Ra,0)}function wrap(Ra){return(qa,...nd)=>Ra(()=>qa(...nd))}var _defer$1;hasQueueMicrotask?_defer$1=queueMicrotask:hasSetImmediate?_defer$1=setImmediate:hasNextTick?_defer$1=define_process_default$5.nextTick:_defer$1=fallback;var setImmediate$1$1=wrap(_defer$1);function asyncify(Ra){return isAsync(Ra)?function(...qa){const nd=qa.pop(),od=Ra.apply(this,qa);return handlePromise(od,nd)}:initialParams(function(qa,nd){var od;try{od=Ra.apply(this,qa)}catch(ld){return nd(ld)}if(od&&typeof od.then=="function")return handlePromise(od,nd);nd(null,od)})}function handlePromise(Ra,qa){return Ra.then(nd=>{invokeCallback(qa,null,nd)},nd=>{invokeCallback(qa,nd&&(nd instanceof Error||nd.message)?nd:new Error(nd))})}function invokeCallback(Ra,qa,nd){try{Ra(qa,nd)}catch(od){setImmediate$1$1(ld=>{throw ld},od)}}function isAsync(Ra){return Ra[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(Ra){return Ra[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(Ra){return typeof Ra[Symbol.asyncIterator]=="function"}function wrapAsync(Ra){if(typeof Ra!="function")throw new Error("expected a function");return isAsync(Ra)?asyncify(Ra):Ra}function awaitify(Ra,qa){if(qa||(qa=Ra.length),!qa)throw new Error("arity is undefined");function nd(...od){return typeof od[qa-1]=="function"?Ra.apply(this,od):new Promise((ld,ud)=>{od[qa-1]=(dd,...pd)=>{if(dd)return ud(dd);ld(pd.length>1?pd:pd[0])},Ra.apply(this,od)})}return nd}function applyEach$1(Ra){return function(nd,...od){return awaitify(function(ud){var dd=this;return Ra(nd,(pd,fd)=>{wrapAsync(pd).apply(dd,od.concat(fd))},ud)})}}function _asyncMap(Ra,qa,nd,od){qa=qa||[];var ld=[],ud=0,dd=wrapAsync(nd);return Ra(qa,(pd,fd,md)=>{var vd=ud++;dd(pd,(Ad,Nd)=>{ld[vd]=Nd,md(Ad)})},pd=>{od(pd,ld)})}function isArrayLike(Ra){return Ra&&typeof Ra.length=="number"&&Ra.length>=0&&Ra.length%1===0}const breakLoop={};function once(Ra){function qa(...nd){if(Ra!==null){var od=Ra;Ra=null,od.apply(this,nd)}}return Object.assign(qa,Ra),qa}function getIterator(Ra){return Ra[Symbol.iterator]&&Ra[Symbol.iterator]()}function createArrayIterator(Ra){var qa=-1,nd=Ra.length;return function(){return++qa=qa||dd||ld||(dd=!0,Ra.next().then(({value:Nd,done:Od})=>{if(!(ud||ld)){if(dd=!1,Od){ld=!0,pd<=0&&od(null);return}pd++,nd(Nd,fd,vd),fd++,md()}}).catch(Ad))}function vd(Nd,Od){if(pd-=1,!ud){if(Nd)return Ad(Nd);if(Nd===!1){ld=!0,ud=!0;return}if(Od===breakLoop||ld&&pd<=0)return ld=!0,od(null);md()}}function Ad(Nd){ud||(dd=!1,ld=!0,od(Nd))}md()}var eachOfLimit$2=Ra=>(qa,nd,od)=>{if(od=once(od),Ra<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!qa)return od(null);if(isAsyncGenerator(qa))return asyncEachOfLimit(qa,Ra,nd,od);if(isAsyncIterable(qa))return asyncEachOfLimit(qa[Symbol.asyncIterator](),Ra,nd,od);var ld=createIterator(qa),ud=!1,dd=!1,pd=0,fd=!1;function md(Ad,Nd){if(!dd)if(pd-=1,Ad)ud=!0,od(Ad);else if(Ad===!1)ud=!0,dd=!0;else{if(Nd===breakLoop||ud&&pd<=0)return ud=!0,od(null);fd||vd()}}function vd(){for(fd=!0;pd1?ld:ld[0])}return nd[PROMISE_SYMBOL]=new Promise((od,ld)=>{Ra=od,qa=ld}),nd}function auto(Ra,qa,nd){typeof qa!="number"&&(nd=qa,qa=null),nd=once(nd||promiseCallback());var od=Object.keys(Ra).length;if(!od)return nd(null);qa||(qa=od);var ld={},ud=0,dd=!1,pd=!1,fd=Object.create(null),md=[],vd=[],Ad={};Object.keys(Ra).forEach(jd=>{var qd=Ra[jd];if(!Array.isArray(qd)){Nd(jd,[qd]),vd.push(jd);return}var zd=qd.slice(0,qd.length-1),Yd=zd.length;if(Yd===0){Nd(jd,qd),vd.push(jd);return}Ad[jd]=Yd,zd.forEach(Jd=>{if(!Ra[Jd])throw new Error("async.auto task `"+jd+"` has a non-existent dependency `"+Jd+"` in "+zd.join(", "));kd(Jd,()=>{Yd--,Yd===0&&Nd(jd,qd)})})}),Ud(),Od();function Nd(jd,qd){md.push(()=>Gd(jd,qd))}function Od(){if(!dd){if(md.length===0&&ud===0)return nd(null,ld);for(;md.length&&udzd()),Od()}function Gd(jd,qd){if(!pd){var zd=onlyOnce((Jd,...yf)=>{if(ud--,Jd===!1){dd=!0;return}if(yf.length<2&&([yf]=yf),Jd){var Xd={};if(Object.keys(ld).forEach(pf=>{Xd[pf]=ld[pf]}),Xd[jd]=yf,pd=!0,fd=Object.create(null),dd)return;nd(Jd,Xd)}else ld[jd]=yf,Ld(jd)});ud++;var Yd=wrapAsync(qd[qd.length-1]);qd.length>1?Yd(ld,zd):Yd(zd)}}function Ud(){for(var jd,qd=0;vd.length;)jd=vd.pop(),qd++,Fd(jd).forEach(zd=>{--Ad[zd]===0&&vd.push(zd)});if(qd!==od)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function Fd(jd){var qd=[];return Object.keys(Ra).forEach(zd=>{const Yd=Ra[zd];Array.isArray(Yd)&&Yd.indexOf(jd)>=0&&qd.push(zd)}),qd}return nd[PROMISE_SYMBOL]}var FN_ARGS=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,ARROW_FN_ARGS=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,FN_ARG_SPLIT=/,/,FN_ARG=/(=.+)?(\s*)$/;function stripComments(Ra){let qa="",nd=0,od=Ra.indexOf("*/");for(;nd>24&255)===255){var fd=pd>>16&255,md=pd>>8&255,vd=pd&255;fd===255?(fd=0,md===255?(md=0,vd===255?vd=0:++vd):++md):++fd,pd=0,pd+=fd<<16,pd+=md<<8,pd+=vd}else pd+=1<<24;return pd}function ud(pd){return(pd[0]=ld(pd[0]))===0&&(pd[1]=ld(pd[1])),pd}var dd=od.Encryptor=od.extend({processBlock:function(pd,fd){var md=this._cipher,vd=md.blockSize,Ad=this._iv,Nd=this._counter;Ad&&(Nd=this._counter=Ad.slice(0),this._iv=void 0),ud(Nd);var Od=Nd.slice(0);md.encryptBlock(Od,0);for(var kd=0;kd>>2]|=pd<<24-fd%4*8,od.sigBytes+=pd},unpad:function(od){var ld=od.words[od.sigBytes-1>>>2]&255;od.sigBytes-=ld}},nd.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.Iso10126={pad:function(od,ld){var ud=ld*4,dd=ud-od.sigBytes%ud;od.concat(nd.lib.WordArray.random(dd-1)).concat(nd.lib.WordArray.create([dd<<24],1))},unpad:function(od){var ld=od.words[od.sigBytes-1>>>2]&255;od.sigBytes-=ld}},nd.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.Iso97971={pad:function(od,ld){od.concat(nd.lib.WordArray.create([2147483648],1)),nd.pad.ZeroPadding.pad(od,ld)},unpad:function(od){nd.pad.ZeroPadding.unpad(od),od.sigBytes--}},nd.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.ZeroPadding={pad:function(od,ld){var ud=ld*4;od.clamp(),od.sigBytes+=ud-(od.sigBytes%ud||ud)},unpad:function(od){for(var ld=od.words,ud=od.sigBytes-1,ud=od.sigBytes-1;ud>=0;ud--)if(ld[ud>>>2]>>>24-ud%4*8&255){od.sigBytes=ud+1;break}}},nd.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.NoPadding={pad:function(){},unpad:function(){}},nd.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return function(od){var ld=nd,ud=ld.lib,dd=ud.CipherParams,pd=ld.enc,fd=pd.Hex,md=ld.format;md.Hex={stringify:function(vd){return vd.ciphertext.toString(fd)},parse:function(vd){var Ad=fd.parse(vd);return dd.create({ciphertext:Ad})}}}(),nd.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.BlockCipher,dd=od.algo,pd=[],fd=[],md=[],vd=[],Ad=[],Nd=[],Od=[],kd=[],Ld=[],Gd=[];(function(){for(var Ud=[],qd=0;qd<256;qd++)qd<128?Ud[qd]=qd<<1:Ud[qd]=qd<<1^283;for(var zd=0,Wd=0,qd=0;qd<256;qd++){var Jd=Wd^Wd<<1^Wd<<2^Wd<<3^Wd<<4;Jd=Jd>>>8^Jd&255^99,pd[zd]=Jd,fd[Jd]=zd;var _f=Ud[zd],Xd=Ud[_f],pf=Ud[Xd],mf=Ud[Jd]*257^Jd*16843008;md[zd]=mf<<24|mf>>>8,vd[zd]=mf<<16|mf>>>16,Ad[zd]=mf<<8|mf>>>24,Nd[zd]=mf;var mf=pf*16843009^Xd*65537^_f*257^zd*16843008;Od[Jd]=mf<<24|mf>>>8,kd[Jd]=mf<<16|mf>>>16,Ld[Jd]=mf<<8|mf>>>24,Gd[Jd]=mf,zd?(zd=_f^Ud[Ud[Ud[pf^_f]]],Wd^=Ud[Ud[Wd]]):zd=Wd=1}})();var jd=[0,1,2,4,8,16,32,64,128,27,54],Fd=dd.AES=ud.extend({_doReset:function(){var Ud;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var qd=this._keyPriorReset=this._key,zd=qd.words,Wd=qd.sigBytes/4,Jd=this._nRounds=Wd+6,_f=(Jd+1)*4,Xd=this._keySchedule=[],pf=0;pf<_f;pf++)pf6&&pf%Wd==4&&(Ud=pd[Ud>>>24]<<24|pd[Ud>>>16&255]<<16|pd[Ud>>>8&255]<<8|pd[Ud&255]):(Ud=Ud<<8|Ud>>>24,Ud=pd[Ud>>>24]<<24|pd[Ud>>>16&255]<<16|pd[Ud>>>8&255]<<8|pd[Ud&255],Ud^=jd[pf/Wd|0]<<24),Xd[pf]=Xd[pf-Wd]^Ud);for(var mf=this._invKeySchedule=[],Sf=0;Sf<_f;Sf++){var pf=_f-Sf;if(Sf%4)var Ud=Xd[pf];else var Ud=Xd[pf-4];Sf<4||pf<=4?mf[Sf]=Ud:mf[Sf]=Od[pd[Ud>>>24]]^kd[pd[Ud>>>16&255]]^Ld[pd[Ud>>>8&255]]^Gd[pd[Ud&255]]}}},encryptBlock:function(Ud,qd){this._doCryptBlock(Ud,qd,this._keySchedule,md,vd,Ad,Nd,pd)},decryptBlock:function(Ud,qd){var zd=Ud[qd+1];Ud[qd+1]=Ud[qd+3],Ud[qd+3]=zd,this._doCryptBlock(Ud,qd,this._invKeySchedule,Od,kd,Ld,Gd,fd);var zd=Ud[qd+1];Ud[qd+1]=Ud[qd+3],Ud[qd+3]=zd},_doCryptBlock:function(Ud,qd,zd,Wd,Jd,_f,Xd,pf){for(var mf=this._nRounds,Sf=Ud[qd]^zd[0],Tf=Ud[qd+1]^zd[1],Af=Ud[qd+2]^zd[2],Ef=Ud[qd+3]^zd[3],Nf=4,If=1;If>>24]^Jd[Tf>>>16&255]^_f[Af>>>8&255]^Xd[Ef&255]^zd[Nf++],Qf=Wd[Tf>>>24]^Jd[Af>>>16&255]^_f[Ef>>>8&255]^Xd[Sf&255]^zd[Nf++],Xf=Wd[Af>>>24]^Jd[Ef>>>16&255]^_f[Sf>>>8&255]^Xd[Tf&255]^zd[Nf++],ph=Wd[Ef>>>24]^Jd[Sf>>>16&255]^_f[Tf>>>8&255]^Xd[Af&255]^zd[Nf++];Sf=Gf,Tf=Qf,Af=Xf,Ef=ph}var Gf=(pf[Sf>>>24]<<24|pf[Tf>>>16&255]<<16|pf[Af>>>8&255]<<8|pf[Ef&255])^zd[Nf++],Qf=(pf[Tf>>>24]<<24|pf[Af>>>16&255]<<16|pf[Ef>>>8&255]<<8|pf[Sf&255])^zd[Nf++],Xf=(pf[Af>>>24]<<24|pf[Ef>>>16&255]<<16|pf[Sf>>>8&255]<<8|pf[Tf&255])^zd[Nf++],ph=(pf[Ef>>>24]<<24|pf[Sf>>>16&255]<<16|pf[Tf>>>8&255]<<8|pf[Af&255])^zd[Nf++];Ud[qd]=Gf,Ud[qd+1]=Qf,Ud[qd+2]=Xf,Ud[qd+3]=ph},keySize:256/32});od.AES=ud._createHelper(Fd)}(),nd.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.WordArray,dd=ld.BlockCipher,pd=od.algo,fd=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],md=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],vd=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Ad=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Nd=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],Od=pd.DES=dd.extend({_doReset:function(){for(var jd=this._key,Fd=jd.words,Ud=[],qd=0;qd<56;qd++){var zd=fd[qd]-1;Ud[qd]=Fd[zd>>>5]>>>31-zd%32&1}for(var Wd=this._subKeys=[],Jd=0;Jd<16;Jd++){for(var _f=Wd[Jd]=[],Xd=vd[Jd],qd=0;qd<24;qd++)_f[qd/6|0]|=Ud[(md[qd]-1+Xd)%28]<<31-qd%6,_f[4+(qd/6|0)]|=Ud[28+(md[qd+24]-1+Xd)%28]<<31-qd%6;_f[0]=_f[0]<<1|_f[0]>>>31;for(var qd=1;qd<7;qd++)_f[qd]=_f[qd]>>>(qd-1)*4+3;_f[7]=_f[7]<<5|_f[7]>>>27}for(var pf=this._invSubKeys=[],qd=0;qd<16;qd++)pf[qd]=Wd[15-qd]},encryptBlock:function(jd,Fd){this._doCryptBlock(jd,Fd,this._subKeys)},decryptBlock:function(jd,Fd){this._doCryptBlock(jd,Fd,this._invSubKeys)},_doCryptBlock:function(jd,Fd,Ud){this._lBlock=jd[Fd],this._rBlock=jd[Fd+1],kd.call(this,4,252645135),kd.call(this,16,65535),Ld.call(this,2,858993459),Ld.call(this,8,16711935),kd.call(this,1,1431655765);for(var qd=0;qd<16;qd++){for(var zd=Ud[qd],Wd=this._lBlock,Jd=this._rBlock,_f=0,Xd=0;Xd<8;Xd++)_f|=Ad[Xd][((Jd^zd[Xd])&Nd[Xd])>>>0];this._lBlock=Jd,this._rBlock=Wd^_f}var pf=this._lBlock;this._lBlock=this._rBlock,this._rBlock=pf,kd.call(this,1,1431655765),Ld.call(this,8,16711935),Ld.call(this,2,858993459),kd.call(this,16,65535),kd.call(this,4,252645135),jd[Fd]=this._lBlock,jd[Fd+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function kd(jd,Fd){var Ud=(this._lBlock>>>jd^this._rBlock)&Fd;this._rBlock^=Ud,this._lBlock^=Ud<>>jd^this._lBlock)&Fd;this._lBlock^=Ud,this._rBlock^=Ud<192.");var Ud=Fd.slice(0,2),qd=Fd.length<4?Fd.slice(0,2):Fd.slice(2,4),zd=Fd.length<6?Fd.slice(0,2):Fd.slice(4,6);this._des1=Od.createEncryptor(ud.create(Ud)),this._des2=Od.createEncryptor(ud.create(qd)),this._des3=Od.createEncryptor(ud.create(zd))},encryptBlock:function(jd,Fd){this._des1.encryptBlock(jd,Fd),this._des2.decryptBlock(jd,Fd),this._des3.encryptBlock(jd,Fd)},decryptBlock:function(jd,Fd){this._des3.decryptBlock(jd,Fd),this._des2.encryptBlock(jd,Fd),this._des1.decryptBlock(jd,Fd)},keySize:192/32,ivSize:64/32,blockSize:64/32});od.TripleDES=dd._createHelper(Gd)}(),nd.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.StreamCipher,dd=od.algo,pd=dd.RC4=ud.extend({_doReset:function(){for(var vd=this._key,Ad=vd.words,Nd=vd.sigBytes,Od=this._S=[],kd=0;kd<256;kd++)Od[kd]=kd;for(var kd=0,Ld=0;kd<256;kd++){var Gd=kd%Nd,jd=Ad[Gd>>>2]>>>24-Gd%4*8&255;Ld=(Ld+Od[kd]+jd)%256;var Fd=Od[kd];Od[kd]=Od[Ld],Od[Ld]=Fd}this._i=this._j=0},_doProcessBlock:function(vd,Ad){vd[Ad]^=fd.call(this)},keySize:256/32,ivSize:0});function fd(){for(var vd=this._S,Ad=this._i,Nd=this._j,Od=0,kd=0;kd<4;kd++){Ad=(Ad+1)%256,Nd=(Nd+vd[Ad])%256;var Ld=vd[Ad];vd[Ad]=vd[Nd],vd[Nd]=Ld,Od|=vd[(vd[Ad]+vd[Nd])%256]<<24-kd*8}return this._i=Ad,this._j=Nd,Od}od.RC4=ud._createHelper(pd);var md=dd.RC4Drop=pd.extend({cfg:pd.cfg.extend({drop:192}),_doReset:function(){pd._doReset.call(this);for(var vd=this.cfg.drop;vd>0;vd--)fd.call(this)}});od.RC4Drop=ud._createHelper(md)}(),nd.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.StreamCipher,dd=od.algo,pd=[],fd=[],md=[],vd=dd.Rabbit=ud.extend({_doReset:function(){for(var Nd=this._key.words,Od=this.cfg.iv,kd=0;kd<4;kd++)Nd[kd]=(Nd[kd]<<8|Nd[kd]>>>24)&16711935|(Nd[kd]<<24|Nd[kd]>>>8)&4278255360;var Ld=this._X=[Nd[0],Nd[3]<<16|Nd[2]>>>16,Nd[1],Nd[0]<<16|Nd[3]>>>16,Nd[2],Nd[1]<<16|Nd[0]>>>16,Nd[3],Nd[2]<<16|Nd[1]>>>16],Gd=this._C=[Nd[2]<<16|Nd[2]>>>16,Nd[0]&4294901760|Nd[1]&65535,Nd[3]<<16|Nd[3]>>>16,Nd[1]&4294901760|Nd[2]&65535,Nd[0]<<16|Nd[0]>>>16,Nd[2]&4294901760|Nd[3]&65535,Nd[1]<<16|Nd[1]>>>16,Nd[3]&4294901760|Nd[0]&65535];this._b=0;for(var kd=0;kd<4;kd++)Ad.call(this);for(var kd=0;kd<8;kd++)Gd[kd]^=Ld[kd+4&7];if(Od){var jd=Od.words,Fd=jd[0],Ud=jd[1],qd=(Fd<<8|Fd>>>24)&16711935|(Fd<<24|Fd>>>8)&4278255360,zd=(Ud<<8|Ud>>>24)&16711935|(Ud<<24|Ud>>>8)&4278255360,Wd=qd>>>16|zd&4294901760,Jd=zd<<16|qd&65535;Gd[0]^=qd,Gd[1]^=Wd,Gd[2]^=zd,Gd[3]^=Jd,Gd[4]^=qd,Gd[5]^=Wd,Gd[6]^=zd,Gd[7]^=Jd;for(var kd=0;kd<4;kd++)Ad.call(this)}},_doProcessBlock:function(Nd,Od){var kd=this._X;Ad.call(this),pd[0]=kd[0]^kd[5]>>>16^kd[3]<<16,pd[1]=kd[2]^kd[7]>>>16^kd[5]<<16,pd[2]=kd[4]^kd[1]>>>16^kd[7]<<16,pd[3]=kd[6]^kd[3]>>>16^kd[1]<<16;for(var Ld=0;Ld<4;Ld++)pd[Ld]=(pd[Ld]<<8|pd[Ld]>>>24)&16711935|(pd[Ld]<<24|pd[Ld]>>>8)&4278255360,Nd[Od+Ld]^=pd[Ld]},blockSize:128/32,ivSize:64/32});function Ad(){for(var Nd=this._X,Od=this._C,kd=0;kd<8;kd++)fd[kd]=Od[kd];Od[0]=Od[0]+1295307597+this._b|0,Od[1]=Od[1]+3545052371+(Od[0]>>>0>>0?1:0)|0,Od[2]=Od[2]+886263092+(Od[1]>>>0>>0?1:0)|0,Od[3]=Od[3]+1295307597+(Od[2]>>>0>>0?1:0)|0,Od[4]=Od[4]+3545052371+(Od[3]>>>0>>0?1:0)|0,Od[5]=Od[5]+886263092+(Od[4]>>>0>>0?1:0)|0,Od[6]=Od[6]+1295307597+(Od[5]>>>0>>0?1:0)|0,Od[7]=Od[7]+3545052371+(Od[6]>>>0>>0?1:0)|0,this._b=Od[7]>>>0>>0?1:0;for(var kd=0;kd<8;kd++){var Ld=Nd[kd]+Od[kd],Gd=Ld&65535,jd=Ld>>>16,Fd=((Gd*Gd>>>17)+Gd*jd>>>15)+jd*jd,Ud=((Ld&4294901760)*Ld|0)+((Ld&65535)*Ld|0);md[kd]=Fd^Ud}Nd[0]=md[0]+(md[7]<<16|md[7]>>>16)+(md[6]<<16|md[6]>>>16)|0,Nd[1]=md[1]+(md[0]<<8|md[0]>>>24)+md[7]|0,Nd[2]=md[2]+(md[1]<<16|md[1]>>>16)+(md[0]<<16|md[0]>>>16)|0,Nd[3]=md[3]+(md[2]<<8|md[2]>>>24)+md[1]|0,Nd[4]=md[4]+(md[3]<<16|md[3]>>>16)+(md[2]<<16|md[2]>>>16)|0,Nd[5]=md[5]+(md[4]<<8|md[4]>>>24)+md[3]|0,Nd[6]=md[6]+(md[5]<<16|md[5]>>>16)+(md[4]<<16|md[4]>>>16)|0,Nd[7]=md[7]+(md[6]<<8|md[6]>>>24)+md[5]|0}od.Rabbit=ud._createHelper(vd)}(),nd.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.StreamCipher,dd=od.algo,pd=[],fd=[],md=[],vd=dd.RabbitLegacy=ud.extend({_doReset:function(){var Nd=this._key.words,Od=this.cfg.iv,kd=this._X=[Nd[0],Nd[3]<<16|Nd[2]>>>16,Nd[1],Nd[0]<<16|Nd[3]>>>16,Nd[2],Nd[1]<<16|Nd[0]>>>16,Nd[3],Nd[2]<<16|Nd[1]>>>16],Ld=this._C=[Nd[2]<<16|Nd[2]>>>16,Nd[0]&4294901760|Nd[1]&65535,Nd[3]<<16|Nd[3]>>>16,Nd[1]&4294901760|Nd[2]&65535,Nd[0]<<16|Nd[0]>>>16,Nd[2]&4294901760|Nd[3]&65535,Nd[1]<<16|Nd[1]>>>16,Nd[3]&4294901760|Nd[0]&65535];this._b=0;for(var Gd=0;Gd<4;Gd++)Ad.call(this);for(var Gd=0;Gd<8;Gd++)Ld[Gd]^=kd[Gd+4&7];if(Od){var jd=Od.words,Fd=jd[0],Ud=jd[1],qd=(Fd<<8|Fd>>>24)&16711935|(Fd<<24|Fd>>>8)&4278255360,zd=(Ud<<8|Ud>>>24)&16711935|(Ud<<24|Ud>>>8)&4278255360,Wd=qd>>>16|zd&4294901760,Jd=zd<<16|qd&65535;Ld[0]^=qd,Ld[1]^=Wd,Ld[2]^=zd,Ld[3]^=Jd,Ld[4]^=qd,Ld[5]^=Wd,Ld[6]^=zd,Ld[7]^=Jd;for(var Gd=0;Gd<4;Gd++)Ad.call(this)}},_doProcessBlock:function(Nd,Od){var kd=this._X;Ad.call(this),pd[0]=kd[0]^kd[5]>>>16^kd[3]<<16,pd[1]=kd[2]^kd[7]>>>16^kd[5]<<16,pd[2]=kd[4]^kd[1]>>>16^kd[7]<<16,pd[3]=kd[6]^kd[3]>>>16^kd[1]<<16;for(var Ld=0;Ld<4;Ld++)pd[Ld]=(pd[Ld]<<8|pd[Ld]>>>24)&16711935|(pd[Ld]<<24|pd[Ld]>>>8)&4278255360,Nd[Od+Ld]^=pd[Ld]},blockSize:128/32,ivSize:64/32});function Ad(){for(var Nd=this._X,Od=this._C,kd=0;kd<8;kd++)fd[kd]=Od[kd];Od[0]=Od[0]+1295307597+this._b|0,Od[1]=Od[1]+3545052371+(Od[0]>>>0>>0?1:0)|0,Od[2]=Od[2]+886263092+(Od[1]>>>0>>0?1:0)|0,Od[3]=Od[3]+1295307597+(Od[2]>>>0>>0?1:0)|0,Od[4]=Od[4]+3545052371+(Od[3]>>>0>>0?1:0)|0,Od[5]=Od[5]+886263092+(Od[4]>>>0>>0?1:0)|0,Od[6]=Od[6]+1295307597+(Od[5]>>>0>>0?1:0)|0,Od[7]=Od[7]+3545052371+(Od[6]>>>0>>0?1:0)|0,this._b=Od[7]>>>0>>0?1:0;for(var kd=0;kd<8;kd++){var Ld=Nd[kd]+Od[kd],Gd=Ld&65535,jd=Ld>>>16,Fd=((Gd*Gd>>>17)+Gd*jd>>>15)+jd*jd,Ud=((Ld&4294901760)*Ld|0)+((Ld&65535)*Ld|0);md[kd]=Fd^Ud}Nd[0]=md[0]+(md[7]<<16|md[7]>>>16)+(md[6]<<16|md[6]>>>16)|0,Nd[1]=md[1]+(md[0]<<8|md[0]>>>24)+md[7]|0,Nd[2]=md[2]+(md[1]<<16|md[1]>>>16)+(md[0]<<16|md[0]>>>16)|0,Nd[3]=md[3]+(md[2]<<8|md[2]>>>24)+md[1]|0,Nd[4]=md[4]+(md[3]<<16|md[3]>>>16)+(md[2]<<16|md[2]>>>16)|0,Nd[5]=md[5]+(md[4]<<8|md[4]>>>24)+md[3]|0,Nd[6]=md[6]+(md[5]<<16|md[5]>>>16)+(md[4]<<16|md[4]>>>16)|0,Nd[7]=md[7]+(md[6]<<8|md[6]>>>24)+md[5]|0}od.RabbitLegacy=ud._createHelper(vd)}(),nd.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}var blowfish={exports:{}},hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(nd){return function(){var od=nd,ld=od.lib,ud=ld.BlockCipher,dd=od.algo;const pd=16,fd=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],md=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var vd={pbox:[],sbox:[]};function Ad(Gd,jd){let Fd=jd>>24&255,Ud=jd>>16&255,qd=jd>>8&255,zd=jd&255,Wd=Gd.sbox[0][Fd]+Gd.sbox[1][Ud];return Wd=Wd^Gd.sbox[2][qd],Wd=Wd+Gd.sbox[3][zd],Wd}function Nd(Gd,jd,Fd){let Ud=jd,qd=Fd,zd;for(let Wd=0;Wd1;--Wd)Ud=Ud^Gd.pbox[Wd],qd=Ad(Gd,Ud)^qd,zd=Ud,Ud=qd,qd=zd;return zd=Ud,Ud=qd,qd=zd,qd=qd^Gd.pbox[1],Ud=Ud^Gd.pbox[0],{left:Ud,right:qd}}function kd(Gd,jd,Fd){for(let Jd=0;Jd<4;Jd++){Gd.sbox[Jd]=[];for(let _f=0;_f<256;_f++)Gd.sbox[Jd][_f]=md[Jd][_f]}let Ud=0;for(let Jd=0;Jd=Fd&&(Ud=0);let qd=0,zd=0,Wd=0;for(let Jd=0;Jd2){var fd=nd.lastIndexOf("/");if(fd!==nd.length-1){fd===-1?(nd="",od=0):(nd=nd.slice(0,fd),od=nd.length-1-nd.lastIndexOf("/")),ld=pd,ud=0;continue}}else if(nd.length===2||nd.length===1){nd="",od=0,ld=pd,ud=0;continue}}qa&&(nd.length>0?nd+="/..":nd="..",od=2)}else nd.length>0?nd+="/"+Ra.slice(ld+1,pd):nd=Ra.slice(ld+1,pd),od=pd-ld-1;ld=pd,ud=0}else dd===46&&ud!==-1?++ud:ud=-1}return nd}function _format(Ra,qa){var nd=qa.dir||qa.root,od=qa.base||(qa.name||"")+(qa.ext||"");return nd?nd===qa.root?nd+od:nd+Ra+od:od}var posix={resolve:function(){for(var qa="",nd=!1,od,ld=arguments.length-1;ld>=-1&&!nd;ld--){var ud;ld>=0?ud=arguments[ld]:(od===void 0&&(od=define_process_default$6.cwd()),ud=od),assertPath(ud),ud.length!==0&&(qa=ud+"/"+qa,nd=ud.charCodeAt(0)===47)}return qa=normalizeStringPosix(qa,!nd),nd?qa.length>0?"/"+qa:"/":qa.length>0?qa:"."},normalize:function(qa){if(assertPath(qa),qa.length===0)return".";var nd=qa.charCodeAt(0)===47,od=qa.charCodeAt(qa.length-1)===47;return qa=normalizeStringPosix(qa,!nd),qa.length===0&&!nd&&(qa="."),qa.length>0&&od&&(qa+="/"),nd?"/"+qa:qa},isAbsolute:function(qa){return assertPath(qa),qa.length>0&&qa.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var qa,nd=0;nd0&&(qa===void 0?qa=od:qa+="/"+od)}return qa===void 0?".":posix.normalize(qa)},relative:function(qa,nd){if(assertPath(qa),assertPath(nd),qa===nd||(qa=posix.resolve(qa),nd=posix.resolve(nd),qa===nd))return"";for(var od=1;odmd){if(nd.charCodeAt(dd+Ad)===47)return nd.slice(dd+Ad+1);if(Ad===0)return nd.slice(dd+Ad)}else ud>md&&(qa.charCodeAt(od+Ad)===47?vd=Ad:Ad===0&&(vd=0));break}var Nd=qa.charCodeAt(od+Ad),Od=nd.charCodeAt(dd+Ad);if(Nd!==Od)break;Nd===47&&(vd=Ad)}var kd="";for(Ad=od+vd+1;Ad<=ld;++Ad)(Ad===ld||qa.charCodeAt(Ad)===47)&&(kd.length===0?kd+="..":kd+="/..");return kd.length>0?kd+nd.slice(dd+vd):(dd+=vd,nd.charCodeAt(dd)===47&&++dd,nd.slice(dd))},_makeLong:function(qa){return qa},dirname:function(qa){if(assertPath(qa),qa.length===0)return".";for(var nd=qa.charCodeAt(0),od=nd===47,ld=-1,ud=!0,dd=qa.length-1;dd>=1;--dd)if(nd=qa.charCodeAt(dd),nd===47){if(!ud){ld=dd;break}}else ud=!1;return ld===-1?od?"/":".":od&&ld===1?"//":qa.slice(0,ld)},basename:function(qa,nd){if(nd!==void 0&&typeof nd!="string")throw new TypeError('"ext" argument must be a string');assertPath(qa);var od=0,ld=-1,ud=!0,dd;if(nd!==void 0&&nd.length>0&&nd.length<=qa.length){if(nd.length===qa.length&&nd===qa)return"";var pd=nd.length-1,fd=-1;for(dd=qa.length-1;dd>=0;--dd){var md=qa.charCodeAt(dd);if(md===47){if(!ud){od=dd+1;break}}else fd===-1&&(ud=!1,fd=dd+1),pd>=0&&(md===nd.charCodeAt(pd)?--pd===-1&&(ld=dd):(pd=-1,ld=fd))}return od===ld?ld=fd:ld===-1&&(ld=qa.length),qa.slice(od,ld)}else{for(dd=qa.length-1;dd>=0;--dd)if(qa.charCodeAt(dd)===47){if(!ud){od=dd+1;break}}else ld===-1&&(ud=!1,ld=dd+1);return ld===-1?"":qa.slice(od,ld)}},extname:function(qa){assertPath(qa);for(var nd=-1,od=0,ld=-1,ud=!0,dd=0,pd=qa.length-1;pd>=0;--pd){var fd=qa.charCodeAt(pd);if(fd===47){if(!ud){od=pd+1;break}continue}ld===-1&&(ud=!1,ld=pd+1),fd===46?nd===-1?nd=pd:dd!==1&&(dd=1):nd!==-1&&(dd=-1)}return nd===-1||ld===-1||dd===0||dd===1&&nd===ld-1&&nd===od+1?"":qa.slice(nd,ld)},format:function(qa){if(qa===null||typeof qa!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof qa);return _format("/",qa)},parse:function(qa){assertPath(qa);var nd={root:"",dir:"",base:"",ext:"",name:""};if(qa.length===0)return nd;var od=qa.charCodeAt(0),ld=od===47,ud;ld?(nd.root="/",ud=1):ud=0;for(var dd=-1,pd=0,fd=-1,md=!0,vd=qa.length-1,Ad=0;vd>=ud;--vd){if(od=qa.charCodeAt(vd),od===47){if(!md){pd=vd+1;break}continue}fd===-1&&(md=!1,fd=vd+1),od===46?dd===-1?dd=vd:Ad!==1&&(Ad=1):dd!==-1&&(Ad=-1)}return dd===-1||fd===-1||Ad===0||Ad===1&&dd===fd-1&&dd===pd+1?fd!==-1&&(pd===0&&ld?nd.base=nd.name=qa.slice(1,fd):nd.base=nd.name=qa.slice(pd,fd)):(pd===0&&ld?(nd.name=qa.slice(1,dd),nd.base=qa.slice(1,fd)):(nd.name=qa.slice(pd,dd),nd.base=qa.slice(pd,fd)),nd.ext=qa.slice(dd,fd)),pd>0?nd.dir=qa.slice(0,pd-1):ld&&(nd.dir="/"),nd},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix,define_process_default$5={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};function apply(Ra,...qa){return(...nd)=>Ra(...qa,...nd)}function initialParams(Ra){return function(...qa){var nd=qa.pop();return Ra.call(this,qa,nd)}}var hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,hasSetImmediate=typeof setImmediate=="function"&&setImmediate,hasNextTick=typeof define_process_default$5=="object"&&typeof define_process_default$5.nextTick=="function";function fallback(Ra){setTimeout(Ra,0)}function wrap(Ra){return(qa,...nd)=>Ra(()=>qa(...nd))}var _defer$1;hasQueueMicrotask?_defer$1=queueMicrotask:hasSetImmediate?_defer$1=setImmediate:hasNextTick?_defer$1=define_process_default$5.nextTick:_defer$1=fallback;var setImmediate$1$1=wrap(_defer$1);function asyncify(Ra){return isAsync(Ra)?function(...qa){const nd=qa.pop(),od=Ra.apply(this,qa);return handlePromise(od,nd)}:initialParams(function(qa,nd){var od;try{od=Ra.apply(this,qa)}catch(ld){return nd(ld)}if(od&&typeof od.then=="function")return handlePromise(od,nd);nd(null,od)})}function handlePromise(Ra,qa){return Ra.then(nd=>{invokeCallback(qa,null,nd)},nd=>{invokeCallback(qa,nd&&(nd instanceof Error||nd.message)?nd:new Error(nd))})}function invokeCallback(Ra,qa,nd){try{Ra(qa,nd)}catch(od){setImmediate$1$1(ld=>{throw ld},od)}}function isAsync(Ra){return Ra[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(Ra){return Ra[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(Ra){return typeof Ra[Symbol.asyncIterator]=="function"}function wrapAsync(Ra){if(typeof Ra!="function")throw new Error("expected a function");return isAsync(Ra)?asyncify(Ra):Ra}function awaitify(Ra,qa){if(qa||(qa=Ra.length),!qa)throw new Error("arity is undefined");function nd(...od){return typeof od[qa-1]=="function"?Ra.apply(this,od):new Promise((ld,ud)=>{od[qa-1]=(dd,...pd)=>{if(dd)return ud(dd);ld(pd.length>1?pd:pd[0])},Ra.apply(this,od)})}return nd}function applyEach$1(Ra){return function(nd,...od){return awaitify(function(ud){var dd=this;return Ra(nd,(pd,fd)=>{wrapAsync(pd).apply(dd,od.concat(fd))},ud)})}}function _asyncMap(Ra,qa,nd,od){qa=qa||[];var ld=[],ud=0,dd=wrapAsync(nd);return Ra(qa,(pd,fd,md)=>{var vd=ud++;dd(pd,(Ad,Nd)=>{ld[vd]=Nd,md(Ad)})},pd=>{od(pd,ld)})}function isArrayLike(Ra){return Ra&&typeof Ra.length=="number"&&Ra.length>=0&&Ra.length%1===0}const breakLoop={};function once(Ra){function qa(...nd){if(Ra!==null){var od=Ra;Ra=null,od.apply(this,nd)}}return Object.assign(qa,Ra),qa}function getIterator(Ra){return Ra[Symbol.iterator]&&Ra[Symbol.iterator]()}function createArrayIterator(Ra){var qa=-1,nd=Ra.length;return function(){return++qa=qa||dd||ld||(dd=!0,Ra.next().then(({value:Nd,done:Od})=>{if(!(ud||ld)){if(dd=!1,Od){ld=!0,pd<=0&&od(null);return}pd++,nd(Nd,fd,vd),fd++,md()}}).catch(Ad))}function vd(Nd,Od){if(pd-=1,!ud){if(Nd)return Ad(Nd);if(Nd===!1){ld=!0,ud=!0;return}if(Od===breakLoop||ld&&pd<=0)return ld=!0,od(null);md()}}function Ad(Nd){ud||(dd=!1,ld=!0,od(Nd))}md()}var eachOfLimit$2=Ra=>(qa,nd,od)=>{if(od=once(od),Ra<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!qa)return od(null);if(isAsyncGenerator(qa))return asyncEachOfLimit(qa,Ra,nd,od);if(isAsyncIterable(qa))return asyncEachOfLimit(qa[Symbol.asyncIterator](),Ra,nd,od);var ld=createIterator(qa),ud=!1,dd=!1,pd=0,fd=!1;function md(Ad,Nd){if(!dd)if(pd-=1,Ad)ud=!0,od(Ad);else if(Ad===!1)ud=!0,dd=!0;else{if(Nd===breakLoop||ud&&pd<=0)return ud=!0,od(null);fd||vd()}}function vd(){for(fd=!0;pd1?ld:ld[0])}return nd[PROMISE_SYMBOL]=new Promise((od,ld)=>{Ra=od,qa=ld}),nd}function auto(Ra,qa,nd){typeof qa!="number"&&(nd=qa,qa=null),nd=once(nd||promiseCallback());var od=Object.keys(Ra).length;if(!od)return nd(null);qa||(qa=od);var ld={},ud=0,dd=!1,pd=!1,fd=Object.create(null),md=[],vd=[],Ad={};Object.keys(Ra).forEach(Ud=>{var qd=Ra[Ud];if(!Array.isArray(qd)){Nd(Ud,[qd]),vd.push(Ud);return}var zd=qd.slice(0,qd.length-1),Wd=zd.length;if(Wd===0){Nd(Ud,qd),vd.push(Ud);return}Ad[Ud]=Wd,zd.forEach(Jd=>{if(!Ra[Jd])throw new Error("async.auto task `"+Ud+"` has a non-existent dependency `"+Jd+"` in "+zd.join(", "));kd(Jd,()=>{Wd--,Wd===0&&Nd(Ud,qd)})})}),jd(),Od();function Nd(Ud,qd){md.push(()=>Gd(Ud,qd))}function Od(){if(!dd){if(md.length===0&&ud===0)return nd(null,ld);for(;md.length&&udzd()),Od()}function Gd(Ud,qd){if(!pd){var zd=onlyOnce((Jd,..._f)=>{if(ud--,Jd===!1){dd=!0;return}if(_f.length<2&&([_f]=_f),Jd){var Xd={};if(Object.keys(ld).forEach(pf=>{Xd[pf]=ld[pf]}),Xd[Ud]=_f,pd=!0,fd=Object.create(null),dd)return;nd(Jd,Xd)}else ld[Ud]=_f,Ld(Ud)});ud++;var Wd=wrapAsync(qd[qd.length-1]);qd.length>1?Wd(ld,zd):Wd(zd)}}function jd(){for(var Ud,qd=0;vd.length;)Ud=vd.pop(),qd++,Fd(Ud).forEach(zd=>{--Ad[zd]===0&&vd.push(zd)});if(qd!==od)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function Fd(Ud){var qd=[];return Object.keys(Ra).forEach(zd=>{const Wd=Ra[zd];Array.isArray(Wd)&&Wd.indexOf(Ud)>=0&&qd.push(zd)}),qd}return nd[PROMISE_SYMBOL]}var FN_ARGS=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,ARROW_FN_ARGS=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,FN_ARG_SPLIT=/,/,FN_ARG=/(=.+)?(\s*)$/;function stripComments(Ra){let qa="",nd=0,od=Ra.indexOf("*/");for(;ndld.replace(FN_ARG,"").trim())}function autoInject(Ra,qa){var nd={};return Object.keys(Ra).forEach(od=>{var ld=Ra[od],ud,dd=isAsync(ld),pd=!dd&&ld.length===1||dd&&ld.length===0;if(Array.isArray(ld))ud=[...ld],ld=ud.pop(),nd[od]=ud.concat(ud.length>0?fd:ld);else if(pd)nd[od]=ld;else{if(ud=parseParams(ld),ld.length===0&&!dd&&ud.length===0)throw new Error("autoInject task functions require explicit parameters.");dd||ud.pop(),nd[od]=ud.concat(fd)}function fd(md,vd){var Ad=ud.map(Nd=>md[Nd]);Ad.push(vd),wrapAsync(ld)(...Ad)}}),auto(nd,qa)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(qa){return qa.prev?qa.prev.next=qa.next:this.head=qa.next,qa.next?qa.next.prev=qa.prev:this.tail=qa.prev,qa.prev=qa.next=null,this.length-=1,qa}empty(){for(;this.head;)this.shift();return this}insertAfter(qa,nd){nd.prev=qa,nd.next=qa.next,qa.next?qa.next.prev=nd:this.tail=nd,qa.next=nd,this.length+=1}insertBefore(qa,nd){nd.prev=qa.prev,nd.next=qa,qa.prev?qa.prev.next=nd:this.head=nd,qa.prev=nd,this.length+=1}unshift(qa){this.head?this.insertBefore(this.head,qa):setInitial(this,qa)}push(qa){this.tail?this.insertAfter(this.tail,qa):setInitial(this,qa)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var qa=this.head;qa;)yield qa.data,qa=qa.next}remove(qa){for(var nd=this.head;nd;){var{next:od}=nd;qa(nd)&&this.removeLink(nd),nd=od}return this}}function setInitial(Ra,qa){Ra.length=1,Ra.head=Ra.tail=qa}function queue$1(Ra,qa,nd){if(qa==null)qa=1;else if(qa===0)throw new RangeError("Concurrency must not be zero");var od=wrapAsync(Ra),ld=0,ud=[];const dd={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function pd(Fd,jd){dd[Fd].push(jd)}function fd(Fd,jd){const qd=(...zd)=>{md(Fd,qd),jd(...zd)};dd[Fd].push(qd)}function md(Fd,jd){if(!Fd)return Object.keys(dd).forEach(qd=>dd[qd]=[]);if(!jd)return dd[Fd]=[];dd[Fd]=dd[Fd].filter(qd=>qd!==jd)}function vd(Fd,...jd){dd[Fd].forEach(qd=>qd(...jd))}var Ad=!1;function Nd(Fd,jd,qd,zd){if(zd!=null&&typeof zd!="function")throw new Error("task callback must be a function");Ud.started=!0;var Yd,Jd;function yf(pf,...mf){if(pf)return qd?Jd(pf):Yd();if(mf.length<=1)return Yd(mf[0]);Yd(mf)}var Xd=Ud._createTaskItem(Fd,qd?yf:zd||yf);if(jd?Ud._tasks.unshift(Xd):Ud._tasks.push(Xd),Ad||(Ad=!0,setImmediate$1$1(()=>{Ad=!1,Ud.process()})),qd||!zd)return new Promise((pf,mf)=>{Yd=pf,Jd=mf})}function Od(Fd){return function(jd,...qd){ld-=1;for(var zd=0,Yd=Fd.length;zd0&&ud.splice(yf,1),Jd.callback(jd,...qd),jd!=null&&vd("error",jd,Jd.data)}ld<=Ud.concurrency-Ud.buffer&&vd("unsaturated"),Ud.idle()&&vd("drain"),Ud.process()}}function kd(Fd){return Fd.length===0&&Ud.idle()?(setImmediate$1$1(()=>vd("drain")),!0):!1}const Ld=Fd=>jd=>{if(!jd)return new Promise((qd,zd)=>{fd(Fd,(Yd,Jd)=>{if(Yd)return zd(Yd);qd(Jd)})});md(Fd),pd(Fd,jd)};var Gd=!1,Ud={_tasks:new DLL,_createTaskItem(Fd,jd){return{data:Fd,callback:jd}},*[Symbol.iterator](){yield*Ud._tasks[Symbol.iterator]()},concurrency:qa,payload:nd,buffer:qa/4,started:!1,paused:!1,push(Fd,jd){return Array.isArray(Fd)?kd(Fd)?void 0:Fd.map(qd=>Nd(qd,!1,!1,jd)):Nd(Fd,!1,!1,jd)},pushAsync(Fd,jd){return Array.isArray(Fd)?kd(Fd)?void 0:Fd.map(qd=>Nd(qd,!1,!0,jd)):Nd(Fd,!1,!0,jd)},kill(){md(),Ud._tasks.empty()},unshift(Fd,jd){return Array.isArray(Fd)?kd(Fd)?void 0:Fd.map(qd=>Nd(qd,!0,!1,jd)):Nd(Fd,!0,!1,jd)},unshiftAsync(Fd,jd){return Array.isArray(Fd)?kd(Fd)?void 0:Fd.map(qd=>Nd(qd,!0,!0,jd)):Nd(Fd,!0,!0,jd)},remove(Fd){Ud._tasks.remove(Fd)},process(){if(!Gd){for(Gd=!0;!Ud.paused&&ld{ld(qa,ud,(fd,md)=>{qa=md,pd(fd)})},ud=>od(ud,qa))}var reduce$1=awaitify(reduce,4);function seq(...Ra){var qa=Ra.map(wrapAsync);return function(...nd){var od=this,ld=nd[nd.length-1];return typeof ld=="function"?nd.pop():ld=promiseCallback(),reduce$1(qa,nd,(ud,dd,pd)=>{dd.apply(od,ud.concat((fd,...md)=>{pd(fd,md)}))},(ud,dd)=>ld(ud,...dd)),ld[PROMISE_SYMBOL]}}function compose(...Ra){return seq(...Ra.reverse())}function mapLimit(Ra,qa,nd,od){return _asyncMap(eachOfLimit$2(qa),Ra,nd,od)}var mapLimit$1=awaitify(mapLimit,4);function concatLimit(Ra,qa,nd,od){var ld=wrapAsync(nd);return mapLimit$1(Ra,qa,(ud,dd)=>{ld(ud,(pd,...fd)=>pd?dd(pd):dd(pd,fd))},(ud,dd)=>{for(var pd=[],fd=0;fd{var dd=!1,pd;const fd=wrapAsync(ld);nd(od,(md,vd,Ad)=>{fd(md,(Nd,Od)=>{if(Nd||Nd===!1)return Ad(Nd);if(Ra(Od)&&!pd)return dd=!0,pd=qa(!0,md),Ad(null,breakLoop);Ad()})},md=>{if(md)return ud(md);ud(null,dd?pd:qa(!1))})}}function detect(Ra,qa,nd){return _createTester(od=>od,(od,ld)=>ld)(eachOf$1,Ra,qa,nd)}var detect$1=awaitify(detect,3);function detectLimit(Ra,qa,nd,od){return _createTester(ld=>ld,(ld,ud)=>ud)(eachOfLimit$2(qa),Ra,nd,od)}var detectLimit$1=awaitify(detectLimit,4);function detectSeries(Ra,qa,nd){return _createTester(od=>od,(od,ld)=>ld)(eachOfLimit$2(1),Ra,qa,nd)}var detectSeries$1=awaitify(detectSeries,3);function consoleFunc(Ra){return(qa,...nd)=>wrapAsync(qa)(...nd,(od,...ld)=>{typeof console=="object"&&(od?console.error&&console.error(od):console[Ra]&&ld.forEach(ud=>console[Ra](ud)))})}var dir=consoleFunc("dir");function doWhilst(Ra,qa,nd){nd=onlyOnce(nd);var od=wrapAsync(Ra),ld=wrapAsync(qa),ud;function dd(fd,...md){if(fd)return nd(fd);fd!==!1&&(ud=md,ld(...md,pd))}function pd(fd,md){if(fd)return nd(fd);if(fd!==!1){if(!md)return nd(null,...ud);od(dd)}}return pd(null,!0)}var doWhilst$1=awaitify(doWhilst,3);function doUntil(Ra,qa,nd){const od=wrapAsync(qa);return doWhilst$1(Ra,(...ld)=>{const ud=ld.pop();od(...ld,(dd,pd)=>ud(dd,!pd))},nd)}function _withoutIndex(Ra){return(qa,nd,od)=>Ra(qa,od)}function eachLimit$2(Ra,qa,nd){return eachOf$1(Ra,_withoutIndex(wrapAsync(qa)),nd)}var each=awaitify(eachLimit$2,3);function eachLimit(Ra,qa,nd,od){return eachOfLimit$2(qa)(Ra,_withoutIndex(wrapAsync(nd)),od)}var eachLimit$1=awaitify(eachLimit,4);function eachSeries(Ra,qa,nd){return eachLimit$1(Ra,1,qa,nd)}var eachSeries$1=awaitify(eachSeries,3);function ensureAsync(Ra){return isAsync(Ra)?Ra:function(...qa){var nd=qa.pop(),od=!0;qa.push((...ld)=>{od?setImmediate$1$1(()=>nd(...ld)):nd(...ld)}),Ra.apply(this,qa),od=!1}}function every(Ra,qa,nd){return _createTester(od=>!od,od=>!od)(eachOf$1,Ra,qa,nd)}var every$1=awaitify(every,3);function everyLimit(Ra,qa,nd,od){return _createTester(ld=>!ld,ld=>!ld)(eachOfLimit$2(qa),Ra,nd,od)}var everyLimit$1=awaitify(everyLimit,4);function everySeries(Ra,qa,nd){return _createTester(od=>!od,od=>!od)(eachOfSeries$1,Ra,qa,nd)}var everySeries$1=awaitify(everySeries,3);function filterArray(Ra,qa,nd,od){var ld=new Array(qa.length);Ra(qa,(ud,dd,pd)=>{nd(ud,(fd,md)=>{ld[dd]=!!md,pd(fd)})},ud=>{if(ud)return od(ud);for(var dd=[],pd=0;pd{nd(ud,(fd,md)=>{if(fd)return pd(fd);md&&ld.push({index:dd,value:ud}),pd(fd)})},ud=>{if(ud)return od(ud);od(null,ld.sort((dd,pd)=>dd.index-pd.index).map(dd=>dd.value))})}function _filter(Ra,qa,nd,od){var ld=isArrayLike(qa)?filterArray:filterGeneric;return ld(Ra,qa,wrapAsync(nd),od)}function filter(Ra,qa,nd){return _filter(eachOf$1,Ra,qa,nd)}var filter$1=awaitify(filter,3);function filterLimit(Ra,qa,nd,od){return _filter(eachOfLimit$2(qa),Ra,nd,od)}var filterLimit$1=awaitify(filterLimit,4);function filterSeries(Ra,qa,nd){return _filter(eachOfSeries$1,Ra,qa,nd)}var filterSeries$1=awaitify(filterSeries,3);function forever(Ra,qa){var nd=onlyOnce(qa),od=wrapAsync(ensureAsync(Ra));function ld(ud){if(ud)return nd(ud);ud!==!1&&od(ld)}return ld()}var forever$1=awaitify(forever,2);function groupByLimit(Ra,qa,nd,od){var ld=wrapAsync(nd);return mapLimit$1(Ra,qa,(ud,dd)=>{ld(ud,(pd,fd)=>pd?dd(pd):dd(pd,{key:fd,val:ud}))},(ud,dd)=>{for(var pd={},{hasOwnProperty:fd}=Object.prototype,md=0;md{ud(dd,pd,(md,vd)=>{if(md)return fd(md);ld[pd]=vd,fd(md)})},dd=>od(dd,ld))}var mapValuesLimit$1=awaitify(mapValuesLimit,4);function mapValues(Ra,qa,nd){return mapValuesLimit$1(Ra,1/0,qa,nd)}function mapValuesSeries(Ra,qa,nd){return mapValuesLimit$1(Ra,1,qa,nd)}function memoize(Ra,qa=nd=>nd){var nd=Object.create(null),od=Object.create(null),ld=wrapAsync(Ra),ud=initialParams((dd,pd)=>{var fd=qa(...dd);fd in nd?setImmediate$1$1(()=>pd(null,...nd[fd])):fd in od?od[fd].push(pd):(od[fd]=[pd],ld(...dd,(md,...vd)=>{md||(nd[fd]=vd);var Ad=od[fd];delete od[fd];for(var Nd=0,Od=Ad.length;Nd{var od=isArrayLike(qa)?[]:{};Ra(qa,(ld,ud,dd)=>{wrapAsync(ld)((pd,...fd)=>{fd.length<2&&([fd]=fd),od[ud]=fd,dd(pd)})},ld=>nd(ld,od))},3);function parallel(Ra,qa){return _parallel(eachOf$1,Ra,qa)}function parallelLimit(Ra,qa,nd){return _parallel(eachOfLimit$2(qa),Ra,nd)}function queue(Ra,qa){var nd=wrapAsync(Ra);return queue$1((od,ld)=>{nd(od[0],ld)},qa,1)}class Heap{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(qa){let nd;for(;qa>0&&smaller(this.heap[qa],this.heap[nd=parent(qa)]);){let od=this.heap[qa];this.heap[qa]=this.heap[nd],this.heap[nd]=od,qa=nd}}percDown(qa){let nd;for(;(nd=leftChi(qa))=0;od--)this.percDown(od);return this}}function leftChi(Ra){return(Ra<<1)+1}function parent(Ra){return(Ra+1>>1)-1}function smaller(Ra,qa){return Ra.priority!==qa.priority?Ra.priority({data:dd,priority:pd,callback:fd});function ud(dd,pd){return Array.isArray(dd)?dd.map(fd=>({data:fd,priority:pd})):{data:dd,priority:pd}}return nd.push=function(dd,pd=0,fd){return od(ud(dd,pd),fd)},nd.pushAsync=function(dd,pd=0,fd){return ld(ud(dd,pd),fd)},delete nd.unshift,delete nd.unshiftAsync,nd}function race(Ra,qa){if(qa=once(qa),!Array.isArray(Ra))return qa(new TypeError("First argument to race must be an array of functions"));if(!Ra.length)return qa();for(var nd=0,od=Ra.length;nd{let pd={};if(ud&&(pd.error=ud),dd.length>0){var fd=dd;dd.length<=1&&([fd]=dd),pd.value=fd}ld(null,pd)}),qa.apply(this,od)})}function reflectAll(Ra){var qa;return Array.isArray(Ra)?qa=Ra.map(reflect):(qa={},Object.keys(Ra).forEach(nd=>{qa[nd]=reflect.call(this,Ra[nd])})),qa}function reject$2(Ra,qa,nd,od){const ld=wrapAsync(nd);return _filter(Ra,qa,(ud,dd)=>{ld(ud,(pd,fd)=>{dd(pd,!fd)})},od)}function reject(Ra,qa,nd){return reject$2(eachOf$1,Ra,qa,nd)}var reject$1=awaitify(reject,3);function rejectLimit(Ra,qa,nd,od){return reject$2(eachOfLimit$2(qa),Ra,nd,od)}var rejectLimit$1=awaitify(rejectLimit,4);function rejectSeries(Ra,qa,nd){return reject$2(eachOfSeries$1,Ra,qa,nd)}var rejectSeries$1=awaitify(rejectSeries,3);function constant(Ra){return function(){return Ra}}const DEFAULT_TIMES=5,DEFAULT_INTERVAL=0;function retry(Ra,qa,nd){var od={times:DEFAULT_TIMES,intervalFunc:constant(DEFAULT_INTERVAL)};if(arguments.length<3&&typeof Ra=="function"?(nd=qa||promiseCallback(),qa=Ra):(parseTimes(od,Ra),nd=nd||promiseCallback()),typeof qa!="function")throw new Error("Invalid arguments for async.retry");var ld=wrapAsync(qa),ud=1;function dd(){ld((pd,...fd)=>{pd!==!1&&(pd&&ud++{(ld.lengthod)(eachOf$1,Ra,qa,nd)}var some$1=awaitify(some,3);function someLimit(Ra,qa,nd,od){return _createTester(Boolean,ld=>ld)(eachOfLimit$2(qa),Ra,nd,od)}var someLimit$1=awaitify(someLimit,4);function someSeries(Ra,qa,nd){return _createTester(Boolean,od=>od)(eachOfSeries$1,Ra,qa,nd)}var someSeries$1=awaitify(someSeries,3);function sortBy(Ra,qa,nd){var od=wrapAsync(qa);return map$1(Ra,(ud,dd)=>{od(ud,(pd,fd)=>{if(pd)return dd(pd);dd(pd,{value:ud,criteria:fd})})},(ud,dd)=>{if(ud)return nd(ud);nd(null,dd.sort(ld).map(pd=>pd.value))});function ld(ud,dd){var pd=ud.criteria,fd=dd.criteria;return pdfd?1:0}}var sortBy$1=awaitify(sortBy,3);function timeout(Ra,qa,nd){var od=wrapAsync(Ra);return initialParams((ld,ud)=>{var dd=!1,pd;function fd(){var md=Ra.name||"anonymous",vd=new Error('Callback function "'+md+'" timed out.');vd.code="ETIMEDOUT",nd&&(vd.info=nd),dd=!0,ud(vd)}ld.push((...md)=>{dd||(ud(...md),clearTimeout(pd))}),pd=setTimeout(fd,qa),od(...ld)})}function range(Ra){for(var qa=Array(Ra);Ra--;)qa[Ra]=Ra;return qa}function timesLimit(Ra,qa,nd,od){var ld=wrapAsync(nd);return mapLimit$1(range(Ra),qa,ld,od)}function times(Ra,qa,nd){return timesLimit(Ra,1/0,qa,nd)}function timesSeries(Ra,qa,nd){return timesLimit(Ra,1,qa,nd)}function transform(Ra,qa,nd,od){arguments.length<=3&&typeof qa=="function"&&(od=nd,nd=qa,qa=Array.isArray(Ra)?[]:{}),od=once(od||promiseCallback());var ld=wrapAsync(nd);return eachOf$1(Ra,(ud,dd,pd)=>{ld(qa,ud,dd,pd)},ud=>od(ud,qa)),od[PROMISE_SYMBOL]}function tryEach(Ra,qa){var nd=null,od;return eachSeries$1(Ra,(ld,ud)=>{wrapAsync(ld)((dd,...pd)=>{if(dd===!1)return ud(dd);pd.length<2?[od]=pd:od=pd,nd=dd,ud(dd?null:{})})},()=>qa(nd,od))}var tryEach$1=awaitify(tryEach);function unmemoize(Ra){return(...qa)=>(Ra.unmemoized||Ra)(...qa)}function whilst(Ra,qa,nd){nd=onlyOnce(nd);var od=wrapAsync(qa),ld=wrapAsync(Ra),ud=[];function dd(fd,...md){if(fd)return nd(fd);ud=md,fd!==!1&&ld(pd)}function pd(fd,md){if(fd)return nd(fd);if(fd!==!1){if(!md)return nd(null,...ud);od(dd)}}return ld(pd)}var whilst$1=awaitify(whilst,3);function until(Ra,qa,nd){const od=wrapAsync(Ra);return whilst$1(ld=>od((ud,dd)=>ld(ud,!dd)),qa,nd)}function waterfall(Ra,qa){if(qa=once(qa),!Array.isArray(Ra))return qa(new Error("First argument to waterfall must be an array of functions"));if(!Ra.length)return qa();var nd=0;function od(ud){var dd=wrapAsync(Ra[nd++]);dd(...ud,onlyOnce(ld))}function ld(ud,...dd){if(ud!==!1){if(ud||nd===Ra.length)return qa(ud,...dd);od(dd)}}od([])}var waterfall$1=awaitify(waterfall),index={apply,applyEach,applyEachSeries,asyncify,auto,autoInject,cargo:cargo$1,cargoQueue:cargo,compose,concat:concat$1,concatLimit:concatLimit$1,concatSeries:concatSeries$1,constant:constant$1,detect:detect$1,detectLimit:detectLimit$1,detectSeries:detectSeries$1,dir,doUntil,doWhilst:doWhilst$1,each,eachLimit:eachLimit$1,eachOf:eachOf$1,eachOfLimit:eachOfLimit$1,eachOfSeries:eachOfSeries$1,eachSeries:eachSeries$1,ensureAsync,every:every$1,everyLimit:everyLimit$1,everySeries:everySeries$1,filter:filter$1,filterLimit:filterLimit$1,filterSeries:filterSeries$1,forever:forever$1,groupBy,groupByLimit:groupByLimit$1,groupBySeries,log,map:map$1,mapLimit:mapLimit$1,mapSeries:mapSeries$1,mapValues,mapValuesLimit:mapValuesLimit$1,mapValuesSeries,memoize,nextTick,parallel,parallelLimit,priorityQueue,queue,race:race$1,reduce:reduce$1,reduceRight,reflect,reflectAll,reject:reject$1,rejectLimit:rejectLimit$1,rejectSeries:rejectSeries$1,retry,retryable,seq,series,setImmediate:setImmediate$1$1,some:some$1,someLimit:someLimit$1,someSeries:someSeries$1,sortBy:sortBy$1,timeout,times,timesLimit,timesSeries,transform,tryEach:tryEach$1,unmemoize,until,waterfall:waterfall$1,whilst:whilst$1,all:every$1,allLimit:everyLimit$1,allSeries:everySeries$1,any:some$1,anyLimit:someLimit$1,anySeries:someSeries$1,find:detect$1,findLimit:detectLimit$1,findSeries:detectSeries$1,flatMap:concat$1,flatMapLimit:concatLimit$1,flatMapSeries:concatSeries$1,forEach:each,forEachSeries:eachSeries$1,forEachLimit:eachLimit$1,forEachOf:eachOf$1,forEachOfSeries:eachOfSeries$1,forEachOfLimit:eachOfLimit$1,inject:reduce$1,foldl:reduce$1,foldr:reduceRight,select:filter$1,selectLimit:filterLimit$1,selectSeries:filterSeries$1,wrapSync:asyncify,during:whilst$1,doDuring:doWhilst$1},readableBrowser={exports:{}};(function(Ra,qa){qa=Ra.exports=require_stream_readable(),qa.Stream=qa,qa.Readable=qa,qa.Writable=require_stream_writable(),qa.Duplex=require_stream_duplex(),qa.Transform=_stream_transform,qa.PassThrough=_stream_passthrough,qa.finished=endOfStream,qa.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports;const{Transform:Transform$1}=readableBrowserExports;class Block extends Transform$1{constructor(qa,nd={}){super(nd),typeof qa=="object"&&(nd=qa,qa=nd.size),this.size=qa||512;const{nopad:od,zeroPadding:ld=!0}=nd;od?this._zeroPadding=!1:this._zeroPadding=!!ld,this._buffered=[],this._bufferedBytes=0}_transform(qa,nd,od){for(this._bufferedBytes+=qa.length,this._buffered.push(qa);this._bufferedBytes>=this.size;){this._bufferedBytes-=this.size;const ld=[];let ud=0;for(;udld.replace(FN_ARG,"").trim())}function autoInject(Ra,qa){var nd={};return Object.keys(Ra).forEach(od=>{var ld=Ra[od],ud,dd=isAsync(ld),pd=!dd&&ld.length===1||dd&&ld.length===0;if(Array.isArray(ld))ud=[...ld],ld=ud.pop(),nd[od]=ud.concat(ud.length>0?fd:ld);else if(pd)nd[od]=ld;else{if(ud=parseParams(ld),ld.length===0&&!dd&&ud.length===0)throw new Error("autoInject task functions require explicit parameters.");dd||ud.pop(),nd[od]=ud.concat(fd)}function fd(md,vd){var Ad=ud.map(Nd=>md[Nd]);Ad.push(vd),wrapAsync(ld)(...Ad)}}),auto(nd,qa)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(qa){return qa.prev?qa.prev.next=qa.next:this.head=qa.next,qa.next?qa.next.prev=qa.prev:this.tail=qa.prev,qa.prev=qa.next=null,this.length-=1,qa}empty(){for(;this.head;)this.shift();return this}insertAfter(qa,nd){nd.prev=qa,nd.next=qa.next,qa.next?qa.next.prev=nd:this.tail=nd,qa.next=nd,this.length+=1}insertBefore(qa,nd){nd.prev=qa.prev,nd.next=qa,qa.prev?qa.prev.next=nd:this.head=nd,qa.prev=nd,this.length+=1}unshift(qa){this.head?this.insertBefore(this.head,qa):setInitial(this,qa)}push(qa){this.tail?this.insertAfter(this.tail,qa):setInitial(this,qa)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var qa=this.head;qa;)yield qa.data,qa=qa.next}remove(qa){for(var nd=this.head;nd;){var{next:od}=nd;qa(nd)&&this.removeLink(nd),nd=od}return this}}function setInitial(Ra,qa){Ra.length=1,Ra.head=Ra.tail=qa}function queue$1(Ra,qa,nd){if(qa==null)qa=1;else if(qa===0)throw new RangeError("Concurrency must not be zero");var od=wrapAsync(Ra),ld=0,ud=[];const dd={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function pd(Fd,Ud){dd[Fd].push(Ud)}function fd(Fd,Ud){const qd=(...zd)=>{md(Fd,qd),Ud(...zd)};dd[Fd].push(qd)}function md(Fd,Ud){if(!Fd)return Object.keys(dd).forEach(qd=>dd[qd]=[]);if(!Ud)return dd[Fd]=[];dd[Fd]=dd[Fd].filter(qd=>qd!==Ud)}function vd(Fd,...Ud){dd[Fd].forEach(qd=>qd(...Ud))}var Ad=!1;function Nd(Fd,Ud,qd,zd){if(zd!=null&&typeof zd!="function")throw new Error("task callback must be a function");jd.started=!0;var Wd,Jd;function _f(pf,...mf){if(pf)return qd?Jd(pf):Wd();if(mf.length<=1)return Wd(mf[0]);Wd(mf)}var Xd=jd._createTaskItem(Fd,qd?_f:zd||_f);if(Ud?jd._tasks.unshift(Xd):jd._tasks.push(Xd),Ad||(Ad=!0,setImmediate$1$1(()=>{Ad=!1,jd.process()})),qd||!zd)return new Promise((pf,mf)=>{Wd=pf,Jd=mf})}function Od(Fd){return function(Ud,...qd){ld-=1;for(var zd=0,Wd=Fd.length;zd0&&ud.splice(_f,1),Jd.callback(Ud,...qd),Ud!=null&&vd("error",Ud,Jd.data)}ld<=jd.concurrency-jd.buffer&&vd("unsaturated"),jd.idle()&&vd("drain"),jd.process()}}function kd(Fd){return Fd.length===0&&jd.idle()?(setImmediate$1$1(()=>vd("drain")),!0):!1}const Ld=Fd=>Ud=>{if(!Ud)return new Promise((qd,zd)=>{fd(Fd,(Wd,Jd)=>{if(Wd)return zd(Wd);qd(Jd)})});md(Fd),pd(Fd,Ud)};var Gd=!1,jd={_tasks:new DLL,_createTaskItem(Fd,Ud){return{data:Fd,callback:Ud}},*[Symbol.iterator](){yield*jd._tasks[Symbol.iterator]()},concurrency:qa,payload:nd,buffer:qa/4,started:!1,paused:!1,push(Fd,Ud){return Array.isArray(Fd)?kd(Fd)?void 0:Fd.map(qd=>Nd(qd,!1,!1,Ud)):Nd(Fd,!1,!1,Ud)},pushAsync(Fd,Ud){return Array.isArray(Fd)?kd(Fd)?void 0:Fd.map(qd=>Nd(qd,!1,!0,Ud)):Nd(Fd,!1,!0,Ud)},kill(){md(),jd._tasks.empty()},unshift(Fd,Ud){return Array.isArray(Fd)?kd(Fd)?void 0:Fd.map(qd=>Nd(qd,!0,!1,Ud)):Nd(Fd,!0,!1,Ud)},unshiftAsync(Fd,Ud){return Array.isArray(Fd)?kd(Fd)?void 0:Fd.map(qd=>Nd(qd,!0,!0,Ud)):Nd(Fd,!0,!0,Ud)},remove(Fd){jd._tasks.remove(Fd)},process(){if(!Gd){for(Gd=!0;!jd.paused&&ld{ld(qa,ud,(fd,md)=>{qa=md,pd(fd)})},ud=>od(ud,qa))}var reduce$1=awaitify(reduce,4);function seq(...Ra){var qa=Ra.map(wrapAsync);return function(...nd){var od=this,ld=nd[nd.length-1];return typeof ld=="function"?nd.pop():ld=promiseCallback(),reduce$1(qa,nd,(ud,dd,pd)=>{dd.apply(od,ud.concat((fd,...md)=>{pd(fd,md)}))},(ud,dd)=>ld(ud,...dd)),ld[PROMISE_SYMBOL]}}function compose(...Ra){return seq(...Ra.reverse())}function mapLimit(Ra,qa,nd,od){return _asyncMap(eachOfLimit$2(qa),Ra,nd,od)}var mapLimit$1=awaitify(mapLimit,4);function concatLimit(Ra,qa,nd,od){var ld=wrapAsync(nd);return mapLimit$1(Ra,qa,(ud,dd)=>{ld(ud,(pd,...fd)=>pd?dd(pd):dd(pd,fd))},(ud,dd)=>{for(var pd=[],fd=0;fd{var dd=!1,pd;const fd=wrapAsync(ld);nd(od,(md,vd,Ad)=>{fd(md,(Nd,Od)=>{if(Nd||Nd===!1)return Ad(Nd);if(Ra(Od)&&!pd)return dd=!0,pd=qa(!0,md),Ad(null,breakLoop);Ad()})},md=>{if(md)return ud(md);ud(null,dd?pd:qa(!1))})}}function detect(Ra,qa,nd){return _createTester(od=>od,(od,ld)=>ld)(eachOf$1,Ra,qa,nd)}var detect$1=awaitify(detect,3);function detectLimit(Ra,qa,nd,od){return _createTester(ld=>ld,(ld,ud)=>ud)(eachOfLimit$2(qa),Ra,nd,od)}var detectLimit$1=awaitify(detectLimit,4);function detectSeries(Ra,qa,nd){return _createTester(od=>od,(od,ld)=>ld)(eachOfLimit$2(1),Ra,qa,nd)}var detectSeries$1=awaitify(detectSeries,3);function consoleFunc(Ra){return(qa,...nd)=>wrapAsync(qa)(...nd,(od,...ld)=>{typeof console=="object"&&(od?console.error&&console.error(od):console[Ra]&&ld.forEach(ud=>console[Ra](ud)))})}var dir=consoleFunc("dir");function doWhilst(Ra,qa,nd){nd=onlyOnce(nd);var od=wrapAsync(Ra),ld=wrapAsync(qa),ud;function dd(fd,...md){if(fd)return nd(fd);fd!==!1&&(ud=md,ld(...md,pd))}function pd(fd,md){if(fd)return nd(fd);if(fd!==!1){if(!md)return nd(null,...ud);od(dd)}}return pd(null,!0)}var doWhilst$1=awaitify(doWhilst,3);function doUntil(Ra,qa,nd){const od=wrapAsync(qa);return doWhilst$1(Ra,(...ld)=>{const ud=ld.pop();od(...ld,(dd,pd)=>ud(dd,!pd))},nd)}function _withoutIndex(Ra){return(qa,nd,od)=>Ra(qa,od)}function eachLimit$2(Ra,qa,nd){return eachOf$1(Ra,_withoutIndex(wrapAsync(qa)),nd)}var each=awaitify(eachLimit$2,3);function eachLimit(Ra,qa,nd,od){return eachOfLimit$2(qa)(Ra,_withoutIndex(wrapAsync(nd)),od)}var eachLimit$1=awaitify(eachLimit,4);function eachSeries(Ra,qa,nd){return eachLimit$1(Ra,1,qa,nd)}var eachSeries$1=awaitify(eachSeries,3);function ensureAsync(Ra){return isAsync(Ra)?Ra:function(...qa){var nd=qa.pop(),od=!0;qa.push((...ld)=>{od?setImmediate$1$1(()=>nd(...ld)):nd(...ld)}),Ra.apply(this,qa),od=!1}}function every(Ra,qa,nd){return _createTester(od=>!od,od=>!od)(eachOf$1,Ra,qa,nd)}var every$1=awaitify(every,3);function everyLimit(Ra,qa,nd,od){return _createTester(ld=>!ld,ld=>!ld)(eachOfLimit$2(qa),Ra,nd,od)}var everyLimit$1=awaitify(everyLimit,4);function everySeries(Ra,qa,nd){return _createTester(od=>!od,od=>!od)(eachOfSeries$1,Ra,qa,nd)}var everySeries$1=awaitify(everySeries,3);function filterArray(Ra,qa,nd,od){var ld=new Array(qa.length);Ra(qa,(ud,dd,pd)=>{nd(ud,(fd,md)=>{ld[dd]=!!md,pd(fd)})},ud=>{if(ud)return od(ud);for(var dd=[],pd=0;pd{nd(ud,(fd,md)=>{if(fd)return pd(fd);md&&ld.push({index:dd,value:ud}),pd(fd)})},ud=>{if(ud)return od(ud);od(null,ld.sort((dd,pd)=>dd.index-pd.index).map(dd=>dd.value))})}function _filter(Ra,qa,nd,od){var ld=isArrayLike(qa)?filterArray:filterGeneric;return ld(Ra,qa,wrapAsync(nd),od)}function filter(Ra,qa,nd){return _filter(eachOf$1,Ra,qa,nd)}var filter$1=awaitify(filter,3);function filterLimit(Ra,qa,nd,od){return _filter(eachOfLimit$2(qa),Ra,nd,od)}var filterLimit$1=awaitify(filterLimit,4);function filterSeries(Ra,qa,nd){return _filter(eachOfSeries$1,Ra,qa,nd)}var filterSeries$1=awaitify(filterSeries,3);function forever(Ra,qa){var nd=onlyOnce(qa),od=wrapAsync(ensureAsync(Ra));function ld(ud){if(ud)return nd(ud);ud!==!1&&od(ld)}return ld()}var forever$1=awaitify(forever,2);function groupByLimit(Ra,qa,nd,od){var ld=wrapAsync(nd);return mapLimit$1(Ra,qa,(ud,dd)=>{ld(ud,(pd,fd)=>pd?dd(pd):dd(pd,{key:fd,val:ud}))},(ud,dd)=>{for(var pd={},{hasOwnProperty:fd}=Object.prototype,md=0;md{ud(dd,pd,(md,vd)=>{if(md)return fd(md);ld[pd]=vd,fd(md)})},dd=>od(dd,ld))}var mapValuesLimit$1=awaitify(mapValuesLimit,4);function mapValues(Ra,qa,nd){return mapValuesLimit$1(Ra,1/0,qa,nd)}function mapValuesSeries(Ra,qa,nd){return mapValuesLimit$1(Ra,1,qa,nd)}function memoize(Ra,qa=nd=>nd){var nd=Object.create(null),od=Object.create(null),ld=wrapAsync(Ra),ud=initialParams((dd,pd)=>{var fd=qa(...dd);fd in nd?setImmediate$1$1(()=>pd(null,...nd[fd])):fd in od?od[fd].push(pd):(od[fd]=[pd],ld(...dd,(md,...vd)=>{md||(nd[fd]=vd);var Ad=od[fd];delete od[fd];for(var Nd=0,Od=Ad.length;Nd{var od=isArrayLike(qa)?[]:{};Ra(qa,(ld,ud,dd)=>{wrapAsync(ld)((pd,...fd)=>{fd.length<2&&([fd]=fd),od[ud]=fd,dd(pd)})},ld=>nd(ld,od))},3);function parallel(Ra,qa){return _parallel(eachOf$1,Ra,qa)}function parallelLimit(Ra,qa,nd){return _parallel(eachOfLimit$2(qa),Ra,nd)}function queue(Ra,qa){var nd=wrapAsync(Ra);return queue$1((od,ld)=>{nd(od[0],ld)},qa,1)}class Heap{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(qa){let nd;for(;qa>0&&smaller(this.heap[qa],this.heap[nd=parent(qa)]);){let od=this.heap[qa];this.heap[qa]=this.heap[nd],this.heap[nd]=od,qa=nd}}percDown(qa){let nd;for(;(nd=leftChi(qa))=0;od--)this.percDown(od);return this}}function leftChi(Ra){return(Ra<<1)+1}function parent(Ra){return(Ra+1>>1)-1}function smaller(Ra,qa){return Ra.priority!==qa.priority?Ra.priority({data:dd,priority:pd,callback:fd});function ud(dd,pd){return Array.isArray(dd)?dd.map(fd=>({data:fd,priority:pd})):{data:dd,priority:pd}}return nd.push=function(dd,pd=0,fd){return od(ud(dd,pd),fd)},nd.pushAsync=function(dd,pd=0,fd){return ld(ud(dd,pd),fd)},delete nd.unshift,delete nd.unshiftAsync,nd}function race(Ra,qa){if(qa=once(qa),!Array.isArray(Ra))return qa(new TypeError("First argument to race must be an array of functions"));if(!Ra.length)return qa();for(var nd=0,od=Ra.length;nd{let pd={};if(ud&&(pd.error=ud),dd.length>0){var fd=dd;dd.length<=1&&([fd]=dd),pd.value=fd}ld(null,pd)}),qa.apply(this,od)})}function reflectAll(Ra){var qa;return Array.isArray(Ra)?qa=Ra.map(reflect):(qa={},Object.keys(Ra).forEach(nd=>{qa[nd]=reflect.call(this,Ra[nd])})),qa}function reject$2(Ra,qa,nd,od){const ld=wrapAsync(nd);return _filter(Ra,qa,(ud,dd)=>{ld(ud,(pd,fd)=>{dd(pd,!fd)})},od)}function reject(Ra,qa,nd){return reject$2(eachOf$1,Ra,qa,nd)}var reject$1=awaitify(reject,3);function rejectLimit(Ra,qa,nd,od){return reject$2(eachOfLimit$2(qa),Ra,nd,od)}var rejectLimit$1=awaitify(rejectLimit,4);function rejectSeries(Ra,qa,nd){return reject$2(eachOfSeries$1,Ra,qa,nd)}var rejectSeries$1=awaitify(rejectSeries,3);function constant(Ra){return function(){return Ra}}const DEFAULT_TIMES=5,DEFAULT_INTERVAL=0;function retry(Ra,qa,nd){var od={times:DEFAULT_TIMES,intervalFunc:constant(DEFAULT_INTERVAL)};if(arguments.length<3&&typeof Ra=="function"?(nd=qa||promiseCallback(),qa=Ra):(parseTimes(od,Ra),nd=nd||promiseCallback()),typeof qa!="function")throw new Error("Invalid arguments for async.retry");var ld=wrapAsync(qa),ud=1;function dd(){ld((pd,...fd)=>{pd!==!1&&(pd&&ud++{(ld.lengthod)(eachOf$1,Ra,qa,nd)}var some$1=awaitify(some,3);function someLimit(Ra,qa,nd,od){return _createTester(Boolean,ld=>ld)(eachOfLimit$2(qa),Ra,nd,od)}var someLimit$1=awaitify(someLimit,4);function someSeries(Ra,qa,nd){return _createTester(Boolean,od=>od)(eachOfSeries$1,Ra,qa,nd)}var someSeries$1=awaitify(someSeries,3);function sortBy(Ra,qa,nd){var od=wrapAsync(qa);return map$1(Ra,(ud,dd)=>{od(ud,(pd,fd)=>{if(pd)return dd(pd);dd(pd,{value:ud,criteria:fd})})},(ud,dd)=>{if(ud)return nd(ud);nd(null,dd.sort(ld).map(pd=>pd.value))});function ld(ud,dd){var pd=ud.criteria,fd=dd.criteria;return pdfd?1:0}}var sortBy$1=awaitify(sortBy,3);function timeout(Ra,qa,nd){var od=wrapAsync(Ra);return initialParams((ld,ud)=>{var dd=!1,pd;function fd(){var md=Ra.name||"anonymous",vd=new Error('Callback function "'+md+'" timed out.');vd.code="ETIMEDOUT",nd&&(vd.info=nd),dd=!0,ud(vd)}ld.push((...md)=>{dd||(ud(...md),clearTimeout(pd))}),pd=setTimeout(fd,qa),od(...ld)})}function range(Ra){for(var qa=Array(Ra);Ra--;)qa[Ra]=Ra;return qa}function timesLimit(Ra,qa,nd,od){var ld=wrapAsync(nd);return mapLimit$1(range(Ra),qa,ld,od)}function times(Ra,qa,nd){return timesLimit(Ra,1/0,qa,nd)}function timesSeries(Ra,qa,nd){return timesLimit(Ra,1,qa,nd)}function transform(Ra,qa,nd,od){arguments.length<=3&&typeof qa=="function"&&(od=nd,nd=qa,qa=Array.isArray(Ra)?[]:{}),od=once(od||promiseCallback());var ld=wrapAsync(nd);return eachOf$1(Ra,(ud,dd,pd)=>{ld(qa,ud,dd,pd)},ud=>od(ud,qa)),od[PROMISE_SYMBOL]}function tryEach(Ra,qa){var nd=null,od;return eachSeries$1(Ra,(ld,ud)=>{wrapAsync(ld)((dd,...pd)=>{if(dd===!1)return ud(dd);pd.length<2?[od]=pd:od=pd,nd=dd,ud(dd?null:{})})},()=>qa(nd,od))}var tryEach$1=awaitify(tryEach);function unmemoize(Ra){return(...qa)=>(Ra.unmemoized||Ra)(...qa)}function whilst(Ra,qa,nd){nd=onlyOnce(nd);var od=wrapAsync(qa),ld=wrapAsync(Ra),ud=[];function dd(fd,...md){if(fd)return nd(fd);ud=md,fd!==!1&&ld(pd)}function pd(fd,md){if(fd)return nd(fd);if(fd!==!1){if(!md)return nd(null,...ud);od(dd)}}return ld(pd)}var whilst$1=awaitify(whilst,3);function until(Ra,qa,nd){const od=wrapAsync(Ra);return whilst$1(ld=>od((ud,dd)=>ld(ud,!dd)),qa,nd)}function waterfall(Ra,qa){if(qa=once(qa),!Array.isArray(Ra))return qa(new Error("First argument to waterfall must be an array of functions"));if(!Ra.length)return qa();var nd=0;function od(ud){var dd=wrapAsync(Ra[nd++]);dd(...ud,onlyOnce(ld))}function ld(ud,...dd){if(ud!==!1){if(ud||nd===Ra.length)return qa(ud,...dd);od(dd)}}od([])}var waterfall$1=awaitify(waterfall),index={apply,applyEach,applyEachSeries,asyncify,auto,autoInject,cargo:cargo$1,cargoQueue:cargo,compose,concat:concat$1,concatLimit:concatLimit$1,concatSeries:concatSeries$1,constant:constant$1,detect:detect$1,detectLimit:detectLimit$1,detectSeries:detectSeries$1,dir,doUntil,doWhilst:doWhilst$1,each,eachLimit:eachLimit$1,eachOf:eachOf$1,eachOfLimit:eachOfLimit$1,eachOfSeries:eachOfSeries$1,eachSeries:eachSeries$1,ensureAsync,every:every$1,everyLimit:everyLimit$1,everySeries:everySeries$1,filter:filter$1,filterLimit:filterLimit$1,filterSeries:filterSeries$1,forever:forever$1,groupBy,groupByLimit:groupByLimit$1,groupBySeries,log,map:map$1,mapLimit:mapLimit$1,mapSeries:mapSeries$1,mapValues,mapValuesLimit:mapValuesLimit$1,mapValuesSeries,memoize,nextTick,parallel,parallelLimit,priorityQueue,queue,race:race$1,reduce:reduce$1,reduceRight,reflect,reflectAll,reject:reject$1,rejectLimit:rejectLimit$1,rejectSeries:rejectSeries$1,retry,retryable,seq,series,setImmediate:setImmediate$1$1,some:some$1,someLimit:someLimit$1,someSeries:someSeries$1,sortBy:sortBy$1,timeout,times,timesLimit,timesSeries,transform,tryEach:tryEach$1,unmemoize,until,waterfall:waterfall$1,whilst:whilst$1,all:every$1,allLimit:everyLimit$1,allSeries:everySeries$1,any:some$1,anyLimit:someLimit$1,anySeries:someSeries$1,find:detect$1,findLimit:detectLimit$1,findSeries:detectSeries$1,flatMap:concat$1,flatMapLimit:concatLimit$1,flatMapSeries:concatSeries$1,forEach:each,forEachSeries:eachSeries$1,forEachLimit:eachLimit$1,forEachOf:eachOf$1,forEachOfSeries:eachOfSeries$1,forEachOfLimit:eachOfLimit$1,inject:reduce$1,foldl:reduce$1,foldr:reduceRight,select:filter$1,selectLimit:filterLimit$1,selectSeries:filterSeries$1,wrapSync:asyncify,during:whilst$1,doDuring:doWhilst$1},readableBrowser={exports:{}};(function(Ra,qa){qa=Ra.exports=require_stream_readable(),qa.Stream=qa,qa.Readable=qa,qa.Writable=require_stream_writable(),qa.Duplex=require_stream_duplex(),qa.Transform=_stream_transform,qa.PassThrough=_stream_passthrough,qa.finished=endOfStream,qa.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports;const{Transform:Transform$1}=readableBrowserExports;class Block extends Transform$1{constructor(qa,nd={}){super(nd),typeof qa=="object"&&(nd=qa,qa=nd.size),this.size=qa||512;const{nopad:od,zeroPadding:ld=!0}=nd;od?this._zeroPadding=!1:this._zeroPadding=!!ld,this._buffered=[],this._bufferedBytes=0}_transform(qa,nd,od){for(this._bufferedBytes+=qa.length,this._buffered.push(qa);this._bufferedBytes>=this.size;){this._bufferedBytes-=this.size;const ld=[];let ud=0;for(;ud * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */lodash.exports;(function(Ra,qa){(function(){var nd,od="4.17.21",ld=200,ud="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",dd="Expected a function",pd="Invalid `variable` option passed into `_.template`",fd="__lodash_hash_undefined__",md=500,vd="__lodash_placeholder__",Ad=1,Nd=2,Od=4,kd=1,Ld=2,Gd=1,Ud=2,Fd=4,jd=8,qd=16,zd=32,Yd=64,Jd=128,yf=256,Xd=512,pf=30,mf="...",Tf=800,vf=16,Af=1,Sf=2,Df=3,If=1/0,Gf=9007199254740991,Jf=17976931348623157e292,ih=NaN,uh=4294967295,qf=uh-1,Pf=uh>>>1,Wf=[["ary",Jd],["bind",Gd],["bindKey",Ud],["curry",jd],["curryRight",qd],["flip",Xd],["partial",zd],["partialRight",Yd],["rearg",yf]],Yf="[object Arguments]",Kf="[object Array]",Cf="[object AsyncFunction]",xf="[object Boolean]",Xf="[object Date]",sh="[object DOMException]",Ah="[object Error]",dh="[object Function]",Rf="[object GeneratorFunction]",gh="[object Map]",Bh="[object Number]",th="[object Null]",$f="[object Object]",Uf="[object Promise]",Zf="[object Proxy]",kh="[object RegExp]",Wh="[object Set]",xh="[object String]",pm="[object Symbol]",Jh="[object Undefined]",Om="[object WeakMap]",Nm="[object WeakSet]",mm="[object ArrayBuffer]",Pm="[object DataView]",Vm="[object Float32Array]",yh="[object Float64Array]",jf="[object Int8Array]",Lf="[object Int16Array]",_h="[object Int32Array]",Oh="[object Uint8Array]",um="[object Uint8ClampedArray]",gm="[object Uint16Array]",Lm="[object Uint32Array]",Jm=/\b__p \+= '';/g,Gm=/\b(__p \+=) '' \+/g,Eg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,og=/&(?:amp|lt|gt|quot|#39);/g,Cg=/[&<>"']/g,jg=RegExp(og.source),p_=RegExp(Cg.source),Yg=/<%-([\s\S]+?)%>/g,i_=/<%([\s\S]+?)%>/g,$g=/<%=([\s\S]+?)%>/g,C_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o_=/^\w*$/,M_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B_=/[\\^$.*+?()[\]{}|]/g,h_=RegExp(B_.source),b_=/^\s+/,lg=/\s/,vb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kb=/\{\n\/\* \[wrapped with (.+)\] \*/,Z_=/,? & /,Bf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fh=/[()=,{}\[\]\/\s]/,Ch=/\\(\\)?/g,Mh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dm=/\w*$/,om=/^[-+]0x[0-9a-f]+$/i,Tm=/^0b[01]+$/i,_m=/^\[object .+?Constructor\]$/,Xh=/^0o[0-7]+$/i,Hm=/^(?:0|[1-9]\d*)$/,Ym=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tg=/($^)/,Zm=/['\n\r\u2028\u2029\\]/g,Ag="\\ud800-\\udfff",u_="\\u0300-\\u036f",l_="\\ufe20-\\ufe2f",Kg="\\u20d0-\\u20ff",sg=u_+l_+Kg,D_="\\u2700-\\u27bf",Jg="a-z\\xdf-\\xf6\\xf8-\\xff",Ug="\\xac\\xb1\\xd7\\xf7",Sh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sm="\\u2000-\\u206f",Wm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rg="A-Z\\xc0-\\xd6\\xd8-\\xde",jm="\\ufe0e\\ufe0f",_g=Ug+Sh+sm+Wm,t_="['’]",R_="["+Ag+"]",G_="["+_g+"]",Tb="["+sg+"]",Gb="\\d+",Gg="["+D_+"]",xb="["+Jg+"]",O_="[^"+Ag+_g+Gb+D_+Jg+rg+"]",ib="\\ud83c[\\udffb-\\udfff]",W_="(?:"+Tb+"|"+ib+")",qb="[^"+Ag+"]",y0="(?:\\ud83c[\\udde6-\\uddff]){2}",sb="[\\ud800-\\udbff][\\udc00-\\udfff]",Vb="["+rg+"]",Iy="\\u200d",V0="(?:"+xb+"|"+O_+")",Lg="(?:"+Vb+"|"+O_+")",z0="(?:"+t_+"(?:d|ll|m|re|s|t|ve))?",O0="(?:"+t_+"(?:D|LL|M|RE|S|T|VE))?",Ry=W_+"?",Av="["+jm+"]?",wv="(?:"+Iy+"(?:"+[qb,y0,sb].join("|")+")"+Av+Ry+")*",k0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Y_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mb=Av+Ry+wv,r0="(?:"+[Gg,y0,sb].join("|")+")"+Mb,M0="(?:"+[qb+Tb+"?",Tb,y0,sb,R_].join("|")+")",W0=RegExp(t_,"g"),JE=RegExp(Tb,"g"),mE=RegExp(ib+"(?="+ib+")|"+M0+Mb,"g"),ZE=RegExp([Vb+"?"+xb+"+"+z0+"(?="+[G_,Vb,"$"].join("|")+")",Lg+"+"+O0+"(?="+[G_,Vb+V0,"$"].join("|")+")",Vb+"?"+V0+"+"+z0,Vb+"+"+O0,Y_,k0,Gb,r0].join("|"),"g"),XS=RegExp("["+Iy+Ag+sg+jm+"]"),gE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eS=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tS=-1,ug={};ug[Vm]=ug[yh]=ug[jf]=ug[Lf]=ug[_h]=ug[Oh]=ug[um]=ug[gm]=ug[Lm]=!0,ug[Yf]=ug[Kf]=ug[mm]=ug[xf]=ug[Pm]=ug[Xf]=ug[Ah]=ug[dh]=ug[gh]=ug[Bh]=ug[$f]=ug[kh]=ug[Wh]=ug[xh]=ug[Om]=!1;var A_={};A_[Yf]=A_[Kf]=A_[mm]=A_[Pm]=A_[xf]=A_[Xf]=A_[Vm]=A_[yh]=A_[jf]=A_[Lf]=A_[_h]=A_[gh]=A_[Bh]=A_[$f]=A_[kh]=A_[Wh]=A_[xh]=A_[pm]=A_[Oh]=A_[um]=A_[gm]=A_[Lm]=!0,A_[Ah]=A_[dh]=A_[Om]=!1;var Oy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Nv={"&":"&","<":"<",">":">",'"':""","'":"'"},yE={"&":"&","<":"<",">":">",""":'"',"'":"'"},rS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nS=parseFloat,$y=parseInt,iS=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,vE=typeof self=="object"&&self&&self.Object===Object&&self,T_=iS||vE||Function("return this")(),SE=qa&&!qa.nodeType&&qa,$0=SE&&!0&&Ra&&!Ra.nodeType&&Ra,$_=$0&&$0.exports===SE,zb=$_&&iS.process,q_=function(){try{var $m=$0&&$0.require&&$0.require("util").types;return $m||zb&&zb.binding&&zb.binding("util")}catch{}}(),Py=q_&&q_.isArrayBuffer,Wb=q_&&q_.isDate,Y0=q_&&q_.isMap,Ov=q_&&q_.isRegExp,n0=q_&&q_.isSet,sS=q_&&q_.isTypedArray;function Nb($m,Km,Um){switch(Um.length){case 0:return $m.call(Km);case 1:return $m.call(Km,Um[0]);case 2:return $m.call(Km,Um[0],Um[1]);case 3:return $m.call(Km,Um[0],Um[1],Um[2])}return $m.apply(Km,Um)}function TE($m,Km,Um,kg){for(var e_=-1,m_=$m==null?0:$m.length;++e_-1}function Mv($m,Km,Um){for(var kg=-1,e_=$m==null?0:$m.length;++kg-1;);return Um}function ob($m,Km){for(var Um=$m.length;Um--&&Qd(Km,$m[Um],0)>-1;);return Um}function By($m,Km){for(var Um=$m.length,kg=0;Um--;)$m[Um]===Km&&++kg;return kg}var Lv=Zh(Oy),E0=Zh(Nv);function Hy($m){return"\\"+rS[$m]}function JS($m,Km){return $m==null?nd:$m[Km]}function jv($m){return XS.test($m)}function FT($m){return gE.test($m)}function qx($m){for(var Km,Um=[];!(Km=$m.next()).done;)Um.push(Km.value);return Um}function uS($m){var Km=-1,Um=Array($m.size);return $m.forEach(function(kg,e_){Um[++Km]=[e_,kg]}),Um}function dS($m,Km){return function(Um){return $m(Km(Um))}}function Lb($m,Km){for(var Um=-1,kg=$m.length,e_=0,m_=[];++Um-1}function JT(Wd,gf){var wf=this.__data__,Qf=Yv(wf,Wd);return Qf<0?(++this.size,wf.push([Wd,gf])):wf[Qf][1]=gf,this}u0.prototype.clear=t1,u0.prototype.delete=uT,u0.prototype.get=dT,u0.prototype.has=QT,u0.prototype.set=JT;function d0(Wd){var gf=-1,wf=Wd==null?0:Wd.length;for(this.clear();++gf=gf?Wd:gf)),Wd}function Fb(Wd,gf,wf,Qf,wh,Vh){var Dm,Im=gf&Ad,Fm=gf&Nd,eg=gf&Od;if(wf&&(Dm=wh?wf(Wd,Qf,wh,Vh):wf(Wd)),Dm!==nd)return Dm;if(!J_(Wd))return Wd;var tg=n_(Wd);if(tg){if(Dm=y1(Wd),!Im)return Pb(Wd,Dm)}else{var ng=pb(Wd),Ig=ng==dh||ng==Rf;if(hE(Wd))return wT(Wd,Im);if(ng==$f||ng==Yf||Ig&&!wh){if(Dm=Fm||Ig?{}:$x(Wd),!Im)return Fm?h1(Wd,rx(Dm,Wd)):Cx(Wd,hT(Dm,Wd))}else{if(!A_[ng])return wh?Wd:{};Dm=FS(Wd,ng,Im)}}Vh||(Vh=new j_);var Hg=Vh.get(Wd);if(Hg)return Hg;Vh.set(Wd,Dm),tC(Wd)?Wd.forEach(function(Qg){Dm.add(Fb(Qg,gf,wf,Qg,Wd,Vh))}):Z1(Wd)&&Wd.forEach(function(Qg,f_){Dm.set(f_,Fb(Qg,gf,wf,f_,Wd,Vh))});var Xg=eg?Fm?BS:LS:Fm?e0:Db,c_=tg?nd:Xg(Wd);return $b(c_||Wd,function(Qg,f_){c_&&(f_=Qg,Qg=Wd[f_]),Wv(Dm,f_,Fb(Qg,gf,wf,f_,Wd,Vh))}),Dm}function a1(Wd){var gf=Db(Wd);return function(wf){return mT(wf,Wd,gf)}}function mT(Wd,gf,wf){var Qf=wf.length;if(Wd==null)return!Qf;for(Wd=N_(Wd);Qf--;){var wh=wf[Qf],Vh=gf[wh],Dm=Wd[wh];if(Dm===nd&&!(wh in Wd)||!Vh(Dm))return!1}return!0}function nx(Wd,gf,wf){if(typeof Wd!="function")throw new Kb(dd);return Bg(function(){Wd.apply(nd,wf)},gf)}function kE(Wd,gf,wf,Qf){var wh=-1,Vh=kv,Dm=!0,Im=Wd.length,Fm=[],eg=gf.length;if(!Im)return Fm;wf&&(gf=k_(gf,Zg(wf))),Qf?(Vh=Mv,Dm=!1):gf.length>=ld&&(Vh=d_,Dm=!1,gf=new Z0(gf));e:for(;++whwh?0:wh+wf),Qf=Qf===nd||Qf>wh?wh:s_(Qf),Qf<0&&(Qf+=wh),Qf=wf>Qf?0:nC(Qf);wf0&&wf(Im)?gf>1?ub(Im,gf-1,wf,Qf,wh):i0(wh,Im):Qf||(wh[wh.length]=Im)}return wh}var Xv=Ax(),yT=Ax(!0);function Qb(Wd,gf){return Wd&&Xv(Wd,gf,Db)}function xS(Wd,gf){return Wd&&yT(Wd,gf,Db)}function CS(Wd,gf){return v0(gf,function(wf){return yv(Wd[wf])})}function sy(Wd,gf){gf=Sy(gf,Wd);for(var wf=0,Qf=gf.length;Wd!=null&&wfgf}function sx(Wd,gf){return Wd!=null&&S_.call(Wd,gf)}function ox(Wd,gf){return Wd!=null&&gf in N_(Wd)}function Qv(Wd,gf,wf){return Wd>=tb(gf,wf)&&Wd=120&&tg.length>=120)?new Z0(Dm&&tg):nd}tg=Wd[0];var ng=-1,Ig=Im[0];e:for(;++ng-1;)Im!==Wd&&Jy.call(Im,Fm,1),Jy.call(Wd,Fm,1);return Wd}function Cb(Wd,gf){for(var wf=Wd?gf.length:0,Qf=wf-1;wf--;){var wh=gf[wf];if(wf==Qf||wh!==Vh){var Vh=wh;df(wh)?Jy.call(Wd,wh,1):DS(Wd,wh)}}return Wd}function wS(Wd,gf){return Wd+ev(lT()*(gf-Wd+1))}function l1(Wd,gf,wf,Qf){for(var wh=-1,Vh=L_(wE((gf-Wd)/(wf||1)),0),Dm=Um(Vh);Vh--;)Dm[Qf?Vh:++wh]=Wd,Wd+=wf;return Dm}function CT(Wd,gf){var wf="";if(!Wd||gf<1||gf>Gf)return wf;do gf%2&&(wf+=Wd),gf=ev(gf/2),gf&&(Wd+=Wd);while(gf);return wf}function a_(Wd,gf){return Pg(ig(Wd,gf,t0),Wd+"")}function vx(Wd){return pT(US(Wd))}function Ex(Wd,gf){var wf=US(Wd);return z_(wf,U0(gf,0,wf.length))}function iE(Wd,gf,wf,Qf){if(!J_(Wd))return Wd;gf=Sy(gf,Wd);for(var wh=-1,Vh=gf.length,Dm=Vh-1,Im=Wd;Im!=null&&++whwh?0:wh+gf),wf=wf>wh?wh:wf,wf<0&&(wf+=wh),wh=gf>wf?0:wf-gf>>>0,gf>>>=0;for(var Vh=Um(wh);++Qf>>1,Dm=Wd[Vh];Dm!==null&&!g0(Dm)&&(wf?Dm<=gf:Dm=ld){var eg=gf?null:g1(Wd);if(eg)return Bb(eg);Dm=!1,wh=d_,Fm=new Z0}else Fm=gf?[]:Im;e:for(;++Qf=Qf?Wd:db(Wd,gf,wf)}var xx=nT||function(Wd){return T_.clearTimeout(Wd)};function wT(Wd,gf){if(gf)return Wd.slice();var wf=Wd.length,Qf=tT?tT(wf):new Wd.constructor(wf);return Wd.copy(Qf),Qf}function sE(Wd){var gf=new Wd.constructor(Wd.byteLength);return new hS(gf).set(new hS(Wd)),gf}function d1(Wd,gf){var wf=gf?sE(Wd.buffer):Wd.buffer;return new Wd.constructor(wf,Wd.byteOffset,Wd.byteLength)}function p1(Wd){var gf=new Wd.constructor(Wd.source,dm.exec(Wd));return gf.lastIndex=Wd.lastIndex,gf}function HE(Wd){return IE?N_(IE.call(Wd)):{}}function DT(Wd,gf){var wf=gf?sE(Wd.buffer):Wd.buffer;return new Wd.constructor(wf,Wd.byteOffset,Wd.length)}function NT(Wd,gf){if(Wd!==gf){var wf=Wd!==nd,Qf=Wd===null,wh=Wd===Wd,Vh=g0(Wd),Dm=gf!==nd,Im=gf===null,Fm=gf===gf,eg=g0(gf);if(!Im&&!eg&&!Vh&&Wd>gf||Vh&&Dm&&Fm&&!Im&&!eg||Qf&&Dm&&Fm||!wf&&Fm||!wh)return 1;if(!Qf&&!Vh&&!eg&&Wd=Im)return Fm;var eg=wf[Qf];return Fm*(eg=="desc"?-1:1)}}return Wd.index-gf.index}function RS(Wd,gf,wf,Qf){for(var wh=-1,Vh=Wd.length,Dm=wf.length,Im=-1,Fm=gf.length,eg=L_(Vh-Dm,0),tg=Um(Fm+eg),ng=!Qf;++Im1?wf[wh-1]:nd,Dm=wh>2?wf[2]:nd;for(Vh=Wd.length>3&&typeof Vh=="function"?(wh--,Vh):nd,Dm&&Zd(wf[0],wf[1],Dm)&&(Vh=wh<3?nd:Vh,wh=1),gf=N_(gf);++Qf-1?wh[Vh?gf[Dm]:Dm]:nd}}function Nx(Wd){return w0(function(gf){var wf=gf.length,Qf=wf,wh=x_.prototype.thru;for(Wd&&gf.reverse();Qf--;){var Vh=gf[Qf];if(typeof Vh!="function")throw new Kb(dd);if(wh&&!Dm&&YE(Vh)=="wrapper")var Dm=new x_([],!0)}for(Qf=Dm?Qf:wf;++Qf1&&__.reverse(),tg&&FmIm))return!1;var eg=Vh.get(Wd),tg=Vh.get(gf);if(eg&&tg)return eg==gf&&tg==Wd;var ng=-1,Ig=!0,Hg=wf&Ld?new Z0:nd;for(Vh.set(Wd,gf),Vh.set(gf,Wd);++ng1?"& ":"")+gf[Qf],gf=gf.join(wf>2?", ":" "),Wd.replace(vb,`{ + */lodash.exports;(function(Ra,qa){(function(){var nd,od="4.17.21",ld=200,ud="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",dd="Expected a function",pd="Invalid `variable` option passed into `_.template`",fd="__lodash_hash_undefined__",md=500,vd="__lodash_placeholder__",Ad=1,Nd=2,Od=4,kd=1,Ld=2,Gd=1,jd=2,Fd=4,Ud=8,qd=16,zd=32,Wd=64,Jd=128,_f=256,Xd=512,pf=30,mf="...",Sf=800,Tf=16,Af=1,Ef=2,Nf=3,If=1/0,Gf=9007199254740991,Qf=17976931348623157e292,Xf=NaN,ph=4294967295,qf=ph-1,Lf=ph>>>1,Wf=[["ary",Jd],["bind",Gd],["bindKey",jd],["curry",Ud],["curryRight",qd],["flip",Xd],["partial",zd],["partialRight",Wd],["rearg",_f]],Jf="[object Arguments]",Kf="[object Array]",Cf="[object AsyncFunction]",xf="[object Boolean]",Yf="[object Date]",dh="[object DOMException]",Rh="[object Error]",th="[object Function]",Bf="[object GeneratorFunction]",Sh="[object Map]",Fh="[object Number]",uh="[object Null]",Pf="[object Object]",Uf="[object Promise]",Zf="[object Proxy]",mh="[object RegExp]",Mh="[object Set]",_h="[object String]",pm="[object Symbol]",Jh="[object Undefined]",Mm="[object WeakMap]",Im="[object WeakSet]",gm="[object ArrayBuffer]",Lm="[object DataView]",Vm="[object Float32Array]",Th="[object Float64Array]",Rf="[object Int8Array]",wf="[object Int16Array]",sh="[object Int32Array]",xh="[object Uint8Array]",Wh="[object Uint8ClampedArray]",om="[object Uint16Array]",Dm="[object Uint32Array]",zm=/\b__p \+= '';/g,jm=/\b(__p \+=) '' \+/g,ig=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Zm=/&(?:amp|lt|gt|quot|#39);/g,ug=/[&<>"']/g,wg=RegExp(Zm.source),Kg=RegExp(ug.source),Gg=/<%-([\s\S]+?)%>/g,n_=/<%([\s\S]+?)%>/g,Pg=/<%=([\s\S]+?)%>/g,m_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a_=/^\w*$/,M_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B_=/[\\^$.*+?()[\]{}|]/g,h_=RegExp(B_.source),y_=/^\s+/,dg=/\s/,vb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kb=/\{\n\/\* \[wrapped with (.+)\] \*/,Z_=/,? & /,jf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Uh=/[()=,{}\[\]\/\s]/,wh=/\\(\\)?/g,Bh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fm=/\w*$/,dm=/^[-+]0x[0-9a-f]+$/i,Tm=/^0b[01]+$/i,_m=/^\[object .+?Constructor\]$/,Zh=/^0o[0-7]+$/i,Gm=/^(?:0|[1-9]\d*)$/,Km=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xg=/($^)/,eg=/['\n\r\u2028\u2029\\]/g,Ag="\\ud800-\\udfff",d_="\\u0300-\\u036f",u_="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",lg=d_+u_+Xg,N_="\\u2700-\\u27bf",Zg="a-z\\xdf-\\xf6\\xf8-\\xff",Ug="\\xac\\xb1\\xd7\\xf7",Ch="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",um="\\u2000-\\u206f",Ym=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ng="A-Z\\xc0-\\xd6\\xd8-\\xde",Um="\\ufe0e\\ufe0f",Eg=Ug+Ch+um+Ym,r_="['’]",R_="["+Ag+"]",G_="["+Eg+"]",Tb="["+lg+"]",Gb="\\d+",qg="["+N_+"]",xb="["+Zg+"]",O_="[^"+Ag+Eg+Gb+N_+Zg+ng+"]",ib="\\ud83c[\\udffb-\\udfff]",W_="(?:"+Tb+"|"+ib+")",qb="[^"+Ag+"]",y0="(?:\\ud83c[\\udde6-\\uddff]){2}",sb="[\\ud800-\\udbff][\\udc00-\\udfff]",Vb="["+ng+"]",Iy="\\u200d",V0="(?:"+xb+"|"+O_+")",Bg="(?:"+Vb+"|"+O_+")",z0="(?:"+r_+"(?:d|ll|m|re|s|t|ve))?",O0="(?:"+r_+"(?:D|LL|M|RE|S|T|VE))?",Ry=W_+"?",Av="["+Um+"]?",wv="(?:"+Iy+"(?:"+[qb,y0,sb].join("|")+")"+Av+Ry+")*",k0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Y_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mb=Av+Ry+wv,r0="(?:"+[qg,y0,sb].join("|")+")"+Mb,M0="(?:"+[qb+Tb+"?",Tb,y0,sb,R_].join("|")+")",W0=RegExp(r_,"g"),JE=RegExp(Tb,"g"),mE=RegExp(ib+"(?="+ib+")|"+M0+Mb,"g"),ZE=RegExp([Vb+"?"+xb+"+"+z0+"(?="+[G_,Vb,"$"].join("|")+")",Bg+"+"+O0+"(?="+[G_,Vb+V0,"$"].join("|")+")",Vb+"?"+V0+"+"+z0,Vb+"+"+O0,Y_,k0,Gb,r0].join("|"),"g"),XS=RegExp("["+Iy+Ag+lg+Um+"]"),gE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eS=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tS=-1,_g={};_g[Vm]=_g[Th]=_g[Rf]=_g[wf]=_g[sh]=_g[xh]=_g[Wh]=_g[om]=_g[Dm]=!0,_g[Jf]=_g[Kf]=_g[gm]=_g[xf]=_g[Lm]=_g[Yf]=_g[Rh]=_g[th]=_g[Sh]=_g[Fh]=_g[Pf]=_g[mh]=_g[Mh]=_g[_h]=_g[Mm]=!1;var A_={};A_[Jf]=A_[Kf]=A_[gm]=A_[Lm]=A_[xf]=A_[Yf]=A_[Vm]=A_[Th]=A_[Rf]=A_[wf]=A_[sh]=A_[Sh]=A_[Fh]=A_[Pf]=A_[mh]=A_[Mh]=A_[_h]=A_[pm]=A_[xh]=A_[Wh]=A_[om]=A_[Dm]=!0,A_[Rh]=A_[th]=A_[Mm]=!1;var Oy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Nv={"&":"&","<":"<",">":">",'"':""","'":"'"},yE={"&":"&","<":"<",">":">",""":'"',"'":"'"},rS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nS=parseFloat,$y=parseInt,iS=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,vE=typeof self=="object"&&self&&self.Object===Object&&self,x_=iS||vE||Function("return this")(),SE=qa&&!qa.nodeType&&qa,$0=SE&&!0&&Ra&&!Ra.nodeType&&Ra,$_=$0&&$0.exports===SE,zb=$_&&iS.process,q_=function(){try{var Pm=$0&&$0.require&&$0.require("util").types;return Pm||zb&&zb.binding&&zb.binding("util")}catch{}}(),Py=q_&&q_.isArrayBuffer,Wb=q_&&q_.isDate,Y0=q_&&q_.isMap,Ov=q_&&q_.isRegExp,n0=q_&&q_.isSet,sS=q_&&q_.isTypedArray;function Db(Pm,Xm,Hm){switch(Hm.length){case 0:return Pm.call(Xm);case 1:return Pm.call(Xm,Hm[0]);case 2:return Pm.call(Xm,Hm[0],Hm[1]);case 3:return Pm.call(Xm,Hm[0],Hm[1],Hm[2])}return Pm.apply(Xm,Hm)}function TE(Pm,Xm,Hm,$g){for(var t_=-1,g_=Pm==null?0:Pm.length;++t_-1}function Mv(Pm,Xm,Hm){for(var $g=-1,t_=Pm==null?0:Pm.length;++$g-1;);return Hm}function ob(Pm,Xm){for(var Hm=Pm.length;Hm--&&Qd(Xm,Pm[Hm],0)>-1;);return Hm}function By(Pm,Xm){for(var Hm=Pm.length,$g=0;Hm--;)Pm[Hm]===Xm&&++$g;return $g}var Lv=im(Oy),E0=im(Nv);function Hy(Pm){return"\\"+rS[Pm]}function JS(Pm,Xm){return Pm==null?nd:Pm[Xm]}function jv(Pm){return XS.test(Pm)}function FT(Pm){return gE.test(Pm)}function qx(Pm){for(var Xm,Hm=[];!(Xm=Pm.next()).done;)Hm.push(Xm.value);return Hm}function cS(Pm){var Xm=-1,Hm=Array(Pm.size);return Pm.forEach(function($g,t_){Hm[++Xm]=[t_,$g]}),Hm}function dS(Pm,Xm){return function(Hm){return Pm(Xm(Hm))}}function Lb(Pm,Xm){for(var Hm=-1,$g=Pm.length,t_=0,g_=[];++Hm<$g;){var eb=Pm[Hm];(eb===Xm||eb===vd)&&(Pm[Hm]=vd,g_[t_++]=Hm)}return g_}function Bb(Pm){var Xm=-1,Hm=Array(Pm.size);return Pm.forEach(function($g){Hm[++Xm]=$g}),Hm}function jT(Pm){var Xm=-1,Hm=Array(Pm.size);return Pm.forEach(function($g){Hm[++Xm]=[$g,$g]}),Hm}function UT(Pm,Xm,Hm){for(var $g=Hm-1,t_=Pm.length;++$g-1}function JT(Yd,gf){var Df=this.__data__,eh=Yv(Df,Yd);return eh<0?(++this.size,Df.push([Yd,gf])):Df[eh][1]=gf,this}c0.prototype.clear=t1,c0.prototype.delete=cT,c0.prototype.get=dT,c0.prototype.has=QT,c0.prototype.set=JT;function d0(Yd){var gf=-1,Df=Yd==null?0:Yd.length;for(this.clear();++gf=gf?Yd:gf)),Yd}function Fb(Yd,gf,Df,eh,Oh,Xh){var Nm,Rm=gf&Ad,Fm=gf&Nd,tg=gf&Od;if(Df&&(Nm=Oh?Df(Yd,eh,Oh,Xh):Df(Yd)),Nm!==nd)return Nm;if(!J_(Yd))return Yd;var rg=s_(Yd);if(rg){if(Nm=y1(Yd),!Rm)return Pb(Yd,Nm)}else{var sg=pb(Yd),Rg=sg==th||sg==Bf;if(hE(Yd))return wT(Yd,Rm);if(sg==Pf||sg==Jf||Rg&&!Oh){if(Nm=Fm||Rg?{}:$x(Yd),!Rm)return Fm?h1(Yd,rx(Nm,Yd)):Cx(Yd,hT(Nm,Yd))}else{if(!A_[sg])return Oh?Yd:{};Nm=FS(Yd,sg,Rm)}}Xh||(Xh=new j_);var Hg=Xh.get(Yd);if(Hg)return Hg;Xh.set(Yd,Nm),tC(Yd)?Yd.forEach(function(Jg){Nm.add(Fb(Jg,gf,Df,Jg,Yd,Xh))}):Z1(Yd)&&Yd.forEach(function(Jg,f_){Nm.set(f_,Fb(Jg,gf,Df,f_,Yd,Xh))});var Qg=tg?Fm?BS:LS:Fm?e0:Nb,c_=rg?nd:Qg(Yd);return $b(c_||Yd,function(Jg,f_){c_&&(f_=Jg,Jg=Yd[f_]),Wv(Nm,f_,Fb(Jg,gf,Df,f_,Yd,Xh))}),Nm}function a1(Yd){var gf=Nb(Yd);return function(Df){return mT(Df,Yd,gf)}}function mT(Yd,gf,Df){var eh=Df.length;if(Yd==null)return!eh;for(Yd=D_(Yd);eh--;){var Oh=Df[eh],Xh=gf[Oh],Nm=Yd[Oh];if(Nm===nd&&!(Oh in Yd)||!Xh(Nm))return!1}return!0}function nx(Yd,gf,Df){if(typeof Yd!="function")throw new Kb(dd);return jg(function(){Yd.apply(nd,Df)},gf)}function kE(Yd,gf,Df,eh){var Oh=-1,Xh=kv,Nm=!0,Rm=Yd.length,Fm=[],tg=gf.length;if(!Rm)return Fm;Df&&(gf=k_(gf,e_(Df))),eh?(Xh=Mv,Nm=!1):gf.length>=ld&&(Xh=p_,Nm=!1,gf=new Z0(gf));e:for(;++OhOh?0:Oh+Df),eh=eh===nd||eh>Oh?Oh:l_(eh),eh<0&&(eh+=Oh),eh=Df>eh?0:nC(eh);Df0&&Df(Rm)?gf>1?ub(Rm,gf-1,Df,eh,Oh):i0(Oh,Rm):eh||(Oh[Oh.length]=Rm)}return Oh}var Xv=Ax(),yT=Ax(!0);function Qb(Yd,gf){return Yd&&Xv(Yd,gf,Nb)}function xS(Yd,gf){return Yd&&yT(Yd,gf,Nb)}function CS(Yd,gf){return v0(gf,function(Df){return yv(Yd[Df])})}function sy(Yd,gf){gf=Sy(gf,Yd);for(var Df=0,eh=gf.length;Yd!=null&&Dfgf}function sx(Yd,gf){return Yd!=null&&T_.call(Yd,gf)}function ox(Yd,gf){return Yd!=null&&gf in D_(Yd)}function Qv(Yd,gf,Df){return Yd>=tb(gf,Df)&&Yd=120&&rg.length>=120)?new Z0(Nm&&rg):nd}rg=Yd[0];var sg=-1,Rg=Rm[0];e:for(;++sg-1;)Rm!==Yd&&Jy.call(Rm,Fm,1),Jy.call(Yd,Fm,1);return Yd}function Cb(Yd,gf){for(var Df=Yd?gf.length:0,eh=Df-1;Df--;){var Oh=gf[Df];if(Df==eh||Oh!==Xh){var Xh=Oh;df(Oh)?Jy.call(Yd,Oh,1):DS(Yd,Oh)}}return Yd}function wS(Yd,gf){return Yd+ev(lT()*(gf-Yd+1))}function l1(Yd,gf,Df,eh){for(var Oh=-1,Xh=L_(wE((gf-Yd)/(Df||1)),0),Nm=Hm(Xh);Xh--;)Nm[eh?Xh:++Oh]=Yd,Yd+=Df;return Nm}function CT(Yd,gf){var Df="";if(!Yd||gf<1||gf>Gf)return Df;do gf%2&&(Df+=Yd),gf=ev(gf/2),gf&&(Yd+=Yd);while(gf);return Df}function o_(Yd,gf){return Lg(og(Yd,gf,t0),Yd+"")}function vx(Yd){return pT(US(Yd))}function Ex(Yd,gf){var Df=US(Yd);return z_(Df,U0(gf,0,Df.length))}function iE(Yd,gf,Df,eh){if(!J_(Yd))return Yd;gf=Sy(gf,Yd);for(var Oh=-1,Xh=gf.length,Nm=Xh-1,Rm=Yd;Rm!=null&&++OhOh?0:Oh+gf),Df=Df>Oh?Oh:Df,Df<0&&(Df+=Oh),Oh=gf>Df?0:Df-gf>>>0,gf>>>=0;for(var Xh=Hm(Oh);++eh>>1,Nm=Yd[Xh];Nm!==null&&!g0(Nm)&&(Df?Nm<=gf:Nm=ld){var tg=gf?null:g1(Yd);if(tg)return Bb(tg);Nm=!1,Oh=p_,Fm=new Z0}else Fm=gf?[]:Rm;e:for(;++eh=eh?Yd:db(Yd,gf,Df)}var xx=nT||function(Yd){return x_.clearTimeout(Yd)};function wT(Yd,gf){if(gf)return Yd.slice();var Df=Yd.length,eh=tT?tT(Df):new Yd.constructor(Df);return Yd.copy(eh),eh}function sE(Yd){var gf=new Yd.constructor(Yd.byteLength);return new hS(gf).set(new hS(Yd)),gf}function d1(Yd,gf){var Df=gf?sE(Yd.buffer):Yd.buffer;return new Yd.constructor(Df,Yd.byteOffset,Yd.byteLength)}function p1(Yd){var gf=new Yd.constructor(Yd.source,fm.exec(Yd));return gf.lastIndex=Yd.lastIndex,gf}function HE(Yd){return IE?D_(IE.call(Yd)):{}}function NT(Yd,gf){var Df=gf?sE(Yd.buffer):Yd.buffer;return new Yd.constructor(Df,Yd.byteOffset,Yd.length)}function DT(Yd,gf){if(Yd!==gf){var Df=Yd!==nd,eh=Yd===null,Oh=Yd===Yd,Xh=g0(Yd),Nm=gf!==nd,Rm=gf===null,Fm=gf===gf,tg=g0(gf);if(!Rm&&!tg&&!Xh&&Yd>gf||Xh&&Nm&&Fm&&!Rm&&!tg||eh&&Nm&&Fm||!Df&&Fm||!Oh)return 1;if(!eh&&!Xh&&!tg&&Yd=Rm)return Fm;var tg=Df[eh];return Fm*(tg=="desc"?-1:1)}}return Yd.index-gf.index}function RS(Yd,gf,Df,eh){for(var Oh=-1,Xh=Yd.length,Nm=Df.length,Rm=-1,Fm=gf.length,tg=L_(Xh-Nm,0),rg=Hm(Fm+tg),sg=!eh;++Rm1?Df[Oh-1]:nd,Nm=Oh>2?Df[2]:nd;for(Xh=Yd.length>3&&typeof Xh=="function"?(Oh--,Xh):nd,Nm&&Zd(Df[0],Df[1],Nm)&&(Xh=Oh<3?nd:Xh,Oh=1),gf=D_(gf);++eh-1?Oh[Xh?gf[Nm]:Nm]:nd}}function Dx(Yd){return w0(function(gf){var Df=gf.length,eh=Df,Oh=C_.prototype.thru;for(Yd&&gf.reverse();eh--;){var Xh=gf[eh];if(typeof Xh!="function")throw new Kb(dd);if(Oh&&!Nm&&YE(Xh)=="wrapper")var Nm=new C_([],!0)}for(eh=Nm?eh:Df;++eh1&&b_.reverse(),rg&&FmRm))return!1;var tg=Xh.get(Yd),rg=Xh.get(gf);if(tg&&rg)return tg==gf&&rg==Yd;var sg=-1,Rg=!0,Hg=Df&Ld?new Z0:nd;for(Xh.set(Yd,gf),Xh.set(gf,Yd);++sg1?"& ":"")+gf[eh],gf=gf.join(Df>2?", ":" "),Yd.replace(vb,`{ /* [wrapped with `+gf+`] */ -`)}function Vd(Wd){return n_(Wd)||XE(Wd)||!!(zT&&Wd&&Wd[zT])}function df(Wd,gf){var wf=typeof Wd;return gf=gf??Gf,!!gf&&(wf=="number"||wf!="symbol"&&Hm.test(Wd))&&Wd>-1&&Wd%1==0&&Wd0){if(++gf>=Tf)return arguments[0]}else gf=0;return Wd.apply(nd,arguments)}}function z_(Wd,gf){var wf=-1,Qf=Wd.length,wh=Qf-1;for(gf=gf===nd?Qf:gf;++wf1?Wd[gf-1]:nd;return wf=typeof wf=="function"?(Wd.pop(),wf):nd,U1(Wd,wf)});function H1(Wd){var gf=Uh(Wd);return gf.__chain__=!0,gf}function _A(Wd,gf){return gf(Wd),Wd}function Px(Wd,gf){return gf(Wd)}var yA=w0(function(Wd){var gf=Wd.length,wf=gf?Wd[0]:0,Qf=this.__wrapped__,wh=function(Vh){return Kv(Vh,Wd)};return gf>1||this.__actions__.length||!(Qf instanceof Wg)||!df(wf)?this.thru(wh):(Qf=Qf.slice(wf,+wf+(gf?1:0)),Qf.__actions__.push({func:Px,args:[wh],thisArg:nd}),new x_(Qf,this.__chain__).thru(function(Vh){return gf&&!Vh.length&&Vh.push(nd),Vh}))});function vA(){return H1(this)}function EA(){return new x_(this.value(),this.__chain__)}function SA(){this.__values__===nd&&(this.__values__=rC(this.value()));var Wd=this.__index__>=this.__values__.length,gf=Wd?nd:this.__values__[this.__index__++];return{done:Wd,value:gf}}function TA(){return this}function xA(Wd){for(var gf,wf=this;wf instanceof Eb;){var Qf=Ab(wf);Qf.__index__=0,Qf.__values__=nd,gf?wh.__wrapped__=Qf:gf=Qf;var wh=Qf;wf=wf.__wrapped__}return wh.__wrapped__=Wd,gf}function CA(){var Wd=this.__wrapped__;if(Wd instanceof Wg){var gf=Wd;return this.__actions__.length&&(gf=new Wg(this)),gf=gf.reverse(),gf.__actions__.push({func:Px,args:[v1],thisArg:nd}),new x_(gf,this.__chain__)}return this.thru(v1)}function AA(){return BE(this.__wrapped__,this.__actions__)}var wA=oE(function(Wd,gf,wf){S_.call(Wd,wf)?++Wd[wf]:j0(Wd,wf,1)});function DA(Wd,gf,wf){var Qf=n_(Wd)?Ly:s1;return wf&&Zd(Wd,gf,wf)&&(gf=nd),Qf(Wd,qg(gf,3))}function NA(Wd,gf){var wf=n_(Wd)?v0:dv;return wf(Wd,qg(gf,3))}var IA=RT(N0),RA=RT(Dy);function OA(Wd,gf){return ub(Lx(Wd,gf),1)}function kA(Wd,gf){return ub(Lx(Wd,gf),If)}function MA(Wd,gf,wf){return wf=wf===nd?1:s_(wf),ub(Lx(Wd,gf),wf)}function G1(Wd,gf){var wf=n_(Wd)?$b:f0;return wf(Wd,qg(gf,3))}function q1(Wd,gf){var wf=n_(Wd)?oS:gT;return wf(Wd,qg(gf,3))}var $A=oE(function(Wd,gf,wf){S_.call(Wd,wf)?Wd[wf].push(gf):j0(Wd,wf,[gf])});function PA(Wd,gf,wf,Qf){Wd=Zb(Wd)?Wd:US(Wd),wf=wf&&!Qf?s_(wf):0;var wh=Wd.length;return wf<0&&(wf=L_(wh+wf,0)),Hx(Wd)?wf<=wh&&Wd.indexOf(gf,wf)>-1:!!wh&&Qd(Wd,gf,wf)>-1}var LA=a_(function(Wd,gf,wf){var Qf=-1,wh=typeof gf=="function",Vh=Zb(Wd)?Um(Wd.length):[];return f0(Wd,function(Dm){Vh[++Qf]=wh?Nb(gf,Dm,wf):Zv(Dm,gf,wf)}),Vh}),BA=oE(function(Wd,gf,wf){j0(Wd,wf,gf)});function Lx(Wd,gf){var wf=n_(Wd)?k_:ST;return wf(Wd,qg(gf,3))}function FA(Wd,gf,wf,Qf){return Wd==null?[]:(n_(gf)||(gf=gf==null?[]:[gf]),wf=Qf?nd:wf,n_(wf)||(wf=wf==null?[]:[wf]),gx(Wd,gf,wf))}var jA=oE(function(Wd,gf,wf){Wd[wf?0:1].push(gf)},function(){return[[],[]]});function UA(Wd,gf,wf){var Qf=n_(Wd)?xE:Sm,wh=arguments.length<3;return Qf(Wd,qg(gf,4),wf,wh,f0)}function HA(Wd,gf,wf){var Qf=n_(Wd)?lS:Sm,wh=arguments.length<3;return Qf(Wd,qg(gf,4),wf,wh,gT)}function GA(Wd,gf){var wf=n_(Wd)?v0:dv;return wf(Wd,jx(qg(gf,3)))}function qA(Wd){var gf=n_(Wd)?pT:vx;return gf(Wd)}function VA(Wd,gf,wf){(wf?Zd(Wd,gf,wf):gf===nd)?gf=1:gf=s_(gf);var Qf=n_(Wd)?i1:Ex;return Qf(Wd,gf)}function zA(Wd){var gf=n_(Wd)?fT:u1;return gf(Wd)}function WA(Wd){if(Wd==null)return 0;if(Zb(Wd))return Hx(Wd)?Uv(Wd):Wd.length;var gf=pb(Wd);return gf==gh||gf==Wh?Wd.size:fv(Wd).length}function YA(Wd,gf,wf){var Qf=n_(Wd)?K0:PE;return wf&&Zd(Wd,gf,wf)&&(gf=nd),Qf(Wd,qg(gf,3))}var KA=a_(function(Wd,gf){if(Wd==null)return[];var wf=gf.length;return wf>1&&Zd(Wd,gf[0],gf[1])?gf=[]:wf>2&&Zd(gf[0],gf[1],gf[2])&&(gf=[gf[0]]),gx(Wd,ub(gf,1),[])}),Bx=qv||function(){return T_.Date.now()};function XA(Wd,gf){if(typeof gf!="function")throw new Kb(dd);return Wd=s_(Wd),function(){if(--Wd<1)return gf.apply(this,arguments)}}function V1(Wd,gf,wf){return gf=wf?nd:gf,gf=Wd&&gf==null?Wd.length:gf,g_(Wd,Jd,nd,nd,nd,nd,gf)}function z1(Wd,gf){var wf;if(typeof gf!="function")throw new Kb(dd);return Wd=s_(Wd),function(){return--Wd>0&&(wf=gf.apply(this,arguments)),Wd<=1&&(gf=nd),wf}}var S1=a_(function(Wd,gf,wf){var Qf=Gd;if(wf.length){var wh=Lb(wf,dE(S1));Qf|=zd}return g_(Wd,Qf,gf,wf,wh)}),W1=a_(function(Wd,gf,wf){var Qf=Gd|Ud;if(wf.length){var wh=Lb(wf,dE(W1));Qf|=zd}return g_(gf,Qf,Wd,wf,wh)});function Y1(Wd,gf,wf){gf=wf?nd:gf;var Qf=g_(Wd,jd,nd,nd,nd,nd,nd,gf);return Qf.placeholder=Y1.placeholder,Qf}function K1(Wd,gf,wf){gf=wf?nd:gf;var Qf=g_(Wd,qd,nd,nd,nd,nd,nd,gf);return Qf.placeholder=K1.placeholder,Qf}function X1(Wd,gf,wf){var Qf,wh,Vh,Dm,Im,Fm,eg=0,tg=!1,ng=!1,Ig=!0;if(typeof Wd!="function")throw new Kb(dd);gf=R0(gf)||0,J_(wf)&&(tg=!!wf.leading,ng="maxWait"in wf,Vh=ng?L_(R0(wf.maxWait)||0,gf):Vh,Ig="trailing"in wf?!!wf.trailing:Ig);function Hg(mb){var q0=Qf,Ev=wh;return Qf=wh=nd,eg=mb,Dm=Wd.apply(Ev,q0),Dm}function Xg(mb){return eg=mb,Im=Bg(f_,gf),tg?Hg(mb):Dm}function c_(mb){var q0=mb-Fm,Ev=mb-eg,yC=gf-q0;return ng?tb(yC,Vh-Ev):yC}function Qg(mb){var q0=mb-Fm,Ev=mb-eg;return Fm===nd||q0>=gf||q0<0||ng&&Ev>=Vh}function f_(){var mb=Bx();if(Qg(mb))return __(mb);Im=Bg(f_,c_(mb))}function __(mb){return Im=nd,Ig&&Qf?Hg(mb):(Qf=wh=nd,Dm)}function _0(){Im!==nd&&xx(Im),eg=0,Qf=Fm=wh=Im=nd}function Hb(){return Im===nd?Dm:__(Bx())}function b0(){var mb=Bx(),q0=Qg(mb);if(Qf=arguments,wh=this,Fm=mb,q0){if(Im===nd)return Xg(Fm);if(ng)return xx(Im),Im=Bg(f_,gf),Hg(Fm)}return Im===nd&&(Im=Bg(f_,gf)),Dm}return b0.cancel=_0,b0.flush=Hb,b0}var QA=a_(function(Wd,gf){return nx(Wd,1,gf)}),JA=a_(function(Wd,gf,wf){return nx(Wd,R0(gf)||0,wf)});function ZA(Wd){return g_(Wd,Xd)}function Fx(Wd,gf){if(typeof Wd!="function"||gf!=null&&typeof gf!="function")throw new Kb(dd);var wf=function(){var Qf=arguments,wh=gf?gf.apply(this,Qf):Qf[0],Vh=wf.cache;if(Vh.has(wh))return Vh.get(wh);var Dm=Wd.apply(this,Qf);return wf.cache=Vh.set(wh,Dm)||Vh,Dm};return wf.cache=new(Fx.Cache||d0),wf}Fx.Cache=d0;function jx(Wd){if(typeof Wd!="function")throw new Kb(dd);return function(){var gf=arguments;switch(gf.length){case 0:return!Wd.call(this);case 1:return!Wd.call(this,gf[0]);case 2:return!Wd.call(this,gf[0],gf[1]);case 3:return!Wd.call(this,gf[0],gf[1],gf[2])}return!Wd.apply(this,gf)}}function ew(Wd){return z1(2,Wd)}var tw=UE(function(Wd,gf){gf=gf.length==1&&n_(gf[0])?k_(gf[0],Zg(qg())):k_(ub(gf,1),Zg(qg()));var wf=gf.length;return a_(function(Qf){for(var wh=-1,Vh=tb(Qf.length,wf);++wh=gf}),XE=vT(function(){return arguments}())?vT:function(Wd){return nb(Wd)&&S_.call(Wd,"callee")&&!mS.call(Wd,"callee")},n_=Um.isArray,yw=Py?Zg(Py):eE;function Zb(Wd){return Wd!=null&&Ux(Wd.length)&&!yv(Wd)}function hb(Wd){return nb(Wd)&&Zb(Wd)}function vw(Wd){return Wd===!0||Wd===!1||nb(Wd)&&_b(Wd)==xf}var hE=Wx||M1,Ew=Wb?Zg(Wb):ux;function Sw(Wd){return nb(Wd)&&Wd.nodeType===1&&!LT(Wd)}function Tw(Wd){if(Wd==null)return!0;if(Zb(Wd)&&(n_(Wd)||typeof Wd=="string"||typeof Wd.splice=="function"||hE(Wd)||jS(Wd)||XE(Wd)))return!Wd.length;var gf=pb(Wd);if(gf==gh||gf==Wh)return!Wd.size;if(Th(Wd))return!fv(Wd).length;for(var wf in Wd)if(S_.call(Wd,wf))return!1;return!0}function xw(Wd,gf){return oy(Wd,gf)}function Cw(Wd,gf,wf){wf=typeof wf=="function"?wf:nd;var Qf=wf?wf(Wd,gf):nd;return Qf===nd?oy(Wd,gf,nd,wf):!!Qf}function x1(Wd){if(!nb(Wd))return!1;var gf=_b(Wd);return gf==Ah||gf==sh||typeof Wd.message=="string"&&typeof Wd.name=="string"&&!LT(Wd)}function Aw(Wd){return typeof Wd=="number"&&WT(Wd)}function yv(Wd){if(!J_(Wd))return!1;var gf=_b(Wd);return gf==dh||gf==Rf||gf==Cf||gf==Zf}function J1(Wd){return typeof Wd=="number"&&Wd==s_(Wd)}function Ux(Wd){return typeof Wd=="number"&&Wd>-1&&Wd%1==0&&Wd<=Gf}function J_(Wd){var gf=typeof Wd;return Wd!=null&&(gf=="object"||gf=="function")}function nb(Wd){return Wd!=null&&typeof Wd=="object"}var Z1=Y0?Zg(Y0):ME;function ww(Wd,gf){return Wd===gf||ET(Wd,gf,E_(gf))}function Dw(Wd,gf,wf){return wf=typeof wf=="function"?wf:nd,ET(Wd,gf,E_(gf),wf)}function Nw(Wd){return eC(Wd)&&Wd!=+Wd}function Iw(Wd){if(mh(Wd))throw new e_(ud);return pv(Wd)}function Rw(Wd){return Wd===null}function Ow(Wd){return Wd==null}function eC(Wd){return typeof Wd=="number"||nb(Wd)&&_b(Wd)==Bh}function LT(Wd){if(!nb(Wd)||_b(Wd)!=$f)return!1;var gf=Q0(Wd);if(gf===null)return!0;var wf=S_.call(gf,"constructor")&&gf.constructor;return typeof wf=="function"&&wf instanceof wf&&Hv.call(wf)==Qy}var C1=Ov?Zg(Ov):px;function kw(Wd){return J1(Wd)&&Wd>=-Gf&&Wd<=Gf}var tC=n0?Zg(n0):fx;function Hx(Wd){return typeof Wd=="string"||!n_(Wd)&&nb(Wd)&&_b(Wd)==xh}function g0(Wd){return typeof Wd=="symbol"||nb(Wd)&&_b(Wd)==pm}var jS=sS?Zg(sS):hx;function Mw(Wd){return Wd===nd}function $w(Wd){return nb(Wd)&&pb(Wd)==Om}function Pw(Wd){return nb(Wd)&&_b(Wd)==Nm}var Lw=qE(hv),Bw=qE(function(Wd,gf){return Wd<=gf});function rC(Wd){if(!Wd)return[];if(Zb(Wd))return Hx(Wd)?a0(Wd):Pb(Wd);if(Zy&&Wd[Zy])return qx(Wd[Zy]());var gf=pb(Wd),wf=gf==gh?uS:gf==Wh?Bb:US;return wf(Wd)}function vv(Wd){if(!Wd)return Wd===0?Wd:0;if(Wd=R0(Wd),Wd===If||Wd===-If){var gf=Wd<0?-1:1;return gf*Jf}return Wd===Wd?Wd:0}function s_(Wd){var gf=vv(Wd),wf=gf%1;return gf===gf?wf?gf-wf:gf:0}function nC(Wd){return Wd?U0(s_(Wd),0,uh):0}function R0(Wd){if(typeof Wd=="number")return Wd;if(g0(Wd))return ih;if(J_(Wd)){var gf=typeof Wd.valueOf=="function"?Wd.valueOf():Wd;Wd=J_(gf)?gf+"":gf}if(typeof Wd!="string")return Wd===0?Wd:+Wd;Wd=Rg(Wd);var wf=Tm.test(Wd);return wf||Xh.test(Wd)?$y(Wd.slice(2),wf?2:8):om.test(Wd)?ih:+Wd}function iC(Wd){return m0(Wd,e0(Wd))}function Fw(Wd){return Wd?U0(s_(Wd),-Gf,Gf):Wd===0?Wd:0}function I_(Wd){return Wd==null?"":jb(Wd)}var jw=A0(function(Wd,gf){if(Th(gf)||Zb(gf)){m0(gf,Db(gf),Wd);return}for(var wf in gf)S_.call(gf,wf)&&Wv(Wd,wf,gf[wf])}),sC=A0(function(Wd,gf){m0(gf,e0(gf),Wd)}),Gx=A0(function(Wd,gf,wf,Qf){m0(gf,e0(gf),Wd,Qf)}),Uw=A0(function(Wd,gf,wf,Qf){m0(gf,Db(gf),Wd,Qf)}),Hw=w0(Kv);function Gw(Wd,gf){var wf=zv(Wd);return gf==null?wf:hT(wf,gf)}var qw=a_(function(Wd,gf){Wd=N_(Wd);var wf=-1,Qf=gf.length,wh=Qf>2?gf[2]:nd;for(wh&&Zd(gf[0],gf[1],wh)&&(Qf=1);++wf1),Vh}),m0(Wd,BS(Wd),wf),Qf&&(wf=Fb(wf,Ad|Nd|Od,zE));for(var wh=gf.length;wh--;)DS(wf,gf[wh]);return wf});function cD(Wd,gf){return lC(Wd,jx(qg(gf)))}var uD=w0(function(Wd,gf){return Wd==null?{}:_x(Wd,gf)});function lC(Wd,gf){if(Wd==null)return{};var wf=k_(BS(Wd),function(Qf){return[Qf]});return gf=qg(gf),yx(Wd,wf,function(Qf,wh){return gf(Qf,wh[0])})}function dD(Wd,gf,wf){gf=Sy(gf,Wd);var Qf=-1,wh=gf.length;for(wh||(wh=1,Wd=nd);++Qfgf){var Qf=Wd;Wd=gf,gf=Qf}if(wf||Wd%1||gf%1){var wh=lT();return tb(Wd+wh*(gf-Wd+nS("1e-"+((wh+"").length-1))),gf)}return wS(Wd,gf)}var TD=cE(function(Wd,gf,wf){return gf=gf.toLowerCase(),Wd+(wf?dC(gf):gf)});function dC(Wd){return D1(I_(Wd).toLowerCase())}function pC(Wd){return Wd=I_(Wd),Wd&&Wd.replace(Ym,Lv).replace(JE,"")}function xD(Wd,gf,wf){Wd=I_(Wd),gf=jb(gf);var Qf=Wd.length;wf=wf===nd?Qf:U0(s_(wf),0,Qf);var wh=wf;return wf-=gf.length,wf>=0&&Wd.slice(wf,wh)==gf}function CD(Wd){return Wd=I_(Wd),Wd&&p_.test(Wd)?Wd.replace(Cg,E0):Wd}function AD(Wd){return Wd=I_(Wd),Wd&&h_.test(Wd)?Wd.replace(B_,"\\$&"):Wd}var wD=cE(function(Wd,gf,wf){return Wd+(wf?"-":"")+gf.toLowerCase()}),DD=cE(function(Wd,gf,wf){return Wd+(wf?" ":"")+gf.toLowerCase()}),ND=Dx("toLowerCase");function ID(Wd,gf,wf){Wd=I_(Wd),gf=s_(gf);var Qf=gf?Uv(Wd):0;if(!gf||Qf>=gf)return Wd;var wh=(gf-Qf)/2;return MS(ev(wh),wf)+Wd+MS(wE(wh),wf)}function RD(Wd,gf,wf){Wd=I_(Wd),gf=s_(gf);var Qf=gf?Uv(Wd):0;return gf&&Qf>>0,wf?(Wd=I_(Wd),Wd&&(typeof gf=="string"||gf!=null&&!C1(gf))&&(gf=jb(gf),!gf&&jv(Wd))?H0(a0(Wd),0,wf):Wd.split(gf,wf)):[]}var BD=cE(function(Wd,gf,wf){return Wd+(wf?" ":"")+D1(gf)});function FD(Wd,gf,wf){return Wd=I_(Wd),wf=wf==null?0:U0(s_(wf),0,Wd.length),gf=jb(gf),Wd.slice(wf,wf+gf.length)==gf}function jD(Wd,gf,wf){var Qf=Uh.templateSettings;wf&&Zd(Wd,gf,wf)&&(gf=nd),Wd=I_(Wd),gf=Gx({},gf,Qf,Ox);var wh=Gx({},gf.imports,Qf.imports,Ox),Vh=Db(wh),Dm=F_(wh,Vh),Im,Fm,eg=0,tg=gf.interpolate||Tg,ng="__p += '",Ig=AE((gf.escape||Tg).source+"|"+tg.source+"|"+(tg===$g?Mh:Tg).source+"|"+(gf.evaluate||Tg).source+"|$","g"),Hg="//# sourceURL="+(S_.call(gf,"sourceURL")?(gf.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tS+"]")+` -`;Wd.replace(Ig,function(Qg,f_,__,_0,Hb,b0){return __||(__=_0),ng+=Wd.slice(eg,b0).replace(Zm,Hy),f_&&(Im=!0,ng+=`' + +`)}function Vd(Yd){return s_(Yd)||XE(Yd)||!!(zT&&Yd&&Yd[zT])}function df(Yd,gf){var Df=typeof Yd;return gf=gf??Gf,!!gf&&(Df=="number"||Df!="symbol"&&Gm.test(Yd))&&Yd>-1&&Yd%1==0&&Yd0){if(++gf>=Sf)return arguments[0]}else gf=0;return Yd.apply(nd,arguments)}}function z_(Yd,gf){var Df=-1,eh=Yd.length,Oh=eh-1;for(gf=gf===nd?eh:gf;++Df1?Yd[gf-1]:nd;return Df=typeof Df=="function"?(Yd.pop(),Df):nd,U1(Yd,Df)});function H1(Yd){var gf=Vh(Yd);return gf.__chain__=!0,gf}function _A(Yd,gf){return gf(Yd),Yd}function Px(Yd,gf){return gf(Yd)}var yA=w0(function(Yd){var gf=Yd.length,Df=gf?Yd[0]:0,eh=this.__wrapped__,Oh=function(Xh){return Kv(Xh,Yd)};return gf>1||this.__actions__.length||!(eh instanceof Yg)||!df(Df)?this.thru(Oh):(eh=eh.slice(Df,+Df+(gf?1:0)),eh.__actions__.push({func:Px,args:[Oh],thisArg:nd}),new C_(eh,this.__chain__).thru(function(Xh){return gf&&!Xh.length&&Xh.push(nd),Xh}))});function vA(){return H1(this)}function EA(){return new C_(this.value(),this.__chain__)}function SA(){this.__values__===nd&&(this.__values__=rC(this.value()));var Yd=this.__index__>=this.__values__.length,gf=Yd?nd:this.__values__[this.__index__++];return{done:Yd,value:gf}}function TA(){return this}function xA(Yd){for(var gf,Df=this;Df instanceof Eb;){var eh=Ab(Df);eh.__index__=0,eh.__values__=nd,gf?Oh.__wrapped__=eh:gf=eh;var Oh=eh;Df=Df.__wrapped__}return Oh.__wrapped__=Yd,gf}function CA(){var Yd=this.__wrapped__;if(Yd instanceof Yg){var gf=Yd;return this.__actions__.length&&(gf=new Yg(this)),gf=gf.reverse(),gf.__actions__.push({func:Px,args:[v1],thisArg:nd}),new C_(gf,this.__chain__)}return this.thru(v1)}function AA(){return BE(this.__wrapped__,this.__actions__)}var wA=oE(function(Yd,gf,Df){T_.call(Yd,Df)?++Yd[Df]:j0(Yd,Df,1)});function NA(Yd,gf,Df){var eh=s_(Yd)?Ly:s1;return Df&&Zd(Yd,gf,Df)&&(gf=nd),eh(Yd,Wg(gf,3))}function DA(Yd,gf){var Df=s_(Yd)?v0:dv;return Df(Yd,Wg(gf,3))}var IA=RT(D0),RA=RT(Ny);function OA(Yd,gf){return ub(Lx(Yd,gf),1)}function kA(Yd,gf){return ub(Lx(Yd,gf),If)}function MA(Yd,gf,Df){return Df=Df===nd?1:l_(Df),ub(Lx(Yd,gf),Df)}function G1(Yd,gf){var Df=s_(Yd)?$b:f0;return Df(Yd,Wg(gf,3))}function q1(Yd,gf){var Df=s_(Yd)?oS:gT;return Df(Yd,Wg(gf,3))}var $A=oE(function(Yd,gf,Df){T_.call(Yd,Df)?Yd[Df].push(gf):j0(Yd,Df,[gf])});function PA(Yd,gf,Df,eh){Yd=Zb(Yd)?Yd:US(Yd),Df=Df&&!eh?l_(Df):0;var Oh=Yd.length;return Df<0&&(Df=L_(Oh+Df,0)),Hx(Yd)?Df<=Oh&&Yd.indexOf(gf,Df)>-1:!!Oh&&Qd(Yd,gf,Df)>-1}var LA=o_(function(Yd,gf,Df){var eh=-1,Oh=typeof gf=="function",Xh=Zb(Yd)?Hm(Yd.length):[];return f0(Yd,function(Nm){Xh[++eh]=Oh?Db(gf,Nm,Df):Zv(Nm,gf,Df)}),Xh}),BA=oE(function(Yd,gf,Df){j0(Yd,Df,gf)});function Lx(Yd,gf){var Df=s_(Yd)?k_:ST;return Df(Yd,Wg(gf,3))}function FA(Yd,gf,Df,eh){return Yd==null?[]:(s_(gf)||(gf=gf==null?[]:[gf]),Df=eh?nd:Df,s_(Df)||(Df=Df==null?[]:[Df]),gx(Yd,gf,Df))}var jA=oE(function(Yd,gf,Df){Yd[Df?0:1].push(gf)},function(){return[[],[]]});function UA(Yd,gf,Df){var eh=s_(Yd)?xE:Sm,Oh=arguments.length<3;return eh(Yd,Wg(gf,4),Df,Oh,f0)}function HA(Yd,gf,Df){var eh=s_(Yd)?lS:Sm,Oh=arguments.length<3;return eh(Yd,Wg(gf,4),Df,Oh,gT)}function GA(Yd,gf){var Df=s_(Yd)?v0:dv;return Df(Yd,jx(Wg(gf,3)))}function qA(Yd){var gf=s_(Yd)?pT:vx;return gf(Yd)}function VA(Yd,gf,Df){(Df?Zd(Yd,gf,Df):gf===nd)?gf=1:gf=l_(gf);var eh=s_(Yd)?i1:Ex;return eh(Yd,gf)}function zA(Yd){var gf=s_(Yd)?fT:c1;return gf(Yd)}function WA(Yd){if(Yd==null)return 0;if(Zb(Yd))return Hx(Yd)?Uv(Yd):Yd.length;var gf=pb(Yd);return gf==Sh||gf==Mh?Yd.size:fv(Yd).length}function YA(Yd,gf,Df){var eh=s_(Yd)?K0:PE;return Df&&Zd(Yd,gf,Df)&&(gf=nd),eh(Yd,Wg(gf,3))}var KA=o_(function(Yd,gf){if(Yd==null)return[];var Df=gf.length;return Df>1&&Zd(Yd,gf[0],gf[1])?gf=[]:Df>2&&Zd(gf[0],gf[1],gf[2])&&(gf=[gf[0]]),gx(Yd,ub(gf,1),[])}),Bx=qv||function(){return x_.Date.now()};function XA(Yd,gf){if(typeof gf!="function")throw new Kb(dd);return Yd=l_(Yd),function(){if(--Yd<1)return gf.apply(this,arguments)}}function V1(Yd,gf,Df){return gf=Df?nd:gf,gf=Yd&&gf==null?Yd.length:gf,__(Yd,Jd,nd,nd,nd,nd,gf)}function z1(Yd,gf){var Df;if(typeof gf!="function")throw new Kb(dd);return Yd=l_(Yd),function(){return--Yd>0&&(Df=gf.apply(this,arguments)),Yd<=1&&(gf=nd),Df}}var S1=o_(function(Yd,gf,Df){var eh=Gd;if(Df.length){var Oh=Lb(Df,dE(S1));eh|=zd}return __(Yd,eh,gf,Df,Oh)}),W1=o_(function(Yd,gf,Df){var eh=Gd|jd;if(Df.length){var Oh=Lb(Df,dE(W1));eh|=zd}return __(gf,eh,Yd,Df,Oh)});function Y1(Yd,gf,Df){gf=Df?nd:gf;var eh=__(Yd,Ud,nd,nd,nd,nd,nd,gf);return eh.placeholder=Y1.placeholder,eh}function K1(Yd,gf,Df){gf=Df?nd:gf;var eh=__(Yd,qd,nd,nd,nd,nd,nd,gf);return eh.placeholder=K1.placeholder,eh}function X1(Yd,gf,Df){var eh,Oh,Xh,Nm,Rm,Fm,tg=0,rg=!1,sg=!1,Rg=!0;if(typeof Yd!="function")throw new Kb(dd);gf=R0(gf)||0,J_(Df)&&(rg=!!Df.leading,sg="maxWait"in Df,Xh=sg?L_(R0(Df.maxWait)||0,gf):Xh,Rg="trailing"in Df?!!Df.trailing:Rg);function Hg(mb){var q0=eh,Ev=Oh;return eh=Oh=nd,tg=mb,Nm=Yd.apply(Ev,q0),Nm}function Qg(mb){return tg=mb,Rm=jg(f_,gf),rg?Hg(mb):Nm}function c_(mb){var q0=mb-Fm,Ev=mb-tg,yC=gf-q0;return sg?tb(yC,Xh-Ev):yC}function Jg(mb){var q0=mb-Fm,Ev=mb-tg;return Fm===nd||q0>=gf||q0<0||sg&&Ev>=Xh}function f_(){var mb=Bx();if(Jg(mb))return b_(mb);Rm=jg(f_,c_(mb))}function b_(mb){return Rm=nd,Rg&&eh?Hg(mb):(eh=Oh=nd,Nm)}function _0(){Rm!==nd&&xx(Rm),tg=0,eh=Fm=Oh=Rm=nd}function Hb(){return Rm===nd?Nm:b_(Bx())}function b0(){var mb=Bx(),q0=Jg(mb);if(eh=arguments,Oh=this,Fm=mb,q0){if(Rm===nd)return Qg(Fm);if(sg)return xx(Rm),Rm=jg(f_,gf),Hg(Fm)}return Rm===nd&&(Rm=jg(f_,gf)),Nm}return b0.cancel=_0,b0.flush=Hb,b0}var QA=o_(function(Yd,gf){return nx(Yd,1,gf)}),JA=o_(function(Yd,gf,Df){return nx(Yd,R0(gf)||0,Df)});function ZA(Yd){return __(Yd,Xd)}function Fx(Yd,gf){if(typeof Yd!="function"||gf!=null&&typeof gf!="function")throw new Kb(dd);var Df=function(){var eh=arguments,Oh=gf?gf.apply(this,eh):eh[0],Xh=Df.cache;if(Xh.has(Oh))return Xh.get(Oh);var Nm=Yd.apply(this,eh);return Df.cache=Xh.set(Oh,Nm)||Xh,Nm};return Df.cache=new(Fx.Cache||d0),Df}Fx.Cache=d0;function jx(Yd){if(typeof Yd!="function")throw new Kb(dd);return function(){var gf=arguments;switch(gf.length){case 0:return!Yd.call(this);case 1:return!Yd.call(this,gf[0]);case 2:return!Yd.call(this,gf[0],gf[1]);case 3:return!Yd.call(this,gf[0],gf[1],gf[2])}return!Yd.apply(this,gf)}}function ew(Yd){return z1(2,Yd)}var tw=UE(function(Yd,gf){gf=gf.length==1&&s_(gf[0])?k_(gf[0],e_(Wg())):k_(ub(gf,1),e_(Wg()));var Df=gf.length;return o_(function(eh){for(var Oh=-1,Xh=tb(eh.length,Df);++Oh=gf}),XE=vT(function(){return arguments}())?vT:function(Yd){return nb(Yd)&&T_.call(Yd,"callee")&&!mS.call(Yd,"callee")},s_=Hm.isArray,yw=Py?e_(Py):eE;function Zb(Yd){return Yd!=null&&Ux(Yd.length)&&!yv(Yd)}function hb(Yd){return nb(Yd)&&Zb(Yd)}function vw(Yd){return Yd===!0||Yd===!1||nb(Yd)&&_b(Yd)==xf}var hE=Wx||M1,Ew=Wb?e_(Wb):ux;function Sw(Yd){return nb(Yd)&&Yd.nodeType===1&&!LT(Yd)}function Tw(Yd){if(Yd==null)return!0;if(Zb(Yd)&&(s_(Yd)||typeof Yd=="string"||typeof Yd.splice=="function"||hE(Yd)||jS(Yd)||XE(Yd)))return!Yd.length;var gf=pb(Yd);if(gf==Sh||gf==Mh)return!Yd.size;if(Ah(Yd))return!fv(Yd).length;for(var Df in Yd)if(T_.call(Yd,Df))return!1;return!0}function xw(Yd,gf){return oy(Yd,gf)}function Cw(Yd,gf,Df){Df=typeof Df=="function"?Df:nd;var eh=Df?Df(Yd,gf):nd;return eh===nd?oy(Yd,gf,nd,Df):!!eh}function x1(Yd){if(!nb(Yd))return!1;var gf=_b(Yd);return gf==Rh||gf==dh||typeof Yd.message=="string"&&typeof Yd.name=="string"&&!LT(Yd)}function Aw(Yd){return typeof Yd=="number"&&WT(Yd)}function yv(Yd){if(!J_(Yd))return!1;var gf=_b(Yd);return gf==th||gf==Bf||gf==Cf||gf==Zf}function J1(Yd){return typeof Yd=="number"&&Yd==l_(Yd)}function Ux(Yd){return typeof Yd=="number"&&Yd>-1&&Yd%1==0&&Yd<=Gf}function J_(Yd){var gf=typeof Yd;return Yd!=null&&(gf=="object"||gf=="function")}function nb(Yd){return Yd!=null&&typeof Yd=="object"}var Z1=Y0?e_(Y0):ME;function ww(Yd,gf){return Yd===gf||ET(Yd,gf,S_(gf))}function Nw(Yd,gf,Df){return Df=typeof Df=="function"?Df:nd,ET(Yd,gf,S_(gf),Df)}function Dw(Yd){return eC(Yd)&&Yd!=+Yd}function Iw(Yd){if(yh(Yd))throw new t_(ud);return pv(Yd)}function Rw(Yd){return Yd===null}function Ow(Yd){return Yd==null}function eC(Yd){return typeof Yd=="number"||nb(Yd)&&_b(Yd)==Fh}function LT(Yd){if(!nb(Yd)||_b(Yd)!=Pf)return!1;var gf=Q0(Yd);if(gf===null)return!0;var Df=T_.call(gf,"constructor")&&gf.constructor;return typeof Df=="function"&&Df instanceof Df&&Hv.call(Df)==Qy}var C1=Ov?e_(Ov):px;function kw(Yd){return J1(Yd)&&Yd>=-Gf&&Yd<=Gf}var tC=n0?e_(n0):fx;function Hx(Yd){return typeof Yd=="string"||!s_(Yd)&&nb(Yd)&&_b(Yd)==_h}function g0(Yd){return typeof Yd=="symbol"||nb(Yd)&&_b(Yd)==pm}var jS=sS?e_(sS):hx;function Mw(Yd){return Yd===nd}function $w(Yd){return nb(Yd)&&pb(Yd)==Mm}function Pw(Yd){return nb(Yd)&&_b(Yd)==Im}var Lw=qE(hv),Bw=qE(function(Yd,gf){return Yd<=gf});function rC(Yd){if(!Yd)return[];if(Zb(Yd))return Hx(Yd)?a0(Yd):Pb(Yd);if(Zy&&Yd[Zy])return qx(Yd[Zy]());var gf=pb(Yd),Df=gf==Sh?cS:gf==Mh?Bb:US;return Df(Yd)}function vv(Yd){if(!Yd)return Yd===0?Yd:0;if(Yd=R0(Yd),Yd===If||Yd===-If){var gf=Yd<0?-1:1;return gf*Qf}return Yd===Yd?Yd:0}function l_(Yd){var gf=vv(Yd),Df=gf%1;return gf===gf?Df?gf-Df:gf:0}function nC(Yd){return Yd?U0(l_(Yd),0,ph):0}function R0(Yd){if(typeof Yd=="number")return Yd;if(g0(Yd))return Xf;if(J_(Yd)){var gf=typeof Yd.valueOf=="function"?Yd.valueOf():Yd;Yd=J_(gf)?gf+"":gf}if(typeof Yd!="string")return Yd===0?Yd:+Yd;Yd=Og(Yd);var Df=Tm.test(Yd);return Df||Zh.test(Yd)?$y(Yd.slice(2),Df?2:8):dm.test(Yd)?Xf:+Yd}function iC(Yd){return m0(Yd,e0(Yd))}function Fw(Yd){return Yd?U0(l_(Yd),-Gf,Gf):Yd===0?Yd:0}function I_(Yd){return Yd==null?"":jb(Yd)}var jw=A0(function(Yd,gf){if(Ah(gf)||Zb(gf)){m0(gf,Nb(gf),Yd);return}for(var Df in gf)T_.call(gf,Df)&&Wv(Yd,Df,gf[Df])}),sC=A0(function(Yd,gf){m0(gf,e0(gf),Yd)}),Gx=A0(function(Yd,gf,Df,eh){m0(gf,e0(gf),Yd,eh)}),Uw=A0(function(Yd,gf,Df,eh){m0(gf,Nb(gf),Yd,eh)}),Hw=w0(Kv);function Gw(Yd,gf){var Df=zv(Yd);return gf==null?Df:hT(Df,gf)}var qw=o_(function(Yd,gf){Yd=D_(Yd);var Df=-1,eh=gf.length,Oh=eh>2?gf[2]:nd;for(Oh&&Zd(gf[0],gf[1],Oh)&&(eh=1);++Df1),Xh}),m0(Yd,BS(Yd),Df),eh&&(Df=Fb(Df,Ad|Nd|Od,zE));for(var Oh=gf.length;Oh--;)DS(Df,gf[Oh]);return Df});function uN(Yd,gf){return lC(Yd,jx(Wg(gf)))}var cN=w0(function(Yd,gf){return Yd==null?{}:_x(Yd,gf)});function lC(Yd,gf){if(Yd==null)return{};var Df=k_(BS(Yd),function(eh){return[eh]});return gf=Wg(gf),yx(Yd,Df,function(eh,Oh){return gf(eh,Oh[0])})}function dN(Yd,gf,Df){gf=Sy(gf,Yd);var eh=-1,Oh=gf.length;for(Oh||(Oh=1,Yd=nd);++ehgf){var eh=Yd;Yd=gf,gf=eh}if(Df||Yd%1||gf%1){var Oh=lT();return tb(Yd+Oh*(gf-Yd+nS("1e-"+((Oh+"").length-1))),gf)}return wS(Yd,gf)}var TN=uE(function(Yd,gf,Df){return gf=gf.toLowerCase(),Yd+(Df?dC(gf):gf)});function dC(Yd){return N1(I_(Yd).toLowerCase())}function pC(Yd){return Yd=I_(Yd),Yd&&Yd.replace(Km,Lv).replace(JE,"")}function xN(Yd,gf,Df){Yd=I_(Yd),gf=jb(gf);var eh=Yd.length;Df=Df===nd?eh:U0(l_(Df),0,eh);var Oh=Df;return Df-=gf.length,Df>=0&&Yd.slice(Df,Oh)==gf}function CN(Yd){return Yd=I_(Yd),Yd&&Kg.test(Yd)?Yd.replace(ug,E0):Yd}function AN(Yd){return Yd=I_(Yd),Yd&&h_.test(Yd)?Yd.replace(B_,"\\$&"):Yd}var wN=uE(function(Yd,gf,Df){return Yd+(Df?"-":"")+gf.toLowerCase()}),NN=uE(function(Yd,gf,Df){return Yd+(Df?" ":"")+gf.toLowerCase()}),DN=Nx("toLowerCase");function IN(Yd,gf,Df){Yd=I_(Yd),gf=l_(gf);var eh=gf?Uv(Yd):0;if(!gf||eh>=gf)return Yd;var Oh=(gf-eh)/2;return MS(ev(Oh),Df)+Yd+MS(wE(Oh),Df)}function RN(Yd,gf,Df){Yd=I_(Yd),gf=l_(gf);var eh=gf?Uv(Yd):0;return gf&&eh>>0,Df?(Yd=I_(Yd),Yd&&(typeof gf=="string"||gf!=null&&!C1(gf))&&(gf=jb(gf),!gf&&jv(Yd))?H0(a0(Yd),0,Df):Yd.split(gf,Df)):[]}var BN=uE(function(Yd,gf,Df){return Yd+(Df?" ":"")+N1(gf)});function FN(Yd,gf,Df){return Yd=I_(Yd),Df=Df==null?0:U0(l_(Df),0,Yd.length),gf=jb(gf),Yd.slice(Df,Df+gf.length)==gf}function jN(Yd,gf,Df){var eh=Vh.templateSettings;Df&&Zd(Yd,gf,Df)&&(gf=nd),Yd=I_(Yd),gf=Gx({},gf,eh,Ox);var Oh=Gx({},gf.imports,eh.imports,Ox),Xh=Nb(Oh),Nm=F_(Oh,Xh),Rm,Fm,tg=0,rg=gf.interpolate||xg,sg="__p += '",Rg=AE((gf.escape||xg).source+"|"+rg.source+"|"+(rg===Pg?Bh:xg).source+"|"+(gf.evaluate||xg).source+"|$","g"),Hg="//# sourceURL="+(T_.call(gf,"sourceURL")?(gf.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tS+"]")+` +`;Yd.replace(Rg,function(Jg,f_,b_,_0,Hb,b0){return b_||(b_=_0),sg+=Yd.slice(tg,b0).replace(eg,Hy),f_&&(Rm=!0,sg+=`' + __e(`+f_+`) + -'`),Hb&&(Fm=!0,ng+=`'; +'`),Hb&&(Fm=!0,sg+=`'; `+Hb+`; -__p += '`),__&&(ng+=`' + -((__t = (`+__+`)) == null ? '' : __t) + -'`),eg=b0+Qg.length,Qg}),ng+=`'; -`;var Xg=S_.call(gf,"variable")&&gf.variable;if(!Xg)ng=`with (obj) { -`+ng+` +__p += '`),b_&&(sg+=`' + +((__t = (`+b_+`)) == null ? '' : __t) + +'`),tg=b0+Jg.length,Jg}),sg+=`'; +`;var Qg=T_.call(gf,"variable")&&gf.variable;if(!Qg)sg=`with (obj) { +`+sg+` } -`;else if(Fh.test(Xg))throw new e_(pd);ng=(Fm?ng.replace(Jm,""):ng).replace(Gm,"$1").replace(Eg,"$1;"),ng="function("+(Xg||"obj")+`) { -`+(Xg?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Im?", __e = _.escape":"")+(Fm?`, __j = Array.prototype.join; +`;else if(Uh.test(Qg))throw new t_(pd);sg=(Fm?sg.replace(zm,""):sg).replace(jm,"$1").replace(ig,"$1;"),sg="function("+(Qg||"obj")+`) { +`+(Qg?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Rm?", __e = _.escape":"")+(Fm?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+ng+`return __p -}`;var c_=mC(function(){return m_(Vh,Hg+"return "+ng).apply(nd,Dm)});if(c_.source=ng,x1(c_))throw c_;return c_}function UD(Wd){return I_(Wd).toLowerCase()}function HD(Wd){return I_(Wd).toUpperCase()}function GD(Wd,gf,wf){if(Wd=I_(Wd),Wd&&(wf||gf===nd))return Rg(Wd);if(!Wd||!(gf=jb(gf)))return Wd;var Qf=a0(Wd),wh=a0(gf),Vh=y_(Qf,wh),Dm=ob(Qf,wh)+1;return H0(Qf,Vh,Dm).join("")}function qD(Wd,gf,wf){if(Wd=I_(Wd),Wd&&(wf||gf===nd))return Wd.slice(0,ZS(Wd)+1);if(!Wd||!(gf=jb(gf)))return Wd;var Qf=a0(Wd),wh=ob(Qf,a0(gf))+1;return H0(Qf,0,wh).join("")}function VD(Wd,gf,wf){if(Wd=I_(Wd),Wd&&(wf||gf===nd))return Wd.replace(b_,"");if(!Wd||!(gf=jb(gf)))return Wd;var Qf=a0(Wd),wh=y_(Qf,a0(gf));return H0(Qf,wh).join("")}function zD(Wd,gf){var wf=pf,Qf=mf;if(J_(gf)){var wh="separator"in gf?gf.separator:wh;wf="length"in gf?s_(gf.length):wf,Qf="omission"in gf?jb(gf.omission):Qf}Wd=I_(Wd);var Vh=Wd.length;if(jv(Wd)){var Dm=a0(Wd);Vh=Dm.length}if(wf>=Vh)return Wd;var Im=wf-Uv(Qf);if(Im<1)return Qf;var Fm=Dm?H0(Dm,0,Im).join(""):Wd.slice(0,Im);if(wh===nd)return Fm+Qf;if(Dm&&(Im+=Fm.length-Im),C1(wh)){if(Wd.slice(Im).search(wh)){var eg,tg=Fm;for(wh.global||(wh=AE(wh.source,I_(dm.exec(wh))+"g")),wh.lastIndex=0;eg=wh.exec(tg);)var ng=eg.index;Fm=Fm.slice(0,ng===nd?Im:ng)}}else if(Wd.indexOf(jb(wh),Im)!=Im){var Ig=Fm.lastIndexOf(wh);Ig>-1&&(Fm=Fm.slice(0,Ig))}return Fm+Qf}function WD(Wd){return Wd=I_(Wd),Wd&&jg.test(Wd)?Wd.replace(og,HT):Wd}var YD=cE(function(Wd,gf,wf){return Wd+(wf?" ":"")+gf.toUpperCase()}),D1=Dx("toUpperCase");function hC(Wd,gf,wf){return Wd=I_(Wd),gf=wf?nd:gf,gf===nd?FT(Wd)?qT(Wd):QS(Wd):Wd.match(gf)||[]}var mC=a_(function(Wd,gf){try{return Nb(Wd,nd,gf)}catch(wf){return x1(wf)?wf:new e_(wf)}}),KD=w0(function(Wd,gf){return $b(gf,function(wf){wf=U_(wf),j0(Wd,wf,S1(Wd[wf],Wd))}),Wd});function XD(Wd){var gf=Wd==null?0:Wd.length,wf=qg();return Wd=gf?k_(Wd,function(Qf){if(typeof Qf[1]!="function")throw new Kb(dd);return[wf(Qf[0]),Qf[1]]}):[],a_(function(Qf){for(var wh=-1;++whGf)return[];var wf=uh,Qf=tb(Wd,uh);gf=qg(gf),Wd-=uh;for(var wh=dg(Qf,gf);++wf0||gf<0)?new Wg(wf):(Wd<0?wf=wf.takeRight(-Wd):Wd&&(wf=wf.drop(Wd)),gf!==nd&&(gf=s_(gf),wf=gf<0?wf.dropRight(-gf):wf.take(gf-Wd)),wf)},Wg.prototype.takeRightWhile=function(Wd){return this.reverse().takeWhile(Wd).reverse()},Wg.prototype.toArray=function(){return this.take(uh)},Qb(Wg.prototype,function(Wd,gf){var wf=/^(?:filter|find|map|reject)|While$/.test(gf),Qf=/^(?:head|last)$/.test(gf),wh=Uh[Qf?"take"+(gf=="last"?"Right":""):gf],Vh=Qf||/^find/.test(gf);wh&&(Uh.prototype[gf]=function(){var Dm=this.__wrapped__,Im=Qf?[1]:arguments,Fm=Dm instanceof Wg,eg=Im[0],tg=Fm||n_(Dm),ng=function(f_){var __=wh.apply(Uh,i0([f_],Im));return Qf&&Ig?__[0]:__};tg&&wf&&typeof eg=="function"&&eg.length!=1&&(Fm=tg=!1);var Ig=this.__chain__,Hg=!!this.__actions__.length,Xg=Vh&&!Ig,c_=Fm&&!Hg;if(!Vh&&tg){Dm=c_?Dm:new Wg(this);var Qg=Wd.apply(Dm,Im);return Qg.__actions__.push({func:Px,args:[ng],thisArg:nd}),new x_(Qg,Ig)}return Xg&&c_?Wd.apply(this,Im):(Qg=this.thru(ng),Xg?Qf?Qg.value()[0]:Qg.value():Qg)})}),$b(["pop","push","shift","sort","splice","unshift"],function(Wd){var gf=pS[Wd],wf=/^(?:push|sort|unshift)$/.test(Wd)?"tap":"thru",Qf=/^(?:pop|shift)$/.test(Wd);Uh.prototype[Wd]=function(){var wh=arguments;if(Qf&&!this.__chain__){var Vh=this.value();return gf.apply(n_(Vh)?Vh:[],wh)}return this[wf](function(Dm){return gf.apply(n_(Dm)?Dm:[],wh)})}}),Qb(Wg.prototype,function(Wd,gf){var wf=Uh[gf];if(wf){var Qf=wf.name+"";S_.call(nv,Qf)||(nv[Qf]=[]),nv[Qf].push({name:gf,func:wf})}}),nv[OS(nd,Ud).name]=[{name:"wrapper",func:nd}],Wg.prototype.clone=lb,Wg.prototype.reverse=RE,Wg.prototype.value=Qx,Uh.prototype.at=yA,Uh.prototype.chain=vA,Uh.prototype.commit=EA,Uh.prototype.next=SA,Uh.prototype.plant=xA,Uh.prototype.reverse=CA,Uh.prototype.toJSON=Uh.prototype.valueOf=Uh.prototype.value=AA,Uh.prototype.first=Uh.prototype.head,Zy&&(Uh.prototype[Zy]=TA),Uh},P0=eT();$0?(($0.exports=P0)._=P0,SE._=P0):T_._=P0}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _=getDefaultExportFromCjs(lodashExports);var queryString={},strictUriEncode=Ra=>encodeURIComponent(Ra).replace(/[!'()*]/g,qa=>`%${qa.charCodeAt(0).toString(16).toUpperCase()}`),token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(Ra,qa){try{return[decodeURIComponent(Ra.join(""))]}catch{}if(Ra.length===1)return Ra;qa=qa||1;var nd=Ra.slice(0,qa),od=Ra.slice(qa);return Array.prototype.concat.call([],decodeComponents(nd),decodeComponents(od))}function decode(Ra){try{return decodeURIComponent(Ra)}catch{for(var qa=Ra.match(singleMatcher)||[],nd=1;nd{if(!(typeof Ra=="string"&&typeof qa=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(qa==="")return[Ra];const nd=Ra.indexOf(qa);return nd===-1?[Ra]:[Ra.slice(0,nd),Ra.slice(nd+qa.length)]},filterObj=function(Ra,qa){for(var nd={},od=Object.keys(Ra),ld=Array.isArray(qa),ud=0;udFd==null,dd=Symbol("encodeFragmentIdentifier");function pd(Fd){switch(Fd.arrayFormat){case"index":return jd=>(qd,zd)=>{const Yd=qd.length;return zd===void 0||Fd.skipNull&&zd===null||Fd.skipEmptyString&&zd===""?qd:zd===null?[...qd,[vd(jd,Fd),"[",Yd,"]"].join("")]:[...qd,[vd(jd,Fd),"[",vd(Yd,Fd),"]=",vd(zd,Fd)].join("")]};case"bracket":return jd=>(qd,zd)=>zd===void 0||Fd.skipNull&&zd===null||Fd.skipEmptyString&&zd===""?qd:zd===null?[...qd,[vd(jd,Fd),"[]"].join("")]:[...qd,[vd(jd,Fd),"[]=",vd(zd,Fd)].join("")];case"colon-list-separator":return jd=>(qd,zd)=>zd===void 0||Fd.skipNull&&zd===null||Fd.skipEmptyString&&zd===""?qd:zd===null?[...qd,[vd(jd,Fd),":list="].join("")]:[...qd,[vd(jd,Fd),":list=",vd(zd,Fd)].join("")];case"comma":case"separator":case"bracket-separator":{const jd=Fd.arrayFormat==="bracket-separator"?"[]=":"=";return qd=>(zd,Yd)=>Yd===void 0||Fd.skipNull&&Yd===null||Fd.skipEmptyString&&Yd===""?zd:(Yd=Yd===null?"":Yd,zd.length===0?[[vd(qd,Fd),jd,vd(Yd,Fd)].join("")]:[[zd,vd(Yd,Fd)].join(Fd.arrayFormatSeparator)])}default:return jd=>(qd,zd)=>zd===void 0||Fd.skipNull&&zd===null||Fd.skipEmptyString&&zd===""?qd:zd===null?[...qd,vd(jd,Fd)]:[...qd,[vd(jd,Fd),"=",vd(zd,Fd)].join("")]}}function fd(Fd){let jd;switch(Fd.arrayFormat){case"index":return(qd,zd,Yd)=>{if(jd=/\[(\d*)\]$/.exec(qd),qd=qd.replace(/\[\d*\]$/,""),!jd){Yd[qd]=zd;return}Yd[qd]===void 0&&(Yd[qd]={}),Yd[qd][jd[1]]=zd};case"bracket":return(qd,zd,Yd)=>{if(jd=/(\[\])$/.exec(qd),qd=qd.replace(/\[\]$/,""),!jd){Yd[qd]=zd;return}if(Yd[qd]===void 0){Yd[qd]=[zd];return}Yd[qd]=[].concat(Yd[qd],zd)};case"colon-list-separator":return(qd,zd,Yd)=>{if(jd=/(:list)$/.exec(qd),qd=qd.replace(/:list$/,""),!jd){Yd[qd]=zd;return}if(Yd[qd]===void 0){Yd[qd]=[zd];return}Yd[qd]=[].concat(Yd[qd],zd)};case"comma":case"separator":return(qd,zd,Yd)=>{const Jd=typeof zd=="string"&&zd.includes(Fd.arrayFormatSeparator),yf=typeof zd=="string"&&!Jd&&Ad(zd,Fd).includes(Fd.arrayFormatSeparator);zd=yf?Ad(zd,Fd):zd;const Xd=Jd||yf?zd.split(Fd.arrayFormatSeparator).map(pf=>Ad(pf,Fd)):zd===null?zd:Ad(zd,Fd);Yd[qd]=Xd};case"bracket-separator":return(qd,zd,Yd)=>{const Jd=/(\[\])$/.test(qd);if(qd=qd.replace(/\[\]$/,""),!Jd){Yd[qd]=zd&&Ad(zd,Fd);return}const yf=zd===null?[]:zd.split(Fd.arrayFormatSeparator).map(Xd=>Ad(Xd,Fd));if(Yd[qd]===void 0){Yd[qd]=yf;return}Yd[qd]=[].concat(Yd[qd],yf)};default:return(qd,zd,Yd)=>{if(Yd[qd]===void 0){Yd[qd]=zd;return}Yd[qd]=[].concat(Yd[qd],zd)}}}function md(Fd){if(typeof Fd!="string"||Fd.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function vd(Fd,jd){return jd.encode?jd.strict?qa(Fd):encodeURIComponent(Fd):Fd}function Ad(Fd,jd){return jd.decode?nd(Fd):Fd}function Nd(Fd){return Array.isArray(Fd)?Fd.sort():typeof Fd=="object"?Nd(Object.keys(Fd)).sort((jd,qd)=>Number(jd)-Number(qd)).map(jd=>Fd[jd]):Fd}function Od(Fd){const jd=Fd.indexOf("#");return jd!==-1&&(Fd=Fd.slice(0,jd)),Fd}function kd(Fd){let jd="";const qd=Fd.indexOf("#");return qd!==-1&&(jd=Fd.slice(qd)),jd}function Ld(Fd){Fd=Od(Fd);const jd=Fd.indexOf("?");return jd===-1?"":Fd.slice(jd+1)}function Gd(Fd,jd){return jd.parseNumbers&&!Number.isNaN(Number(Fd))&&typeof Fd=="string"&&Fd.trim()!==""?Fd=Number(Fd):jd.parseBooleans&&Fd!==null&&(Fd.toLowerCase()==="true"||Fd.toLowerCase()==="false")&&(Fd=Fd.toLowerCase()==="true"),Fd}function Ud(Fd,jd){jd=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},jd),md(jd.arrayFormatSeparator);const qd=fd(jd),zd=Object.create(null);if(typeof Fd!="string"||(Fd=Fd.trim().replace(/^[?#&]/,""),!Fd))return zd;for(const Yd of Fd.split("&")){if(Yd==="")continue;let[Jd,yf]=od(jd.decode?Yd.replace(/\+/g," "):Yd,"=");yf=yf===void 0?null:["comma","separator","bracket-separator"].includes(jd.arrayFormat)?yf:Ad(yf,jd),qd(Ad(Jd,jd),yf,zd)}for(const Yd of Object.keys(zd)){const Jd=zd[Yd];if(typeof Jd=="object"&&Jd!==null)for(const yf of Object.keys(Jd))Jd[yf]=Gd(Jd[yf],jd);else zd[Yd]=Gd(Jd,jd)}return jd.sort===!1?zd:(jd.sort===!0?Object.keys(zd).sort():Object.keys(zd).sort(jd.sort)).reduce((Yd,Jd)=>{const yf=zd[Jd];return yf&&typeof yf=="object"&&!Array.isArray(yf)?Yd[Jd]=Nd(yf):Yd[Jd]=yf,Yd},Object.create(null))}Ra.extract=Ld,Ra.parse=Ud,Ra.stringify=(Fd,jd)=>{if(!Fd)return"";jd=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},jd),md(jd.arrayFormatSeparator);const qd=yf=>jd.skipNull&&ud(Fd[yf])||jd.skipEmptyString&&Fd[yf]==="",zd=pd(jd),Yd={};for(const yf of Object.keys(Fd))qd(yf)||(Yd[yf]=Fd[yf]);const Jd=Object.keys(Yd);return jd.sort!==!1&&Jd.sort(jd.sort),Jd.map(yf=>{const Xd=Fd[yf];return Xd===void 0?"":Xd===null?vd(yf,jd):Array.isArray(Xd)?Xd.length===0&&jd.arrayFormat==="bracket-separator"?vd(yf,jd)+"[]":Xd.reduce(zd(yf),[]).join("&"):vd(yf,jd)+"="+vd(Xd,jd)}).filter(yf=>yf.length>0).join("&")},Ra.parseUrl=(Fd,jd)=>{jd=Object.assign({decode:!0},jd);const[qd,zd]=od(Fd,"#");return Object.assign({url:qd.split("?")[0]||"",query:Ud(Ld(Fd),jd)},jd&&jd.parseFragmentIdentifier&&zd?{fragmentIdentifier:Ad(zd,jd)}:{})},Ra.stringifyUrl=(Fd,jd)=>{jd=Object.assign({encode:!0,strict:!0,[dd]:!0},jd);const qd=Od(Fd.url).split("?")[0]||"",zd=Ra.extract(Fd.url),Yd=Ra.parse(zd,{sort:!1}),Jd=Object.assign(Yd,Fd.query);let yf=Ra.stringify(Jd,jd);yf&&(yf=`?${yf}`);let Xd=kd(Fd.url);return Fd.fragmentIdentifier&&(Xd=`#${jd[dd]?vd(Fd.fragmentIdentifier,jd):Fd.fragmentIdentifier}`),`${qd}${yf}${Xd}`},Ra.pick=(Fd,jd,qd)=>{qd=Object.assign({parseFragmentIdentifier:!0,[dd]:!1},qd);const{url:zd,query:Yd,fragmentIdentifier:Jd}=Ra.parseUrl(Fd,qd);return Ra.stringifyUrl({url:zd,query:ld(Yd,jd),fragmentIdentifier:Jd},qd)},Ra.exclude=(Fd,jd,qd)=>{const zd=Array.isArray(jd)?Yd=>!jd.includes(Yd):(Yd,Jd)=>!jd(Yd,Jd);return Ra.pick(Fd,zd,qd)}})(queryString);const Encoder=TextEncoder;var xml$2={exports:{}},XML_CHARACTER_MAP={"&":"&",'"':""","'":"'","<":"<",">":">"};function escapeForXML$1(Ra){return Ra&&Ra.replace?Ra.replace(/([&"<>'])/g,function(qa,nd){return XML_CHARACTER_MAP[nd]}):Ra}var escapeForXML_1=escapeForXML$1,define_process_default$4={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},escapeForXML=escapeForXML_1,Stream=streamBrowserify.Stream,DEFAULT_INDENT=" ";function xml$1(Ra,qa){typeof qa!="object"&&(qa={indent:qa});var nd=qa.stream?new Stream:null,od="",ld=!1,ud=qa.indent?qa.indent===!0?DEFAULT_INDENT:qa.indent:"",dd=!0;function pd(Nd){dd?define_process_default$4.nextTick(Nd):Nd()}function fd(Nd,Od){if(Od!==void 0&&(od+=Od),Nd&&!ld&&(nd=nd||new Stream,ld=!0),Nd&&ld){var kd=od;pd(function(){nd.emit("data",kd)}),od=""}}function md(Nd,Od){format(fd,resolve(Nd,ud,ud?1:0),Od)}function vd(){if(nd){var Nd=od;pd(function(){nd.emit("data",Nd),nd.emit("end"),nd.readable=!1,nd.emit("close")})}}function Ad(Nd){var Od=Nd.encoding||"UTF-8",kd={version:"1.0",encoding:Od};Nd.standalone&&(kd.standalone=Nd.standalone),md({"?xml":{_attr:kd}}),od=od.replace("/>","?>")}return pd(function(){dd=!1}),qa.declaration&&Ad(qa.declaration),Ra&&Ra.forEach?Ra.forEach(function(Nd,Od){var kd;Od+1===Ra.length&&(kd=vd),md(Nd,kd)}):md(Ra,vd),nd?(nd.readable=!0,nd):od}function element(){var Ra=Array.prototype.slice.call(arguments),qa={_elem:resolve(Ra)};return qa.push=function(nd){if(!this.append)throw new Error("not assigned to a parent!");var od=this,ld=this._elem.indent;format(this.append,resolve(nd,ld,this._elem.icount+(ld?1:0)),function(){od.append(!0)})},qa.close=function(nd){nd!==void 0&&this.push(nd),this.end&&this.end()},qa}function create_indent(Ra,qa){return new Array(qa||0).join(Ra||"")}function resolve(Ra,qa,nd){nd=nd||0;var od=create_indent(qa,nd),ld,ud=Ra,dd=!1;if(typeof Ra=="object"){var pd=Object.keys(Ra);if(ld=pd[0],ud=Ra[ld],ud&&ud._elem)return ud._elem.name=ld,ud._elem.icount=nd,ud._elem.indent=qa,ud._elem.indents=od,ud._elem.interrupt=ud,ud._elem}var fd=[],md=[],vd;function Ad(Nd){var Od=Object.keys(Nd);Od.forEach(function(kd){fd.push(attribute(kd,Nd[kd]))})}switch(typeof ud){case"object":if(ud===null)break;ud._attr&&Ad(ud._attr),ud._cdata&&md.push(("/g,"]]]]>")+"]]>"),ud.forEach&&(vd=!1,md.push(""),ud.forEach(function(Nd){if(typeof Nd=="object"){var Od=Object.keys(Nd)[0];Od=="_attr"?Ad(Nd._attr):md.push(resolve(Nd,qa,nd+1))}else md.pop(),vd=!0,md.push(escapeForXML(Nd))}),vd||md.push(""));break;default:md.push(escapeForXML(ud))}return{name:ld,interrupt:dd,attributes:fd,content:md,icount:nd,indents:od,indent:qa}}function format(Ra,qa,nd){if(typeof qa!="object")return Ra(!1,qa);var od=qa.interrupt?1:qa.content.length;function ld(){for(;qa.content.length;){var dd=qa.content.shift();if(dd!==void 0){if(ud(dd))return;format(Ra,dd)}}Ra(!1,(od>1?qa.indents:"")+(qa.name?"":"")+(qa.indent&&!nd?` +`)+sg+`return __p +}`;var c_=mC(function(){return g_(Xh,Hg+"return "+sg).apply(nd,Nm)});if(c_.source=sg,x1(c_))throw c_;return c_}function UN(Yd){return I_(Yd).toLowerCase()}function HN(Yd){return I_(Yd).toUpperCase()}function GN(Yd,gf,Df){if(Yd=I_(Yd),Yd&&(Df||gf===nd))return Og(Yd);if(!Yd||!(gf=jb(gf)))return Yd;var eh=a0(Yd),Oh=a0(gf),Xh=v_(eh,Oh),Nm=ob(eh,Oh)+1;return H0(eh,Xh,Nm).join("")}function qN(Yd,gf,Df){if(Yd=I_(Yd),Yd&&(Df||gf===nd))return Yd.slice(0,ZS(Yd)+1);if(!Yd||!(gf=jb(gf)))return Yd;var eh=a0(Yd),Oh=ob(eh,a0(gf))+1;return H0(eh,0,Oh).join("")}function VN(Yd,gf,Df){if(Yd=I_(Yd),Yd&&(Df||gf===nd))return Yd.replace(y_,"");if(!Yd||!(gf=jb(gf)))return Yd;var eh=a0(Yd),Oh=v_(eh,a0(gf));return H0(eh,Oh).join("")}function zN(Yd,gf){var Df=pf,eh=mf;if(J_(gf)){var Oh="separator"in gf?gf.separator:Oh;Df="length"in gf?l_(gf.length):Df,eh="omission"in gf?jb(gf.omission):eh}Yd=I_(Yd);var Xh=Yd.length;if(jv(Yd)){var Nm=a0(Yd);Xh=Nm.length}if(Df>=Xh)return Yd;var Rm=Df-Uv(eh);if(Rm<1)return eh;var Fm=Nm?H0(Nm,0,Rm).join(""):Yd.slice(0,Rm);if(Oh===nd)return Fm+eh;if(Nm&&(Rm+=Fm.length-Rm),C1(Oh)){if(Yd.slice(Rm).search(Oh)){var tg,rg=Fm;for(Oh.global||(Oh=AE(Oh.source,I_(fm.exec(Oh))+"g")),Oh.lastIndex=0;tg=Oh.exec(rg);)var sg=tg.index;Fm=Fm.slice(0,sg===nd?Rm:sg)}}else if(Yd.indexOf(jb(Oh),Rm)!=Rm){var Rg=Fm.lastIndexOf(Oh);Rg>-1&&(Fm=Fm.slice(0,Rg))}return Fm+eh}function WN(Yd){return Yd=I_(Yd),Yd&&wg.test(Yd)?Yd.replace(Zm,HT):Yd}var YN=uE(function(Yd,gf,Df){return Yd+(Df?" ":"")+gf.toUpperCase()}),N1=Nx("toUpperCase");function hC(Yd,gf,Df){return Yd=I_(Yd),gf=Df?nd:gf,gf===nd?FT(Yd)?qT(Yd):QS(Yd):Yd.match(gf)||[]}var mC=o_(function(Yd,gf){try{return Db(Yd,nd,gf)}catch(Df){return x1(Df)?Df:new t_(Df)}}),KN=w0(function(Yd,gf){return $b(gf,function(Df){Df=U_(Df),j0(Yd,Df,S1(Yd[Df],Yd))}),Yd});function XN(Yd){var gf=Yd==null?0:Yd.length,Df=Wg();return Yd=gf?k_(Yd,function(eh){if(typeof eh[1]!="function")throw new Kb(dd);return[Df(eh[0]),eh[1]]}):[],o_(function(eh){for(var Oh=-1;++OhGf)return[];var Df=ph,eh=tb(Yd,ph);gf=Wg(gf),Yd-=ph;for(var Oh=yg(eh,gf);++Df0||gf<0)?new Yg(Df):(Yd<0?Df=Df.takeRight(-Yd):Yd&&(Df=Df.drop(Yd)),gf!==nd&&(gf=l_(gf),Df=gf<0?Df.dropRight(-gf):Df.take(gf-Yd)),Df)},Yg.prototype.takeRightWhile=function(Yd){return this.reverse().takeWhile(Yd).reverse()},Yg.prototype.toArray=function(){return this.take(ph)},Qb(Yg.prototype,function(Yd,gf){var Df=/^(?:filter|find|map|reject)|While$/.test(gf),eh=/^(?:head|last)$/.test(gf),Oh=Vh[eh?"take"+(gf=="last"?"Right":""):gf],Xh=eh||/^find/.test(gf);Oh&&(Vh.prototype[gf]=function(){var Nm=this.__wrapped__,Rm=eh?[1]:arguments,Fm=Nm instanceof Yg,tg=Rm[0],rg=Fm||s_(Nm),sg=function(f_){var b_=Oh.apply(Vh,i0([f_],Rm));return eh&&Rg?b_[0]:b_};rg&&Df&&typeof tg=="function"&&tg.length!=1&&(Fm=rg=!1);var Rg=this.__chain__,Hg=!!this.__actions__.length,Qg=Xh&&!Rg,c_=Fm&&!Hg;if(!Xh&&rg){Nm=c_?Nm:new Yg(this);var Jg=Yd.apply(Nm,Rm);return Jg.__actions__.push({func:Px,args:[sg],thisArg:nd}),new C_(Jg,Rg)}return Qg&&c_?Yd.apply(this,Rm):(Jg=this.thru(sg),Qg?eh?Jg.value()[0]:Jg.value():Jg)})}),$b(["pop","push","shift","sort","splice","unshift"],function(Yd){var gf=pS[Yd],Df=/^(?:push|sort|unshift)$/.test(Yd)?"tap":"thru",eh=/^(?:pop|shift)$/.test(Yd);Vh.prototype[Yd]=function(){var Oh=arguments;if(eh&&!this.__chain__){var Xh=this.value();return gf.apply(s_(Xh)?Xh:[],Oh)}return this[Df](function(Nm){return gf.apply(s_(Nm)?Nm:[],Oh)})}}),Qb(Yg.prototype,function(Yd,gf){var Df=Vh[gf];if(Df){var eh=Df.name+"";T_.call(nv,eh)||(nv[eh]=[]),nv[eh].push({name:gf,func:Df})}}),nv[OS(nd,jd).name]=[{name:"wrapper",func:nd}],Yg.prototype.clone=lb,Yg.prototype.reverse=RE,Yg.prototype.value=Qx,Vh.prototype.at=yA,Vh.prototype.chain=vA,Vh.prototype.commit=EA,Vh.prototype.next=SA,Vh.prototype.plant=xA,Vh.prototype.reverse=CA,Vh.prototype.toJSON=Vh.prototype.valueOf=Vh.prototype.value=AA,Vh.prototype.first=Vh.prototype.head,Zy&&(Vh.prototype[Zy]=TA),Vh},P0=eT();$0?(($0.exports=P0)._=P0,SE._=P0):x_._=P0}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _=getDefaultExportFromCjs(lodashExports);var queryString={},strictUriEncode=Ra=>encodeURIComponent(Ra).replace(/[!'()*]/g,qa=>`%${qa.charCodeAt(0).toString(16).toUpperCase()}`),token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(Ra,qa){try{return[decodeURIComponent(Ra.join(""))]}catch{}if(Ra.length===1)return Ra;qa=qa||1;var nd=Ra.slice(0,qa),od=Ra.slice(qa);return Array.prototype.concat.call([],decodeComponents(nd),decodeComponents(od))}function decode(Ra){try{return decodeURIComponent(Ra)}catch{for(var qa=Ra.match(singleMatcher)||[],nd=1;nd{if(!(typeof Ra=="string"&&typeof qa=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(qa==="")return[Ra];const nd=Ra.indexOf(qa);return nd===-1?[Ra]:[Ra.slice(0,nd),Ra.slice(nd+qa.length)]},filterObj=function(Ra,qa){for(var nd={},od=Object.keys(Ra),ld=Array.isArray(qa),ud=0;udFd==null,dd=Symbol("encodeFragmentIdentifier");function pd(Fd){switch(Fd.arrayFormat){case"index":return Ud=>(qd,zd)=>{const Wd=qd.length;return zd===void 0||Fd.skipNull&&zd===null||Fd.skipEmptyString&&zd===""?qd:zd===null?[...qd,[vd(Ud,Fd),"[",Wd,"]"].join("")]:[...qd,[vd(Ud,Fd),"[",vd(Wd,Fd),"]=",vd(zd,Fd)].join("")]};case"bracket":return Ud=>(qd,zd)=>zd===void 0||Fd.skipNull&&zd===null||Fd.skipEmptyString&&zd===""?qd:zd===null?[...qd,[vd(Ud,Fd),"[]"].join("")]:[...qd,[vd(Ud,Fd),"[]=",vd(zd,Fd)].join("")];case"colon-list-separator":return Ud=>(qd,zd)=>zd===void 0||Fd.skipNull&&zd===null||Fd.skipEmptyString&&zd===""?qd:zd===null?[...qd,[vd(Ud,Fd),":list="].join("")]:[...qd,[vd(Ud,Fd),":list=",vd(zd,Fd)].join("")];case"comma":case"separator":case"bracket-separator":{const Ud=Fd.arrayFormat==="bracket-separator"?"[]=":"=";return qd=>(zd,Wd)=>Wd===void 0||Fd.skipNull&&Wd===null||Fd.skipEmptyString&&Wd===""?zd:(Wd=Wd===null?"":Wd,zd.length===0?[[vd(qd,Fd),Ud,vd(Wd,Fd)].join("")]:[[zd,vd(Wd,Fd)].join(Fd.arrayFormatSeparator)])}default:return Ud=>(qd,zd)=>zd===void 0||Fd.skipNull&&zd===null||Fd.skipEmptyString&&zd===""?qd:zd===null?[...qd,vd(Ud,Fd)]:[...qd,[vd(Ud,Fd),"=",vd(zd,Fd)].join("")]}}function fd(Fd){let Ud;switch(Fd.arrayFormat){case"index":return(qd,zd,Wd)=>{if(Ud=/\[(\d*)\]$/.exec(qd),qd=qd.replace(/\[\d*\]$/,""),!Ud){Wd[qd]=zd;return}Wd[qd]===void 0&&(Wd[qd]={}),Wd[qd][Ud[1]]=zd};case"bracket":return(qd,zd,Wd)=>{if(Ud=/(\[\])$/.exec(qd),qd=qd.replace(/\[\]$/,""),!Ud){Wd[qd]=zd;return}if(Wd[qd]===void 0){Wd[qd]=[zd];return}Wd[qd]=[].concat(Wd[qd],zd)};case"colon-list-separator":return(qd,zd,Wd)=>{if(Ud=/(:list)$/.exec(qd),qd=qd.replace(/:list$/,""),!Ud){Wd[qd]=zd;return}if(Wd[qd]===void 0){Wd[qd]=[zd];return}Wd[qd]=[].concat(Wd[qd],zd)};case"comma":case"separator":return(qd,zd,Wd)=>{const Jd=typeof zd=="string"&&zd.includes(Fd.arrayFormatSeparator),_f=typeof zd=="string"&&!Jd&&Ad(zd,Fd).includes(Fd.arrayFormatSeparator);zd=_f?Ad(zd,Fd):zd;const Xd=Jd||_f?zd.split(Fd.arrayFormatSeparator).map(pf=>Ad(pf,Fd)):zd===null?zd:Ad(zd,Fd);Wd[qd]=Xd};case"bracket-separator":return(qd,zd,Wd)=>{const Jd=/(\[\])$/.test(qd);if(qd=qd.replace(/\[\]$/,""),!Jd){Wd[qd]=zd&&Ad(zd,Fd);return}const _f=zd===null?[]:zd.split(Fd.arrayFormatSeparator).map(Xd=>Ad(Xd,Fd));if(Wd[qd]===void 0){Wd[qd]=_f;return}Wd[qd]=[].concat(Wd[qd],_f)};default:return(qd,zd,Wd)=>{if(Wd[qd]===void 0){Wd[qd]=zd;return}Wd[qd]=[].concat(Wd[qd],zd)}}}function md(Fd){if(typeof Fd!="string"||Fd.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function vd(Fd,Ud){return Ud.encode?Ud.strict?qa(Fd):encodeURIComponent(Fd):Fd}function Ad(Fd,Ud){return Ud.decode?nd(Fd):Fd}function Nd(Fd){return Array.isArray(Fd)?Fd.sort():typeof Fd=="object"?Nd(Object.keys(Fd)).sort((Ud,qd)=>Number(Ud)-Number(qd)).map(Ud=>Fd[Ud]):Fd}function Od(Fd){const Ud=Fd.indexOf("#");return Ud!==-1&&(Fd=Fd.slice(0,Ud)),Fd}function kd(Fd){let Ud="";const qd=Fd.indexOf("#");return qd!==-1&&(Ud=Fd.slice(qd)),Ud}function Ld(Fd){Fd=Od(Fd);const Ud=Fd.indexOf("?");return Ud===-1?"":Fd.slice(Ud+1)}function Gd(Fd,Ud){return Ud.parseNumbers&&!Number.isNaN(Number(Fd))&&typeof Fd=="string"&&Fd.trim()!==""?Fd=Number(Fd):Ud.parseBooleans&&Fd!==null&&(Fd.toLowerCase()==="true"||Fd.toLowerCase()==="false")&&(Fd=Fd.toLowerCase()==="true"),Fd}function jd(Fd,Ud){Ud=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},Ud),md(Ud.arrayFormatSeparator);const qd=fd(Ud),zd=Object.create(null);if(typeof Fd!="string"||(Fd=Fd.trim().replace(/^[?#&]/,""),!Fd))return zd;for(const Wd of Fd.split("&")){if(Wd==="")continue;let[Jd,_f]=od(Ud.decode?Wd.replace(/\+/g," "):Wd,"=");_f=_f===void 0?null:["comma","separator","bracket-separator"].includes(Ud.arrayFormat)?_f:Ad(_f,Ud),qd(Ad(Jd,Ud),_f,zd)}for(const Wd of Object.keys(zd)){const Jd=zd[Wd];if(typeof Jd=="object"&&Jd!==null)for(const _f of Object.keys(Jd))Jd[_f]=Gd(Jd[_f],Ud);else zd[Wd]=Gd(Jd,Ud)}return Ud.sort===!1?zd:(Ud.sort===!0?Object.keys(zd).sort():Object.keys(zd).sort(Ud.sort)).reduce((Wd,Jd)=>{const _f=zd[Jd];return _f&&typeof _f=="object"&&!Array.isArray(_f)?Wd[Jd]=Nd(_f):Wd[Jd]=_f,Wd},Object.create(null))}Ra.extract=Ld,Ra.parse=jd,Ra.stringify=(Fd,Ud)=>{if(!Fd)return"";Ud=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},Ud),md(Ud.arrayFormatSeparator);const qd=_f=>Ud.skipNull&&ud(Fd[_f])||Ud.skipEmptyString&&Fd[_f]==="",zd=pd(Ud),Wd={};for(const _f of Object.keys(Fd))qd(_f)||(Wd[_f]=Fd[_f]);const Jd=Object.keys(Wd);return Ud.sort!==!1&&Jd.sort(Ud.sort),Jd.map(_f=>{const Xd=Fd[_f];return Xd===void 0?"":Xd===null?vd(_f,Ud):Array.isArray(Xd)?Xd.length===0&&Ud.arrayFormat==="bracket-separator"?vd(_f,Ud)+"[]":Xd.reduce(zd(_f),[]).join("&"):vd(_f,Ud)+"="+vd(Xd,Ud)}).filter(_f=>_f.length>0).join("&")},Ra.parseUrl=(Fd,Ud)=>{Ud=Object.assign({decode:!0},Ud);const[qd,zd]=od(Fd,"#");return Object.assign({url:qd.split("?")[0]||"",query:jd(Ld(Fd),Ud)},Ud&&Ud.parseFragmentIdentifier&&zd?{fragmentIdentifier:Ad(zd,Ud)}:{})},Ra.stringifyUrl=(Fd,Ud)=>{Ud=Object.assign({encode:!0,strict:!0,[dd]:!0},Ud);const qd=Od(Fd.url).split("?")[0]||"",zd=Ra.extract(Fd.url),Wd=Ra.parse(zd,{sort:!1}),Jd=Object.assign(Wd,Fd.query);let _f=Ra.stringify(Jd,Ud);_f&&(_f=`?${_f}`);let Xd=kd(Fd.url);return Fd.fragmentIdentifier&&(Xd=`#${Ud[dd]?vd(Fd.fragmentIdentifier,Ud):Fd.fragmentIdentifier}`),`${qd}${_f}${Xd}`},Ra.pick=(Fd,Ud,qd)=>{qd=Object.assign({parseFragmentIdentifier:!0,[dd]:!1},qd);const{url:zd,query:Wd,fragmentIdentifier:Jd}=Ra.parseUrl(Fd,qd);return Ra.stringifyUrl({url:zd,query:ld(Wd,Ud),fragmentIdentifier:Jd},qd)},Ra.exclude=(Fd,Ud,qd)=>{const zd=Array.isArray(Ud)?Wd=>!Ud.includes(Wd):(Wd,Jd)=>!Ud(Wd,Jd);return Ra.pick(Fd,zd,qd)}})(queryString);const Encoder=TextEncoder;var xml$2={exports:{}},XML_CHARACTER_MAP={"&":"&",'"':""","'":"'","<":"<",">":">"};function escapeForXML$1(Ra){return Ra&&Ra.replace?Ra.replace(/([&"<>'])/g,function(qa,nd){return XML_CHARACTER_MAP[nd]}):Ra}var escapeForXML_1=escapeForXML$1,define_process_default$4={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},escapeForXML=escapeForXML_1,Stream=streamBrowserify.Stream,DEFAULT_INDENT=" ";function xml$1(Ra,qa){typeof qa!="object"&&(qa={indent:qa});var nd=qa.stream?new Stream:null,od="",ld=!1,ud=qa.indent?qa.indent===!0?DEFAULT_INDENT:qa.indent:"",dd=!0;function pd(Nd){dd?define_process_default$4.nextTick(Nd):Nd()}function fd(Nd,Od){if(Od!==void 0&&(od+=Od),Nd&&!ld&&(nd=nd||new Stream,ld=!0),Nd&&ld){var kd=od;pd(function(){nd.emit("data",kd)}),od=""}}function md(Nd,Od){format(fd,resolve(Nd,ud,ud?1:0),Od)}function vd(){if(nd){var Nd=od;pd(function(){nd.emit("data",Nd),nd.emit("end"),nd.readable=!1,nd.emit("close")})}}function Ad(Nd){var Od=Nd.encoding||"UTF-8",kd={version:"1.0",encoding:Od};Nd.standalone&&(kd.standalone=Nd.standalone),md({"?xml":{_attr:kd}}),od=od.replace("/>","?>")}return pd(function(){dd=!1}),qa.declaration&&Ad(qa.declaration),Ra&&Ra.forEach?Ra.forEach(function(Nd,Od){var kd;Od+1===Ra.length&&(kd=vd),md(Nd,kd)}):md(Ra,vd),nd?(nd.readable=!0,nd):od}function element(){var Ra=Array.prototype.slice.call(arguments),qa={_elem:resolve(Ra)};return qa.push=function(nd){if(!this.append)throw new Error("not assigned to a parent!");var od=this,ld=this._elem.indent;format(this.append,resolve(nd,ld,this._elem.icount+(ld?1:0)),function(){od.append(!0)})},qa.close=function(nd){nd!==void 0&&this.push(nd),this.end&&this.end()},qa}function create_indent(Ra,qa){return new Array(qa||0).join(Ra||"")}function resolve(Ra,qa,nd){nd=nd||0;var od=create_indent(qa,nd),ld,ud=Ra,dd=!1;if(typeof Ra=="object"){var pd=Object.keys(Ra);if(ld=pd[0],ud=Ra[ld],ud&&ud._elem)return ud._elem.name=ld,ud._elem.icount=nd,ud._elem.indent=qa,ud._elem.indents=od,ud._elem.interrupt=ud,ud._elem}var fd=[],md=[],vd;function Ad(Nd){var Od=Object.keys(Nd);Od.forEach(function(kd){fd.push(attribute(kd,Nd[kd]))})}switch(typeof ud){case"object":if(ud===null)break;ud._attr&&Ad(ud._attr),ud._cdata&&md.push(("/g,"]]]]>")+"]]>"),ud.forEach&&(vd=!1,md.push(""),ud.forEach(function(Nd){if(typeof Nd=="object"){var Od=Object.keys(Nd)[0];Od=="_attr"?Ad(Nd._attr):md.push(resolve(Nd,qa,nd+1))}else md.pop(),vd=!0,md.push(escapeForXML(Nd))}),vd||md.push(""));break;default:md.push(escapeForXML(ud))}return{name:ld,interrupt:dd,attributes:fd,content:md,icount:nd,indents:od,indent:qa}}function format(Ra,qa,nd){if(typeof qa!="object")return Ra(!1,qa);var od=qa.interrupt?1:qa.content.length;function ld(){for(;qa.content.length;){var dd=qa.content.shift();if(dd!==void 0){if(ud(dd))return;format(Ra,dd)}}Ra(!1,(od>1?qa.indents:"")+(qa.name?"":"")+(qa.indent&&!nd?` `:"")),nd&&nd()}function ud(dd){return dd.interrupt?(dd.interrupt.append=Ra,dd.interrupt.end=ld,dd.interrupt=!1,Ra(!0),!0):!1}if(Ra(!1,qa.indents+(qa.name?"<"+qa.name:"")+(qa.attributes.length?" "+qa.attributes.join(" "):"")+(od?qa.name?">":"":qa.name?"/>":"")+(qa.indent&&od>1?` `:"")),!od)return Ra(!1,qa.indent?` `:"");ud(qa)||ld()}function attribute(Ra,qa){return Ra+'="'+escapeForXML(qa)+'"'}xml$2.exports=xml$1;xml$2.exports.element=xml$2.exports.Element=element;var xmlExports=xml$2.exports;const Xml=getDefaultExportFromCjs(xmlExports);var xml2js={},defaults={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` -`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal)),defaults}var builder={},lib$2={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var Ra,qa,nd,od,ld,ud,dd,pd=[].slice,fd={}.hasOwnProperty;Ra=function(){var md,vd,Ad,Nd,Od,kd;if(kd=arguments[0],Od=2<=arguments.length?pd.call(arguments,1):[],ld(Object.assign))Object.assign.apply(null,arguments);else for(md=0,Ad=Od.length;md":"attribute: {"+nd+"}, parent: <"+this.parent.name+">"},qa.prototype.isEqualNode=function(nd){return!(nd.namespaceURI!==this.namespaceURI||nd.prefix!==this.prefix||nd.localName!==this.localName||nd.value!==this.value)},qa}()}).call(commonjsGlobal)),XMLAttribute.exports}var XMLNamedNodeMap={exports:{}},hasRequiredXMLNamedNodeMap;function requireXMLNamedNodeMap(){return hasRequiredXMLNamedNodeMap||(hasRequiredXMLNamedNodeMap=1,(function(){XMLNamedNodeMap.exports=function(){function Ra(qa){this.nodes=qa}return Object.defineProperty(Ra.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Ra.prototype.clone=function(){return this.nodes=null},Ra.prototype.getNamedItem=function(qa){return this.nodes[qa]},Ra.prototype.setNamedItem=function(qa){var nd;return nd=this.nodes[qa.nodeName],this.nodes[qa.nodeName]=qa,nd||null},Ra.prototype.removeNamedItem=function(qa){var nd;return nd=this.nodes[qa],delete this.nodes[qa],nd||null},Ra.prototype.item=function(qa){return this.nodes[Object.keys(this.nodes)[qa]]||null},Ra.prototype.getNamedItemNS=function(qa,nd){throw new Error("This DOM method is not implemented.")},Ra.prototype.setNamedItemNS=function(qa){throw new Error("This DOM method is not implemented.")},Ra.prototype.removeNamedItemNS=function(qa,nd){throw new Error("This DOM method is not implemented.")},Ra}()}).call(commonjsGlobal)),XMLNamedNodeMap.exports}var hasRequiredXMLElement;function requireXMLElement(){return hasRequiredXMLElement||(hasRequiredXMLElement=1,(function(){var Ra,qa,nd,od,ld,ud,dd,pd,fd=function(vd,Ad){for(var Nd in Ad)md.call(Ad,Nd)&&(vd[Nd]=Ad[Nd]);function Od(){this.constructor=vd}return Od.prototype=Ad.prototype,vd.prototype=new Od,vd.__super__=Ad.prototype,vd},md={}.hasOwnProperty;pd=requireUtility(),dd=pd.isObject,ud=pd.isFunction,ld=pd.getValue,od=requireXMLNode(),Ra=requireNodeType(),qa=requireXMLAttribute(),nd=requireXMLNamedNodeMap(),XMLElement.exports=function(vd){fd(Ad,vd);function Ad(Nd,Od,kd){var Ld,Gd,Ud,Fd;if(Ad.__super__.constructor.call(this,Nd),Od==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(Od),this.type=Ra.Element,this.attribs={},this.schemaTypeInfo=null,kd!=null&&this.attribute(kd),Nd.type===Ra.Document&&(this.isRoot=!0,this.documentObject=Nd,Nd.rootObject=this,Nd.children)){for(Fd=Nd.children,Gd=0,Ud=Fd.length;Gd=Ld;Od=0<=Ld?++kd:--kd)if(!this.attribs[Od].isEqualNode(Nd.attribs[Od]))return!1;return!0},Ad}(od)}).call(commonjsGlobal)),XMLElement.exports}var XMLCData={exports:{}},XMLCharacterData={exports:{}},hasRequiredXMLCharacterData;function requireXMLCharacterData(){return hasRequiredXMLCharacterData||(hasRequiredXMLCharacterData=1,(function(){var Ra,qa=function(od,ld){for(var ud in ld)nd.call(ld,ud)&&(od[ud]=ld[ud]);function dd(){this.constructor=od}return dd.prototype=ld.prototype,od.prototype=new dd,od.__super__=ld.prototype,od},nd={}.hasOwnProperty;Ra=requireXMLNode(),XMLCharacterData.exports=function(od){qa(ld,od);function ld(ud){ld.__super__.constructor.call(this,ud),this.value=""}return Object.defineProperty(ld.prototype,"data",{get:function(){return this.value},set:function(ud){return this.value=ud||""}}),Object.defineProperty(ld.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(ld.prototype,"textContent",{get:function(){return this.value},set:function(ud){return this.value=ud||""}}),ld.prototype.clone=function(){return Object.create(this)},ld.prototype.substringData=function(ud,dd){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.appendData=function(ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.insertData=function(ud,dd){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.deleteData=function(ud,dd){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.replaceData=function(ud,dd,pd){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.isEqualNode=function(ud){return!(!ld.__super__.isEqualNode.apply(this,arguments).isEqualNode(ud)||ud.data!==this.data)},ld}(Ra)}).call(commonjsGlobal)),XMLCharacterData.exports}var hasRequiredXMLCData;function requireXMLCData(){return hasRequiredXMLCData||(hasRequiredXMLCData=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;Ra=requireNodeType(),qa=requireXMLCharacterData(),XMLCData.exports=function(ld){nd(ud,ld);function ud(dd,pd){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=Ra.CData,this.value=this.stringify.cdata(pd)}return ud.prototype.clone=function(){return Object.create(this)},ud.prototype.toString=function(dd){return this.options.writer.cdata(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLCData.exports}var XMLComment={exports:{}},hasRequiredXMLComment;function requireXMLComment(){return hasRequiredXMLComment||(hasRequiredXMLComment=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;Ra=requireNodeType(),qa=requireXMLCharacterData(),XMLComment.exports=function(ld){nd(ud,ld);function ud(dd,pd){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=Ra.Comment,this.value=this.stringify.comment(pd)}return ud.prototype.clone=function(){return Object.create(this)},ud.prototype.toString=function(dd){return this.options.writer.comment(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLComment.exports}var XMLDeclaration={exports:{}},hasRequiredXMLDeclaration;function requireXMLDeclaration(){return hasRequiredXMLDeclaration||(hasRequiredXMLDeclaration=1,(function(){var Ra,qa,nd,od=function(ud,dd){for(var pd in dd)ld.call(dd,pd)&&(ud[pd]=dd[pd]);function fd(){this.constructor=ud}return fd.prototype=dd.prototype,ud.prototype=new fd,ud.__super__=dd.prototype,ud},ld={}.hasOwnProperty;nd=requireUtility().isObject,qa=requireXMLNode(),Ra=requireNodeType(),XMLDeclaration.exports=function(ud){od(dd,ud);function dd(pd,fd,md,vd){var Ad;dd.__super__.constructor.call(this,pd),nd(fd)&&(Ad=fd,fd=Ad.version,md=Ad.encoding,vd=Ad.standalone),fd||(fd="1.0"),this.type=Ra.Declaration,this.version=this.stringify.xmlVersion(fd),md!=null&&(this.encoding=this.stringify.xmlEncoding(md)),vd!=null&&(this.standalone=this.stringify.xmlStandalone(vd))}return dd.prototype.toString=function(pd){return this.options.writer.declaration(this,this.options.writer.filterOptions(pd))},dd}(qa)}).call(commonjsGlobal)),XMLDeclaration.exports}var XMLDocType={exports:{}},XMLDTDAttList={exports:{}},hasRequiredXMLDTDAttList;function requireXMLDTDAttList(){return hasRequiredXMLDTDAttList||(hasRequiredXMLDTDAttList=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;qa=requireXMLNode(),Ra=requireNodeType(),XMLDTDAttList.exports=function(ld){nd(ud,ld);function ud(dd,pd,fd,md,vd,Ad){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(fd==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(pd));if(!md)throw new Error("Missing DTD attribute type. "+this.debugInfo(pd));if(!vd)throw new Error("Missing DTD attribute default. "+this.debugInfo(pd));if(vd.indexOf("#")!==0&&(vd="#"+vd),!vd.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(pd));if(Ad&&!vd.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(pd));this.elementName=this.stringify.name(pd),this.type=Ra.AttributeDeclaration,this.attributeName=this.stringify.name(fd),this.attributeType=this.stringify.dtdAttType(md),Ad&&(this.defaultValue=this.stringify.dtdAttDefault(Ad)),this.defaultValueType=vd}return ud.prototype.toString=function(dd){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLDTDAttList.exports}var XMLDTDEntity={exports:{}},hasRequiredXMLDTDEntity;function requireXMLDTDEntity(){return hasRequiredXMLDTDEntity||(hasRequiredXMLDTDEntity=1,(function(){var Ra,qa,nd,od=function(ud,dd){for(var pd in dd)ld.call(dd,pd)&&(ud[pd]=dd[pd]);function fd(){this.constructor=ud}return fd.prototype=dd.prototype,ud.prototype=new fd,ud.__super__=dd.prototype,ud},ld={}.hasOwnProperty;nd=requireUtility().isObject,qa=requireXMLNode(),Ra=requireNodeType(),XMLDTDEntity.exports=function(ud){od(dd,ud);function dd(pd,fd,md,vd){if(dd.__super__.constructor.call(this,pd),md==null)throw new Error("Missing DTD entity name. "+this.debugInfo(md));if(vd==null)throw new Error("Missing DTD entity value. "+this.debugInfo(md));if(this.pe=!!fd,this.name=this.stringify.name(md),this.type=Ra.EntityDeclaration,!nd(vd))this.value=this.stringify.dtdEntityValue(vd),this.internal=!0;else{if(!vd.pubID&&!vd.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(md));if(vd.pubID&&!vd.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(md));if(this.internal=!1,vd.pubID!=null&&(this.pubID=this.stringify.dtdPubID(vd.pubID)),vd.sysID!=null&&(this.sysID=this.stringify.dtdSysID(vd.sysID)),vd.nData!=null&&(this.nData=this.stringify.dtdNData(vd.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(md))}}return Object.defineProperty(dd.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(dd.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(dd.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(dd.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(dd.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(dd.prototype,"xmlVersion",{get:function(){return null}}),dd.prototype.toString=function(pd){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(pd))},dd}(qa)}).call(commonjsGlobal)),XMLDTDEntity.exports}var XMLDTDElement={exports:{}},hasRequiredXMLDTDElement;function requireXMLDTDElement(){return hasRequiredXMLDTDElement||(hasRequiredXMLDTDElement=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;qa=requireXMLNode(),Ra=requireNodeType(),XMLDTDElement.exports=function(ld){nd(ud,ld);function ud(dd,pd,fd){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing DTD element name. "+this.debugInfo());fd||(fd="(#PCDATA)"),Array.isArray(fd)&&(fd="("+fd.join(",")+")"),this.name=this.stringify.name(pd),this.type=Ra.ElementDeclaration,this.value=this.stringify.dtdElementValue(fd)}return ud.prototype.toString=function(dd){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLDTDElement.exports}var XMLDTDNotation={exports:{}},hasRequiredXMLDTDNotation;function requireXMLDTDNotation(){return hasRequiredXMLDTDNotation||(hasRequiredXMLDTDNotation=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;qa=requireXMLNode(),Ra=requireNodeType(),XMLDTDNotation.exports=function(ld){nd(ud,ld);function ud(dd,pd,fd){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing DTD notation name. "+this.debugInfo(pd));if(!fd.pubID&&!fd.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(pd));this.name=this.stringify.name(pd),this.type=Ra.NotationDeclaration,fd.pubID!=null&&(this.pubID=this.stringify.dtdPubID(fd.pubID)),fd.sysID!=null&&(this.sysID=this.stringify.dtdSysID(fd.sysID))}return Object.defineProperty(ud.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ud.prototype,"systemId",{get:function(){return this.sysID}}),ud.prototype.toString=function(dd){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLDTDNotation.exports}var hasRequiredXMLDocType;function requireXMLDocType(){return hasRequiredXMLDocType||(hasRequiredXMLDocType=1,(function(){var Ra,qa,nd,od,ld,ud,dd,pd,fd=function(vd,Ad){for(var Nd in Ad)md.call(Ad,Nd)&&(vd[Nd]=Ad[Nd]);function Od(){this.constructor=vd}return Od.prototype=Ad.prototype,vd.prototype=new Od,vd.__super__=Ad.prototype,vd},md={}.hasOwnProperty;pd=requireUtility().isObject,dd=requireXMLNode(),Ra=requireNodeType(),qa=requireXMLDTDAttList(),od=requireXMLDTDEntity(),nd=requireXMLDTDElement(),ld=requireXMLDTDNotation(),ud=requireXMLNamedNodeMap(),XMLDocType.exports=function(vd){fd(Ad,vd);function Ad(Nd,Od,kd){var Ld,Gd,Ud,Fd,jd,qd;if(Ad.__super__.constructor.call(this,Nd),this.type=Ra.DocType,Nd.children){for(Fd=Nd.children,Gd=0,Ud=Fd.length;Gd":(zd=this.parent)!=null&&zd.name?"node: <"+jd+">, parent: <"+this.parent.name+">":"node: <"+jd+">"},Fd.prototype.ele=function(jd,qd,zd){return this.element(jd,qd,zd)},Fd.prototype.nod=function(jd,qd,zd){return this.node(jd,qd,zd)},Fd.prototype.txt=function(jd){return this.text(jd)},Fd.prototype.dat=function(jd){return this.cdata(jd)},Fd.prototype.com=function(jd){return this.comment(jd)},Fd.prototype.ins=function(jd,qd){return this.instruction(jd,qd)},Fd.prototype.doc=function(){return this.document()},Fd.prototype.dec=function(jd,qd,zd){return this.declaration(jd,qd,zd)},Fd.prototype.e=function(jd,qd,zd){return this.element(jd,qd,zd)},Fd.prototype.n=function(jd,qd,zd){return this.node(jd,qd,zd)},Fd.prototype.t=function(jd){return this.text(jd)},Fd.prototype.d=function(jd){return this.cdata(jd)},Fd.prototype.c=function(jd){return this.comment(jd)},Fd.prototype.r=function(jd){return this.raw(jd)},Fd.prototype.i=function(jd,qd){return this.instruction(jd,qd)},Fd.prototype.u=function(){return this.up()},Fd.prototype.importXMLBuilder=function(jd){return this.importDocument(jd)},Fd.prototype.replaceChild=function(jd,qd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.removeChild=function(jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.appendChild=function(jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.hasChildNodes=function(){return this.children.length!==0},Fd.prototype.cloneNode=function(jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.isSupported=function(jd,qd){return!0},Fd.prototype.hasAttributes=function(){return this.attribs.length!==0},Fd.prototype.compareDocumentPosition=function(jd){var qd,zd;return qd=this,qd===jd?0:this.document()!==jd.document()?(zd=Ra.Disconnected|Ra.ImplementationSpecific,Math.random()<.5?zd|=Ra.Preceding:zd|=Ra.Following,zd):qd.isAncestor(jd)?Ra.Contains|Ra.Preceding:qd.isDescendant(jd)?Ra.Contains|Ra.Following:qd.isPreceding(jd)?Ra.Preceding:Ra.Following},Fd.prototype.isSameNode=function(jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.lookupPrefix=function(jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.isDefaultNamespace=function(jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.lookupNamespaceURI=function(jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.isEqualNode=function(jd){var qd,zd,Yd;if(jd.nodeType!==this.nodeType||jd.children.length!==this.children.length)return!1;for(qd=zd=0,Yd=this.children.length-1;0<=Yd?zd<=Yd:zd>=Yd;qd=0<=Yd?++zd:--zd)if(!this.children[qd].isEqualNode(jd.children[qd]))return!1;return!0},Fd.prototype.getFeature=function(jd,qd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.setUserData=function(jd,qd,zd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.getUserData=function(jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.contains=function(jd){return jd?jd===this||this.isDescendant(jd):!1},Fd.prototype.isDescendant=function(jd){var qd,zd,Yd,Jd,yf;for(yf=this.children,Yd=0,Jd=yf.length;Ydzd},Fd.prototype.treePosition=function(jd){var qd,zd;return zd=0,qd=!1,this.foreachTreeNode(this.document(),function(Yd){if(zd++,!qd&&Yd===jd)return qd=!0}),qd?zd:-1},Fd.prototype.foreachTreeNode=function(jd,qd){var zd,Yd,Jd,yf,Xd;for(jd||(jd=this.document()),yf=jd.children,Yd=0,Jd=yf.length;Yd","]]]]>"),this.assertLegalChar(od))},nd.prototype.comment=function(od){if(this.options.noValidation)return od;if(od=""+od||"",od.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+od);return this.assertLegalChar(od)},nd.prototype.raw=function(od){return this.options.noValidation?od:""+od||""},nd.prototype.attValue=function(od){return this.options.noValidation?od:this.assertLegalChar(this.attEscape(od=""+od||""))},nd.prototype.insTarget=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.insValue=function(od){if(this.options.noValidation)return od;if(od=""+od||"",od.match(/\?>/))throw new Error("Invalid processing instruction value: "+od);return this.assertLegalChar(od)},nd.prototype.xmlVersion=function(od){if(this.options.noValidation)return od;if(od=""+od||"",!od.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+od);return od},nd.prototype.xmlEncoding=function(od){if(this.options.noValidation)return od;if(od=""+od||"",!od.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+od);return this.assertLegalChar(od)},nd.prototype.xmlStandalone=function(od){return this.options.noValidation?od:od?"yes":"no"},nd.prototype.dtdPubID=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdSysID=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdElementValue=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdAttType=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdAttDefault=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdEntityValue=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdNData=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.convertAttKey="@",nd.prototype.convertPIKey="?",nd.prototype.convertTextKey="#text",nd.prototype.convertCDataKey="#cdata",nd.prototype.convertCommentKey="#comment",nd.prototype.convertRawKey="#raw",nd.prototype.assertLegalChar=function(od){var ld,ud;if(this.options.noValidation)return od;if(ld="",this.options.version==="1.0"){if(ld=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ud=od.match(ld))throw new Error("Invalid character in string: "+od+" at index "+ud.index)}else if(this.options.version==="1.1"&&(ld=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ud=od.match(ld)))throw new Error("Invalid character in string: "+od+" at index "+ud.index);return od},nd.prototype.assertLegalName=function(od){var ld;if(this.options.noValidation)return od;if(this.assertLegalChar(od),ld=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!od.match(ld))throw new Error("Invalid character in name");return od},nd.prototype.textEscape=function(od){var ld;return this.options.noValidation?od:(ld=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,od.replace(ld,"&").replace(//g,">").replace(/\r/g," "))},nd.prototype.attEscape=function(od){var ld;return this.options.noValidation?od:(ld=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,od.replace(ld,"&").replace(/0)?new Array(fd).join(dd.indent):""},ld.prototype.endline=function(ud,dd,pd){return!dd.pretty||dd.suppressPrettyCount?"":dd.newline},ld.prototype.attribute=function(ud,dd,pd){var fd;return this.openAttribute(ud,dd,pd),fd=" "+ud.name+'="'+ud.value+'"',this.closeAttribute(ud,dd,pd),fd},ld.prototype.cdata=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.comment=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.declaration=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+"",fd+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.docType=function(ud,dd,pd){var fd,md,vd,Ad,Nd;if(pd||(pd=0),this.openNode(ud,dd,pd),dd.state=qa.OpenTag,Ad=this.indent(ud,dd,pd),Ad+="0){for(Ad+=" [",Ad+=this.endline(ud,dd,pd),dd.state=qa.InsideTag,Nd=ud.children,md=0,vd=Nd.length;md",Ad+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),Ad},ld.prototype.element=function(ud,dd,pd){var fd,md,vd,Ad,Nd,Od,kd,Ld,Gd,Ud,Fd,jd,qd,zd;pd||(pd=0),Ud=!1,Fd="",this.openNode(ud,dd,pd),dd.state=qa.OpenTag,Fd+=this.indent(ud,dd,pd)+"<"+ud.name,jd=ud.attribs;for(Gd in jd)od.call(jd,Gd)&&(fd=jd[Gd],Fd+=this.attribute(fd,dd,pd));if(vd=ud.children.length,Ad=vd===0?null:ud.children[0],vd===0||ud.children.every(function(Yd){return(Yd.type===Ra.Text||Yd.type===Ra.Raw)&&Yd.value===""}))dd.allowEmpty?(Fd+=">",dd.state=qa.CloseTag,Fd+=""+this.endline(ud,dd,pd)):(dd.state=qa.CloseTag,Fd+=dd.spaceBeforeSlash+"/>"+this.endline(ud,dd,pd));else if(dd.pretty&&vd===1&&(Ad.type===Ra.Text||Ad.type===Ra.Raw)&&Ad.value!=null)Fd+=">",dd.state=qa.InsideTag,dd.suppressPrettyCount++,Ud=!0,Fd+=this.writeChildNode(Ad,dd,pd+1),dd.suppressPrettyCount--,Ud=!1,dd.state=qa.CloseTag,Fd+=""+this.endline(ud,dd,pd);else{if(dd.dontPrettyTextNodes){for(qd=ud.children,Nd=0,kd=qd.length;Nd"+this.endline(ud,dd,pd),dd.state=qa.InsideTag,zd=ud.children,Od=0,Ld=zd.length;Od",Ud&&dd.suppressPrettyCount--,Fd+=this.endline(ud,dd,pd),dd.state=qa.None}return this.closeNode(ud,dd,pd),Fd},ld.prototype.writeChildNode=function(ud,dd,pd){switch(ud.type){case Ra.CData:return this.cdata(ud,dd,pd);case Ra.Comment:return this.comment(ud,dd,pd);case Ra.Element:return this.element(ud,dd,pd);case Ra.Raw:return this.raw(ud,dd,pd);case Ra.Text:return this.text(ud,dd,pd);case Ra.ProcessingInstruction:return this.processingInstruction(ud,dd,pd);case Ra.Dummy:return"";case Ra.Declaration:return this.declaration(ud,dd,pd);case Ra.DocType:return this.docType(ud,dd,pd);case Ra.AttributeDeclaration:return this.dtdAttList(ud,dd,pd);case Ra.ElementDeclaration:return this.dtdElement(ud,dd,pd);case Ra.EntityDeclaration:return this.dtdEntity(ud,dd,pd);case Ra.NotationDeclaration:return this.dtdNotation(ud,dd,pd);default:throw new Error("Unknown XML node type: "+ud.constructor.name)}},ld.prototype.processingInstruction=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+"",fd+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.raw=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd),dd.state=qa.InsideTag,fd+=ud.value,dd.state=qa.CloseTag,fd+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.text=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd),dd.state=qa.InsideTag,fd+=ud.value,dd.state=qa.CloseTag,fd+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.dtdAttList=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.dtdElement=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.dtdEntity=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.dtdNotation=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.openNode=function(ud,dd,pd){},ld.prototype.closeNode=function(ud,dd,pd){},ld.prototype.openAttribute=function(ud,dd,pd){},ld.prototype.closeAttribute=function(ud,dd,pd){},ld}()}).call(commonjsGlobal)),XMLWriterBase.exports}var hasRequiredXMLStringWriter;function requireXMLStringWriter(){return hasRequiredXMLStringWriter||(hasRequiredXMLStringWriter=1,(function(){var Ra,qa=function(od,ld){for(var ud in ld)nd.call(ld,ud)&&(od[ud]=ld[ud]);function dd(){this.constructor=od}return dd.prototype=ld.prototype,od.prototype=new dd,od.__super__=ld.prototype,od},nd={}.hasOwnProperty;Ra=requireXMLWriterBase(),XMLStringWriter.exports=function(od){qa(ld,od);function ld(ud){ld.__super__.constructor.call(this,ud)}return ld.prototype.document=function(ud,dd){var pd,fd,md,vd,Ad;for(dd=this.filterOptions(dd),vd="",Ad=ud.children,fd=0,md=Ad.length;fd=0;)this.up();return this.onEnd()},yf.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},yf.prototype.openNode=function(Xd){var pf,mf,Tf,vf;if(!Xd.isOpen){if(!this.root&&this.currentLevel===0&&Xd.type===Ra.Element&&(this.root=Xd),mf="",Xd.type===Ra.Element){this.writerOptions.state=qa.OpenTag,mf=this.writer.indent(Xd,this.writerOptions,this.currentLevel)+"<"+Xd.name,vf=Xd.attribs;for(Tf in vf)Jd.call(vf,Tf)&&(pf=vf[Tf],mf+=this.writer.attribute(pf,this.writerOptions,this.currentLevel));mf+=(Xd.children?">":"/>")+this.writer.endline(Xd,this.writerOptions,this.currentLevel),this.writerOptions.state=qa.InsideTag}else this.writerOptions.state=qa.OpenTag,mf=this.writer.indent(Xd,this.writerOptions,this.currentLevel)+""),mf+=this.writer.endline(Xd,this.writerOptions,this.currentLevel);return this.onData(mf,this.currentLevel),Xd.isOpen=!0}},yf.prototype.closeNode=function(Xd){var pf;if(!Xd.isClosed)return pf="",this.writerOptions.state=qa.CloseTag,Xd.type===Ra.Element?pf=this.writer.indent(Xd,this.writerOptions,this.currentLevel)+""+this.writer.endline(Xd,this.writerOptions,this.currentLevel):pf=this.writer.indent(Xd,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Xd,this.writerOptions,this.currentLevel),this.writerOptions.state=qa.None,this.onData(pf,this.currentLevel),Xd.isClosed=!0},yf.prototype.onData=function(Xd,pf){return this.documentStarted=!0,this.onDataCallback(Xd,pf+1)},yf.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},yf.prototype.debugInfo=function(Xd){return Xd==null?"":"node: <"+Xd+">"},yf.prototype.ele=function(){return this.element.apply(this,arguments)},yf.prototype.nod=function(Xd,pf,mf){return this.node(Xd,pf,mf)},yf.prototype.txt=function(Xd){return this.text(Xd)},yf.prototype.dat=function(Xd){return this.cdata(Xd)},yf.prototype.com=function(Xd){return this.comment(Xd)},yf.prototype.ins=function(Xd,pf){return this.instruction(Xd,pf)},yf.prototype.dec=function(Xd,pf,mf){return this.declaration(Xd,pf,mf)},yf.prototype.dtd=function(Xd,pf,mf){return this.doctype(Xd,pf,mf)},yf.prototype.e=function(Xd,pf,mf){return this.element(Xd,pf,mf)},yf.prototype.n=function(Xd,pf,mf){return this.node(Xd,pf,mf)},yf.prototype.t=function(Xd){return this.text(Xd)},yf.prototype.d=function(Xd){return this.cdata(Xd)},yf.prototype.c=function(Xd){return this.comment(Xd)},yf.prototype.r=function(Xd){return this.raw(Xd)},yf.prototype.i=function(Xd,pf){return this.instruction(Xd,pf)},yf.prototype.att=function(){return this.currentNode&&this.currentNode.type===Ra.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},yf.prototype.a=function(){return this.currentNode&&this.currentNode.type===Ra.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},yf.prototype.ent=function(Xd,pf){return this.entity(Xd,pf)},yf.prototype.pent=function(Xd,pf){return this.pEntity(Xd,pf)},yf.prototype.not=function(Xd,pf){return this.notation(Xd,pf)},yf}()}).call(commonjsGlobal)),XMLDocumentCB.exports}var XMLStreamWriter={exports:{}},hasRequiredXMLStreamWriter;function requireXMLStreamWriter(){return hasRequiredXMLStreamWriter||(hasRequiredXMLStreamWriter=1,(function(){var Ra,qa,nd,od=function(ud,dd){for(var pd in dd)ld.call(dd,pd)&&(ud[pd]=dd[pd]);function fd(){this.constructor=ud}return fd.prototype=dd.prototype,ud.prototype=new fd,ud.__super__=dd.prototype,ud},ld={}.hasOwnProperty;Ra=requireNodeType(),nd=requireXMLWriterBase(),qa=requireWriterState(),XMLStreamWriter.exports=function(ud){od(dd,ud);function dd(pd,fd){this.stream=pd,dd.__super__.constructor.call(this,fd)}return dd.prototype.endline=function(pd,fd,md){return pd.isLastRootNode&&fd.state===qa.CloseTag?"":dd.__super__.endline.call(this,pd,fd,md)},dd.prototype.document=function(pd,fd){var md,vd,Ad,Nd,Od,kd,Ld,Gd,Ud;for(Ld=pd.children,vd=Ad=0,Od=Ld.length;Ad0){for(this.stream.write(" ["),this.stream.write(this.endline(pd,fd,md)),fd.state=qa.InsideTag,Od=pd.children,Ad=0,Nd=Od.length;Ad"),this.stream.write(this.endline(pd,fd,md)),fd.state=qa.None,this.closeNode(pd,fd,md)},dd.prototype.element=function(pd,fd,md){var vd,Ad,Nd,Od,kd,Ld,Gd,Ud,Fd;md||(md=0),this.openNode(pd,fd,md),fd.state=qa.OpenTag,this.stream.write(this.indent(pd,fd,md)+"<"+pd.name),Ud=pd.attribs;for(Gd in Ud)ld.call(Ud,Gd)&&(vd=Ud[Gd],this.attribute(vd,fd,md));if(Nd=pd.children.length,Od=Nd===0?null:pd.children[0],Nd===0||pd.children.every(function(jd){return(jd.type===Ra.Text||jd.type===Ra.Raw)&&jd.value===""}))fd.allowEmpty?(this.stream.write(">"),fd.state=qa.CloseTag,this.stream.write("")):(fd.state=qa.CloseTag,this.stream.write(fd.spaceBeforeSlash+"/>"));else if(fd.pretty&&Nd===1&&(Od.type===Ra.Text||Od.type===Ra.Raw)&&Od.value!=null)this.stream.write(">"),fd.state=qa.InsideTag,fd.suppressPrettyCount++,this.writeChildNode(Od,fd,md+1),fd.suppressPrettyCount--,fd.state=qa.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(pd,fd,md)),fd.state=qa.InsideTag,Fd=pd.children,kd=0,Ld=Fd.length;kd")}return this.stream.write(this.endline(pd,fd,md)),fd.state=qa.None,this.closeNode(pd,fd,md)},dd.prototype.processingInstruction=function(pd,fd,md){return this.stream.write(dd.__super__.processingInstruction.call(this,pd,fd,md))},dd.prototype.raw=function(pd,fd,md){return this.stream.write(dd.__super__.raw.call(this,pd,fd,md))},dd.prototype.text=function(pd,fd,md){return this.stream.write(dd.__super__.text.call(this,pd,fd,md))},dd.prototype.dtdAttList=function(pd,fd,md){return this.stream.write(dd.__super__.dtdAttList.call(this,pd,fd,md))},dd.prototype.dtdElement=function(pd,fd,md){return this.stream.write(dd.__super__.dtdElement.call(this,pd,fd,md))},dd.prototype.dtdEntity=function(pd,fd,md){return this.stream.write(dd.__super__.dtdEntity.call(this,pd,fd,md))},dd.prototype.dtdNotation=function(pd,fd,md){return this.stream.write(dd.__super__.dtdNotation.call(this,pd,fd,md))},dd}(nd)}).call(commonjsGlobal)),XMLStreamWriter.exports}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,(function(){var Ra,qa,nd,od,ld,ud,dd,pd,fd,md;md=requireUtility(),pd=md.assign,fd=md.isFunction,nd=requireXMLDOMImplementation(),od=requireXMLDocument(),ld=requireXMLDocumentCB(),dd=requireXMLStringWriter(),ud=requireXMLStreamWriter(),Ra=requireNodeType(),qa=requireWriterState(),lib$2.create=function(vd,Ad,Nd,Od){var kd,Ld;if(vd==null)throw new Error("Root element needs a name.");return Od=pd({},Ad,Nd,Od),kd=new od(Od),Ld=kd.element(vd),Od.headless||(kd.declaration(Od),(Od.pubID!=null||Od.sysID!=null)&&kd.dtd(Od)),Ld},lib$2.begin=function(vd,Ad,Nd){var Od;return fd(vd)&&(Od=[vd,Ad],Ad=Od[0],Nd=Od[1],vd={}),Ad?new ld(vd,Ad,Nd):new od(vd)},lib$2.stringWriter=function(vd){return new dd(vd)},lib$2.streamWriter=function(vd,Ad){return new ud(vd,Ad)},lib$2.implementation=new nd,lib$2.nodeType=Ra,lib$2.writerState=qa}).call(commonjsGlobal)),lib$2}var hasRequiredBuilder;function requireBuilder(){return hasRequiredBuilder||(hasRequiredBuilder=1,(function(){var Ra,qa,nd,od,ld,ud={}.hasOwnProperty;Ra=requireLib(),qa=requireDefaults().defaults,od=function(dd){return typeof dd=="string"&&(dd.indexOf("&")>=0||dd.indexOf(">")>=0||dd.indexOf("<")>=0)},ld=function(dd){return""},nd=function(dd){return dd.replace("]]>","]]]]>")},builder.Builder=function(){function dd(pd){var fd,md,vd;this.options={},md=qa["0.2"];for(fd in md)ud.call(md,fd)&&(vd=md[fd],this.options[fd]=vd);for(fd in pd)ud.call(pd,fd)&&(vd=pd[fd],this.options[fd]=vd)}return dd.prototype.buildObject=function(pd){var fd,md,vd,Ad,Nd;return fd=this.options.attrkey,md=this.options.charkey,Object.keys(pd).length===1&&this.options.rootName===qa["0.2"].rootName?(Nd=Object.keys(pd)[0],pd=pd[Nd]):Nd=this.options.rootName,vd=function(Od){return function(kd,Ld){var Gd,Ud,Fd,jd,qd,zd;if(typeof Ld!="object")Od.options.cdata&&od(Ld)?kd.raw(ld(Ld)):kd.txt(Ld);else if(Array.isArray(Ld)){for(jd in Ld)if(ud.call(Ld,jd)){Ud=Ld[jd];for(qd in Ud)Fd=Ud[qd],kd=vd(kd.ele(qd),Fd).up()}}else for(qd in Ld)if(ud.call(Ld,qd))if(Ud=Ld[qd],qd===fd){if(typeof Ud=="object")for(Gd in Ud)zd=Ud[Gd],kd=kd.att(Gd,zd)}else if(qd===md)Od.options.cdata&&od(Ud)?kd=kd.raw(ld(Ud)):kd=kd.txt(Ud);else if(Array.isArray(Ud))for(jd in Ud)ud.call(Ud,jd)&&(Fd=Ud[jd],typeof Fd=="string"?Od.options.cdata&&od(Fd)?kd=kd.ele(qd).raw(ld(Fd)).up():kd=kd.ele(qd,Fd).up():kd=vd(kd.ele(qd),Fd).up());else typeof Ud=="object"?kd=vd(kd.ele(qd),Ud).up():typeof Ud=="string"&&Od.options.cdata&&od(Ud)?kd=kd.ele(qd).raw(ld(Ud)).up():(Ud==null&&(Ud=""),kd=kd.ele(qd,Ud.toString()).up());return kd}}(this),Ad=Ra.create(Nd,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),vd(Ad,pd).end(this.options.renderOpts)},dd}()}).call(commonjsGlobal)),builder}var parser={},sax={},hasRequiredSax;function requireSax(){return hasRequiredSax||(hasRequiredSax=1,function(Ra){(function(qa){qa.parser=function(Cf,xf){return new od(Cf,xf)},qa.SAXParser=od,qa.SAXStream=vd,qa.createStream=md,qa.MAX_BUFFER_LENGTH=64*1024;var nd=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];qa.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function od(Cf,xf){if(!(this instanceof od))return new od(Cf,xf);var Xf=this;ud(Xf),Xf.q=Xf.c="",Xf.bufferCheckPosition=qa.MAX_BUFFER_LENGTH,Xf.opt=xf||{},Xf.opt.lowercase=Xf.opt.lowercase||Xf.opt.lowercasetags,Xf.looseCase=Xf.opt.lowercase?"toLowerCase":"toUpperCase",Xf.tags=[],Xf.closed=Xf.closedRoot=Xf.sawRoot=!1,Xf.tag=Xf.error=null,Xf.strict=!!Cf,Xf.noscript=!!(Cf||Xf.opt.noscript),Xf.state=Xd.BEGIN,Xf.strictEntities=Xf.opt.strictEntities,Xf.ENTITIES=Xf.strictEntities?Object.create(qa.XML_ENTITIES):Object.create(qa.ENTITIES),Xf.attribList=[],Xf.opt.xmlns&&(Xf.ns=Object.create(Ld)),Xf.opt.unquotedAttributeValues===void 0&&(Xf.opt.unquotedAttributeValues=!Cf),Xf.trackPosition=Xf.opt.position!==!1,Xf.trackPosition&&(Xf.position=Xf.line=Xf.column=0),mf(Xf,"onready")}Object.create||(Object.create=function(Cf){function xf(){}xf.prototype=Cf;var Xf=new xf;return Xf}),Object.keys||(Object.keys=function(Cf){var xf=[];for(var Xf in Cf)Cf.hasOwnProperty(Xf)&&xf.push(Xf);return xf});function ld(Cf){for(var xf=Math.max(qa.MAX_BUFFER_LENGTH,10),Xf=0,sh=0,Ah=nd.length;shxf)switch(nd[sh]){case"textNode":vf(Cf);break;case"cdata":Tf(Cf,"oncdata",Cf.cdata),Cf.cdata="";break;case"script":Tf(Cf,"onscript",Cf.script),Cf.script="";break;default:Sf(Cf,"Max buffer length exceeded: "+nd[sh])}Xf=Math.max(Xf,dh)}var Rf=qa.MAX_BUFFER_LENGTH-Xf;Cf.bufferCheckPosition=Rf+Cf.position}function ud(Cf){for(var xf=0,Xf=nd.length;xf"||qd(Cf)}function Jd(Cf,xf){return Cf.test(xf)}function yf(Cf,xf){return!Jd(Cf,xf)}var Xd=0;qa.STATE={BEGIN:Xd++,BEGIN_WHITESPACE:Xd++,TEXT:Xd++,TEXT_ENTITY:Xd++,OPEN_WAKA:Xd++,SGML_DECL:Xd++,SGML_DECL_QUOTED:Xd++,DOCTYPE:Xd++,DOCTYPE_QUOTED:Xd++,DOCTYPE_DTD:Xd++,DOCTYPE_DTD_QUOTED:Xd++,COMMENT_STARTING:Xd++,COMMENT:Xd++,COMMENT_ENDING:Xd++,COMMENT_ENDED:Xd++,CDATA:Xd++,CDATA_ENDING:Xd++,CDATA_ENDING_2:Xd++,PROC_INST:Xd++,PROC_INST_BODY:Xd++,PROC_INST_ENDING:Xd++,OPEN_TAG:Xd++,OPEN_TAG_SLASH:Xd++,ATTRIB:Xd++,ATTRIB_NAME:Xd++,ATTRIB_NAME_SAW_WHITE:Xd++,ATTRIB_VALUE:Xd++,ATTRIB_VALUE_QUOTED:Xd++,ATTRIB_VALUE_CLOSED:Xd++,ATTRIB_VALUE_UNQUOTED:Xd++,ATTRIB_VALUE_ENTITY_Q:Xd++,ATTRIB_VALUE_ENTITY_U:Xd++,CLOSE_TAG:Xd++,CLOSE_TAG_SAW_WHITE:Xd++,SCRIPT:Xd++,SCRIPT_ENDING:Xd++},qa.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},qa.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(qa.ENTITIES).forEach(function(Cf){var xf=qa.ENTITIES[Cf],Xf=typeof xf=="number"?String.fromCharCode(xf):xf;qa.ENTITIES[Cf]=Xf});for(var pf in qa.STATE)qa.STATE[qa.STATE[pf]]=pf;Xd=qa.STATE;function mf(Cf,xf,Xf){Cf[xf]&&Cf[xf](Xf)}function Tf(Cf,xf,Xf){Cf.textNode&&vf(Cf),mf(Cf,xf,Xf)}function vf(Cf){Cf.textNode=Af(Cf.opt,Cf.textNode),Cf.textNode&&mf(Cf,"ontext",Cf.textNode),Cf.textNode=""}function Af(Cf,xf){return Cf.trim&&(xf=xf.trim()),Cf.normalize&&(xf=xf.replace(/\s+/g," ")),xf}function Sf(Cf,xf){return vf(Cf),Cf.trackPosition&&(xf+=` +`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal)),defaults}var builder={},lib$2={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var Ra,qa,nd,od,ld,ud,dd,pd=[].slice,fd={}.hasOwnProperty;Ra=function(){var md,vd,Ad,Nd,Od,kd;if(kd=arguments[0],Od=2<=arguments.length?pd.call(arguments,1):[],ld(Object.assign))Object.assign.apply(null,arguments);else for(md=0,Ad=Od.length;md":"attribute: {"+nd+"}, parent: <"+this.parent.name+">"},qa.prototype.isEqualNode=function(nd){return!(nd.namespaceURI!==this.namespaceURI||nd.prefix!==this.prefix||nd.localName!==this.localName||nd.value!==this.value)},qa}()}).call(commonjsGlobal)),XMLAttribute.exports}var XMLNamedNodeMap={exports:{}},hasRequiredXMLNamedNodeMap;function requireXMLNamedNodeMap(){return hasRequiredXMLNamedNodeMap||(hasRequiredXMLNamedNodeMap=1,(function(){XMLNamedNodeMap.exports=function(){function Ra(qa){this.nodes=qa}return Object.defineProperty(Ra.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Ra.prototype.clone=function(){return this.nodes=null},Ra.prototype.getNamedItem=function(qa){return this.nodes[qa]},Ra.prototype.setNamedItem=function(qa){var nd;return nd=this.nodes[qa.nodeName],this.nodes[qa.nodeName]=qa,nd||null},Ra.prototype.removeNamedItem=function(qa){var nd;return nd=this.nodes[qa],delete this.nodes[qa],nd||null},Ra.prototype.item=function(qa){return this.nodes[Object.keys(this.nodes)[qa]]||null},Ra.prototype.getNamedItemNS=function(qa,nd){throw new Error("This DOM method is not implemented.")},Ra.prototype.setNamedItemNS=function(qa){throw new Error("This DOM method is not implemented.")},Ra.prototype.removeNamedItemNS=function(qa,nd){throw new Error("This DOM method is not implemented.")},Ra}()}).call(commonjsGlobal)),XMLNamedNodeMap.exports}var hasRequiredXMLElement;function requireXMLElement(){return hasRequiredXMLElement||(hasRequiredXMLElement=1,(function(){var Ra,qa,nd,od,ld,ud,dd,pd,fd=function(vd,Ad){for(var Nd in Ad)md.call(Ad,Nd)&&(vd[Nd]=Ad[Nd]);function Od(){this.constructor=vd}return Od.prototype=Ad.prototype,vd.prototype=new Od,vd.__super__=Ad.prototype,vd},md={}.hasOwnProperty;pd=requireUtility(),dd=pd.isObject,ud=pd.isFunction,ld=pd.getValue,od=requireXMLNode(),Ra=requireNodeType(),qa=requireXMLAttribute(),nd=requireXMLNamedNodeMap(),XMLElement.exports=function(vd){fd(Ad,vd);function Ad(Nd,Od,kd){var Ld,Gd,jd,Fd;if(Ad.__super__.constructor.call(this,Nd),Od==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(Od),this.type=Ra.Element,this.attribs={},this.schemaTypeInfo=null,kd!=null&&this.attribute(kd),Nd.type===Ra.Document&&(this.isRoot=!0,this.documentObject=Nd,Nd.rootObject=this,Nd.children)){for(Fd=Nd.children,Gd=0,jd=Fd.length;Gd=Ld;Od=0<=Ld?++kd:--kd)if(!this.attribs[Od].isEqualNode(Nd.attribs[Od]))return!1;return!0},Ad}(od)}).call(commonjsGlobal)),XMLElement.exports}var XMLCData={exports:{}},XMLCharacterData={exports:{}},hasRequiredXMLCharacterData;function requireXMLCharacterData(){return hasRequiredXMLCharacterData||(hasRequiredXMLCharacterData=1,(function(){var Ra,qa=function(od,ld){for(var ud in ld)nd.call(ld,ud)&&(od[ud]=ld[ud]);function dd(){this.constructor=od}return dd.prototype=ld.prototype,od.prototype=new dd,od.__super__=ld.prototype,od},nd={}.hasOwnProperty;Ra=requireXMLNode(),XMLCharacterData.exports=function(od){qa(ld,od);function ld(ud){ld.__super__.constructor.call(this,ud),this.value=""}return Object.defineProperty(ld.prototype,"data",{get:function(){return this.value},set:function(ud){return this.value=ud||""}}),Object.defineProperty(ld.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(ld.prototype,"textContent",{get:function(){return this.value},set:function(ud){return this.value=ud||""}}),ld.prototype.clone=function(){return Object.create(this)},ld.prototype.substringData=function(ud,dd){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.appendData=function(ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.insertData=function(ud,dd){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.deleteData=function(ud,dd){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.replaceData=function(ud,dd,pd){throw new Error("This DOM method is not implemented."+this.debugInfo())},ld.prototype.isEqualNode=function(ud){return!(!ld.__super__.isEqualNode.apply(this,arguments).isEqualNode(ud)||ud.data!==this.data)},ld}(Ra)}).call(commonjsGlobal)),XMLCharacterData.exports}var hasRequiredXMLCData;function requireXMLCData(){return hasRequiredXMLCData||(hasRequiredXMLCData=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;Ra=requireNodeType(),qa=requireXMLCharacterData(),XMLCData.exports=function(ld){nd(ud,ld);function ud(dd,pd){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=Ra.CData,this.value=this.stringify.cdata(pd)}return ud.prototype.clone=function(){return Object.create(this)},ud.prototype.toString=function(dd){return this.options.writer.cdata(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLCData.exports}var XMLComment={exports:{}},hasRequiredXMLComment;function requireXMLComment(){return hasRequiredXMLComment||(hasRequiredXMLComment=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;Ra=requireNodeType(),qa=requireXMLCharacterData(),XMLComment.exports=function(ld){nd(ud,ld);function ud(dd,pd){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=Ra.Comment,this.value=this.stringify.comment(pd)}return ud.prototype.clone=function(){return Object.create(this)},ud.prototype.toString=function(dd){return this.options.writer.comment(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLComment.exports}var XMLDeclaration={exports:{}},hasRequiredXMLDeclaration;function requireXMLDeclaration(){return hasRequiredXMLDeclaration||(hasRequiredXMLDeclaration=1,(function(){var Ra,qa,nd,od=function(ud,dd){for(var pd in dd)ld.call(dd,pd)&&(ud[pd]=dd[pd]);function fd(){this.constructor=ud}return fd.prototype=dd.prototype,ud.prototype=new fd,ud.__super__=dd.prototype,ud},ld={}.hasOwnProperty;nd=requireUtility().isObject,qa=requireXMLNode(),Ra=requireNodeType(),XMLDeclaration.exports=function(ud){od(dd,ud);function dd(pd,fd,md,vd){var Ad;dd.__super__.constructor.call(this,pd),nd(fd)&&(Ad=fd,fd=Ad.version,md=Ad.encoding,vd=Ad.standalone),fd||(fd="1.0"),this.type=Ra.Declaration,this.version=this.stringify.xmlVersion(fd),md!=null&&(this.encoding=this.stringify.xmlEncoding(md)),vd!=null&&(this.standalone=this.stringify.xmlStandalone(vd))}return dd.prototype.toString=function(pd){return this.options.writer.declaration(this,this.options.writer.filterOptions(pd))},dd}(qa)}).call(commonjsGlobal)),XMLDeclaration.exports}var XMLDocType={exports:{}},XMLDTDAttList={exports:{}},hasRequiredXMLDTDAttList;function requireXMLDTDAttList(){return hasRequiredXMLDTDAttList||(hasRequiredXMLDTDAttList=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;qa=requireXMLNode(),Ra=requireNodeType(),XMLDTDAttList.exports=function(ld){nd(ud,ld);function ud(dd,pd,fd,md,vd,Ad){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(fd==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(pd));if(!md)throw new Error("Missing DTD attribute type. "+this.debugInfo(pd));if(!vd)throw new Error("Missing DTD attribute default. "+this.debugInfo(pd));if(vd.indexOf("#")!==0&&(vd="#"+vd),!vd.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(pd));if(Ad&&!vd.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(pd));this.elementName=this.stringify.name(pd),this.type=Ra.AttributeDeclaration,this.attributeName=this.stringify.name(fd),this.attributeType=this.stringify.dtdAttType(md),Ad&&(this.defaultValue=this.stringify.dtdAttDefault(Ad)),this.defaultValueType=vd}return ud.prototype.toString=function(dd){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLDTDAttList.exports}var XMLDTDEntity={exports:{}},hasRequiredXMLDTDEntity;function requireXMLDTDEntity(){return hasRequiredXMLDTDEntity||(hasRequiredXMLDTDEntity=1,(function(){var Ra,qa,nd,od=function(ud,dd){for(var pd in dd)ld.call(dd,pd)&&(ud[pd]=dd[pd]);function fd(){this.constructor=ud}return fd.prototype=dd.prototype,ud.prototype=new fd,ud.__super__=dd.prototype,ud},ld={}.hasOwnProperty;nd=requireUtility().isObject,qa=requireXMLNode(),Ra=requireNodeType(),XMLDTDEntity.exports=function(ud){od(dd,ud);function dd(pd,fd,md,vd){if(dd.__super__.constructor.call(this,pd),md==null)throw new Error("Missing DTD entity name. "+this.debugInfo(md));if(vd==null)throw new Error("Missing DTD entity value. "+this.debugInfo(md));if(this.pe=!!fd,this.name=this.stringify.name(md),this.type=Ra.EntityDeclaration,!nd(vd))this.value=this.stringify.dtdEntityValue(vd),this.internal=!0;else{if(!vd.pubID&&!vd.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(md));if(vd.pubID&&!vd.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(md));if(this.internal=!1,vd.pubID!=null&&(this.pubID=this.stringify.dtdPubID(vd.pubID)),vd.sysID!=null&&(this.sysID=this.stringify.dtdSysID(vd.sysID)),vd.nData!=null&&(this.nData=this.stringify.dtdNData(vd.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(md))}}return Object.defineProperty(dd.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(dd.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(dd.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(dd.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(dd.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(dd.prototype,"xmlVersion",{get:function(){return null}}),dd.prototype.toString=function(pd){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(pd))},dd}(qa)}).call(commonjsGlobal)),XMLDTDEntity.exports}var XMLDTDElement={exports:{}},hasRequiredXMLDTDElement;function requireXMLDTDElement(){return hasRequiredXMLDTDElement||(hasRequiredXMLDTDElement=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;qa=requireXMLNode(),Ra=requireNodeType(),XMLDTDElement.exports=function(ld){nd(ud,ld);function ud(dd,pd,fd){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing DTD element name. "+this.debugInfo());fd||(fd="(#PCDATA)"),Array.isArray(fd)&&(fd="("+fd.join(",")+")"),this.name=this.stringify.name(pd),this.type=Ra.ElementDeclaration,this.value=this.stringify.dtdElementValue(fd)}return ud.prototype.toString=function(dd){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLDTDElement.exports}var XMLDTDNotation={exports:{}},hasRequiredXMLDTDNotation;function requireXMLDTDNotation(){return hasRequiredXMLDTDNotation||(hasRequiredXMLDTDNotation=1,(function(){var Ra,qa,nd=function(ld,ud){for(var dd in ud)od.call(ud,dd)&&(ld[dd]=ud[dd]);function pd(){this.constructor=ld}return pd.prototype=ud.prototype,ld.prototype=new pd,ld.__super__=ud.prototype,ld},od={}.hasOwnProperty;qa=requireXMLNode(),Ra=requireNodeType(),XMLDTDNotation.exports=function(ld){nd(ud,ld);function ud(dd,pd,fd){if(ud.__super__.constructor.call(this,dd),pd==null)throw new Error("Missing DTD notation name. "+this.debugInfo(pd));if(!fd.pubID&&!fd.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(pd));this.name=this.stringify.name(pd),this.type=Ra.NotationDeclaration,fd.pubID!=null&&(this.pubID=this.stringify.dtdPubID(fd.pubID)),fd.sysID!=null&&(this.sysID=this.stringify.dtdSysID(fd.sysID))}return Object.defineProperty(ud.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ud.prototype,"systemId",{get:function(){return this.sysID}}),ud.prototype.toString=function(dd){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(dd))},ud}(qa)}).call(commonjsGlobal)),XMLDTDNotation.exports}var hasRequiredXMLDocType;function requireXMLDocType(){return hasRequiredXMLDocType||(hasRequiredXMLDocType=1,(function(){var Ra,qa,nd,od,ld,ud,dd,pd,fd=function(vd,Ad){for(var Nd in Ad)md.call(Ad,Nd)&&(vd[Nd]=Ad[Nd]);function Od(){this.constructor=vd}return Od.prototype=Ad.prototype,vd.prototype=new Od,vd.__super__=Ad.prototype,vd},md={}.hasOwnProperty;pd=requireUtility().isObject,dd=requireXMLNode(),Ra=requireNodeType(),qa=requireXMLDTDAttList(),od=requireXMLDTDEntity(),nd=requireXMLDTDElement(),ld=requireXMLDTDNotation(),ud=requireXMLNamedNodeMap(),XMLDocType.exports=function(vd){fd(Ad,vd);function Ad(Nd,Od,kd){var Ld,Gd,jd,Fd,Ud,qd;if(Ad.__super__.constructor.call(this,Nd),this.type=Ra.DocType,Nd.children){for(Fd=Nd.children,Gd=0,jd=Fd.length;Gd":(zd=this.parent)!=null&&zd.name?"node: <"+Ud+">, parent: <"+this.parent.name+">":"node: <"+Ud+">"},Fd.prototype.ele=function(Ud,qd,zd){return this.element(Ud,qd,zd)},Fd.prototype.nod=function(Ud,qd,zd){return this.node(Ud,qd,zd)},Fd.prototype.txt=function(Ud){return this.text(Ud)},Fd.prototype.dat=function(Ud){return this.cdata(Ud)},Fd.prototype.com=function(Ud){return this.comment(Ud)},Fd.prototype.ins=function(Ud,qd){return this.instruction(Ud,qd)},Fd.prototype.doc=function(){return this.document()},Fd.prototype.dec=function(Ud,qd,zd){return this.declaration(Ud,qd,zd)},Fd.prototype.e=function(Ud,qd,zd){return this.element(Ud,qd,zd)},Fd.prototype.n=function(Ud,qd,zd){return this.node(Ud,qd,zd)},Fd.prototype.t=function(Ud){return this.text(Ud)},Fd.prototype.d=function(Ud){return this.cdata(Ud)},Fd.prototype.c=function(Ud){return this.comment(Ud)},Fd.prototype.r=function(Ud){return this.raw(Ud)},Fd.prototype.i=function(Ud,qd){return this.instruction(Ud,qd)},Fd.prototype.u=function(){return this.up()},Fd.prototype.importXMLBuilder=function(Ud){return this.importDocument(Ud)},Fd.prototype.replaceChild=function(Ud,qd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.removeChild=function(Ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.appendChild=function(Ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.hasChildNodes=function(){return this.children.length!==0},Fd.prototype.cloneNode=function(Ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.isSupported=function(Ud,qd){return!0},Fd.prototype.hasAttributes=function(){return this.attribs.length!==0},Fd.prototype.compareDocumentPosition=function(Ud){var qd,zd;return qd=this,qd===Ud?0:this.document()!==Ud.document()?(zd=Ra.Disconnected|Ra.ImplementationSpecific,Math.random()<.5?zd|=Ra.Preceding:zd|=Ra.Following,zd):qd.isAncestor(Ud)?Ra.Contains|Ra.Preceding:qd.isDescendant(Ud)?Ra.Contains|Ra.Following:qd.isPreceding(Ud)?Ra.Preceding:Ra.Following},Fd.prototype.isSameNode=function(Ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.lookupPrefix=function(Ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.isDefaultNamespace=function(Ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.lookupNamespaceURI=function(Ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.isEqualNode=function(Ud){var qd,zd,Wd;if(Ud.nodeType!==this.nodeType||Ud.children.length!==this.children.length)return!1;for(qd=zd=0,Wd=this.children.length-1;0<=Wd?zd<=Wd:zd>=Wd;qd=0<=Wd?++zd:--zd)if(!this.children[qd].isEqualNode(Ud.children[qd]))return!1;return!0},Fd.prototype.getFeature=function(Ud,qd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.setUserData=function(Ud,qd,zd){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.getUserData=function(Ud){throw new Error("This DOM method is not implemented."+this.debugInfo())},Fd.prototype.contains=function(Ud){return Ud?Ud===this||this.isDescendant(Ud):!1},Fd.prototype.isDescendant=function(Ud){var qd,zd,Wd,Jd,_f;for(_f=this.children,Wd=0,Jd=_f.length;Wdzd},Fd.prototype.treePosition=function(Ud){var qd,zd;return zd=0,qd=!1,this.foreachTreeNode(this.document(),function(Wd){if(zd++,!qd&&Wd===Ud)return qd=!0}),qd?zd:-1},Fd.prototype.foreachTreeNode=function(Ud,qd){var zd,Wd,Jd,_f,Xd;for(Ud||(Ud=this.document()),_f=Ud.children,Wd=0,Jd=_f.length;Wd","]]]]>"),this.assertLegalChar(od))},nd.prototype.comment=function(od){if(this.options.noValidation)return od;if(od=""+od||"",od.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+od);return this.assertLegalChar(od)},nd.prototype.raw=function(od){return this.options.noValidation?od:""+od||""},nd.prototype.attValue=function(od){return this.options.noValidation?od:this.assertLegalChar(this.attEscape(od=""+od||""))},nd.prototype.insTarget=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.insValue=function(od){if(this.options.noValidation)return od;if(od=""+od||"",od.match(/\?>/))throw new Error("Invalid processing instruction value: "+od);return this.assertLegalChar(od)},nd.prototype.xmlVersion=function(od){if(this.options.noValidation)return od;if(od=""+od||"",!od.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+od);return od},nd.prototype.xmlEncoding=function(od){if(this.options.noValidation)return od;if(od=""+od||"",!od.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+od);return this.assertLegalChar(od)},nd.prototype.xmlStandalone=function(od){return this.options.noValidation?od:od?"yes":"no"},nd.prototype.dtdPubID=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdSysID=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdElementValue=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdAttType=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdAttDefault=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdEntityValue=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.dtdNData=function(od){return this.options.noValidation?od:this.assertLegalChar(""+od||"")},nd.prototype.convertAttKey="@",nd.prototype.convertPIKey="?",nd.prototype.convertTextKey="#text",nd.prototype.convertCDataKey="#cdata",nd.prototype.convertCommentKey="#comment",nd.prototype.convertRawKey="#raw",nd.prototype.assertLegalChar=function(od){var ld,ud;if(this.options.noValidation)return od;if(ld="",this.options.version==="1.0"){if(ld=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ud=od.match(ld))throw new Error("Invalid character in string: "+od+" at index "+ud.index)}else if(this.options.version==="1.1"&&(ld=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ud=od.match(ld)))throw new Error("Invalid character in string: "+od+" at index "+ud.index);return od},nd.prototype.assertLegalName=function(od){var ld;if(this.options.noValidation)return od;if(this.assertLegalChar(od),ld=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!od.match(ld))throw new Error("Invalid character in name");return od},nd.prototype.textEscape=function(od){var ld;return this.options.noValidation?od:(ld=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,od.replace(ld,"&").replace(//g,">").replace(/\r/g," "))},nd.prototype.attEscape=function(od){var ld;return this.options.noValidation?od:(ld=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,od.replace(ld,"&").replace(/0)?new Array(fd).join(dd.indent):""},ld.prototype.endline=function(ud,dd,pd){return!dd.pretty||dd.suppressPrettyCount?"":dd.newline},ld.prototype.attribute=function(ud,dd,pd){var fd;return this.openAttribute(ud,dd,pd),fd=" "+ud.name+'="'+ud.value+'"',this.closeAttribute(ud,dd,pd),fd},ld.prototype.cdata=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.comment=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.declaration=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+"",fd+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.docType=function(ud,dd,pd){var fd,md,vd,Ad,Nd;if(pd||(pd=0),this.openNode(ud,dd,pd),dd.state=qa.OpenTag,Ad=this.indent(ud,dd,pd),Ad+="0){for(Ad+=" [",Ad+=this.endline(ud,dd,pd),dd.state=qa.InsideTag,Nd=ud.children,md=0,vd=Nd.length;md",Ad+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),Ad},ld.prototype.element=function(ud,dd,pd){var fd,md,vd,Ad,Nd,Od,kd,Ld,Gd,jd,Fd,Ud,qd,zd;pd||(pd=0),jd=!1,Fd="",this.openNode(ud,dd,pd),dd.state=qa.OpenTag,Fd+=this.indent(ud,dd,pd)+"<"+ud.name,Ud=ud.attribs;for(Gd in Ud)od.call(Ud,Gd)&&(fd=Ud[Gd],Fd+=this.attribute(fd,dd,pd));if(vd=ud.children.length,Ad=vd===0?null:ud.children[0],vd===0||ud.children.every(function(Wd){return(Wd.type===Ra.Text||Wd.type===Ra.Raw)&&Wd.value===""}))dd.allowEmpty?(Fd+=">",dd.state=qa.CloseTag,Fd+=""+this.endline(ud,dd,pd)):(dd.state=qa.CloseTag,Fd+=dd.spaceBeforeSlash+"/>"+this.endline(ud,dd,pd));else if(dd.pretty&&vd===1&&(Ad.type===Ra.Text||Ad.type===Ra.Raw)&&Ad.value!=null)Fd+=">",dd.state=qa.InsideTag,dd.suppressPrettyCount++,jd=!0,Fd+=this.writeChildNode(Ad,dd,pd+1),dd.suppressPrettyCount--,jd=!1,dd.state=qa.CloseTag,Fd+=""+this.endline(ud,dd,pd);else{if(dd.dontPrettyTextNodes){for(qd=ud.children,Nd=0,kd=qd.length;Nd"+this.endline(ud,dd,pd),dd.state=qa.InsideTag,zd=ud.children,Od=0,Ld=zd.length;Od",jd&&dd.suppressPrettyCount--,Fd+=this.endline(ud,dd,pd),dd.state=qa.None}return this.closeNode(ud,dd,pd),Fd},ld.prototype.writeChildNode=function(ud,dd,pd){switch(ud.type){case Ra.CData:return this.cdata(ud,dd,pd);case Ra.Comment:return this.comment(ud,dd,pd);case Ra.Element:return this.element(ud,dd,pd);case Ra.Raw:return this.raw(ud,dd,pd);case Ra.Text:return this.text(ud,dd,pd);case Ra.ProcessingInstruction:return this.processingInstruction(ud,dd,pd);case Ra.Dummy:return"";case Ra.Declaration:return this.declaration(ud,dd,pd);case Ra.DocType:return this.docType(ud,dd,pd);case Ra.AttributeDeclaration:return this.dtdAttList(ud,dd,pd);case Ra.ElementDeclaration:return this.dtdElement(ud,dd,pd);case Ra.EntityDeclaration:return this.dtdEntity(ud,dd,pd);case Ra.NotationDeclaration:return this.dtdNotation(ud,dd,pd);default:throw new Error("Unknown XML node type: "+ud.constructor.name)}},ld.prototype.processingInstruction=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+"",fd+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.raw=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd),dd.state=qa.InsideTag,fd+=ud.value,dd.state=qa.CloseTag,fd+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.text=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd),dd.state=qa.InsideTag,fd+=ud.value,dd.state=qa.CloseTag,fd+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.dtdAttList=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.dtdElement=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.dtdEntity=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.dtdNotation=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+""+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.openNode=function(ud,dd,pd){},ld.prototype.closeNode=function(ud,dd,pd){},ld.prototype.openAttribute=function(ud,dd,pd){},ld.prototype.closeAttribute=function(ud,dd,pd){},ld}()}).call(commonjsGlobal)),XMLWriterBase.exports}var hasRequiredXMLStringWriter;function requireXMLStringWriter(){return hasRequiredXMLStringWriter||(hasRequiredXMLStringWriter=1,(function(){var Ra,qa=function(od,ld){for(var ud in ld)nd.call(ld,ud)&&(od[ud]=ld[ud]);function dd(){this.constructor=od}return dd.prototype=ld.prototype,od.prototype=new dd,od.__super__=ld.prototype,od},nd={}.hasOwnProperty;Ra=requireXMLWriterBase(),XMLStringWriter.exports=function(od){qa(ld,od);function ld(ud){ld.__super__.constructor.call(this,ud)}return ld.prototype.document=function(ud,dd){var pd,fd,md,vd,Ad;for(dd=this.filterOptions(dd),vd="",Ad=ud.children,fd=0,md=Ad.length;fd=0;)this.up();return this.onEnd()},_f.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},_f.prototype.openNode=function(Xd){var pf,mf,Sf,Tf;if(!Xd.isOpen){if(!this.root&&this.currentLevel===0&&Xd.type===Ra.Element&&(this.root=Xd),mf="",Xd.type===Ra.Element){this.writerOptions.state=qa.OpenTag,mf=this.writer.indent(Xd,this.writerOptions,this.currentLevel)+"<"+Xd.name,Tf=Xd.attribs;for(Sf in Tf)Jd.call(Tf,Sf)&&(pf=Tf[Sf],mf+=this.writer.attribute(pf,this.writerOptions,this.currentLevel));mf+=(Xd.children?">":"/>")+this.writer.endline(Xd,this.writerOptions,this.currentLevel),this.writerOptions.state=qa.InsideTag}else this.writerOptions.state=qa.OpenTag,mf=this.writer.indent(Xd,this.writerOptions,this.currentLevel)+""),mf+=this.writer.endline(Xd,this.writerOptions,this.currentLevel);return this.onData(mf,this.currentLevel),Xd.isOpen=!0}},_f.prototype.closeNode=function(Xd){var pf;if(!Xd.isClosed)return pf="",this.writerOptions.state=qa.CloseTag,Xd.type===Ra.Element?pf=this.writer.indent(Xd,this.writerOptions,this.currentLevel)+""+this.writer.endline(Xd,this.writerOptions,this.currentLevel):pf=this.writer.indent(Xd,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Xd,this.writerOptions,this.currentLevel),this.writerOptions.state=qa.None,this.onData(pf,this.currentLevel),Xd.isClosed=!0},_f.prototype.onData=function(Xd,pf){return this.documentStarted=!0,this.onDataCallback(Xd,pf+1)},_f.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},_f.prototype.debugInfo=function(Xd){return Xd==null?"":"node: <"+Xd+">"},_f.prototype.ele=function(){return this.element.apply(this,arguments)},_f.prototype.nod=function(Xd,pf,mf){return this.node(Xd,pf,mf)},_f.prototype.txt=function(Xd){return this.text(Xd)},_f.prototype.dat=function(Xd){return this.cdata(Xd)},_f.prototype.com=function(Xd){return this.comment(Xd)},_f.prototype.ins=function(Xd,pf){return this.instruction(Xd,pf)},_f.prototype.dec=function(Xd,pf,mf){return this.declaration(Xd,pf,mf)},_f.prototype.dtd=function(Xd,pf,mf){return this.doctype(Xd,pf,mf)},_f.prototype.e=function(Xd,pf,mf){return this.element(Xd,pf,mf)},_f.prototype.n=function(Xd,pf,mf){return this.node(Xd,pf,mf)},_f.prototype.t=function(Xd){return this.text(Xd)},_f.prototype.d=function(Xd){return this.cdata(Xd)},_f.prototype.c=function(Xd){return this.comment(Xd)},_f.prototype.r=function(Xd){return this.raw(Xd)},_f.prototype.i=function(Xd,pf){return this.instruction(Xd,pf)},_f.prototype.att=function(){return this.currentNode&&this.currentNode.type===Ra.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_f.prototype.a=function(){return this.currentNode&&this.currentNode.type===Ra.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_f.prototype.ent=function(Xd,pf){return this.entity(Xd,pf)},_f.prototype.pent=function(Xd,pf){return this.pEntity(Xd,pf)},_f.prototype.not=function(Xd,pf){return this.notation(Xd,pf)},_f}()}).call(commonjsGlobal)),XMLDocumentCB.exports}var XMLStreamWriter={exports:{}},hasRequiredXMLStreamWriter;function requireXMLStreamWriter(){return hasRequiredXMLStreamWriter||(hasRequiredXMLStreamWriter=1,(function(){var Ra,qa,nd,od=function(ud,dd){for(var pd in dd)ld.call(dd,pd)&&(ud[pd]=dd[pd]);function fd(){this.constructor=ud}return fd.prototype=dd.prototype,ud.prototype=new fd,ud.__super__=dd.prototype,ud},ld={}.hasOwnProperty;Ra=requireNodeType(),nd=requireXMLWriterBase(),qa=requireWriterState(),XMLStreamWriter.exports=function(ud){od(dd,ud);function dd(pd,fd){this.stream=pd,dd.__super__.constructor.call(this,fd)}return dd.prototype.endline=function(pd,fd,md){return pd.isLastRootNode&&fd.state===qa.CloseTag?"":dd.__super__.endline.call(this,pd,fd,md)},dd.prototype.document=function(pd,fd){var md,vd,Ad,Nd,Od,kd,Ld,Gd,jd;for(Ld=pd.children,vd=Ad=0,Od=Ld.length;Ad0){for(this.stream.write(" ["),this.stream.write(this.endline(pd,fd,md)),fd.state=qa.InsideTag,Od=pd.children,Ad=0,Nd=Od.length;Ad"),this.stream.write(this.endline(pd,fd,md)),fd.state=qa.None,this.closeNode(pd,fd,md)},dd.prototype.element=function(pd,fd,md){var vd,Ad,Nd,Od,kd,Ld,Gd,jd,Fd;md||(md=0),this.openNode(pd,fd,md),fd.state=qa.OpenTag,this.stream.write(this.indent(pd,fd,md)+"<"+pd.name),jd=pd.attribs;for(Gd in jd)ld.call(jd,Gd)&&(vd=jd[Gd],this.attribute(vd,fd,md));if(Nd=pd.children.length,Od=Nd===0?null:pd.children[0],Nd===0||pd.children.every(function(Ud){return(Ud.type===Ra.Text||Ud.type===Ra.Raw)&&Ud.value===""}))fd.allowEmpty?(this.stream.write(">"),fd.state=qa.CloseTag,this.stream.write("")):(fd.state=qa.CloseTag,this.stream.write(fd.spaceBeforeSlash+"/>"));else if(fd.pretty&&Nd===1&&(Od.type===Ra.Text||Od.type===Ra.Raw)&&Od.value!=null)this.stream.write(">"),fd.state=qa.InsideTag,fd.suppressPrettyCount++,this.writeChildNode(Od,fd,md+1),fd.suppressPrettyCount--,fd.state=qa.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(pd,fd,md)),fd.state=qa.InsideTag,Fd=pd.children,kd=0,Ld=Fd.length;kd")}return this.stream.write(this.endline(pd,fd,md)),fd.state=qa.None,this.closeNode(pd,fd,md)},dd.prototype.processingInstruction=function(pd,fd,md){return this.stream.write(dd.__super__.processingInstruction.call(this,pd,fd,md))},dd.prototype.raw=function(pd,fd,md){return this.stream.write(dd.__super__.raw.call(this,pd,fd,md))},dd.prototype.text=function(pd,fd,md){return this.stream.write(dd.__super__.text.call(this,pd,fd,md))},dd.prototype.dtdAttList=function(pd,fd,md){return this.stream.write(dd.__super__.dtdAttList.call(this,pd,fd,md))},dd.prototype.dtdElement=function(pd,fd,md){return this.stream.write(dd.__super__.dtdElement.call(this,pd,fd,md))},dd.prototype.dtdEntity=function(pd,fd,md){return this.stream.write(dd.__super__.dtdEntity.call(this,pd,fd,md))},dd.prototype.dtdNotation=function(pd,fd,md){return this.stream.write(dd.__super__.dtdNotation.call(this,pd,fd,md))},dd}(nd)}).call(commonjsGlobal)),XMLStreamWriter.exports}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,(function(){var Ra,qa,nd,od,ld,ud,dd,pd,fd,md;md=requireUtility(),pd=md.assign,fd=md.isFunction,nd=requireXMLDOMImplementation(),od=requireXMLDocument(),ld=requireXMLDocumentCB(),dd=requireXMLStringWriter(),ud=requireXMLStreamWriter(),Ra=requireNodeType(),qa=requireWriterState(),lib$2.create=function(vd,Ad,Nd,Od){var kd,Ld;if(vd==null)throw new Error("Root element needs a name.");return Od=pd({},Ad,Nd,Od),kd=new od(Od),Ld=kd.element(vd),Od.headless||(kd.declaration(Od),(Od.pubID!=null||Od.sysID!=null)&&kd.dtd(Od)),Ld},lib$2.begin=function(vd,Ad,Nd){var Od;return fd(vd)&&(Od=[vd,Ad],Ad=Od[0],Nd=Od[1],vd={}),Ad?new ld(vd,Ad,Nd):new od(vd)},lib$2.stringWriter=function(vd){return new dd(vd)},lib$2.streamWriter=function(vd,Ad){return new ud(vd,Ad)},lib$2.implementation=new nd,lib$2.nodeType=Ra,lib$2.writerState=qa}).call(commonjsGlobal)),lib$2}var hasRequiredBuilder;function requireBuilder(){return hasRequiredBuilder||(hasRequiredBuilder=1,(function(){var Ra,qa,nd,od,ld,ud={}.hasOwnProperty;Ra=requireLib(),qa=requireDefaults().defaults,od=function(dd){return typeof dd=="string"&&(dd.indexOf("&")>=0||dd.indexOf(">")>=0||dd.indexOf("<")>=0)},ld=function(dd){return""},nd=function(dd){return dd.replace("]]>","]]]]>")},builder.Builder=function(){function dd(pd){var fd,md,vd;this.options={},md=qa["0.2"];for(fd in md)ud.call(md,fd)&&(vd=md[fd],this.options[fd]=vd);for(fd in pd)ud.call(pd,fd)&&(vd=pd[fd],this.options[fd]=vd)}return dd.prototype.buildObject=function(pd){var fd,md,vd,Ad,Nd;return fd=this.options.attrkey,md=this.options.charkey,Object.keys(pd).length===1&&this.options.rootName===qa["0.2"].rootName?(Nd=Object.keys(pd)[0],pd=pd[Nd]):Nd=this.options.rootName,vd=function(Od){return function(kd,Ld){var Gd,jd,Fd,Ud,qd,zd;if(typeof Ld!="object")Od.options.cdata&&od(Ld)?kd.raw(ld(Ld)):kd.txt(Ld);else if(Array.isArray(Ld)){for(Ud in Ld)if(ud.call(Ld,Ud)){jd=Ld[Ud];for(qd in jd)Fd=jd[qd],kd=vd(kd.ele(qd),Fd).up()}}else for(qd in Ld)if(ud.call(Ld,qd))if(jd=Ld[qd],qd===fd){if(typeof jd=="object")for(Gd in jd)zd=jd[Gd],kd=kd.att(Gd,zd)}else if(qd===md)Od.options.cdata&&od(jd)?kd=kd.raw(ld(jd)):kd=kd.txt(jd);else if(Array.isArray(jd))for(Ud in jd)ud.call(jd,Ud)&&(Fd=jd[Ud],typeof Fd=="string"?Od.options.cdata&&od(Fd)?kd=kd.ele(qd).raw(ld(Fd)).up():kd=kd.ele(qd,Fd).up():kd=vd(kd.ele(qd),Fd).up());else typeof jd=="object"?kd=vd(kd.ele(qd),jd).up():typeof jd=="string"&&Od.options.cdata&&od(jd)?kd=kd.ele(qd).raw(ld(jd)).up():(jd==null&&(jd=""),kd=kd.ele(qd,jd.toString()).up());return kd}}(this),Ad=Ra.create(Nd,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),vd(Ad,pd).end(this.options.renderOpts)},dd}()}).call(commonjsGlobal)),builder}var parser={},sax={},hasRequiredSax;function requireSax(){return hasRequiredSax||(hasRequiredSax=1,function(Ra){(function(qa){qa.parser=function(Cf,xf){return new od(Cf,xf)},qa.SAXParser=od,qa.SAXStream=vd,qa.createStream=md,qa.MAX_BUFFER_LENGTH=64*1024;var nd=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];qa.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function od(Cf,xf){if(!(this instanceof od))return new od(Cf,xf);var Yf=this;ud(Yf),Yf.q=Yf.c="",Yf.bufferCheckPosition=qa.MAX_BUFFER_LENGTH,Yf.opt=xf||{},Yf.opt.lowercase=Yf.opt.lowercase||Yf.opt.lowercasetags,Yf.looseCase=Yf.opt.lowercase?"toLowerCase":"toUpperCase",Yf.tags=[],Yf.closed=Yf.closedRoot=Yf.sawRoot=!1,Yf.tag=Yf.error=null,Yf.strict=!!Cf,Yf.noscript=!!(Cf||Yf.opt.noscript),Yf.state=Xd.BEGIN,Yf.strictEntities=Yf.opt.strictEntities,Yf.ENTITIES=Yf.strictEntities?Object.create(qa.XML_ENTITIES):Object.create(qa.ENTITIES),Yf.attribList=[],Yf.opt.xmlns&&(Yf.ns=Object.create(Ld)),Yf.opt.unquotedAttributeValues===void 0&&(Yf.opt.unquotedAttributeValues=!Cf),Yf.trackPosition=Yf.opt.position!==!1,Yf.trackPosition&&(Yf.position=Yf.line=Yf.column=0),mf(Yf,"onready")}Object.create||(Object.create=function(Cf){function xf(){}xf.prototype=Cf;var Yf=new xf;return Yf}),Object.keys||(Object.keys=function(Cf){var xf=[];for(var Yf in Cf)Cf.hasOwnProperty(Yf)&&xf.push(Yf);return xf});function ld(Cf){for(var xf=Math.max(qa.MAX_BUFFER_LENGTH,10),Yf=0,dh=0,Rh=nd.length;dhxf)switch(nd[dh]){case"textNode":Tf(Cf);break;case"cdata":Sf(Cf,"oncdata",Cf.cdata),Cf.cdata="";break;case"script":Sf(Cf,"onscript",Cf.script),Cf.script="";break;default:Ef(Cf,"Max buffer length exceeded: "+nd[dh])}Yf=Math.max(Yf,th)}var Bf=qa.MAX_BUFFER_LENGTH-Yf;Cf.bufferCheckPosition=Bf+Cf.position}function ud(Cf){for(var xf=0,Yf=nd.length;xf"||qd(Cf)}function Jd(Cf,xf){return Cf.test(xf)}function _f(Cf,xf){return!Jd(Cf,xf)}var Xd=0;qa.STATE={BEGIN:Xd++,BEGIN_WHITESPACE:Xd++,TEXT:Xd++,TEXT_ENTITY:Xd++,OPEN_WAKA:Xd++,SGML_DECL:Xd++,SGML_DECL_QUOTED:Xd++,DOCTYPE:Xd++,DOCTYPE_QUOTED:Xd++,DOCTYPE_DTD:Xd++,DOCTYPE_DTD_QUOTED:Xd++,COMMENT_STARTING:Xd++,COMMENT:Xd++,COMMENT_ENDING:Xd++,COMMENT_ENDED:Xd++,CDATA:Xd++,CDATA_ENDING:Xd++,CDATA_ENDING_2:Xd++,PROC_INST:Xd++,PROC_INST_BODY:Xd++,PROC_INST_ENDING:Xd++,OPEN_TAG:Xd++,OPEN_TAG_SLASH:Xd++,ATTRIB:Xd++,ATTRIB_NAME:Xd++,ATTRIB_NAME_SAW_WHITE:Xd++,ATTRIB_VALUE:Xd++,ATTRIB_VALUE_QUOTED:Xd++,ATTRIB_VALUE_CLOSED:Xd++,ATTRIB_VALUE_UNQUOTED:Xd++,ATTRIB_VALUE_ENTITY_Q:Xd++,ATTRIB_VALUE_ENTITY_U:Xd++,CLOSE_TAG:Xd++,CLOSE_TAG_SAW_WHITE:Xd++,SCRIPT:Xd++,SCRIPT_ENDING:Xd++},qa.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},qa.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(qa.ENTITIES).forEach(function(Cf){var xf=qa.ENTITIES[Cf],Yf=typeof xf=="number"?String.fromCharCode(xf):xf;qa.ENTITIES[Cf]=Yf});for(var pf in qa.STATE)qa.STATE[qa.STATE[pf]]=pf;Xd=qa.STATE;function mf(Cf,xf,Yf){Cf[xf]&&Cf[xf](Yf)}function Sf(Cf,xf,Yf){Cf.textNode&&Tf(Cf),mf(Cf,xf,Yf)}function Tf(Cf){Cf.textNode=Af(Cf.opt,Cf.textNode),Cf.textNode&&mf(Cf,"ontext",Cf.textNode),Cf.textNode=""}function Af(Cf,xf){return Cf.trim&&(xf=xf.trim()),Cf.normalize&&(xf=xf.replace(/\s+/g," ")),xf}function Ef(Cf,xf){return Tf(Cf),Cf.trackPosition&&(xf+=` Line: `+Cf.line+` Column: `+Cf.column+` -Char: `+Cf.c),xf=new Error(xf),Cf.error=xf,mf(Cf,"onerror",xf),Cf}function Df(Cf){return Cf.sawRoot&&!Cf.closedRoot&&If(Cf,"Unclosed root tag"),Cf.state!==Xd.BEGIN&&Cf.state!==Xd.BEGIN_WHITESPACE&&Cf.state!==Xd.TEXT&&Sf(Cf,"Unexpected end"),vf(Cf),Cf.c="",Cf.closed=!0,mf(Cf,"onend"),od.call(Cf,Cf.strict,Cf.opt),Cf}function If(Cf,xf){if(typeof Cf!="object"||!(Cf instanceof od))throw new Error("bad call to strictFail");Cf.strict&&Sf(Cf,xf)}function Gf(Cf){Cf.strict||(Cf.tagName=Cf.tagName[Cf.looseCase]());var xf=Cf.tags[Cf.tags.length-1]||Cf,Xf=Cf.tag={name:Cf.tagName,attributes:{}};Cf.opt.xmlns&&(Xf.ns=xf.ns),Cf.attribList.length=0,Tf(Cf,"onopentagstart",Xf)}function Jf(Cf,xf){var Xf=Cf.indexOf(":"),sh=Xf<0?["",Cf]:Cf.split(":"),Ah=sh[0],dh=sh[1];return xf&&Cf==="xmlns"&&(Ah="xmlns",dh=""),{prefix:Ah,local:dh}}function ih(Cf){if(Cf.strict||(Cf.attribName=Cf.attribName[Cf.looseCase]()),Cf.attribList.indexOf(Cf.attribName)!==-1||Cf.tag.attributes.hasOwnProperty(Cf.attribName)){Cf.attribName=Cf.attribValue="";return}if(Cf.opt.xmlns){var xf=Jf(Cf.attribName,!0),Xf=xf.prefix,sh=xf.local;if(Xf==="xmlns")if(sh==="xml"&&Cf.attribValue!==Od)If(Cf,"xml: prefix must be bound to "+Od+` -Actual: `+Cf.attribValue);else if(sh==="xmlns"&&Cf.attribValue!==kd)If(Cf,"xmlns: prefix must be bound to "+kd+` -Actual: `+Cf.attribValue);else{var Ah=Cf.tag,dh=Cf.tags[Cf.tags.length-1]||Cf;Ah.ns===dh.ns&&(Ah.ns=Object.create(dh.ns)),Ah.ns[sh]=Cf.attribValue}Cf.attribList.push([Cf.attribName,Cf.attribValue])}else Cf.tag.attributes[Cf.attribName]=Cf.attribValue,Tf(Cf,"onattribute",{name:Cf.attribName,value:Cf.attribValue});Cf.attribName=Cf.attribValue=""}function uh(Cf,xf){if(Cf.opt.xmlns){var Xf=Cf.tag,sh=Jf(Cf.tagName);Xf.prefix=sh.prefix,Xf.local=sh.local,Xf.uri=Xf.ns[sh.prefix]||"",Xf.prefix&&!Xf.uri&&(If(Cf,"Unbound namespace prefix: "+JSON.stringify(Cf.tagName)),Xf.uri=sh.prefix);var Ah=Cf.tags[Cf.tags.length-1]||Cf;Xf.ns&&Ah.ns!==Xf.ns&&Object.keys(Xf.ns).forEach(function(xh){Tf(Cf,"onopennamespace",{prefix:xh,uri:Xf.ns[xh]})});for(var dh=0,Rf=Cf.attribList.length;dh",Cf.tagName="",Cf.state=Xd.SCRIPT;return}Tf(Cf,"onscript",Cf.script),Cf.script=""}var xf=Cf.tags.length,Xf=Cf.tagName;Cf.strict||(Xf=Xf[Cf.looseCase]());for(var sh=Xf;xf--;){var Ah=Cf.tags[xf];if(Ah.name!==sh)If(Cf,"Unexpected close tag");else break}if(xf<0){If(Cf,"Unmatched closing tag: "+Cf.tagName),Cf.textNode+="",Cf.state=Xd.TEXT;return}Cf.tagName=Xf;for(var dh=Cf.tags.length;dh-- >xf;){var Rf=Cf.tag=Cf.tags.pop();Cf.tagName=Cf.tag.name,Tf(Cf,"onclosetag",Cf.tagName);var gh={};for(var Bh in Rf.ns)gh[Bh]=Rf.ns[Bh];var th=Cf.tags[Cf.tags.length-1]||Cf;Cf.opt.xmlns&&Rf.ns!==th.ns&&Object.keys(Rf.ns).forEach(function($f){var Uf=Rf.ns[$f];Tf(Cf,"onclosenamespace",{prefix:$f,uri:Uf})})}xf===0&&(Cf.closedRoot=!0),Cf.tagName=Cf.attribValue=Cf.attribName="",Cf.attribList.length=0,Cf.state=Xd.TEXT}function Pf(Cf){var xf=Cf.entity,Xf=xf.toLowerCase(),sh,Ah="";return Cf.ENTITIES[xf]?Cf.ENTITIES[xf]:Cf.ENTITIES[Xf]?Cf.ENTITIES[Xf]:(xf=Xf,xf.charAt(0)==="#"&&(xf.charAt(1)==="x"?(xf=xf.slice(2),sh=parseInt(xf,16),Ah=sh.toString(16)):(xf=xf.slice(1),sh=parseInt(xf,10),Ah=sh.toString(10))),xf=xf.replace(/^0+/,""),isNaN(sh)||Ah.toLowerCase()!==xf?(If(Cf,"Invalid character entity"),"&"+Cf.entity+";"):String.fromCodePoint(sh))}function Wf(Cf,xf){xf==="<"?(Cf.state=Xd.OPEN_WAKA,Cf.startTagPosition=Cf.position):qd(xf)||(If(Cf,"Non-whitespace before first tag."),Cf.textNode=xf,Cf.state=Xd.TEXT)}function Yf(Cf,xf){var Xf="";return xf"?(Tf(xf,"onsgmldeclaration",xf.sgmlDecl),xf.sgmlDecl="",xf.state=Xd.TEXT):(zd(sh)&&(xf.state=Xd.SGML_DECL_QUOTED),xf.sgmlDecl+=sh);continue;case Xd.SGML_DECL_QUOTED:sh===xf.q&&(xf.state=Xd.SGML_DECL,xf.q=""),xf.sgmlDecl+=sh;continue;case Xd.DOCTYPE:sh===">"?(xf.state=Xd.TEXT,Tf(xf,"ondoctype",xf.doctype),xf.doctype=!0):(xf.doctype+=sh,sh==="["?xf.state=Xd.DOCTYPE_DTD:zd(sh)&&(xf.state=Xd.DOCTYPE_QUOTED,xf.q=sh));continue;case Xd.DOCTYPE_QUOTED:xf.doctype+=sh,sh===xf.q&&(xf.q="",xf.state=Xd.DOCTYPE);continue;case Xd.DOCTYPE_DTD:sh==="]"?(xf.doctype+=sh,xf.state=Xd.DOCTYPE):sh==="<"?(xf.state=Xd.OPEN_WAKA,xf.startTagPosition=xf.position):zd(sh)?(xf.doctype+=sh,xf.state=Xd.DOCTYPE_DTD_QUOTED,xf.q=sh):xf.doctype+=sh;continue;case Xd.DOCTYPE_DTD_QUOTED:xf.doctype+=sh,sh===xf.q&&(xf.state=Xd.DOCTYPE_DTD,xf.q="");continue;case Xd.COMMENT:sh==="-"?xf.state=Xd.COMMENT_ENDING:xf.comment+=sh;continue;case Xd.COMMENT_ENDING:sh==="-"?(xf.state=Xd.COMMENT_ENDED,xf.comment=Af(xf.opt,xf.comment),xf.comment&&Tf(xf,"oncomment",xf.comment),xf.comment=""):(xf.comment+="-"+sh,xf.state=Xd.COMMENT);continue;case Xd.COMMENT_ENDED:sh!==">"?(If(xf,"Malformed comment"),xf.comment+="--"+sh,xf.state=Xd.COMMENT):xf.doctype&&xf.doctype!==!0?xf.state=Xd.DOCTYPE_DTD:xf.state=Xd.TEXT;continue;case Xd.CDATA:sh==="]"?xf.state=Xd.CDATA_ENDING:xf.cdata+=sh;continue;case Xd.CDATA_ENDING:sh==="]"?xf.state=Xd.CDATA_ENDING_2:(xf.cdata+="]"+sh,xf.state=Xd.CDATA);continue;case Xd.CDATA_ENDING_2:sh===">"?(xf.cdata&&Tf(xf,"oncdata",xf.cdata),Tf(xf,"onclosecdata"),xf.cdata="",xf.state=Xd.TEXT):sh==="]"?xf.cdata+="]":(xf.cdata+="]]"+sh,xf.state=Xd.CDATA);continue;case Xd.PROC_INST:sh==="?"?xf.state=Xd.PROC_INST_ENDING:qd(sh)?xf.state=Xd.PROC_INST_BODY:xf.procInstName+=sh;continue;case Xd.PROC_INST_BODY:if(!xf.procInstBody&&qd(sh))continue;sh==="?"?xf.state=Xd.PROC_INST_ENDING:xf.procInstBody+=sh;continue;case Xd.PROC_INST_ENDING:sh===">"?(Tf(xf,"onprocessinginstruction",{name:xf.procInstName,body:xf.procInstBody}),xf.procInstName=xf.procInstBody="",xf.state=Xd.TEXT):(xf.procInstBody+="?"+sh,xf.state=Xd.PROC_INST_BODY);continue;case Xd.OPEN_TAG:Jd(Ud,sh)?xf.tagName+=sh:(Gf(xf),sh===">"?uh(xf):sh==="/"?xf.state=Xd.OPEN_TAG_SLASH:(qd(sh)||If(xf,"Invalid character in tag name"),xf.state=Xd.ATTRIB));continue;case Xd.OPEN_TAG_SLASH:sh===">"?(uh(xf,!0),qf(xf)):(If(xf,"Forward-slash in opening tag not followed by >"),xf.state=Xd.ATTRIB);continue;case Xd.ATTRIB:if(qd(sh))continue;sh===">"?uh(xf):sh==="/"?xf.state=Xd.OPEN_TAG_SLASH:Jd(Gd,sh)?(xf.attribName=sh,xf.attribValue="",xf.state=Xd.ATTRIB_NAME):If(xf,"Invalid attribute name");continue;case Xd.ATTRIB_NAME:sh==="="?xf.state=Xd.ATTRIB_VALUE:sh===">"?(If(xf,"Attribute without value"),xf.attribValue=xf.attribName,ih(xf),uh(xf)):qd(sh)?xf.state=Xd.ATTRIB_NAME_SAW_WHITE:Jd(Ud,sh)?xf.attribName+=sh:If(xf,"Invalid attribute name");continue;case Xd.ATTRIB_NAME_SAW_WHITE:if(sh==="=")xf.state=Xd.ATTRIB_VALUE;else{if(qd(sh))continue;If(xf,"Attribute without value"),xf.tag.attributes[xf.attribName]="",xf.attribValue="",Tf(xf,"onattribute",{name:xf.attribName,value:""}),xf.attribName="",sh===">"?uh(xf):Jd(Gd,sh)?(xf.attribName=sh,xf.state=Xd.ATTRIB_NAME):(If(xf,"Invalid attribute name"),xf.state=Xd.ATTRIB)}continue;case Xd.ATTRIB_VALUE:if(qd(sh))continue;zd(sh)?(xf.q=sh,xf.state=Xd.ATTRIB_VALUE_QUOTED):(xf.opt.unquotedAttributeValues||Sf(xf,"Unquoted attribute value"),xf.state=Xd.ATTRIB_VALUE_UNQUOTED,xf.attribValue=sh);continue;case Xd.ATTRIB_VALUE_QUOTED:if(sh!==xf.q){sh==="&"?xf.state=Xd.ATTRIB_VALUE_ENTITY_Q:xf.attribValue+=sh;continue}ih(xf),xf.q="",xf.state=Xd.ATTRIB_VALUE_CLOSED;continue;case Xd.ATTRIB_VALUE_CLOSED:qd(sh)?xf.state=Xd.ATTRIB:sh===">"?uh(xf):sh==="/"?xf.state=Xd.OPEN_TAG_SLASH:Jd(Gd,sh)?(If(xf,"No whitespace between attributes"),xf.attribName=sh,xf.attribValue="",xf.state=Xd.ATTRIB_NAME):If(xf,"Invalid attribute name");continue;case Xd.ATTRIB_VALUE_UNQUOTED:if(!Yd(sh)){sh==="&"?xf.state=Xd.ATTRIB_VALUE_ENTITY_U:xf.attribValue+=sh;continue}ih(xf),sh===">"?uh(xf):xf.state=Xd.ATTRIB;continue;case Xd.CLOSE_TAG:if(xf.tagName)sh===">"?qf(xf):Jd(Ud,sh)?xf.tagName+=sh:xf.script?(xf.script+=""?qf(xf):If(xf,"Invalid characters in closing tag");continue;case Xd.TEXT_ENTITY:case Xd.ATTRIB_VALUE_ENTITY_Q:case Xd.ATTRIB_VALUE_ENTITY_U:var Rf,gh;switch(xf.state){case Xd.TEXT_ENTITY:Rf=Xd.TEXT,gh="textNode";break;case Xd.ATTRIB_VALUE_ENTITY_Q:Rf=Xd.ATTRIB_VALUE_QUOTED,gh="attribValue";break;case Xd.ATTRIB_VALUE_ENTITY_U:Rf=Xd.ATTRIB_VALUE_UNQUOTED,gh="attribValue";break}if(sh===";"){var Bh=Pf(xf);xf.opt.unparsedEntities&&!Object.values(qa.XML_ENTITIES).includes(Bh)?(xf.entity="",xf.state=Rf,xf.write(Bh)):(xf[gh]+=Bh,xf.entity="",xf.state=Rf)}else Jd(xf.entity.length?jd:Fd,sh)?xf.entity+=sh:(If(xf,"Invalid character in entity name"),xf[gh]+="&"+xf.entity+sh,xf.entity="",xf.state=Rf);continue;default:throw new Error(xf,"Unknown state: "+xf.state)}return xf.position>=xf.bufferCheckPosition&&ld(xf),xf}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var Cf=String.fromCharCode,xf=Math.floor,Xf=function(){var sh=16384,Ah=[],dh,Rf,gh=-1,Bh=arguments.length;if(!Bh)return"";for(var th="";++gh1114111||xf($f)!==$f)throw RangeError("Invalid code point: "+$f);$f<=65535?Ah.push($f):($f-=65536,dh=($f>>10)+55296,Rf=$f%1024+56320,Ah.push(dh,Rf)),(gh+1===Bh||Ah.length>sh)&&(th+=Cf.apply(null,Ah),Ah.length=0)}return th};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Xf,configurable:!0,writable:!0}):String.fromCodePoint=Xf}()})(Ra)}(sax)),sax}var bom={},hasRequiredBom;function requireBom(){return hasRequiredBom||(hasRequiredBom=1,(function(){bom.stripBOM=function(Ra){return Ra[0]==="\uFEFF"?Ra.substring(1):Ra}}).call(commonjsGlobal)),bom}var processors={},hasRequiredProcessors;function requireProcessors(){return hasRequiredProcessors||(hasRequiredProcessors=1,(function(){var Ra;Ra=new RegExp(/(?!xmlns)^.*:/),processors.normalize=function(qa){return qa.toLowerCase()},processors.firstCharLowerCase=function(qa){return qa.charAt(0).toLowerCase()+qa.slice(1)},processors.stripPrefix=function(qa){return qa.replace(Ra,"")},processors.parseNumbers=function(qa){return isNaN(qa)||(qa=qa%1===0?parseInt(qa,10):parseFloat(qa)),qa},processors.parseBooleans=function(qa){return/^(?:true|false)$/i.test(qa)&&(qa=qa.toLowerCase()==="true"),qa}}).call(commonjsGlobal)),processors}var main={},setImmediate$1={},hasRequiredSetImmediate;function requireSetImmediate(){if(hasRequiredSetImmediate)return setImmediate$1;hasRequiredSetImmediate=1;var Ra={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};return function(qa,nd){if(qa.setImmediate)return;var od=1,ld={},ud=!1,dd=qa.document,pd;function fd(jd){typeof jd!="function"&&(jd=new Function(""+jd));for(var qd=new Array(arguments.length-1),zd=0;zd"u"?commonjsGlobal:self),setImmediate$1}var hasRequiredMain;function requireMain(){if(hasRequiredMain)return main;hasRequiredMain=1;var Ra=typeof commonjsGlobal<"u"&&commonjsGlobal||typeof self<"u"&&self||window,qa=Function.prototype.apply;main.setTimeout=function(){return new nd(qa.call(setTimeout,Ra,arguments),clearTimeout)},main.setInterval=function(){return new nd(qa.call(setInterval,Ra,arguments),clearInterval)},main.clearTimeout=main.clearInterval=function(od){od&&od.close()};function nd(od,ld){this._id=od,this._clearFn=ld}return nd.prototype.unref=nd.prototype.ref=function(){},nd.prototype.close=function(){this._clearFn.call(Ra,this._id)},main.enroll=function(od,ld){clearTimeout(od._idleTimeoutId),od._idleTimeout=ld},main.unenroll=function(od){clearTimeout(od._idleTimeoutId),od._idleTimeout=-1},main._unrefActive=main.active=function(od){clearTimeout(od._idleTimeoutId);var ld=od._idleTimeout;ld>=0&&(od._idleTimeoutId=setTimeout(function(){od._onTimeout&&od._onTimeout()},ld))},requireSetImmediate(),main.setImmediate=typeof self<"u"&&self.setImmediate||typeof commonjsGlobal<"u"&&commonjsGlobal.setImmediate||commonjsGlobal&&commonjsGlobal.setImmediate,main.clearImmediate=typeof self<"u"&&self.clearImmediate||typeof commonjsGlobal<"u"&&commonjsGlobal.clearImmediate||commonjsGlobal&&commonjsGlobal.clearImmediate,main}var hasRequiredParser;function requireParser(){return hasRequiredParser||(hasRequiredParser=1,function(Ra){(function(){var qa,nd,od,ld,ud,dd,pd,fd,md=function(Nd,Od){return function(){return Nd.apply(Od,arguments)}},vd=function(Nd,Od){for(var kd in Od)Ad.call(Od,kd)&&(Nd[kd]=Od[kd]);function Ld(){this.constructor=Nd}return Ld.prototype=Od.prototype,Nd.prototype=new Ld,Nd.__super__=Od.prototype,Nd},Ad={}.hasOwnProperty;pd=requireSax(),od=eventsExports,qa=requireBom(),dd=requireProcessors(),fd=requireMain().setImmediate,nd=requireDefaults().defaults,ld=function(Nd){return typeof Nd=="object"&&Nd!=null&&Object.keys(Nd).length===0},ud=function(Nd,Od,kd){var Ld,Gd,Ud;for(Ld=0,Gd=Nd.length;Ld0&&(Yd[Fd.options.childkey]=yf),yf=Yd;else if(mf){mf[Fd.options.childkey]=mf[Fd.options.childkey]||[],Xd=Object.create(null);for(zd in yf)Ad.call(yf,zd)&&(Xd[zd]=yf[zd]);mf[Fd.options.childkey].push(Xd),delete yf["#name"],Object.keys(yf).length===1&&Ld in yf&&!Fd.EXPLICIT_CHARKEY&&(yf=yf[Ld])}}return Ud.length>0?Fd.assignOrPush(mf,Jd,yf):(Fd.options.explicitRoot&&(pf=yf,yf=Object.create(null),yf[Jd]=pf),Fd.resultObject=yf,Fd.saxParser.ended=!0,Fd.emit("end",Fd.resultObject))}}(this),Gd=function(Fd){return function(jd){var qd,zd;if(zd=Ud[Ud.length-1],zd)return zd[Ld]+=jd,Fd.options.explicitChildren&&Fd.options.preserveChildrenOrder&&Fd.options.charsAsChildren&&(Fd.options.includeWhiteChars||jd.replace(/\\n/g,"").trim()!=="")&&(zd[Fd.options.childkey]=zd[Fd.options.childkey]||[],qd={"#name":"__text__"},qd[Ld]=jd,Fd.options.normalize&&(qd[Ld]=qd[Ld].replace(/\s{2,}/g," ").trim()),zd[Fd.options.childkey].push(qd)),zd}}(this),this.saxParser.ontext=Gd,this.saxParser.oncdata=function(Fd){return function(jd){var qd;if(qd=Gd(jd),qd)return qd.cdata=!0}}()},Od.prototype.parseString=function(kd,Ld){var Gd;Ld!=null&&typeof Ld=="function"&&(this.on("end",function(Ud){return this.reset(),Ld(null,Ud)}),this.on("error",function(Ud){return this.reset(),Ld(Ud)}));try{return kd=kd.toString(),kd.trim()===""?(this.emit("end",null),!0):(kd=qa.stripBOM(kd),this.options.async?(this.remaining=kd,fd(this.processAsync),this.saxParser):this.saxParser.write(kd).close())}catch(Ud){if(Gd=Ud,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Gd}else return this.emit("error",Gd),this.saxParser.errThrown=!0}},Od.prototype.parseStringPromise=function(kd){return new Promise(function(Ld){return function(Gd,Ud){return Ld.parseString(kd,function(Fd,jd){return Fd?Ud(Fd):Gd(jd)})}}(this))},Od}(od),Ra.parseString=function(Nd,Od,kd){var Ld,Gd,Ud;return kd!=null?(typeof kd=="function"&&(Ld=kd),typeof Od=="object"&&(Gd=Od)):(typeof Od=="function"&&(Ld=Od),Gd={}),Ud=new Ra.Parser(Gd),Ud.parseString(Nd,Ld)},Ra.parseStringPromise=function(Nd,Od){var kd,Ld;return typeof Od=="object"&&(kd=Od),Ld=new Ra.Parser(kd),Ld.parseStringPromise(Nd)}}).call(commonjsGlobal)}(parser)),parser}(function(){var Ra,qa,nd,od,ld=function(dd,pd){for(var fd in pd)ud.call(pd,fd)&&(dd[fd]=pd[fd]);function md(){this.constructor=dd}return md.prototype=pd.prototype,dd.prototype=new md,dd.__super__=pd.prototype,dd},ud={}.hasOwnProperty;qa=requireDefaults(),Ra=requireBuilder(),nd=requireParser(),od=requireProcessors(),xml2js.defaults=qa.defaults,xml2js.processors=od,xml2js.ValidationError=function(dd){ld(pd,dd);function pd(fd){this.message=fd}return pd}(Error),xml2js.Builder=Ra.Builder,xml2js.Parser=nd.Parser,xml2js.parseString=nd.parseString,xml2js.parseStringPromise=nd.parseStringPromise}).call(commonjsGlobal);class ExtendableError extends Error{constructor(qa,nd){super(qa,nd),this.name=this.constructor.name}}class AnonymousRequestError extends ExtendableError{}class InvalidArgumentError extends ExtendableError{}class InvalidEndpointError extends ExtendableError{}class InvalidBucketNameError extends ExtendableError{}class InvalidObjectNameError extends ExtendableError{}class AccessKeyRequiredError extends ExtendableError{}class SecretKeyRequiredError extends ExtendableError{}class ExpiresParamError extends ExtendableError{}class InvalidDateError extends ExtendableError{}class InvalidPrefixError extends ExtendableError{}class InvalidBucketPolicyError extends ExtendableError{}class InvalidXMLError extends ExtendableError{}class S3Error extends ExtendableError{}class IsValidBucketNameError extends ExtendableError{}var validator$2={},util$4={};(function(Ra){const qa=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",nd=qa+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",od="["+qa+"]["+nd+"]*",ld=new RegExp("^"+od+"$"),ud=function(pd,fd){const md=[];let vd=fd.exec(pd);for(;vd;){const Ad=[];Ad.startIndex=fd.lastIndex-vd[0].length;const Nd=vd.length;for(let Od=0;Od"u")};Ra.isExist=function(pd){return typeof pd<"u"},Ra.isEmptyObject=function(pd){return Object.keys(pd).length===0},Ra.merge=function(pd,fd,md){if(fd){const vd=Object.keys(fd),Ad=vd.length;for(let Nd=0;Nd"&&Ra[ud]!==" "&&Ra[ud]!==" "&&Ra[ud]!==` +Char: `+Cf.c),xf=new Error(xf),Cf.error=xf,mf(Cf,"onerror",xf),Cf}function Nf(Cf){return Cf.sawRoot&&!Cf.closedRoot&&If(Cf,"Unclosed root tag"),Cf.state!==Xd.BEGIN&&Cf.state!==Xd.BEGIN_WHITESPACE&&Cf.state!==Xd.TEXT&&Ef(Cf,"Unexpected end"),Tf(Cf),Cf.c="",Cf.closed=!0,mf(Cf,"onend"),od.call(Cf,Cf.strict,Cf.opt),Cf}function If(Cf,xf){if(typeof Cf!="object"||!(Cf instanceof od))throw new Error("bad call to strictFail");Cf.strict&&Ef(Cf,xf)}function Gf(Cf){Cf.strict||(Cf.tagName=Cf.tagName[Cf.looseCase]());var xf=Cf.tags[Cf.tags.length-1]||Cf,Yf=Cf.tag={name:Cf.tagName,attributes:{}};Cf.opt.xmlns&&(Yf.ns=xf.ns),Cf.attribList.length=0,Sf(Cf,"onopentagstart",Yf)}function Qf(Cf,xf){var Yf=Cf.indexOf(":"),dh=Yf<0?["",Cf]:Cf.split(":"),Rh=dh[0],th=dh[1];return xf&&Cf==="xmlns"&&(Rh="xmlns",th=""),{prefix:Rh,local:th}}function Xf(Cf){if(Cf.strict||(Cf.attribName=Cf.attribName[Cf.looseCase]()),Cf.attribList.indexOf(Cf.attribName)!==-1||Cf.tag.attributes.hasOwnProperty(Cf.attribName)){Cf.attribName=Cf.attribValue="";return}if(Cf.opt.xmlns){var xf=Qf(Cf.attribName,!0),Yf=xf.prefix,dh=xf.local;if(Yf==="xmlns")if(dh==="xml"&&Cf.attribValue!==Od)If(Cf,"xml: prefix must be bound to "+Od+` +Actual: `+Cf.attribValue);else if(dh==="xmlns"&&Cf.attribValue!==kd)If(Cf,"xmlns: prefix must be bound to "+kd+` +Actual: `+Cf.attribValue);else{var Rh=Cf.tag,th=Cf.tags[Cf.tags.length-1]||Cf;Rh.ns===th.ns&&(Rh.ns=Object.create(th.ns)),Rh.ns[dh]=Cf.attribValue}Cf.attribList.push([Cf.attribName,Cf.attribValue])}else Cf.tag.attributes[Cf.attribName]=Cf.attribValue,Sf(Cf,"onattribute",{name:Cf.attribName,value:Cf.attribValue});Cf.attribName=Cf.attribValue=""}function ph(Cf,xf){if(Cf.opt.xmlns){var Yf=Cf.tag,dh=Qf(Cf.tagName);Yf.prefix=dh.prefix,Yf.local=dh.local,Yf.uri=Yf.ns[dh.prefix]||"",Yf.prefix&&!Yf.uri&&(If(Cf,"Unbound namespace prefix: "+JSON.stringify(Cf.tagName)),Yf.uri=dh.prefix);var Rh=Cf.tags[Cf.tags.length-1]||Cf;Yf.ns&&Rh.ns!==Yf.ns&&Object.keys(Yf.ns).forEach(function(_h){Sf(Cf,"onopennamespace",{prefix:_h,uri:Yf.ns[_h]})});for(var th=0,Bf=Cf.attribList.length;th",Cf.tagName="",Cf.state=Xd.SCRIPT;return}Sf(Cf,"onscript",Cf.script),Cf.script=""}var xf=Cf.tags.length,Yf=Cf.tagName;Cf.strict||(Yf=Yf[Cf.looseCase]());for(var dh=Yf;xf--;){var Rh=Cf.tags[xf];if(Rh.name!==dh)If(Cf,"Unexpected close tag");else break}if(xf<0){If(Cf,"Unmatched closing tag: "+Cf.tagName),Cf.textNode+="",Cf.state=Xd.TEXT;return}Cf.tagName=Yf;for(var th=Cf.tags.length;th-- >xf;){var Bf=Cf.tag=Cf.tags.pop();Cf.tagName=Cf.tag.name,Sf(Cf,"onclosetag",Cf.tagName);var Sh={};for(var Fh in Bf.ns)Sh[Fh]=Bf.ns[Fh];var uh=Cf.tags[Cf.tags.length-1]||Cf;Cf.opt.xmlns&&Bf.ns!==uh.ns&&Object.keys(Bf.ns).forEach(function(Pf){var Uf=Bf.ns[Pf];Sf(Cf,"onclosenamespace",{prefix:Pf,uri:Uf})})}xf===0&&(Cf.closedRoot=!0),Cf.tagName=Cf.attribValue=Cf.attribName="",Cf.attribList.length=0,Cf.state=Xd.TEXT}function Lf(Cf){var xf=Cf.entity,Yf=xf.toLowerCase(),dh,Rh="";return Cf.ENTITIES[xf]?Cf.ENTITIES[xf]:Cf.ENTITIES[Yf]?Cf.ENTITIES[Yf]:(xf=Yf,xf.charAt(0)==="#"&&(xf.charAt(1)==="x"?(xf=xf.slice(2),dh=parseInt(xf,16),Rh=dh.toString(16)):(xf=xf.slice(1),dh=parseInt(xf,10),Rh=dh.toString(10))),xf=xf.replace(/^0+/,""),isNaN(dh)||Rh.toLowerCase()!==xf?(If(Cf,"Invalid character entity"),"&"+Cf.entity+";"):String.fromCodePoint(dh))}function Wf(Cf,xf){xf==="<"?(Cf.state=Xd.OPEN_WAKA,Cf.startTagPosition=Cf.position):qd(xf)||(If(Cf,"Non-whitespace before first tag."),Cf.textNode=xf,Cf.state=Xd.TEXT)}function Jf(Cf,xf){var Yf="";return xf"?(Sf(xf,"onsgmldeclaration",xf.sgmlDecl),xf.sgmlDecl="",xf.state=Xd.TEXT):(zd(dh)&&(xf.state=Xd.SGML_DECL_QUOTED),xf.sgmlDecl+=dh);continue;case Xd.SGML_DECL_QUOTED:dh===xf.q&&(xf.state=Xd.SGML_DECL,xf.q=""),xf.sgmlDecl+=dh;continue;case Xd.DOCTYPE:dh===">"?(xf.state=Xd.TEXT,Sf(xf,"ondoctype",xf.doctype),xf.doctype=!0):(xf.doctype+=dh,dh==="["?xf.state=Xd.DOCTYPE_DTD:zd(dh)&&(xf.state=Xd.DOCTYPE_QUOTED,xf.q=dh));continue;case Xd.DOCTYPE_QUOTED:xf.doctype+=dh,dh===xf.q&&(xf.q="",xf.state=Xd.DOCTYPE);continue;case Xd.DOCTYPE_DTD:dh==="]"?(xf.doctype+=dh,xf.state=Xd.DOCTYPE):dh==="<"?(xf.state=Xd.OPEN_WAKA,xf.startTagPosition=xf.position):zd(dh)?(xf.doctype+=dh,xf.state=Xd.DOCTYPE_DTD_QUOTED,xf.q=dh):xf.doctype+=dh;continue;case Xd.DOCTYPE_DTD_QUOTED:xf.doctype+=dh,dh===xf.q&&(xf.state=Xd.DOCTYPE_DTD,xf.q="");continue;case Xd.COMMENT:dh==="-"?xf.state=Xd.COMMENT_ENDING:xf.comment+=dh;continue;case Xd.COMMENT_ENDING:dh==="-"?(xf.state=Xd.COMMENT_ENDED,xf.comment=Af(xf.opt,xf.comment),xf.comment&&Sf(xf,"oncomment",xf.comment),xf.comment=""):(xf.comment+="-"+dh,xf.state=Xd.COMMENT);continue;case Xd.COMMENT_ENDED:dh!==">"?(If(xf,"Malformed comment"),xf.comment+="--"+dh,xf.state=Xd.COMMENT):xf.doctype&&xf.doctype!==!0?xf.state=Xd.DOCTYPE_DTD:xf.state=Xd.TEXT;continue;case Xd.CDATA:dh==="]"?xf.state=Xd.CDATA_ENDING:xf.cdata+=dh;continue;case Xd.CDATA_ENDING:dh==="]"?xf.state=Xd.CDATA_ENDING_2:(xf.cdata+="]"+dh,xf.state=Xd.CDATA);continue;case Xd.CDATA_ENDING_2:dh===">"?(xf.cdata&&Sf(xf,"oncdata",xf.cdata),Sf(xf,"onclosecdata"),xf.cdata="",xf.state=Xd.TEXT):dh==="]"?xf.cdata+="]":(xf.cdata+="]]"+dh,xf.state=Xd.CDATA);continue;case Xd.PROC_INST:dh==="?"?xf.state=Xd.PROC_INST_ENDING:qd(dh)?xf.state=Xd.PROC_INST_BODY:xf.procInstName+=dh;continue;case Xd.PROC_INST_BODY:if(!xf.procInstBody&&qd(dh))continue;dh==="?"?xf.state=Xd.PROC_INST_ENDING:xf.procInstBody+=dh;continue;case Xd.PROC_INST_ENDING:dh===">"?(Sf(xf,"onprocessinginstruction",{name:xf.procInstName,body:xf.procInstBody}),xf.procInstName=xf.procInstBody="",xf.state=Xd.TEXT):(xf.procInstBody+="?"+dh,xf.state=Xd.PROC_INST_BODY);continue;case Xd.OPEN_TAG:Jd(jd,dh)?xf.tagName+=dh:(Gf(xf),dh===">"?ph(xf):dh==="/"?xf.state=Xd.OPEN_TAG_SLASH:(qd(dh)||If(xf,"Invalid character in tag name"),xf.state=Xd.ATTRIB));continue;case Xd.OPEN_TAG_SLASH:dh===">"?(ph(xf,!0),qf(xf)):(If(xf,"Forward-slash in opening tag not followed by >"),xf.state=Xd.ATTRIB);continue;case Xd.ATTRIB:if(qd(dh))continue;dh===">"?ph(xf):dh==="/"?xf.state=Xd.OPEN_TAG_SLASH:Jd(Gd,dh)?(xf.attribName=dh,xf.attribValue="",xf.state=Xd.ATTRIB_NAME):If(xf,"Invalid attribute name");continue;case Xd.ATTRIB_NAME:dh==="="?xf.state=Xd.ATTRIB_VALUE:dh===">"?(If(xf,"Attribute without value"),xf.attribValue=xf.attribName,Xf(xf),ph(xf)):qd(dh)?xf.state=Xd.ATTRIB_NAME_SAW_WHITE:Jd(jd,dh)?xf.attribName+=dh:If(xf,"Invalid attribute name");continue;case Xd.ATTRIB_NAME_SAW_WHITE:if(dh==="=")xf.state=Xd.ATTRIB_VALUE;else{if(qd(dh))continue;If(xf,"Attribute without value"),xf.tag.attributes[xf.attribName]="",xf.attribValue="",Sf(xf,"onattribute",{name:xf.attribName,value:""}),xf.attribName="",dh===">"?ph(xf):Jd(Gd,dh)?(xf.attribName=dh,xf.state=Xd.ATTRIB_NAME):(If(xf,"Invalid attribute name"),xf.state=Xd.ATTRIB)}continue;case Xd.ATTRIB_VALUE:if(qd(dh))continue;zd(dh)?(xf.q=dh,xf.state=Xd.ATTRIB_VALUE_QUOTED):(xf.opt.unquotedAttributeValues||Ef(xf,"Unquoted attribute value"),xf.state=Xd.ATTRIB_VALUE_UNQUOTED,xf.attribValue=dh);continue;case Xd.ATTRIB_VALUE_QUOTED:if(dh!==xf.q){dh==="&"?xf.state=Xd.ATTRIB_VALUE_ENTITY_Q:xf.attribValue+=dh;continue}Xf(xf),xf.q="",xf.state=Xd.ATTRIB_VALUE_CLOSED;continue;case Xd.ATTRIB_VALUE_CLOSED:qd(dh)?xf.state=Xd.ATTRIB:dh===">"?ph(xf):dh==="/"?xf.state=Xd.OPEN_TAG_SLASH:Jd(Gd,dh)?(If(xf,"No whitespace between attributes"),xf.attribName=dh,xf.attribValue="",xf.state=Xd.ATTRIB_NAME):If(xf,"Invalid attribute name");continue;case Xd.ATTRIB_VALUE_UNQUOTED:if(!Wd(dh)){dh==="&"?xf.state=Xd.ATTRIB_VALUE_ENTITY_U:xf.attribValue+=dh;continue}Xf(xf),dh===">"?ph(xf):xf.state=Xd.ATTRIB;continue;case Xd.CLOSE_TAG:if(xf.tagName)dh===">"?qf(xf):Jd(jd,dh)?xf.tagName+=dh:xf.script?(xf.script+=""?qf(xf):If(xf,"Invalid characters in closing tag");continue;case Xd.TEXT_ENTITY:case Xd.ATTRIB_VALUE_ENTITY_Q:case Xd.ATTRIB_VALUE_ENTITY_U:var Bf,Sh;switch(xf.state){case Xd.TEXT_ENTITY:Bf=Xd.TEXT,Sh="textNode";break;case Xd.ATTRIB_VALUE_ENTITY_Q:Bf=Xd.ATTRIB_VALUE_QUOTED,Sh="attribValue";break;case Xd.ATTRIB_VALUE_ENTITY_U:Bf=Xd.ATTRIB_VALUE_UNQUOTED,Sh="attribValue";break}if(dh===";"){var Fh=Lf(xf);xf.opt.unparsedEntities&&!Object.values(qa.XML_ENTITIES).includes(Fh)?(xf.entity="",xf.state=Bf,xf.write(Fh)):(xf[Sh]+=Fh,xf.entity="",xf.state=Bf)}else Jd(xf.entity.length?Ud:Fd,dh)?xf.entity+=dh:(If(xf,"Invalid character in entity name"),xf[Sh]+="&"+xf.entity+dh,xf.entity="",xf.state=Bf);continue;default:throw new Error(xf,"Unknown state: "+xf.state)}return xf.position>=xf.bufferCheckPosition&&ld(xf),xf}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var Cf=String.fromCharCode,xf=Math.floor,Yf=function(){var dh=16384,Rh=[],th,Bf,Sh=-1,Fh=arguments.length;if(!Fh)return"";for(var uh="";++Sh1114111||xf(Pf)!==Pf)throw RangeError("Invalid code point: "+Pf);Pf<=65535?Rh.push(Pf):(Pf-=65536,th=(Pf>>10)+55296,Bf=Pf%1024+56320,Rh.push(th,Bf)),(Sh+1===Fh||Rh.length>dh)&&(uh+=Cf.apply(null,Rh),Rh.length=0)}return uh};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Yf,configurable:!0,writable:!0}):String.fromCodePoint=Yf}()})(Ra)}(sax)),sax}var bom={},hasRequiredBom;function requireBom(){return hasRequiredBom||(hasRequiredBom=1,(function(){bom.stripBOM=function(Ra){return Ra[0]==="\uFEFF"?Ra.substring(1):Ra}}).call(commonjsGlobal)),bom}var processors={},hasRequiredProcessors;function requireProcessors(){return hasRequiredProcessors||(hasRequiredProcessors=1,(function(){var Ra;Ra=new RegExp(/(?!xmlns)^.*:/),processors.normalize=function(qa){return qa.toLowerCase()},processors.firstCharLowerCase=function(qa){return qa.charAt(0).toLowerCase()+qa.slice(1)},processors.stripPrefix=function(qa){return qa.replace(Ra,"")},processors.parseNumbers=function(qa){return isNaN(qa)||(qa=qa%1===0?parseInt(qa,10):parseFloat(qa)),qa},processors.parseBooleans=function(qa){return/^(?:true|false)$/i.test(qa)&&(qa=qa.toLowerCase()==="true"),qa}}).call(commonjsGlobal)),processors}var main={},setImmediate$1={},hasRequiredSetImmediate;function requireSetImmediate(){if(hasRequiredSetImmediate)return setImmediate$1;hasRequiredSetImmediate=1;var Ra={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};return function(qa,nd){if(qa.setImmediate)return;var od=1,ld={},ud=!1,dd=qa.document,pd;function fd(Ud){typeof Ud!="function"&&(Ud=new Function(""+Ud));for(var qd=new Array(arguments.length-1),zd=0;zd"u"?commonjsGlobal:self),setImmediate$1}var hasRequiredMain;function requireMain(){if(hasRequiredMain)return main;hasRequiredMain=1;var Ra=typeof commonjsGlobal<"u"&&commonjsGlobal||typeof self<"u"&&self||window,qa=Function.prototype.apply;main.setTimeout=function(){return new nd(qa.call(setTimeout,Ra,arguments),clearTimeout)},main.setInterval=function(){return new nd(qa.call(setInterval,Ra,arguments),clearInterval)},main.clearTimeout=main.clearInterval=function(od){od&&od.close()};function nd(od,ld){this._id=od,this._clearFn=ld}return nd.prototype.unref=nd.prototype.ref=function(){},nd.prototype.close=function(){this._clearFn.call(Ra,this._id)},main.enroll=function(od,ld){clearTimeout(od._idleTimeoutId),od._idleTimeout=ld},main.unenroll=function(od){clearTimeout(od._idleTimeoutId),od._idleTimeout=-1},main._unrefActive=main.active=function(od){clearTimeout(od._idleTimeoutId);var ld=od._idleTimeout;ld>=0&&(od._idleTimeoutId=setTimeout(function(){od._onTimeout&&od._onTimeout()},ld))},requireSetImmediate(),main.setImmediate=typeof self<"u"&&self.setImmediate||typeof commonjsGlobal<"u"&&commonjsGlobal.setImmediate||commonjsGlobal&&commonjsGlobal.setImmediate,main.clearImmediate=typeof self<"u"&&self.clearImmediate||typeof commonjsGlobal<"u"&&commonjsGlobal.clearImmediate||commonjsGlobal&&commonjsGlobal.clearImmediate,main}var hasRequiredParser;function requireParser(){return hasRequiredParser||(hasRequiredParser=1,function(Ra){(function(){var qa,nd,od,ld,ud,dd,pd,fd,md=function(Nd,Od){return function(){return Nd.apply(Od,arguments)}},vd=function(Nd,Od){for(var kd in Od)Ad.call(Od,kd)&&(Nd[kd]=Od[kd]);function Ld(){this.constructor=Nd}return Ld.prototype=Od.prototype,Nd.prototype=new Ld,Nd.__super__=Od.prototype,Nd},Ad={}.hasOwnProperty;pd=requireSax(),od=eventsExports,qa=requireBom(),dd=requireProcessors(),fd=requireMain().setImmediate,nd=requireDefaults().defaults,ld=function(Nd){return typeof Nd=="object"&&Nd!=null&&Object.keys(Nd).length===0},ud=function(Nd,Od,kd){var Ld,Gd,jd;for(Ld=0,Gd=Nd.length;Ld0&&(Wd[Fd.options.childkey]=_f),_f=Wd;else if(mf){mf[Fd.options.childkey]=mf[Fd.options.childkey]||[],Xd=Object.create(null);for(zd in _f)Ad.call(_f,zd)&&(Xd[zd]=_f[zd]);mf[Fd.options.childkey].push(Xd),delete _f["#name"],Object.keys(_f).length===1&&Ld in _f&&!Fd.EXPLICIT_CHARKEY&&(_f=_f[Ld])}}return jd.length>0?Fd.assignOrPush(mf,Jd,_f):(Fd.options.explicitRoot&&(pf=_f,_f=Object.create(null),_f[Jd]=pf),Fd.resultObject=_f,Fd.saxParser.ended=!0,Fd.emit("end",Fd.resultObject))}}(this),Gd=function(Fd){return function(Ud){var qd,zd;if(zd=jd[jd.length-1],zd)return zd[Ld]+=Ud,Fd.options.explicitChildren&&Fd.options.preserveChildrenOrder&&Fd.options.charsAsChildren&&(Fd.options.includeWhiteChars||Ud.replace(/\\n/g,"").trim()!=="")&&(zd[Fd.options.childkey]=zd[Fd.options.childkey]||[],qd={"#name":"__text__"},qd[Ld]=Ud,Fd.options.normalize&&(qd[Ld]=qd[Ld].replace(/\s{2,}/g," ").trim()),zd[Fd.options.childkey].push(qd)),zd}}(this),this.saxParser.ontext=Gd,this.saxParser.oncdata=function(Fd){return function(Ud){var qd;if(qd=Gd(Ud),qd)return qd.cdata=!0}}()},Od.prototype.parseString=function(kd,Ld){var Gd;Ld!=null&&typeof Ld=="function"&&(this.on("end",function(jd){return this.reset(),Ld(null,jd)}),this.on("error",function(jd){return this.reset(),Ld(jd)}));try{return kd=kd.toString(),kd.trim()===""?(this.emit("end",null),!0):(kd=qa.stripBOM(kd),this.options.async?(this.remaining=kd,fd(this.processAsync),this.saxParser):this.saxParser.write(kd).close())}catch(jd){if(Gd=jd,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Gd}else return this.emit("error",Gd),this.saxParser.errThrown=!0}},Od.prototype.parseStringPromise=function(kd){return new Promise(function(Ld){return function(Gd,jd){return Ld.parseString(kd,function(Fd,Ud){return Fd?jd(Fd):Gd(Ud)})}}(this))},Od}(od),Ra.parseString=function(Nd,Od,kd){var Ld,Gd,jd;return kd!=null?(typeof kd=="function"&&(Ld=kd),typeof Od=="object"&&(Gd=Od)):(typeof Od=="function"&&(Ld=Od),Gd={}),jd=new Ra.Parser(Gd),jd.parseString(Nd,Ld)},Ra.parseStringPromise=function(Nd,Od){var kd,Ld;return typeof Od=="object"&&(kd=Od),Ld=new Ra.Parser(kd),Ld.parseStringPromise(Nd)}}).call(commonjsGlobal)}(parser)),parser}(function(){var Ra,qa,nd,od,ld=function(dd,pd){for(var fd in pd)ud.call(pd,fd)&&(dd[fd]=pd[fd]);function md(){this.constructor=dd}return md.prototype=pd.prototype,dd.prototype=new md,dd.__super__=pd.prototype,dd},ud={}.hasOwnProperty;qa=requireDefaults(),Ra=requireBuilder(),nd=requireParser(),od=requireProcessors(),xml2js.defaults=qa.defaults,xml2js.processors=od,xml2js.ValidationError=function(dd){ld(pd,dd);function pd(fd){this.message=fd}return pd}(Error),xml2js.Builder=Ra.Builder,xml2js.Parser=nd.Parser,xml2js.parseString=nd.parseString,xml2js.parseStringPromise=nd.parseStringPromise}).call(commonjsGlobal);class ExtendableError extends Error{constructor(qa,nd){super(qa,nd),this.name=this.constructor.name}}class AnonymousRequestError extends ExtendableError{}class InvalidArgumentError extends ExtendableError{}class InvalidEndpointError extends ExtendableError{}class InvalidBucketNameError extends ExtendableError{}class InvalidObjectNameError extends ExtendableError{}class AccessKeyRequiredError extends ExtendableError{}class SecretKeyRequiredError extends ExtendableError{}class ExpiresParamError extends ExtendableError{}class InvalidDateError extends ExtendableError{}class InvalidPrefixError extends ExtendableError{}class InvalidBucketPolicyError extends ExtendableError{}class InvalidXMLError extends ExtendableError{}class S3Error extends ExtendableError{}class IsValidBucketNameError extends ExtendableError{}var validator$2={},util$4={};(function(Ra){const qa=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",nd=qa+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",od="["+qa+"]["+nd+"]*",ld=new RegExp("^"+od+"$"),ud=function(pd,fd){const md=[];let vd=fd.exec(pd);for(;vd;){const Ad=[];Ad.startIndex=fd.lastIndex-vd[0].length;const Nd=vd.length;for(let Od=0;Od"u")};Ra.isExist=function(pd){return typeof pd<"u"},Ra.isEmptyObject=function(pd){return Object.keys(pd).length===0},Ra.merge=function(pd,fd,md){if(fd){const vd=Object.keys(fd),Ad=vd.length;for(let Nd=0;Nd"&&Ra[ud]!==" "&&Ra[ud]!==" "&&Ra[ud]!==` `&&Ra[ud]!=="\r";ud++)fd+=Ra[ud];if(fd=fd.trim(),fd[fd.length-1]==="/"&&(fd=fd.substring(0,fd.length-1),ud--),!validateTagName(fd)){let Ad;return fd.trim().length===0?Ad="Invalid space after '<'.":Ad="Tag '"+fd+"' is an invalid name.",getErrorObject("InvalidTag",Ad,getLineNumberForPosition(Ra,ud))}const md=readAttributeStr(Ra,ud);if(md===!1)return getErrorObject("InvalidAttr","Attributes for '"+fd+"' have open quote.",getLineNumberForPosition(Ra,ud));let vd=md.value;if(ud=md.index,vd[vd.length-1]==="/"){const Ad=ud-vd.length;vd=vd.substring(0,vd.length-1);const Nd=validateAttributeString(vd,qa);if(Nd===!0)od=!0;else return getErrorObject(Nd.err.code,Nd.err.msg,getLineNumberForPosition(Ra,Ad+Nd.err.line))}else if(pd)if(md.tagClosed){if(vd.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+fd+"' can't have attributes or invalid starting.",getLineNumberForPosition(Ra,dd));if(nd.length===0)return getErrorObject("InvalidTag","Closing tag '"+fd+"' has not been opened.",getLineNumberForPosition(Ra,dd));{const Ad=nd.pop();if(fd!==Ad.tagName){let Nd=getLineNumberForPosition(Ra,Ad.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+Ad.tagName+"' (opened in line "+Nd.line+", col "+Nd.col+") instead of closing tag '"+fd+"'.",getLineNumberForPosition(Ra,dd))}nd.length==0&&(ld=!0)}}else return getErrorObject("InvalidTag","Closing tag '"+fd+"' doesn't have proper closing.",getLineNumberForPosition(Ra,ud));else{const Ad=validateAttributeString(vd,qa);if(Ad!==!0)return getErrorObject(Ad.err.code,Ad.err.msg,getLineNumberForPosition(Ra,ud-vd.length+Ad.err.line));if(ld===!0)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(Ra,ud));qa.unpairedTags.indexOf(fd)!==-1||nd.push({tagName:fd,tagStartPos:dd}),od=!0}for(ud++;ud0)return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(nd.map(ud=>ud.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return getErrorObject("InvalidXml","Start tag expected.",1);return!0};function isWhiteSpace(Ra){return Ra===" "||Ra===" "||Ra===` `||Ra==="\r"}function readPI(Ra,qa){const nd=qa;for(;qa5&&od==="xml")return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(Ra,qa));if(Ra[qa]=="?"&&Ra[qa+1]==">"){qa++;break}else continue}return qa}function readCommentAndCDATA(Ra,qa){if(Ra.length>qa+5&&Ra[qa+1]==="-"&&Ra[qa+2]==="-"){for(qa+=3;qa"){qa+=2;break}}else if(Ra.length>qa+8&&Ra[qa+1]==="D"&&Ra[qa+2]==="O"&&Ra[qa+3]==="C"&&Ra[qa+4]==="T"&&Ra[qa+5]==="Y"&&Ra[qa+6]==="P"&&Ra[qa+7]==="E"){let nd=1;for(qa+=8;qa"&&(nd--,nd===0))break}else if(Ra.length>qa+9&&Ra[qa+1]==="["&&Ra[qa+2]==="C"&&Ra[qa+3]==="D"&&Ra[qa+4]==="A"&&Ra[qa+5]==="T"&&Ra[qa+6]==="A"&&Ra[qa+7]==="["){for(qa+=8;qa"){qa+=2;break}}return qa}const doubleQuote='"',singleQuote="'";function readAttributeStr(Ra,qa){let nd="",od="",ld=!1;for(;qa"&&od===""){ld=!0;break}nd+=Ra[qa]}return od!==""?!1:{value:nd,index:qa,tagClosed:ld}}const validAttrStrRegxp=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString(Ra,qa){const nd=util$3.getAllMatches(Ra,validAttrStrRegxp),od={};for(let ld=0;ld!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Ra,qa,nd){return Ra}},buildOptions$1=function(Ra){return Object.assign({},defaultOptions$1,Ra)};OptionsBuilder.buildOptions=buildOptions$1;OptionsBuilder.defaultOptions=defaultOptions$1;class XmlNode{constructor(qa){this.tagname=qa,this.child=[],this[":@"]={}}add(qa,nd){qa==="__proto__"&&(qa="#__proto__"),this.child.push({[qa]:nd})}addChild(qa){qa.tagname==="__proto__"&&(qa.tagname="#__proto__"),qa[":@"]&&Object.keys(qa[":@"]).length>0?this.child.push({[qa.tagname]:qa.child,":@":qa[":@"]}):this.child.push({[qa.tagname]:qa.child})}}var xmlNode$1=XmlNode;const util$2=util$4;function readDocType$1(Ra,qa){const nd={};if(Ra[qa+3]==="O"&&Ra[qa+4]==="C"&&Ra[qa+5]==="T"&&Ra[qa+6]==="Y"&&Ra[qa+7]==="P"&&Ra[qa+8]==="E"){qa=qa+9;let od=1,ld=!1,ud=!1,dd="";for(;qa"){if(ud?Ra[qa-1]==="-"&&Ra[qa-2]==="-"&&(ud=!1,od--):od--,od===0)break}else Ra[qa]==="["?ld=!0:dd+=Ra[qa];if(od!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:nd,i:qa}}function readEntityExp(Ra,qa){let nd="";for(;qa{for(const nd of Ra)if(typeof nd=="string"&&qa===nd||nd instanceof RegExp&&nd.test(qa))return!0}:()=>!1}var ignoreAttributes=getIgnoreAttributesFn$2;const util$1=util$4,xmlNode=xmlNode$1,readDocType=DocTypeReader,toNumber=strnum,getIgnoreAttributesFn$1=ignoreAttributes;let OrderedObjParser$1=class{constructor(qa){this.options=qa,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(nd,od)=>String.fromCharCode(Number.parseInt(od,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(nd,od)=>String.fromCharCode(Number.parseInt(od,16))}},this.addExternalEntities=addExternalEntities,this.parseXml=parseXml$1,this.parseTextData=parseTextData,this.resolveNameSpace=resolveNameSpace,this.buildAttributesMap=buildAttributesMap,this.isItStopNode=isItStopNode,this.replaceEntitiesValue=replaceEntitiesValue$1,this.readStopNodeData=readStopNodeData,this.saveTextToParentTag=saveTextToParentTag,this.addChild=addChild,this.ignoreAttributesFn=getIgnoreAttributesFn$1(this.options.ignoreAttributes)}};function addExternalEntities(Ra){const qa=Object.keys(Ra);for(let nd=0;nd0)){dd||(Ra=this.replaceEntitiesValue(Ra));const pd=this.options.tagValueProcessor(qa,Ra,nd,ld,ud);return pd==null?Ra:typeof pd!=typeof Ra||pd!==Ra?pd:this.options.trimValues?parseValue(Ra,this.options.parseTagValue,this.options.numberParseOptions):Ra.trim()===Ra?parseValue(Ra,this.options.parseTagValue,this.options.numberParseOptions):Ra}}function resolveNameSpace(Ra){if(this.options.removeNSPrefix){const qa=Ra.split(":"),nd=Ra.charAt(0)==="/"?"/":"";if(qa[0]==="xmlns")return"";qa.length===2&&(Ra=nd+qa[1])}return Ra}const attrsRegx=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function buildAttributesMap(Ra,qa,nd){if(this.options.ignoreAttributes!==!0&&typeof Ra=="string"){const od=util$1.getAllMatches(Ra,attrsRegx),ld=od.length,ud={};for(let dd=0;dd",ud,"Closing Tag is not closed.");let fd=Ra.substring(ud+2,pd).trim();if(this.options.removeNSPrefix){const Ad=fd.indexOf(":");Ad!==-1&&(fd=fd.substr(Ad+1))}this.options.transformTagName&&(fd=this.options.transformTagName(fd)),nd&&(od=this.saveTextToParentTag(od,nd,ld));const md=ld.substring(ld.lastIndexOf(".")+1);if(fd&&this.options.unpairedTags.indexOf(fd)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let vd=0;md&&this.options.unpairedTags.indexOf(md)!==-1?(vd=ld.lastIndexOf(".",ld.lastIndexOf(".")-1),this.tagsNodeStack.pop()):vd=ld.lastIndexOf("."),ld=ld.substring(0,vd),nd=this.tagsNodeStack.pop(),od="",ud=pd}else if(Ra[ud+1]==="?"){let pd=readTagExp(Ra,ud,!1,"?>");if(!pd)throw new Error("Pi Tag is not closed.");if(od=this.saveTextToParentTag(od,nd,ld),!(this.options.ignoreDeclaration&&pd.tagName==="?xml"||this.options.ignorePiTags)){const fd=new xmlNode(pd.tagName);fd.add(this.options.textNodeName,""),pd.tagName!==pd.tagExp&&pd.attrExpPresent&&(fd[":@"]=this.buildAttributesMap(pd.tagExp,ld,pd.tagName)),this.addChild(nd,fd,ld)}ud=pd.closeIndex+1}else if(Ra.substr(ud+1,3)==="!--"){const pd=findClosingIndex(Ra,"-->",ud+4,"Comment is not closed.");if(this.options.commentPropName){const fd=Ra.substring(ud+4,pd-2);od=this.saveTextToParentTag(od,nd,ld),nd.add(this.options.commentPropName,[{[this.options.textNodeName]:fd}])}ud=pd}else if(Ra.substr(ud+1,2)==="!D"){const pd=readDocType(Ra,ud);this.docTypeEntities=pd.entities,ud=pd.i}else if(Ra.substr(ud+1,2)==="!["){const pd=findClosingIndex(Ra,"]]>",ud,"CDATA is not closed.")-2,fd=Ra.substring(ud+9,pd);od=this.saveTextToParentTag(od,nd,ld);let md=this.parseTextData(fd,nd.tagname,ld,!0,!1,!0,!0);md==null&&(md=""),this.options.cdataPropName?nd.add(this.options.cdataPropName,[{[this.options.textNodeName]:fd}]):nd.add(this.options.textNodeName,md),ud=pd+2}else{let pd=readTagExp(Ra,ud,this.options.removeNSPrefix),fd=pd.tagName;const md=pd.rawTagName;let vd=pd.tagExp,Ad=pd.attrExpPresent,Nd=pd.closeIndex;this.options.transformTagName&&(fd=this.options.transformTagName(fd)),nd&&od&&nd.tagname!=="!xml"&&(od=this.saveTextToParentTag(od,nd,ld,!1));const Od=nd;if(Od&&this.options.unpairedTags.indexOf(Od.tagname)!==-1&&(nd=this.tagsNodeStack.pop(),ld=ld.substring(0,ld.lastIndexOf("."))),fd!==qa.tagname&&(ld+=ld?"."+fd:fd),this.isItStopNode(this.options.stopNodes,ld,fd)){let kd="";if(vd.length>0&&vd.lastIndexOf("/")===vd.length-1)fd[fd.length-1]==="/"?(fd=fd.substr(0,fd.length-1),ld=ld.substr(0,ld.length-1),vd=fd):vd=vd.substr(0,vd.length-1),ud=pd.closeIndex;else if(this.options.unpairedTags.indexOf(fd)!==-1)ud=pd.closeIndex;else{const Gd=this.readStopNodeData(Ra,md,Nd+1);if(!Gd)throw new Error(`Unexpected end of ${md}`);ud=Gd.i,kd=Gd.tagContent}const Ld=new xmlNode(fd);fd!==vd&&Ad&&(Ld[":@"]=this.buildAttributesMap(vd,ld,fd)),kd&&(kd=this.parseTextData(kd,fd,ld,!0,Ad,!0,!0)),ld=ld.substr(0,ld.lastIndexOf(".")),Ld.add(this.options.textNodeName,kd),this.addChild(nd,Ld,ld)}else{if(vd.length>0&&vd.lastIndexOf("/")===vd.length-1){fd[fd.length-1]==="/"?(fd=fd.substr(0,fd.length-1),ld=ld.substr(0,ld.length-1),vd=fd):vd=vd.substr(0,vd.length-1),this.options.transformTagName&&(fd=this.options.transformTagName(fd));const kd=new xmlNode(fd);fd!==vd&&Ad&&(kd[":@"]=this.buildAttributesMap(vd,ld,fd)),this.addChild(nd,kd,ld),ld=ld.substr(0,ld.lastIndexOf("."))}else{const kd=new xmlNode(fd);this.tagsNodeStack.push(nd),fd!==vd&&Ad&&(kd[":@"]=this.buildAttributesMap(vd,ld,fd)),this.addChild(nd,kd,ld),nd=kd}od="",ud=Nd}}else od+=Ra[ud];return qa.child};function addChild(Ra,qa,nd){const od=this.options.updateTag(qa.tagname,nd,qa[":@"]);od===!1||(typeof od=="string"&&(qa.tagname=od),Ra.addChild(qa))}const replaceEntitiesValue$1=function(Ra){if(this.options.processEntities){for(let qa in this.docTypeEntities){const nd=this.docTypeEntities[qa];Ra=Ra.replace(nd.regx,nd.val)}for(let qa in this.lastEntities){const nd=this.lastEntities[qa];Ra=Ra.replace(nd.regex,nd.val)}if(this.options.htmlEntities)for(let qa in this.htmlEntities){const nd=this.htmlEntities[qa];Ra=Ra.replace(nd.regex,nd.val)}Ra=Ra.replace(this.ampEntity.regex,this.ampEntity.val)}return Ra};function saveTextToParentTag(Ra,qa,nd,od){return Ra&&(od===void 0&&(od=Object.keys(qa.child).length===0),Ra=this.parseTextData(Ra,qa.tagname,nd,!1,qa[":@"]?Object.keys(qa[":@"]).length!==0:!1,od),Ra!==void 0&&Ra!==""&&qa.add(this.options.textNodeName,Ra),Ra=""),Ra}function isItStopNode(Ra,qa,nd){const od="*."+nd;for(const ld in Ra){const ud=Ra[ld];if(od===ud||qa===ud)return!0}return!1}function tagExpWithClosingIndex(Ra,qa,nd=">"){let od,ld="";for(let ud=qa;ud",nd,`${qa} is not closed`);if(Ra.substring(nd+2,ud).trim()===qa&&(ld--,ld===0))return{tagContent:Ra.substring(od,nd),i:ud};nd=ud}else if(Ra[nd+1]==="?")nd=findClosingIndex(Ra,"?>",nd+1,"StopNode is not closed.");else if(Ra.substr(nd+1,3)==="!--")nd=findClosingIndex(Ra,"-->",nd+3,"StopNode is not closed.");else if(Ra.substr(nd+1,2)==="![")nd=findClosingIndex(Ra,"]]>",nd,"StopNode is not closed.")-2;else{const ud=readTagExp(Ra,nd,">");ud&&((ud&&ud.tagName)===qa&&ud.tagExp[ud.tagExp.length-1]!=="/"&&ld++,nd=ud.closeIndex)}}function parseValue(Ra,qa,nd){if(qa&&typeof Ra=="string"){const od=Ra.trim();return od==="true"?!0:od==="false"?!1:toNumber(Ra,nd)}else return util$1.isExist(Ra)?Ra:""}var OrderedObjParser_1=OrderedObjParser$1,node2json={};function prettify$1(Ra,qa){return compress(Ra,qa)}function compress(Ra,qa,nd){let od;const ld={};for(let ud=0;ud0&&(ld[qa.textNodeName]=od):od!==void 0&&(ld[qa.textNodeName]=od),ld}function propName$1(Ra){const qa=Object.keys(Ra);for(let nd=0;nd0&&(nd=EOL),arrToStr(Ra,qa,"",nd)}function arrToStr(Ra,qa,nd,od){let ld="",ud=!1;for(let dd=0;dd`,ud=!1;continue}else if(fd===qa.commentPropName){ld+=od+``,ud=!0;continue}else if(fd[0]==="?"){const kd=attr_to_str(pd[":@"],qa),Ld=fd==="?xml"?"":od;let Gd=pd[fd][0][qa.textNodeName];Gd=Gd.length!==0?" "+Gd:"",ld+=Ld+`<${fd}${Gd}${kd}?>`,ud=!0;continue}let vd=od;vd!==""&&(vd+=qa.indentBy);const Ad=attr_to_str(pd[":@"],qa),Nd=od+`<${fd}${Ad}`,Od=arrToStr(pd[fd],qa,md,vd);qa.unpairedTags.indexOf(fd)!==-1?qa.suppressUnpairedNode?ld+=Nd+">":ld+=Nd+"/>":(!Od||Od.length===0)&&qa.suppressEmptyNode?ld+=Nd+"/>":Od&&Od.endsWith(">")?ld+=Nd+`>${Od}${od}`:(ld+=Nd+">",Od&&od!==""&&(Od.includes("/>")||Od.includes("`),ud=!0}return ld}function propName(Ra){const qa=Object.keys(Ra);for(let nd=0;nd0&&qa.processEntities)for(let nd=0;nd","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Builder(Ra){this.options=Object.assign({},defaultOptions,Ra),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=getIgnoreAttributesFn(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute),this.processTextOrObjNode=processTextOrObjNode,this.options.format?(this.indentate=indentate,this.tagEndChar=`> `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Builder.prototype.build=function(Ra){return this.options.preserveOrder?buildFromOrderedJs(Ra,this.options):(Array.isArray(Ra)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ra={[this.options.arrayNodeName]:Ra}),this.j2x(Ra,0,[]).val)};Builder.prototype.j2x=function(Ra,qa,nd){let od="",ld="";const ud=nd.join(".");for(let dd in Ra)if(Object.prototype.hasOwnProperty.call(Ra,dd))if(typeof Ra[dd]>"u")this.isAttribute(dd)&&(ld+="");else if(Ra[dd]===null)this.isAttribute(dd)?ld+="":dd[0]==="?"?ld+=this.indentate(qa)+"<"+dd+"?"+this.tagEndChar:ld+=this.indentate(qa)+"<"+dd+"/"+this.tagEndChar;else if(Ra[dd]instanceof Date)ld+=this.buildTextValNode(Ra[dd],dd,"",qa);else if(typeof Ra[dd]!="object"){const pd=this.isAttribute(dd);if(pd&&!this.ignoreAttributesFn(pd,ud))od+=this.buildAttrPairStr(pd,""+Ra[dd]);else if(!pd)if(dd===this.options.textNodeName){let fd=this.options.tagValueProcessor(dd,""+Ra[dd]);ld+=this.replaceEntitiesValue(fd)}else ld+=this.buildTextValNode(Ra[dd],dd,"",qa)}else if(Array.isArray(Ra[dd])){const pd=Ra[dd].length;let fd="",md="";for(let vd=0;vd"u"))if(Ad===null)dd[0]==="?"?ld+=this.indentate(qa)+"<"+dd+"?"+this.tagEndChar:ld+=this.indentate(qa)+"<"+dd+"/"+this.tagEndChar;else if(typeof Ad=="object")if(this.options.oneListGroup){const Nd=this.j2x(Ad,qa+1,nd.concat(dd));fd+=Nd.val,this.options.attributesGroupName&&Ad.hasOwnProperty(this.options.attributesGroupName)&&(md+=Nd.attrStr)}else fd+=this.processTextOrObjNode(Ad,dd,qa,nd);else if(this.options.oneListGroup){let Nd=this.options.tagValueProcessor(dd,Ad);Nd=this.replaceEntitiesValue(Nd),fd+=Nd}else fd+=this.buildTextValNode(Ad,dd,"",qa)}this.options.oneListGroup&&(fd=this.buildObjectNode(fd,dd,md,qa)),ld+=fd}else if(this.options.attributesGroupName&&dd===this.options.attributesGroupName){const pd=Object.keys(Ra[dd]),fd=pd.length;for(let md=0;md"+Ra+ld:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&ud.length===0?this.indentate(od)+``+this.newLine:this.indentate(od)+"<"+qa+nd+ud+this.tagEndChar+Ra+this.indentate(od)+ld}};Builder.prototype.closeTag=function(Ra){let qa="";return this.options.unpairedTags.indexOf(Ra)!==-1?this.options.suppressUnpairedNode||(qa="/"):this.options.suppressEmptyNode?qa="/":qa=`>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(od)+``+this.newLine;if(qa[0]==="?")return this.indentate(od)+"<"+qa+nd+"?"+this.tagEndChar;{let ld=this.options.tagValueProcessor(qa,Ra);return ld=this.replaceEntitiesValue(ld),ld===""?this.indentate(od)+"<"+qa+nd+this.closeTag(qa)+this.tagEndChar:this.indentate(od)+"<"+qa+nd+">"+ld+"0&&this.options.processEntities)for(let qa=0;qa=0;)Gd++;if(kd.substr(0,2)==="::"&&Gd--,kd.substr(-2,2)==="::"&&Gd--,Gd>Ld)return null;for(qd=Ld-Gd,jd=":";qd--;)jd+="0:";return kd=kd.replace("::",jd),kd[0]===":"&&(kd=kd.slice(1)),kd[kd.length-1]===":"&&(kd=kd.slice(0,-1)),Ld=function(){const zd=kd.split(":"),Yd=[];for(let Jd=0;Jd0;){if(jd=Gd-Ud,jd<0&&(jd=0),kd[Fd]>>jd!==Ld[Fd]>>jd)return!1;Ud-=Gd,Fd+=1}return!0}function Ad(kd){if(ud.test(kd))return parseInt(kd,16);if(kd[0]==="0"&&!isNaN(parseInt(kd[1],10))){if(ld.test(kd))return parseInt(kd,8);throw new Error(`ipaddr: cannot parse ${kd} as octal`)}return parseInt(kd,10)}function Nd(kd,Ld){for(;kd.length=0;Fd-=1)if(jd=this.octets[Fd],jd in Ud){if(qd=Ud[jd],Gd&&qd!==0)return null;qd!==8&&(Gd=!0),Ld+=qd}else return null;return 32-Ld},kd.prototype.range=function(){return Od.subnetMatch(this,this.SpecialRanges)},kd.prototype.toByteArray=function(){return this.octets.slice(0)},kd.prototype.toIPv4MappedAddress=function(){return Od.IPv6.parse(`::ffff:${this.toString()}`)},kd.prototype.toNormalizedString=function(){return this.toString()},kd.prototype.toString=function(){return this.octets.join(".")},kd}(),Od.IPv4.broadcastAddressFromCIDR=function(kd){try{const Ld=this.parseCIDR(kd),Gd=Ld[0].toByteArray(),Ud=this.subnetMaskFromPrefixLength(Ld[1]).toByteArray(),Fd=[];let jd=0;for(;jd<4;)Fd.push(parseInt(Gd[jd],10)|parseInt(Ud[jd],10)^255),jd++;return new this(Fd)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},Od.IPv4.isIPv4=function(kd){return this.parser(kd)!==null},Od.IPv4.isValid=function(kd){try{return new this(this.parser(kd)),!0}catch{return!1}},Od.IPv4.isValidCIDR=function(kd){try{return this.parseCIDR(kd),!0}catch{return!1}},Od.IPv4.isValidFourPartDecimal=function(kd){return!!(Od.IPv4.isValid(kd)&&kd.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},Od.IPv4.networkAddressFromCIDR=function(kd){let Ld,Gd,Ud,Fd,jd;try{for(Ld=this.parseCIDR(kd),Ud=Ld[0].toByteArray(),jd=this.subnetMaskFromPrefixLength(Ld[1]).toByteArray(),Fd=[],Gd=0;Gd<4;)Fd.push(parseInt(Ud[Gd],10)&parseInt(jd[Gd],10)),Gd++;return new this(Fd)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},Od.IPv4.parse=function(kd){const Ld=this.parser(kd);if(Ld===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(Ld)},Od.IPv4.parseCIDR=function(kd){let Ld;if(Ld=kd.match(/^(.+)\/(\d+)$/)){const Gd=parseInt(Ld[2]);if(Gd>=0&&Gd<=32){const Ud=[this.parse(Ld[1]),Gd];return Object.defineProperty(Ud,"toString",{value:function(){return this.join("/")}}),Ud}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},Od.IPv4.parser=function(kd){let Ld,Gd,Ud;if(Ld=kd.match(od.fourOctet))return function(){const Fd=Ld.slice(1,6),jd=[];for(let qd=0;qd4294967295||Ud<0)throw new Error("ipaddr: address outside defined range");return function(){const Fd=[];let jd;for(jd=0;jd<=24;jd+=8)Fd.push(Ud>>jd&255);return Fd}().reverse()}else return(Ld=kd.match(od.twoOctet))?function(){const Fd=Ld.slice(1,4),jd=[];if(Ud=Ad(Fd[1]),Ud>16777215||Ud<0)throw new Error("ipaddr: address outside defined range");return jd.push(Ad(Fd[0])),jd.push(Ud>>16&255),jd.push(Ud>>8&255),jd.push(Ud&255),jd}():(Ld=kd.match(od.threeOctet))?function(){const Fd=Ld.slice(1,5),jd=[];if(Ud=Ad(Fd[2]),Ud>65535||Ud<0)throw new Error("ipaddr: address outside defined range");return jd.push(Ad(Fd[0])),jd.push(Ad(Fd[1])),jd.push(Ud>>8&255),jd.push(Ud&255),jd}():null},Od.IPv4.subnetMaskFromPrefixLength=function(kd){if(kd=parseInt(kd),kd<0||kd>32)throw new Error("ipaddr: invalid IPv4 prefix length");const Ld=[0,0,0,0];let Gd=0;const Ud=Math.floor(kd/8);for(;Gd=0;qd-=1)if(Fd=this.parts[qd],Fd in Ud){if(jd=Ud[Fd],Gd&&jd!==0)return null;jd!==16&&(Gd=!0),Ld+=jd}else return null;return 128-Ld},kd.prototype.range=function(){return Od.subnetMatch(this,this.SpecialRanges)},kd.prototype.toByteArray=function(){let Ld;const Gd=[],Ud=this.parts;for(let Fd=0;Fd>8),Gd.push(Ld&255);return Gd},kd.prototype.toFixedLengthString=function(){const Ld=(function(){const Ud=[];for(let Fd=0;Fd>8,Gd&255,Ud>>8,Ud&255])},kd.prototype.toNormalizedString=function(){const Ld=(function(){const Ud=[];for(let Fd=0;FdFd&&(Ud=jd.index,Fd=jd[0].length);return Fd<0?Gd:`${Gd.substring(0,Ud)}::${Gd.substring(Ud+Fd)}`},kd.prototype.toString=function(){return this.toRFC5952String()},kd}(),Od.IPv6.broadcastAddressFromCIDR=function(kd){try{const Ld=this.parseCIDR(kd),Gd=Ld[0].toByteArray(),Ud=this.subnetMaskFromPrefixLength(Ld[1]).toByteArray(),Fd=[];let jd=0;for(;jd<16;)Fd.push(parseInt(Gd[jd],10)|parseInt(Ud[jd],10)^255),jd++;return new this(Fd)}catch(Ld){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${Ld})`)}},Od.IPv6.isIPv6=function(kd){return this.parser(kd)!==null},Od.IPv6.isValid=function(kd){if(typeof kd=="string"&&kd.indexOf(":")===-1)return!1;try{const Ld=this.parser(kd);return new this(Ld.parts,Ld.zoneId),!0}catch{return!1}},Od.IPv6.isValidCIDR=function(kd){if(typeof kd=="string"&&kd.indexOf(":")===-1)return!1;try{return this.parseCIDR(kd),!0}catch{return!1}},Od.IPv6.networkAddressFromCIDR=function(kd){let Ld,Gd,Ud,Fd,jd;try{for(Ld=this.parseCIDR(kd),Ud=Ld[0].toByteArray(),jd=this.subnetMaskFromPrefixLength(Ld[1]).toByteArray(),Fd=[],Gd=0;Gd<16;)Fd.push(parseInt(Ud[Gd],10)&parseInt(jd[Gd],10)),Gd++;return new this(Fd)}catch(qd){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${qd})`)}},Od.IPv6.parse=function(kd){const Ld=this.parser(kd);if(Ld.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(Ld.parts,Ld.zoneId)},Od.IPv6.parseCIDR=function(kd){let Ld,Gd,Ud;if((Gd=kd.match(/^(.+)\/(\d+)$/))&&(Ld=parseInt(Gd[2]),Ld>=0&&Ld<=128))return Ud=[this.parse(Gd[1]),Ld],Object.defineProperty(Ud,"toString",{value:function(){return this.join("/")}}),Ud;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},Od.IPv6.parser=function(kd){let Ld,Gd,Ud,Fd,jd,qd;if(Ud=kd.match(fd.deprecatedTransitional))return this.parser(`::ffff:${Ud[1]}`);if(fd.native.test(kd))return md(kd,8);if((Ud=kd.match(fd.transitional))&&(qd=Ud[6]||"",Ld=Ud[1],Ud[1].endsWith("::")||(Ld=Ld.slice(0,-1)),Ld=md(Ld+qd,6),Ld.parts)){for(jd=[parseInt(Ud[2]),parseInt(Ud[3]),parseInt(Ud[4]),parseInt(Ud[5])],Gd=0;Gd128)throw new Error("ipaddr: invalid IPv6 prefix length");const Ld=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let Gd=0;const Ud=Math.floor(kd/8);for(;Gd",this.newLine="")}Builder.prototype.build=function(Ra){return this.options.preserveOrder?buildFromOrderedJs(Ra,this.options):(Array.isArray(Ra)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ra={[this.options.arrayNodeName]:Ra}),this.j2x(Ra,0,[]).val)};Builder.prototype.j2x=function(Ra,qa,nd){let od="",ld="";const ud=nd.join(".");for(let dd in Ra)if(Object.prototype.hasOwnProperty.call(Ra,dd))if(typeof Ra[dd]>"u")this.isAttribute(dd)&&(ld+="");else if(Ra[dd]===null)this.isAttribute(dd)?ld+="":dd[0]==="?"?ld+=this.indentate(qa)+"<"+dd+"?"+this.tagEndChar:ld+=this.indentate(qa)+"<"+dd+"/"+this.tagEndChar;else if(Ra[dd]instanceof Date)ld+=this.buildTextValNode(Ra[dd],dd,"",qa);else if(typeof Ra[dd]!="object"){const pd=this.isAttribute(dd);if(pd&&!this.ignoreAttributesFn(pd,ud))od+=this.buildAttrPairStr(pd,""+Ra[dd]);else if(!pd)if(dd===this.options.textNodeName){let fd=this.options.tagValueProcessor(dd,""+Ra[dd]);ld+=this.replaceEntitiesValue(fd)}else ld+=this.buildTextValNode(Ra[dd],dd,"",qa)}else if(Array.isArray(Ra[dd])){const pd=Ra[dd].length;let fd="",md="";for(let vd=0;vd"u"))if(Ad===null)dd[0]==="?"?ld+=this.indentate(qa)+"<"+dd+"?"+this.tagEndChar:ld+=this.indentate(qa)+"<"+dd+"/"+this.tagEndChar;else if(typeof Ad=="object")if(this.options.oneListGroup){const Nd=this.j2x(Ad,qa+1,nd.concat(dd));fd+=Nd.val,this.options.attributesGroupName&&Ad.hasOwnProperty(this.options.attributesGroupName)&&(md+=Nd.attrStr)}else fd+=this.processTextOrObjNode(Ad,dd,qa,nd);else if(this.options.oneListGroup){let Nd=this.options.tagValueProcessor(dd,Ad);Nd=this.replaceEntitiesValue(Nd),fd+=Nd}else fd+=this.buildTextValNode(Ad,dd,"",qa)}this.options.oneListGroup&&(fd=this.buildObjectNode(fd,dd,md,qa)),ld+=fd}else if(this.options.attributesGroupName&&dd===this.options.attributesGroupName){const pd=Object.keys(Ra[dd]),fd=pd.length;for(let md=0;md"+Ra+ld:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&ud.length===0?this.indentate(od)+``+this.newLine:this.indentate(od)+"<"+qa+nd+ud+this.tagEndChar+Ra+this.indentate(od)+ld}};Builder.prototype.closeTag=function(Ra){let qa="";return this.options.unpairedTags.indexOf(Ra)!==-1?this.options.suppressUnpairedNode||(qa="/"):this.options.suppressEmptyNode?qa="/":qa=`>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(od)+``+this.newLine;if(qa[0]==="?")return this.indentate(od)+"<"+qa+nd+"?"+this.tagEndChar;{let ld=this.options.tagValueProcessor(qa,Ra);return ld=this.replaceEntitiesValue(ld),ld===""?this.indentate(od)+"<"+qa+nd+this.closeTag(qa)+this.tagEndChar:this.indentate(od)+"<"+qa+nd+">"+ld+"0&&this.options.processEntities)for(let qa=0;qa=0;)Gd++;if(kd.substr(0,2)==="::"&&Gd--,kd.substr(-2,2)==="::"&&Gd--,Gd>Ld)return null;for(qd=Ld-Gd,Ud=":";qd--;)Ud+="0:";return kd=kd.replace("::",Ud),kd[0]===":"&&(kd=kd.slice(1)),kd[kd.length-1]===":"&&(kd=kd.slice(0,-1)),Ld=function(){const zd=kd.split(":"),Wd=[];for(let Jd=0;Jd0;){if(Ud=Gd-jd,Ud<0&&(Ud=0),kd[Fd]>>Ud!==Ld[Fd]>>Ud)return!1;jd-=Gd,Fd+=1}return!0}function Ad(kd){if(ud.test(kd))return parseInt(kd,16);if(kd[0]==="0"&&!isNaN(parseInt(kd[1],10))){if(ld.test(kd))return parseInt(kd,8);throw new Error(`ipaddr: cannot parse ${kd} as octal`)}return parseInt(kd,10)}function Nd(kd,Ld){for(;kd.length=0;Fd-=1)if(Ud=this.octets[Fd],Ud in jd){if(qd=jd[Ud],Gd&&qd!==0)return null;qd!==8&&(Gd=!0),Ld+=qd}else return null;return 32-Ld},kd.prototype.range=function(){return Od.subnetMatch(this,this.SpecialRanges)},kd.prototype.toByteArray=function(){return this.octets.slice(0)},kd.prototype.toIPv4MappedAddress=function(){return Od.IPv6.parse(`::ffff:${this.toString()}`)},kd.prototype.toNormalizedString=function(){return this.toString()},kd.prototype.toString=function(){return this.octets.join(".")},kd}(),Od.IPv4.broadcastAddressFromCIDR=function(kd){try{const Ld=this.parseCIDR(kd),Gd=Ld[0].toByteArray(),jd=this.subnetMaskFromPrefixLength(Ld[1]).toByteArray(),Fd=[];let Ud=0;for(;Ud<4;)Fd.push(parseInt(Gd[Ud],10)|parseInt(jd[Ud],10)^255),Ud++;return new this(Fd)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},Od.IPv4.isIPv4=function(kd){return this.parser(kd)!==null},Od.IPv4.isValid=function(kd){try{return new this(this.parser(kd)),!0}catch{return!1}},Od.IPv4.isValidCIDR=function(kd){try{return this.parseCIDR(kd),!0}catch{return!1}},Od.IPv4.isValidFourPartDecimal=function(kd){return!!(Od.IPv4.isValid(kd)&&kd.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},Od.IPv4.networkAddressFromCIDR=function(kd){let Ld,Gd,jd,Fd,Ud;try{for(Ld=this.parseCIDR(kd),jd=Ld[0].toByteArray(),Ud=this.subnetMaskFromPrefixLength(Ld[1]).toByteArray(),Fd=[],Gd=0;Gd<4;)Fd.push(parseInt(jd[Gd],10)&parseInt(Ud[Gd],10)),Gd++;return new this(Fd)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},Od.IPv4.parse=function(kd){const Ld=this.parser(kd);if(Ld===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(Ld)},Od.IPv4.parseCIDR=function(kd){let Ld;if(Ld=kd.match(/^(.+)\/(\d+)$/)){const Gd=parseInt(Ld[2]);if(Gd>=0&&Gd<=32){const jd=[this.parse(Ld[1]),Gd];return Object.defineProperty(jd,"toString",{value:function(){return this.join("/")}}),jd}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},Od.IPv4.parser=function(kd){let Ld,Gd,jd;if(Ld=kd.match(od.fourOctet))return function(){const Fd=Ld.slice(1,6),Ud=[];for(let qd=0;qd4294967295||jd<0)throw new Error("ipaddr: address outside defined range");return function(){const Fd=[];let Ud;for(Ud=0;Ud<=24;Ud+=8)Fd.push(jd>>Ud&255);return Fd}().reverse()}else return(Ld=kd.match(od.twoOctet))?function(){const Fd=Ld.slice(1,4),Ud=[];if(jd=Ad(Fd[1]),jd>16777215||jd<0)throw new Error("ipaddr: address outside defined range");return Ud.push(Ad(Fd[0])),Ud.push(jd>>16&255),Ud.push(jd>>8&255),Ud.push(jd&255),Ud}():(Ld=kd.match(od.threeOctet))?function(){const Fd=Ld.slice(1,5),Ud=[];if(jd=Ad(Fd[2]),jd>65535||jd<0)throw new Error("ipaddr: address outside defined range");return Ud.push(Ad(Fd[0])),Ud.push(Ad(Fd[1])),Ud.push(jd>>8&255),Ud.push(jd&255),Ud}():null},Od.IPv4.subnetMaskFromPrefixLength=function(kd){if(kd=parseInt(kd),kd<0||kd>32)throw new Error("ipaddr: invalid IPv4 prefix length");const Ld=[0,0,0,0];let Gd=0;const jd=Math.floor(kd/8);for(;Gd=0;qd-=1)if(Fd=this.parts[qd],Fd in jd){if(Ud=jd[Fd],Gd&&Ud!==0)return null;Ud!==16&&(Gd=!0),Ld+=Ud}else return null;return 128-Ld},kd.prototype.range=function(){return Od.subnetMatch(this,this.SpecialRanges)},kd.prototype.toByteArray=function(){let Ld;const Gd=[],jd=this.parts;for(let Fd=0;Fd>8),Gd.push(Ld&255);return Gd},kd.prototype.toFixedLengthString=function(){const Ld=(function(){const jd=[];for(let Fd=0;Fd>8,Gd&255,jd>>8,jd&255])},kd.prototype.toNormalizedString=function(){const Ld=(function(){const jd=[];for(let Fd=0;FdFd&&(jd=Ud.index,Fd=Ud[0].length);return Fd<0?Gd:`${Gd.substring(0,jd)}::${Gd.substring(jd+Fd)}`},kd.prototype.toString=function(){return this.toRFC5952String()},kd}(),Od.IPv6.broadcastAddressFromCIDR=function(kd){try{const Ld=this.parseCIDR(kd),Gd=Ld[0].toByteArray(),jd=this.subnetMaskFromPrefixLength(Ld[1]).toByteArray(),Fd=[];let Ud=0;for(;Ud<16;)Fd.push(parseInt(Gd[Ud],10)|parseInt(jd[Ud],10)^255),Ud++;return new this(Fd)}catch(Ld){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${Ld})`)}},Od.IPv6.isIPv6=function(kd){return this.parser(kd)!==null},Od.IPv6.isValid=function(kd){if(typeof kd=="string"&&kd.indexOf(":")===-1)return!1;try{const Ld=this.parser(kd);return new this(Ld.parts,Ld.zoneId),!0}catch{return!1}},Od.IPv6.isValidCIDR=function(kd){if(typeof kd=="string"&&kd.indexOf(":")===-1)return!1;try{return this.parseCIDR(kd),!0}catch{return!1}},Od.IPv6.networkAddressFromCIDR=function(kd){let Ld,Gd,jd,Fd,Ud;try{for(Ld=this.parseCIDR(kd),jd=Ld[0].toByteArray(),Ud=this.subnetMaskFromPrefixLength(Ld[1]).toByteArray(),Fd=[],Gd=0;Gd<16;)Fd.push(parseInt(jd[Gd],10)&parseInt(Ud[Gd],10)),Gd++;return new this(Fd)}catch(qd){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${qd})`)}},Od.IPv6.parse=function(kd){const Ld=this.parser(kd);if(Ld.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(Ld.parts,Ld.zoneId)},Od.IPv6.parseCIDR=function(kd){let Ld,Gd,jd;if((Gd=kd.match(/^(.+)\/(\d+)$/))&&(Ld=parseInt(Gd[2]),Ld>=0&&Ld<=128))return jd=[this.parse(Gd[1]),Ld],Object.defineProperty(jd,"toString",{value:function(){return this.join("/")}}),jd;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},Od.IPv6.parser=function(kd){let Ld,Gd,jd,Fd,Ud,qd;if(jd=kd.match(fd.deprecatedTransitional))return this.parser(`::ffff:${jd[1]}`);if(fd.native.test(kd))return md(kd,8);if((jd=kd.match(fd.transitional))&&(qd=jd[6]||"",Ld=jd[1],jd[1].endsWith("::")||(Ld=Ld.slice(0,-1)),Ld=md(Ld+qd,6),Ld.parts)){for(Ud=[parseInt(jd[2]),parseInt(jd[3]),parseInt(jd[4]),parseInt(jd[5])],Gd=0;Gd128)throw new Error("ipaddr: invalid IPv6 prefix length");const Ld=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let Gd=0;const jd=Math.floor(kd/8);for(;Gdqd||jd===qd&&Ad[Fd].substr(0,12)==="application/"))continue}Ad[Fd]=kd}}})}})(mimeTypes$1);let ENCRYPTION_TYPES=function(Ra){return Ra.SSEC="SSE-C",Ra.KMS="KMS",Ra}({}),RETENTION_MODES=function(Ra){return Ra.GOVERNANCE="GOVERNANCE",Ra.COMPLIANCE="COMPLIANCE",Ra}({}),RETENTION_VALIDITY_UNITS=function(Ra){return Ra.DAYS="Days",Ra.YEARS="Years",Ra}({}),LEGAL_HOLD_STATUS=function(Ra){return Ra.ENABLED="ON",Ra.DISABLED="OFF",Ra}({});const MetaDataHeaderPrefix="x-amz-meta-";function uriEscape(Ra){return Ra.split("").reduce((qa,nd)=>{const od=Buffer$4.from(nd);if(od.length===1&&("A"<=nd&&nd<="Z"||"a"<=nd&&nd<="z"||"0"<=nd&&nd<="9"||nd==="_"||nd==="."||nd==="~"||nd==="-"))return qa=qa+nd,qa;for(const ld of od)qa=qa+"%"+ld.toString(16).toUpperCase();return qa},"")}function uriResourceEscape(Ra){return uriEscape(Ra).replace(/%2F/g,"/")}function getScope(Ra,qa,nd="s3"){return`${makeDateShort(qa)}/${Ra}/${nd}/aws4_request`}function isAmazonEndpoint(Ra){return Ra==="s3.amazonaws.com"||Ra==="s3.cn-north-1.amazonaws.com.cn"}function isVirtualHostStyle(Ra,qa,nd,od){return qa==="https:"&&nd.includes(".")?!1:isAmazonEndpoint(Ra)||!od}function isValidIP(Ra){return ipaddr.isValid(Ra)}function isValidEndpoint(Ra){return isValidDomain(Ra)||isValidIP(Ra)}function isValidDomain(Ra){if(!isString(Ra)||Ra.length===0||Ra.length>255||Ra[0]==="-"||Ra.slice(-1)==="-"||Ra[0]==="_"||Ra.slice(-1)==="_"||Ra[0]===".")return!1;const qa="`~!@#$%^&*()+={}[]|\\\"';:>63||Ra.includes("..")||/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/.test(Ra)?!1:!!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(Ra)}function isValidObjectName(Ra){return isValidPrefix(Ra)?Ra.length!==0:!1}function isValidPrefix(Ra){return!(!isString(Ra)||Ra.length>1024)}function isNumber(Ra){return typeof Ra=="number"}function isFunction(Ra){return typeof Ra=="function"}function isString(Ra){return typeof Ra=="string"}function isObject(Ra){return typeof Ra=="object"&&Ra!==null}function isReadableStream(Ra){return isObject(Ra)&&isFunction(Ra._read)}function isBoolean(Ra){return typeof Ra=="boolean"}function isEmpty(Ra){return _.isEmpty(Ra)}function isEmptyObject(Ra){return Object.values(Ra).filter(qa=>qa!==void 0).length!==0}function isDefined(Ra){return Ra!=null}function isValidDate(Ra){return Ra instanceof Date&&!isNaN(Ra)}function makeDateLong(Ra){Ra=Ra||new Date;const qa=Ra.toISOString();return qa.slice(0,4)+qa.slice(5,7)+qa.slice(8,13)+qa.slice(14,16)+qa.slice(17,19)+"Z"}function makeDateShort(Ra){Ra=Ra||new Date;const qa=Ra.toISOString();return qa.slice(0,4)+qa.slice(5,7)+qa.slice(8,10)}function pipesetup(...Ra){return Ra.reduce((qa,nd)=>(qa.on("error",od=>nd.emit("error",od)),qa.pipe(nd)))}function readableStream(Ra){const qa=new streamBrowserify.Readable;return qa._read=()=>{},qa.push(Ra),qa.push(null),qa}function insertContentType(Ra,qa){for(const nd in Ra)if(nd.toLowerCase()==="content-type")return Ra;return{...Ra,"content-type":probeContentType(qa)}}function prependXAMZMeta(Ra){return Ra?_.mapKeys(Ra,(qa,nd)=>isAmzHeader(nd)||isSupportedHeader(nd)||isStorageClassHeader(nd)?nd:MetaDataHeaderPrefix+nd):{}}function isAmzHeader(Ra){const qa=Ra.toLowerCase();return qa.startsWith(MetaDataHeaderPrefix)||qa==="x-amz-acl"||qa.startsWith("x-amz-server-side-encryption-")||qa==="x-amz-server-side-encryption"}function isSupportedHeader(Ra){return["content-type","cache-control","content-encoding","content-disposition","content-language","x-amz-website-redirect-location"].includes(Ra.toLowerCase())}function isStorageClassHeader(Ra){return Ra.toLowerCase()==="x-amz-storage-class"}function extractMetadata(Ra){return _.mapKeys(_.pickBy(Ra,(qa,nd)=>isSupportedHeader(nd)||isStorageClassHeader(nd)||isAmzHeader(nd)),(qa,nd)=>{const od=nd.toLowerCase();return od.startsWith(MetaDataHeaderPrefix)?od.slice(MetaDataHeaderPrefix.length):nd})}function getVersionId(Ra={}){return Ra["x-amz-version-id"]||null}function getSourceVersionId(Ra={}){return Ra["x-amz-copy-source-version-id"]||null}function sanitizeETag(Ra=""){const qa={'"':"",""":"",""":"",""":"",""":""};return Ra.replace(/^("|"|")|("|"|")$/g,nd=>qa[nd])}function toMd5(Ra){return(void 0)("md5").update(Buffer$4.from(Ra)).digest().toString("base64")}function toSha256(Ra){return(void 0)("sha256").update(Ra).digest("hex")}function toArray(Ra){return Array.isArray(Ra)?Ra:[Ra]}function sanitizeObjectKey(Ra){const qa=(Ra?Ra.toString():"").replace(/\+/g," ");return decodeURIComponent(qa)}function sanitizeSize(Ra){return Ra?Number.parseInt(Ra):void 0}const PART_CONSTRAINTS={ABS_MIN_PART_SIZE:1024*1024*5,MIN_PART_SIZE:1024*1024*16,MAX_PARTS_COUNT:1e4,MAX_PART_SIZE:1024*1024*1024*5,MAX_SINGLE_PUT_OBJECT_SIZE:1024*1024*1024*5,MAX_MULTIPART_PUT_OBJECT_SIZE:1024*1024*1024*1024*5},GENERIC_SSE_HEADER="X-Amz-Server-Side-Encryption",ENCRYPTION_HEADERS={sseGenericHeader:GENERIC_SSE_HEADER,sseKmsKeyID:GENERIC_SSE_HEADER+"-Aws-Kms-Key-Id"};function getEncryptionHeaders(Ra){const qa=Ra.type;if(!isEmpty(qa)){if(qa===ENCRYPTION_TYPES.SSEC)return{[ENCRYPTION_HEADERS.sseGenericHeader]:"AES256"};if(qa===ENCRYPTION_TYPES.KMS)return{[ENCRYPTION_HEADERS.sseGenericHeader]:Ra.SSEAlgorithm,[ENCRYPTION_HEADERS.sseKmsKeyID]:Ra.KMSMasterKeyID}}return{}}function partsRequired(Ra){const qa=PART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE/(PART_CONSTRAINTS.MAX_PARTS_COUNT-1);let nd=Ra/qa;return Ra%qa>0&&nd++,nd=Math.trunc(nd),nd}function calculateEvenSplits(Ra,qa){if(Ra===0)return null;const nd=partsRequired(Ra),od=[],ld=[];let ud=qa.Start;(isEmpty(ud)||ud===-1)&&(ud=0);const dd=Math.trunc(Ra/nd),pd=Ra%nd;let fd=ud;for(let md=0;mdthis.End||this.Start<0)throw new InvalidObjectNameError("Source start must be non-negative, and start must be at most end.");if(this.MatchRange&&!isNumber(this.Start)||!isNumber(this.End))throw new InvalidObjectNameError("MatchRange is specified. But Invalid Start and End values are specified.");return!0}getHeaders(){const qa={};return qa["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object),isEmpty(this.VersionID)||(qa["x-amz-copy-source"]=`${encodeURI(this.Bucket+"/"+this.Object)}?versionId=${this.VersionID}`),isEmpty(this.MatchETag)||(qa["x-amz-copy-source-if-match"]=this.MatchETag),isEmpty(this.NoMatchETag)||(qa["x-amz-copy-source-if-none-match"]=this.NoMatchETag),isEmpty(this.MatchModifiedSince)||(qa["x-amz-copy-source-if-modified-since"]=this.MatchModifiedSince),isEmpty(this.MatchUnmodifiedSince)||(qa["x-amz-copy-source-if-unmodified-since"]=this.MatchUnmodifiedSince),qa}}class CopyDestinationOptions{constructor({Bucket:qa,Object:nd,Encryption:od,UserMetadata:ld,UserTags:ud,LegalHold:dd,RetainUntilDate:pd,Mode:fd,MetadataDirective:md}){this.Bucket=qa,this.Object=nd,this.Encryption=od??void 0,this.UserMetadata=ld,this.UserTags=ud,this.LegalHold=dd,this.Mode=fd,this.RetainUntilDate=pd,this.MetadataDirective=md}getHeaders(){const qa="REPLACE",nd={},od=this.UserTags;if(isEmpty(od)||(nd["X-Amz-Tagging-Directive"]=qa,nd["X-Amz-Tagging"]=isObject(od)?queryString.stringify(od):isString(od)?od:""),this.Mode&&(nd["X-Amz-Object-Lock-Mode"]=this.Mode),this.RetainUntilDate&&(nd["X-Amz-Object-Lock-Retain-Until-Date"]=this.RetainUntilDate),this.LegalHold&&(nd["X-Amz-Object-Lock-Legal-Hold"]=this.LegalHold),this.UserMetadata)for(const[ld,ud]of Object.entries(this.UserMetadata))nd[`X-Amz-Meta-${ld}`]=ud.toString();if(this.MetadataDirective&&(nd["X-Amz-Metadata-Directive"]=this.MetadataDirective),this.Encryption){const ld=getEncryptionHeaders(this.Encryption);for(const[ud,dd]of Object.entries(ld))nd[ud]=dd}return nd}validate(){if(!isValidBucketName(this.Bucket))throw new InvalidBucketNameError("Invalid Destination bucket name: "+this.Bucket);if(!isValidObjectName(this.Object))throw new InvalidObjectNameError(`Invalid Destination object name: ${this.Object}`);if(!isEmpty(this.UserMetadata)&&!isObject(this.UserMetadata))throw new InvalidObjectNameError("Destination UserMetadata should be an object with key value pairs");if(!isEmpty(this.Mode)&&![RETENTION_MODES.GOVERNANCE,RETENTION_MODES.COMPLIANCE].includes(this.Mode))throw new InvalidObjectNameError("Invalid Mode specified for destination object it should be one of [GOVERNANCE,COMPLIANCE]");if(this.Encryption!==void 0&&isEmptyObject(this.Encryption))throw new InvalidObjectNameError("Invalid Encryption configuration for destination object ");return!0}}class SelectResults{constructor({records:qa,response:nd,stats:od,progress:ld}){this.records=qa,this.response=nd,this.stats=od,this.progress=ld}setStats(qa){this.stats=qa}getStats(){return this.stats}setProgress(qa){this.progress=qa}getProgress(){return this.progress}setResponse(qa){this.response=qa}getResponse(){return this.response}setRecords(qa){this.records=qa}getRecords(){return this.records}}function callbackify(Ra){return function(){const qa=[...arguments],nd=qa.pop();return typeof nd=="function"?Ra.apply(this,qa).then(od=>nd(null,od),od=>nd(od)):Ra.apply(this,arguments)}}var lib$1={},define_process_default$3={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};Object.defineProperty(lib$1,"__esModule",{value:!0});var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ra){return typeof Ra}:function(Ra){return Ra&&typeof Symbol=="function"&&Ra.constructor===Symbol&&Ra!==Symbol.prototype?"symbol":typeof Ra},isBrowser=typeof window<"u"&&typeof window.document<"u",isNode=typeof define_process_default$3<"u"&&define_process_default$3.versions!=null&&define_process_default$3.versions.node!=null,isWebWorker=(typeof self>"u"?"undefined":_typeof(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",isJsDom=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),isDeno=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",isBrowser_1=lib$1.isBrowser=isBrowser;lib$1.isWebWorker=isWebWorker;lib$1.isNode=isNode;lib$1.isJsDom=isJsDom;lib$1.isDeno=isDeno;class Credentials{constructor({accessKey:qa,secretKey:nd,sessionToken:od}){this.accessKey=qa,this.secretKey=nd,this.sessionToken=od}setAccessKey(qa){this.accessKey=qa}getAccessKey(){return this.accessKey}setSecretKey(qa){this.secretKey=qa}getSecretKey(){return this.secretKey}setSessionToken(qa){this.sessionToken=qa}getSessionToken(){return this.sessionToken}get(){return this}}class CredentialProvider{constructor({accessKey:qa,secretKey:nd,sessionToken:od}){this.credentials=new Credentials({accessKey:qa,secretKey:nd,sessionToken:od})}async getCredentials(){return this.credentials.get()}setCredentials(qa){if(qa instanceof Credentials)this.credentials=qa;else throw new Error("Unable to set Credentials. it should be an instance of Credentials class")}setAccessKey(qa){this.credentials.setAccessKey(qa)}getAccessKey(){return this.credentials.getAccessKey()}setSecretKey(qa){this.credentials.setSecretKey(qa)}getSecretKey(){return this.credentials.getSecretKey()}setSessionToken(qa){this.credentials.setSessionToken(qa)}getSessionToken(){return this.credentials.getSessionToken()}}const signV4Algorithm="AWS4-HMAC-SHA256";function getCanonicalRequest(Ra,qa,nd,od,ld){if(!isString(Ra))throw new TypeError('method should be of type "string"');if(!isString(qa))throw new TypeError('path should be of type "string"');if(!isObject(nd))throw new TypeError('headers should be of type "object"');if(!Array.isArray(od))throw new TypeError('signedHeaders should be of type "array"');if(!isString(ld))throw new TypeError('hashedPayload should be of type "string"');const ud=od.reduce((fd,md)=>{const vd=`${nd[md]}`.replace(/ +/g," ");return fd.push(`${md.toLowerCase()}:${vd}`),fd},[]),dd=qa.split("?")[0];let pd=qa.split("?")[1];return pd||(pd=""),pd&&(pd=pd.split("&").sort().map(fd=>fd.includes("=")?fd:fd+"=").join("&")),[Ra.toUpperCase(),dd,pd,ud.join(` + */(function(Ra){var qa=mimeDb,nd=pathBrowserify.extname,od=/^\s*([^;\s]*)(?:;|\s|$)/,ld=/^text\//i;Ra.charset=ud,Ra.charsets={lookup:ud},Ra.contentType=dd,Ra.extension=pd,Ra.extensions=Object.create(null),Ra.lookup=fd,Ra.types=Object.create(null),md(Ra.extensions,Ra.types);function ud(vd){if(!vd||typeof vd!="string")return!1;var Ad=od.exec(vd),Nd=Ad&&qa[Ad[1].toLowerCase()];return Nd&&Nd.charset?Nd.charset:Ad&&ld.test(Ad[1])?"UTF-8":!1}function dd(vd){if(!vd||typeof vd!="string")return!1;var Ad=vd.indexOf("/")===-1?Ra.lookup(vd):vd;if(!Ad)return!1;if(Ad.indexOf("charset")===-1){var Nd=Ra.charset(Ad);Nd&&(Ad+="; charset="+Nd.toLowerCase())}return Ad}function pd(vd){if(!vd||typeof vd!="string")return!1;var Ad=od.exec(vd),Nd=Ad&&Ra.extensions[Ad[1].toLowerCase()];return!Nd||!Nd.length?!1:Nd[0]}function fd(vd){if(!vd||typeof vd!="string")return!1;var Ad=nd("x."+vd).toLowerCase().substr(1);return Ad&&Ra.types[Ad]||!1}function md(vd,Ad){var Nd=["nginx","apache",void 0,"iana"];Object.keys(qa).forEach(function(kd){var Ld=qa[kd],Gd=Ld.extensions;if(!(!Gd||!Gd.length)){vd[kd]=Gd;for(var jd=0;jdqd||Ud===qd&&Ad[Fd].substr(0,12)==="application/"))continue}Ad[Fd]=kd}}})}})(mimeTypes$1);let ENCRYPTION_TYPES=function(Ra){return Ra.SSEC="SSE-C",Ra.KMS="KMS",Ra}({}),RETENTION_MODES=function(Ra){return Ra.GOVERNANCE="GOVERNANCE",Ra.COMPLIANCE="COMPLIANCE",Ra}({}),RETENTION_VALIDITY_UNITS=function(Ra){return Ra.DAYS="Days",Ra.YEARS="Years",Ra}({}),LEGAL_HOLD_STATUS=function(Ra){return Ra.ENABLED="ON",Ra.DISABLED="OFF",Ra}({});const MetaDataHeaderPrefix="x-amz-meta-";function uriEscape(Ra){return Ra.split("").reduce((qa,nd)=>{const od=Buffer$4.from(nd);if(od.length===1&&("A"<=nd&&nd<="Z"||"a"<=nd&&nd<="z"||"0"<=nd&&nd<="9"||nd==="_"||nd==="."||nd==="~"||nd==="-"))return qa=qa+nd,qa;for(const ld of od)qa=qa+"%"+ld.toString(16).toUpperCase();return qa},"")}function uriResourceEscape(Ra){return uriEscape(Ra).replace(/%2F/g,"/")}function getScope(Ra,qa,nd="s3"){return`${makeDateShort(qa)}/${Ra}/${nd}/aws4_request`}function isAmazonEndpoint(Ra){return Ra==="s3.amazonaws.com"||Ra==="s3.cn-north-1.amazonaws.com.cn"}function isVirtualHostStyle(Ra,qa,nd,od){return qa==="https:"&&nd.includes(".")?!1:isAmazonEndpoint(Ra)||!od}function isValidIP(Ra){return ipaddr.isValid(Ra)}function isValidEndpoint(Ra){return isValidDomain(Ra)||isValidIP(Ra)}function isValidDomain(Ra){if(!isString(Ra)||Ra.length===0||Ra.length>255||Ra[0]==="-"||Ra.slice(-1)==="-"||Ra[0]==="_"||Ra.slice(-1)==="_"||Ra[0]===".")return!1;const qa="`~!@#$%^&*()+={}[]|\\\"';:>63||Ra.includes("..")||/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/.test(Ra)?!1:!!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(Ra)}function isValidObjectName(Ra){return isValidPrefix(Ra)?Ra.length!==0:!1}function isValidPrefix(Ra){return!(!isString(Ra)||Ra.length>1024)}function isNumber(Ra){return typeof Ra=="number"}function isFunction(Ra){return typeof Ra=="function"}function isString(Ra){return typeof Ra=="string"}function isObject(Ra){return typeof Ra=="object"&&Ra!==null}function isReadableStream(Ra){return isObject(Ra)&&isFunction(Ra._read)}function isBoolean(Ra){return typeof Ra=="boolean"}function isEmpty(Ra){return _.isEmpty(Ra)}function isEmptyObject(Ra){return Object.values(Ra).filter(qa=>qa!==void 0).length!==0}function isDefined(Ra){return Ra!=null}function isValidDate(Ra){return Ra instanceof Date&&!isNaN(Ra)}function makeDateLong(Ra){Ra=Ra||new Date;const qa=Ra.toISOString();return qa.slice(0,4)+qa.slice(5,7)+qa.slice(8,13)+qa.slice(14,16)+qa.slice(17,19)+"Z"}function makeDateShort(Ra){Ra=Ra||new Date;const qa=Ra.toISOString();return qa.slice(0,4)+qa.slice(5,7)+qa.slice(8,10)}function pipesetup(...Ra){return Ra.reduce((qa,nd)=>(qa.on("error",od=>nd.emit("error",od)),qa.pipe(nd)))}function readableStream(Ra){const qa=new streamBrowserify.Readable;return qa._read=()=>{},qa.push(Ra),qa.push(null),qa}function insertContentType(Ra,qa){for(const nd in Ra)if(nd.toLowerCase()==="content-type")return Ra;return{...Ra,"content-type":probeContentType(qa)}}function prependXAMZMeta(Ra){return Ra?_.mapKeys(Ra,(qa,nd)=>isAmzHeader(nd)||isSupportedHeader(nd)||isStorageClassHeader(nd)?nd:MetaDataHeaderPrefix+nd):{}}function isAmzHeader(Ra){const qa=Ra.toLowerCase();return qa.startsWith(MetaDataHeaderPrefix)||qa==="x-amz-acl"||qa.startsWith("x-amz-server-side-encryption-")||qa==="x-amz-server-side-encryption"}function isSupportedHeader(Ra){return["content-type","cache-control","content-encoding","content-disposition","content-language","x-amz-website-redirect-location"].includes(Ra.toLowerCase())}function isStorageClassHeader(Ra){return Ra.toLowerCase()==="x-amz-storage-class"}function extractMetadata(Ra){return _.mapKeys(_.pickBy(Ra,(qa,nd)=>isSupportedHeader(nd)||isStorageClassHeader(nd)||isAmzHeader(nd)),(qa,nd)=>{const od=nd.toLowerCase();return od.startsWith(MetaDataHeaderPrefix)?od.slice(MetaDataHeaderPrefix.length):nd})}function getVersionId(Ra={}){return Ra["x-amz-version-id"]||null}function getSourceVersionId(Ra={}){return Ra["x-amz-copy-source-version-id"]||null}function sanitizeETag(Ra=""){const qa={'"':"",""":"",""":"",""":"",""":""};return Ra.replace(/^("|"|")|("|"|")$/g,nd=>qa[nd])}function toMd5(Ra){return(void 0)("md5").update(Buffer$4.from(Ra)).digest().toString("base64")}function toSha256(Ra){return(void 0)("sha256").update(Ra).digest("hex")}function toArray(Ra){return Array.isArray(Ra)?Ra:[Ra]}function sanitizeObjectKey(Ra){const qa=(Ra?Ra.toString():"").replace(/\+/g," ");return decodeURIComponent(qa)}function sanitizeSize(Ra){return Ra?Number.parseInt(Ra):void 0}const PART_CONSTRAINTS={ABS_MIN_PART_SIZE:1024*1024*5,MIN_PART_SIZE:1024*1024*16,MAX_PARTS_COUNT:1e4,MAX_PART_SIZE:1024*1024*1024*5,MAX_SINGLE_PUT_OBJECT_SIZE:1024*1024*1024*5,MAX_MULTIPART_PUT_OBJECT_SIZE:1024*1024*1024*1024*5},GENERIC_SSE_HEADER="X-Amz-Server-Side-Encryption",ENCRYPTION_HEADERS={sseGenericHeader:GENERIC_SSE_HEADER,sseKmsKeyID:GENERIC_SSE_HEADER+"-Aws-Kms-Key-Id"};function getEncryptionHeaders(Ra){const qa=Ra.type;if(!isEmpty(qa)){if(qa===ENCRYPTION_TYPES.SSEC)return{[ENCRYPTION_HEADERS.sseGenericHeader]:"AES256"};if(qa===ENCRYPTION_TYPES.KMS)return{[ENCRYPTION_HEADERS.sseGenericHeader]:Ra.SSEAlgorithm,[ENCRYPTION_HEADERS.sseKmsKeyID]:Ra.KMSMasterKeyID}}return{}}function partsRequired(Ra){const qa=PART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE/(PART_CONSTRAINTS.MAX_PARTS_COUNT-1);let nd=Ra/qa;return Ra%qa>0&&nd++,nd=Math.trunc(nd),nd}function calculateEvenSplits(Ra,qa){if(Ra===0)return null;const nd=partsRequired(Ra),od=[],ld=[];let ud=qa.Start;(isEmpty(ud)||ud===-1)&&(ud=0);const dd=Math.trunc(Ra/nd),pd=Ra%nd;let fd=ud;for(let md=0;mdthis.End||this.Start<0)throw new InvalidObjectNameError("Source start must be non-negative, and start must be at most end.");if(this.MatchRange&&!isNumber(this.Start)||!isNumber(this.End))throw new InvalidObjectNameError("MatchRange is specified. But Invalid Start and End values are specified.");return!0}getHeaders(){const qa={};return qa["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object),isEmpty(this.VersionID)||(qa["x-amz-copy-source"]=`${encodeURI(this.Bucket+"/"+this.Object)}?versionId=${this.VersionID}`),isEmpty(this.MatchETag)||(qa["x-amz-copy-source-if-match"]=this.MatchETag),isEmpty(this.NoMatchETag)||(qa["x-amz-copy-source-if-none-match"]=this.NoMatchETag),isEmpty(this.MatchModifiedSince)||(qa["x-amz-copy-source-if-modified-since"]=this.MatchModifiedSince),isEmpty(this.MatchUnmodifiedSince)||(qa["x-amz-copy-source-if-unmodified-since"]=this.MatchUnmodifiedSince),qa}}class CopyDestinationOptions{constructor({Bucket:qa,Object:nd,Encryption:od,UserMetadata:ld,UserTags:ud,LegalHold:dd,RetainUntilDate:pd,Mode:fd,MetadataDirective:md}){this.Bucket=qa,this.Object=nd,this.Encryption=od??void 0,this.UserMetadata=ld,this.UserTags=ud,this.LegalHold=dd,this.Mode=fd,this.RetainUntilDate=pd,this.MetadataDirective=md}getHeaders(){const qa="REPLACE",nd={},od=this.UserTags;if(isEmpty(od)||(nd["X-Amz-Tagging-Directive"]=qa,nd["X-Amz-Tagging"]=isObject(od)?queryString.stringify(od):isString(od)?od:""),this.Mode&&(nd["X-Amz-Object-Lock-Mode"]=this.Mode),this.RetainUntilDate&&(nd["X-Amz-Object-Lock-Retain-Until-Date"]=this.RetainUntilDate),this.LegalHold&&(nd["X-Amz-Object-Lock-Legal-Hold"]=this.LegalHold),this.UserMetadata)for(const[ld,ud]of Object.entries(this.UserMetadata))nd[`X-Amz-Meta-${ld}`]=ud.toString();if(this.MetadataDirective&&(nd["X-Amz-Metadata-Directive"]=this.MetadataDirective),this.Encryption){const ld=getEncryptionHeaders(this.Encryption);for(const[ud,dd]of Object.entries(ld))nd[ud]=dd}return nd}validate(){if(!isValidBucketName(this.Bucket))throw new InvalidBucketNameError("Invalid Destination bucket name: "+this.Bucket);if(!isValidObjectName(this.Object))throw new InvalidObjectNameError(`Invalid Destination object name: ${this.Object}`);if(!isEmpty(this.UserMetadata)&&!isObject(this.UserMetadata))throw new InvalidObjectNameError("Destination UserMetadata should be an object with key value pairs");if(!isEmpty(this.Mode)&&![RETENTION_MODES.GOVERNANCE,RETENTION_MODES.COMPLIANCE].includes(this.Mode))throw new InvalidObjectNameError("Invalid Mode specified for destination object it should be one of [GOVERNANCE,COMPLIANCE]");if(this.Encryption!==void 0&&isEmptyObject(this.Encryption))throw new InvalidObjectNameError("Invalid Encryption configuration for destination object ");return!0}}class SelectResults{constructor({records:qa,response:nd,stats:od,progress:ld}){this.records=qa,this.response=nd,this.stats=od,this.progress=ld}setStats(qa){this.stats=qa}getStats(){return this.stats}setProgress(qa){this.progress=qa}getProgress(){return this.progress}setResponse(qa){this.response=qa}getResponse(){return this.response}setRecords(qa){this.records=qa}getRecords(){return this.records}}function callbackify(Ra){return function(){const qa=[...arguments],nd=qa.pop();return typeof nd=="function"?Ra.apply(this,qa).then(od=>nd(null,od),od=>nd(od)):Ra.apply(this,arguments)}}var lib$1={},define_process_default$3={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};Object.defineProperty(lib$1,"__esModule",{value:!0});var _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ra){return typeof Ra}:function(Ra){return Ra&&typeof Symbol=="function"&&Ra.constructor===Symbol&&Ra!==Symbol.prototype?"symbol":typeof Ra},isBrowser=typeof window<"u"&&typeof window.document<"u",isNode=typeof define_process_default$3<"u"&&define_process_default$3.versions!=null&&define_process_default$3.versions.node!=null,isWebWorker=(typeof self>"u"?"undefined":_typeof(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",isJsDom=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),isDeno=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",isBrowser_1=lib$1.isBrowser=isBrowser;lib$1.isWebWorker=isWebWorker;lib$1.isNode=isNode;lib$1.isJsDom=isJsDom;lib$1.isDeno=isDeno;class Credentials{constructor({accessKey:qa,secretKey:nd,sessionToken:od}){this.accessKey=qa,this.secretKey=nd,this.sessionToken=od}setAccessKey(qa){this.accessKey=qa}getAccessKey(){return this.accessKey}setSecretKey(qa){this.secretKey=qa}getSecretKey(){return this.secretKey}setSessionToken(qa){this.sessionToken=qa}getSessionToken(){return this.sessionToken}get(){return this}}class CredentialProvider{constructor({accessKey:qa,secretKey:nd,sessionToken:od}){this.credentials=new Credentials({accessKey:qa,secretKey:nd,sessionToken:od})}async getCredentials(){return this.credentials.get()}setCredentials(qa){if(qa instanceof Credentials)this.credentials=qa;else throw new Error("Unable to set Credentials. it should be an instance of Credentials class")}setAccessKey(qa){this.credentials.setAccessKey(qa)}getAccessKey(){return this.credentials.getAccessKey()}setSecretKey(qa){this.credentials.setSecretKey(qa)}getSecretKey(){return this.credentials.getSecretKey()}setSessionToken(qa){this.credentials.setSessionToken(qa)}getSessionToken(){return this.credentials.getSessionToken()}}const signV4Algorithm="AWS4-HMAC-SHA256";function getCanonicalRequest(Ra,qa,nd,od,ld){if(!isString(Ra))throw new TypeError('method should be of type "string"');if(!isString(qa))throw new TypeError('path should be of type "string"');if(!isObject(nd))throw new TypeError('headers should be of type "object"');if(!Array.isArray(od))throw new TypeError('signedHeaders should be of type "array"');if(!isString(ld))throw new TypeError('hashedPayload should be of type "string"');const ud=od.reduce((fd,md)=>{const vd=`${nd[md]}`.replace(/ +/g," ");return fd.push(`${md.toLowerCase()}:${vd}`),fd},[]),dd=qa.split("?")[0];let pd=qa.split("?")[1];return pd||(pd=""),pd&&(pd=pd.split("&").sort().map(fd=>fd.includes("=")?fd:fd+"=").join("&")),[Ra.toUpperCase(),dd,pd,ud.join(` `)+` `,od.join(";").toLowerCase(),ld].join(` `)}function getCredential(Ra,qa,nd,od="s3"){if(!isString(Ra))throw new TypeError('accessKey should be of type "string"');if(!isString(qa))throw new TypeError('region should be of type "string"');if(!isObject(nd))throw new TypeError('requestDate should be of type "object"');return`${Ra}/${getScope(qa,nd,od)}`}function getSignedHeaders(Ra){if(!isObject(Ra))throw new TypeError('request should be of type "object"');const qa=["authorization","content-length","content-type","user-agent"];return Object.keys(Ra).filter(nd=>!qa.includes(nd)).sort()}function getSigningKey(Ra,qa,nd,od="s3"){if(!isObject(Ra))throw new TypeError('date should be of type "object"');if(!isString(qa))throw new TypeError('region should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');const ld=makeDateShort(Ra);return(void 0)("sha256",(void 0)("sha256",(void 0)("sha256",(void 0)("sha256","AWS4"+nd).update(ld).digest()).update(qa).digest()).update(od).digest()).update("aws4_request").digest()}function getStringToSign(Ra,qa,nd,od="s3"){if(!isString(Ra))throw new TypeError('canonicalRequest should be of type "string"');if(!isObject(qa))throw new TypeError('requestDate should be of type "object"');if(!isString(nd))throw new TypeError('region should be of type "string"');const ld=(void 0)("sha256").update(Ra).digest("hex"),ud=getScope(nd,qa,od);return[signV4Algorithm,makeDateLong(qa),ud,ld].join(` -`)}function postPresignSignatureV4(Ra,qa,nd,od){if(!isString(Ra))throw new TypeError('region should be of type "string"');if(!isObject(qa))throw new TypeError('date should be of type "object"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(od))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(qa,Ra,nd)).update(od).digest("hex").toLowerCase()}function signV4(Ra,qa,nd,od,ld,ud,dd="s3"){if(!isObject(Ra))throw new TypeError('request should be of type "object"');if(!isString(qa))throw new TypeError('accessKey should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(od))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for signing");if(!nd)throw new SecretKeyRequiredError("secretKey is required for signing");const pd=getSignedHeaders(Ra.headers),fd=getCanonicalRequest(Ra.method,Ra.path,Ra.headers,pd,ud),md=dd||"s3",vd=getStringToSign(fd,ld,od,md),Ad=getSigningKey(ld,od,nd,md),Nd=getCredential(qa,od,ld,md),Od=(void 0)("sha256",Ad).update(vd).digest("hex").toLowerCase();return`${signV4Algorithm} Credential=${Nd}, SignedHeaders=${pd.join(";").toLowerCase()}, Signature=${Od}`}function presignSignatureV4(Ra,qa,nd,od,ld,ud,dd){if(!isObject(Ra))throw new TypeError('request should be of type "object"');if(!isString(qa))throw new TypeError('accessKey should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(ld))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!nd)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber(dd))throw new TypeError('expires should be of type "number"');if(dd<1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if(dd>604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const pd=makeDateLong(ud),fd=getSignedHeaders(Ra.headers),md=getCredential(qa,ld,ud),vd="UNSIGNED-PAYLOAD",Ad=[];Ad.push(`X-Amz-Algorithm=${signV4Algorithm}`),Ad.push(`X-Amz-Credential=${uriEscape(md)}`),Ad.push(`X-Amz-Date=${pd}`),Ad.push(`X-Amz-Expires=${dd}`),Ad.push(`X-Amz-SignedHeaders=${uriEscape(fd.join(";").toLowerCase())}`),od&&Ad.push(`X-Amz-Security-Token=${uriEscape(od)}`);const Nd=Ra.path.split("?")[0];let Od=Ra.path.split("?")[1];Od?Od=Od+"&"+Ad.join("&"):Od=Ad.join("&");const kd=Nd+"?"+Od,Ld=getCanonicalRequest(Ra.method,kd,Ra.headers,fd,vd),Gd=getStringToSign(Ld,ud,ld),Fd=(void 0)("sha256",getSigningKey(ud,ld,nd)).update(Gd).digest("hex").toLowerCase();return Ra.protocol+"//"+Ra.headers.host+kd+`&X-Amz-Signature=${Fd}`}async function readAsBuffer(Ra){return new Promise((qa,nd)=>{const od=[];Ra.on("data",ld=>od.push(ld)).on("error",ld=>nd(ld)).on("end",()=>qa(Buffer$4.concat(od)))})}async function readAsString(Ra){return(await readAsBuffer(Ra)).toString()}async function drainResponse(Ra){return new Promise((qa,nd)=>{Ra.on("data",()=>{}).on("error",od=>nd(od)).on("end",()=>qa())})}function parseBucketRegion(Ra){return parseXml(Ra).LocationConstraint}const fxp=new fxp$2.XMLParser;function parseError(Ra,qa){let nd={};const od=fxp.parse(Ra);od.Error&&(nd=od.Error);const ld=new S3Error;return Object.entries(nd).forEach(([ud,dd])=>{ld[ud.toLowerCase()]=dd}),Object.entries(qa).forEach(([ud,dd])=>{ld[ud]=dd}),ld}async function parseResponseError(Ra){const qa=Ra.statusCode;let nd,od;qa===301?(nd="MovedPermanently",od="Moved Permanently"):qa===307?(nd="TemporaryRedirect",od="Are you using the correct endpoint URL?"):qa===403?(nd="AccessDenied",od="Valid and authorized credentials required"):qa===404?(nd="NotFound",od="Not Found"):qa===405||qa===501?(nd="MethodNotAllowed",od="Method Not Allowed"):(nd="UnknownError",od=`${qa}`);const ld={};ld.amzRequestid=Ra.headers["x-amz-request-id"],ld.amzId2=Ra.headers["x-amz-id-2"],ld.amzBucketRegion=Ra.headers["x-amz-bucket-region"];const ud=await readAsString(Ra);if(ud)throw parseError(ud,ld);const dd=new S3Error(od,{cause:ld});throw dd.code=nd,Object.entries(ld).forEach(([pd,fd])=>{dd[pd]=fd}),dd}function parseListObjectsV2WithMetadata(Ra){const qa={objects:[],isTruncated:!1,nextContinuationToken:""};let nd=parseXml(Ra);if(!nd.ListBucketResult)throw new InvalidXMLError('Missing tag: "ListBucketResult"');return nd=nd.ListBucketResult,nd.IsTruncated&&(qa.isTruncated=nd.IsTruncated),nd.NextContinuationToken&&(qa.nextContinuationToken=nd.NextContinuationToken),nd.Contents&&toArray(nd.Contents).forEach(od=>{const ld=sanitizeObjectKey(od.Key),ud=new Date(od.LastModified),dd=sanitizeETag(od.ETag),pd=od.Size;let fd;od.UserMetadata!=null?fd=toArray(od.UserMetadata)[0]:fd=null,qa.objects.push({name:ld,lastModified:ud,etag:dd,size:pd,metadata:fd})}),nd.CommonPrefixes&&toArray(nd.CommonPrefixes).forEach(od=>{qa.objects.push({prefix:sanitizeObjectKey(toArray(od.Prefix)[0]),size:0})}),qa}function parseListParts(Ra){let qa=parseXml(Ra);const nd={isTruncated:!1,parts:[],marker:0};if(!qa.ListPartsResult)throw new InvalidXMLError('Missing tag: "ListPartsResult"');return qa=qa.ListPartsResult,qa.IsTruncated&&(nd.isTruncated=qa.IsTruncated),qa.NextPartNumberMarker&&(nd.marker=toArray(qa.NextPartNumberMarker)[0]||""),qa.Part&&toArray(qa.Part).forEach(od=>{const ld=parseInt(toArray(od.PartNumber)[0],10),ud=new Date(od.LastModified),dd=od.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"");nd.parts.push({part:ld,lastModified:ud,etag:dd,size:parseInt(od.Size,10)})}),nd}function parseListBucket(Ra){let qa=[];const nd=parseXml(Ra);if(!nd.ListAllMyBucketsResult)throw new InvalidXMLError('Missing tag: "ListAllMyBucketsResult"');const{ListAllMyBucketsResult:{Buckets:od={}}={}}=nd;return od.Bucket&&(qa=toArray(od.Bucket).map((ld={})=>{const{Name:ud,CreationDate:dd}=ld,pd=new Date(dd);return{name:ud,creationDate:pd}})),qa}function parseInitiateMultipart(Ra){let qa=parseXml(Ra);if(!qa.InitiateMultipartUploadResult)throw new InvalidXMLError('Missing tag: "InitiateMultipartUploadResult"');if(qa=qa.InitiateMultipartUploadResult,qa.UploadId)return qa.UploadId;throw new InvalidXMLError('Missing tag: "UploadId"')}function parseReplicationConfig(Ra){const qa=parseXml(Ra),{Role:nd,Rule:od}=qa.ReplicationConfiguration;return{ReplicationConfiguration:{role:nd,rules:toArray(od)}}}class Extensions{constructor(qa){this.client=qa}listObjectsV2WithMetadata(qa,nd,od,ld){if(nd===void 0&&(nd=""),od===void 0&&(od=!1),ld===void 0&&(ld=""),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidPrefix(nd))throw new InvalidPrefixError(`Invalid prefix : ${nd}`);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isBoolean(od))throw new TypeError('recursive should be of type "boolean"');if(!isString(ld))throw new TypeError('startAfter should be of type "string"');const ud=od?"":"/";return streamBrowserify.Readable.from(this.listObjectsV2WithMetadataGen(qa,nd,ud,ld),{objectMode:!0})}async*listObjectsV2WithMetadataGen(qa,nd,od,ld){let ud=!1,dd="";do{const pd=await this.listObjectsV2WithMetadataQuery(qa,nd,dd,od,ld);ud=!pd.isTruncated,dd=pd.nextContinuationToken;for(const fd of pd.objects)yield fd}while(!ud)}async listObjectsV2WithMetadataQuery(qa,nd,od,ld,ud){const dd=[];dd.push("list-type=2"),dd.push("encoding-type=url"),dd.push(`prefix=${uriEscape(nd)}`),dd.push(`delimiter=${uriEscape(ld)}`),dd.push("metadata=true"),od&&(od=uriEscape(od),dd.push(`continuation-token=${od}`)),ud&&(ud=uriEscape(ud),dd.push(`start-after=${ud}`)),dd.push("max-keys=1000"),dd.sort();let pd="";dd.length>0&&(pd=`${dd.join("&")}`);const md=await this.client.makeRequestAsync({method:"GET",bucketName:qa,query:pd});return parseListObjectsV2WithMetadata(await readAsString(md))}}async function request$1(Ra,qa,nd=null){return new Promise((od,ld)=>{const ud=Ra.request(qa,dd=>{od(dd)});if(!nd||Buffer$4.isBuffer(nd)||typeof nd=="string"){ud.on("error",dd=>{ld(dd)}).end(nd);return}streamBrowserify.pipeline(nd,ud,dd=>{dd&&ld(dd)})})}const awsS3Endpoint={"us-east-1":"s3.amazonaws.com","us-east-2":"s3-us-east-2.amazonaws.com","us-west-1":"s3-us-west-1.amazonaws.com","us-west-2":"s3-us-west-2.amazonaws.com","ca-central-1":"s3.ca-central-1.amazonaws.com","eu-west-1":"s3-eu-west-1.amazonaws.com","eu-west-2":"s3-eu-west-2.amazonaws.com","sa-east-1":"s3-sa-east-1.amazonaws.com","eu-central-1":"s3-eu-central-1.amazonaws.com","ap-south-1":"s3-ap-south-1.amazonaws.com","ap-southeast-1":"s3-ap-southeast-1.amazonaws.com","ap-southeast-2":"s3-ap-southeast-2.amazonaws.com","ap-northeast-1":"s3-ap-northeast-1.amazonaws.com","cn-north-1":"s3.cn-north-1.amazonaws.com.cn","ap-east-1":"s3.ap-east-1.amazonaws.com","eu-north-1":"s3.eu-north-1.amazonaws.com"};function getS3Endpoint(Ra){if(!isString(Ra))throw new TypeError(`Invalid region: ${Ra}`);const qa=awsS3Endpoint[Ra];return qa||"s3.amazonaws.com"}var define_process_default$2={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};const Package={version:"7.1.3"},requestOptionProperties=["agent","ca","cert","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","family","honorCipherOrder","key","passphrase","pfx","rejectUnauthorized","secureOptions","secureProtocol","servername","sessionIdContext"];class TypedClient{constructor(qa){Og(this,"partSize",64*1024*1024);Og(this,"maximumPartSize",5*1024*1024*1024);Og(this,"maxObjectSize",5*1024*1024*1024*1024);if(qa.secure!==void 0)throw new Error('"secure" option deprecated, "useSSL" should be used instead');if(qa.useSSL===void 0&&(qa.useSSL=!0),qa.port||(qa.port=0),!isValidEndpoint(qa.endPoint))throw new InvalidEndpointError(`Invalid endPoint : ${qa.endPoint}`);if(!isValidPort(qa.port))throw new InvalidArgumentError(`Invalid port : ${qa.port}`);if(!isBoolean(qa.useSSL))throw new InvalidArgumentError(`Invalid useSSL flag type : ${qa.useSSL}, expected to be of type "boolean"`);if(qa.region&&!isString(qa.region))throw new InvalidArgumentError(`Invalid region : ${qa.region}`);const nd=qa.endPoint.toLowerCase();let od=qa.port,ld,ud,dd;if(qa.useSSL?(ud=http,ld="https:",od=od||443,dd=void 0):(ud=http,ld="http:",od=od||80,dd=void 0),qa.transport){if(!isObject(qa.transport))throw new InvalidArgumentError(`Invalid transport type : ${qa.transport}, expected to be type "object"`);ud=qa.transport}if(qa.transportAgent){if(!isObject(qa.transportAgent))throw new InvalidArgumentError(`Invalid transportAgent type: ${qa.transportAgent}, expected to be type "object"`);dd=qa.transportAgent}const fd=`MinIO ${`(${define_process_default$2.platform}; ${define_process_default$2.arch})`} minio-js/${Package.version}`;if(this.transport=ud,this.transportAgent=dd,this.host=nd,this.port=od,this.protocol=ld,this.userAgent=`${fd}`,qa.pathStyle===void 0?this.pathStyle=!0:this.pathStyle=qa.pathStyle,this.accessKey=qa.accessKey??"",this.secretKey=qa.secretKey??"",this.sessionToken=qa.sessionToken,this.anonymous=!this.accessKey||!this.secretKey,qa.credentialsProvider&&(this.credentialsProvider=qa.credentialsProvider),this.regionMap={},qa.region&&(this.region=qa.region),qa.partSize&&(this.partSize=qa.partSize,this.overRidePartSize=!0),this.partSize<5*1024*1024)throw new InvalidArgumentError("Part size should be greater than 5MB");if(this.partSize>5*1024*1024*1024)throw new InvalidArgumentError("Part size should be less than 5GB");this.enableSHA256=!this.anonymous&&!qa.useSSL,this.s3AccelerateEndpoint=qa.s3AccelerateEndpoint||void 0,this.reqOptions={},this.clientExtensions=new Extensions(this)}get extensions(){return this.clientExtensions}setS3TransferAccelerate(qa){this.s3AccelerateEndpoint=qa}setRequestOptions(qa){if(!isObject(qa))throw new TypeError('request options should be of type "object"');this.reqOptions=_.pick(qa,requestOptionProperties)}getAccelerateEndPointIfSet(qa,nd){if(!isEmpty(this.s3AccelerateEndpoint)&&!isEmpty(qa)&&!isEmpty(nd)){if(qa.includes("."))throw new Error(`Transfer Acceleration is not supported for non compliant bucket:${qa}`);return this.s3AccelerateEndpoint}return!1}getRequestOptions(qa){const nd=qa.method,od=qa.region,ld=qa.bucketName;let ud=qa.objectName;const dd=qa.headers,pd=qa.query;let fd={method:nd,headers:{},protocol:this.protocol,agent:this.transportAgent},md;ld&&(md=isVirtualHostStyle(this.host,this.protocol,ld,this.pathStyle));let vd="/",Ad=this.host,Nd;if(this.port&&(Nd=this.port),ud&&(ud=uriResourceEscape(ud)),isAmazonEndpoint(Ad)){const Od=this.getAccelerateEndPointIfSet(ld,ud);Od?Ad=`${Od}`:Ad=getS3Endpoint(od)}if(md&&!qa.pathStyle?(ld&&(Ad=`${ld}.${Ad}`),ud&&(vd=`/${ud}`)):(ld&&(vd=`/${ld}`),ud&&(vd=`/${ld}/${ud}`)),pd&&(vd+=`?${pd}`),fd.headers.host=Ad,(fd.protocol==="http:"&&Nd!==80||fd.protocol==="https:"&&Nd!==443)&&(fd.headers.host=`${Ad}:${Nd}`),fd.headers["user-agent"]=this.userAgent,dd)for(const[Od,kd]of Object.entries(dd))fd.headers[Od.toLowerCase()]=kd;return fd=Object.assign({},this.reqOptions,fd),{...fd,headers:_.mapValues(_.pickBy(fd.headers,isDefined),Od=>Od.toString()),host:Ad,port:Nd,path:vd}}async setCredentialsProvider(qa){if(!(qa instanceof CredentialProvider))throw new Error("Unable to get credentials. Expected instance of CredentialProvider");this.credentialsProvider=qa,await this.checkAndRefreshCreds()}async checkAndRefreshCreds(){if(this.credentialsProvider)try{const qa=await this.credentialsProvider.getCredentials();this.accessKey=qa.getAccessKey(),this.secretKey=qa.getSecretKey(),this.sessionToken=qa.getSessionToken()}catch(qa){throw new Error(`Unable to get credentials: ${qa}`,{cause:qa})}}logHTTP(qa,nd,od){if(!this.logStream)return;if(!isObject(qa))throw new TypeError('reqOptions should be of type "object"');if(nd&&!isReadableStream(nd))throw new TypeError('response should be of type "Stream"');if(od&&!(od instanceof Error))throw new TypeError('err should be of type "Error"');const ld=this.logStream,ud=dd=>{Object.entries(dd).forEach(([pd,fd])=>{if(pd=="authorization"&&isString(fd)){const md=new RegExp("Signature=([0-9a-f]+)");fd=fd.replace(md,"Signature=**REDACTED**")}ld.write(`${pd}: ${fd} +`)}function postPresignSignatureV4(Ra,qa,nd,od){if(!isString(Ra))throw new TypeError('region should be of type "string"');if(!isObject(qa))throw new TypeError('date should be of type "object"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(od))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(qa,Ra,nd)).update(od).digest("hex").toLowerCase()}function signV4(Ra,qa,nd,od,ld,ud,dd="s3"){if(!isObject(Ra))throw new TypeError('request should be of type "object"');if(!isString(qa))throw new TypeError('accessKey should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(od))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for signing");if(!nd)throw new SecretKeyRequiredError("secretKey is required for signing");const pd=getSignedHeaders(Ra.headers),fd=getCanonicalRequest(Ra.method,Ra.path,Ra.headers,pd,ud),md=dd||"s3",vd=getStringToSign(fd,ld,od,md),Ad=getSigningKey(ld,od,nd,md),Nd=getCredential(qa,od,ld,md),Od=(void 0)("sha256",Ad).update(vd).digest("hex").toLowerCase();return`${signV4Algorithm} Credential=${Nd}, SignedHeaders=${pd.join(";").toLowerCase()}, Signature=${Od}`}function presignSignatureV4(Ra,qa,nd,od,ld,ud,dd){if(!isObject(Ra))throw new TypeError('request should be of type "object"');if(!isString(qa))throw new TypeError('accessKey should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(ld))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!nd)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber(dd))throw new TypeError('expires should be of type "number"');if(dd<1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if(dd>604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const pd=makeDateLong(ud),fd=getSignedHeaders(Ra.headers),md=getCredential(qa,ld,ud),vd="UNSIGNED-PAYLOAD",Ad=[];Ad.push(`X-Amz-Algorithm=${signV4Algorithm}`),Ad.push(`X-Amz-Credential=${uriEscape(md)}`),Ad.push(`X-Amz-Date=${pd}`),Ad.push(`X-Amz-Expires=${dd}`),Ad.push(`X-Amz-SignedHeaders=${uriEscape(fd.join(";").toLowerCase())}`),od&&Ad.push(`X-Amz-Security-Token=${uriEscape(od)}`);const Nd=Ra.path.split("?")[0];let Od=Ra.path.split("?")[1];Od?Od=Od+"&"+Ad.join("&"):Od=Ad.join("&");const kd=Nd+"?"+Od,Ld=getCanonicalRequest(Ra.method,kd,Ra.headers,fd,vd),Gd=getStringToSign(Ld,ud,ld),Fd=(void 0)("sha256",getSigningKey(ud,ld,nd)).update(Gd).digest("hex").toLowerCase();return Ra.protocol+"//"+Ra.headers.host+kd+`&X-Amz-Signature=${Fd}`}async function readAsBuffer(Ra){return new Promise((qa,nd)=>{const od=[];Ra.on("data",ld=>od.push(ld)).on("error",ld=>nd(ld)).on("end",()=>qa(Buffer$4.concat(od)))})}async function readAsString(Ra){return(await readAsBuffer(Ra)).toString()}async function drainResponse(Ra){return new Promise((qa,nd)=>{Ra.on("data",()=>{}).on("error",od=>nd(od)).on("end",()=>qa())})}function parseBucketRegion(Ra){return parseXml(Ra).LocationConstraint}const fxp=new fxp$2.XMLParser;function parseError(Ra,qa){let nd={};const od=fxp.parse(Ra);od.Error&&(nd=od.Error);const ld=new S3Error;return Object.entries(nd).forEach(([ud,dd])=>{ld[ud.toLowerCase()]=dd}),Object.entries(qa).forEach(([ud,dd])=>{ld[ud]=dd}),ld}async function parseResponseError(Ra){const qa=Ra.statusCode;let nd,od;qa===301?(nd="MovedPermanently",od="Moved Permanently"):qa===307?(nd="TemporaryRedirect",od="Are you using the correct endpoint URL?"):qa===403?(nd="AccessDenied",od="Valid and authorized credentials required"):qa===404?(nd="NotFound",od="Not Found"):qa===405||qa===501?(nd="MethodNotAllowed",od="Method Not Allowed"):(nd="UnknownError",od=`${qa}`);const ld={};ld.amzRequestid=Ra.headers["x-amz-request-id"],ld.amzId2=Ra.headers["x-amz-id-2"],ld.amzBucketRegion=Ra.headers["x-amz-bucket-region"];const ud=await readAsString(Ra);if(ud)throw parseError(ud,ld);const dd=new S3Error(od,{cause:ld});throw dd.code=nd,Object.entries(ld).forEach(([pd,fd])=>{dd[pd]=fd}),dd}function parseListObjectsV2WithMetadata(Ra){const qa={objects:[],isTruncated:!1,nextContinuationToken:""};let nd=parseXml(Ra);if(!nd.ListBucketResult)throw new InvalidXMLError('Missing tag: "ListBucketResult"');return nd=nd.ListBucketResult,nd.IsTruncated&&(qa.isTruncated=nd.IsTruncated),nd.NextContinuationToken&&(qa.nextContinuationToken=nd.NextContinuationToken),nd.Contents&&toArray(nd.Contents).forEach(od=>{const ld=sanitizeObjectKey(od.Key),ud=new Date(od.LastModified),dd=sanitizeETag(od.ETag),pd=od.Size;let fd;od.UserMetadata!=null?fd=toArray(od.UserMetadata)[0]:fd=null,qa.objects.push({name:ld,lastModified:ud,etag:dd,size:pd,metadata:fd})}),nd.CommonPrefixes&&toArray(nd.CommonPrefixes).forEach(od=>{qa.objects.push({prefix:sanitizeObjectKey(toArray(od.Prefix)[0]),size:0})}),qa}function parseListParts(Ra){let qa=parseXml(Ra);const nd={isTruncated:!1,parts:[],marker:0};if(!qa.ListPartsResult)throw new InvalidXMLError('Missing tag: "ListPartsResult"');return qa=qa.ListPartsResult,qa.IsTruncated&&(nd.isTruncated=qa.IsTruncated),qa.NextPartNumberMarker&&(nd.marker=toArray(qa.NextPartNumberMarker)[0]||""),qa.Part&&toArray(qa.Part).forEach(od=>{const ld=parseInt(toArray(od.PartNumber)[0],10),ud=new Date(od.LastModified),dd=od.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"");nd.parts.push({part:ld,lastModified:ud,etag:dd,size:parseInt(od.Size,10)})}),nd}function parseListBucket(Ra){let qa=[];const nd=parseXml(Ra);if(!nd.ListAllMyBucketsResult)throw new InvalidXMLError('Missing tag: "ListAllMyBucketsResult"');const{ListAllMyBucketsResult:{Buckets:od={}}={}}=nd;return od.Bucket&&(qa=toArray(od.Bucket).map((ld={})=>{const{Name:ud,CreationDate:dd}=ld,pd=new Date(dd);return{name:ud,creationDate:pd}})),qa}function parseInitiateMultipart(Ra){let qa=parseXml(Ra);if(!qa.InitiateMultipartUploadResult)throw new InvalidXMLError('Missing tag: "InitiateMultipartUploadResult"');if(qa=qa.InitiateMultipartUploadResult,qa.UploadId)return qa.UploadId;throw new InvalidXMLError('Missing tag: "UploadId"')}function parseReplicationConfig(Ra){const qa=parseXml(Ra),{Role:nd,Rule:od}=qa.ReplicationConfiguration;return{ReplicationConfiguration:{role:nd,rules:toArray(od)}}}class Extensions{constructor(qa){this.client=qa}listObjectsV2WithMetadata(qa,nd,od,ld){if(nd===void 0&&(nd=""),od===void 0&&(od=!1),ld===void 0&&(ld=""),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidPrefix(nd))throw new InvalidPrefixError(`Invalid prefix : ${nd}`);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isBoolean(od))throw new TypeError('recursive should be of type "boolean"');if(!isString(ld))throw new TypeError('startAfter should be of type "string"');const ud=od?"":"/";return streamBrowserify.Readable.from(this.listObjectsV2WithMetadataGen(qa,nd,ud,ld),{objectMode:!0})}async*listObjectsV2WithMetadataGen(qa,nd,od,ld){let ud=!1,dd="";do{const pd=await this.listObjectsV2WithMetadataQuery(qa,nd,dd,od,ld);ud=!pd.isTruncated,dd=pd.nextContinuationToken;for(const fd of pd.objects)yield fd}while(!ud)}async listObjectsV2WithMetadataQuery(qa,nd,od,ld,ud){const dd=[];dd.push("list-type=2"),dd.push("encoding-type=url"),dd.push(`prefix=${uriEscape(nd)}`),dd.push(`delimiter=${uriEscape(ld)}`),dd.push("metadata=true"),od&&(od=uriEscape(od),dd.push(`continuation-token=${od}`)),ud&&(ud=uriEscape(ud),dd.push(`start-after=${ud}`)),dd.push("max-keys=1000"),dd.sort();let pd="";dd.length>0&&(pd=`${dd.join("&")}`);const md=await this.client.makeRequestAsync({method:"GET",bucketName:qa,query:pd});return parseListObjectsV2WithMetadata(await readAsString(md))}}async function request$1(Ra,qa,nd=null){return new Promise((od,ld)=>{const ud=Ra.request(qa,dd=>{od(dd)});if(!nd||Buffer$4.isBuffer(nd)||typeof nd=="string"){ud.on("error",dd=>{ld(dd)}).end(nd);return}streamBrowserify.pipeline(nd,ud,dd=>{dd&&ld(dd)})})}const awsS3Endpoint={"us-east-1":"s3.amazonaws.com","us-east-2":"s3-us-east-2.amazonaws.com","us-west-1":"s3-us-west-1.amazonaws.com","us-west-2":"s3-us-west-2.amazonaws.com","ca-central-1":"s3.ca-central-1.amazonaws.com","eu-west-1":"s3-eu-west-1.amazonaws.com","eu-west-2":"s3-eu-west-2.amazonaws.com","sa-east-1":"s3-sa-east-1.amazonaws.com","eu-central-1":"s3-eu-central-1.amazonaws.com","ap-south-1":"s3-ap-south-1.amazonaws.com","ap-southeast-1":"s3-ap-southeast-1.amazonaws.com","ap-southeast-2":"s3-ap-southeast-2.amazonaws.com","ap-northeast-1":"s3-ap-northeast-1.amazonaws.com","cn-north-1":"s3.cn-north-1.amazonaws.com.cn","ap-east-1":"s3.ap-east-1.amazonaws.com","eu-north-1":"s3.eu-north-1.amazonaws.com"};function getS3Endpoint(Ra){if(!isString(Ra))throw new TypeError(`Invalid region: ${Ra}`);const qa=awsS3Endpoint[Ra];return qa||"s3.amazonaws.com"}var define_process_default$2={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};const Package={version:"7.1.3"},requestOptionProperties=["agent","ca","cert","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","family","honorCipherOrder","key","passphrase","pfx","rejectUnauthorized","secureOptions","secureProtocol","servername","sessionIdContext"];class TypedClient{constructor(qa){kg(this,"partSize",64*1024*1024);kg(this,"maximumPartSize",5*1024*1024*1024);kg(this,"maxObjectSize",5*1024*1024*1024*1024);if(qa.secure!==void 0)throw new Error('"secure" option deprecated, "useSSL" should be used instead');if(qa.useSSL===void 0&&(qa.useSSL=!0),qa.port||(qa.port=0),!isValidEndpoint(qa.endPoint))throw new InvalidEndpointError(`Invalid endPoint : ${qa.endPoint}`);if(!isValidPort(qa.port))throw new InvalidArgumentError(`Invalid port : ${qa.port}`);if(!isBoolean(qa.useSSL))throw new InvalidArgumentError(`Invalid useSSL flag type : ${qa.useSSL}, expected to be of type "boolean"`);if(qa.region&&!isString(qa.region))throw new InvalidArgumentError(`Invalid region : ${qa.region}`);const nd=qa.endPoint.toLowerCase();let od=qa.port,ld,ud,dd;if(qa.useSSL?(ud=http,ld="https:",od=od||443,dd=void 0):(ud=http,ld="http:",od=od||80,dd=void 0),qa.transport){if(!isObject(qa.transport))throw new InvalidArgumentError(`Invalid transport type : ${qa.transport}, expected to be type "object"`);ud=qa.transport}if(qa.transportAgent){if(!isObject(qa.transportAgent))throw new InvalidArgumentError(`Invalid transportAgent type: ${qa.transportAgent}, expected to be type "object"`);dd=qa.transportAgent}const fd=`MinIO ${`(${define_process_default$2.platform}; ${define_process_default$2.arch})`} minio-js/${Package.version}`;if(this.transport=ud,this.transportAgent=dd,this.host=nd,this.port=od,this.protocol=ld,this.userAgent=`${fd}`,qa.pathStyle===void 0?this.pathStyle=!0:this.pathStyle=qa.pathStyle,this.accessKey=qa.accessKey??"",this.secretKey=qa.secretKey??"",this.sessionToken=qa.sessionToken,this.anonymous=!this.accessKey||!this.secretKey,qa.credentialsProvider&&(this.credentialsProvider=qa.credentialsProvider),this.regionMap={},qa.region&&(this.region=qa.region),qa.partSize&&(this.partSize=qa.partSize,this.overRidePartSize=!0),this.partSize<5*1024*1024)throw new InvalidArgumentError("Part size should be greater than 5MB");if(this.partSize>5*1024*1024*1024)throw new InvalidArgumentError("Part size should be less than 5GB");this.enableSHA256=!this.anonymous&&!qa.useSSL,this.s3AccelerateEndpoint=qa.s3AccelerateEndpoint||void 0,this.reqOptions={},this.clientExtensions=new Extensions(this)}get extensions(){return this.clientExtensions}setS3TransferAccelerate(qa){this.s3AccelerateEndpoint=qa}setRequestOptions(qa){if(!isObject(qa))throw new TypeError('request options should be of type "object"');this.reqOptions=_.pick(qa,requestOptionProperties)}getAccelerateEndPointIfSet(qa,nd){if(!isEmpty(this.s3AccelerateEndpoint)&&!isEmpty(qa)&&!isEmpty(nd)){if(qa.includes("."))throw new Error(`Transfer Acceleration is not supported for non compliant bucket:${qa}`);return this.s3AccelerateEndpoint}return!1}getRequestOptions(qa){const nd=qa.method,od=qa.region,ld=qa.bucketName;let ud=qa.objectName;const dd=qa.headers,pd=qa.query;let fd={method:nd,headers:{},protocol:this.protocol,agent:this.transportAgent},md;ld&&(md=isVirtualHostStyle(this.host,this.protocol,ld,this.pathStyle));let vd="/",Ad=this.host,Nd;if(this.port&&(Nd=this.port),ud&&(ud=uriResourceEscape(ud)),isAmazonEndpoint(Ad)){const Od=this.getAccelerateEndPointIfSet(ld,ud);Od?Ad=`${Od}`:Ad=getS3Endpoint(od)}if(md&&!qa.pathStyle?(ld&&(Ad=`${ld}.${Ad}`),ud&&(vd=`/${ud}`)):(ld&&(vd=`/${ld}`),ud&&(vd=`/${ld}/${ud}`)),pd&&(vd+=`?${pd}`),fd.headers.host=Ad,(fd.protocol==="http:"&&Nd!==80||fd.protocol==="https:"&&Nd!==443)&&(fd.headers.host=`${Ad}:${Nd}`),fd.headers["user-agent"]=this.userAgent,dd)for(const[Od,kd]of Object.entries(dd))fd.headers[Od.toLowerCase()]=kd;return fd=Object.assign({},this.reqOptions,fd),{...fd,headers:_.mapValues(_.pickBy(fd.headers,isDefined),Od=>Od.toString()),host:Ad,port:Nd,path:vd}}async setCredentialsProvider(qa){if(!(qa instanceof CredentialProvider))throw new Error("Unable to get credentials. Expected instance of CredentialProvider");this.credentialsProvider=qa,await this.checkAndRefreshCreds()}async checkAndRefreshCreds(){if(this.credentialsProvider)try{const qa=await this.credentialsProvider.getCredentials();this.accessKey=qa.getAccessKey(),this.secretKey=qa.getSecretKey(),this.sessionToken=qa.getSessionToken()}catch(qa){throw new Error(`Unable to get credentials: ${qa}`,{cause:qa})}}logHTTP(qa,nd,od){if(!this.logStream)return;if(!isObject(qa))throw new TypeError('reqOptions should be of type "object"');if(nd&&!isReadableStream(nd))throw new TypeError('response should be of type "Stream"');if(od&&!(od instanceof Error))throw new TypeError('err should be of type "Error"');const ld=this.logStream,ud=dd=>{Object.entries(dd).forEach(([pd,fd])=>{if(pd=="authorization"&&isString(fd)){const md=new RegExp("Signature=([0-9a-f]+)");fd=fd.replace(md,"Signature=**REDACTED**")}ld.write(`${pd}: ${fd} `)}),ld.write(` `)};if(ld.write(`REQUEST: ${qa.method} ${qa.path} `),ud(qa.headers),nd&&(this.logStream.write(`RESPONSE: ${nd.statusCode} `),ud(nd.headers)),od){ld.write(`ERROR BODY: `);const dd=JSON.stringify(od,null," ");ld.write(`${dd} -`)}}traceOn(qa){qa||(qa=define_process_default$2.stdout),this.logStream=qa}traceOff(){this.logStream=void 0}async makeRequestAsync(qa,nd="",od=[200],ld=""){if(!isObject(qa))throw new TypeError('options should be of type "object"');if(!isString(nd)&&!isObject(nd))throw new TypeError('payload should be of type "string" or "Buffer"');if(od.forEach(dd=>{if(!isNumber(dd))throw new TypeError('statusCode should be of type "number"')}),!isString(ld))throw new TypeError('region should be of type "string"');qa.headers||(qa.headers={}),(qa.method==="POST"||qa.method==="PUT"||qa.method==="DELETE")&&(qa.headers["content-length"]=nd.length.toString());const ud=this.enableSHA256?toSha256(nd):"";return this.makeRequestStreamAsync(qa,nd,ud,od,ld)}async makeRequestAsyncOmit(qa,nd="",od=[200],ld=""){const ud=await this.makeRequestAsync(qa,nd,od,ld);return await drainResponse(ud),ud}async makeRequestStreamAsync(qa,nd,od,ld,ud){if(!isObject(qa))throw new TypeError('options should be of type "object"');if(!(Buffer$4.isBuffer(nd)||typeof nd=="string"||isReadableStream(nd)))throw new InvalidArgumentError(`stream should be a Buffer, string or readable Stream, got ${typeof nd} instead`);if(!isString(od))throw new TypeError('sha256sum should be of type "string"');if(ld.forEach(fd=>{if(!isNumber(fd))throw new TypeError('statusCode should be of type "number"')}),!isString(ud))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&od.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&od.length!==64)throw new InvalidArgumentError(`Invalid sha256sum : ${od}`);await this.checkAndRefreshCreds(),ud=ud||await this.getBucketRegionAsync(qa.bucketName);const dd=this.getRequestOptions({...qa,region:ud});if(!this.anonymous){this.enableSHA256||(od="UNSIGNED-PAYLOAD");const fd=new Date;dd.headers["x-amz-date"]=makeDateLong(fd),dd.headers["x-amz-content-sha256"]=od,this.sessionToken&&(dd.headers["x-amz-security-token"]=this.sessionToken),dd.headers.authorization=signV4(dd,this.accessKey,this.secretKey,ud,fd,od)}const pd=await request$1(this.transport,dd,nd);if(!pd.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!ld.includes(pd.statusCode)){delete this.regionMap[qa.bucketName];const fd=await parseResponseError(pd);throw this.logHTTP(dd,pd,fd),fd}return this.logHTTP(dd,pd),pd}async getBucketRegionAsync(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name : ${qa}`);if(this.region)return this.region;const nd=this.regionMap[qa];if(nd)return nd;const od=async md=>{const vd=await readAsString(md),Ad=parseBucketRegion(vd)||DEFAULT_REGION;return this.regionMap[qa]=Ad,Ad},ld="GET",ud="location",dd=this.pathStyle&&!isBrowser_1;let pd;try{const md=await this.makeRequestAsync({method:ld,bucketName:qa,query:ud,pathStyle:dd},"",[200],DEFAULT_REGION);return od(md)}catch(md){if(md.name!=="AuthorizationHeaderMalformed"||(pd=md.Region,!pd))throw md}const fd=await this.makeRequestAsync({method:ld,bucketName:qa,query:ud,pathStyle:dd},"",[200],pd);return await od(fd)}makeRequest(qa,nd="",od=[200],ld="",ud,dd){let pd;ud?pd=this.makeRequestAsync(qa,nd,od,ld):pd=this.makeRequestAsyncOmit(qa,nd,od,ld),pd.then(fd=>dd(null,fd),fd=>{dd(fd)})}makeRequestStream(qa,nd,od,ld,ud,dd,pd){(async()=>{const md=await this.makeRequestStreamAsync(qa,nd,od,ld,ud);return dd||await drainResponse(md),md})().then(md=>pd(null,md),md=>pd(md))}getBucketRegion(qa,nd){return this.getBucketRegionAsync(qa).then(od=>nd(null,od),od=>nd(od))}async removeBucket(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:qa},"",[204]),delete this.regionMap[qa]}async statObject(qa,nd,od={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isObject(od))throw new InvalidArgumentError('statOpts should be of type "object"');const ld=queryString.stringify(od),dd=await this.makeRequestAsyncOmit({method:"HEAD",bucketName:qa,objectName:nd,query:ld});return{size:parseInt(dd.headers["content-length"]),metaData:extractMetadata(dd.headers),lastModified:new Date(dd.headers["last-modified"]),versionId:getVersionId(dd.headers),etag:sanitizeETag(dd.headers.etag)}}async removeObject(qa,nd,od={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isObject(od))throw new InvalidArgumentError('removeOpts should be of type "object"');const ld="DELETE",ud={};od.governanceBypass&&(ud["X-Amz-Bypass-Governance-Retention"]=!0),od.forceDelete&&(ud["x-minio-force-delete"]=!0);const dd={};od.versionId&&(dd.versionId=`${od.versionId}`);const pd=queryString.stringify(dd);await this.makeRequestAsyncOmit({method:ld,bucketName:qa,objectName:nd,headers:ud,query:pd},"",[200,204])}async initiateNewMultipartUpload(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isObject(od))throw new InvalidObjectNameError('contentType should be of type "object"');const dd=await this.makeRequestAsync({method:"POST",bucketName:qa,objectName:nd,query:"uploads",headers:od}),pd=await readAsBuffer(dd);return parseInitiateMultipart(pd.toString())}async abortMultipartUpload(qa,nd,od){const ld="DELETE",ud=`uploadId=${od}`,dd={method:ld,bucketName:qa,objectName:nd,query:ud};await this.makeRequestAsyncOmit(dd,"",[204])}async listParts(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('uploadId should be of type "string"');if(!od)throw new InvalidArgumentError("uploadId cannot be empty");const ld=[];let ud=0,dd;do dd=await this.listPartsQuery(qa,nd,od,ud),ud=dd.marker,ld.push(...dd.parts);while(dd.isTruncated);return ld}async listPartsQuery(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('uploadId should be of type "string"');if(!isNumber(ld))throw new TypeError('marker should be of type "number"');if(!od)throw new InvalidArgumentError("uploadId cannot be empty");let ud=`uploadId=${uriEscape(od)}`;ld&&(ud+=`&part-number-marker=${ld}`);const pd=await this.makeRequestAsync({method:"GET",bucketName:qa,objectName:nd,query:ud});return parseListParts(await readAsString(pd))}async listBuckets(){const nd=await this.makeRequestAsync({method:"GET"},"",[200],DEFAULT_REGION),od=await readAsString(nd);return parseListBucket(od)}async removeBucketReplication(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:qa,query:"replication"},"",[200,204],"")}async setBucketReplication(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(isObject(nd)){if(_.isEmpty(nd.role))throw new InvalidArgumentError("Role cannot be empty");if(nd.role&&!isString(nd.role))throw new InvalidArgumentError("Invalid value for role",nd.role);if(_.isEmpty(nd.rules))throw new InvalidArgumentError("Minimum one replication rule must be specified")}else throw new InvalidArgumentError('replicationConfig should be of type "object"');const od="PUT",ld="replication",ud={},dd={ReplicationConfiguration:{Role:nd.role,Rule:nd.rules}},fd=new xml2js.Builder({renderOpts:{pretty:!1},headless:!0}).buildObject(dd);ud["Content-MD5"]=toMd5(fd),await this.makeRequestAsyncOmit({method:od,bucketName:qa,query:ld,headers:ud},fd)}async getBucketReplication(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);const ld=await this.makeRequestAsync({method:"GET",bucketName:qa,query:"replication"},"",[200,204]),ud=await readAsString(ld);return parseReplicationConfig(ud)}}class CopyConditions{constructor(){Og(this,"modified","");Og(this,"unmodified","");Og(this,"matchETag","");Og(this,"matchETagExcept","")}setModified(qa){if(!(qa instanceof Date))throw new TypeError("date must be of type Date");this.modified=qa.toUTCString()}setUnmodified(qa){if(!(qa instanceof Date))throw new TypeError("date must be of type Date");this.unmodified=qa.toUTCString()}setMatchETag(qa){this.matchETag=qa}setMatchETagExcept(qa){this.matchETagExcept=qa}}class PostPolicy{constructor(){Og(this,"policy",{conditions:[]});Og(this,"formData",{})}setExpires(qa){if(!qa)throw new InvalidDateError("Invalid date: cannot be null");this.policy.expiration=qa.toISOString()}setKey(qa){if(!isValidObjectName(qa))throw new InvalidObjectNameError(`Invalid object name : ${qa}`);this.policy.conditions.push(["eq","$key",qa]),this.formData.key=qa}setKeyStartsWith(qa){if(!isValidPrefix(qa))throw new InvalidPrefixError(`Invalid prefix : ${qa}`);this.policy.conditions.push(["starts-with","$key",qa]),this.formData.key=qa}setBucket(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name : ${qa}`);this.policy.conditions.push(["eq","$bucket",qa]),this.formData.bucket=qa}setContentType(qa){if(!qa)throw new Error("content-type cannot be null");this.policy.conditions.push(["eq","$Content-Type",qa]),this.formData["Content-Type"]=qa}setContentTypeStartsWith(qa){if(!qa)throw new Error("content-type cannot be null");this.policy.conditions.push(["starts-with","$Content-Type",qa]),this.formData["Content-Type"]=qa}setContentDisposition(qa){if(!qa)throw new Error("content-disposition cannot be null");this.policy.conditions.push(["eq","$Content-Disposition",qa]),this.formData["Content-Disposition"]=qa}setContentLengthRange(qa,nd){if(qa>nd)throw new Error("min cannot be more than max");if(qa<0)throw new Error("min should be > 0");if(nd<0)throw new Error("max should be > 0");this.policy.conditions.push(["content-length-range",qa,nd])}setUserMetaData(qa){if(!isObject(qa))throw new TypeError('metadata should be of type "object"');Object.entries(qa).forEach(([nd,od])=>{const ld=`x-amz-meta-${nd}`;this.policy.conditions.push(["eq",`$${ld}`,od]),this.formData[ld]=od.toString()})}}var jsonStream={exports:{}},util=util$a,TransformStream$1=streamBrowserify.Transform;jsonStream.exports=function(Ra){return new JSONStream(Ra)};var JSONStream=jsonStream.exports.JSONStream=function(Ra){Ra=Ra||{},TransformStream$1.call(this,Ra),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this._async=Ra.async||!1};util.inherits(JSONStream,TransformStream$1);JSONStream.prototype._transform=function(Ra,qa,nd){Buffer$4.isBuffer(Ra)||(Ra=new Buffer$4(Ra)),this._buffer&&(Ra=Buffer$4.concat([this._buffer,Ra]));for(var od=0,ld=0;++od<=Ra.length;)if(Ra[od]===10||od===Ra.length){var ud;try{ud=JSON.parse(Ra.slice(ld,od))}catch{}ud&&(this.push(ud),ud=null),Ra[od]===10&&(ld=++od)}return this._buffer=Ra.slice(ld),this._async?void setImmediate(nd):void nd()};var jsonStreamExports=jsonStream.exports;const JSONParser=getDefaultExportFromCjs(jsonStreamExports);var through2$1={exports:{}};const{Transform}=readableBrowserExports;function inherits(Ra,qa){Ra.super_=qa,Ra.prototype=Object.create(qa.prototype,{constructor:{value:Ra,enumerable:!1,writable:!0,configurable:!0}})}function through2(Ra){return(qa,nd,od)=>(typeof qa=="function"&&(od=nd,nd=qa,qa={}),typeof nd!="function"&&(nd=(ld,ud,dd)=>dd(null,ld)),typeof od!="function"&&(od=null),Ra(qa,nd,od))}const make=through2((Ra,qa,nd)=>{const od=new Transform(Ra);return od._transform=qa,nd&&(od._flush=nd),od}),ctor=through2((Ra,qa,nd)=>{function od(ld){if(!(this instanceof od))return new od(ld);this.options=Object.assign({},Ra,ld),Transform.call(this,this.options),this._transform=qa,nd&&(this._flush=nd)}return inherits(od,Transform),od}),obj=through2(function(Ra,qa,nd){const od=new Transform(Object.assign({objectMode:!0,highWaterMark:16},Ra));return od._transform=qa,nd&&(od._flush=nd),od});through2$1.exports=make;through2$1.exports.ctor=ctor;through2$1.exports.obj=obj;var through2Exports=through2$1.exports;const Through2=getDefaultExportFromCjs(through2Exports);var Buffer=buffer.Buffer,CRC_TABLE=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(CRC_TABLE=new Int32Array(CRC_TABLE));function ensureBuffer(Ra){if(Buffer.isBuffer(Ra))return Ra;var qa=typeof Buffer.alloc=="function"&&typeof Buffer.from=="function";if(typeof Ra=="number")return qa?Buffer.alloc(Ra):new Buffer(Ra);if(typeof Ra=="string")return qa?Buffer.from(Ra):new Buffer(Ra);throw new Error("input must be buffer, number, or string, received "+typeof Ra)}function bufferizeInt(Ra){var qa=ensureBuffer(4);return qa.writeInt32BE(Ra,0),qa}function _crc32(Ra,qa){Ra=ensureBuffer(Ra),Buffer.isBuffer(qa)&&(qa=qa.readUInt32BE(0));for(var nd=~~qa^-1,od=0;od>>8;return nd^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var bufferCrc32=crc32;const crc32$1=getDefaultExportFromCjs(bufferCrc32),fxpWithoutNumParser=new fxp$2.XMLParser({numberParseOptions:{skipLike:/./}});function parseCopyObject(Ra){var qa={etag:"",lastModified:""},nd=parseXml(Ra);if(!nd.CopyObjectResult)throw new InvalidXMLError('Missing tag: "CopyObjectResult"');return nd=nd.CopyObjectResult,nd.ETag&&(qa.etag=nd.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"")),nd.LastModified&&(qa.lastModified=new Date(nd.LastModified)),qa}function parseListMultipart(Ra){var qa={uploads:[],prefixes:[],isTruncated:!1},nd=parseXml(Ra);if(!nd.ListMultipartUploadsResult)throw new InvalidXMLError('Missing tag: "ListMultipartUploadsResult"');return nd=nd.ListMultipartUploadsResult,nd.IsTruncated&&(qa.isTruncated=nd.IsTruncated),nd.NextKeyMarker&&(qa.nextKeyMarker=nd.NextKeyMarker),nd.NextUploadIdMarker&&(qa.nextUploadIdMarker=nd.nextUploadIdMarker||""),nd.CommonPrefixes&&toArray(nd.CommonPrefixes).forEach(od=>{qa.prefixes.push({prefix:sanitizeObjectKey(toArray(od.Prefix)[0])})}),nd.Upload&&toArray(nd.Upload).forEach(od=>{var ld=od.Key,ud=od.UploadId,dd={id:od.Initiator.ID,displayName:od.Initiator.DisplayName},pd={id:od.Owner.ID,displayName:od.Owner.DisplayName},fd=od.StorageClass,md=new Date(od.Initiated);qa.uploads.push({key:ld,uploadId:ud,initiator:dd,owner:pd,storageClass:fd,initiated:md})}),qa}function parseBucketNotification(Ra){var qa={TopicConfiguration:[],QueueConfiguration:[],CloudFunctionConfiguration:[]},nd=function(ud){var dd=[];return ud&&toArray(ud).forEach(pd=>{dd.push(pd)}),dd},od=function(ud){var dd=[];return ud&&(ud=toArray(ud),ud[0].S3Key&&(ud[0].S3Key=toArray(ud[0].S3Key),ud[0].S3Key[0].FilterRule&&toArray(ud[0].S3Key[0].FilterRule).forEach(pd=>{var fd=toArray(pd.Name)[0],md=toArray(pd.Value)[0];dd.push({Name:fd,Value:md})}))),dd},ld=parseXml(Ra);return ld=ld.NotificationConfiguration,ld.TopicConfiguration&&toArray(ld.TopicConfiguration).forEach(ud=>{var dd=toArray(ud.Id)[0],pd=toArray(ud.Topic)[0],fd=nd(ud.Event),md=od(ud.Filter);qa.TopicConfiguration.push({Id:dd,Topic:pd,Event:fd,Filter:md})}),ld.QueueConfiguration&&toArray(ld.QueueConfiguration).forEach(ud=>{var dd=toArray(ud.Id)[0],pd=toArray(ud.Queue)[0],fd=nd(ud.Event),md=od(ud.Filter);qa.QueueConfiguration.push({Id:dd,Queue:pd,Event:fd,Filter:md})}),ld.CloudFunctionConfiguration&&toArray(ld.CloudFunctionConfiguration).forEach(ud=>{var dd=toArray(ud.Id)[0],pd=toArray(ud.CloudFunction)[0],fd=nd(ud.Event),md=od(ud.Filter);qa.CloudFunctionConfiguration.push({Id:dd,CloudFunction:pd,Event:fd,Filter:md})}),qa}function parseCompleteMultipart(Ra){var qa=parseXml(Ra).CompleteMultipartUploadResult;if(qa.Location){var nd=toArray(qa.Location)[0],od=toArray(qa.Bucket)[0],ld=qa.Key,ud=qa.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"");return{location:nd,bucket:od,key:ld,etag:ud}}if(qa.Code&&qa.Message){var dd=toArray(qa.Code)[0],pd=toArray(qa.Message)[0];return{errCode:dd,errMessage:pd}}}const formatObjInfo=(Ra,qa={})=>{let{Key:nd,LastModified:od,ETag:ld,Size:ud,VersionId:dd,IsLatest:pd}=Ra;isObject(qa)||(qa={});const fd=sanitizeObjectKey(toArray(nd)[0]),md=new Date(toArray(od)[0]),vd=sanitizeETag(toArray(ld)[0]),Ad=sanitizeSize(ud);return{name:fd,lastModified:md,etag:vd,size:Ad,versionId:dd,isLatest:pd,isDeleteMarker:qa.IsDeleteMarker?qa.IsDeleteMarker:!1}};function parseListObjects(Ra){var qa={objects:[],isTruncated:!1};let nd=!1,od,ld;const ud=fxpWithoutNumParser.parse(Ra),dd=md=>{md&&toArray(md).forEach(vd=>{qa.objects.push({prefix:sanitizeObjectKey(toArray(vd.Prefix)[0]),size:0})})},pd=ud.ListBucketResult,fd=ud.ListVersionsResult;return pd&&(pd.IsTruncated&&(nd=pd.IsTruncated),pd.Contents&&toArray(pd.Contents).forEach(md=>{const vd=sanitizeObjectKey(toArray(md.Key)[0]),Ad=new Date(toArray(md.LastModified)[0]),Nd=sanitizeETag(toArray(md.ETag)[0]),Od=sanitizeSize(md.Size);qa.objects.push({name:vd,lastModified:Ad,etag:Nd,size:Od})}),pd.NextMarker&&(od=pd.NextMarker),dd(pd.CommonPrefixes)),fd&&(fd.IsTruncated&&(nd=fd.IsTruncated),fd.Version&&toArray(fd.Version).forEach(md=>{qa.objects.push(formatObjInfo(md))}),fd.DeleteMarker&&toArray(fd.DeleteMarker).forEach(md=>{qa.objects.push(formatObjInfo(md,{IsDeleteMarker:!0}))}),fd.NextKeyMarker&&(ld=fd.NextKeyMarker),fd.NextVersionIdMarker&&(qa.versionIdMarker=fd.NextVersionIdMarker),dd(fd.CommonPrefixes)),qa.isTruncated=nd,nd&&(qa.nextMarker=ld||od),qa}function parseListObjectsV2(Ra){var qa={objects:[],isTruncated:!1},nd=parseXml(Ra);if(!nd.ListBucketResult)throw new InvalidXMLError('Missing tag: "ListBucketResult"');return nd=nd.ListBucketResult,nd.IsTruncated&&(qa.isTruncated=nd.IsTruncated),nd.NextContinuationToken&&(qa.nextContinuationToken=nd.NextContinuationToken),nd.Contents&&toArray(nd.Contents).forEach(od=>{var ld=sanitizeObjectKey(toArray(od.Key)[0]),ud=new Date(od.LastModified),dd=sanitizeETag(od.ETag),pd=od.Size;qa.objects.push({name:ld,lastModified:ud,etag:dd,size:pd})}),nd.CommonPrefixes&&toArray(nd.CommonPrefixes).forEach(od=>{qa.objects.push({prefix:sanitizeObjectKey(toArray(od.Prefix)[0]),size:0})}),qa}function parseBucketVersioningConfig(Ra){var qa=parseXml(Ra);return qa.VersioningConfiguration}function parseTagging(Ra){const qa=parseXml(Ra);let nd=[];if(qa.Tagging&&qa.Tagging.TagSet&&qa.Tagging.TagSet.Tag){const od=qa.Tagging.TagSet.Tag;isObject(od)?nd.push(od):nd=od}return nd}function parseLifecycleConfig(Ra){return parseXml(Ra).LifecycleConfiguration}function parseObjectLockConfig(Ra){const qa=parseXml(Ra);let nd={};if(qa.ObjectLockConfiguration){nd={objectLockEnabled:qa.ObjectLockConfiguration.ObjectLockEnabled};let od;if(qa.ObjectLockConfiguration&&qa.ObjectLockConfiguration.Rule&&qa.ObjectLockConfiguration.Rule.DefaultRetention&&(od=qa.ObjectLockConfiguration.Rule.DefaultRetention||{},nd.mode=od.Mode),od){const ld=od.Years;ld?(nd.validity=ld,nd.unit=RETENTION_VALIDITY_UNITS.YEARS):(nd.validity=od.Days,nd.unit=RETENTION_VALIDITY_UNITS.DAYS)}return nd}}function parseObjectRetentionConfig(Ra){const nd=parseXml(Ra).Retention;return{mode:nd.Mode,retainUntilDate:nd.RetainUntilDate}}function parseBucketEncryptionConfig(Ra){return parseXml(Ra)}function parseObjectLegalHoldConfig(Ra){return parseXml(Ra).LegalHold}function uploadPartParser(Ra){return parseXml(Ra).CopyPartResult}function removeObjectsParser(Ra){const qa=parseXml(Ra);return qa.DeleteResult&&qa.DeleteResult.Error?toArray(qa.DeleteResult.Error):[]}function parseSelectObjectContentResponse(Ra){function qa(ud){const dd=Buffer$4.from(ud.read(1)).readUInt8(),fd=(Buffer$4.from(ud.read(dd)).toString()||"").split(":");return fd.length>=1?fd[1]:""}function nd(ud){const dd=Buffer$4.from(ud.read(2)).readUInt16BE();return Buffer$4.from(ud.read(dd)).toString()}const od=new SelectResults({}),ld=readableStream(Ra);for(;ld._readableState.length;){let ud;const dd=Buffer$4.from(ld.read(4));ud=crc32$1(dd);const pd=Buffer$4.from(ld.read(4));ud=crc32$1(pd,ud);const fd=ud.readInt32BE(),md=Buffer$4.from(ld.read(4));ud=crc32$1(md,ud);const vd=dd.readInt32BE(),Ad=pd.readInt32BE(),Nd=md.readInt32BE();if(Nd!==fd)throw new Error(`Header Checksum Mismatch, Prelude CRC of ${Nd} does not equal expected CRC of ${fd}`);const Od={};if(Ad>0){const Ud=Buffer$4.from(ld.read(Ad));ud=crc32$1(Ud,ud);const Fd=readableStream(Ud);for(;Fd._readableState.length;){let jd=qa(Fd);Fd.read(1),Od[jd]=nd(Fd)}}let kd;const Ld=vd-Ad-16;if(Ld>0){const Ud=Buffer$4.from(ld.read(Ld));ud=crc32$1(Ud,ud);const Fd=Buffer$4.from(ld.read(4)).readInt32BE(),jd=ud.readInt32BE();if(Fd!==jd)throw new Error(`Message Checksum Mismatch, Message CRC of ${Fd} does not equal expected CRC of ${jd}`);kd=readableStream(Ud)}const Gd=Od["message-type"];switch(Gd){case"error":{const Ud=Od["error-code"]+':"'+Od["error-message"]+'"';throw new Error(Ud)}case"event":{const Ud=Od["content-type"];switch(Od["event-type"]){case"End":return od.setResponse(Ra),od;case"Records":{const jd=kd.read(Ld);od.setRecords(jd);break}case"Progress":switch(Ud){case"text/xml":{const jd=kd.read(Ld);od.setProgress(jd.toString());break}default:{const jd=`Unexpected content-type ${Ud} sent for event-type Progress`;throw new Error(jd)}}break;case"Stats":switch(Ud){case"text/xml":{const jd=kd.read(Ld);od.setStats(jd.toString());break}default:{const jd=`Unexpected content-type ${Ud} sent for event-type Stats`;throw new Error(jd)}}break;default:{const jd=`Un implemented event detected ${Gd}.`;console.warn(jd)}}}}}}function getConcater(Ra,qa){var nd=!1,od=[];if(Ra&&!isFunction(Ra))throw new TypeError('parser should be of type "function"');return Ra&&(nd=!0),Through2({objectMode:nd},function(ld,ud,dd){od.push(ld),dd()},function(ld){od.length&&(Ra?this.push(Ra(Buffer$4.concat(od).toString())):this.push(Buffer$4.concat(od))),ld()})}function getCopyObjectTransformer(){return getConcater(parseCopyObject)}function getListMultipartTransformer(){return getConcater(parseListMultipart)}function getListObjectsTransformer(){return getConcater(parseListObjects)}function getListObjectsV2Transformer(){return getConcater(parseListObjectsV2)}function getCompleteMultipartTransformer(){return getConcater(parseCompleteMultipart)}function getBucketNotificationTransformer(){return getConcater(parseBucketNotification)}function getNotificationTransformer(){return new JSONParser}function bucketVersioningTransformer(){return getConcater(parseBucketVersioningConfig)}function getTagsTransformer(){return getConcater(parseTagging)}function lifecycleTransformer(){return getConcater(parseLifecycleConfig)}function objectLockTransformer(){return getConcater(parseObjectLockConfig)}function objectRetentionTransformer(){return getConcater(parseObjectRetentionConfig)}function bucketEncryptionTransformer(){return getConcater(parseBucketEncryptionConfig)}function objectLegalHoldTransformer(){return getConcater(parseObjectLegalHoldConfig)}function uploadPartTransformer(){return getConcater(uploadPartParser)}function selectObjectContentTransformer(){return getConcater()}function removeObjectsTransformer(){return getConcater(removeObjectsParser)}var define_process_default$1={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};class NotificationConfig{add(qa){let nd="";qa instanceof TopicConfig&&(nd="TopicConfiguration"),qa instanceof QueueConfig&&(nd="QueueConfiguration"),qa instanceof CloudFunctionConfig&&(nd="CloudFunctionConfiguration"),this[nd]||(this[nd]=[]),this[nd].push(qa)}}class TargetConfig{setId(qa){this.Id=qa}addEvent(qa){this.Event||(this.Event=[]),this.Event.push(qa)}addFilterSuffix(qa){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"suffix",Value:qa})}addFilterPrefix(qa){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"prefix",Value:qa})}}class TopicConfig extends TargetConfig{constructor(qa){super(),this.Topic=qa}}class QueueConfig extends TargetConfig{constructor(qa){super(),this.Queue=qa}}class CloudFunctionConfig extends TargetConfig{constructor(qa){super(),this.CloudFunction=qa}}class NotificationPoller extends eventsExports.EventEmitter{constructor(qa,nd,od,ld,ud){super(),this.client=qa,this.bucketName=nd,this.prefix=od,this.suffix=ld,this.events=ud,this.ending=!1}start(){this.ending=!1,define_process_default$1.nextTick(()=>{this.checkForChanges()})}stop(){this.ending=!0}checkForChanges(){if(this.ending)return;let qa="GET";var nd=[];if(this.prefix){var od=uriEscape(this.prefix);nd.push(`prefix=${od}`)}if(this.suffix){var ld=uriEscape(this.suffix);nd.push(`suffix=${ld}`)}this.events&&this.events.forEach(pd=>nd.push("events="+uriEscape(pd))),nd.sort();var ud="";nd.length>0&&(ud=`${nd.join("&")}`);const dd=this.client.region||DEFAULT_REGION;this.client.makeRequest({method:qa,bucketName:this.bucketName,query:ud},"",[200],dd,!0,(pd,fd)=>{if(pd)return this.emit("error",pd);let md=getNotificationTransformer();pipesetup(fd,md).on("data",vd=>{let Ad=vd.Records;Ad||(Ad=[]),Ad.forEach(Nd=>{this.emit("notification",Nd)}),this.ending&&fd.destroy()}).on("error",vd=>this.emit("error",vd)).on("end",()=>{define_process_default$1.nextTick(()=>{this.checkForChanges()})})})}}var define_process_default={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_9e6350c2-9af7-4f98-9787-4e4aad3be68a",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_9e6350c2-9af7-4f98-9787-4e4aad3be68a",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"832",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250105.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:5908",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12744521887",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_dceacea9-9e88-47c2-b793-5cc0cbe1c0b4",INVOCATION_ID:"19932dda21374cb099c47c6f5dc9db0b",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"490",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 11",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"5b8b5496c2865594bb1a38efa1fa72795a85ee5d",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_9e6350c2-9af7-4f98-9787-4e4aad3be68a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_9e6350c2-9af7-4f98-9787-4e4aad3be68a",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_9e6350c2-9af7-4f98-9787-4e4aad3be68a",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2161,ppid:2160,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};class ObjectUploader extends streamBrowserify.Transform{constructor(qa,nd,od,ld,ud,dd){super(),this.emptyStream=!0,this.client=qa,this.bucketName=nd,this.objectName=od,this.partSize=ld,this.metaData=ud,this.callback=dd,this.partNumber=1,this.oldParts=null,this.etags=[],this.id=null,this.on("error",pd=>{dd(pd)})}_transform(qa,nd,od){this.emptyStream=!1;let ld="PUT",ud={"Content-Length":qa.length},dd="";if(this.client.enableSHA256||(dd=(void 0)("md5").update(qa).digest(),ud["Content-MD5"]=dd.toString("base64")),this.partNumber==1&&qa.length{if(Ad)return od(Ad);let Od={etag:sanitizeETag(Nd.headers.etag),versionId:getVersionId(Nd.headers)};Nd.on("data",()=>{}),define_process_default.nextTick(()=>{this.callback(null,Od)}),od()});return}if(this.id===null){this.once("ready",()=>{this._transform(qa,nd,od)}),this.client.findUploadId(this.bucketName,this.objectName,(vd,Ad)=>{if(vd)return this.emit("error",vd);if(!Ad){this.client.initiateNewMultipartUpload(this.bucketName,this.objectName,this.metaData).then(Nd=>{this.id=Nd,this.emit("ready")},Nd=>od(Nd));return}this.id=Ad,this.client.listParts(this.bucketName,this.objectName,Ad).then(Nd=>{Nd||(Nd=[]),this.oldParts=Nd.reduce(function(Od,kd){return Od[kd.part]||(Od[kd.part]=kd),Od},{}),this.emit("ready")},Nd=>this.emit("error",Nd))});return}let pd=this.partNumber++;if(this.oldParts){let vd=this.oldParts[pd];if(dd||(dd=(void 0)("md5").update(qa).digest()),vd&&dd.toString("hex")===vd.etag){this.etags.push({part:pd,etag:vd.etag}),od();return}}let fd=queryString.stringify({partNumber:pd,uploadId:this.id}),md={method:ld,query:fd,headers:ud,bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(md,qa,[200],"",!0,(vd,Ad)=>{if(vd)return od(vd);let Nd=Ad.headers.etag;Nd&&(Nd=Nd.replace(/^"/,"").replace(/"$/,"")),this.etags.push({part:pd,etag:Nd}),Ad.on("data",()=>{}),od()})}_flush(qa){if(this.emptyStream){let nd="PUT",od=Object.assign({},this.metaData,{"Content-Length":0}),ld={method:nd,headers:od,query:"",bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(ld,"",[200],"",!0,(ud,dd)=>{if(ud)return qa(ud);let pd={etag:sanitizeETag(dd.headers.etag),versionId:getVersionId(dd.headers)};dd.on("data",()=>{}),define_process_default.nextTick(()=>{this.callback(null,pd)}),qa()});return}this.id!==null&&this.client.completeMultipartUpload(this.bucketName,this.objectName,this.id,this.etags,(nd,od)=>{if(nd)return qa(nd);define_process_default.nextTick(()=>{this.callback(null,od)}),qa()})}}function promisify(Ra){return function(){if(typeof arguments[arguments.length-1]=="function")return Ra.apply(this,arguments);let nd=[...arguments];return new Promise((od,ld)=>{nd.push((ud,dd)=>{if(ud)return ld(ud);od(dd)}),Ra.apply(this,nd)})}}class Client extends TypedClient{setAppInfo(qa,nd){if(!isString(qa))throw new TypeError(`Invalid appName: ${qa}`);if(qa.trim()==="")throw new InvalidArgumentError("Input appName cannot be empty.");if(!isString(nd))throw new TypeError(`Invalid appVersion: ${nd}`);if(nd.trim()==="")throw new InvalidArgumentError("Input appVersion cannot be empty.");this.userAgent=`${this.userAgent} ${qa}/${nd}`}calculatePartSize(qa){if(!isNumber(qa))throw new TypeError('size should be of type "number"');if(qa>this.maxObjectSize)throw new TypeError(`size should not be more than ${this.maxObjectSize}`);if(this.overRidePartSize)return this.partSize;for(var nd=this.partSize;;){if(nd*1e4>qa)return nd;nd+=16*1024*1024}}makeBucket(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(isObject(nd)&&(ld=od,od=nd,nd=""),isFunction(nd)&&(ld=nd,nd="",od={}),isFunction(od)&&(ld=od,od={}),!isString(nd))throw new TypeError('region should be of type "string"');if(!isObject(od))throw new TypeError('makeOpts should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');var ud="";if(nd&&this.region&&nd!==this.region)throw new InvalidArgumentError(`Configured region ${this.region}, requested ${nd}`);if(nd&&nd!==DEFAULT_REGION){var dd=[];dd.push({_attr:{xmlns:"http://s3.amazonaws.com/doc/2006-03-01/"}}),dd.push({LocationConstraint:nd});var pd={CreateBucketConfiguration:dd};ud=Xml(pd)}var fd="PUT",md={};od.ObjectLocking&&(md["x-amz-bucket-object-lock-enabled"]=!0),nd||(nd=DEFAULT_REGION);const vd=Ad=>{if(Ad&&(nd===""||nd===DEFAULT_REGION))if(Ad.code==="AuthorizationHeaderMalformed"&&Ad.region!=="")this.makeRequest({method:fd,bucketName:qa,headers:md},ud,[200],Ad.region,!1,ld);else return ld&&ld(Ad);return ld&&ld(Ad)};this.makeRequest({method:fd,bucketName:qa,headers:md},ud,[200],nd,!1,vd)}listIncompleteUploads(qa,nd,od){if(nd===void 0&&(nd=""),od===void 0&&(od=!1),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidPrefix(nd))throw new InvalidPrefixError(`Invalid prefix : ${nd}`);if(!isBoolean(od))throw new TypeError('recursive should be of type "boolean"');var ld=od?"":"/",ud="",dd="",pd=[],fd=!1,md=streamBrowserify.Readable({objectMode:!0});return md._read=()=>{if(pd.length)return md.push(pd.shift());if(fd)return md.push(null);this.listIncompleteUploadsQuery(qa,nd,ud,dd,ld).on("error",vd=>md.emit("error",vd)).on("data",vd=>{vd.prefixes.forEach(Ad=>pd.push(Ad)),index.eachSeries(vd.uploads,(Ad,Nd)=>{this.listParts(qa,Ad.key,Ad.uploadId).then(Od=>{Ad.size=Od.reduce((kd,Ld)=>kd+Ld.size,0),pd.push(Ad),Nd()},Nd)},Ad=>{if(Ad){md.emit("error",Ad);return}vd.isTruncated?(ud=vd.nextKeyMarker,dd=vd.nextUploadIdMarker):fd=!0,md._read()})})},md}bucketExists(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new TypeError('callback should be of type "function"');var od="HEAD";this.makeRequest({method:od,bucketName:qa},"",[200],"",!1,ld=>{if(ld)return ld.code=="NoSuchBucket"||ld.code=="NotFound"?nd(null,!1):nd(ld);nd(null,!0)})}removeIncompleteUpload(qa,nd,od){if(!isValidBucketName(qa))throw new IsValidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isFunction(od))throw new TypeError('callback should be of type "function"');var ld;index.during(ud=>{this.findUploadId(qa,nd,(dd,pd)=>{if(dd)return ud(dd);ld=pd,ud(null,pd)})},ud=>{var dd="DELETE",pd=`uploadId=${ld}`;this.makeRequest({method:dd,bucketName:qa,objectName:nd,query:pd},"",[204],"",!1,fd=>ud(fd))},od)}fGetObject(qa,nd,od,ld={},ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('filePath should be of type "string"');if(isFunction(ld)&&(ud=ld,ld={}),!isFunction(ud))throw new TypeError('callback should be of type "function"');var dd,pd,fd,md=vd=>{if(vd)return ud(vd);(void 0)(dd,od,ud)};index.waterfall([vd=>this.statObject(qa,nd,ld,vd),(vd,Ad)=>{fd=vd,(void 0)(pathBrowserify.dirname(od),{recursive:!0},Nd=>Ad(Nd))},vd=>{dd=`${od}.${fd.etag}.part.minio`,(void 0)(dd,(Ad,Nd)=>{var Od=0;if(Ad)pd=(void 0)(dd,{flags:"w"});else{if(fd.size===Nd.size)return md();Od=Nd.size,pd=(void 0)(dd,{flags:"a"})}this.getPartialObject(qa,nd,Od,0,ld,vd)})},(vd,Ad)=>{pipesetup(vd,pd).on("error",Nd=>Ad(Nd)).on("finish",Ad)},vd=>(void 0)(dd,vd),(vd,Ad)=>{if(vd.size===fd.size)return Ad();Ad(new Error("Size mismatch between downloaded file and the object"))}],md)}getObject(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isFunction(od)&&(ld=od,od={}),!isFunction(ld))throw new TypeError('callback should be of type "function"');this.getPartialObject(qa,nd,0,0,od,ld)}getPartialObject(qa,nd,od,ld,ud={},dd){if(isFunction(ld)&&(dd=ld,ld=0),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isNumber(od))throw new TypeError('offset should be of type "number"');if(!isNumber(ld))throw new TypeError('length should be of type "number"');if(isFunction(ud)&&(dd=ud,ud={}),!isFunction(dd))throw new TypeError('callback should be of type "function"');var pd="";(od||ld)&&(od?pd=`bytes=${+od}-`:(pd="bytes=0-",od=0),ld&&(pd+=`${+ld+od-1}`));var fd={};pd!==""&&(fd.range=pd);var md=[200];pd&&md.push(206);var vd="GET",Ad=queryString.stringify(ud);this.makeRequest({method:vd,bucketName:qa,objectName:nd,headers:fd,query:Ad},"",md,"",!0,dd)}fPutObject(qa,nd,od,ld,ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('filePath should be of type "string"');if(isFunction(ld)&&(ud=ld,ld={}),!isObject(ld))throw new TypeError('metaData should be of type "object"');ld=insertContentType(ld,od),(void 0)(od,(dd,pd)=>dd?ud(dd):this.putObject(qa,nd,(void 0)(od),pd.size,ld,ud))}putObject(qa,nd,od,ld,ud,dd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isFunction(ld)?(dd=ld,ud={}):isFunction(ud)&&(dd=ud,ud={}),isObject(ld)&&(ud=ld),ud=prependXAMZMeta(ud),typeof od=="string"||od instanceof Buffer$4)ld=od.length,od=readableStream(od);else if(!isReadableStream(od))throw new TypeError('third argument should be of type "stream.Readable" or "Buffer" or "string"');if(!isFunction(dd))throw new TypeError('callback should be of type "function"');if(isNumber(ld)&&ld<0)throw new InvalidArgumentError(`size cannot be negative, given size: ${ld}`);isNumber(ld)||(ld=this.maxObjectSize),ld=this.calculatePartSize(ld);let pd=new BlockStream2({size:ld,zeroPadding:!1}),fd=new ObjectUploader(this,qa,nd,ld,ud,dd);pipesetup(od,pd,fd)}copyObjectV1(qa,nd,od,ld,ud){var dd=qa,pd=nd,fd=od,md,vd;if(typeof ld=="function"&&ud===void 0?(md=null,vd=ld):(md=ld,vd=ud),!isValidBucketName(dd))throw new InvalidBucketNameError("Invalid bucket name: "+dd);if(!isValidObjectName(pd))throw new InvalidObjectNameError(`Invalid object name: ${pd}`);if(!isString(fd))throw new TypeError('srcObject should be of type "string"');if(fd==="")throw new InvalidPrefixError("Empty source prefix");if(md!==null&&!(md instanceof CopyConditions))throw new TypeError('conditions should be of type "CopyConditions"');var Ad={};Ad["x-amz-copy-source"]=uriResourceEscape(fd),md!==null&&(md.modified!==""&&(Ad["x-amz-copy-source-if-modified-since"]=md.modified),md.unmodified!==""&&(Ad["x-amz-copy-source-if-unmodified-since"]=md.unmodified),md.matchETag!==""&&(Ad["x-amz-copy-source-if-match"]=md.matchETag),md.matchEtagExcept!==""&&(Ad["x-amz-copy-source-if-none-match"]=md.matchETagExcept));var Nd="PUT";this.makeRequest({method:Nd,bucketName:dd,objectName:pd,headers:Ad},"",[200],"",!0,(Od,kd)=>{if(Od)return vd(Od);var Ld=getCopyObjectTransformer();pipesetup(kd,Ld).on("error",Gd=>vd(Gd)).on("data",Gd=>vd(null,Gd))})}copyObjectV2(qa,nd,od){if(!(qa instanceof CopySourceOptions))throw new InvalidArgumentError("sourceConfig should of type CopySourceOptions ");if(!(nd instanceof CopyDestinationOptions))throw new InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(!nd.validate()||!nd.validate())return!1;if(!isFunction(od))throw new TypeError('callback should be of type "function"');const ld=Object.assign({},qa.getHeaders(),nd.getHeaders()),ud=nd.Bucket,dd=nd.Object;this.makeRequest({method:"PUT",bucketName:ud,objectName:dd,headers:ld},"",[200],"",!0,(fd,md)=>{if(fd)return od(fd);const vd=getCopyObjectTransformer();pipesetup(md,vd).on("error",Ad=>od(Ad)).on("data",Ad=>{const Nd=md.headers,Od={Bucket:nd.Bucket,Key:nd.Object,LastModified:Ad.LastModified,MetaData:extractMetadata(Nd),VersionId:getVersionId(Nd),SourceVersionId:getSourceVersionId(Nd),Etag:sanitizeETag(Nd.etag),Size:+Nd["content-length"]};return od(null,Od)})})}copyObject(...qa){return qa[0]instanceof CopySourceOptions&&qa[1]instanceof CopyDestinationOptions?this.copyObjectV2(...arguments):this.copyObjectV1(...arguments)}listObjectsQuery(qa,nd,od,ld={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isString(od))throw new TypeError('marker should be of type "string"');let{Delimiter:ud,MaxKeys:dd,IncludeVersion:pd}=ld;if(!isObject(ld))throw new TypeError('listQueryOpts should be of type "object"');if(!isString(ud))throw new TypeError('Delimiter should be of type "string"');if(!isNumber(dd))throw new TypeError('MaxKeys should be of type "number"');const fd=[];fd.push(`prefix=${uriEscape(nd)}`),fd.push(`delimiter=${uriEscape(ud)}`),fd.push("encoding-type=url"),pd&&fd.push("versions"),od&&(od=uriEscape(od),pd?fd.push(`key-marker=${od}`):fd.push(`marker=${od}`)),dd&&(dd>=1e3&&(dd=1e3),fd.push(`max-keys=${dd}`)),fd.sort();var md="";fd.length>0&&(md=`${fd.join("&")}`);var vd="GET",Ad=getListObjectsTransformer();return this.makeRequest({method:vd,bucketName:qa,query:md},"",[200],"",!0,(Nd,Od)=>{if(Nd)return Ad.emit("error",Nd);pipesetup(Od,Ad)}),Ad}listObjects(qa,nd,od,ld={}){if(nd===void 0&&(nd=""),od===void 0&&(od=!1),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidPrefix(nd))throw new InvalidPrefixError(`Invalid prefix : ${nd}`);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isBoolean(od))throw new TypeError('recursive should be of type "boolean"');if(!isObject(ld))throw new TypeError('listOpts should be of type "object"');var ud="";const dd={Delimiter:od?"":"/",MaxKeys:1e3,IncludeVersion:ld.IncludeVersion};var pd=[],fd=!1,md=streamBrowserify.Readable({objectMode:!0});return md._read=()=>{if(pd.length){md.push(pd.shift());return}if(fd)return md.push(null);this.listObjectsQuery(qa,nd,ud,dd).on("error",vd=>md.emit("error",vd)).on("data",vd=>{vd.isTruncated?ud=vd.nextMarker||vd.versionIdMarker:fd=!0,pd=vd.objects,md._read()})},md}listObjectsV2Query(qa,nd,od,ld,ud,dd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isString(od))throw new TypeError('continuationToken should be of type "string"');if(!isString(ld))throw new TypeError('delimiter should be of type "string"');if(!isNumber(ud))throw new TypeError('maxKeys should be of type "number"');if(!isString(dd))throw new TypeError('startAfter should be of type "string"');var pd=[];pd.push("list-type=2"),pd.push("encoding-type=url"),pd.push(`prefix=${uriEscape(nd)}`),pd.push(`delimiter=${uriEscape(ld)}`),od&&(od=uriEscape(od),pd.push(`continuation-token=${od}`)),dd&&(dd=uriEscape(dd),pd.push(`start-after=${dd}`)),ud&&(ud>=1e3&&(ud=1e3),pd.push(`max-keys=${ud}`)),pd.sort();var fd="";pd.length>0&&(fd=`${pd.join("&")}`);var md="GET",vd=getListObjectsV2Transformer();return this.makeRequest({method:md,bucketName:qa,query:fd},"",[200],"",!0,(Ad,Nd)=>{if(Ad)return vd.emit("error",Ad);pipesetup(Nd,vd)}),vd}listObjectsV2(qa,nd,od,ld){if(nd===void 0&&(nd=""),od===void 0&&(od=!1),ld===void 0&&(ld=""),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidPrefix(nd))throw new InvalidPrefixError(`Invalid prefix : ${nd}`);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isBoolean(od))throw new TypeError('recursive should be of type "boolean"');if(!isString(ld))throw new TypeError('startAfter should be of type "string"');var ud=od?"":"/",dd="",pd=[],fd=!1,md=streamBrowserify.Readable({objectMode:!0});return md._read=()=>{if(pd.length){md.push(pd.shift());return}if(fd)return md.push(null);this.listObjectsV2Query(qa,nd,dd,ud,1e3,ld).on("error",vd=>md.emit("error",vd)).on("data",vd=>{vd.isTruncated?dd=vd.nextContinuationToken:fd=!0,pd=vd.objects,md._read()})},md}removeObjects(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!Array.isArray(nd))throw new InvalidArgumentError("objectsList should be a list");if(!isFunction(od))throw new TypeError('callback should be of type "function"');const ld=1e3,ud="delete",dd="POST";let pd=nd.reduce((vd,Ad)=>(vd.list.push(Ad),vd.list.length===ld&&(vd.listOfList.push(vd.list),vd.list=[]),vd),{listOfList:[],list:[]});pd.list.length>0&&pd.listOfList.push(pd.list);const fd=new Encoder,md=[];index.eachSeries(pd.listOfList,(vd,Ad)=>{var Nd=[];vd.forEach(function(Fd){isObject(Fd)?Nd.push({Key:Fd.name,VersionId:Fd.versionId}):Nd.push({Key:Fd})});let Od={Delete:{Quiet:!0,Object:Nd}},Ld=new xml2js.Builder({headless:!0}).buildObject(Od);Ld=Buffer$4.from(fd.encode(Ld));const Gd={};Gd["Content-MD5"]=toMd5(Ld);let Ud;this.makeRequest({method:dd,bucketName:qa,query:ud,headers:Gd},Ld,[200],"",!0,(Fd,jd)=>{if(Fd)return Ad(Fd);pipesetup(jd,removeObjectsTransformer()).on("data",qd=>{Ud=qd}).on("error",qd=>Ad(qd,null)).on("end",()=>(md.push(Ud),Ad(null,Ud)))})},()=>{od(null,_.flatten(md))})}getBucketPolicy(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isFunction(nd))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:qa,query:"policy"},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);let pd=Buffer$4.from("");pipesetup(dd,getConcater()).on("data",fd=>pd=fd).on("error",nd).on("end",()=>{nd(null,pd.toString())})})}setBucketPolicy(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isString(nd))throw new InvalidBucketPolicyError(`Invalid bucket policy: ${nd} - must be "string"`);if(!isFunction(od))throw new TypeError('callback should be of type "function"');let ld="DELETE",ud="policy";nd&&(ld="PUT"),this.makeRequest({method:ld,bucketName:qa,query:ud},nd,[204],"",!1,od)}presignedUrl(qa,nd,od,ld,ud,dd,pd){if(this.anonymous)throw new AnonymousRequestError("Presigned "+qa+" url cannot be generated for anonymous requests");if(isFunction(dd)&&(pd=dd,dd=new Date),isFunction(ud)&&(pd=ud,ud={},dd=new Date),isFunction(ld)&&(pd=ld,ud={},ld=24*60*60*7,dd=new Date),!isNumber(ld))throw new TypeError('expires should be of type "number"');if(!isObject(ud))throw new TypeError('reqParams should be of type "object"');if(!isValidDate(dd))throw new TypeError('requestDate should be of type "Date" and valid');if(!isFunction(pd))throw new TypeError('callback should be of type "function"');var fd=queryString.stringify(ud);this.getBucketRegion(nd,(md,vd)=>{if(md)return pd(md);var Ad,Nd=this.getRequestOptions({method:qa,region:vd,bucketName:nd,objectName:od,query:fd});this.checkAndRefreshCreds();try{Ad=presignSignatureV4(Nd,this.accessKey,this.secretKey,this.sessionToken,vd,dd,ld)}catch(Od){return pd(Od)}pd(null,Ad)})}presignedGetObject(qa,nd,od,ld,ud,dd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);isFunction(ld)&&(dd=ld,ld={},ud=new Date);var pd=["response-content-type","response-content-language","response-expires","response-cache-control","response-content-disposition","response-content-encoding"];return pd.forEach(fd=>{if(ld!==void 0&&ld[fd]!==void 0&&!isString(ld[fd]))throw new TypeError(`response header ${fd} should be of type "string"`)}),this.presignedUrl("GET",qa,nd,od,ld,ud,dd)}presignedPutObject(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);return this.presignedUrl("PUT",qa,nd,od,ld)}newPostPolicy(){return new PostPolicy}presignedPostPolicy(qa,nd){if(this.anonymous)throw new AnonymousRequestError("Presigned POST policy cannot be generated for anonymous requests");if(!isObject(qa))throw new TypeError('postPolicy should be of type "object"');if(!isFunction(nd))throw new TypeError('cb should be of type "function"');this.getBucketRegion(qa.formData.bucket,(od,ld)=>{if(od)return nd(od);var ud=new Date,dd=makeDateLong(ud);if(this.checkAndRefreshCreds(),!qa.policy.expiration){var pd=new Date;pd.setSeconds(24*60*60*7),qa.setExpires(pd)}qa.policy.conditions.push(["eq","$x-amz-date",dd]),qa.formData["x-amz-date"]=dd,qa.policy.conditions.push(["eq","$x-amz-algorithm","AWS4-HMAC-SHA256"]),qa.formData["x-amz-algorithm"]="AWS4-HMAC-SHA256",qa.policy.conditions.push(["eq","$x-amz-credential",this.accessKey+"/"+getScope(ld,ud)]),qa.formData["x-amz-credential"]=this.accessKey+"/"+getScope(ld,ud),this.sessionToken&&(qa.policy.conditions.push(["eq","$x-amz-security-token",this.sessionToken]),qa.formData["x-amz-security-token"]=this.sessionToken);var fd=Buffer$4.from(JSON.stringify(qa.policy)).toString("base64");qa.formData.policy=fd;var md=postPresignSignatureV4(ld,ud,this.secretKey,fd);qa.formData["x-amz-signature"]=md;var vd={};vd.region=ld,vd.bucketName=qa.formData.bucket;var Ad=this.getRequestOptions(vd),Nd=this.port==80||this.port===443?"":`:${this.port.toString()}`,Od=`${Ad.protocol}//${Ad.host}${Nd}${Ad.path}`;nd(null,{postURL:Od,formData:qa.formData})})}completeMultipartUpload(qa,nd,od,ld,ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('uploadId should be of type "string"');if(!isObject(ld))throw new TypeError('etags should be of type "Array"');if(!isFunction(ud))throw new TypeError('cb should be of type "function"');if(!od)throw new InvalidArgumentError("uploadId cannot be empty");var dd="POST",pd=`uploadId=${uriEscape(od)}`,fd=[];ld.forEach(Ad=>{fd.push({Part:[{PartNumber:Ad.part},{ETag:Ad.etag}]})});var md={CompleteMultipartUpload:fd},vd=Xml(md);this.makeRequest({method:dd,bucketName:qa,objectName:nd,query:pd},vd,[200],"",!0,(Ad,Nd)=>{if(Ad)return ud(Ad);var Od=getCompleteMultipartTransformer();pipesetup(Nd,Od).on("error",kd=>ud(kd)).on("data",kd=>{if(kd.errCode)ud(new S3Error(kd.errMessage));else{const Ld={etag:kd.etag,versionId:getVersionId(Nd.headers)};ud(null,Ld)}})})}listIncompleteUploadsQuery(qa,nd,od,ld,ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isString(od))throw new TypeError('keyMarker should be of type "string"');if(!isString(ld))throw new TypeError('uploadIdMarker should be of type "string"');if(!isString(ud))throw new TypeError('delimiter should be of type "string"');var dd=[];dd.push(`prefix=${uriEscape(nd)}`),dd.push(`delimiter=${uriEscape(ud)}`),od&&(od=uriEscape(od),dd.push(`key-marker=${od}`)),ld&&dd.push(`upload-id-marker=${ld}`);var pd=1e3;dd.push(`max-uploads=${pd}`),dd.sort(),dd.unshift("uploads");var fd="";dd.length>0&&(fd=`${dd.join("&")}`);var md="GET",vd=getListMultipartTransformer();return this.makeRequest({method:md,bucketName:qa,query:fd},"",[200],"",!0,(Ad,Nd)=>{if(Ad)return vd.emit("error",Ad);pipesetup(Nd,vd)}),vd}findUploadId(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isFunction(od))throw new TypeError('cb should be of type "function"');var ld,ud=(dd,pd)=>{this.listIncompleteUploadsQuery(qa,nd,dd,pd,"").on("error",fd=>od(fd)).on("data",fd=>{if(fd.uploads.forEach(md=>{if(md.key===nd&&(!ld||md.initiated.getTime()>ld.initiated.getTime())){ld=md;return}}),fd.isTruncated){ud(fd.nextKeyMarker,fd.nextUploadIdMarker);return}if(ld)return od(null,ld.uploadId);od(null,void 0)})};ud("","")}setBucketNotification(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isObject(nd))throw new TypeError('notification config should be of type "Object"');if(!isFunction(od))throw new TypeError('callback should be of type "function"');var ld="PUT",ud="notification",dd=new xml2js.Builder({rootName:"NotificationConfiguration",renderOpts:{pretty:!1},headless:!0}),pd=dd.buildObject(nd);this.makeRequest({method:ld,bucketName:qa,query:ud},pd,[200],"",!1,od)}removeAllBucketNotification(qa,nd){this.setBucketNotification(qa,new NotificationConfig,nd)}getBucketNotification(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new TypeError('callback should be of type "function"');var od="GET",ld="notification";this.makeRequest({method:od,bucketName:qa,query:ld},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);var pd=getBucketNotificationTransformer(),fd;pipesetup(dd,pd).on("data",md=>fd=md).on("error",md=>nd(md)).on("end",()=>nd(null,fd))})}listenBucketNotification(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isString(nd))throw new TypeError("prefix must be of type string");if(!isString(od))throw new TypeError("suffix must be of type string");if(!Array.isArray(ld))throw new TypeError("events must be of type Array");let ud=new NotificationPoller(this,qa,nd,od,ld);return ud.start(),ud}getBucketVersioning(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new InvalidArgumentError('callback should be of type "function"');var od="GET",ld="versioning";this.makeRequest({method:od,bucketName:qa,query:ld},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);let pd=Buffer$4.from("");pipesetup(dd,bucketVersioningTransformer()).on("data",fd=>{pd=fd}).on("error",nd).on("end",()=>{nd(null,pd)})})}setBucketVersioning(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!Object.keys(nd).length)throw new InvalidArgumentError('versionConfig should be of type "object"');if(!isFunction(od))throw new TypeError('callback should be of type "function"');var ld="PUT",ud="versioning",dd=new xml2js.Builder({rootName:"VersioningConfiguration",renderOpts:{pretty:!1},headless:!0}),pd=dd.buildObject(nd);this.makeRequest({method:ld,bucketName:qa,query:ud},pd,[200],"",!1,od)}setTagging(qa){const{bucketName:nd,objectName:od,tags:ld,putOpts:ud={},cb:dd}=qa,pd="PUT";let fd="tagging";ud&&ud.versionId&&(fd=`${fd}&versionId=${ud.versionId}`);const md=[];for(const[Gd,Ud]of Object.entries(ld))md.push({Key:Gd,Value:Ud});const vd={Tagging:{TagSet:{Tag:md}}},Ad=new Encoder,Nd={};let kd=new xml2js.Builder({headless:!0,renderOpts:{pretty:!1}}).buildObject(vd);kd=Buffer$4.from(Ad.encode(kd)),Nd["Content-MD5"]=toMd5(kd);const Ld={method:pd,bucketName:nd,query:fd,headers:Nd};od&&(Ld.objectName=od),Nd["Content-MD5"]=toMd5(kd),this.makeRequest(Ld,kd,[200],"",!1,dd)}setBucketTagging(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isObject(nd))throw new InvalidArgumentError('tags should be of type "object"');if(Object.keys(nd).length>10)throw new InvalidArgumentError('maximum tags allowed is 10"');if(!isFunction(od))throw new InvalidArgumentError('callback should be of type "function"');return this.setTagging({bucketName:qa,tags:nd,cb:od})}setObjectTagging(qa,nd,od,ld={},ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidBucketNameError("Invalid object name: "+nd);if(isFunction(ld)&&(ud=ld,ld={}),!isObject(od))throw new InvalidArgumentError('tags should be of type "object"');if(Object.keys(od).length>10)throw new InvalidArgumentError('Maximum tags allowed is 10"');if(!isFunction(ud))throw new TypeError('callback should be of type "function"');return this.setTagging({bucketName:qa,objectName:nd,tags:od,putOpts:ld,cb:ud})}removeTagging({bucketName:qa,objectName:nd,removeOpts:od,cb:ld}){const ud="DELETE";let dd="tagging";od&&Object.keys(od).length&&od.versionId&&(dd=`${dd}&versionId=${od.versionId}`);const pd={method:ud,bucketName:qa,objectName:nd,query:dd};nd&&(pd.objectName=nd),this.makeRequest(pd,"",[200,204],"",!0,ld)}removeBucketTagging(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:qa,cb:nd})}removeObjectTagging(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidBucketNameError("Invalid object name: "+nd);if(isFunction(od)&&(ld=od,od={}),od&&Object.keys(od).length&&!isObject(od))throw new InvalidArgumentError('removeOpts should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:qa,objectName:nd,removeOpts:od,cb:ld})}getBucketTagging(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);const ud={method:"GET",bucketName:qa,query:"tagging"};this.makeRequest(ud,"",[200],"",!0,(dd,pd)=>{var fd=getTagsTransformer();if(dd)return nd(dd);let md;pipesetup(pd,fd).on("data",vd=>md=vd).on("error",vd=>nd(vd)).on("end",()=>nd(null,md))})}getObjectTagging(qa,nd,od={},ld=()=>!1){const ud="GET";let dd="tagging";if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidBucketNameError("Invalid object name: "+nd);if(isFunction(od)&&(ld=od,od={}),!isObject(od))throw new InvalidArgumentError('getOpts should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');od&&od.versionId&&(dd=`${dd}&versionId=${od.versionId}`);const pd={method:ud,bucketName:qa,query:dd};nd&&(pd.objectName=nd),this.makeRequest(pd,"",[200],"",!0,(fd,md)=>{const vd=getTagsTransformer();if(fd)return ld(fd);let Ad;pipesetup(md,vd).on("data",Nd=>Ad=Nd).on("error",Nd=>ld(Nd)).on("end",()=>ld(null,Ad))})}applyBucketLifecycle(qa,nd,od){const ld="PUT",ud="lifecycle",dd=new Encoder,pd={};let md=new xml2js.Builder({rootName:"LifecycleConfiguration",headless:!0,renderOpts:{pretty:!1}}).buildObject(nd);md=Buffer$4.from(dd.encode(md));const vd={method:ld,bucketName:qa,query:ud,headers:pd};pd["Content-MD5"]=toMd5(md),this.makeRequest(vd,md,[200],"",!1,od)}removeBucketLifecycle(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);this.makeRequest({method:"DELETE",bucketName:qa,query:"lifecycle"},"",[204],"",!1,nd)}setBucketLifecycle(qa,nd=null,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);_.isEmpty(nd)?this.removeBucketLifecycle(qa,od):this.applyBucketLifecycle(qa,nd,od)}getBucketLifecycle(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);const ud={method:"GET",bucketName:qa,query:"lifecycle"};this.makeRequest(ud,"",[200],"",!0,(dd,pd)=>{const fd=lifecycleTransformer();if(dd)return nd(dd);let md;pipesetup(pd,fd).on("data",vd=>md=vd).on("error",vd=>nd(vd)).on("end",()=>nd(null,md))})}setObjectLockConfig(qa,nd={},od){const ld=[RETENTION_MODES.COMPLIANCE,RETENTION_MODES.GOVERNANCE],ud=[RETENTION_VALIDITY_UNITS.DAYS,RETENTION_VALIDITY_UNITS.YEARS];if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(nd.mode&&!ld.includes(nd.mode))throw new TypeError(`lockConfigOpts.mode should be one of ${ld}`);if(nd.unit&&!ud.includes(nd.unit))throw new TypeError(`lockConfigOpts.unit should be one of ${ud}`);if(nd.validity&&!isNumber(nd.validity))throw new TypeError("lockConfigOpts.validity should be a number");const dd="PUT",pd="object-lock";let fd={ObjectLockEnabled:"Enabled"};const md=Object.keys(nd);if(md.length>0){if(_.difference(md,["unit","mode","validity"]).length!==0)throw new TypeError("lockConfigOpts.mode,lockConfigOpts.unit,lockConfigOpts.validity all the properties should be specified.");fd.Rule={DefaultRetention:{}},nd.mode&&(fd.Rule.DefaultRetention.Mode=nd.mode),nd.unit===RETENTION_VALIDITY_UNITS.DAYS?fd.Rule.DefaultRetention.Days=nd.validity:nd.unit===RETENTION_VALIDITY_UNITS.YEARS&&(fd.Rule.DefaultRetention.Years=nd.validity)}const Ad=new xml2js.Builder({rootName:"ObjectLockConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(fd),Nd={};Nd["Content-MD5"]=toMd5(Ad),this.makeRequest({method:dd,bucketName:qa,query:pd,headers:Nd},Ad,[200],"",!1,od)}getObjectLockConfig(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:qa,query:"object-lock"},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);let pd=Buffer$4.from("");pipesetup(dd,objectLockTransformer()).on("data",fd=>{pd=fd}).on("error",nd).on("end",()=>{nd(null,pd)})})}putObjectRetention(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isObject(od)){if(od.governanceBypass&&!isBoolean(od.governanceBypass))throw new InvalidArgumentError("Invalid value for governanceBypass",od.governanceBypass);if(od.mode&&![RETENTION_MODES.COMPLIANCE,RETENTION_MODES.GOVERNANCE].includes(od.mode))throw new InvalidArgumentError("Invalid object retention mode ",od.mode);if(od.retainUntilDate&&!isString(od.retainUntilDate))throw new InvalidArgumentError("Invalid value for retainUntilDate",od.retainUntilDate);if(od.versionId&&!isString(od.versionId))throw new InvalidArgumentError("Invalid value for versionId",od.versionId)}else throw new InvalidArgumentError('retentionOpts should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');const ud="PUT";let dd="retention";const pd={};od.governanceBypass&&(pd["X-Amz-Bypass-Governance-Retention"]=!0);const fd=new xml2js.Builder({rootName:"Retention",renderOpts:{pretty:!1},headless:!0}),md={};od.mode&&(md.Mode=od.mode),od.retainUntilDate&&(md.RetainUntilDate=od.retainUntilDate),od.versionId&&(dd+=`&versionId=${od.versionId}`);let vd=fd.buildObject(md);pd["Content-MD5"]=toMd5(vd),this.makeRequest({method:ud,bucketName:qa,objectName:nd,query:dd,headers:pd},vd,[200,204],"",!1,ld)}getObjectRetention(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isObject(od)){if(od.versionId&&!isString(od.versionId))throw new InvalidArgumentError('VersionID should be of type "string"')}else throw new InvalidArgumentError('callback should be of type "object"');if(ld&&!isFunction(ld))throw new InvalidArgumentError('callback should be of type "function"');const ud="GET";let dd="retention";od.versionId&&(dd+=`&versionId=${od.versionId}`),this.makeRequest({method:ud,bucketName:qa,objectName:nd,query:dd},"",[200],"",!0,(pd,fd)=>{if(pd)return ld(pd);let md=Buffer$4.from("");pipesetup(fd,objectRetentionTransformer()).on("data",vd=>{md=vd}).on("error",ld).on("end",()=>{ld(null,md)})})}setBucketEncryption(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(isFunction(nd)&&(od=nd,nd=null),!_.isEmpty(nd)&&nd.Rule.length>1)throw new InvalidArgumentError("Invalid Rule length. Only one rule is allowed.: "+nd.Rule);if(od&&!isFunction(od))throw new TypeError('callback should be of type "function"');let ld=nd;_.isEmpty(nd)&&(ld={Rule:[{ApplyServerSideEncryptionByDefault:{SSEAlgorithm:"AES256"}}]});let ud="PUT",dd="encryption",fd=new xml2js.Builder({rootName:"ServerSideEncryptionConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(ld);const md={};md["Content-MD5"]=toMd5(fd),this.makeRequest({method:ud,bucketName:qa,query:dd,headers:md},fd,[200],"",!1,od)}getBucketEncryption(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:qa,query:"encryption"},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);let pd=Buffer$4.from("");pipesetup(dd,bucketEncryptionTransformer()).on("data",fd=>{pd=fd}).on("error",nd).on("end",()=>{nd(null,pd)})})}removeBucketEncryption(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:qa,query:"encryption"},"",[204],"",!1,nd)}getObjectLegalHold(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isFunction(od)&&(ld=od,od={}),isObject(od)){if(Object.keys(od).length>0&&od.versionId&&!isString(od.versionId))throw new TypeError("versionId should be of type string.:",od.versionId)}else throw new TypeError('getOpts should be of type "Object"');if(!isFunction(ld))throw new InvalidArgumentError('callback should be of type "function"');const ud="GET";let dd="legal-hold";od.versionId&&(dd+=`&versionId=${od.versionId}`),this.makeRequest({method:ud,bucketName:qa,objectName:nd,query:dd},"",[200],"",!0,(pd,fd)=>{if(pd)return ld(pd);let md=Buffer$4.from("");pipesetup(fd,objectLegalHoldTransformer()).on("data",vd=>{md=vd}).on("error",ld).on("end",()=>{ld(null,md)})})}setObjectLegalHold(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);const ud={status:LEGAL_HOLD_STATUS.ENABLED};if(isFunction(od)&&(ld=od,od=ud),isObject(od)){if(![LEGAL_HOLD_STATUS.ENABLED,LEGAL_HOLD_STATUS.DISABLED].includes(od.status))throw new TypeError("Invalid status: "+od.status);if(od.versionId&&!od.versionId.length)throw new TypeError("versionId should be of type string.:"+od.versionId)}else throw new TypeError('setOpts should be of type "Object"');if(!isFunction(ld))throw new InvalidArgumentError('callback should be of type "function"');_.isEmpty(od)&&(od={defaultOpts:ud});const dd="PUT";let pd="legal-hold";od.versionId&&(pd+=`&versionId=${od.versionId}`);let fd={Status:od.status};const vd=new xml2js.Builder({rootName:"LegalHold",renderOpts:{pretty:!1},headless:!0}).buildObject(fd),Ad={};Ad["Content-MD5"]=toMd5(vd),this.makeRequest({method:dd,bucketName:qa,objectName:nd,query:pd,headers:Ad},vd,[200],"",!1,ld)}uploadPartCopy(qa,nd){const{bucketName:od,objectName:ld,uploadID:ud,partNumber:dd,headers:pd}=qa,fd="PUT";let md=`uploadId=${ud}&partNumber=${dd}`;const vd={method:fd,bucketName:od,objectName:ld,query:md,headers:pd};return this.makeRequest(vd,"",[200],"",!0,(Ad,Nd)=>{let Od=Buffer$4.from("");if(Ad)return nd(Ad);pipesetup(Nd,uploadPartTransformer()).on("data",kd=>{Od=kd}).on("error",nd).on("end",()=>{let kd={etag:sanitizeETag(Od.ETag),key:ld,part:dd};nd(null,kd)})})}composeObject(qa={},nd=[],od){const ld=this,ud=nd.length;if(!Array.isArray(nd))throw new InvalidArgumentError("sourceConfig should an array of CopySourceOptions ");if(!(qa instanceof CopyDestinationOptions))throw new InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(ud<1||ud>PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new InvalidArgumentError(`"There must be as least one and up to ${PART_CONSTRAINTS.MAX_PARTS_COUNT} source objects.`);if(!isFunction(od))throw new TypeError('callback should be of type "function"');for(let Ad=0;Ad{let Nd={};return _.isEmpty(Ad.VersionID)||(Nd={versionId:Ad.VersionID}),Nd},pd=[];let fd=0,md=0;const vd=nd.map(Ad=>ld.statObject(Ad.Bucket,Ad.Object,dd(Ad)));return Promise.all(vd).then(Ad=>{const Nd=Ad.map((Ud,Fd)=>{const jd=nd[Fd];let qd=Ud.size;if(jd.MatchRange){const zd=jd.Start,Yd=jd.End;if(Yd>=qd||zd<0)throw new InvalidArgumentError(`CopySrcOptions ${Fd} has invalid segment-to-copy [${zd}, ${Yd}] (size is ${qd})`);qd=Yd-zd+1}if(qdPART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE)throw new InvalidArgumentError(`Cannot compose an object of size ${fd} (> 5TiB)`);if(pd[Fd]=qd,md+=partsRequired(qd),md>PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new InvalidArgumentError(`Your proposed compose object requires more than ${PART_CONSTRAINTS.MAX_PARTS_COUNT} parts`);return Ud});if(md===1&&fd<=PART_CONSTRAINTS.MAX_PART_SIZE||fd===0)return this.copyObject(nd[0],qa,od);for(let Ud=0;UdcalculateEvenSplits(pd[Fd],nd[Fd]));function kd(Ud){const Fd=[];return Od.forEach((jd,qd)=>{const{startIndex:zd,endIndex:Yd,objInfo:Jd}=jd;let yf=qd+1;const Xd=Array.from(zd),pf=nd[qd].getHeaders();Xd.forEach((mf,Tf)=>{let vf=Yd[Tf];const Af=`${Jd.Bucket}/${Jd.Object}`;pf["x-amz-copy-source"]=`${Af}`,pf["x-amz-copy-source-range"]=`bytes=${mf}-${vf}`;const Sf={bucketName:qa.Bucket,objectName:qa.Object,uploadID:Ud,partNumber:yf,headers:pf,sourceObj:Af};Fd.push(Sf)})}),Fd}const Ld=Ud=>{const Fd=kd(Ud);index.map(Fd,ld.uploadPartCopy.bind(ld),(jd,qd)=>{if(jd){this.abortMultipartUpload(qa.Bucket,qa.Object,Ud).then(()=>od(),Yd=>od(Yd));return}const zd=qd.map(Yd=>({etag:Yd.etag,part:Yd.part}));return ld.completeMultipartUpload(qa.Bucket,qa.Object,Ud,zd,od)})},Gd=qa.getHeaders();ld.initiateNewMultipartUpload(qa.Bucket,qa.Object,Gd).then(Ud=>{Ld(Ud)},Ud=>{od(Ud,null)})}).catch(Ad=>{od(Ad,null)})}selectObjectContent(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(_.isEmpty(od))throw new TypeError("valid select configuration is required");if(!isString(od.expression))throw new TypeError('sqlExpression should be of type "string"');if(_.isEmpty(od.inputSerialization))throw new TypeError("inputSerialization is required");if(!isObject(od.inputSerialization))throw new TypeError('inputSerialization should be of type "object"');if(_.isEmpty(od.outputSerialization))throw new TypeError("outputSerialization is required");if(!isObject(od.outputSerialization))throw new TypeError('outputSerialization should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');const ud="POST";let dd="select";dd+="&select-type=2";const pd=[{Expression:od.expression},{ExpressionType:od.expressionType||"SQL"},{InputSerialization:[od.inputSerialization]},{OutputSerialization:[od.outputSerialization]}];od.requestProgress&&pd.push({RequestProgress:od.requestProgress}),od.scanRange&&pd.push({ScanRange:od.scanRange});const md=new xml2js.Builder({rootName:"SelectObjectContentRequest",renderOpts:{pretty:!1},headless:!0}).buildObject(pd);this.makeRequest({method:ud,bucketName:qa,objectName:nd,query:dd},md,[200],"",!0,(vd,Ad)=>{if(vd)return ld(vd);let Nd;pipesetup(Ad,selectObjectContentTransformer()).on("data",Od=>{Nd=parseSelectObjectContentResponse(Od)}).on("error",ld).on("end",()=>{ld(null,Nd)})})}}Client.prototype.makeBucket=promisify(Client.prototype.makeBucket);Client.prototype.bucketExists=promisify(Client.prototype.bucketExists);Client.prototype.getObject=promisify(Client.prototype.getObject);Client.prototype.getPartialObject=promisify(Client.prototype.getPartialObject);Client.prototype.fGetObject=promisify(Client.prototype.fGetObject);Client.prototype.putObject=promisify(Client.prototype.putObject);Client.prototype.fPutObject=promisify(Client.prototype.fPutObject);Client.prototype.copyObject=promisify(Client.prototype.copyObject);Client.prototype.removeObjects=promisify(Client.prototype.removeObjects);Client.prototype.presignedUrl=promisify(Client.prototype.presignedUrl);Client.prototype.presignedGetObject=promisify(Client.prototype.presignedGetObject);Client.prototype.presignedPutObject=promisify(Client.prototype.presignedPutObject);Client.prototype.presignedPostPolicy=promisify(Client.prototype.presignedPostPolicy);Client.prototype.getBucketNotification=promisify(Client.prototype.getBucketNotification);Client.prototype.setBucketNotification=promisify(Client.prototype.setBucketNotification);Client.prototype.removeAllBucketNotification=promisify(Client.prototype.removeAllBucketNotification);Client.prototype.getBucketPolicy=promisify(Client.prototype.getBucketPolicy);Client.prototype.setBucketPolicy=promisify(Client.prototype.setBucketPolicy);Client.prototype.removeIncompleteUpload=promisify(Client.prototype.removeIncompleteUpload);Client.prototype.getBucketVersioning=promisify(Client.prototype.getBucketVersioning);Client.prototype.setBucketVersioning=promisify(Client.prototype.setBucketVersioning);Client.prototype.setBucketTagging=promisify(Client.prototype.setBucketTagging);Client.prototype.removeBucketTagging=promisify(Client.prototype.removeBucketTagging);Client.prototype.getBucketTagging=promisify(Client.prototype.getBucketTagging);Client.prototype.setObjectTagging=promisify(Client.prototype.setObjectTagging);Client.prototype.removeObjectTagging=promisify(Client.prototype.removeObjectTagging);Client.prototype.getObjectTagging=promisify(Client.prototype.getObjectTagging);Client.prototype.setBucketLifecycle=promisify(Client.prototype.setBucketLifecycle);Client.prototype.getBucketLifecycle=promisify(Client.prototype.getBucketLifecycle);Client.prototype.removeBucketLifecycle=promisify(Client.prototype.removeBucketLifecycle);Client.prototype.setObjectLockConfig=promisify(Client.prototype.setObjectLockConfig);Client.prototype.getObjectLockConfig=promisify(Client.prototype.getObjectLockConfig);Client.prototype.putObjectRetention=promisify(Client.prototype.putObjectRetention);Client.prototype.getObjectRetention=promisify(Client.prototype.getObjectRetention);Client.prototype.setBucketEncryption=promisify(Client.prototype.setBucketEncryption);Client.prototype.getBucketEncryption=promisify(Client.prototype.getBucketEncryption);Client.prototype.removeBucketEncryption=promisify(Client.prototype.removeBucketEncryption);Client.prototype.setObjectLegalHold=promisify(Client.prototype.setObjectLegalHold);Client.prototype.getObjectLegalHold=promisify(Client.prototype.getObjectLegalHold);Client.prototype.composeObject=promisify(Client.prototype.composeObject);Client.prototype.selectObjectContent=promisify(Client.prototype.selectObjectContent);Client.prototype.removeObject=callbackify(Client.prototype.removeObject);Client.prototype.statObject=callbackify(Client.prototype.statObject);Client.prototype.removeBucket=callbackify(Client.prototype.removeBucket);Client.prototype.listBuckets=callbackify(Client.prototype.listBuckets);Client.prototype.removeBucketReplication=callbackify(Client.prototype.removeBucketReplication);Client.prototype.setBucketReplication=callbackify(Client.prototype.setBucketReplication);Client.prototype.getBucketReplication=callbackify(Client.prototype.getBucketReplication);var __extends$3=function(){var Ra=function(qa,nd){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(od,ld){od.__proto__=ld}||function(od,ld){for(var ud in ld)ld.hasOwnProperty(ud)&&(od[ud]=ld[ud])},Ra(qa,nd)};return function(qa,nd){Ra(qa,nd);function od(){this.constructor=qa}qa.prototype=nd===null?Object.create(nd):(od.prototype=nd.prototype,new od)}}(),QiniuErrorName;(function(Ra){Ra.InvalidFile="InvalidFile",Ra.InvalidToken="InvalidToken",Ra.InvalidMetadata="InvalidMetadata",Ra.InvalidChunkSize="InvalidChunkSize",Ra.InvalidCustomVars="InvalidCustomVars",Ra.NotAvailableUploadHost="NotAvailableUploadHost",Ra.ReadCacheFailed="ReadCacheFailed",Ra.InvalidCacheData="InvalidCacheData",Ra.WriteCacheFailed="WriteCacheFailed",Ra.RemoveCacheFailed="RemoveCacheFailed",Ra.GetCanvasContextFailed="GetCanvasContextFailed",Ra.UnsupportedFileType="UnsupportedFileType",Ra.FileReaderReadFailed="FileReaderReadFailed",Ra.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",Ra.InvalidProgressEventTarget="InvalidProgressEventTarget",Ra.RequestError="RequestError"})(QiniuErrorName||(QiniuErrorName={}));var QiniuError=function(){function Ra(qa,nd){this.name=qa,this.message=nd,this.stack=new Error().stack}return Ra}(),QiniuRequestError=function(Ra){__extends$3(qa,Ra);function qa(nd,od,ld,ud){var dd=Ra.call(this,QiniuErrorName.RequestError,ld)||this;return dd.code=nd,dd.reqId=od,dd.isRequestError=!0,dd.data=ud,dd}return qa}(QiniuError),QiniuNetworkError=function(Ra){__extends$3(qa,Ra);function qa(nd,od){return od===void 0&&(od=""),Ra.call(this,0,od,nd)||this}return qa}(QiniuRequestError),Pool=function(){function Ra(qa,nd){this.runTask=qa,this.limit=nd,this.aborted=!1,this.queue=[],this.processing=[]}return Ra.prototype.enqueue=function(qa){var nd=this;return new Promise(function(od,ld){nd.queue.push({task:qa,resolve:od,reject:ld}),nd.check()})},Ra.prototype.run=function(qa){var nd=this;this.queue=this.queue.filter(function(od){return od!==qa}),this.processing.push(qa),this.runTask(qa.task).then(function(){nd.processing=nd.processing.filter(function(od){return od!==qa}),qa.resolve(),nd.check()},function(od){return qa.reject(od)})},Ra.prototype.check=function(){var qa=this;if(!this.aborted){var nd=this.processing.length,od=this.limit-nd;this.queue.slice(0,od).forEach(function(ld){qa.run(ld)})}},Ra.prototype.abort=function(){this.queue=[],this.aborted=!0},Ra}(),__extends$2=function(){var Ra=function(qa,nd){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(od,ld){od.__proto__=ld}||function(od,ld){for(var ud in ld)ld.hasOwnProperty(ud)&&(od[ud]=ld[ud])},Ra(qa,nd)};return function(qa,nd){Ra(qa,nd);function od(){this.constructor=qa}qa.prototype=nd===null?Object.create(nd):(od.prototype=nd.prototype,new od)}}(),__assign$6=function(){return __assign$6=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd"u")return"";var qa=Ra+"",nd="",od,ld,ud=0;od=ld=0,ud=qa.length;for(var dd=0;dd127&&pd<2048)fd=String.fromCharCode(pd>>6|192,pd&63|128);else if((pd&63488^55296)>0)fd=String.fromCharCode(pd>>12|224,pd>>6&63|128,pd&63|128);else{if((pd&64512^55296)>0)throw new RangeError("Unmatched trail surrogate at "+dd);var md=qa.charCodeAt(++dd);if((md&64512^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(dd-1));pd=((pd&1023)<<10)+(md&1023)+65536,fd=String.fromCharCode(pd>>18|240,pd>>12&63|128,pd>>6&63|128,pd&63|128)}fd!==null&&(ld>od&&(nd+=qa.slice(od,ld)),nd+=fd,od=ld=dd+1)}return ld>od&&(nd+=qa.slice(od,ud)),nd}function utf8Decode(Ra){var qa=[],nd=0,od=0,ld=0;for(Ra+="";nd>10&1023)),qa.push(String.fromCharCode(56320|od&1023))):qa.push(String.fromCharCode(od)),nd+=ld}return qa.join("")}function base64Encode(Ra){var qa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nd,od,ld,ud,dd,pd,fd,md,vd=0,Ad=0,Nd="",Od=[];if(!Ra)return Ra;Ra=utf8Encode(Ra+"");do nd=Ra.charCodeAt(vd++),od=Ra.charCodeAt(vd++),ld=Ra.charCodeAt(vd++),md=nd<<16|od<<8|ld,ud=md>>18&63,dd=md>>12&63,pd=md>>6&63,fd=md&63,Od[Ad++]=qa.charAt(ud)+qa.charAt(dd)+qa.charAt(pd)+qa.charAt(fd);while(vd>16&255,od=md>>8&255,ld=md&255,pd===64?Od[Ad++]=String.fromCharCode(nd):fd===64?Od[Ad++]=String.fromCharCode(nd,od):Od[Ad++]=String.fromCharCode(nd,od,ld);while(vd>>25)+qd|0,Yd+=(jd&qd|~jd&zd)+Fd[1]-389564586|0,Yd=(Yd<<12|Yd>>>20)+jd|0,zd+=(Yd&jd|~Yd&qd)+Fd[2]+606105819|0,zd=(zd<<17|zd>>>15)+Yd|0,qd+=(zd&Yd|~zd&jd)+Fd[3]-1044525330|0,qd=(qd<<22|qd>>>10)+zd|0,jd+=(qd&zd|~qd&Yd)+Fd[4]-176418897|0,jd=(jd<<7|jd>>>25)+qd|0,Yd+=(jd&qd|~jd&zd)+Fd[5]+1200080426|0,Yd=(Yd<<12|Yd>>>20)+jd|0,zd+=(Yd&jd|~Yd&qd)+Fd[6]-1473231341|0,zd=(zd<<17|zd>>>15)+Yd|0,qd+=(zd&Yd|~zd&jd)+Fd[7]-45705983|0,qd=(qd<<22|qd>>>10)+zd|0,jd+=(qd&zd|~qd&Yd)+Fd[8]+1770035416|0,jd=(jd<<7|jd>>>25)+qd|0,Yd+=(jd&qd|~jd&zd)+Fd[9]-1958414417|0,Yd=(Yd<<12|Yd>>>20)+jd|0,zd+=(Yd&jd|~Yd&qd)+Fd[10]-42063|0,zd=(zd<<17|zd>>>15)+Yd|0,qd+=(zd&Yd|~zd&jd)+Fd[11]-1990404162|0,qd=(qd<<22|qd>>>10)+zd|0,jd+=(qd&zd|~qd&Yd)+Fd[12]+1804603682|0,jd=(jd<<7|jd>>>25)+qd|0,Yd+=(jd&qd|~jd&zd)+Fd[13]-40341101|0,Yd=(Yd<<12|Yd>>>20)+jd|0,zd+=(Yd&jd|~Yd&qd)+Fd[14]-1502002290|0,zd=(zd<<17|zd>>>15)+Yd|0,qd+=(zd&Yd|~zd&jd)+Fd[15]+1236535329|0,qd=(qd<<22|qd>>>10)+zd|0,jd+=(qd&Yd|zd&~Yd)+Fd[1]-165796510|0,jd=(jd<<5|jd>>>27)+qd|0,Yd+=(jd&zd|qd&~zd)+Fd[6]-1069501632|0,Yd=(Yd<<9|Yd>>>23)+jd|0,zd+=(Yd&qd|jd&~qd)+Fd[11]+643717713|0,zd=(zd<<14|zd>>>18)+Yd|0,qd+=(zd&jd|Yd&~jd)+Fd[0]-373897302|0,qd=(qd<<20|qd>>>12)+zd|0,jd+=(qd&Yd|zd&~Yd)+Fd[5]-701558691|0,jd=(jd<<5|jd>>>27)+qd|0,Yd+=(jd&zd|qd&~zd)+Fd[10]+38016083|0,Yd=(Yd<<9|Yd>>>23)+jd|0,zd+=(Yd&qd|jd&~qd)+Fd[15]-660478335|0,zd=(zd<<14|zd>>>18)+Yd|0,qd+=(zd&jd|Yd&~jd)+Fd[4]-405537848|0,qd=(qd<<20|qd>>>12)+zd|0,jd+=(qd&Yd|zd&~Yd)+Fd[9]+568446438|0,jd=(jd<<5|jd>>>27)+qd|0,Yd+=(jd&zd|qd&~zd)+Fd[14]-1019803690|0,Yd=(Yd<<9|Yd>>>23)+jd|0,zd+=(Yd&qd|jd&~qd)+Fd[3]-187363961|0,zd=(zd<<14|zd>>>18)+Yd|0,qd+=(zd&jd|Yd&~jd)+Fd[8]+1163531501|0,qd=(qd<<20|qd>>>12)+zd|0,jd+=(qd&Yd|zd&~Yd)+Fd[13]-1444681467|0,jd=(jd<<5|jd>>>27)+qd|0,Yd+=(jd&zd|qd&~zd)+Fd[2]-51403784|0,Yd=(Yd<<9|Yd>>>23)+jd|0,zd+=(Yd&qd|jd&~qd)+Fd[7]+1735328473|0,zd=(zd<<14|zd>>>18)+Yd|0,qd+=(zd&jd|Yd&~jd)+Fd[12]-1926607734|0,qd=(qd<<20|qd>>>12)+zd|0,jd+=(qd^zd^Yd)+Fd[5]-378558|0,jd=(jd<<4|jd>>>28)+qd|0,Yd+=(jd^qd^zd)+Fd[8]-2022574463|0,Yd=(Yd<<11|Yd>>>21)+jd|0,zd+=(Yd^jd^qd)+Fd[11]+1839030562|0,zd=(zd<<16|zd>>>16)+Yd|0,qd+=(zd^Yd^jd)+Fd[14]-35309556|0,qd=(qd<<23|qd>>>9)+zd|0,jd+=(qd^zd^Yd)+Fd[1]-1530992060|0,jd=(jd<<4|jd>>>28)+qd|0,Yd+=(jd^qd^zd)+Fd[4]+1272893353|0,Yd=(Yd<<11|Yd>>>21)+jd|0,zd+=(Yd^jd^qd)+Fd[7]-155497632|0,zd=(zd<<16|zd>>>16)+Yd|0,qd+=(zd^Yd^jd)+Fd[10]-1094730640|0,qd=(qd<<23|qd>>>9)+zd|0,jd+=(qd^zd^Yd)+Fd[13]+681279174|0,jd=(jd<<4|jd>>>28)+qd|0,Yd+=(jd^qd^zd)+Fd[0]-358537222|0,Yd=(Yd<<11|Yd>>>21)+jd|0,zd+=(Yd^jd^qd)+Fd[3]-722521979|0,zd=(zd<<16|zd>>>16)+Yd|0,qd+=(zd^Yd^jd)+Fd[6]+76029189|0,qd=(qd<<23|qd>>>9)+zd|0,jd+=(qd^zd^Yd)+Fd[9]-640364487|0,jd=(jd<<4|jd>>>28)+qd|0,Yd+=(jd^qd^zd)+Fd[12]-421815835|0,Yd=(Yd<<11|Yd>>>21)+jd|0,zd+=(Yd^jd^qd)+Fd[15]+530742520|0,zd=(zd<<16|zd>>>16)+Yd|0,qd+=(zd^Yd^jd)+Fd[2]-995338651|0,qd=(qd<<23|qd>>>9)+zd|0,jd+=(zd^(qd|~Yd))+Fd[0]-198630844|0,jd=(jd<<6|jd>>>26)+qd|0,Yd+=(qd^(jd|~zd))+Fd[7]+1126891415|0,Yd=(Yd<<10|Yd>>>22)+jd|0,zd+=(jd^(Yd|~qd))+Fd[14]-1416354905|0,zd=(zd<<15|zd>>>17)+Yd|0,qd+=(Yd^(zd|~jd))+Fd[5]-57434055|0,qd=(qd<<21|qd>>>11)+zd|0,jd+=(zd^(qd|~Yd))+Fd[12]+1700485571|0,jd=(jd<<6|jd>>>26)+qd|0,Yd+=(qd^(jd|~zd))+Fd[3]-1894986606|0,Yd=(Yd<<10|Yd>>>22)+jd|0,zd+=(jd^(Yd|~qd))+Fd[10]-1051523|0,zd=(zd<<15|zd>>>17)+Yd|0,qd+=(Yd^(zd|~jd))+Fd[1]-2054922799|0,qd=(qd<<21|qd>>>11)+zd|0,jd+=(zd^(qd|~Yd))+Fd[8]+1873313359|0,jd=(jd<<6|jd>>>26)+qd|0,Yd+=(qd^(jd|~zd))+Fd[15]-30611744|0,Yd=(Yd<<10|Yd>>>22)+jd|0,zd+=(jd^(Yd|~qd))+Fd[6]-1560198380|0,zd=(zd<<15|zd>>>17)+Yd|0,qd+=(Yd^(zd|~jd))+Fd[13]+1309151649|0,qd=(qd<<21|qd>>>11)+zd|0,jd+=(zd^(qd|~Yd))+Fd[4]-145523070|0,jd=(jd<<6|jd>>>26)+qd|0,Yd+=(qd^(jd|~zd))+Fd[11]-1120210379|0,Yd=(Yd<<10|Yd>>>22)+jd|0,zd+=(jd^(Yd|~qd))+Fd[2]+718787259|0,zd=(zd<<15|zd>>>17)+Yd|0,qd+=(Yd^(zd|~jd))+Fd[9]-343485551|0,qd=(qd<<21|qd>>>11)+zd|0,Ud[0]=jd+Ud[0]|0,Ud[1]=qd+Ud[1]|0,Ud[2]=zd+Ud[2]|0,Ud[3]=Yd+Ud[3]|0}function ud(Ud){var Fd=[],jd;for(jd=0;jd<64;jd+=4)Fd[jd>>2]=Ud.charCodeAt(jd)+(Ud.charCodeAt(jd+1)<<8)+(Ud.charCodeAt(jd+2)<<16)+(Ud.charCodeAt(jd+3)<<24);return Fd}function dd(Ud){var Fd=[],jd;for(jd=0;jd<64;jd+=4)Fd[jd>>2]=Ud[jd]+(Ud[jd+1]<<8)+(Ud[jd+2]<<16)+(Ud[jd+3]<<24);return Fd}function pd(Ud){var Fd=Ud.length,jd=[1732584193,-271733879,-1732584194,271733878],qd,zd,Yd,Jd,yf,Xd;for(qd=64;qd<=Fd;qd+=64)ld(jd,ud(Ud.substring(qd-64,qd)));for(Ud=Ud.substring(qd-64),zd=Ud.length,Yd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],qd=0;qd>2]|=Ud.charCodeAt(qd)<<(qd%4<<3);if(Yd[qd>>2]|=128<<(qd%4<<3),qd>55)for(ld(jd,Yd),qd=0;qd<16;qd+=1)Yd[qd]=0;return Jd=Fd*8,Jd=Jd.toString(16).match(/(.*?)(.{0,8})$/),yf=parseInt(Jd[2],16),Xd=parseInt(Jd[1],16)||0,Yd[14]=yf,Yd[15]=Xd,ld(jd,Yd),jd}function fd(Ud){var Fd=Ud.length,jd=[1732584193,-271733879,-1732584194,271733878],qd,zd,Yd,Jd,yf,Xd;for(qd=64;qd<=Fd;qd+=64)ld(jd,dd(Ud.subarray(qd-64,qd)));for(Ud=qd-64>2]|=Ud[qd]<<(qd%4<<3);if(Yd[qd>>2]|=128<<(qd%4<<3),qd>55)for(ld(jd,Yd),qd=0;qd<16;qd+=1)Yd[qd]=0;return Jd=Fd*8,Jd=Jd.toString(16).match(/(.*?)(.{0,8})$/),yf=parseInt(Jd[2],16),Xd=parseInt(Jd[1],16)||0,Yd[14]=yf,Yd[15]=Xd,ld(jd,Yd),jd}function md(Ud){var Fd="",jd;for(jd=0;jd<4;jd+=1)Fd+=od[Ud>>jd*8+4&15]+od[Ud>>jd*8&15];return Fd}function vd(Ud){var Fd;for(Fd=0;FdYd?new ArrayBuffer(0):(Jd=Yd-zd,yf=new ArrayBuffer(Jd),Xd=new Uint8Array(yf),pf=new Uint8Array(this,zd,Jd),Xd.set(pf),yf)}}();function Ad(Ud){return/[\u0080-\uFFFF]/.test(Ud)&&(Ud=unescape(encodeURIComponent(Ud))),Ud}function Nd(Ud,Fd){var jd=Ud.length,qd=new ArrayBuffer(jd),zd=new Uint8Array(qd),Yd;for(Yd=0;Yd>2]|=Fd.charCodeAt(qd)<<(qd%4<<3);return this._finish(zd,jd),Yd=vd(this._hash),Ud&&(Yd=Ld(Yd)),this.reset(),Yd},Gd.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Gd.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Gd.prototype.setState=function(Ud){return this._buff=Ud.buff,this._length=Ud.length,this._hash=Ud.hash,this},Gd.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Gd.prototype._finish=function(Ud,Fd){var jd=Fd,qd,zd,Yd;if(Ud[jd>>2]|=128<<(jd%4<<3),jd>55)for(ld(this._hash,Ud),jd=0;jd<16;jd+=1)Ud[jd]=0;qd=this._length*8,qd=qd.toString(16).match(/(.*?)(.{0,8})$/),zd=parseInt(qd[2],16),Yd=parseInt(qd[1],16)||0,Ud[14]=zd,Ud[15]=Yd,ld(this._hash,Ud)},Gd.hash=function(Ud,Fd){return Gd.hashBinary(Ad(Ud),Fd)},Gd.hashBinary=function(Ud,Fd){var jd=pd(Ud),qd=vd(jd);return Fd?Ld(qd):qd},Gd.ArrayBuffer=function(){this.reset()},Gd.ArrayBuffer.prototype.append=function(Ud){var Fd=kd(this._buff.buffer,Ud),jd=Fd.length,qd;for(this._length+=Ud.byteLength,qd=64;qd<=jd;qd+=64)ld(this._hash,dd(Fd.subarray(qd-64,qd)));return this._buff=qd-64>2]|=Fd[zd]<<(zd%4<<3);return this._finish(qd,jd),Yd=vd(this._hash),Ud&&(Yd=Ld(Yd)),this.reset(),Yd},Gd.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Gd.ArrayBuffer.prototype.getState=function(){var Ud=Gd.prototype.getState.call(this);return Ud.buff=Od(Ud.buff),Ud},Gd.ArrayBuffer.prototype.setState=function(Ud){return Ud.buff=Nd(Ud.buff,!0),Gd.prototype.setState.call(this,Ud)},Gd.ArrayBuffer.prototype.destroy=Gd.prototype.destroy,Gd.ArrayBuffer.prototype._finish=Gd.prototype._finish,Gd.ArrayBuffer.hash=function(Ud,Fd){var jd=fd(new Uint8Array(Ud)),qd=vd(jd);return Fd?Ld(qd):qd},Gd})})(sparkMd5);var sparkMd5Exports=sparkMd5.exports;const SparkMD5=getDefaultExportFromCjs(sparkMd5Exports);var __assign$5=function(){return __assign$5=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]Ra.size)nd=Ra.size;else for(;Ra.size>nd*1e4;)nd*=2;for(var od=[],ld=Math.ceil(Ra.size/nd),ud=0;ud3?qa[1]:qa[0];if(!nd)throw new QiniuError(QiniuErrorName.InvalidToken,"missing assess key field.");var od=null;try{od=JSON.parse(urlSafeBase64Decode(qa[qa.length-1]))}catch{throw new QiniuError(QiniuErrorName.InvalidToken,"token parse failed.")}if(od==null)throw new QiniuError(QiniuErrorName.InvalidToken,"putPolicy is null.");if(od.scope==null)throw new QiniuError(QiniuErrorName.InvalidToken,"scope field is null.");var ld=od.scope.split(":")[0];if(!ld)throw new QiniuError(QiniuErrorName.InvalidToken,"resolve bucketName failed.");return{assessKey:nd,bucketName:ld,scope:od.scope}}function createObjectURL(Ra){var qa=window.URL||window.webkitURL||window.mozURL;return qa.createObjectURL(Ra)}var _a,region={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},regionUphostMap=(_a={},_a[region.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},_a[region.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},_a[region.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},_a[region.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},_a[region.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},_a[region.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},_a),stringifyPrimitive=function(Ra){switch(typeof Ra){case"string":return Ra;case"boolean":return Ra?"true":"false";case"number":return isFinite(Ra)?Ra:"";default:return""}},encode=function(Ra,qa,nd,od){return qa=qa||"&",nd=nd||"=",Ra===null&&(Ra=void 0),typeof Ra=="object"?Object.keys(Ra).map(function(ld){var ud=encodeURIComponent(stringifyPrimitive(ld))+nd;return Array.isArray(Ra[ld])?Ra[ld].map(function(dd){return ud+encodeURIComponent(stringifyPrimitive(dd))}).join(qa):ud+encodeURIComponent(stringifyPrimitive(Ra[ld]))}).filter(Boolean).join(qa):od?encodeURIComponent(stringifyPrimitive(od))+nd+encodeURIComponent(stringifyPrimitive(Ra)):""},stringify;stringify=encode;var __assign$4=function(){return __assign$4=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]0?[2,od+"://"+nd.uphost[0]]:(ld=getPutPolicy(qa),[4,getUpHosts(ld.assessKey,ld.bucketName,od)]);case 1:return ud=pd.sent(),dd=ud.data.up.acc.main,[2,od+"://"+dd[0]]}})})}var __assign$3=function(){return __assign$3=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]0)&&!(ld=od.next()).done;)ud.push(ld.value)}catch(pd){dd={error:pd}}finally{try{ld&&!ld.done&&(nd=od.return)&&nd.call(od)}finally{if(dd)throw dd.error}}return ud},__spread$3=function(){for(var Ra=[],qa=0;qa1e4*GB)return this.handleError(new QiniuError(QiniuErrorName.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!isCustomVarsValid(this.putExtra.customVars))return this.handleError(new QiniuError(QiniuErrorName.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!isMetaDataValid(this.putExtra.metadata))return this.handleError(new QiniuError(QiniuErrorName.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];ud.label=1;case 1:return ud.trys.push([1,4,,5]),this.uploadAt=new Date().getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return ud.sent(),[4,this.run()];case 3:return qa=ud.sent(),this.onComplete(qa.data),this.checkAndUnfreezeHost(),this.sendLog(qa.reqId,200),[2];case 4:return nd=ud.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(nd),nd instanceof QiniuRequestError&&(this.sendLog(nd.reqId,nd.code),this.checkAndFreezeHost(nd),od=++this.retryCount<=this.config.retryCount,ld=RETRY_CODE_LIST.includes(nd.code),ld&&od)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(nd),[3,5]));case 5:return[2]}})})},Ra.prototype.clear=function(){this.xhrList.forEach(function(qa){qa.onreadystatechange=null,qa.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},Ra.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},Ra.prototype.addXhr=function(qa){this.xhrList.push(qa)},Ra.prototype.sendLog=function(qa,nd){var od,ld;this.logger.report({code:nd,reqId:qa,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:getPortFromUrl((od=this.uploadHost)===null||od===void 0?void 0:od.getUrl()),host:getDomainFromUrl((ld=this.uploadHost)===null||ld===void 0?void 0:ld.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor((new Date().getTime()-this.uploadAt)/1e3)})},Ra.prototype.getProgressInfoItem=function(qa,nd,od){return __assign$3({size:nd,loaded:qa,percent:qa/nd*100},od==null?{}:{fromCache:od})},Ra}(),__extends$1=function(){var Ra=function(qa,nd){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(od,ld){od.__proto__=ld}||function(od,ld){for(var ud in ld)ld.hasOwnProperty(ud)&&(od[ud]=ld[ud])},Ra(qa,nd)};return function(qa,nd){Ra(qa,nd);function od(){this.constructor=qa}qa.prototype=nd===null?Object.create(nd):(od.prototype=nd.prototype,new od)}}(),__assign$2=function(){return __assign$2=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]1024)throw new QiniuError(QiniuErrorName.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:fd.sent(),nd=new Pool(function(md){return __awaiter$4(pd,void 0,void 0,function(){return __generator$4(this,function(vd){switch(vd.label){case 0:if(this.aborted)throw nd.abort(),new Error("pool is aborted");return[4,this.uploadChunk(md)];case 1:return vd.sent(),[2]}})})},this.config.concurrentRequestLimit),od=null,ld=this.getLocalKey(),ud=this.chunks.map(function(md,vd){return nd.enqueue({chunk:md,index:vd})}),fd.label=2;case 2:return fd.trys.push([2,5,,6]),[4,Promise.all(ud)];case 3:return fd.sent(),[4,this.mkFileReq()];case 4:return od=fd.sent(),[3,6];case 5:throw dd=fd.sent(),dd instanceof QiniuRequestError&&(dd.code===612||dd.code===400)&&removeLocalFileInfo(ld,this.logger),dd;case 6:return removeLocalFileInfo(ld,this.logger),[2,od]}})})},qa.prototype.uploadChunk=function(nd){return __awaiter$4(this,void 0,void 0,function(){var od,ld,ud,dd,pd,fd,md,vd,Ad,Nd=this;return __generator$4(this,function(Od){switch(Od.label){case 0:return od=nd.index,ld=nd.chunk,ud=this.cachedUploadedList[od],this.logger.info("upload part "+od+", cache:",ud),dd=this.config.checkByMD5,pd=function(){Nd.usedCacheList[od]=!0,Nd.updateChunkProgress(ld.size,od),Nd.uploadedList[od]=ud,Nd.updateLocalCache()},ud&&!dd?(pd(),[2]):[4,computeMd5(ld)];case 1:return fd=Od.sent(),this.logger.info("computed part md5.",fd),ud&&fd===ud.md5?(pd(),[2]):(this.usedCacheList[od]=!1,md=function(kd){Nd.updateChunkProgress(kd.loaded,od)},vd={body:ld,md5:this.config.checkByServer?fd:void 0,onProgress:md,onCreate:function(kd){return Nd.addXhr(kd)}},this.logger.info("part "+od+" start uploading."),[4,uploadChunk(this.token,this.key,nd.index+1,this.getUploadInfo(),vd)]);case 2:return Ad=Od.sent(),this.logger.info("part "+od+" upload completed."),md({loaded:ld.size,total:ld.size}),this.uploadedList[od]={etag:Ad.data.etag,md5:Ad.data.md5,size:ld.size},this.updateLocalCache(),[2]}})})},qa.prototype.mkFileReq=function(){return __awaiter$4(this,void 0,void 0,function(){var nd,od,ld=this;return __generator$4(this,function(ud){switch(ud.label){case 0:return nd=__assign$2(__assign$2(__assign$2({parts:this.uploadedList.map(function(dd,pd){return{etag:dd.etag,partNumber:pd+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",nd),[4,uploadComplete(this.token,this.key,this.getUploadInfo(),{onCreate:function(dd){return ld.addXhr(dd)},body:JSON.stringify(nd)})];case 1:return od=ud.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,od]}})})},qa.prototype.initBeforeUploadChunks=function(){return __awaiter$4(this,void 0,void 0,function(){var nd,od,ld;return __generator$4(this,function(ud){switch(ud.label){case 0:return this.uploadedList=[],this.usedCacheList=[],nd=getLocalFileInfo(this.getLocalKey(),this.logger),nd?[3,2]:(this.logger.info("init upload parts from api."),[4,initUploadParts(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return od=ud.sent(),this.logger.info("initd upload parts of id: "+od.data.uploadId+"."),this.uploadId=od.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:ld=["resume upload parts from local cache,","total "+nd.data.length+" part,","id is "+nd.id+"."],this.logger.info(ld.join(" ")),this.cachedUploadedList=nd.data,this.uploadId=nd.id,ud.label=3;case 3:return this.chunks=getChunks(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(dd){return 0})},this.notifyResumeProgress(),[2]}})})},qa.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},qa.prototype.getLocalKey=function(){return createLocalKey(this.file.name,this.key,this.file.size)},qa.prototype.updateLocalCache=function(){setLocalFileInfo(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},qa.prototype.updateChunkProgress=function(nd,od){this.loaded.chunks[od]=nd,this.notifyResumeProgress()},qa.prototype.updateMkFileProgress=function(nd){this.loaded.mkFileProgress=nd,this.notifyResumeProgress()},qa.prototype.notifyResumeProgress=function(){var nd=this;this.progress={total:this.getProgressInfoItem(sum(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map(function(od,ld){var ud=nd.usedCacheList[ld];return nd.getProgressInfoItem(nd.loaded.chunks[ld],od.size,ud)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},qa}(Base),__awaiter$3=function(Ra,qa,nd,od){function ld(ud){return ud instanceof nd?ud:new nd(function(dd){dd(ud)})}return new(nd||(nd=Promise))(function(ud,dd){function pd(vd){try{md(od.next(vd))}catch(Ad){dd(Ad)}}function fd(vd){try{md(od.throw(vd))}catch(Ad){dd(Ad)}}function md(vd){vd.done?ud(vd.value):ld(vd.value).then(pd,fd)}md((od=od.apply(Ra,qa||[])).next())})},__generator$3=function(Ra,qa){var nd={label:0,sent:function(){if(ud[0]&1)throw ud[1];return ud[1]},trys:[],ops:[]},od,ld,ud,dd;return dd={next:pd(0),throw:pd(1),return:pd(2)},typeof Symbol=="function"&&(dd[Symbol.iterator]=function(){return this}),dd;function pd(md){return function(vd){return fd([md,vd])}}function fd(md){if(od)throw new TypeError("Generator is already executing.");for(;nd;)try{if(od=1,ld&&(ud=md[0]&2?ld.return:md[0]?ld.throw||((ud=ld.return)&&ud.call(ld),0):ld.next)&&!(ud=ud.call(ld,md[1])).done)return ud;switch(ld=0,ud&&(md=[md[0]&2,ud.value]),md[0]){case 0:case 1:ud=md;break;case 4:return nd.label++,{value:md[1],done:!1};case 5:nd.label++,ld=md[1],md=[0];continue;case 7:md=nd.ops.pop(),nd.trys.pop();continue;default:if(ud=nd.trys,!(ud=ud.length>0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]>>1^3988292384:od>>>=1;qa[nd]=od}return qa},Ra.prototype.append=function(qa){for(var nd=this.crc,od=0;od>>8^this.table[(nd^qa[od])&255];this.crc=nd},Ra.prototype.compute=function(){return(this.crc^-1)>>>0},Ra.prototype.readAsUint8Array=function(qa){return __awaiter$3(this,void 0,void 0,function(){var nd;return __generator$3(this,function(od){switch(od.label){case 0:return typeof qa.arrayBuffer!="function"?[3,2]:(nd=Uint8Array.bind,[4,qa.arrayBuffer()]);case 1:return[2,new(nd.apply(Uint8Array,[void 0,od.sent()]))];case 2:return[2,new Promise(function(ld,ud){var dd=new FileReader;dd.onload=function(){if(dd.result==null){ud();return}if(typeof dd.result=="string"){ud();return}ld(new Uint8Array(dd.result))},dd.readAsArrayBuffer(qa)})]}})})},Ra.prototype.file=function(qa){return __awaiter$3(this,void 0,void 0,function(){var nd,od,ld,ud,dd,pd;return __generator$3(this,function(fd){switch(fd.label){case 0:return qa.size<=MB?(nd=this.append,[4,this.readAsUint8Array(qa)]):[3,2];case 1:return nd.apply(this,[fd.sent()]),[2,this.compute()];case 2:od=Math.ceil(qa.size/MB),ld=0,fd.label=3;case 3:return ld0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]0&&reportV3(Ra,qa,nd-1)};var ld=[qa.code||"",qa.reqId||"",qa.host||"",qa.remoteIp||"",qa.port||"",qa.duration||"",qa.time||"",qa.bytesSent||"",qa.upType||"",qa.size||""].join(",");od.send(ld)}var __read$2=function(Ra,qa){var nd=typeof Symbol=="function"&&Ra[Symbol.iterator];if(!nd)return Ra;var od=nd.call(Ra),ld,ud=[],dd;try{for(;(qa===void 0||qa-- >0)&&!(ld=od.next()).done;)ud.push(ld.value)}catch(pd){dd={error:pd}}finally{try{ld&&!ld.done&&(nd=od.return)&&nd.call(od)}finally{if(dd)throw dd.error}}return ud},__spread$2=function(){for(var Ra=[],qa=0;qa0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]0)&&!(ld=od.next()).done;)ud.push(ld.value)}catch(pd){dd={error:pd}}finally{try{ld&&!ld.done&&(nd=od.return)&&nd.call(od)}finally{if(dd)throw dd.error}}return ud},__spread$1=function(){for(var Ra=[],qa=0;qa=qa},Ra.prototype.freeze=function(qa){qa===void 0&&(qa=20);var nd=new Date().getTime()+qa*1e3;unfreezeTimeMap.set(this.host,nd)},Ra.prototype.unfreeze=function(){unfreezeTimeMap.delete(this.host)},Ra.prototype.getUrl=function(){return this.protocol+"://"+this.host},Ra.prototype.getUnfreezeTime=function(){return unfreezeTimeMap.get(this.host)},Ra}(),HostPool=function(){function Ra(qa){qa===void 0&&(qa=[]),this.initHosts=qa,this.cachedHostsMap=new Map}return Ra.prototype.register=function(qa,nd,od,ld){this.cachedHostsMap.set(qa+"@"+nd,od.map(function(ud){return new Host(ud,ld)}))},Ra.prototype.refresh=function(qa,nd,od){var ld,ud,dd,pd;return __awaiter$1(this,void 0,void 0,function(){var fd,md,vd;return __generator$1(this,function(Ad){switch(Ad.label){case 0:return fd=this.cachedHostsMap.get(qa+"@"+nd)||[],fd.length>0?[2]:this.initHosts.length>0?(this.register(qa,nd,this.initHosts,od),[2]):[4,getUpHosts(qa,nd,od)];case 1:return md=Ad.sent(),(md==null?void 0:md.data)!=null&&(vd=__spread$1(((ud=(ld=md.data.up)===null||ld===void 0?void 0:ld.acc)===null||ud===void 0?void 0:ud.main)||[],((pd=(dd=md.data.up)===null||dd===void 0?void 0:dd.acc)===null||pd===void 0?void 0:pd.backup)||[]),this.register(qa,nd,vd,od)),[2]}})})},Ra.prototype.getUp=function(qa,nd,od){return __awaiter$1(this,void 0,void 0,function(){var ld,ud,dd;return __generator$1(this,function(pd){switch(pd.label){case 0:return[4,this.refresh(qa,nd,od)];case 1:return pd.sent(),ld=this.cachedHostsMap.get(qa+"@"+nd)||[],ld.length===0?[2,null]:(ud=ld.filter(function(fd){return!fd.isFrozen()}),ud.length>0?[2,ud[0]]:(dd=ld.slice().sort(function(fd,md){return(fd.getUnfreezeTime()||0)-(md.getUnfreezeTime()||0)}),[2,dd[0]]))}})})},Ra}();function createUploadManager(Ra,qa,nd,od){return Ra.config&&Ra.config.forceDirect?(od.info("ues forceDirect mode."),new Direct(Ra,qa,nd,od)):Ra.file.size>4*MB?(od.info("file size over 4M, use Resume."),new Resume(Ra,qa,nd,od)):(od.info("file size less or equal than 4M, use Direct."),new Direct(Ra,qa,nd,od))}function upload(Ra,qa,nd,od,ld){var ud=new Logger(nd,ld==null?void 0:ld.disableStatisticsReport,ld==null?void 0:ld.debugLogLevel,Ra.name),dd={file:Ra,key:qa,token:nd,putExtra:od,config:normalizeUploadConfig(ld,ud)},pd=new HostPool(dd.config.uphost);return new Observable(function(fd){var md=createUploadManager(dd,{onData:function(vd){return fd.next(vd)},onError:function(vd){return fd.error(vd)},onComplete:function(vd){return fd.complete(vd)}},pd,ud);return md.putFile(),md.stop.bind(md)})}var __assign$1=function(){return __assign$1=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0)&&!(ld=od.next()).done;)ud.push(ld.value)}catch(pd){dd={error:pd}}finally{try{ld&&!ld.done&&(nd=od.return)&&nd.call(od)}finally{if(dd)throw dd.error}}return ud},__spread=function(){for(var Ra=[],qa=0;qa0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]this.file.size&&this.config.noCompressIfLarger?[2,{dist:this.file,width:qa.width,height:qa.height}]:[2,{dist:dd,width:ud.width,height:ud.height}]}})})},Ra.prototype.clear=function(qa,nd,od){this.outputType===defaultType?(qa.fillStyle="#fff",qa.fillRect(0,0,nd,od)):qa.clearRect(0,0,nd,od)},Ra.prototype.getOriginImage=function(){var qa=this;return new Promise(function(nd,od){var ld=createObjectURL(qa.file),ud=new Image;ud.onload=function(){nd(ud)},ud.onerror=function(){od("image load error")},ud.src=ld})},Ra.prototype.getCanvas=function(qa){var nd=this;return new Promise(function(od,ld){var ud=document.createElement("canvas"),dd=ud.getContext("2d");if(!dd){ld(new QiniuError(QiniuErrorName.GetCanvasContextFailed,"context is null"));return}var pd=qa.width,fd=qa.height;ud.height=fd,ud.width=pd,nd.clear(dd,pd,fd),dd.drawImage(qa,0,0),od(ud)})},Ra.prototype.doScale=function(qa,nd){return __awaiter(this,void 0,void 0,function(){var od,ld,ud,dd,pd,fd,md,vd,Ad,Nd,Od,kd,Ld,Gd,Ud,Fd;return __generator(this,function(jd){if(nd===1)return[2,qa];if(od=qa.getContext("2d"),ld=Math.min(maxSteps,Math.ceil(1/nd/scaleFactor)),ud=Math.pow(nd,1/ld),dd=document.createElement("canvas"),pd=dd.getContext("2d"),fd=qa.width,md=qa.height,vd=fd,Ad=md,dd.width=fd,dd.height=md,!pd||!od)throw new QiniuError(QiniuErrorName.GetCanvasContextFailed,"mctx or sctx can't be null");for(kd=0;kd{if(!isNumber(dd))throw new TypeError('statusCode should be of type "number"')}),!isString(ld))throw new TypeError('region should be of type "string"');qa.headers||(qa.headers={}),(qa.method==="POST"||qa.method==="PUT"||qa.method==="DELETE")&&(qa.headers["content-length"]=nd.length.toString());const ud=this.enableSHA256?toSha256(nd):"";return this.makeRequestStreamAsync(qa,nd,ud,od,ld)}async makeRequestAsyncOmit(qa,nd="",od=[200],ld=""){const ud=await this.makeRequestAsync(qa,nd,od,ld);return await drainResponse(ud),ud}async makeRequestStreamAsync(qa,nd,od,ld,ud){if(!isObject(qa))throw new TypeError('options should be of type "object"');if(!(Buffer$4.isBuffer(nd)||typeof nd=="string"||isReadableStream(nd)))throw new InvalidArgumentError(`stream should be a Buffer, string or readable Stream, got ${typeof nd} instead`);if(!isString(od))throw new TypeError('sha256sum should be of type "string"');if(ld.forEach(fd=>{if(!isNumber(fd))throw new TypeError('statusCode should be of type "number"')}),!isString(ud))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&od.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&od.length!==64)throw new InvalidArgumentError(`Invalid sha256sum : ${od}`);await this.checkAndRefreshCreds(),ud=ud||await this.getBucketRegionAsync(qa.bucketName);const dd=this.getRequestOptions({...qa,region:ud});if(!this.anonymous){this.enableSHA256||(od="UNSIGNED-PAYLOAD");const fd=new Date;dd.headers["x-amz-date"]=makeDateLong(fd),dd.headers["x-amz-content-sha256"]=od,this.sessionToken&&(dd.headers["x-amz-security-token"]=this.sessionToken),dd.headers.authorization=signV4(dd,this.accessKey,this.secretKey,ud,fd,od)}const pd=await request$1(this.transport,dd,nd);if(!pd.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!ld.includes(pd.statusCode)){delete this.regionMap[qa.bucketName];const fd=await parseResponseError(pd);throw this.logHTTP(dd,pd,fd),fd}return this.logHTTP(dd,pd),pd}async getBucketRegionAsync(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name : ${qa}`);if(this.region)return this.region;const nd=this.regionMap[qa];if(nd)return nd;const od=async md=>{const vd=await readAsString(md),Ad=parseBucketRegion(vd)||DEFAULT_REGION;return this.regionMap[qa]=Ad,Ad},ld="GET",ud="location",dd=this.pathStyle&&!isBrowser_1;let pd;try{const md=await this.makeRequestAsync({method:ld,bucketName:qa,query:ud,pathStyle:dd},"",[200],DEFAULT_REGION);return od(md)}catch(md){if(md.name!=="AuthorizationHeaderMalformed"||(pd=md.Region,!pd))throw md}const fd=await this.makeRequestAsync({method:ld,bucketName:qa,query:ud,pathStyle:dd},"",[200],pd);return await od(fd)}makeRequest(qa,nd="",od=[200],ld="",ud,dd){let pd;ud?pd=this.makeRequestAsync(qa,nd,od,ld):pd=this.makeRequestAsyncOmit(qa,nd,od,ld),pd.then(fd=>dd(null,fd),fd=>{dd(fd)})}makeRequestStream(qa,nd,od,ld,ud,dd,pd){(async()=>{const md=await this.makeRequestStreamAsync(qa,nd,od,ld,ud);return dd||await drainResponse(md),md})().then(md=>pd(null,md),md=>pd(md))}getBucketRegion(qa,nd){return this.getBucketRegionAsync(qa).then(od=>nd(null,od),od=>nd(od))}async removeBucket(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:qa},"",[204]),delete this.regionMap[qa]}async statObject(qa,nd,od={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isObject(od))throw new InvalidArgumentError('statOpts should be of type "object"');const ld=queryString.stringify(od),dd=await this.makeRequestAsyncOmit({method:"HEAD",bucketName:qa,objectName:nd,query:ld});return{size:parseInt(dd.headers["content-length"]),metaData:extractMetadata(dd.headers),lastModified:new Date(dd.headers["last-modified"]),versionId:getVersionId(dd.headers),etag:sanitizeETag(dd.headers.etag)}}async removeObject(qa,nd,od={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isObject(od))throw new InvalidArgumentError('removeOpts should be of type "object"');const ld="DELETE",ud={};od.governanceBypass&&(ud["X-Amz-Bypass-Governance-Retention"]=!0),od.forceDelete&&(ud["x-minio-force-delete"]=!0);const dd={};od.versionId&&(dd.versionId=`${od.versionId}`);const pd=queryString.stringify(dd);await this.makeRequestAsyncOmit({method:ld,bucketName:qa,objectName:nd,headers:ud,query:pd},"",[200,204])}async initiateNewMultipartUpload(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isObject(od))throw new InvalidObjectNameError('contentType should be of type "object"');const dd=await this.makeRequestAsync({method:"POST",bucketName:qa,objectName:nd,query:"uploads",headers:od}),pd=await readAsBuffer(dd);return parseInitiateMultipart(pd.toString())}async abortMultipartUpload(qa,nd,od){const ld="DELETE",ud=`uploadId=${od}`,dd={method:ld,bucketName:qa,objectName:nd,query:ud};await this.makeRequestAsyncOmit(dd,"",[204])}async listParts(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('uploadId should be of type "string"');if(!od)throw new InvalidArgumentError("uploadId cannot be empty");const ld=[];let ud=0,dd;do dd=await this.listPartsQuery(qa,nd,od,ud),ud=dd.marker,ld.push(...dd.parts);while(dd.isTruncated);return ld}async listPartsQuery(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('uploadId should be of type "string"');if(!isNumber(ld))throw new TypeError('marker should be of type "number"');if(!od)throw new InvalidArgumentError("uploadId cannot be empty");let ud=`uploadId=${uriEscape(od)}`;ld&&(ud+=`&part-number-marker=${ld}`);const pd=await this.makeRequestAsync({method:"GET",bucketName:qa,objectName:nd,query:ud});return parseListParts(await readAsString(pd))}async listBuckets(){const nd=await this.makeRequestAsync({method:"GET"},"",[200],DEFAULT_REGION),od=await readAsString(nd);return parseListBucket(od)}async removeBucketReplication(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:qa,query:"replication"},"",[200,204],"")}async setBucketReplication(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(isObject(nd)){if(_.isEmpty(nd.role))throw new InvalidArgumentError("Role cannot be empty");if(nd.role&&!isString(nd.role))throw new InvalidArgumentError("Invalid value for role",nd.role);if(_.isEmpty(nd.rules))throw new InvalidArgumentError("Minimum one replication rule must be specified")}else throw new InvalidArgumentError('replicationConfig should be of type "object"');const od="PUT",ld="replication",ud={},dd={ReplicationConfiguration:{Role:nd.role,Rule:nd.rules}},fd=new xml2js.Builder({renderOpts:{pretty:!1},headless:!0}).buildObject(dd);ud["Content-MD5"]=toMd5(fd),await this.makeRequestAsyncOmit({method:od,bucketName:qa,query:ld,headers:ud},fd)}async getBucketReplication(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);const ld=await this.makeRequestAsync({method:"GET",bucketName:qa,query:"replication"},"",[200,204]),ud=await readAsString(ld);return parseReplicationConfig(ud)}}class CopyConditions{constructor(){kg(this,"modified","");kg(this,"unmodified","");kg(this,"matchETag","");kg(this,"matchETagExcept","")}setModified(qa){if(!(qa instanceof Date))throw new TypeError("date must be of type Date");this.modified=qa.toUTCString()}setUnmodified(qa){if(!(qa instanceof Date))throw new TypeError("date must be of type Date");this.unmodified=qa.toUTCString()}setMatchETag(qa){this.matchETag=qa}setMatchETagExcept(qa){this.matchETagExcept=qa}}class PostPolicy{constructor(){kg(this,"policy",{conditions:[]});kg(this,"formData",{})}setExpires(qa){if(!qa)throw new InvalidDateError("Invalid date: cannot be null");this.policy.expiration=qa.toISOString()}setKey(qa){if(!isValidObjectName(qa))throw new InvalidObjectNameError(`Invalid object name : ${qa}`);this.policy.conditions.push(["eq","$key",qa]),this.formData.key=qa}setKeyStartsWith(qa){if(!isValidPrefix(qa))throw new InvalidPrefixError(`Invalid prefix : ${qa}`);this.policy.conditions.push(["starts-with","$key",qa]),this.formData.key=qa}setBucket(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name : ${qa}`);this.policy.conditions.push(["eq","$bucket",qa]),this.formData.bucket=qa}setContentType(qa){if(!qa)throw new Error("content-type cannot be null");this.policy.conditions.push(["eq","$Content-Type",qa]),this.formData["Content-Type"]=qa}setContentTypeStartsWith(qa){if(!qa)throw new Error("content-type cannot be null");this.policy.conditions.push(["starts-with","$Content-Type",qa]),this.formData["Content-Type"]=qa}setContentDisposition(qa){if(!qa)throw new Error("content-disposition cannot be null");this.policy.conditions.push(["eq","$Content-Disposition",qa]),this.formData["Content-Disposition"]=qa}setContentLengthRange(qa,nd){if(qa>nd)throw new Error("min cannot be more than max");if(qa<0)throw new Error("min should be > 0");if(nd<0)throw new Error("max should be > 0");this.policy.conditions.push(["content-length-range",qa,nd])}setUserMetaData(qa){if(!isObject(qa))throw new TypeError('metadata should be of type "object"');Object.entries(qa).forEach(([nd,od])=>{const ld=`x-amz-meta-${nd}`;this.policy.conditions.push(["eq",`$${ld}`,od]),this.formData[ld]=od.toString()})}}var jsonStream={exports:{}},util=util$a,TransformStream$1=streamBrowserify.Transform;jsonStream.exports=function(Ra){return new JSONStream(Ra)};var JSONStream=jsonStream.exports.JSONStream=function(Ra){Ra=Ra||{},TransformStream$1.call(this,Ra),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this._async=Ra.async||!1};util.inherits(JSONStream,TransformStream$1);JSONStream.prototype._transform=function(Ra,qa,nd){Buffer$4.isBuffer(Ra)||(Ra=new Buffer$4(Ra)),this._buffer&&(Ra=Buffer$4.concat([this._buffer,Ra]));for(var od=0,ld=0;++od<=Ra.length;)if(Ra[od]===10||od===Ra.length){var ud;try{ud=JSON.parse(Ra.slice(ld,od))}catch{}ud&&(this.push(ud),ud=null),Ra[od]===10&&(ld=++od)}return this._buffer=Ra.slice(ld),this._async?void setImmediate(nd):void nd()};var jsonStreamExports=jsonStream.exports;const JSONParser=getDefaultExportFromCjs(jsonStreamExports);var through2$1={exports:{}};const{Transform}=readableBrowserExports;function inherits(Ra,qa){Ra.super_=qa,Ra.prototype=Object.create(qa.prototype,{constructor:{value:Ra,enumerable:!1,writable:!0,configurable:!0}})}function through2(Ra){return(qa,nd,od)=>(typeof qa=="function"&&(od=nd,nd=qa,qa={}),typeof nd!="function"&&(nd=(ld,ud,dd)=>dd(null,ld)),typeof od!="function"&&(od=null),Ra(qa,nd,od))}const make=through2((Ra,qa,nd)=>{const od=new Transform(Ra);return od._transform=qa,nd&&(od._flush=nd),od}),ctor=through2((Ra,qa,nd)=>{function od(ld){if(!(this instanceof od))return new od(ld);this.options=Object.assign({},Ra,ld),Transform.call(this,this.options),this._transform=qa,nd&&(this._flush=nd)}return inherits(od,Transform),od}),obj=through2(function(Ra,qa,nd){const od=new Transform(Object.assign({objectMode:!0,highWaterMark:16},Ra));return od._transform=qa,nd&&(od._flush=nd),od});through2$1.exports=make;through2$1.exports.ctor=ctor;through2$1.exports.obj=obj;var through2Exports=through2$1.exports;const Through2=getDefaultExportFromCjs(through2Exports);var Buffer=buffer.Buffer,CRC_TABLE=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(CRC_TABLE=new Int32Array(CRC_TABLE));function ensureBuffer(Ra){if(Buffer.isBuffer(Ra))return Ra;var qa=typeof Buffer.alloc=="function"&&typeof Buffer.from=="function";if(typeof Ra=="number")return qa?Buffer.alloc(Ra):new Buffer(Ra);if(typeof Ra=="string")return qa?Buffer.from(Ra):new Buffer(Ra);throw new Error("input must be buffer, number, or string, received "+typeof Ra)}function bufferizeInt(Ra){var qa=ensureBuffer(4);return qa.writeInt32BE(Ra,0),qa}function _crc32(Ra,qa){Ra=ensureBuffer(Ra),Buffer.isBuffer(qa)&&(qa=qa.readUInt32BE(0));for(var nd=~~qa^-1,od=0;od>>8;return nd^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var bufferCrc32=crc32;const crc32$1=getDefaultExportFromCjs(bufferCrc32),fxpWithoutNumParser=new fxp$2.XMLParser({numberParseOptions:{skipLike:/./}});function parseCopyObject(Ra){var qa={etag:"",lastModified:""},nd=parseXml(Ra);if(!nd.CopyObjectResult)throw new InvalidXMLError('Missing tag: "CopyObjectResult"');return nd=nd.CopyObjectResult,nd.ETag&&(qa.etag=nd.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"")),nd.LastModified&&(qa.lastModified=new Date(nd.LastModified)),qa}function parseListMultipart(Ra){var qa={uploads:[],prefixes:[],isTruncated:!1},nd=parseXml(Ra);if(!nd.ListMultipartUploadsResult)throw new InvalidXMLError('Missing tag: "ListMultipartUploadsResult"');return nd=nd.ListMultipartUploadsResult,nd.IsTruncated&&(qa.isTruncated=nd.IsTruncated),nd.NextKeyMarker&&(qa.nextKeyMarker=nd.NextKeyMarker),nd.NextUploadIdMarker&&(qa.nextUploadIdMarker=nd.nextUploadIdMarker||""),nd.CommonPrefixes&&toArray(nd.CommonPrefixes).forEach(od=>{qa.prefixes.push({prefix:sanitizeObjectKey(toArray(od.Prefix)[0])})}),nd.Upload&&toArray(nd.Upload).forEach(od=>{var ld=od.Key,ud=od.UploadId,dd={id:od.Initiator.ID,displayName:od.Initiator.DisplayName},pd={id:od.Owner.ID,displayName:od.Owner.DisplayName},fd=od.StorageClass,md=new Date(od.Initiated);qa.uploads.push({key:ld,uploadId:ud,initiator:dd,owner:pd,storageClass:fd,initiated:md})}),qa}function parseBucketNotification(Ra){var qa={TopicConfiguration:[],QueueConfiguration:[],CloudFunctionConfiguration:[]},nd=function(ud){var dd=[];return ud&&toArray(ud).forEach(pd=>{dd.push(pd)}),dd},od=function(ud){var dd=[];return ud&&(ud=toArray(ud),ud[0].S3Key&&(ud[0].S3Key=toArray(ud[0].S3Key),ud[0].S3Key[0].FilterRule&&toArray(ud[0].S3Key[0].FilterRule).forEach(pd=>{var fd=toArray(pd.Name)[0],md=toArray(pd.Value)[0];dd.push({Name:fd,Value:md})}))),dd},ld=parseXml(Ra);return ld=ld.NotificationConfiguration,ld.TopicConfiguration&&toArray(ld.TopicConfiguration).forEach(ud=>{var dd=toArray(ud.Id)[0],pd=toArray(ud.Topic)[0],fd=nd(ud.Event),md=od(ud.Filter);qa.TopicConfiguration.push({Id:dd,Topic:pd,Event:fd,Filter:md})}),ld.QueueConfiguration&&toArray(ld.QueueConfiguration).forEach(ud=>{var dd=toArray(ud.Id)[0],pd=toArray(ud.Queue)[0],fd=nd(ud.Event),md=od(ud.Filter);qa.QueueConfiguration.push({Id:dd,Queue:pd,Event:fd,Filter:md})}),ld.CloudFunctionConfiguration&&toArray(ld.CloudFunctionConfiguration).forEach(ud=>{var dd=toArray(ud.Id)[0],pd=toArray(ud.CloudFunction)[0],fd=nd(ud.Event),md=od(ud.Filter);qa.CloudFunctionConfiguration.push({Id:dd,CloudFunction:pd,Event:fd,Filter:md})}),qa}function parseCompleteMultipart(Ra){var qa=parseXml(Ra).CompleteMultipartUploadResult;if(qa.Location){var nd=toArray(qa.Location)[0],od=toArray(qa.Bucket)[0],ld=qa.Key,ud=qa.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"");return{location:nd,bucket:od,key:ld,etag:ud}}if(qa.Code&&qa.Message){var dd=toArray(qa.Code)[0],pd=toArray(qa.Message)[0];return{errCode:dd,errMessage:pd}}}const formatObjInfo=(Ra,qa={})=>{let{Key:nd,LastModified:od,ETag:ld,Size:ud,VersionId:dd,IsLatest:pd}=Ra;isObject(qa)||(qa={});const fd=sanitizeObjectKey(toArray(nd)[0]),md=new Date(toArray(od)[0]),vd=sanitizeETag(toArray(ld)[0]),Ad=sanitizeSize(ud);return{name:fd,lastModified:md,etag:vd,size:Ad,versionId:dd,isLatest:pd,isDeleteMarker:qa.IsDeleteMarker?qa.IsDeleteMarker:!1}};function parseListObjects(Ra){var qa={objects:[],isTruncated:!1};let nd=!1,od,ld;const ud=fxpWithoutNumParser.parse(Ra),dd=md=>{md&&toArray(md).forEach(vd=>{qa.objects.push({prefix:sanitizeObjectKey(toArray(vd.Prefix)[0]),size:0})})},pd=ud.ListBucketResult,fd=ud.ListVersionsResult;return pd&&(pd.IsTruncated&&(nd=pd.IsTruncated),pd.Contents&&toArray(pd.Contents).forEach(md=>{const vd=sanitizeObjectKey(toArray(md.Key)[0]),Ad=new Date(toArray(md.LastModified)[0]),Nd=sanitizeETag(toArray(md.ETag)[0]),Od=sanitizeSize(md.Size);qa.objects.push({name:vd,lastModified:Ad,etag:Nd,size:Od})}),pd.NextMarker&&(od=pd.NextMarker),dd(pd.CommonPrefixes)),fd&&(fd.IsTruncated&&(nd=fd.IsTruncated),fd.Version&&toArray(fd.Version).forEach(md=>{qa.objects.push(formatObjInfo(md))}),fd.DeleteMarker&&toArray(fd.DeleteMarker).forEach(md=>{qa.objects.push(formatObjInfo(md,{IsDeleteMarker:!0}))}),fd.NextKeyMarker&&(ld=fd.NextKeyMarker),fd.NextVersionIdMarker&&(qa.versionIdMarker=fd.NextVersionIdMarker),dd(fd.CommonPrefixes)),qa.isTruncated=nd,nd&&(qa.nextMarker=ld||od),qa}function parseListObjectsV2(Ra){var qa={objects:[],isTruncated:!1},nd=parseXml(Ra);if(!nd.ListBucketResult)throw new InvalidXMLError('Missing tag: "ListBucketResult"');return nd=nd.ListBucketResult,nd.IsTruncated&&(qa.isTruncated=nd.IsTruncated),nd.NextContinuationToken&&(qa.nextContinuationToken=nd.NextContinuationToken),nd.Contents&&toArray(nd.Contents).forEach(od=>{var ld=sanitizeObjectKey(toArray(od.Key)[0]),ud=new Date(od.LastModified),dd=sanitizeETag(od.ETag),pd=od.Size;qa.objects.push({name:ld,lastModified:ud,etag:dd,size:pd})}),nd.CommonPrefixes&&toArray(nd.CommonPrefixes).forEach(od=>{qa.objects.push({prefix:sanitizeObjectKey(toArray(od.Prefix)[0]),size:0})}),qa}function parseBucketVersioningConfig(Ra){var qa=parseXml(Ra);return qa.VersioningConfiguration}function parseTagging(Ra){const qa=parseXml(Ra);let nd=[];if(qa.Tagging&&qa.Tagging.TagSet&&qa.Tagging.TagSet.Tag){const od=qa.Tagging.TagSet.Tag;isObject(od)?nd.push(od):nd=od}return nd}function parseLifecycleConfig(Ra){return parseXml(Ra).LifecycleConfiguration}function parseObjectLockConfig(Ra){const qa=parseXml(Ra);let nd={};if(qa.ObjectLockConfiguration){nd={objectLockEnabled:qa.ObjectLockConfiguration.ObjectLockEnabled};let od;if(qa.ObjectLockConfiguration&&qa.ObjectLockConfiguration.Rule&&qa.ObjectLockConfiguration.Rule.DefaultRetention&&(od=qa.ObjectLockConfiguration.Rule.DefaultRetention||{},nd.mode=od.Mode),od){const ld=od.Years;ld?(nd.validity=ld,nd.unit=RETENTION_VALIDITY_UNITS.YEARS):(nd.validity=od.Days,nd.unit=RETENTION_VALIDITY_UNITS.DAYS)}return nd}}function parseObjectRetentionConfig(Ra){const nd=parseXml(Ra).Retention;return{mode:nd.Mode,retainUntilDate:nd.RetainUntilDate}}function parseBucketEncryptionConfig(Ra){return parseXml(Ra)}function parseObjectLegalHoldConfig(Ra){return parseXml(Ra).LegalHold}function uploadPartParser(Ra){return parseXml(Ra).CopyPartResult}function removeObjectsParser(Ra){const qa=parseXml(Ra);return qa.DeleteResult&&qa.DeleteResult.Error?toArray(qa.DeleteResult.Error):[]}function parseSelectObjectContentResponse(Ra){function qa(ud){const dd=Buffer$4.from(ud.read(1)).readUInt8(),fd=(Buffer$4.from(ud.read(dd)).toString()||"").split(":");return fd.length>=1?fd[1]:""}function nd(ud){const dd=Buffer$4.from(ud.read(2)).readUInt16BE();return Buffer$4.from(ud.read(dd)).toString()}const od=new SelectResults({}),ld=readableStream(Ra);for(;ld._readableState.length;){let ud;const dd=Buffer$4.from(ld.read(4));ud=crc32$1(dd);const pd=Buffer$4.from(ld.read(4));ud=crc32$1(pd,ud);const fd=ud.readInt32BE(),md=Buffer$4.from(ld.read(4));ud=crc32$1(md,ud);const vd=dd.readInt32BE(),Ad=pd.readInt32BE(),Nd=md.readInt32BE();if(Nd!==fd)throw new Error(`Header Checksum Mismatch, Prelude CRC of ${Nd} does not equal expected CRC of ${fd}`);const Od={};if(Ad>0){const jd=Buffer$4.from(ld.read(Ad));ud=crc32$1(jd,ud);const Fd=readableStream(jd);for(;Fd._readableState.length;){let Ud=qa(Fd);Fd.read(1),Od[Ud]=nd(Fd)}}let kd;const Ld=vd-Ad-16;if(Ld>0){const jd=Buffer$4.from(ld.read(Ld));ud=crc32$1(jd,ud);const Fd=Buffer$4.from(ld.read(4)).readInt32BE(),Ud=ud.readInt32BE();if(Fd!==Ud)throw new Error(`Message Checksum Mismatch, Message CRC of ${Fd} does not equal expected CRC of ${Ud}`);kd=readableStream(jd)}const Gd=Od["message-type"];switch(Gd){case"error":{const jd=Od["error-code"]+':"'+Od["error-message"]+'"';throw new Error(jd)}case"event":{const jd=Od["content-type"];switch(Od["event-type"]){case"End":return od.setResponse(Ra),od;case"Records":{const Ud=kd.read(Ld);od.setRecords(Ud);break}case"Progress":switch(jd){case"text/xml":{const Ud=kd.read(Ld);od.setProgress(Ud.toString());break}default:{const Ud=`Unexpected content-type ${jd} sent for event-type Progress`;throw new Error(Ud)}}break;case"Stats":switch(jd){case"text/xml":{const Ud=kd.read(Ld);od.setStats(Ud.toString());break}default:{const Ud=`Unexpected content-type ${jd} sent for event-type Stats`;throw new Error(Ud)}}break;default:{const Ud=`Un implemented event detected ${Gd}.`;console.warn(Ud)}}}}}}function getConcater(Ra,qa){var nd=!1,od=[];if(Ra&&!isFunction(Ra))throw new TypeError('parser should be of type "function"');return Ra&&(nd=!0),Through2({objectMode:nd},function(ld,ud,dd){od.push(ld),dd()},function(ld){od.length&&(Ra?this.push(Ra(Buffer$4.concat(od).toString())):this.push(Buffer$4.concat(od))),ld()})}function getCopyObjectTransformer(){return getConcater(parseCopyObject)}function getListMultipartTransformer(){return getConcater(parseListMultipart)}function getListObjectsTransformer(){return getConcater(parseListObjects)}function getListObjectsV2Transformer(){return getConcater(parseListObjectsV2)}function getCompleteMultipartTransformer(){return getConcater(parseCompleteMultipart)}function getBucketNotificationTransformer(){return getConcater(parseBucketNotification)}function getNotificationTransformer(){return new JSONParser}function bucketVersioningTransformer(){return getConcater(parseBucketVersioningConfig)}function getTagsTransformer(){return getConcater(parseTagging)}function lifecycleTransformer(){return getConcater(parseLifecycleConfig)}function objectLockTransformer(){return getConcater(parseObjectLockConfig)}function objectRetentionTransformer(){return getConcater(parseObjectRetentionConfig)}function bucketEncryptionTransformer(){return getConcater(parseBucketEncryptionConfig)}function objectLegalHoldTransformer(){return getConcater(parseObjectLegalHoldConfig)}function uploadPartTransformer(){return getConcater(uploadPartParser)}function selectObjectContentTransformer(){return getConcater()}function removeObjectsTransformer(){return getConcater(removeObjectsParser)}var define_process_default$1={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};class NotificationConfig{add(qa){let nd="";qa instanceof TopicConfig&&(nd="TopicConfiguration"),qa instanceof QueueConfig&&(nd="QueueConfiguration"),qa instanceof CloudFunctionConfig&&(nd="CloudFunctionConfiguration"),this[nd]||(this[nd]=[]),this[nd].push(qa)}}class TargetConfig{setId(qa){this.Id=qa}addEvent(qa){this.Event||(this.Event=[]),this.Event.push(qa)}addFilterSuffix(qa){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"suffix",Value:qa})}addFilterPrefix(qa){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"prefix",Value:qa})}}class TopicConfig extends TargetConfig{constructor(qa){super(),this.Topic=qa}}class QueueConfig extends TargetConfig{constructor(qa){super(),this.Queue=qa}}class CloudFunctionConfig extends TargetConfig{constructor(qa){super(),this.CloudFunction=qa}}class NotificationPoller extends eventsExports.EventEmitter{constructor(qa,nd,od,ld,ud){super(),this.client=qa,this.bucketName=nd,this.prefix=od,this.suffix=ld,this.events=ud,this.ending=!1}start(){this.ending=!1,define_process_default$1.nextTick(()=>{this.checkForChanges()})}stop(){this.ending=!0}checkForChanges(){if(this.ending)return;let qa="GET";var nd=[];if(this.prefix){var od=uriEscape(this.prefix);nd.push(`prefix=${od}`)}if(this.suffix){var ld=uriEscape(this.suffix);nd.push(`suffix=${ld}`)}this.events&&this.events.forEach(pd=>nd.push("events="+uriEscape(pd))),nd.sort();var ud="";nd.length>0&&(ud=`${nd.join("&")}`);const dd=this.client.region||DEFAULT_REGION;this.client.makeRequest({method:qa,bucketName:this.bucketName,query:ud},"",[200],dd,!0,(pd,fd)=>{if(pd)return this.emit("error",pd);let md=getNotificationTransformer();pipesetup(fd,md).on("data",vd=>{let Ad=vd.Records;Ad||(Ad=[]),Ad.forEach(Nd=>{this.emit("notification",Nd)}),this.ending&&fd.destroy()}).on("error",vd=>this.emit("error",vd)).on("end",()=>{define_process_default$1.nextTick(()=>{this.checkForChanges()})})})}}var define_process_default={version:"v20.18.1",versions:{node:"20.18.1",acorn:"8.12.1",ada:"2.9.0",ares:"1.33.1",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.5.0",tz:"2024b",undici:"6.20.0",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-71660e1"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.1/node-v20.18.1-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding crypto","Internal Binding cares_wrap","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/tls/secure-context","NativeModule _tls_common","NativeModule internal/crypto/random","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/crypto/webcrypto","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.1 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az-extension",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"835",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250113.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.10/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.4/x64",JOURNAL_STREAM:"8:6631",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.1/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"12766697939",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",AZURE_CONFIG_DIR:"/opt/az-config",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.1/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_8835ad14-f619-4ee9-b8ed-949de4d651b1",INVOCATION_ID:"34188bda33674bc7921fc2edd00a0237",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"491",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 13",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"6f0ae9dc1dfa867911e6d01f622d25227ad637b8",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.1/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.1/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_c042b52a-b2ec-47fd-9c7d-f2ac4acc7746",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.1/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2144,ppid:2143,execPath:"/opt/hostedtoolcache/node/20.18.1/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};class ObjectUploader extends streamBrowserify.Transform{constructor(qa,nd,od,ld,ud,dd){super(),this.emptyStream=!0,this.client=qa,this.bucketName=nd,this.objectName=od,this.partSize=ld,this.metaData=ud,this.callback=dd,this.partNumber=1,this.oldParts=null,this.etags=[],this.id=null,this.on("error",pd=>{dd(pd)})}_transform(qa,nd,od){this.emptyStream=!1;let ld="PUT",ud={"Content-Length":qa.length},dd="";if(this.client.enableSHA256||(dd=(void 0)("md5").update(qa).digest(),ud["Content-MD5"]=dd.toString("base64")),this.partNumber==1&&qa.length{if(Ad)return od(Ad);let Od={etag:sanitizeETag(Nd.headers.etag),versionId:getVersionId(Nd.headers)};Nd.on("data",()=>{}),define_process_default.nextTick(()=>{this.callback(null,Od)}),od()});return}if(this.id===null){this.once("ready",()=>{this._transform(qa,nd,od)}),this.client.findUploadId(this.bucketName,this.objectName,(vd,Ad)=>{if(vd)return this.emit("error",vd);if(!Ad){this.client.initiateNewMultipartUpload(this.bucketName,this.objectName,this.metaData).then(Nd=>{this.id=Nd,this.emit("ready")},Nd=>od(Nd));return}this.id=Ad,this.client.listParts(this.bucketName,this.objectName,Ad).then(Nd=>{Nd||(Nd=[]),this.oldParts=Nd.reduce(function(Od,kd){return Od[kd.part]||(Od[kd.part]=kd),Od},{}),this.emit("ready")},Nd=>this.emit("error",Nd))});return}let pd=this.partNumber++;if(this.oldParts){let vd=this.oldParts[pd];if(dd||(dd=(void 0)("md5").update(qa).digest()),vd&&dd.toString("hex")===vd.etag){this.etags.push({part:pd,etag:vd.etag}),od();return}}let fd=queryString.stringify({partNumber:pd,uploadId:this.id}),md={method:ld,query:fd,headers:ud,bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(md,qa,[200],"",!0,(vd,Ad)=>{if(vd)return od(vd);let Nd=Ad.headers.etag;Nd&&(Nd=Nd.replace(/^"/,"").replace(/"$/,"")),this.etags.push({part:pd,etag:Nd}),Ad.on("data",()=>{}),od()})}_flush(qa){if(this.emptyStream){let nd="PUT",od=Object.assign({},this.metaData,{"Content-Length":0}),ld={method:nd,headers:od,query:"",bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(ld,"",[200],"",!0,(ud,dd)=>{if(ud)return qa(ud);let pd={etag:sanitizeETag(dd.headers.etag),versionId:getVersionId(dd.headers)};dd.on("data",()=>{}),define_process_default.nextTick(()=>{this.callback(null,pd)}),qa()});return}this.id!==null&&this.client.completeMultipartUpload(this.bucketName,this.objectName,this.id,this.etags,(nd,od)=>{if(nd)return qa(nd);define_process_default.nextTick(()=>{this.callback(null,od)}),qa()})}}function promisify(Ra){return function(){if(typeof arguments[arguments.length-1]=="function")return Ra.apply(this,arguments);let nd=[...arguments];return new Promise((od,ld)=>{nd.push((ud,dd)=>{if(ud)return ld(ud);od(dd)}),Ra.apply(this,nd)})}}class Client extends TypedClient{setAppInfo(qa,nd){if(!isString(qa))throw new TypeError(`Invalid appName: ${qa}`);if(qa.trim()==="")throw new InvalidArgumentError("Input appName cannot be empty.");if(!isString(nd))throw new TypeError(`Invalid appVersion: ${nd}`);if(nd.trim()==="")throw new InvalidArgumentError("Input appVersion cannot be empty.");this.userAgent=`${this.userAgent} ${qa}/${nd}`}calculatePartSize(qa){if(!isNumber(qa))throw new TypeError('size should be of type "number"');if(qa>this.maxObjectSize)throw new TypeError(`size should not be more than ${this.maxObjectSize}`);if(this.overRidePartSize)return this.partSize;for(var nd=this.partSize;;){if(nd*1e4>qa)return nd;nd+=16*1024*1024}}makeBucket(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(isObject(nd)&&(ld=od,od=nd,nd=""),isFunction(nd)&&(ld=nd,nd="",od={}),isFunction(od)&&(ld=od,od={}),!isString(nd))throw new TypeError('region should be of type "string"');if(!isObject(od))throw new TypeError('makeOpts should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');var ud="";if(nd&&this.region&&nd!==this.region)throw new InvalidArgumentError(`Configured region ${this.region}, requested ${nd}`);if(nd&&nd!==DEFAULT_REGION){var dd=[];dd.push({_attr:{xmlns:"http://s3.amazonaws.com/doc/2006-03-01/"}}),dd.push({LocationConstraint:nd});var pd={CreateBucketConfiguration:dd};ud=Xml(pd)}var fd="PUT",md={};od.ObjectLocking&&(md["x-amz-bucket-object-lock-enabled"]=!0),nd||(nd=DEFAULT_REGION);const vd=Ad=>{if(Ad&&(nd===""||nd===DEFAULT_REGION))if(Ad.code==="AuthorizationHeaderMalformed"&&Ad.region!=="")this.makeRequest({method:fd,bucketName:qa,headers:md},ud,[200],Ad.region,!1,ld);else return ld&&ld(Ad);return ld&&ld(Ad)};this.makeRequest({method:fd,bucketName:qa,headers:md},ud,[200],nd,!1,vd)}listIncompleteUploads(qa,nd,od){if(nd===void 0&&(nd=""),od===void 0&&(od=!1),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidPrefix(nd))throw new InvalidPrefixError(`Invalid prefix : ${nd}`);if(!isBoolean(od))throw new TypeError('recursive should be of type "boolean"');var ld=od?"":"/",ud="",dd="",pd=[],fd=!1,md=streamBrowserify.Readable({objectMode:!0});return md._read=()=>{if(pd.length)return md.push(pd.shift());if(fd)return md.push(null);this.listIncompleteUploadsQuery(qa,nd,ud,dd,ld).on("error",vd=>md.emit("error",vd)).on("data",vd=>{vd.prefixes.forEach(Ad=>pd.push(Ad)),index.eachSeries(vd.uploads,(Ad,Nd)=>{this.listParts(qa,Ad.key,Ad.uploadId).then(Od=>{Ad.size=Od.reduce((kd,Ld)=>kd+Ld.size,0),pd.push(Ad),Nd()},Nd)},Ad=>{if(Ad){md.emit("error",Ad);return}vd.isTruncated?(ud=vd.nextKeyMarker,dd=vd.nextUploadIdMarker):fd=!0,md._read()})})},md}bucketExists(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new TypeError('callback should be of type "function"');var od="HEAD";this.makeRequest({method:od,bucketName:qa},"",[200],"",!1,ld=>{if(ld)return ld.code=="NoSuchBucket"||ld.code=="NotFound"?nd(null,!1):nd(ld);nd(null,!0)})}removeIncompleteUpload(qa,nd,od){if(!isValidBucketName(qa))throw new IsValidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isFunction(od))throw new TypeError('callback should be of type "function"');var ld;index.during(ud=>{this.findUploadId(qa,nd,(dd,pd)=>{if(dd)return ud(dd);ld=pd,ud(null,pd)})},ud=>{var dd="DELETE",pd=`uploadId=${ld}`;this.makeRequest({method:dd,bucketName:qa,objectName:nd,query:pd},"",[204],"",!1,fd=>ud(fd))},od)}fGetObject(qa,nd,od,ld={},ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('filePath should be of type "string"');if(isFunction(ld)&&(ud=ld,ld={}),!isFunction(ud))throw new TypeError('callback should be of type "function"');var dd,pd,fd,md=vd=>{if(vd)return ud(vd);(void 0)(dd,od,ud)};index.waterfall([vd=>this.statObject(qa,nd,ld,vd),(vd,Ad)=>{fd=vd,(void 0)(pathBrowserify.dirname(od),{recursive:!0},Nd=>Ad(Nd))},vd=>{dd=`${od}.${fd.etag}.part.minio`,(void 0)(dd,(Ad,Nd)=>{var Od=0;if(Ad)pd=(void 0)(dd,{flags:"w"});else{if(fd.size===Nd.size)return md();Od=Nd.size,pd=(void 0)(dd,{flags:"a"})}this.getPartialObject(qa,nd,Od,0,ld,vd)})},(vd,Ad)=>{pipesetup(vd,pd).on("error",Nd=>Ad(Nd)).on("finish",Ad)},vd=>(void 0)(dd,vd),(vd,Ad)=>{if(vd.size===fd.size)return Ad();Ad(new Error("Size mismatch between downloaded file and the object"))}],md)}getObject(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isFunction(od)&&(ld=od,od={}),!isFunction(ld))throw new TypeError('callback should be of type "function"');this.getPartialObject(qa,nd,0,0,od,ld)}getPartialObject(qa,nd,od,ld,ud={},dd){if(isFunction(ld)&&(dd=ld,ld=0),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isNumber(od))throw new TypeError('offset should be of type "number"');if(!isNumber(ld))throw new TypeError('length should be of type "number"');if(isFunction(ud)&&(dd=ud,ud={}),!isFunction(dd))throw new TypeError('callback should be of type "function"');var pd="";(od||ld)&&(od?pd=`bytes=${+od}-`:(pd="bytes=0-",od=0),ld&&(pd+=`${+ld+od-1}`));var fd={};pd!==""&&(fd.range=pd);var md=[200];pd&&md.push(206);var vd="GET",Ad=queryString.stringify(ud);this.makeRequest({method:vd,bucketName:qa,objectName:nd,headers:fd,query:Ad},"",md,"",!0,dd)}fPutObject(qa,nd,od,ld,ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('filePath should be of type "string"');if(isFunction(ld)&&(ud=ld,ld={}),!isObject(ld))throw new TypeError('metaData should be of type "object"');ld=insertContentType(ld,od),(void 0)(od,(dd,pd)=>dd?ud(dd):this.putObject(qa,nd,(void 0)(od),pd.size,ld,ud))}putObject(qa,nd,od,ld,ud,dd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isFunction(ld)?(dd=ld,ud={}):isFunction(ud)&&(dd=ud,ud={}),isObject(ld)&&(ud=ld),ud=prependXAMZMeta(ud),typeof od=="string"||od instanceof Buffer$4)ld=od.length,od=readableStream(od);else if(!isReadableStream(od))throw new TypeError('third argument should be of type "stream.Readable" or "Buffer" or "string"');if(!isFunction(dd))throw new TypeError('callback should be of type "function"');if(isNumber(ld)&&ld<0)throw new InvalidArgumentError(`size cannot be negative, given size: ${ld}`);isNumber(ld)||(ld=this.maxObjectSize),ld=this.calculatePartSize(ld);let pd=new BlockStream2({size:ld,zeroPadding:!1}),fd=new ObjectUploader(this,qa,nd,ld,ud,dd);pipesetup(od,pd,fd)}copyObjectV1(qa,nd,od,ld,ud){var dd=qa,pd=nd,fd=od,md,vd;if(typeof ld=="function"&&ud===void 0?(md=null,vd=ld):(md=ld,vd=ud),!isValidBucketName(dd))throw new InvalidBucketNameError("Invalid bucket name: "+dd);if(!isValidObjectName(pd))throw new InvalidObjectNameError(`Invalid object name: ${pd}`);if(!isString(fd))throw new TypeError('srcObject should be of type "string"');if(fd==="")throw new InvalidPrefixError("Empty source prefix");if(md!==null&&!(md instanceof CopyConditions))throw new TypeError('conditions should be of type "CopyConditions"');var Ad={};Ad["x-amz-copy-source"]=uriResourceEscape(fd),md!==null&&(md.modified!==""&&(Ad["x-amz-copy-source-if-modified-since"]=md.modified),md.unmodified!==""&&(Ad["x-amz-copy-source-if-unmodified-since"]=md.unmodified),md.matchETag!==""&&(Ad["x-amz-copy-source-if-match"]=md.matchETag),md.matchEtagExcept!==""&&(Ad["x-amz-copy-source-if-none-match"]=md.matchETagExcept));var Nd="PUT";this.makeRequest({method:Nd,bucketName:dd,objectName:pd,headers:Ad},"",[200],"",!0,(Od,kd)=>{if(Od)return vd(Od);var Ld=getCopyObjectTransformer();pipesetup(kd,Ld).on("error",Gd=>vd(Gd)).on("data",Gd=>vd(null,Gd))})}copyObjectV2(qa,nd,od){if(!(qa instanceof CopySourceOptions))throw new InvalidArgumentError("sourceConfig should of type CopySourceOptions ");if(!(nd instanceof CopyDestinationOptions))throw new InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(!nd.validate()||!nd.validate())return!1;if(!isFunction(od))throw new TypeError('callback should be of type "function"');const ld=Object.assign({},qa.getHeaders(),nd.getHeaders()),ud=nd.Bucket,dd=nd.Object;this.makeRequest({method:"PUT",bucketName:ud,objectName:dd,headers:ld},"",[200],"",!0,(fd,md)=>{if(fd)return od(fd);const vd=getCopyObjectTransformer();pipesetup(md,vd).on("error",Ad=>od(Ad)).on("data",Ad=>{const Nd=md.headers,Od={Bucket:nd.Bucket,Key:nd.Object,LastModified:Ad.LastModified,MetaData:extractMetadata(Nd),VersionId:getVersionId(Nd),SourceVersionId:getSourceVersionId(Nd),Etag:sanitizeETag(Nd.etag),Size:+Nd["content-length"]};return od(null,Od)})})}copyObject(...qa){return qa[0]instanceof CopySourceOptions&&qa[1]instanceof CopyDestinationOptions?this.copyObjectV2(...arguments):this.copyObjectV1(...arguments)}listObjectsQuery(qa,nd,od,ld={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isString(od))throw new TypeError('marker should be of type "string"');let{Delimiter:ud,MaxKeys:dd,IncludeVersion:pd}=ld;if(!isObject(ld))throw new TypeError('listQueryOpts should be of type "object"');if(!isString(ud))throw new TypeError('Delimiter should be of type "string"');if(!isNumber(dd))throw new TypeError('MaxKeys should be of type "number"');const fd=[];fd.push(`prefix=${uriEscape(nd)}`),fd.push(`delimiter=${uriEscape(ud)}`),fd.push("encoding-type=url"),pd&&fd.push("versions"),od&&(od=uriEscape(od),pd?fd.push(`key-marker=${od}`):fd.push(`marker=${od}`)),dd&&(dd>=1e3&&(dd=1e3),fd.push(`max-keys=${dd}`)),fd.sort();var md="";fd.length>0&&(md=`${fd.join("&")}`);var vd="GET",Ad=getListObjectsTransformer();return this.makeRequest({method:vd,bucketName:qa,query:md},"",[200],"",!0,(Nd,Od)=>{if(Nd)return Ad.emit("error",Nd);pipesetup(Od,Ad)}),Ad}listObjects(qa,nd,od,ld={}){if(nd===void 0&&(nd=""),od===void 0&&(od=!1),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidPrefix(nd))throw new InvalidPrefixError(`Invalid prefix : ${nd}`);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isBoolean(od))throw new TypeError('recursive should be of type "boolean"');if(!isObject(ld))throw new TypeError('listOpts should be of type "object"');var ud="";const dd={Delimiter:od?"":"/",MaxKeys:1e3,IncludeVersion:ld.IncludeVersion};var pd=[],fd=!1,md=streamBrowserify.Readable({objectMode:!0});return md._read=()=>{if(pd.length){md.push(pd.shift());return}if(fd)return md.push(null);this.listObjectsQuery(qa,nd,ud,dd).on("error",vd=>md.emit("error",vd)).on("data",vd=>{vd.isTruncated?ud=vd.nextMarker||vd.versionIdMarker:fd=!0,pd=vd.objects,md._read()})},md}listObjectsV2Query(qa,nd,od,ld,ud,dd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isString(od))throw new TypeError('continuationToken should be of type "string"');if(!isString(ld))throw new TypeError('delimiter should be of type "string"');if(!isNumber(ud))throw new TypeError('maxKeys should be of type "number"');if(!isString(dd))throw new TypeError('startAfter should be of type "string"');var pd=[];pd.push("list-type=2"),pd.push("encoding-type=url"),pd.push(`prefix=${uriEscape(nd)}`),pd.push(`delimiter=${uriEscape(ld)}`),od&&(od=uriEscape(od),pd.push(`continuation-token=${od}`)),dd&&(dd=uriEscape(dd),pd.push(`start-after=${dd}`)),ud&&(ud>=1e3&&(ud=1e3),pd.push(`max-keys=${ud}`)),pd.sort();var fd="";pd.length>0&&(fd=`${pd.join("&")}`);var md="GET",vd=getListObjectsV2Transformer();return this.makeRequest({method:md,bucketName:qa,query:fd},"",[200],"",!0,(Ad,Nd)=>{if(Ad)return vd.emit("error",Ad);pipesetup(Nd,vd)}),vd}listObjectsV2(qa,nd,od,ld){if(nd===void 0&&(nd=""),od===void 0&&(od=!1),ld===void 0&&(ld=""),!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidPrefix(nd))throw new InvalidPrefixError(`Invalid prefix : ${nd}`);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isBoolean(od))throw new TypeError('recursive should be of type "boolean"');if(!isString(ld))throw new TypeError('startAfter should be of type "string"');var ud=od?"":"/",dd="",pd=[],fd=!1,md=streamBrowserify.Readable({objectMode:!0});return md._read=()=>{if(pd.length){md.push(pd.shift());return}if(fd)return md.push(null);this.listObjectsV2Query(qa,nd,dd,ud,1e3,ld).on("error",vd=>md.emit("error",vd)).on("data",vd=>{vd.isTruncated?dd=vd.nextContinuationToken:fd=!0,pd=vd.objects,md._read()})},md}removeObjects(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!Array.isArray(nd))throw new InvalidArgumentError("objectsList should be a list");if(!isFunction(od))throw new TypeError('callback should be of type "function"');const ld=1e3,ud="delete",dd="POST";let pd=nd.reduce((vd,Ad)=>(vd.list.push(Ad),vd.list.length===ld&&(vd.listOfList.push(vd.list),vd.list=[]),vd),{listOfList:[],list:[]});pd.list.length>0&&pd.listOfList.push(pd.list);const fd=new Encoder,md=[];index.eachSeries(pd.listOfList,(vd,Ad)=>{var Nd=[];vd.forEach(function(Fd){isObject(Fd)?Nd.push({Key:Fd.name,VersionId:Fd.versionId}):Nd.push({Key:Fd})});let Od={Delete:{Quiet:!0,Object:Nd}},Ld=new xml2js.Builder({headless:!0}).buildObject(Od);Ld=Buffer$4.from(fd.encode(Ld));const Gd={};Gd["Content-MD5"]=toMd5(Ld);let jd;this.makeRequest({method:dd,bucketName:qa,query:ud,headers:Gd},Ld,[200],"",!0,(Fd,Ud)=>{if(Fd)return Ad(Fd);pipesetup(Ud,removeObjectsTransformer()).on("data",qd=>{jd=qd}).on("error",qd=>Ad(qd,null)).on("end",()=>(md.push(jd),Ad(null,jd)))})},()=>{od(null,_.flatten(md))})}getBucketPolicy(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isFunction(nd))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:qa,query:"policy"},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);let pd=Buffer$4.from("");pipesetup(dd,getConcater()).on("data",fd=>pd=fd).on("error",nd).on("end",()=>{nd(null,pd.toString())})})}setBucketPolicy(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isString(nd))throw new InvalidBucketPolicyError(`Invalid bucket policy: ${nd} - must be "string"`);if(!isFunction(od))throw new TypeError('callback should be of type "function"');let ld="DELETE",ud="policy";nd&&(ld="PUT"),this.makeRequest({method:ld,bucketName:qa,query:ud},nd,[204],"",!1,od)}presignedUrl(qa,nd,od,ld,ud,dd,pd){if(this.anonymous)throw new AnonymousRequestError("Presigned "+qa+" url cannot be generated for anonymous requests");if(isFunction(dd)&&(pd=dd,dd=new Date),isFunction(ud)&&(pd=ud,ud={},dd=new Date),isFunction(ld)&&(pd=ld,ud={},ld=24*60*60*7,dd=new Date),!isNumber(ld))throw new TypeError('expires should be of type "number"');if(!isObject(ud))throw new TypeError('reqParams should be of type "object"');if(!isValidDate(dd))throw new TypeError('requestDate should be of type "Date" and valid');if(!isFunction(pd))throw new TypeError('callback should be of type "function"');var fd=queryString.stringify(ud);this.getBucketRegion(nd,(md,vd)=>{if(md)return pd(md);var Ad,Nd=this.getRequestOptions({method:qa,region:vd,bucketName:nd,objectName:od,query:fd});this.checkAndRefreshCreds();try{Ad=presignSignatureV4(Nd,this.accessKey,this.secretKey,this.sessionToken,vd,dd,ld)}catch(Od){return pd(Od)}pd(null,Ad)})}presignedGetObject(qa,nd,od,ld,ud,dd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);isFunction(ld)&&(dd=ld,ld={},ud=new Date);var pd=["response-content-type","response-content-language","response-expires","response-cache-control","response-content-disposition","response-content-encoding"];return pd.forEach(fd=>{if(ld!==void 0&&ld[fd]!==void 0&&!isString(ld[fd]))throw new TypeError(`response header ${fd} should be of type "string"`)}),this.presignedUrl("GET",qa,nd,od,ld,ud,dd)}presignedPutObject(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);return this.presignedUrl("PUT",qa,nd,od,ld)}newPostPolicy(){return new PostPolicy}presignedPostPolicy(qa,nd){if(this.anonymous)throw new AnonymousRequestError("Presigned POST policy cannot be generated for anonymous requests");if(!isObject(qa))throw new TypeError('postPolicy should be of type "object"');if(!isFunction(nd))throw new TypeError('cb should be of type "function"');this.getBucketRegion(qa.formData.bucket,(od,ld)=>{if(od)return nd(od);var ud=new Date,dd=makeDateLong(ud);if(this.checkAndRefreshCreds(),!qa.policy.expiration){var pd=new Date;pd.setSeconds(24*60*60*7),qa.setExpires(pd)}qa.policy.conditions.push(["eq","$x-amz-date",dd]),qa.formData["x-amz-date"]=dd,qa.policy.conditions.push(["eq","$x-amz-algorithm","AWS4-HMAC-SHA256"]),qa.formData["x-amz-algorithm"]="AWS4-HMAC-SHA256",qa.policy.conditions.push(["eq","$x-amz-credential",this.accessKey+"/"+getScope(ld,ud)]),qa.formData["x-amz-credential"]=this.accessKey+"/"+getScope(ld,ud),this.sessionToken&&(qa.policy.conditions.push(["eq","$x-amz-security-token",this.sessionToken]),qa.formData["x-amz-security-token"]=this.sessionToken);var fd=Buffer$4.from(JSON.stringify(qa.policy)).toString("base64");qa.formData.policy=fd;var md=postPresignSignatureV4(ld,ud,this.secretKey,fd);qa.formData["x-amz-signature"]=md;var vd={};vd.region=ld,vd.bucketName=qa.formData.bucket;var Ad=this.getRequestOptions(vd),Nd=this.port==80||this.port===443?"":`:${this.port.toString()}`,Od=`${Ad.protocol}//${Ad.host}${Nd}${Ad.path}`;nd(null,{postURL:Od,formData:qa.formData})})}completeMultipartUpload(qa,nd,od,ld,ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isString(od))throw new TypeError('uploadId should be of type "string"');if(!isObject(ld))throw new TypeError('etags should be of type "Array"');if(!isFunction(ud))throw new TypeError('cb should be of type "function"');if(!od)throw new InvalidArgumentError("uploadId cannot be empty");var dd="POST",pd=`uploadId=${uriEscape(od)}`,fd=[];ld.forEach(Ad=>{fd.push({Part:[{PartNumber:Ad.part},{ETag:Ad.etag}]})});var md={CompleteMultipartUpload:fd},vd=Xml(md);this.makeRequest({method:dd,bucketName:qa,objectName:nd,query:pd},vd,[200],"",!0,(Ad,Nd)=>{if(Ad)return ud(Ad);var Od=getCompleteMultipartTransformer();pipesetup(Nd,Od).on("error",kd=>ud(kd)).on("data",kd=>{if(kd.errCode)ud(new S3Error(kd.errMessage));else{const Ld={etag:kd.etag,versionId:getVersionId(Nd.headers)};ud(null,Ld)}})})}listIncompleteUploadsQuery(qa,nd,od,ld,ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isString(nd))throw new TypeError('prefix should be of type "string"');if(!isString(od))throw new TypeError('keyMarker should be of type "string"');if(!isString(ld))throw new TypeError('uploadIdMarker should be of type "string"');if(!isString(ud))throw new TypeError('delimiter should be of type "string"');var dd=[];dd.push(`prefix=${uriEscape(nd)}`),dd.push(`delimiter=${uriEscape(ud)}`),od&&(od=uriEscape(od),dd.push(`key-marker=${od}`)),ld&&dd.push(`upload-id-marker=${ld}`);var pd=1e3;dd.push(`max-uploads=${pd}`),dd.sort(),dd.unshift("uploads");var fd="";dd.length>0&&(fd=`${dd.join("&")}`);var md="GET",vd=getListMultipartTransformer();return this.makeRequest({method:md,bucketName:qa,query:fd},"",[200],"",!0,(Ad,Nd)=>{if(Ad)return vd.emit("error",Ad);pipesetup(Nd,vd)}),vd}findUploadId(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isFunction(od))throw new TypeError('cb should be of type "function"');var ld,ud=(dd,pd)=>{this.listIncompleteUploadsQuery(qa,nd,dd,pd,"").on("error",fd=>od(fd)).on("data",fd=>{if(fd.uploads.forEach(md=>{if(md.key===nd&&(!ld||md.initiated.getTime()>ld.initiated.getTime())){ld=md;return}}),fd.isTruncated){ud(fd.nextKeyMarker,fd.nextUploadIdMarker);return}if(ld)return od(null,ld.uploadId);od(null,void 0)})};ud("","")}setBucketNotification(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isObject(nd))throw new TypeError('notification config should be of type "Object"');if(!isFunction(od))throw new TypeError('callback should be of type "function"');var ld="PUT",ud="notification",dd=new xml2js.Builder({rootName:"NotificationConfiguration",renderOpts:{pretty:!1},headless:!0}),pd=dd.buildObject(nd);this.makeRequest({method:ld,bucketName:qa,query:ud},pd,[200],"",!1,od)}removeAllBucketNotification(qa,nd){this.setBucketNotification(qa,new NotificationConfig,nd)}getBucketNotification(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new TypeError('callback should be of type "function"');var od="GET",ld="notification";this.makeRequest({method:od,bucketName:qa,query:ld},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);var pd=getBucketNotificationTransformer(),fd;pipesetup(dd,pd).on("data",md=>fd=md).on("error",md=>nd(md)).on("end",()=>nd(null,fd))})}listenBucketNotification(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isString(nd))throw new TypeError("prefix must be of type string");if(!isString(od))throw new TypeError("suffix must be of type string");if(!Array.isArray(ld))throw new TypeError("events must be of type Array");let ud=new NotificationPoller(this,qa,nd,od,ld);return ud.start(),ud}getBucketVersioning(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new InvalidArgumentError('callback should be of type "function"');var od="GET",ld="versioning";this.makeRequest({method:od,bucketName:qa,query:ld},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);let pd=Buffer$4.from("");pipesetup(dd,bucketVersioningTransformer()).on("data",fd=>{pd=fd}).on("error",nd).on("end",()=>{nd(null,pd)})})}setBucketVersioning(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!Object.keys(nd).length)throw new InvalidArgumentError('versionConfig should be of type "object"');if(!isFunction(od))throw new TypeError('callback should be of type "function"');var ld="PUT",ud="versioning",dd=new xml2js.Builder({rootName:"VersioningConfiguration",renderOpts:{pretty:!1},headless:!0}),pd=dd.buildObject(nd);this.makeRequest({method:ld,bucketName:qa,query:ud},pd,[200],"",!1,od)}setTagging(qa){const{bucketName:nd,objectName:od,tags:ld,putOpts:ud={},cb:dd}=qa,pd="PUT";let fd="tagging";ud&&ud.versionId&&(fd=`${fd}&versionId=${ud.versionId}`);const md=[];for(const[Gd,jd]of Object.entries(ld))md.push({Key:Gd,Value:jd});const vd={Tagging:{TagSet:{Tag:md}}},Ad=new Encoder,Nd={};let kd=new xml2js.Builder({headless:!0,renderOpts:{pretty:!1}}).buildObject(vd);kd=Buffer$4.from(Ad.encode(kd)),Nd["Content-MD5"]=toMd5(kd);const Ld={method:pd,bucketName:nd,query:fd,headers:Nd};od&&(Ld.objectName=od),Nd["Content-MD5"]=toMd5(kd),this.makeRequest(Ld,kd,[200],"",!1,dd)}setBucketTagging(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isObject(nd))throw new InvalidArgumentError('tags should be of type "object"');if(Object.keys(nd).length>10)throw new InvalidArgumentError('maximum tags allowed is 10"');if(!isFunction(od))throw new InvalidArgumentError('callback should be of type "function"');return this.setTagging({bucketName:qa,tags:nd,cb:od})}setObjectTagging(qa,nd,od,ld={},ud){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidBucketNameError("Invalid object name: "+nd);if(isFunction(ld)&&(ud=ld,ld={}),!isObject(od))throw new InvalidArgumentError('tags should be of type "object"');if(Object.keys(od).length>10)throw new InvalidArgumentError('Maximum tags allowed is 10"');if(!isFunction(ud))throw new TypeError('callback should be of type "function"');return this.setTagging({bucketName:qa,objectName:nd,tags:od,putOpts:ld,cb:ud})}removeTagging({bucketName:qa,objectName:nd,removeOpts:od,cb:ld}){const ud="DELETE";let dd="tagging";od&&Object.keys(od).length&&od.versionId&&(dd=`${dd}&versionId=${od.versionId}`);const pd={method:ud,bucketName:qa,objectName:nd,query:dd};nd&&(pd.objectName=nd),this.makeRequest(pd,"",[200,204],"",!0,ld)}removeBucketTagging(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:qa,cb:nd})}removeObjectTagging(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidBucketNameError("Invalid object name: "+nd);if(isFunction(od)&&(ld=od,od={}),od&&Object.keys(od).length&&!isObject(od))throw new InvalidArgumentError('removeOpts should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:qa,objectName:nd,removeOpts:od,cb:ld})}getBucketTagging(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);const ud={method:"GET",bucketName:qa,query:"tagging"};this.makeRequest(ud,"",[200],"",!0,(dd,pd)=>{var fd=getTagsTransformer();if(dd)return nd(dd);let md;pipesetup(pd,fd).on("data",vd=>md=vd).on("error",vd=>nd(vd)).on("end",()=>nd(null,md))})}getObjectTagging(qa,nd,od={},ld=()=>!1){const ud="GET";let dd="tagging";if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidBucketNameError("Invalid object name: "+nd);if(isFunction(od)&&(ld=od,od={}),!isObject(od))throw new InvalidArgumentError('getOpts should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');od&&od.versionId&&(dd=`${dd}&versionId=${od.versionId}`);const pd={method:ud,bucketName:qa,query:dd};nd&&(pd.objectName=nd),this.makeRequest(pd,"",[200],"",!0,(fd,md)=>{const vd=getTagsTransformer();if(fd)return ld(fd);let Ad;pipesetup(md,vd).on("data",Nd=>Ad=Nd).on("error",Nd=>ld(Nd)).on("end",()=>ld(null,Ad))})}applyBucketLifecycle(qa,nd,od){const ld="PUT",ud="lifecycle",dd=new Encoder,pd={};let md=new xml2js.Builder({rootName:"LifecycleConfiguration",headless:!0,renderOpts:{pretty:!1}}).buildObject(nd);md=Buffer$4.from(dd.encode(md));const vd={method:ld,bucketName:qa,query:ud,headers:pd};pd["Content-MD5"]=toMd5(md),this.makeRequest(vd,md,[200],"",!1,od)}removeBucketLifecycle(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);this.makeRequest({method:"DELETE",bucketName:qa,query:"lifecycle"},"",[204],"",!1,nd)}setBucketLifecycle(qa,nd=null,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);_.isEmpty(nd)?this.removeBucketLifecycle(qa,od):this.applyBucketLifecycle(qa,nd,od)}getBucketLifecycle(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);const ud={method:"GET",bucketName:qa,query:"lifecycle"};this.makeRequest(ud,"",[200],"",!0,(dd,pd)=>{const fd=lifecycleTransformer();if(dd)return nd(dd);let md;pipesetup(pd,fd).on("data",vd=>md=vd).on("error",vd=>nd(vd)).on("end",()=>nd(null,md))})}setObjectLockConfig(qa,nd={},od){const ld=[RETENTION_MODES.COMPLIANCE,RETENTION_MODES.GOVERNANCE],ud=[RETENTION_VALIDITY_UNITS.DAYS,RETENTION_VALIDITY_UNITS.YEARS];if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(nd.mode&&!ld.includes(nd.mode))throw new TypeError(`lockConfigOpts.mode should be one of ${ld}`);if(nd.unit&&!ud.includes(nd.unit))throw new TypeError(`lockConfigOpts.unit should be one of ${ud}`);if(nd.validity&&!isNumber(nd.validity))throw new TypeError("lockConfigOpts.validity should be a number");const dd="PUT",pd="object-lock";let fd={ObjectLockEnabled:"Enabled"};const md=Object.keys(nd);if(md.length>0){if(_.difference(md,["unit","mode","validity"]).length!==0)throw new TypeError("lockConfigOpts.mode,lockConfigOpts.unit,lockConfigOpts.validity all the properties should be specified.");fd.Rule={DefaultRetention:{}},nd.mode&&(fd.Rule.DefaultRetention.Mode=nd.mode),nd.unit===RETENTION_VALIDITY_UNITS.DAYS?fd.Rule.DefaultRetention.Days=nd.validity:nd.unit===RETENTION_VALIDITY_UNITS.YEARS&&(fd.Rule.DefaultRetention.Years=nd.validity)}const Ad=new xml2js.Builder({rootName:"ObjectLockConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(fd),Nd={};Nd["Content-MD5"]=toMd5(Ad),this.makeRequest({method:dd,bucketName:qa,query:pd,headers:Nd},Ad,[200],"",!1,od)}getObjectLockConfig(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:qa,query:"object-lock"},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);let pd=Buffer$4.from("");pipesetup(dd,objectLockTransformer()).on("data",fd=>{pd=fd}).on("error",nd).on("end",()=>{nd(null,pd)})})}putObjectRetention(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isObject(od)){if(od.governanceBypass&&!isBoolean(od.governanceBypass))throw new InvalidArgumentError("Invalid value for governanceBypass",od.governanceBypass);if(od.mode&&![RETENTION_MODES.COMPLIANCE,RETENTION_MODES.GOVERNANCE].includes(od.mode))throw new InvalidArgumentError("Invalid object retention mode ",od.mode);if(od.retainUntilDate&&!isString(od.retainUntilDate))throw new InvalidArgumentError("Invalid value for retainUntilDate",od.retainUntilDate);if(od.versionId&&!isString(od.versionId))throw new InvalidArgumentError("Invalid value for versionId",od.versionId)}else throw new InvalidArgumentError('retentionOpts should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');const ud="PUT";let dd="retention";const pd={};od.governanceBypass&&(pd["X-Amz-Bypass-Governance-Retention"]=!0);const fd=new xml2js.Builder({rootName:"Retention",renderOpts:{pretty:!1},headless:!0}),md={};od.mode&&(md.Mode=od.mode),od.retainUntilDate&&(md.RetainUntilDate=od.retainUntilDate),od.versionId&&(dd+=`&versionId=${od.versionId}`);let vd=fd.buildObject(md);pd["Content-MD5"]=toMd5(vd),this.makeRequest({method:ud,bucketName:qa,objectName:nd,query:dd,headers:pd},vd,[200,204],"",!1,ld)}getObjectRetention(qa,nd,od,ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isObject(od)){if(od.versionId&&!isString(od.versionId))throw new InvalidArgumentError('VersionID should be of type "string"')}else throw new InvalidArgumentError('callback should be of type "object"');if(ld&&!isFunction(ld))throw new InvalidArgumentError('callback should be of type "function"');const ud="GET";let dd="retention";od.versionId&&(dd+=`&versionId=${od.versionId}`),this.makeRequest({method:ud,bucketName:qa,objectName:nd,query:dd},"",[200],"",!0,(pd,fd)=>{if(pd)return ld(pd);let md=Buffer$4.from("");pipesetup(fd,objectRetentionTransformer()).on("data",vd=>{md=vd}).on("error",ld).on("end",()=>{ld(null,md)})})}setBucketEncryption(qa,nd,od){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(isFunction(nd)&&(od=nd,nd=null),!_.isEmpty(nd)&&nd.Rule.length>1)throw new InvalidArgumentError("Invalid Rule length. Only one rule is allowed.: "+nd.Rule);if(od&&!isFunction(od))throw new TypeError('callback should be of type "function"');let ld=nd;_.isEmpty(nd)&&(ld={Rule:[{ApplyServerSideEncryptionByDefault:{SSEAlgorithm:"AES256"}}]});let ud="PUT",dd="encryption",fd=new xml2js.Builder({rootName:"ServerSideEncryptionConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(ld);const md={};md["Content-MD5"]=toMd5(fd),this.makeRequest({method:ud,bucketName:qa,query:dd,headers:md},fd,[200],"",!1,od)}getBucketEncryption(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:qa,query:"encryption"},"",[200],"",!0,(ud,dd)=>{if(ud)return nd(ud);let pd=Buffer$4.from("");pipesetup(dd,bucketEncryptionTransformer()).on("data",fd=>{pd=fd}).on("error",nd).on("end",()=>{nd(null,pd)})})}removeBucketEncryption(qa,nd){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isFunction(nd))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:qa,query:"encryption"},"",[204],"",!1,nd)}getObjectLegalHold(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(isFunction(od)&&(ld=od,od={}),isObject(od)){if(Object.keys(od).length>0&&od.versionId&&!isString(od.versionId))throw new TypeError("versionId should be of type string.:",od.versionId)}else throw new TypeError('getOpts should be of type "Object"');if(!isFunction(ld))throw new InvalidArgumentError('callback should be of type "function"');const ud="GET";let dd="legal-hold";od.versionId&&(dd+=`&versionId=${od.versionId}`),this.makeRequest({method:ud,bucketName:qa,objectName:nd,query:dd},"",[200],"",!0,(pd,fd)=>{if(pd)return ld(pd);let md=Buffer$4.from("");pipesetup(fd,objectLegalHoldTransformer()).on("data",vd=>{md=vd}).on("error",ld).on("end",()=>{ld(null,md)})})}setObjectLegalHold(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);const ud={status:LEGAL_HOLD_STATUS.ENABLED};if(isFunction(od)&&(ld=od,od=ud),isObject(od)){if(![LEGAL_HOLD_STATUS.ENABLED,LEGAL_HOLD_STATUS.DISABLED].includes(od.status))throw new TypeError("Invalid status: "+od.status);if(od.versionId&&!od.versionId.length)throw new TypeError("versionId should be of type string.:"+od.versionId)}else throw new TypeError('setOpts should be of type "Object"');if(!isFunction(ld))throw new InvalidArgumentError('callback should be of type "function"');_.isEmpty(od)&&(od={defaultOpts:ud});const dd="PUT";let pd="legal-hold";od.versionId&&(pd+=`&versionId=${od.versionId}`);let fd={Status:od.status};const vd=new xml2js.Builder({rootName:"LegalHold",renderOpts:{pretty:!1},headless:!0}).buildObject(fd),Ad={};Ad["Content-MD5"]=toMd5(vd),this.makeRequest({method:dd,bucketName:qa,objectName:nd,query:pd,headers:Ad},vd,[200],"",!1,ld)}uploadPartCopy(qa,nd){const{bucketName:od,objectName:ld,uploadID:ud,partNumber:dd,headers:pd}=qa,fd="PUT";let md=`uploadId=${ud}&partNumber=${dd}`;const vd={method:fd,bucketName:od,objectName:ld,query:md,headers:pd};return this.makeRequest(vd,"",[200],"",!0,(Ad,Nd)=>{let Od=Buffer$4.from("");if(Ad)return nd(Ad);pipesetup(Nd,uploadPartTransformer()).on("data",kd=>{Od=kd}).on("error",nd).on("end",()=>{let kd={etag:sanitizeETag(Od.ETag),key:ld,part:dd};nd(null,kd)})})}composeObject(qa={},nd=[],od){const ld=this,ud=nd.length;if(!Array.isArray(nd))throw new InvalidArgumentError("sourceConfig should an array of CopySourceOptions ");if(!(qa instanceof CopyDestinationOptions))throw new InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(ud<1||ud>PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new InvalidArgumentError(`"There must be as least one and up to ${PART_CONSTRAINTS.MAX_PARTS_COUNT} source objects.`);if(!isFunction(od))throw new TypeError('callback should be of type "function"');for(let Ad=0;Ad{let Nd={};return _.isEmpty(Ad.VersionID)||(Nd={versionId:Ad.VersionID}),Nd},pd=[];let fd=0,md=0;const vd=nd.map(Ad=>ld.statObject(Ad.Bucket,Ad.Object,dd(Ad)));return Promise.all(vd).then(Ad=>{const Nd=Ad.map((jd,Fd)=>{const Ud=nd[Fd];let qd=jd.size;if(Ud.MatchRange){const zd=Ud.Start,Wd=Ud.End;if(Wd>=qd||zd<0)throw new InvalidArgumentError(`CopySrcOptions ${Fd} has invalid segment-to-copy [${zd}, ${Wd}] (size is ${qd})`);qd=Wd-zd+1}if(qdPART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE)throw new InvalidArgumentError(`Cannot compose an object of size ${fd} (> 5TiB)`);if(pd[Fd]=qd,md+=partsRequired(qd),md>PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new InvalidArgumentError(`Your proposed compose object requires more than ${PART_CONSTRAINTS.MAX_PARTS_COUNT} parts`);return jd});if(md===1&&fd<=PART_CONSTRAINTS.MAX_PART_SIZE||fd===0)return this.copyObject(nd[0],qa,od);for(let jd=0;jdcalculateEvenSplits(pd[Fd],nd[Fd]));function kd(jd){const Fd=[];return Od.forEach((Ud,qd)=>{const{startIndex:zd,endIndex:Wd,objInfo:Jd}=Ud;let _f=qd+1;const Xd=Array.from(zd),pf=nd[qd].getHeaders();Xd.forEach((mf,Sf)=>{let Tf=Wd[Sf];const Af=`${Jd.Bucket}/${Jd.Object}`;pf["x-amz-copy-source"]=`${Af}`,pf["x-amz-copy-source-range"]=`bytes=${mf}-${Tf}`;const Ef={bucketName:qa.Bucket,objectName:qa.Object,uploadID:jd,partNumber:_f,headers:pf,sourceObj:Af};Fd.push(Ef)})}),Fd}const Ld=jd=>{const Fd=kd(jd);index.map(Fd,ld.uploadPartCopy.bind(ld),(Ud,qd)=>{if(Ud){this.abortMultipartUpload(qa.Bucket,qa.Object,jd).then(()=>od(),Wd=>od(Wd));return}const zd=qd.map(Wd=>({etag:Wd.etag,part:Wd.part}));return ld.completeMultipartUpload(qa.Bucket,qa.Object,jd,zd,od)})},Gd=qa.getHeaders();ld.initiateNewMultipartUpload(qa.Bucket,qa.Object,Gd).then(jd=>{Ld(jd)},jd=>{od(jd,null)})}).catch(Ad=>{od(Ad,null)})}selectObjectContent(qa,nd,od={},ld){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name: ${qa}`);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(_.isEmpty(od))throw new TypeError("valid select configuration is required");if(!isString(od.expression))throw new TypeError('sqlExpression should be of type "string"');if(_.isEmpty(od.inputSerialization))throw new TypeError("inputSerialization is required");if(!isObject(od.inputSerialization))throw new TypeError('inputSerialization should be of type "object"');if(_.isEmpty(od.outputSerialization))throw new TypeError("outputSerialization is required");if(!isObject(od.outputSerialization))throw new TypeError('outputSerialization should be of type "object"');if(!isFunction(ld))throw new TypeError('callback should be of type "function"');const ud="POST";let dd="select";dd+="&select-type=2";const pd=[{Expression:od.expression},{ExpressionType:od.expressionType||"SQL"},{InputSerialization:[od.inputSerialization]},{OutputSerialization:[od.outputSerialization]}];od.requestProgress&&pd.push({RequestProgress:od.requestProgress}),od.scanRange&&pd.push({ScanRange:od.scanRange});const md=new xml2js.Builder({rootName:"SelectObjectContentRequest",renderOpts:{pretty:!1},headless:!0}).buildObject(pd);this.makeRequest({method:ud,bucketName:qa,objectName:nd,query:dd},md,[200],"",!0,(vd,Ad)=>{if(vd)return ld(vd);let Nd;pipesetup(Ad,selectObjectContentTransformer()).on("data",Od=>{Nd=parseSelectObjectContentResponse(Od)}).on("error",ld).on("end",()=>{ld(null,Nd)})})}}Client.prototype.makeBucket=promisify(Client.prototype.makeBucket);Client.prototype.bucketExists=promisify(Client.prototype.bucketExists);Client.prototype.getObject=promisify(Client.prototype.getObject);Client.prototype.getPartialObject=promisify(Client.prototype.getPartialObject);Client.prototype.fGetObject=promisify(Client.prototype.fGetObject);Client.prototype.putObject=promisify(Client.prototype.putObject);Client.prototype.fPutObject=promisify(Client.prototype.fPutObject);Client.prototype.copyObject=promisify(Client.prototype.copyObject);Client.prototype.removeObjects=promisify(Client.prototype.removeObjects);Client.prototype.presignedUrl=promisify(Client.prototype.presignedUrl);Client.prototype.presignedGetObject=promisify(Client.prototype.presignedGetObject);Client.prototype.presignedPutObject=promisify(Client.prototype.presignedPutObject);Client.prototype.presignedPostPolicy=promisify(Client.prototype.presignedPostPolicy);Client.prototype.getBucketNotification=promisify(Client.prototype.getBucketNotification);Client.prototype.setBucketNotification=promisify(Client.prototype.setBucketNotification);Client.prototype.removeAllBucketNotification=promisify(Client.prototype.removeAllBucketNotification);Client.prototype.getBucketPolicy=promisify(Client.prototype.getBucketPolicy);Client.prototype.setBucketPolicy=promisify(Client.prototype.setBucketPolicy);Client.prototype.removeIncompleteUpload=promisify(Client.prototype.removeIncompleteUpload);Client.prototype.getBucketVersioning=promisify(Client.prototype.getBucketVersioning);Client.prototype.setBucketVersioning=promisify(Client.prototype.setBucketVersioning);Client.prototype.setBucketTagging=promisify(Client.prototype.setBucketTagging);Client.prototype.removeBucketTagging=promisify(Client.prototype.removeBucketTagging);Client.prototype.getBucketTagging=promisify(Client.prototype.getBucketTagging);Client.prototype.setObjectTagging=promisify(Client.prototype.setObjectTagging);Client.prototype.removeObjectTagging=promisify(Client.prototype.removeObjectTagging);Client.prototype.getObjectTagging=promisify(Client.prototype.getObjectTagging);Client.prototype.setBucketLifecycle=promisify(Client.prototype.setBucketLifecycle);Client.prototype.getBucketLifecycle=promisify(Client.prototype.getBucketLifecycle);Client.prototype.removeBucketLifecycle=promisify(Client.prototype.removeBucketLifecycle);Client.prototype.setObjectLockConfig=promisify(Client.prototype.setObjectLockConfig);Client.prototype.getObjectLockConfig=promisify(Client.prototype.getObjectLockConfig);Client.prototype.putObjectRetention=promisify(Client.prototype.putObjectRetention);Client.prototype.getObjectRetention=promisify(Client.prototype.getObjectRetention);Client.prototype.setBucketEncryption=promisify(Client.prototype.setBucketEncryption);Client.prototype.getBucketEncryption=promisify(Client.prototype.getBucketEncryption);Client.prototype.removeBucketEncryption=promisify(Client.prototype.removeBucketEncryption);Client.prototype.setObjectLegalHold=promisify(Client.prototype.setObjectLegalHold);Client.prototype.getObjectLegalHold=promisify(Client.prototype.getObjectLegalHold);Client.prototype.composeObject=promisify(Client.prototype.composeObject);Client.prototype.selectObjectContent=promisify(Client.prototype.selectObjectContent);Client.prototype.removeObject=callbackify(Client.prototype.removeObject);Client.prototype.statObject=callbackify(Client.prototype.statObject);Client.prototype.removeBucket=callbackify(Client.prototype.removeBucket);Client.prototype.listBuckets=callbackify(Client.prototype.listBuckets);Client.prototype.removeBucketReplication=callbackify(Client.prototype.removeBucketReplication);Client.prototype.setBucketReplication=callbackify(Client.prototype.setBucketReplication);Client.prototype.getBucketReplication=callbackify(Client.prototype.getBucketReplication);var __extends$3=function(){var Ra=function(qa,nd){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(od,ld){od.__proto__=ld}||function(od,ld){for(var ud in ld)ld.hasOwnProperty(ud)&&(od[ud]=ld[ud])},Ra(qa,nd)};return function(qa,nd){Ra(qa,nd);function od(){this.constructor=qa}qa.prototype=nd===null?Object.create(nd):(od.prototype=nd.prototype,new od)}}(),QiniuErrorName;(function(Ra){Ra.InvalidFile="InvalidFile",Ra.InvalidToken="InvalidToken",Ra.InvalidMetadata="InvalidMetadata",Ra.InvalidChunkSize="InvalidChunkSize",Ra.InvalidCustomVars="InvalidCustomVars",Ra.NotAvailableUploadHost="NotAvailableUploadHost",Ra.ReadCacheFailed="ReadCacheFailed",Ra.InvalidCacheData="InvalidCacheData",Ra.WriteCacheFailed="WriteCacheFailed",Ra.RemoveCacheFailed="RemoveCacheFailed",Ra.GetCanvasContextFailed="GetCanvasContextFailed",Ra.UnsupportedFileType="UnsupportedFileType",Ra.FileReaderReadFailed="FileReaderReadFailed",Ra.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",Ra.InvalidProgressEventTarget="InvalidProgressEventTarget",Ra.RequestError="RequestError"})(QiniuErrorName||(QiniuErrorName={}));var QiniuError=function(){function Ra(qa,nd){this.name=qa,this.message=nd,this.stack=new Error().stack}return Ra}(),QiniuRequestError=function(Ra){__extends$3(qa,Ra);function qa(nd,od,ld,ud){var dd=Ra.call(this,QiniuErrorName.RequestError,ld)||this;return dd.code=nd,dd.reqId=od,dd.isRequestError=!0,dd.data=ud,dd}return qa}(QiniuError),QiniuNetworkError=function(Ra){__extends$3(qa,Ra);function qa(nd,od){return od===void 0&&(od=""),Ra.call(this,0,od,nd)||this}return qa}(QiniuRequestError),Pool=function(){function Ra(qa,nd){this.runTask=qa,this.limit=nd,this.aborted=!1,this.queue=[],this.processing=[]}return Ra.prototype.enqueue=function(qa){var nd=this;return new Promise(function(od,ld){nd.queue.push({task:qa,resolve:od,reject:ld}),nd.check()})},Ra.prototype.run=function(qa){var nd=this;this.queue=this.queue.filter(function(od){return od!==qa}),this.processing.push(qa),this.runTask(qa.task).then(function(){nd.processing=nd.processing.filter(function(od){return od!==qa}),qa.resolve(),nd.check()},function(od){return qa.reject(od)})},Ra.prototype.check=function(){var qa=this;if(!this.aborted){var nd=this.processing.length,od=this.limit-nd;this.queue.slice(0,od).forEach(function(ld){qa.run(ld)})}},Ra.prototype.abort=function(){this.queue=[],this.aborted=!0},Ra}(),__extends$2=function(){var Ra=function(qa,nd){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(od,ld){od.__proto__=ld}||function(od,ld){for(var ud in ld)ld.hasOwnProperty(ud)&&(od[ud]=ld[ud])},Ra(qa,nd)};return function(qa,nd){Ra(qa,nd);function od(){this.constructor=qa}qa.prototype=nd===null?Object.create(nd):(od.prototype=nd.prototype,new od)}}(),__assign$6=function(){return __assign$6=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd"u")return"";var qa=Ra+"",nd="",od,ld,ud=0;od=ld=0,ud=qa.length;for(var dd=0;dd127&&pd<2048)fd=String.fromCharCode(pd>>6|192,pd&63|128);else if((pd&63488^55296)>0)fd=String.fromCharCode(pd>>12|224,pd>>6&63|128,pd&63|128);else{if((pd&64512^55296)>0)throw new RangeError("Unmatched trail surrogate at "+dd);var md=qa.charCodeAt(++dd);if((md&64512^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(dd-1));pd=((pd&1023)<<10)+(md&1023)+65536,fd=String.fromCharCode(pd>>18|240,pd>>12&63|128,pd>>6&63|128,pd&63|128)}fd!==null&&(ld>od&&(nd+=qa.slice(od,ld)),nd+=fd,od=ld=dd+1)}return ld>od&&(nd+=qa.slice(od,ud)),nd}function utf8Decode(Ra){var qa=[],nd=0,od=0,ld=0;for(Ra+="";nd>10&1023)),qa.push(String.fromCharCode(56320|od&1023))):qa.push(String.fromCharCode(od)),nd+=ld}return qa.join("")}function base64Encode(Ra){var qa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nd,od,ld,ud,dd,pd,fd,md,vd=0,Ad=0,Nd="",Od=[];if(!Ra)return Ra;Ra=utf8Encode(Ra+"");do nd=Ra.charCodeAt(vd++),od=Ra.charCodeAt(vd++),ld=Ra.charCodeAt(vd++),md=nd<<16|od<<8|ld,ud=md>>18&63,dd=md>>12&63,pd=md>>6&63,fd=md&63,Od[Ad++]=qa.charAt(ud)+qa.charAt(dd)+qa.charAt(pd)+qa.charAt(fd);while(vd>16&255,od=md>>8&255,ld=md&255,pd===64?Od[Ad++]=String.fromCharCode(nd):fd===64?Od[Ad++]=String.fromCharCode(nd,od):Od[Ad++]=String.fromCharCode(nd,od,ld);while(vd>>25)+qd|0,Wd+=(Ud&qd|~Ud&zd)+Fd[1]-389564586|0,Wd=(Wd<<12|Wd>>>20)+Ud|0,zd+=(Wd&Ud|~Wd&qd)+Fd[2]+606105819|0,zd=(zd<<17|zd>>>15)+Wd|0,qd+=(zd&Wd|~zd&Ud)+Fd[3]-1044525330|0,qd=(qd<<22|qd>>>10)+zd|0,Ud+=(qd&zd|~qd&Wd)+Fd[4]-176418897|0,Ud=(Ud<<7|Ud>>>25)+qd|0,Wd+=(Ud&qd|~Ud&zd)+Fd[5]+1200080426|0,Wd=(Wd<<12|Wd>>>20)+Ud|0,zd+=(Wd&Ud|~Wd&qd)+Fd[6]-1473231341|0,zd=(zd<<17|zd>>>15)+Wd|0,qd+=(zd&Wd|~zd&Ud)+Fd[7]-45705983|0,qd=(qd<<22|qd>>>10)+zd|0,Ud+=(qd&zd|~qd&Wd)+Fd[8]+1770035416|0,Ud=(Ud<<7|Ud>>>25)+qd|0,Wd+=(Ud&qd|~Ud&zd)+Fd[9]-1958414417|0,Wd=(Wd<<12|Wd>>>20)+Ud|0,zd+=(Wd&Ud|~Wd&qd)+Fd[10]-42063|0,zd=(zd<<17|zd>>>15)+Wd|0,qd+=(zd&Wd|~zd&Ud)+Fd[11]-1990404162|0,qd=(qd<<22|qd>>>10)+zd|0,Ud+=(qd&zd|~qd&Wd)+Fd[12]+1804603682|0,Ud=(Ud<<7|Ud>>>25)+qd|0,Wd+=(Ud&qd|~Ud&zd)+Fd[13]-40341101|0,Wd=(Wd<<12|Wd>>>20)+Ud|0,zd+=(Wd&Ud|~Wd&qd)+Fd[14]-1502002290|0,zd=(zd<<17|zd>>>15)+Wd|0,qd+=(zd&Wd|~zd&Ud)+Fd[15]+1236535329|0,qd=(qd<<22|qd>>>10)+zd|0,Ud+=(qd&Wd|zd&~Wd)+Fd[1]-165796510|0,Ud=(Ud<<5|Ud>>>27)+qd|0,Wd+=(Ud&zd|qd&~zd)+Fd[6]-1069501632|0,Wd=(Wd<<9|Wd>>>23)+Ud|0,zd+=(Wd&qd|Ud&~qd)+Fd[11]+643717713|0,zd=(zd<<14|zd>>>18)+Wd|0,qd+=(zd&Ud|Wd&~Ud)+Fd[0]-373897302|0,qd=(qd<<20|qd>>>12)+zd|0,Ud+=(qd&Wd|zd&~Wd)+Fd[5]-701558691|0,Ud=(Ud<<5|Ud>>>27)+qd|0,Wd+=(Ud&zd|qd&~zd)+Fd[10]+38016083|0,Wd=(Wd<<9|Wd>>>23)+Ud|0,zd+=(Wd&qd|Ud&~qd)+Fd[15]-660478335|0,zd=(zd<<14|zd>>>18)+Wd|0,qd+=(zd&Ud|Wd&~Ud)+Fd[4]-405537848|0,qd=(qd<<20|qd>>>12)+zd|0,Ud+=(qd&Wd|zd&~Wd)+Fd[9]+568446438|0,Ud=(Ud<<5|Ud>>>27)+qd|0,Wd+=(Ud&zd|qd&~zd)+Fd[14]-1019803690|0,Wd=(Wd<<9|Wd>>>23)+Ud|0,zd+=(Wd&qd|Ud&~qd)+Fd[3]-187363961|0,zd=(zd<<14|zd>>>18)+Wd|0,qd+=(zd&Ud|Wd&~Ud)+Fd[8]+1163531501|0,qd=(qd<<20|qd>>>12)+zd|0,Ud+=(qd&Wd|zd&~Wd)+Fd[13]-1444681467|0,Ud=(Ud<<5|Ud>>>27)+qd|0,Wd+=(Ud&zd|qd&~zd)+Fd[2]-51403784|0,Wd=(Wd<<9|Wd>>>23)+Ud|0,zd+=(Wd&qd|Ud&~qd)+Fd[7]+1735328473|0,zd=(zd<<14|zd>>>18)+Wd|0,qd+=(zd&Ud|Wd&~Ud)+Fd[12]-1926607734|0,qd=(qd<<20|qd>>>12)+zd|0,Ud+=(qd^zd^Wd)+Fd[5]-378558|0,Ud=(Ud<<4|Ud>>>28)+qd|0,Wd+=(Ud^qd^zd)+Fd[8]-2022574463|0,Wd=(Wd<<11|Wd>>>21)+Ud|0,zd+=(Wd^Ud^qd)+Fd[11]+1839030562|0,zd=(zd<<16|zd>>>16)+Wd|0,qd+=(zd^Wd^Ud)+Fd[14]-35309556|0,qd=(qd<<23|qd>>>9)+zd|0,Ud+=(qd^zd^Wd)+Fd[1]-1530992060|0,Ud=(Ud<<4|Ud>>>28)+qd|0,Wd+=(Ud^qd^zd)+Fd[4]+1272893353|0,Wd=(Wd<<11|Wd>>>21)+Ud|0,zd+=(Wd^Ud^qd)+Fd[7]-155497632|0,zd=(zd<<16|zd>>>16)+Wd|0,qd+=(zd^Wd^Ud)+Fd[10]-1094730640|0,qd=(qd<<23|qd>>>9)+zd|0,Ud+=(qd^zd^Wd)+Fd[13]+681279174|0,Ud=(Ud<<4|Ud>>>28)+qd|0,Wd+=(Ud^qd^zd)+Fd[0]-358537222|0,Wd=(Wd<<11|Wd>>>21)+Ud|0,zd+=(Wd^Ud^qd)+Fd[3]-722521979|0,zd=(zd<<16|zd>>>16)+Wd|0,qd+=(zd^Wd^Ud)+Fd[6]+76029189|0,qd=(qd<<23|qd>>>9)+zd|0,Ud+=(qd^zd^Wd)+Fd[9]-640364487|0,Ud=(Ud<<4|Ud>>>28)+qd|0,Wd+=(Ud^qd^zd)+Fd[12]-421815835|0,Wd=(Wd<<11|Wd>>>21)+Ud|0,zd+=(Wd^Ud^qd)+Fd[15]+530742520|0,zd=(zd<<16|zd>>>16)+Wd|0,qd+=(zd^Wd^Ud)+Fd[2]-995338651|0,qd=(qd<<23|qd>>>9)+zd|0,Ud+=(zd^(qd|~Wd))+Fd[0]-198630844|0,Ud=(Ud<<6|Ud>>>26)+qd|0,Wd+=(qd^(Ud|~zd))+Fd[7]+1126891415|0,Wd=(Wd<<10|Wd>>>22)+Ud|0,zd+=(Ud^(Wd|~qd))+Fd[14]-1416354905|0,zd=(zd<<15|zd>>>17)+Wd|0,qd+=(Wd^(zd|~Ud))+Fd[5]-57434055|0,qd=(qd<<21|qd>>>11)+zd|0,Ud+=(zd^(qd|~Wd))+Fd[12]+1700485571|0,Ud=(Ud<<6|Ud>>>26)+qd|0,Wd+=(qd^(Ud|~zd))+Fd[3]-1894986606|0,Wd=(Wd<<10|Wd>>>22)+Ud|0,zd+=(Ud^(Wd|~qd))+Fd[10]-1051523|0,zd=(zd<<15|zd>>>17)+Wd|0,qd+=(Wd^(zd|~Ud))+Fd[1]-2054922799|0,qd=(qd<<21|qd>>>11)+zd|0,Ud+=(zd^(qd|~Wd))+Fd[8]+1873313359|0,Ud=(Ud<<6|Ud>>>26)+qd|0,Wd+=(qd^(Ud|~zd))+Fd[15]-30611744|0,Wd=(Wd<<10|Wd>>>22)+Ud|0,zd+=(Ud^(Wd|~qd))+Fd[6]-1560198380|0,zd=(zd<<15|zd>>>17)+Wd|0,qd+=(Wd^(zd|~Ud))+Fd[13]+1309151649|0,qd=(qd<<21|qd>>>11)+zd|0,Ud+=(zd^(qd|~Wd))+Fd[4]-145523070|0,Ud=(Ud<<6|Ud>>>26)+qd|0,Wd+=(qd^(Ud|~zd))+Fd[11]-1120210379|0,Wd=(Wd<<10|Wd>>>22)+Ud|0,zd+=(Ud^(Wd|~qd))+Fd[2]+718787259|0,zd=(zd<<15|zd>>>17)+Wd|0,qd+=(Wd^(zd|~Ud))+Fd[9]-343485551|0,qd=(qd<<21|qd>>>11)+zd|0,jd[0]=Ud+jd[0]|0,jd[1]=qd+jd[1]|0,jd[2]=zd+jd[2]|0,jd[3]=Wd+jd[3]|0}function ud(jd){var Fd=[],Ud;for(Ud=0;Ud<64;Ud+=4)Fd[Ud>>2]=jd.charCodeAt(Ud)+(jd.charCodeAt(Ud+1)<<8)+(jd.charCodeAt(Ud+2)<<16)+(jd.charCodeAt(Ud+3)<<24);return Fd}function dd(jd){var Fd=[],Ud;for(Ud=0;Ud<64;Ud+=4)Fd[Ud>>2]=jd[Ud]+(jd[Ud+1]<<8)+(jd[Ud+2]<<16)+(jd[Ud+3]<<24);return Fd}function pd(jd){var Fd=jd.length,Ud=[1732584193,-271733879,-1732584194,271733878],qd,zd,Wd,Jd,_f,Xd;for(qd=64;qd<=Fd;qd+=64)ld(Ud,ud(jd.substring(qd-64,qd)));for(jd=jd.substring(qd-64),zd=jd.length,Wd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],qd=0;qd>2]|=jd.charCodeAt(qd)<<(qd%4<<3);if(Wd[qd>>2]|=128<<(qd%4<<3),qd>55)for(ld(Ud,Wd),qd=0;qd<16;qd+=1)Wd[qd]=0;return Jd=Fd*8,Jd=Jd.toString(16).match(/(.*?)(.{0,8})$/),_f=parseInt(Jd[2],16),Xd=parseInt(Jd[1],16)||0,Wd[14]=_f,Wd[15]=Xd,ld(Ud,Wd),Ud}function fd(jd){var Fd=jd.length,Ud=[1732584193,-271733879,-1732584194,271733878],qd,zd,Wd,Jd,_f,Xd;for(qd=64;qd<=Fd;qd+=64)ld(Ud,dd(jd.subarray(qd-64,qd)));for(jd=qd-64>2]|=jd[qd]<<(qd%4<<3);if(Wd[qd>>2]|=128<<(qd%4<<3),qd>55)for(ld(Ud,Wd),qd=0;qd<16;qd+=1)Wd[qd]=0;return Jd=Fd*8,Jd=Jd.toString(16).match(/(.*?)(.{0,8})$/),_f=parseInt(Jd[2],16),Xd=parseInt(Jd[1],16)||0,Wd[14]=_f,Wd[15]=Xd,ld(Ud,Wd),Ud}function md(jd){var Fd="",Ud;for(Ud=0;Ud<4;Ud+=1)Fd+=od[jd>>Ud*8+4&15]+od[jd>>Ud*8&15];return Fd}function vd(jd){var Fd;for(Fd=0;FdWd?new ArrayBuffer(0):(Jd=Wd-zd,_f=new ArrayBuffer(Jd),Xd=new Uint8Array(_f),pf=new Uint8Array(this,zd,Jd),Xd.set(pf),_f)}}();function Ad(jd){return/[\u0080-\uFFFF]/.test(jd)&&(jd=unescape(encodeURIComponent(jd))),jd}function Nd(jd,Fd){var Ud=jd.length,qd=new ArrayBuffer(Ud),zd=new Uint8Array(qd),Wd;for(Wd=0;Wd>2]|=Fd.charCodeAt(qd)<<(qd%4<<3);return this._finish(zd,Ud),Wd=vd(this._hash),jd&&(Wd=Ld(Wd)),this.reset(),Wd},Gd.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Gd.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Gd.prototype.setState=function(jd){return this._buff=jd.buff,this._length=jd.length,this._hash=jd.hash,this},Gd.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Gd.prototype._finish=function(jd,Fd){var Ud=Fd,qd,zd,Wd;if(jd[Ud>>2]|=128<<(Ud%4<<3),Ud>55)for(ld(this._hash,jd),Ud=0;Ud<16;Ud+=1)jd[Ud]=0;qd=this._length*8,qd=qd.toString(16).match(/(.*?)(.{0,8})$/),zd=parseInt(qd[2],16),Wd=parseInt(qd[1],16)||0,jd[14]=zd,jd[15]=Wd,ld(this._hash,jd)},Gd.hash=function(jd,Fd){return Gd.hashBinary(Ad(jd),Fd)},Gd.hashBinary=function(jd,Fd){var Ud=pd(jd),qd=vd(Ud);return Fd?Ld(qd):qd},Gd.ArrayBuffer=function(){this.reset()},Gd.ArrayBuffer.prototype.append=function(jd){var Fd=kd(this._buff.buffer,jd),Ud=Fd.length,qd;for(this._length+=jd.byteLength,qd=64;qd<=Ud;qd+=64)ld(this._hash,dd(Fd.subarray(qd-64,qd)));return this._buff=qd-64>2]|=Fd[zd]<<(zd%4<<3);return this._finish(qd,Ud),Wd=vd(this._hash),jd&&(Wd=Ld(Wd)),this.reset(),Wd},Gd.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Gd.ArrayBuffer.prototype.getState=function(){var jd=Gd.prototype.getState.call(this);return jd.buff=Od(jd.buff),jd},Gd.ArrayBuffer.prototype.setState=function(jd){return jd.buff=Nd(jd.buff,!0),Gd.prototype.setState.call(this,jd)},Gd.ArrayBuffer.prototype.destroy=Gd.prototype.destroy,Gd.ArrayBuffer.prototype._finish=Gd.prototype._finish,Gd.ArrayBuffer.hash=function(jd,Fd){var Ud=fd(new Uint8Array(jd)),qd=vd(Ud);return Fd?Ld(qd):qd},Gd})})(sparkMd5);var sparkMd5Exports=sparkMd5.exports;const SparkMD5=getDefaultExportFromCjs(sparkMd5Exports);var __assign$5=function(){return __assign$5=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]Ra.size)nd=Ra.size;else for(;Ra.size>nd*1e4;)nd*=2;for(var od=[],ld=Math.ceil(Ra.size/nd),ud=0;ud3?qa[1]:qa[0];if(!nd)throw new QiniuError(QiniuErrorName.InvalidToken,"missing assess key field.");var od=null;try{od=JSON.parse(urlSafeBase64Decode(qa[qa.length-1]))}catch{throw new QiniuError(QiniuErrorName.InvalidToken,"token parse failed.")}if(od==null)throw new QiniuError(QiniuErrorName.InvalidToken,"putPolicy is null.");if(od.scope==null)throw new QiniuError(QiniuErrorName.InvalidToken,"scope field is null.");var ld=od.scope.split(":")[0];if(!ld)throw new QiniuError(QiniuErrorName.InvalidToken,"resolve bucketName failed.");return{assessKey:nd,bucketName:ld,scope:od.scope}}function createObjectURL(Ra){var qa=window.URL||window.webkitURL||window.mozURL;return qa.createObjectURL(Ra)}var _a,region={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},regionUphostMap=(_a={},_a[region.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},_a[region.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},_a[region.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},_a[region.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},_a[region.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},_a[region.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},_a),stringifyPrimitive=function(Ra){switch(typeof Ra){case"string":return Ra;case"boolean":return Ra?"true":"false";case"number":return isFinite(Ra)?Ra:"";default:return""}},encode=function(Ra,qa,nd,od){return qa=qa||"&",nd=nd||"=",Ra===null&&(Ra=void 0),typeof Ra=="object"?Object.keys(Ra).map(function(ld){var ud=encodeURIComponent(stringifyPrimitive(ld))+nd;return Array.isArray(Ra[ld])?Ra[ld].map(function(dd){return ud+encodeURIComponent(stringifyPrimitive(dd))}).join(qa):ud+encodeURIComponent(stringifyPrimitive(Ra[ld]))}).filter(Boolean).join(qa):od?encodeURIComponent(stringifyPrimitive(od))+nd+encodeURIComponent(stringifyPrimitive(Ra)):""},stringify;stringify=encode;var __assign$4=function(){return __assign$4=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]0?[2,od+"://"+nd.uphost[0]]:(ld=getPutPolicy(qa),[4,getUpHosts(ld.assessKey,ld.bucketName,od)]);case 1:return ud=pd.sent(),dd=ud.data.up.acc.main,[2,od+"://"+dd[0]]}})})}var __assign$3=function(){return __assign$3=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]0)&&!(ld=od.next()).done;)ud.push(ld.value)}catch(pd){dd={error:pd}}finally{try{ld&&!ld.done&&(nd=od.return)&&nd.call(od)}finally{if(dd)throw dd.error}}return ud},__spread$3=function(){for(var Ra=[],qa=0;qa1e4*GB)return this.handleError(new QiniuError(QiniuErrorName.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!isCustomVarsValid(this.putExtra.customVars))return this.handleError(new QiniuError(QiniuErrorName.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!isMetaDataValid(this.putExtra.metadata))return this.handleError(new QiniuError(QiniuErrorName.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];ud.label=1;case 1:return ud.trys.push([1,4,,5]),this.uploadAt=new Date().getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return ud.sent(),[4,this.run()];case 3:return qa=ud.sent(),this.onComplete(qa.data),this.checkAndUnfreezeHost(),this.sendLog(qa.reqId,200),[2];case 4:return nd=ud.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(nd),nd instanceof QiniuRequestError&&(this.sendLog(nd.reqId,nd.code),this.checkAndFreezeHost(nd),od=++this.retryCount<=this.config.retryCount,ld=RETRY_CODE_LIST.includes(nd.code),ld&&od)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(nd),[3,5]));case 5:return[2]}})})},Ra.prototype.clear=function(){this.xhrList.forEach(function(qa){qa.onreadystatechange=null,qa.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},Ra.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},Ra.prototype.addXhr=function(qa){this.xhrList.push(qa)},Ra.prototype.sendLog=function(qa,nd){var od,ld;this.logger.report({code:nd,reqId:qa,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:getPortFromUrl((od=this.uploadHost)===null||od===void 0?void 0:od.getUrl()),host:getDomainFromUrl((ld=this.uploadHost)===null||ld===void 0?void 0:ld.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor((new Date().getTime()-this.uploadAt)/1e3)})},Ra.prototype.getProgressInfoItem=function(qa,nd,od){return __assign$3({size:nd,loaded:qa,percent:qa/nd*100},od==null?{}:{fromCache:od})},Ra}(),__extends$1=function(){var Ra=function(qa,nd){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(od,ld){od.__proto__=ld}||function(od,ld){for(var ud in ld)ld.hasOwnProperty(ud)&&(od[ud]=ld[ud])},Ra(qa,nd)};return function(qa,nd){Ra(qa,nd);function od(){this.constructor=qa}qa.prototype=nd===null?Object.create(nd):(od.prototype=nd.prototype,new od)}}(),__assign$2=function(){return __assign$2=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]1024)throw new QiniuError(QiniuErrorName.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:fd.sent(),nd=new Pool(function(md){return __awaiter$4(pd,void 0,void 0,function(){return __generator$4(this,function(vd){switch(vd.label){case 0:if(this.aborted)throw nd.abort(),new Error("pool is aborted");return[4,this.uploadChunk(md)];case 1:return vd.sent(),[2]}})})},this.config.concurrentRequestLimit),od=null,ld=this.getLocalKey(),ud=this.chunks.map(function(md,vd){return nd.enqueue({chunk:md,index:vd})}),fd.label=2;case 2:return fd.trys.push([2,5,,6]),[4,Promise.all(ud)];case 3:return fd.sent(),[4,this.mkFileReq()];case 4:return od=fd.sent(),[3,6];case 5:throw dd=fd.sent(),dd instanceof QiniuRequestError&&(dd.code===612||dd.code===400)&&removeLocalFileInfo(ld,this.logger),dd;case 6:return removeLocalFileInfo(ld,this.logger),[2,od]}})})},qa.prototype.uploadChunk=function(nd){return __awaiter$4(this,void 0,void 0,function(){var od,ld,ud,dd,pd,fd,md,vd,Ad,Nd=this;return __generator$4(this,function(Od){switch(Od.label){case 0:return od=nd.index,ld=nd.chunk,ud=this.cachedUploadedList[od],this.logger.info("upload part "+od+", cache:",ud),dd=this.config.checkByMD5,pd=function(){Nd.usedCacheList[od]=!0,Nd.updateChunkProgress(ld.size,od),Nd.uploadedList[od]=ud,Nd.updateLocalCache()},ud&&!dd?(pd(),[2]):[4,computeMd5(ld)];case 1:return fd=Od.sent(),this.logger.info("computed part md5.",fd),ud&&fd===ud.md5?(pd(),[2]):(this.usedCacheList[od]=!1,md=function(kd){Nd.updateChunkProgress(kd.loaded,od)},vd={body:ld,md5:this.config.checkByServer?fd:void 0,onProgress:md,onCreate:function(kd){return Nd.addXhr(kd)}},this.logger.info("part "+od+" start uploading."),[4,uploadChunk(this.token,this.key,nd.index+1,this.getUploadInfo(),vd)]);case 2:return Ad=Od.sent(),this.logger.info("part "+od+" upload completed."),md({loaded:ld.size,total:ld.size}),this.uploadedList[od]={etag:Ad.data.etag,md5:Ad.data.md5,size:ld.size},this.updateLocalCache(),[2]}})})},qa.prototype.mkFileReq=function(){return __awaiter$4(this,void 0,void 0,function(){var nd,od,ld=this;return __generator$4(this,function(ud){switch(ud.label){case 0:return nd=__assign$2(__assign$2(__assign$2({parts:this.uploadedList.map(function(dd,pd){return{etag:dd.etag,partNumber:pd+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",nd),[4,uploadComplete(this.token,this.key,this.getUploadInfo(),{onCreate:function(dd){return ld.addXhr(dd)},body:JSON.stringify(nd)})];case 1:return od=ud.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,od]}})})},qa.prototype.initBeforeUploadChunks=function(){return __awaiter$4(this,void 0,void 0,function(){var nd,od,ld;return __generator$4(this,function(ud){switch(ud.label){case 0:return this.uploadedList=[],this.usedCacheList=[],nd=getLocalFileInfo(this.getLocalKey(),this.logger),nd?[3,2]:(this.logger.info("init upload parts from api."),[4,initUploadParts(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return od=ud.sent(),this.logger.info("initd upload parts of id: "+od.data.uploadId+"."),this.uploadId=od.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:ld=["resume upload parts from local cache,","total "+nd.data.length+" part,","id is "+nd.id+"."],this.logger.info(ld.join(" ")),this.cachedUploadedList=nd.data,this.uploadId=nd.id,ud.label=3;case 3:return this.chunks=getChunks(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(dd){return 0})},this.notifyResumeProgress(),[2]}})})},qa.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},qa.prototype.getLocalKey=function(){return createLocalKey(this.file.name,this.key,this.file.size)},qa.prototype.updateLocalCache=function(){setLocalFileInfo(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},qa.prototype.updateChunkProgress=function(nd,od){this.loaded.chunks[od]=nd,this.notifyResumeProgress()},qa.prototype.updateMkFileProgress=function(nd){this.loaded.mkFileProgress=nd,this.notifyResumeProgress()},qa.prototype.notifyResumeProgress=function(){var nd=this;this.progress={total:this.getProgressInfoItem(sum(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map(function(od,ld){var ud=nd.usedCacheList[ld];return nd.getProgressInfoItem(nd.loaded.chunks[ld],od.size,ud)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},qa}(Base),__awaiter$3=function(Ra,qa,nd,od){function ld(ud){return ud instanceof nd?ud:new nd(function(dd){dd(ud)})}return new(nd||(nd=Promise))(function(ud,dd){function pd(vd){try{md(od.next(vd))}catch(Ad){dd(Ad)}}function fd(vd){try{md(od.throw(vd))}catch(Ad){dd(Ad)}}function md(vd){vd.done?ud(vd.value):ld(vd.value).then(pd,fd)}md((od=od.apply(Ra,qa||[])).next())})},__generator$3=function(Ra,qa){var nd={label:0,sent:function(){if(ud[0]&1)throw ud[1];return ud[1]},trys:[],ops:[]},od,ld,ud,dd;return dd={next:pd(0),throw:pd(1),return:pd(2)},typeof Symbol=="function"&&(dd[Symbol.iterator]=function(){return this}),dd;function pd(md){return function(vd){return fd([md,vd])}}function fd(md){if(od)throw new TypeError("Generator is already executing.");for(;nd;)try{if(od=1,ld&&(ud=md[0]&2?ld.return:md[0]?ld.throw||((ud=ld.return)&&ud.call(ld),0):ld.next)&&!(ud=ud.call(ld,md[1])).done)return ud;switch(ld=0,ud&&(md=[md[0]&2,ud.value]),md[0]){case 0:case 1:ud=md;break;case 4:return nd.label++,{value:md[1],done:!1};case 5:nd.label++,ld=md[1],md=[0];continue;case 7:md=nd.ops.pop(),nd.trys.pop();continue;default:if(ud=nd.trys,!(ud=ud.length>0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]>>1^3988292384:od>>>=1;qa[nd]=od}return qa},Ra.prototype.append=function(qa){for(var nd=this.crc,od=0;od>>8^this.table[(nd^qa[od])&255];this.crc=nd},Ra.prototype.compute=function(){return(this.crc^-1)>>>0},Ra.prototype.readAsUint8Array=function(qa){return __awaiter$3(this,void 0,void 0,function(){var nd;return __generator$3(this,function(od){switch(od.label){case 0:return typeof qa.arrayBuffer!="function"?[3,2]:(nd=Uint8Array.bind,[4,qa.arrayBuffer()]);case 1:return[2,new(nd.apply(Uint8Array,[void 0,od.sent()]))];case 2:return[2,new Promise(function(ld,ud){var dd=new FileReader;dd.onload=function(){if(dd.result==null){ud();return}if(typeof dd.result=="string"){ud();return}ld(new Uint8Array(dd.result))},dd.readAsArrayBuffer(qa)})]}})})},Ra.prototype.file=function(qa){return __awaiter$3(this,void 0,void 0,function(){var nd,od,ld,ud,dd,pd;return __generator$3(this,function(fd){switch(fd.label){case 0:return qa.size<=MB?(nd=this.append,[4,this.readAsUint8Array(qa)]):[3,2];case 1:return nd.apply(this,[fd.sent()]),[2,this.compute()];case 2:od=Math.ceil(qa.size/MB),ld=0,fd.label=3;case 3:return ld0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]0&&reportV3(Ra,qa,nd-1)};var ld=[qa.code||"",qa.reqId||"",qa.host||"",qa.remoteIp||"",qa.port||"",qa.duration||"",qa.time||"",qa.bytesSent||"",qa.upType||"",qa.size||""].join(",");od.send(ld)}var __read$2=function(Ra,qa){var nd=typeof Symbol=="function"&&Ra[Symbol.iterator];if(!nd)return Ra;var od=nd.call(Ra),ld,ud=[],dd;try{for(;(qa===void 0||qa-- >0)&&!(ld=od.next()).done;)ud.push(ld.value)}catch(pd){dd={error:pd}}finally{try{ld&&!ld.done&&(nd=od.return)&&nd.call(od)}finally{if(dd)throw dd.error}}return ud},__spread$2=function(){for(var Ra=[],qa=0;qa0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]0)&&!(ld=od.next()).done;)ud.push(ld.value)}catch(pd){dd={error:pd}}finally{try{ld&&!ld.done&&(nd=od.return)&&nd.call(od)}finally{if(dd)throw dd.error}}return ud},__spread$1=function(){for(var Ra=[],qa=0;qa=qa},Ra.prototype.freeze=function(qa){qa===void 0&&(qa=20);var nd=new Date().getTime()+qa*1e3;unfreezeTimeMap.set(this.host,nd)},Ra.prototype.unfreeze=function(){unfreezeTimeMap.delete(this.host)},Ra.prototype.getUrl=function(){return this.protocol+"://"+this.host},Ra.prototype.getUnfreezeTime=function(){return unfreezeTimeMap.get(this.host)},Ra}(),HostPool=function(){function Ra(qa){qa===void 0&&(qa=[]),this.initHosts=qa,this.cachedHostsMap=new Map}return Ra.prototype.register=function(qa,nd,od,ld){this.cachedHostsMap.set(qa+"@"+nd,od.map(function(ud){return new Host(ud,ld)}))},Ra.prototype.refresh=function(qa,nd,od){var ld,ud,dd,pd;return __awaiter$1(this,void 0,void 0,function(){var fd,md,vd;return __generator$1(this,function(Ad){switch(Ad.label){case 0:return fd=this.cachedHostsMap.get(qa+"@"+nd)||[],fd.length>0?[2]:this.initHosts.length>0?(this.register(qa,nd,this.initHosts,od),[2]):[4,getUpHosts(qa,nd,od)];case 1:return md=Ad.sent(),(md==null?void 0:md.data)!=null&&(vd=__spread$1(((ud=(ld=md.data.up)===null||ld===void 0?void 0:ld.acc)===null||ud===void 0?void 0:ud.main)||[],((pd=(dd=md.data.up)===null||dd===void 0?void 0:dd.acc)===null||pd===void 0?void 0:pd.backup)||[]),this.register(qa,nd,vd,od)),[2]}})})},Ra.prototype.getUp=function(qa,nd,od){return __awaiter$1(this,void 0,void 0,function(){var ld,ud,dd;return __generator$1(this,function(pd){switch(pd.label){case 0:return[4,this.refresh(qa,nd,od)];case 1:return pd.sent(),ld=this.cachedHostsMap.get(qa+"@"+nd)||[],ld.length===0?[2,null]:(ud=ld.filter(function(fd){return!fd.isFrozen()}),ud.length>0?[2,ud[0]]:(dd=ld.slice().sort(function(fd,md){return(fd.getUnfreezeTime()||0)-(md.getUnfreezeTime()||0)}),[2,dd[0]]))}})})},Ra}();function createUploadManager(Ra,qa,nd,od){return Ra.config&&Ra.config.forceDirect?(od.info("ues forceDirect mode."),new Direct(Ra,qa,nd,od)):Ra.file.size>4*MB?(od.info("file size over 4M, use Resume."),new Resume(Ra,qa,nd,od)):(od.info("file size less or equal than 4M, use Direct."),new Direct(Ra,qa,nd,od))}function upload(Ra,qa,nd,od,ld){var ud=new Logger(nd,ld==null?void 0:ld.disableStatisticsReport,ld==null?void 0:ld.debugLogLevel,Ra.name),dd={file:Ra,key:qa,token:nd,putExtra:od,config:normalizeUploadConfig(ld,ud)},pd=new HostPool(dd.config.uphost);return new Observable(function(fd){var md=createUploadManager(dd,{onData:function(vd){return fd.next(vd)},onError:function(vd){return fd.error(vd)},onComplete:function(vd){return fd.complete(vd)}},pd,ud);return md.putFile(),md.stop.bind(md)})}var __assign$1=function(){return __assign$1=Object.assign||function(Ra){for(var qa,nd=1,od=arguments.length;nd0)&&!(ld=od.next()).done;)ud.push(ld.value)}catch(pd){dd={error:pd}}finally{try{ld&&!ld.done&&(nd=od.return)&&nd.call(od)}finally{if(dd)throw dd.error}}return ud},__spread=function(){for(var Ra=[],qa=0;qa0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]this.file.size&&this.config.noCompressIfLarger?[2,{dist:this.file,width:qa.width,height:qa.height}]:[2,{dist:dd,width:ud.width,height:ud.height}]}})})},Ra.prototype.clear=function(qa,nd,od){this.outputType===defaultType?(qa.fillStyle="#fff",qa.fillRect(0,0,nd,od)):qa.clearRect(0,0,nd,od)},Ra.prototype.getOriginImage=function(){var qa=this;return new Promise(function(nd,od){var ld=createObjectURL(qa.file),ud=new Image;ud.onload=function(){nd(ud)},ud.onerror=function(){od("image load error")},ud.src=ld})},Ra.prototype.getCanvas=function(qa){var nd=this;return new Promise(function(od,ld){var ud=document.createElement("canvas"),dd=ud.getContext("2d");if(!dd){ld(new QiniuError(QiniuErrorName.GetCanvasContextFailed,"context is null"));return}var pd=qa.width,fd=qa.height;ud.height=fd,ud.width=pd,nd.clear(dd,pd,fd),dd.drawImage(qa,0,0),od(ud)})},Ra.prototype.doScale=function(qa,nd){return __awaiter(this,void 0,void 0,function(){var od,ld,ud,dd,pd,fd,md,vd,Ad,Nd,Od,kd,Ld,Gd,jd,Fd;return __generator(this,function(Ud){if(nd===1)return[2,qa];if(od=qa.getContext("2d"),ld=Math.min(maxSteps,Math.ceil(1/nd/scaleFactor)),ud=Math.pow(nd,1/ld),dd=document.createElement("canvas"),pd=dd.getContext("2d"),fd=qa.width,md=qa.height,vd=fd,Ad=md,dd.width=fd,dd.height=md,!pd||!od)throw new QiniuError(QiniuErrorName.GetCanvasContextFailed,"mctx or sctx can't be null");for(kd=0;kd=200&&Fd.status<300)ld(Fd.response,Fd);else{var qd=new Error("the request is error");ud(qd)}},Fd.open(kd,nd,fd),Object.keys(Nd).forEach(function(qd){Fd.setRequestHeader(qd,Nd[qd])});try{Fd.send(vd)}catch(qd){ud(qd)}})}}(ajax)),ajax}var utils={},md5={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,function(){var Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qa={rotl:function(nd,od){return nd<>>32-od},rotr:function(nd,od){return nd<<32-od|nd>>>od},endian:function(nd){if(nd.constructor==Number)return qa.rotl(nd,8)&16711935|qa.rotl(nd,24)&4278255360;for(var od=0;od0;nd--)od.push(Math.floor(Math.random()*256));return od},bytesToWords:function(nd){for(var od=[],ld=0,ud=0;ld>>5]|=nd[ld]<<24-ud%32;return od},wordsToBytes:function(nd){for(var od=[],ld=0;ld>>5]>>>24-ld%32&255);return od},bytesToHex:function(nd){for(var od=[],ld=0;ld>>4).toString(16)),od.push((nd[ld]&15).toString(16));return od.join("")},hexToBytes:function(nd){for(var od=[],ld=0;ld>>6*(3-dd)&63)):od.push("=");return od.join("")},base64ToBytes:function(nd){nd=nd.replace(/[^A-Z0-9+\/]/ig,"");for(var od=[],ld=0,ud=0;ld>>6-ud*2);return od}};crypt.exports=qa}()),crypt.exports}var charenc_1,hasRequiredCharenc;function requireCharenc(){if(hasRequiredCharenc)return charenc_1;hasRequiredCharenc=1;var Ra={utf8:{stringToBytes:function(qa){return Ra.bin.stringToBytes(unescape(encodeURIComponent(qa)))},bytesToString:function(qa){return decodeURIComponent(escape(Ra.bin.bytesToString(qa)))}},bin:{stringToBytes:function(qa){for(var nd=[],od=0;od=200&&Fd.status<300)ld(Fd.response,Fd);else{var qd=new Error("the request is error");ud(qd)}},Fd.open(kd,nd,fd),Object.keys(Nd).forEach(function(qd){Fd.setRequestHeader(qd,Nd[qd])});try{Fd.send(vd)}catch(qd){ud(qd)}})}}(ajax)),ajax}var utils={},md5={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,function(){var Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qa={rotl:function(nd,od){return nd<>>32-od},rotr:function(nd,od){return nd<<32-od|nd>>>od},endian:function(nd){if(nd.constructor==Number)return qa.rotl(nd,8)&16711935|qa.rotl(nd,24)&4278255360;for(var od=0;od0;nd--)od.push(Math.floor(Math.random()*256));return od},bytesToWords:function(nd){for(var od=[],ld=0,ud=0;ld>>5]|=nd[ld]<<24-ud%32;return od},wordsToBytes:function(nd){for(var od=[],ld=0;ld>>5]>>>24-ld%32&255);return od},bytesToHex:function(nd){for(var od=[],ld=0;ld>>4).toString(16)),od.push((nd[ld]&15).toString(16));return od.join("")},hexToBytes:function(nd){for(var od=[],ld=0;ld>>6*(3-dd)&63)):od.push("=");return od.join("")},base64ToBytes:function(nd){nd=nd.replace(/[^A-Z0-9+\/]/ig,"");for(var od=[],ld=0,ud=0;ld>>6-ud*2);return od}};crypt.exports=qa}()),crypt.exports}var charenc_1,hasRequiredCharenc;function requireCharenc(){if(hasRequiredCharenc)return charenc_1;hasRequiredCharenc=1;var Ra={utf8:{stringToBytes:function(qa){return Ra.bin.stringToBytes(unescape(encodeURIComponent(qa)))},bytesToString:function(qa){return decodeURIComponent(escape(Ra.bin.bytesToString(qa)))}},bin:{stringToBytes:function(qa){for(var nd=[],od=0;od * @license MIT - */var isBuffer_1,hasRequiredIsBuffer;function requireIsBuffer(){if(hasRequiredIsBuffer)return isBuffer_1;hasRequiredIsBuffer=1,isBuffer_1=function(nd){return nd!=null&&(Ra(nd)||qa(nd)||!!nd._isBuffer)};function Ra(nd){return!!nd.constructor&&typeof nd.constructor.isBuffer=="function"&&nd.constructor.isBuffer(nd)}function qa(nd){return typeof nd.readFloatLE=="function"&&typeof nd.slice=="function"&&Ra(nd.slice(0,0))}return isBuffer_1}var hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(){var Ra=requireCrypt(),qa=requireCharenc().utf8,nd=requireIsBuffer(),od=requireCharenc().bin,ld=function(ud,dd){ud.constructor==String?dd&&dd.encoding==="binary"?ud=od.stringToBytes(ud):ud=qa.stringToBytes(ud):nd(ud)?ud=Array.prototype.slice.call(ud,0):!Array.isArray(ud)&&ud.constructor!==Uint8Array&&(ud=ud.toString());for(var pd=Ra.bytesToWords(ud),fd=ud.length*8,md=1732584193,vd=-271733879,Ad=-1732584194,Nd=271733878,Od=0;Od>>24)&16711935|(pd[Od]<<24|pd[Od]>>>8)&4278255360;pd[fd>>>5]|=128<>>9<<4)+14]=fd;for(var kd=ld._ff,Ld=ld._gg,Gd=ld._hh,Ud=ld._ii,Od=0;Od>>0,vd=vd+jd>>>0,Ad=Ad+qd>>>0,Nd=Nd+zd>>>0}return Ra.endian([md,vd,Ad,Nd])};ld._ff=function(ud,dd,pd,fd,md,vd,Ad){var Nd=ud+(dd&pd|~dd&fd)+(md>>>0)+Ad;return(Nd<>>32-vd)+dd},ld._gg=function(ud,dd,pd,fd,md,vd,Ad){var Nd=ud+(dd&fd|pd&~fd)+(md>>>0)+Ad;return(Nd<>>32-vd)+dd},ld._hh=function(ud,dd,pd,fd,md,vd,Ad){var Nd=ud+(dd^pd^fd)+(md>>>0)+Ad;return(Nd<>>32-vd)+dd},ld._ii=function(ud,dd,pd,fd,md,vd,Ad){var Nd=ud+(pd^(dd|~fd))+(md>>>0)+Ad;return(Nd<>>32-vd)+dd},ld._blocksize=16,ld._digestsize=16,md5.exports=function(ud,dd){if(ud==null)throw new Error("Illegal argument "+ud);var pd=Ra.wordsToBytes(ld(ud,dd));return dd&&dd.asBytes?pd:dd&&dd.asString?od.bytesToString(pd):Ra.bytesToHex(pd)}}()),md5.exports}var digest={exports:{}};/*! ***** BEGIN LICENSE BLOCK ***** + */var isBuffer_1,hasRequiredIsBuffer;function requireIsBuffer(){if(hasRequiredIsBuffer)return isBuffer_1;hasRequiredIsBuffer=1,isBuffer_1=function(nd){return nd!=null&&(Ra(nd)||qa(nd)||!!nd._isBuffer)};function Ra(nd){return!!nd.constructor&&typeof nd.constructor.isBuffer=="function"&&nd.constructor.isBuffer(nd)}function qa(nd){return typeof nd.readFloatLE=="function"&&typeof nd.slice=="function"&&Ra(nd.slice(0,0))}return isBuffer_1}var hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(){var Ra=requireCrypt(),qa=requireCharenc().utf8,nd=requireIsBuffer(),od=requireCharenc().bin,ld=function(ud,dd){ud.constructor==String?dd&&dd.encoding==="binary"?ud=od.stringToBytes(ud):ud=qa.stringToBytes(ud):nd(ud)?ud=Array.prototype.slice.call(ud,0):!Array.isArray(ud)&&ud.constructor!==Uint8Array&&(ud=ud.toString());for(var pd=Ra.bytesToWords(ud),fd=ud.length*8,md=1732584193,vd=-271733879,Ad=-1732584194,Nd=271733878,Od=0;Od>>24)&16711935|(pd[Od]<<24|pd[Od]>>>8)&4278255360;pd[fd>>>5]|=128<>>9<<4)+14]=fd;for(var kd=ld._ff,Ld=ld._gg,Gd=ld._hh,jd=ld._ii,Od=0;Od>>0,vd=vd+Ud>>>0,Ad=Ad+qd>>>0,Nd=Nd+zd>>>0}return Ra.endian([md,vd,Ad,Nd])};ld._ff=function(ud,dd,pd,fd,md,vd,Ad){var Nd=ud+(dd&pd|~dd&fd)+(md>>>0)+Ad;return(Nd<>>32-vd)+dd},ld._gg=function(ud,dd,pd,fd,md,vd,Ad){var Nd=ud+(dd&fd|pd&~fd)+(md>>>0)+Ad;return(Nd<>>32-vd)+dd},ld._hh=function(ud,dd,pd,fd,md,vd,Ad){var Nd=ud+(dd^pd^fd)+(md>>>0)+Ad;return(Nd<>>32-vd)+dd},ld._ii=function(ud,dd,pd,fd,md,vd,Ad){var Nd=ud+(pd^(dd|~fd))+(md>>>0)+Ad;return(Nd<>>32-vd)+dd},ld._blocksize=16,ld._digestsize=16,md5.exports=function(ud,dd){if(ud==null)throw new Error("Illegal argument "+ud);var pd=Ra.wordsToBytes(ld(ud,dd));return dd&&dd.asBytes?pd:dd&&dd.asString?od.bytesToString(pd):Ra.bytesToHex(pd)}}()),md5.exports}var digest={exports:{}};/*! ***** BEGIN LICENSE BLOCK ***** *! *! Copyright 2011-2012, 2014 Jean-Christophe Sirot *! @@ -1258,13 +1269,13 @@ object-assign *! You should have received a copy of the GNU General Public License along with *! digest.js. If not, see http://www.gnu.org/licenses/. *! - *! ***** END LICENSE BLOCK ***** */var hasRequiredDigest;function requireDigest(){return hasRequiredDigest||(hasRequiredDigest=1,function(Ra,qa){(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(nd,od){var ld,ud=new Uint8Array(this);od===void 0&&(od=ud.length);var dd=new ArrayBuffer(od-nd),pd=new Uint8Array(dd);for(ld=0;ld>>31);for(Fd=0;Fd<80;Fd++)Ud=(Ad<<5|Ad>>>27)+Ld+Gd[Fd],Fd<20?Ud+=(Nd&Od|~Nd&kd)+1518500249|0:Fd<40?Ud+=(Nd^Od^kd)+1859775393|0:Fd<60?Ud+=(Nd&Od|Nd&kd|Od&kd)+2400959708|0:Ud+=(Nd^Od^kd)+3395469782|0,Ld=kd,kd=Od,Od=Nd<<30|Nd>>>2,Nd=Ad,Ad=Ud;this.current[0]+=Ad,this.current[1]+=Nd,this.current[2]+=Od,this.current[3]+=kd,this.current[4]+=Ld,this.currentLen+=64},od.prototype.doPadding=function(){var vd=(this.inLen+this.currentLen)*8,Ad=0,Nd=vd&4294967295,Od=this.inLen<=55?55-this.inLen:119-this.inLen,kd=new Uint8Array(new ArrayBuffer(Od+1+8));return kd[0]=128,kd[kd.length-1]=Nd&255,kd[kd.length-2]=Nd>>>8&255,kd[kd.length-3]=Nd>>>16&255,kd[kd.length-4]=Nd>>>24&255,kd[kd.length-5]=Ad&255,kd[kd.length-6]=Ad>>>8&255,kd[kd.length-7]=Ad>>>16&255,kd[kd.length-8]=Ad>>>24&255,kd},od.prototype.getDigest=function(){var vd=new Uint8Array(new ArrayBuffer(20));return vd[3]=this.current[0]&255,vd[2]=this.current[0]>>>8&255,vd[1]=this.current[0]>>>16&255,vd[0]=this.current[0]>>>24&255,vd[7]=this.current[1]&255,vd[6]=this.current[1]>>>8&255,vd[5]=this.current[1]>>>16&255,vd[4]=this.current[1]>>>24&255,vd[11]=this.current[2]&255,vd[10]=this.current[2]>>>8&255,vd[9]=this.current[2]>>>16&255,vd[8]=this.current[2]>>>24&255,vd[15]=this.current[3]&255,vd[14]=this.current[3]>>>8&255,vd[13]=this.current[3]>>>16&255,vd[12]=this.current[3]>>>24&255,vd[19]=this.current[4]&255,vd[18]=this.current[4]>>>8&255,vd[17]=this.current[4]>>>16&255,vd[16]=this.current[4]>>>24&255,vd.buffer},od.prototype.reset=function(){this.currentLen=0,this.inLen=0,this.current=new Uint32Array(new ArrayBuffer(20)),this.current[0]=1732584193,this.current[1]=4023233417,this.current[2]=2562383102,this.current[3]=271733878,this.current[4]=3285377520},od.prototype.blockLen=64,od.prototype.digestLen=20;var ld=function(vd){var Ad=new ArrayBuffer(vd.length),Nd=new Uint8Array(Ad),Od;for(Od=0;Od255)throw"For more than one byte, use an array buffer";if(vd<0)throw"Input value must be positive";return ud(vd)}else throw"Unsupported type"},pd=function(vd){var Ad=function(kd){for(var Ld=kd.length,Gd=0;Ld>0;){var Ud=this.blockLen-this.inLen;Ud>Ld&&(Ud=Ld);var Fd=kd.subarray(Gd,Gd+Ud);this.inbuf.set(Fd,this.inLen),Gd+=Ud,Ld-=Ud,this.inLen+=Ud,this.inLen===this.blockLen&&(this.processBlock(this.inbuf),this.inLen=0)}},Nd=function(){var kd=this.doPadding();this.update(kd);var Ld=this.getDigest();return this.reset(),Ld},Od=function(){if(!vd)throw"Unsupported algorithm: "+vd.toString();vd.prototype.update=Ad,vd.prototype.finalize=Nd;var kd=new vd;return kd.inbuf=new Uint8Array(new ArrayBuffer(kd.blockLen)),kd.reset(),kd}();return{update:function(kd){Od.update(dd(kd))},finalize:function(){return Od.finalize()},digest:function(kd){return Od.update(dd(kd)),Od.finalize()},reset:function(){Od.reset()},digestLength:function(){return Od.digestLen}}},fd=function(vd){var Ad=!1,Nd,Od,kd,Ld=function(){var jd,qd;if(!Ad){if(Nd===void 0)throw"MAC key is not defined";for(Nd.byteLength>64?qd=new Uint8Array(vd.digest(Nd)):qd=new Uint8Array(Nd),Od=new Uint8Array(new ArrayBuffer(64)),jd=0;jdJd[0]?1:Yd[0]"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(Ra,qa,nd){if(native.randomUUID&&!qa&&!Ra)return native.randomUUID();Ra=Ra||{};const od=Ra.random||(Ra.rng||rng)();if(od[6]=od[6]&15|64,od[8]=od[8]&63|128,qa){nd=nd||0;for(let ld=0;ld<16;++ld)qa[nd+ld]=od[ld];return qa}return unsafeStringify(od)}function getConfig(Ra,qa){if(Ra){const ld=qa==="github"?githubConfig:giteeConfig,{username:ud,repoList:dd,branch:pd,accessTokenList:fd}=ld,md=Math.floor(Math.random()*fd.length),vd=fd[md].replace("doocsmd",""),Ad=Math.floor(Math.random()*dd.length),Nd=dd[Ad];return{username:ud,repo:Nd,branch:pd,accessToken:vd}}const nd=JSON.parse(localStorage.getItem(`${qa}Config`)),od=nd.repo.replace(`https://${qa}.com/`,"").replace(`http://${qa}.com/`,"").replace(`${qa}.com/`,"").split("/");return{username:od[0],repo:od[1],branch:nd.branch||"master",accessToken:nd.accessToken}}function getDir(){const Ra=new Date,qa=Ra.getFullYear(),nd=(Ra.getMonth()+1).toString().padStart(2,"0"),od=Ra.getDate().toString().padStart(2,"0");return`${qa}/${nd}/${od}`}function getDateFilename(Ra){const qa=new Date().getTime(),nd=Ra.split(".")[1];return`${qa}-${v4()}.${nd}`}async function ghFileUpload(Ra,qa){var Od;const nd=localStorage.getItem("imgHost")==="default",{username:od,repo:ld,branch:ud,accessToken:dd}=getConfig(nd,"github"),pd=getDir(),fd=`https://api.github.com/repos/${od}/${ld}/contents/${pd}/`,md=getDateFilename(qa),vd=await service({url:fd+md,method:"put",headers:{Authorization:`token ${dd}`},data:{content:Ra,branch:ud,message:`Upload by ${window.location.href}`}}),Ad=`raw.githubusercontent.com/${od}/${ld}/${ud}/`,Nd=`fastly.jsdelivr.net/gh/${od}/${ld}@${ud}/`;return vd.content=((Od=vd.data)==null?void 0:Od.content)||vd.content,nd?vd.content.download_url.replace(Ad,Nd):vd.content.download_url}async function giteeUpload(Ra,qa){var Ad;const nd=localStorage.getItem("imgHost")==="default",{username:od,repo:ld,branch:ud,accessToken:dd}=getConfig(nd,"gitee"),pd=getDir(),fd=getDateFilename(qa),md=`https://gitee.com/api/v5/repos/${od}/${ld}/contents/${pd}/${fd}`,vd=await service({url:md,method:"POST",data:{content:Ra,branch:ud,access_token:dd,message:`Upload by ${window.location.href}`}});return vd.content=((Ad=vd.data)==null?void 0:Ad.content)||vd.content,encodeURI(vd.content.download_url)}function getQiniuToken(Ra,qa,nd){const od=JSON.stringify(nd),ld=base64encode(utf16to8(od)),dd=CryptoJS.HmacSHA1(ld,qa).toString(CryptoJS.enc.Base64);return`${Ra}:${safe64(dd)}:${ld}`}async function qiniuUpload(Ra){const{accessKey:qa,secretKey:nd,bucket:od,region:ld,path:ud,domain:dd}=JSON.parse(localStorage.getItem("qiniuConfig")),pd=getQiniuToken(qa,nd,{scope:od,deadline:Math.trunc(new Date().getTime()/1e3)+3600}),md=(ud?`${ud}/`:"")+getDateFilename(Ra.name),vd=upload(Ra,md,pd,{},{region:ld});return new Promise((Ad,Nd)=>{vd.subscribe({next:Od=>{console.log(Od)},error:Od=>{Nd(Od.message)},complete:Od=>{Ad(`${dd}/${Od.key}`)}})})}async function aliOSSFileUpload(Ra){const qa=getDateFilename(Ra.name),{region:nd,bucket:od,accessKeyId:ld,accessKeySecret:ud,useSSL:dd,cdnHost:pd,path:fd}=JSON.parse(localStorage.getItem("aliOSSConfig")),md=fd?`${fd}/${qa}`:qa,vd=dd===void 0||dd,Ad=vd?"https":"http",Nd=new OSS({region:nd,bucket:od,accessKeyId:ld,accessKeySecret:ud,secure:vd});try{return await Nd.put(md,Ra),pd?`${pd}/${md}`:`${Ad}://${od}.${nd}.aliyuncs.com/${md}`}catch(Od){return Promise.reject(Od)}}async function txCOSFileUpload(Ra){const qa=getDateFilename(Ra.name),{secretId:nd,secretKey:od,bucket:ld,region:ud,path:dd,cdnHost:pd}=JSON.parse(localStorage.getItem("txCOSConfig")),fd=new COS({SecretId:nd,SecretKey:od});return new Promise((md,vd)=>{fd.putObject({Bucket:ld,Region:ud,Key:`${dd}/${qa}`,Body:Ra},(Ad,Nd)=>{Ad?vd(Ad):md(pd?dd===""?`${pd}/${qa}`:`${pd}/${dd}/${qa}`:`https://${Nd.Location}`)})})}async function minioFileUpload(Ra,qa){const nd=getDateFilename(qa),{endpoint:od,port:ld,useSSL:ud,bucket:dd,accessKey:pd,secretKey:fd}=JSON.parse(localStorage.getItem("minioConfig")),md=Buffer$1(Ra,"base64"),vd={endPoint:od,useSSL:ud,accessKey:pd,secretKey:fd},Ad=Number(ld||0),Nd=Ad>0&&Ad!==80&&Ad!==443;return Nd&&(vd.port=Ad),new Promise((Od,kd)=>{const Ld=new Client(vd);try{Ld.putObject(dd,nd,md,Gd=>{Gd&&kd(Gd);const Fd=`${`${ud?"https://":"http://"}${od}${Nd?`:${ld}`:""}`}/${dd}/${nd}`;Od(Fd)})}catch(Gd){kd(Gd)}})}async function getMpToken(Ra,qa,nd){const od=localStorage.getItem(`mpToken:${Ra}`);if(od){const pd=JSON.parse(od);if(pd.expire&&pd.expire>new Date().getTime())return pd.access_token}const ld={method:"POST",data:{grant_type:"client_credential",appid:Ra,secret:qa}};let ud="https://api.weixin.qq.com/cgi-bin/stable_token";nd&&(ud=`${nd}/cgi-bin/stable_token`);const dd=await service(ud,ld);if(dd.access_token){const pd={...dd,expire:new Date().getTime()+dd.expires_in*1e3};return localStorage.setItem(`mpToken:${Ra}`,JSON.stringify(pd)),dd.access_token}return""}async function mpFileUpload(Ra){const{appID:qa,appsecret:nd,proxyOrigin:od}=JSON.parse(localStorage.getItem("mpConfig"));return new Promise(async(ld,ud)=>{try{const dd=await getMpToken(qa,nd,od).catch(Nd=>console.error(Nd));if(!dd){ud(new Error("获取 access_token 失败,请检查console日志"));return}const pd=new FormData;pd.append("media",Ra,Ra.name);const fd={method:"POST",data:pd};let md=`https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=${dd}&type=image`;od&&(md=`${od}/cgi-bin/material/add_material?access_token=${dd}&type=image`);let Ad=(await service(md,fd)).url;od&&window.location.href.startsWith("http")&&(Ad=`https://wsrv.nl?url=${encodeURIComponent(Ad)}`),ld(Ad)}catch(dd){ud(dd)}})}async function r2Upload(Ra){const{accountId:qa,accessKey:nd,secretKey:od,bucket:ld,path:ud,domain:dd}=JSON.parse(localStorage.getItem("r2Config")),fd=(ud?`${ud}/`:"")+getDateFilename(Ra.name),md=new S3Client({region:"auto",endpoint:`https://${qa}.r2.cloudflarestorage.com`,credentials:{accessKeyId:nd,secretAccessKey:od}});return new Promise((vd,Ad)=>{const Nd=new PutObjectCommand({Bucket:ld,Key:fd,ContentType:Ra.type,Body:Ra});md.send(Nd).then(()=>{vd(`${dd}/${fd}`)}).catch(Od=>{Ad(Od)})})}async function formCustomUpload(content,file){const str=` + *! ***** END LICENSE BLOCK ***** */var hasRequiredDigest;function requireDigest(){return hasRequiredDigest||(hasRequiredDigest=1,function(Ra,qa){(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(nd,od){var ld,ud=new Uint8Array(this);od===void 0&&(od=ud.length);var dd=new ArrayBuffer(od-nd),pd=new Uint8Array(dd);for(ld=0;ld>>31);for(Fd=0;Fd<80;Fd++)jd=(Ad<<5|Ad>>>27)+Ld+Gd[Fd],Fd<20?jd+=(Nd&Od|~Nd&kd)+1518500249|0:Fd<40?jd+=(Nd^Od^kd)+1859775393|0:Fd<60?jd+=(Nd&Od|Nd&kd|Od&kd)+2400959708|0:jd+=(Nd^Od^kd)+3395469782|0,Ld=kd,kd=Od,Od=Nd<<30|Nd>>>2,Nd=Ad,Ad=jd;this.current[0]+=Ad,this.current[1]+=Nd,this.current[2]+=Od,this.current[3]+=kd,this.current[4]+=Ld,this.currentLen+=64},od.prototype.doPadding=function(){var vd=(this.inLen+this.currentLen)*8,Ad=0,Nd=vd&4294967295,Od=this.inLen<=55?55-this.inLen:119-this.inLen,kd=new Uint8Array(new ArrayBuffer(Od+1+8));return kd[0]=128,kd[kd.length-1]=Nd&255,kd[kd.length-2]=Nd>>>8&255,kd[kd.length-3]=Nd>>>16&255,kd[kd.length-4]=Nd>>>24&255,kd[kd.length-5]=Ad&255,kd[kd.length-6]=Ad>>>8&255,kd[kd.length-7]=Ad>>>16&255,kd[kd.length-8]=Ad>>>24&255,kd},od.prototype.getDigest=function(){var vd=new Uint8Array(new ArrayBuffer(20));return vd[3]=this.current[0]&255,vd[2]=this.current[0]>>>8&255,vd[1]=this.current[0]>>>16&255,vd[0]=this.current[0]>>>24&255,vd[7]=this.current[1]&255,vd[6]=this.current[1]>>>8&255,vd[5]=this.current[1]>>>16&255,vd[4]=this.current[1]>>>24&255,vd[11]=this.current[2]&255,vd[10]=this.current[2]>>>8&255,vd[9]=this.current[2]>>>16&255,vd[8]=this.current[2]>>>24&255,vd[15]=this.current[3]&255,vd[14]=this.current[3]>>>8&255,vd[13]=this.current[3]>>>16&255,vd[12]=this.current[3]>>>24&255,vd[19]=this.current[4]&255,vd[18]=this.current[4]>>>8&255,vd[17]=this.current[4]>>>16&255,vd[16]=this.current[4]>>>24&255,vd.buffer},od.prototype.reset=function(){this.currentLen=0,this.inLen=0,this.current=new Uint32Array(new ArrayBuffer(20)),this.current[0]=1732584193,this.current[1]=4023233417,this.current[2]=2562383102,this.current[3]=271733878,this.current[4]=3285377520},od.prototype.blockLen=64,od.prototype.digestLen=20;var ld=function(vd){var Ad=new ArrayBuffer(vd.length),Nd=new Uint8Array(Ad),Od;for(Od=0;Od255)throw"For more than one byte, use an array buffer";if(vd<0)throw"Input value must be positive";return ud(vd)}else throw"Unsupported type"},pd=function(vd){var Ad=function(kd){for(var Ld=kd.length,Gd=0;Ld>0;){var jd=this.blockLen-this.inLen;jd>Ld&&(jd=Ld);var Fd=kd.subarray(Gd,Gd+jd);this.inbuf.set(Fd,this.inLen),Gd+=jd,Ld-=jd,this.inLen+=jd,this.inLen===this.blockLen&&(this.processBlock(this.inbuf),this.inLen=0)}},Nd=function(){var kd=this.doPadding();this.update(kd);var Ld=this.getDigest();return this.reset(),Ld},Od=function(){if(!vd)throw"Unsupported algorithm: "+vd.toString();vd.prototype.update=Ad,vd.prototype.finalize=Nd;var kd=new vd;return kd.inbuf=new Uint8Array(new ArrayBuffer(kd.blockLen)),kd.reset(),kd}();return{update:function(kd){Od.update(dd(kd))},finalize:function(){return Od.finalize()},digest:function(kd){return Od.update(dd(kd)),Od.finalize()},reset:function(){Od.reset()},digestLength:function(){return Od.digestLen}}},fd=function(vd){var Ad=!1,Nd,Od,kd,Ld=function(){var Ud,qd;if(!Ad){if(Nd===void 0)throw"MAC key is not defined";for(Nd.byteLength>64?qd=new Uint8Array(vd.digest(Nd)):qd=new Uint8Array(Nd),Od=new Uint8Array(new ArrayBuffer(64)),Ud=0;UdJd[0]?1:Wd[0]"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(Ra,qa,nd){if(native.randomUUID&&!qa&&!Ra)return native.randomUUID();Ra=Ra||{};const od=Ra.random||(Ra.rng||rng)();if(od[6]=od[6]&15|64,od[8]=od[8]&63|128,qa){nd=nd||0;for(let ld=0;ld<16;++ld)qa[nd+ld]=od[ld];return qa}return unsafeStringify(od)}function getConfig(Ra,qa){if(Ra){const ld=qa==="github"?githubConfig:giteeConfig,{username:ud,repoList:dd,branch:pd,accessTokenList:fd}=ld,md=Math.floor(Math.random()*fd.length),vd=fd[md].replace("doocsmd",""),Ad=Math.floor(Math.random()*dd.length),Nd=dd[Ad];return{username:ud,repo:Nd,branch:pd,accessToken:vd}}const nd=JSON.parse(localStorage.getItem(`${qa}Config`)),od=nd.repo.replace(`https://${qa}.com/`,"").replace(`http://${qa}.com/`,"").replace(`${qa}.com/`,"").split("/");return{username:od[0],repo:od[1],branch:nd.branch||"master",accessToken:nd.accessToken}}function getDir(){const Ra=new Date,qa=Ra.getFullYear(),nd=(Ra.getMonth()+1).toString().padStart(2,"0"),od=Ra.getDate().toString().padStart(2,"0");return`${qa}/${nd}/${od}`}function getDateFilename(Ra){const qa=new Date().getTime(),nd=Ra.split(".")[1];return`${qa}-${v4()}.${nd}`}async function ghFileUpload(Ra,qa){var Od;const nd=localStorage.getItem("imgHost")==="default",{username:od,repo:ld,branch:ud,accessToken:dd}=getConfig(nd,"github"),pd=getDir(),fd=`https://api.github.com/repos/${od}/${ld}/contents/${pd}/`,md=getDateFilename(qa),vd=await service({url:fd+md,method:"put",headers:{Authorization:`token ${dd}`},data:{content:Ra,branch:ud,message:`Upload by ${window.location.href}`}}),Ad=`raw.githubusercontent.com/${od}/${ld}/${ud}/`,Nd=`fastly.jsdelivr.net/gh/${od}/${ld}@${ud}/`;return vd.content=((Od=vd.data)==null?void 0:Od.content)||vd.content,nd?vd.content.download_url.replace(Ad,Nd):vd.content.download_url}async function giteeUpload(Ra,qa){var Ad;const nd=localStorage.getItem("imgHost")==="default",{username:od,repo:ld,branch:ud,accessToken:dd}=getConfig(nd,"gitee"),pd=getDir(),fd=getDateFilename(qa),md=`https://gitee.com/api/v5/repos/${od}/${ld}/contents/${pd}/${fd}`,vd=await service({url:md,method:"POST",data:{content:Ra,branch:ud,access_token:dd,message:`Upload by ${window.location.href}`}});return vd.content=((Ad=vd.data)==null?void 0:Ad.content)||vd.content,encodeURI(vd.content.download_url)}function getQiniuToken(Ra,qa,nd){const od=JSON.stringify(nd),ld=base64encode(utf16to8(od)),dd=CryptoJS.HmacSHA1(ld,qa).toString(CryptoJS.enc.Base64);return`${Ra}:${safe64(dd)}:${ld}`}async function qiniuUpload(Ra){const{accessKey:qa,secretKey:nd,bucket:od,region:ld,path:ud,domain:dd}=JSON.parse(localStorage.getItem("qiniuConfig")),pd=getQiniuToken(qa,nd,{scope:od,deadline:Math.trunc(new Date().getTime()/1e3)+3600}),md=(ud?`${ud}/`:"")+getDateFilename(Ra.name),vd=upload(Ra,md,pd,{},{region:ld});return new Promise((Ad,Nd)=>{vd.subscribe({next:Od=>{console.log(Od)},error:Od=>{Nd(Od.message)},complete:Od=>{Ad(`${dd}/${Od.key}`)}})})}async function aliOSSFileUpload(Ra){const qa=getDateFilename(Ra.name),{region:nd,bucket:od,accessKeyId:ld,accessKeySecret:ud,useSSL:dd,cdnHost:pd,path:fd}=JSON.parse(localStorage.getItem("aliOSSConfig")),md=fd?`${fd}/${qa}`:qa,vd=dd===void 0||dd,Ad=vd?"https":"http",Nd=new OSS({region:nd,bucket:od,accessKeyId:ld,accessKeySecret:ud,secure:vd});try{return await Nd.put(md,Ra),pd?`${pd}/${md}`:`${Ad}://${od}.${nd}.aliyuncs.com/${md}`}catch(Od){return Promise.reject(Od)}}async function txCOSFileUpload(Ra){const qa=getDateFilename(Ra.name),{secretId:nd,secretKey:od,bucket:ld,region:ud,path:dd,cdnHost:pd}=JSON.parse(localStorage.getItem("txCOSConfig")),fd=new COS({SecretId:nd,SecretKey:od});return new Promise((md,vd)=>{fd.putObject({Bucket:ld,Region:ud,Key:`${dd}/${qa}`,Body:Ra},(Ad,Nd)=>{Ad?vd(Ad):md(pd?dd===""?`${pd}/${qa}`:`${pd}/${dd}/${qa}`:`https://${Nd.Location}`)})})}async function minioFileUpload(Ra,qa){const nd=getDateFilename(qa),{endpoint:od,port:ld,useSSL:ud,bucket:dd,accessKey:pd,secretKey:fd}=JSON.parse(localStorage.getItem("minioConfig")),md=Buffer$1(Ra,"base64"),vd={endPoint:od,useSSL:ud,accessKey:pd,secretKey:fd},Ad=Number(ld||0),Nd=Ad>0&&Ad!==80&&Ad!==443;return Nd&&(vd.port=Ad),new Promise((Od,kd)=>{const Ld=new Client(vd);try{Ld.putObject(dd,nd,md,Gd=>{Gd&&kd(Gd);const Fd=`${`${ud?"https://":"http://"}${od}${Nd?`:${ld}`:""}`}/${dd}/${nd}`;Od(Fd)})}catch(Gd){kd(Gd)}})}async function getMpToken(Ra,qa,nd){const od=localStorage.getItem(`mpToken:${Ra}`);if(od){const pd=JSON.parse(od);if(pd.expire&&pd.expire>new Date().getTime())return pd.access_token}const ld={method:"POST",data:{grant_type:"client_credential",appid:Ra,secret:qa}};let ud="https://api.weixin.qq.com/cgi-bin/stable_token";nd&&(ud=`${nd}/cgi-bin/stable_token`);const dd=await service(ud,ld);if(dd.access_token){const pd={...dd,expire:new Date().getTime()+dd.expires_in*1e3};return localStorage.setItem(`mpToken:${Ra}`,JSON.stringify(pd)),dd.access_token}return""}async function mpFileUpload(Ra){const{appID:qa,appsecret:nd,proxyOrigin:od}=JSON.parse(localStorage.getItem("mpConfig"));return new Promise(async(ld,ud)=>{try{const dd=await getMpToken(qa,nd,od).catch(Nd=>console.error(Nd));if(!dd){ud(new Error("获取 access_token 失败,请检查console日志"));return}const pd=new FormData;pd.append("media",Ra,Ra.name);const fd={method:"POST",data:pd};let md=`https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=${dd}&type=image`;od&&(md=`${od}/cgi-bin/material/add_material?access_token=${dd}&type=image`);let Ad=(await service(md,fd)).url;od&&window.location.href.startsWith("http")&&(Ad=`https://wsrv.nl?url=${encodeURIComponent(Ad)}`),ld(Ad)}catch(dd){ud(dd)}})}async function r2Upload(Ra){const{accountId:qa,accessKey:nd,secretKey:od,bucket:ld,path:ud,domain:dd}=JSON.parse(localStorage.getItem("r2Config")),fd=(ud?`${ud}/`:"")+getDateFilename(Ra.name),md=new S3Client({region:"auto",endpoint:`https://${qa}.r2.cloudflarestorage.com`,credentials:{accessKeyId:nd,secretAccessKey:od}});return new Promise((vd,Ad)=>{const Nd=new PutObjectCommand({Bucket:ld,Key:fd,ContentType:Ra.type,Body:Ra});md.send(Nd).then(()=>{vd(`${dd}/${fd}`)}).catch(Od=>{Ad(Od)})})}async function formCustomUpload(content,file){const str=` async (CUSTOM_ARG) => { ${localStorage.getItem("formCustomConfig")} } - `;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer:Buffer$1,uuidv4:v4,qiniu,tokenTools,getDir,getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(Ra=>{console.error(Ra),reject(Ra)})})}function fileUpload(Ra,qa){const nd=localStorage.getItem("imgHost");switch(nd||localStorage.setItem("imgHost","default"),nd){case"aliOSS":return aliOSSFileUpload(qa);case"minio":return minioFileUpload(Ra,qa.name);case"txCOS":return txCOSFileUpload(qa);case"qiniu":return qiniuUpload(qa);case"gitee":return giteeUpload(Ra,qa.name);case"github":return ghFileUpload(Ra,qa.name);case"mp":return mpFileUpload(qa);case"r2":return r2Upload(qa);case"formCustom":return formCustomUpload(Ra,qa);default:return ghFileUpload(Ra,qa.name)}}const fileApi={fileUpload},_hoisted_1={class:"container-main flex flex-1 flex-col"},_hoisted_2={class:"container-main-section border-radius-10 relative flex flex-1 overflow-hidden border-1"},_hoisted_3={class:"preview border-x-1 shadow-xl"},_hoisted_4=["innerHTML"],_hoisted_5={key:0,class:"loading-mask"},_hoisted_6={class:"h-[30px] flex select-none items-center justify-end text-[12px]"},_sfc_main$1=defineComponent({__name:"CodemirrorEditor",setup(Ra){const qa=useStore(),nd=useDisplayStore(),{isDark:od,output:ld,editor:ud,readingTime:dd}=storeToRefs(qa),{editorRefresh:pd,exportEditorContent2HTML:fd,exportEditorContent2MD:md,formatContent:vd,importMarkdownContent:Ad,resetStyleConfirm:Nd}=qa,{toggleShowInsertFormDialog:Od,toggleShowUploadImgDialog:kd}=nd,Ld=ref$1(!1),Gd=ref$1(),Ud=ref$1(null);function Fd(){const If=ih=>{let uh,qf;clearTimeout(Gd.value),ih==="preview"?(uh=Ud.value,qf=document.querySelector(".CodeMirror-scroll"),ud.value.off("scroll",Gf),Gd.value=setTimeout(()=>{ud.value.on("scroll",Gf)},300)):(uh=document.querySelector(".CodeMirror-scroll"),qf=Ud.value,qf.removeEventListener("scroll",Jf,!1),Gd.value=setTimeout(()=>{qf.addEventListener("scroll",Jf,!1)},300));const Wf=uh.scrollTop/(uh.scrollHeight-uh.offsetHeight)*(qf.scrollHeight-qf.offsetHeight);qf.scrollTo(0,Wf)};function Gf(){If("editor")}function Jf(){If("preview")}Ud.value.addEventListener("scroll",Jf,!1),ud.value.on("scroll",Gf)}onMounted(()=>{setTimeout(()=>{Fd()},300)});function jd(){pd()}const qd=ref$1(!1),zd=ref$1(!1);function Yd(){zd.value=!0,qd.value=!0}function Jd(){qd.value=!1,setTimeout(()=>{zd.value=!1},800)}function yf(If){const Gf=checkImage(If);if(!Gf.ok)return Ke$1.error(Gf.msg),!1;const Jf=localStorage.getItem("imgHost")||"default";localStorage.setItem("imgHost",Jf);const ih=localStorage.getItem(`${Jf}Config`);return Jf==="default"||ih?!0:(Ke$1.error(`请先配置 ${Jf} 图床参数`),!1)}function Xd(If){if(!If){Ke$1.error("上传图片未知异常");return}kd(!1);const Gf=ud.value.getCursor(),Jf=`![](${If})`;toRaw(qa.editor).replaceSelection(` -${Jf} -`,Gf),Ke$1.success("图片上传成功")}function pf(If,Gf){Ld.value=!0,toBase64$2(If).then(Jf=>fileApi.fileUpload(Jf,If)).then(Jf=>{Gf?Gf(Jf):Xd(Jf)}).catch(Jf=>{Ke$1.error(Jf.message)}).finally(()=>{Ld.value=!1})}const mf=ref$1();watch(od,()=>{var Gf,Jf;const If=od.value?"darcula":"xq-light";(Jf=(Gf=toRaw(ud.value))==null?void 0:Gf.setOption)==null||Jf.call(Gf,"theme",If)});function Tf(){const If=document.querySelector("#editor");If.value||(If.value=qa.posts[qa.currentPostIndex].content),ud.value=CodeMirror.fromTextArea(If,{mode:"text/x-markdown",theme:od.value?"darcula":"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Jf){formatDoc(Jf.getValue()).then(ih=>{Jf.setValue(ih)})},[`${ctrlKey}-B`]:function(Jf){const ih=Jf.getSelection();Jf.replaceSelection(`**${ih}**`)},[`${ctrlKey}-I`]:function(Jf){const ih=Jf.getSelection();Jf.replaceSelection(`*${ih}*`)},[`${ctrlKey}-D`]:function(Jf){const ih=Jf.getSelection();Jf.replaceSelection(`~~${ih}~~`)},[`${ctrlKey}-K`]:function(Jf){const ih=Jf.getSelection();Jf.replaceSelection(`[${ih}]()`)},[`${ctrlKey}-E`]:function(Jf){const ih=Jf.getSelection();Jf.replaceSelection(`\`${ih}\``)},[`${ctrlKey}-L`]:function(Jf){const ih=Jf.getSelection();Jf.replaceSelection(`\`${ih}\``)}}}),ud.value.on("change",Gf=>{clearTimeout(mf.value),mf.value=setTimeout(()=>{jd(),qa.posts[qa.currentPostIndex].content=Gf.getValue()},300)}),ud.value.on("paste",(Gf,Jf)=>{if(!(!(Jf.clipboardData&&Jf.clipboardData.items)||Ld.value))for(let ih=0,uh=Jf.clipboardData.items.length;ih{const Pf=[...uh.str.matchAll(/!\[(.*?)\]\((.*?)\)/g)||[]].filter(Kf=>Kf),Wf=uh.path.match(/.+?\//)[0];(await Promise.all(Pf.map(Kf=>new Promise(Cf=>{let[,,xf]=Kf;xf=xf.replace(/^.\//,"");const{file:Xf}=qf.find(sh=>sh.path===`${Wf}${xf}`)||{};pf(Xf,sh=>{Cf({matchStr:xf,url:sh})})})))).forEach(Kf=>{uh.str=uh.str.replace(`](./${Kf.matchStr})`,`](${Kf.url})`).replace(`](${Kf.matchStr})`,`](${Kf.url})`)}),ud.value.setValue(uh.str)};If.ondragover=uh=>uh.preventDefault(),If.ondrop=async uh=>{uh.preventDefault();for(const qf of uh.dataTransfer.items)qf.getAsFileSystemHandle().then(async Pf=>{if(Pf.kind==="directory"){const Wf=await ih(Pf),Yf=await Jf({list:Wf});Gf({md:Yf,list:Wf})}else{const Wf=await Pf.getFile();console.log("file",Wf)}})};async function Jf({list:uh}){return new Promise(qf=>{const{path:Pf,file:Wf}=uh.find(Kf=>Kf.path.match(/\.md$/)),Yf=new FileReader;Yf.readAsText(Wf,"UTF-8"),Yf.onload=Kf=>{qf({str:Kf.target.result,file:Wf,path:Pf})}})}async function ih(uh){const qf=[];let Pf="";try{const Wf=[uh];for(const Yf of Wf){Pf+=`${Yf.name}/`;for await(const[,Kf]of Yf)Kf.kind==="file"?qf.push({path:Pf+Kf.name,file:await Kf.getFile()}):(qf.push({path:`${Pf+Kf.name}/`}),Wf.push(Kf))}}catch(Wf){console.error(Wf)}return qf}}return onMounted(()=>{Tf(),jd(),Df()}),(If,Gf)=>{var Wh,xh;const Jf=__unplugin_components_0,ih=_sfc_main$C,uh=_sfc_main$I,qf=_sfc_main$J,Pf=_sfc_main$K,Wf=_sfc_main$L,Yf=_sfc_main$M,Kf=_sfc_main$N,Cf=_sfc_main$O,xf=__unplugin_components_9,Xf=_sfc_main$R,sh=_sfc_main$S,Ah=_sfc_main$15,dh=__unplugin_components_13$1,Rf=_sfc_main$1j,gh=_sfc_main$1k,Bh=_sfc_main$1l,th=_sfc_main$1m,$f=_sfc_main$1n,Uf=_sfc_main$1p,Zf=_sfc_main$1q,kh=_sfc_main$1r;return openBlock(),createElementBlock("div",{ref_key:"container",ref:vf,class:"container flex flex-col"},[createVNode(Jf,{onAddFormat:Af,onFormatContent:unref(vd),onStartCopy:Yd,onEndCopy:Jd},null,8,["onFormatContent"]),createBaseVNode("main",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createVNode(ih),createBaseVNode("div",{ref_key:"codeMirrorWrapper",ref:Sf,class:normalizeClass(["codeMirror-wrapper flex-1",{"order-1 border-l":!unref(qa).isEditOnLeft,"border-r":unref(qa).isEditOnLeft}])},[createVNode(Kf,null,{default:withCtx(()=>[createVNode(uh,null,{default:withCtx(()=>Gf[9]||(Gf[9]=[createBaseVNode("textarea",{id:"editor",type:"textarea",placeholder:"Your markdown text here."},null,-1)])),_:1}),createVNode(Yf,{class:"w-64"},{default:withCtx(()=>[createVNode(qf,{inset:"",onClick:Gf[0]||(Gf[0]=pm=>unref(kd)())},{default:withCtx(()=>Gf[10]||(Gf[10]=[createTextVNode(" 上传图片 ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[1]||(Gf[1]=pm=>unref(Od)())},{default:withCtx(()=>Gf[11]||(Gf[11]=[createTextVNode(" 插入表格 ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[2]||(Gf[2]=pm=>unref(Nd)())},{default:withCtx(()=>Gf[12]||(Gf[12]=[createTextVNode(" 恢复默认样式 ")])),_:1}),createVNode(Pf),createVNode(qf,{inset:"",onClick:Gf[3]||(Gf[3]=pm=>unref(Ad)())},{default:withCtx(()=>Gf[13]||(Gf[13]=[createTextVNode(" 导入 .md 文档 ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[4]||(Gf[4]=pm=>unref(md)())},{default:withCtx(()=>Gf[14]||(Gf[14]=[createTextVNode(" 导出 .md 文档 ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[5]||(Gf[5]=pm=>unref(fd)())},{default:withCtx(()=>Gf[15]||(Gf[15]=[createTextVNode(" 导出 .html ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[6]||(Gf[6]=pm=>unref(vd)())},{default:withCtx(()=>[Gf[16]||(Gf[16]=createTextVNode(" 格式化 ")),createVNode(Wf,null,{default:withCtx(()=>[createTextVNode(toDisplayString(unref(altSign))+" + "+toDisplayString(unref(shiftSign))+" + F",1)]),_:1})]),_:1})]),_:1})]),_:1})],2),createBaseVNode("div",{id:"preview",ref_key:"preview",ref:Ud,class:"preview-wrapper flex-1 p-5"},[createBaseVNode("div",{id:"output-wrapper",class:normalizeClass({output_night:!unref(qd)})},[createBaseVNode("div",_hoisted_3,[createBaseVNode("section",{id:"output",innerHTML:unref(ld)},null,8,_hoisted_4),unref(zd)?(openBlock(),createElementBlock("div",_hoisted_5,Gf[17]||(Gf[17]=[createBaseVNode("div",{class:"loading-mask-box"},[createBaseVNode("div",{class:"loading__img"}),createBaseVNode("span",null,"正在生成")],-1)]))):createCommentVNode("",!0)])],2),createVNode(Cf,{target:"preview",right:40,bottom:40})],512),createVNode(xf,{class:"order-2 flex-1"}),createVNode(Xf,{class:"order-2"})]),createBaseVNode("footer",_hoisted_6," 字数 "+toDisplayString((Wh=unref(dd))==null?void 0:Wh.words)+", 阅读大约需 "+toDisplayString(Math.ceil(((xh=unref(dd))==null?void 0:xh.minutes)??0))+" 分钟 ",1),createVNode(sh,{onUploadImage:pf}),createVNode(Ah),createVNode(dh),createVNode(kh,{open:unref(qa).isOpenConfirmDialog,"onUpdate:open":Gf[8]||(Gf[8]=pm=>unref(qa).isOpenConfirmDialog=pm)},{default:withCtx(()=>[createVNode(Zf,null,{default:withCtx(()=>[createVNode(Bh,null,{default:withCtx(()=>[createVNode(Rf,null,{default:withCtx(()=>Gf[18]||(Gf[18]=[createTextVNode("提示")])),_:1}),createVNode(gh,null,{default:withCtx(()=>Gf[19]||(Gf[19]=[createTextVNode(" 此操作将丢失本地自定义样式,是否继续? ")])),_:1})]),_:1}),createVNode(Uf,null,{default:withCtx(()=>[createVNode(th,null,{default:withCtx(()=>Gf[20]||(Gf[20]=[createTextVNode("取消")])),_:1}),createVNode($f,{onClick:Gf[7]||(Gf[7]=pm=>unref(qa).resetStyle())},{default:withCtx(()=>Gf[21]||(Gf[21]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])],512)}}}),CodemirrorEditor=_export_sfc(_sfc_main$1,[["__scopeId","data-v-bc4a5df5"]]),_sfc_main=defineComponent({__name:"App",setup(Ra){return(qa,nd)=>(openBlock(),createBlock(CodemirrorEditor))}});var css={exports:{}};(function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){nd.defineMode("css",function(pf,mf){var Tf=mf.inline;mf.propertyKeywords||(mf=nd.resolveMode("text/css"));var vf=pf.indentUnit,Af=mf.tokenHooks,Sf=mf.documentTypes||{},Df=mf.mediaTypes||{},If=mf.mediaFeatures||{},Gf=mf.mediaValueKeywords||{},Jf=mf.propertyKeywords||{},ih=mf.nonStandardPropertyKeywords||{},uh=mf.fontProperties||{},qf=mf.counterDescriptors||{},Pf=mf.colorKeywords||{},Wf=mf.valueKeywords||{},Yf=mf.allowNested,Kf=mf.lineComment,Cf=mf.supportsAtComponent===!0,xf=pf.highlightNonStandardPropertyKeywords!==!1,Xf,sh;function Ah(xh,pm){return Xf=pm,xh}function dh(xh,pm){var Jh=xh.next();if(Af[Jh]){var Om=Af[Jh](xh,pm);if(Om!==!1)return Om}if(Jh=="@")return xh.eatWhile(/[\w\\\-]/),Ah("def",xh.current());if(Jh=="="||(Jh=="~"||Jh=="|")&&xh.eat("="))return Ah(null,"compare");if(Jh=='"'||Jh=="'")return pm.tokenize=Rf(Jh),pm.tokenize(xh,pm);if(Jh=="#")return xh.eatWhile(/[\w\\\-]/),Ah("atom","hash");if(Jh=="!")return xh.match(/^\s*\w*/),Ah("keyword","important");if(/\d/.test(Jh)||Jh=="."&&xh.eat(/\d/))return xh.eatWhile(/[\w.%]/),Ah("number","unit");if(Jh==="-"){if(/[\d.]/.test(xh.peek()))return xh.eatWhile(/[\w.%]/),Ah("number","unit");if(xh.match(/^-[\w\\\-]*/))return xh.eatWhile(/[\w\\\-]/),xh.match(/^\s*:/,!1)?Ah("variable-2","variable-definition"):Ah("variable-2","variable");if(xh.match(/^\w+-/))return Ah("meta","meta")}else return/[,+>*\/]/.test(Jh)?Ah(null,"select-op"):Jh=="."&&xh.match(/^-?[_a-z][_a-z0-9-]*/i)?Ah("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Jh)?Ah(null,Jh):xh.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(xh.current())&&(pm.tokenize=gh),Ah("variable callee","variable")):/[\w\\\-]/.test(Jh)?(xh.eatWhile(/[\w\\\-]/),Ah("property","word")):Ah(null,null)}function Rf(xh){return function(pm,Jh){for(var Om=!1,Nm;(Nm=pm.next())!=null;){if(Nm==xh&&!Om){xh==")"&&pm.backUp(1);break}Om=!Om&&Nm=="\\"}return(Nm==xh||!Om&&xh!=")")&&(Jh.tokenize=null),Ah("string","string")}}function gh(xh,pm){return xh.next(),xh.match(/^\s*[\"\')]/,!1)?pm.tokenize=null:pm.tokenize=Rf(")"),Ah(null,"(")}function Bh(xh,pm,Jh){this.type=xh,this.indent=pm,this.prev=Jh}function th(xh,pm,Jh,Om){return xh.context=new Bh(Jh,pm.indentation()+(Om===!1?0:vf),xh.context),Jh}function $f(xh){return xh.context.prev&&(xh.context=xh.context.prev),xh.context.type}function Uf(xh,pm,Jh){return Wh[Jh.context.type](xh,pm,Jh)}function Zf(xh,pm,Jh,Om){for(var Nm=Om||1;Nm>0;Nm--)Jh.context=Jh.context.prev;return Uf(xh,pm,Jh)}function kh(xh){var pm=xh.current().toLowerCase();Wf.hasOwnProperty(pm)?sh="atom":Pf.hasOwnProperty(pm)?sh="keyword":sh="variable"}var Wh={};return Wh.top=function(xh,pm,Jh){if(xh=="{")return th(Jh,pm,"block");if(xh=="}"&&Jh.context.prev)return $f(Jh);if(Cf&&/@component/i.test(xh))return th(Jh,pm,"atComponentBlock");if(/^@(-moz-)?document$/i.test(xh))return th(Jh,pm,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(xh))return th(Jh,pm,"atBlock");if(/^@(font-face|counter-style)/i.test(xh))return Jh.stateArg=xh,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(xh))return"keyframes";if(xh&&xh.charAt(0)=="@")return th(Jh,pm,"at");if(xh=="hash")sh="builtin";else if(xh=="word")sh="tag";else{if(xh=="variable-definition")return"maybeprop";if(xh=="interpolation")return th(Jh,pm,"interpolation");if(xh==":")return"pseudo";if(Yf&&xh=="(")return th(Jh,pm,"parens")}return Jh.context.type},Wh.block=function(xh,pm,Jh){if(xh=="word"){var Om=pm.current().toLowerCase();return Jf.hasOwnProperty(Om)?(sh="property","maybeprop"):ih.hasOwnProperty(Om)?(sh=xf?"string-2":"property","maybeprop"):Yf?(sh=pm.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(sh+=" error","maybeprop")}else return xh=="meta"?"block":!Yf&&(xh=="hash"||xh=="qualifier")?(sh="error","block"):Wh.top(xh,pm,Jh)},Wh.maybeprop=function(xh,pm,Jh){return xh==":"?th(Jh,pm,"prop"):Uf(xh,pm,Jh)},Wh.prop=function(xh,pm,Jh){if(xh==";")return $f(Jh);if(xh=="{"&&Yf)return th(Jh,pm,"propBlock");if(xh=="}"||xh=="{")return Zf(xh,pm,Jh);if(xh=="(")return th(Jh,pm,"parens");if(xh=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(pm.current()))sh+=" error";else if(xh=="word")kh(pm);else if(xh=="interpolation")return th(Jh,pm,"interpolation");return"prop"},Wh.propBlock=function(xh,pm,Jh){return xh=="}"?$f(Jh):xh=="word"?(sh="property","maybeprop"):Jh.context.type},Wh.parens=function(xh,pm,Jh){return xh=="{"||xh=="}"?Zf(xh,pm,Jh):xh==")"?$f(Jh):xh=="("?th(Jh,pm,"parens"):xh=="interpolation"?th(Jh,pm,"interpolation"):(xh=="word"&&kh(pm),"parens")},Wh.pseudo=function(xh,pm,Jh){return xh=="meta"?"pseudo":xh=="word"?(sh="variable-3",Jh.context.type):Uf(xh,pm,Jh)},Wh.documentTypes=function(xh,pm,Jh){return xh=="word"&&Sf.hasOwnProperty(pm.current())?(sh="tag",Jh.context.type):Wh.atBlock(xh,pm,Jh)},Wh.atBlock=function(xh,pm,Jh){if(xh=="(")return th(Jh,pm,"atBlock_parens");if(xh=="}"||xh==";")return Zf(xh,pm,Jh);if(xh=="{")return $f(Jh)&&th(Jh,pm,Yf?"block":"top");if(xh=="interpolation")return th(Jh,pm,"interpolation");if(xh=="word"){var Om=pm.current().toLowerCase();Om=="only"||Om=="not"||Om=="and"||Om=="or"?sh="keyword":Df.hasOwnProperty(Om)?sh="attribute":If.hasOwnProperty(Om)?sh="property":Gf.hasOwnProperty(Om)?sh="keyword":Jf.hasOwnProperty(Om)?sh="property":ih.hasOwnProperty(Om)?sh=xf?"string-2":"property":Wf.hasOwnProperty(Om)?sh="atom":Pf.hasOwnProperty(Om)?sh="keyword":sh="error"}return Jh.context.type},Wh.atComponentBlock=function(xh,pm,Jh){return xh=="}"?Zf(xh,pm,Jh):xh=="{"?$f(Jh)&&th(Jh,pm,Yf?"block":"top",!1):(xh=="word"&&(sh="error"),Jh.context.type)},Wh.atBlock_parens=function(xh,pm,Jh){return xh==")"?$f(Jh):xh=="{"||xh=="}"?Zf(xh,pm,Jh,2):Wh.atBlock(xh,pm,Jh)},Wh.restricted_atBlock_before=function(xh,pm,Jh){return xh=="{"?th(Jh,pm,"restricted_atBlock"):xh=="word"&&Jh.stateArg=="@counter-style"?(sh="variable","restricted_atBlock_before"):Uf(xh,pm,Jh)},Wh.restricted_atBlock=function(xh,pm,Jh){return xh=="}"?(Jh.stateArg=null,$f(Jh)):xh=="word"?(Jh.stateArg=="@font-face"&&!uh.hasOwnProperty(pm.current().toLowerCase())||Jh.stateArg=="@counter-style"&&!qf.hasOwnProperty(pm.current().toLowerCase())?sh="error":sh="property","maybeprop"):"restricted_atBlock"},Wh.keyframes=function(xh,pm,Jh){return xh=="word"?(sh="variable","keyframes"):xh=="{"?th(Jh,pm,"top"):Uf(xh,pm,Jh)},Wh.at=function(xh,pm,Jh){return xh==";"?$f(Jh):xh=="{"||xh=="}"?Zf(xh,pm,Jh):(xh=="word"?sh="tag":xh=="hash"&&(sh="builtin"),"at")},Wh.interpolation=function(xh,pm,Jh){return xh=="}"?$f(Jh):xh=="{"||xh==";"?Zf(xh,pm,Jh):(xh=="word"?sh="variable":xh!="variable"&&xh!="("&&xh!=")"&&(sh="error"),"interpolation")},{startState:function(xh){return{tokenize:null,state:Tf?"block":"top",stateArg:null,context:new Bh(Tf?"block":"top",xh||0,null)}},token:function(xh,pm){if(!pm.tokenize&&xh.eatSpace())return null;var Jh=(pm.tokenize||dh)(xh,pm);return Jh&&typeof Jh=="object"&&(Xf=Jh[1],Jh=Jh[0]),sh=Jh,Xf!="comment"&&(pm.state=Wh[pm.state](Xf,xh,pm)),sh},indent:function(xh,pm){var Jh=xh.context,Om=pm&&pm.charAt(0),Nm=Jh.indent;return Jh.type=="prop"&&(Om=="}"||Om==")")&&(Jh=Jh.prev),Jh.prev&&(Om=="}"&&(Jh.type=="block"||Jh.type=="top"||Jh.type=="interpolation"||Jh.type=="restricted_atBlock")?(Jh=Jh.prev,Nm=Jh.indent):(Om==")"&&(Jh.type=="parens"||Jh.type=="atBlock_parens")||Om=="{"&&(Jh.type=="at"||Jh.type=="atBlock"))&&(Nm=Math.max(0,Jh.indent-vf))),Nm},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Kf,fold:"brace"}});function od(pf){for(var mf={},Tf=0;Tf!?|~^@]/,kd=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Ld(Sh){for(var sm=!1,Wm,rg=!1;(Wm=Sh.next())!=null;){if(!sm){if(Wm=="/"&&!rg)return;Wm=="["?rg=!0:rg&&Wm=="]"&&(rg=!1)}sm=!sm&&Wm=="\\"}}var Gd,Ud;function Fd(Sh,sm,Wm){return Gd=Sh,Ud=Wm,sm}function jd(Sh,sm){var Wm=Sh.next();if(Wm=='"'||Wm=="'")return sm.tokenize=qd(Wm),sm.tokenize(Sh,sm);if(Wm=="."&&Sh.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Fd("number","number");if(Wm=="."&&Sh.match(".."))return Fd("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Wm))return Fd(Wm);if(Wm=="="&&Sh.eat(">"))return Fd("=>","operator");if(Wm=="0"&&Sh.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Fd("number","number");if(/\d/.test(Wm))return Sh.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Fd("number","number");if(Wm=="/")return Sh.eat("*")?(sm.tokenize=zd,zd(Sh,sm)):Sh.eat("/")?(Sh.skipToEnd(),Fd("comment","comment")):Ug(Sh,sm,1)?(Ld(Sh),Sh.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Fd("regexp","string-2")):(Sh.eat("="),Fd("operator","operator",Sh.current()));if(Wm=="`")return sm.tokenize=Yd,Yd(Sh,sm);if(Wm=="#"&&Sh.peek()=="!")return Sh.skipToEnd(),Fd("meta","meta");if(Wm=="#"&&Sh.eatWhile(Ad))return Fd("variable","property");if(Wm=="<"&&Sh.match("!--")||Wm=="-"&&Sh.match("->")&&!/\S/.test(Sh.string.slice(0,Sh.start)))return Sh.skipToEnd(),Fd("comment","comment");if(Od.test(Wm))return(Wm!=">"||!sm.lexical||sm.lexical.type!=">")&&(Sh.eat("=")?(Wm=="!"||Wm=="=")&&Sh.eat("="):/[<>*+\-|&?]/.test(Wm)&&(Sh.eat(Wm),Wm==">"&&Sh.eat(Wm))),Wm=="?"&&Sh.eat(".")?Fd("."):Fd("operator","operator",Sh.current());if(Ad.test(Wm)){Sh.eatWhile(Ad);var rg=Sh.current();if(sm.lastType!="."){if(Nd.propertyIsEnumerable(rg)){var jm=Nd[rg];return Fd(jm.type,jm.style,rg)}if(rg=="async"&&Sh.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Fd("async","keyword",rg)}return Fd("variable","variable",rg)}}function qd(Sh){return function(sm,Wm){var rg=!1,jm;if(pd&&sm.peek()=="@"&&sm.match(kd))return Wm.tokenize=jd,Fd("jsonld-keyword","meta");for(;(jm=sm.next())!=null&&!(jm==Sh&&!rg);)rg=!rg&&jm=="\\";return rg||(Wm.tokenize=jd),Fd("string","string")}}function zd(Sh,sm){for(var Wm=!1,rg;rg=Sh.next();){if(rg=="/"&&Wm){sm.tokenize=jd;break}Wm=rg=="*"}return Fd("comment","comment")}function Yd(Sh,sm){for(var Wm=!1,rg;(rg=Sh.next())!=null;){if(!Wm&&(rg=="`"||rg=="$"&&Sh.eat("{"))){sm.tokenize=jd;break}Wm=!Wm&&rg=="\\"}return Fd("quasi","string-2",Sh.current())}var Jd="([{}])";function yf(Sh,sm){sm.fatArrowAt&&(sm.fatArrowAt=null);var Wm=Sh.string.indexOf("=>",Sh.start);if(!(Wm<0)){if(vd){var rg=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Sh.string.slice(Sh.start,Wm));rg&&(Wm=rg.index)}for(var jm=0,_g=!1,t_=Wm-1;t_>=0;--t_){var R_=Sh.string.charAt(t_),G_=Jd.indexOf(R_);if(G_>=0&&G_<3){if(!jm){++t_;break}if(--jm==0){R_=="("&&(_g=!0);break}}else if(G_>=3&&G_<6)++jm;else if(Ad.test(R_))_g=!0;else if(/["'\/`]/.test(R_))for(;;--t_){if(t_==0)return;var Tb=Sh.string.charAt(t_-1);if(Tb==R_&&Sh.string.charAt(t_-2)!="\\"){t_--;break}}else if(_g&&!jm){++t_;break}}_g&&!jm&&(sm.fatArrowAt=t_)}}var Xd={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function pf(Sh,sm,Wm,rg,jm,_g){this.indented=Sh,this.column=sm,this.type=Wm,this.prev=jm,this.info=_g,rg!=null&&(this.align=rg)}function mf(Sh,sm){if(!md)return!1;for(var Wm=Sh.localVars;Wm;Wm=Wm.next)if(Wm.name==sm)return!0;for(var rg=Sh.context;rg;rg=rg.prev)for(var Wm=rg.vars;Wm;Wm=Wm.next)if(Wm.name==sm)return!0}function Tf(Sh,sm,Wm,rg,jm){var _g=Sh.cc;for(vf.state=Sh,vf.stream=jm,vf.marked=null,vf.cc=_g,vf.style=sm,Sh.lexical.hasOwnProperty("align")||(Sh.lexical.align=!0);;){var t_=_g.length?_g.pop():fd?Ah:Xf;if(t_(Wm,rg)){for(;_g.length&&_g[_g.length-1].lex;)_g.pop()();return vf.marked?vf.marked:Wm=="variable"&&mf(Sh,rg)?"variable-2":sm}}}var vf={state:null,column:null,marked:null,cc:null};function Af(){for(var Sh=arguments.length-1;Sh>=0;Sh--)vf.cc.push(arguments[Sh])}function Sf(){return Af.apply(null,arguments),!0}function Df(Sh,sm){for(var Wm=sm;Wm;Wm=Wm.next)if(Wm.name==Sh)return!0;return!1}function If(Sh){var sm=vf.state;if(vf.marked="def",!!md){if(sm.context){if(sm.lexical.info=="var"&&sm.context&&sm.context.block){var Wm=Gf(Sh,sm.context);if(Wm!=null){sm.context=Wm;return}}else if(!Df(Sh,sm.localVars)){sm.localVars=new uh(Sh,sm.localVars);return}}ld.globalVars&&!Df(Sh,sm.globalVars)&&(sm.globalVars=new uh(Sh,sm.globalVars))}}function Gf(Sh,sm){if(sm)if(sm.block){var Wm=Gf(Sh,sm.prev);return Wm?Wm==sm.prev?sm:new ih(Wm,sm.vars,!0):null}else return Df(Sh,sm.vars)?sm:new ih(sm.prev,new uh(Sh,sm.vars),!1);else return null}function Jf(Sh){return Sh=="public"||Sh=="private"||Sh=="protected"||Sh=="abstract"||Sh=="readonly"}function ih(Sh,sm,Wm){this.prev=Sh,this.vars=sm,this.block=Wm}function uh(Sh,sm){this.name=Sh,this.next=sm}var qf=new uh("this",new uh("arguments",null));function Pf(){vf.state.context=new ih(vf.state.context,vf.state.localVars,!1),vf.state.localVars=qf}function Wf(){vf.state.context=new ih(vf.state.context,vf.state.localVars,!0),vf.state.localVars=null}Pf.lex=Wf.lex=!0;function Yf(){vf.state.localVars=vf.state.context.vars,vf.state.context=vf.state.context.prev}Yf.lex=!0;function Kf(Sh,sm){var Wm=function(){var rg=vf.state,jm=rg.indented;if(rg.lexical.type=="stat")jm=rg.lexical.indented;else for(var _g=rg.lexical;_g&&_g.type==")"&&_g.align;_g=_g.prev)jm=_g.indented;rg.lexical=new pf(jm,vf.stream.column(),Sh,null,rg.lexical,sm)};return Wm.lex=!0,Wm}function Cf(){var Sh=vf.state;Sh.lexical.prev&&(Sh.lexical.type==")"&&(Sh.indented=Sh.lexical.indented),Sh.lexical=Sh.lexical.prev)}Cf.lex=!0;function xf(Sh){function sm(Wm){return Wm==Sh?Sf():Sh==";"||Wm=="}"||Wm==")"||Wm=="]"?Af():Sf(sm)}return sm}function Xf(Sh,sm){return Sh=="var"?Sf(Kf("vardef",sm),C_,xf(";"),Cf):Sh=="keyword a"?Sf(Kf("form"),Rf,Xf,Cf):Sh=="keyword b"?Sf(Kf("form"),Xf,Cf):Sh=="keyword d"?vf.stream.match(/^\s*$/,!1)?Sf():Sf(Kf("stat"),Bh,xf(";"),Cf):Sh=="debugger"?Sf(xf(";")):Sh=="{"?Sf(Kf("}"),Wf,Lf,Cf,Yf):Sh==";"?Sf():Sh=="if"?(vf.state.lexical.info=="else"&&vf.state.cc[vf.state.cc.length-1]==Cf&&vf.state.cc.pop()(),Sf(Kf("form"),Rf,Xf,Cf,lg)):Sh=="function"?Sf(Bf):Sh=="for"?Sf(Kf("form"),Wf,vb,Xf,Yf,Cf):Sh=="class"||vd&&sm=="interface"?(vf.marked="keyword",Sf(Kf("form",Sh=="class"?Sh:sm),om,Cf)):Sh=="variable"?vd&&sm=="declare"?(vf.marked="keyword",Sf(Xf)):vd&&(sm=="module"||sm=="enum"||sm=="type")&&vf.stream.match(/^\s*\w/,!1)?(vf.marked="keyword",sm=="enum"?Sf(sg):sm=="type"?Sf(Ch,xf("operator"),Lm,xf(";")):Sf(Kf("form"),o_,xf("{"),Kf("}"),Lf,Cf,Cf)):vd&&sm=="namespace"?(vf.marked="keyword",Sf(Kf("form"),Ah,Xf,Cf)):vd&&sm=="abstract"?(vf.marked="keyword",Sf(Xf)):Sf(Kf("stat"),Om):Sh=="switch"?Sf(Kf("form"),Rf,xf("{"),Kf("}","switch"),Wf,Lf,Cf,Cf,Yf):Sh=="case"?Sf(Ah,xf(":")):Sh=="default"?Sf(xf(":")):Sh=="catch"?Sf(Kf("form"),Pf,sh,Xf,Cf,Yf):Sh=="export"?Sf(Kf("stat"),Hm,Cf):Sh=="import"?Sf(Kf("stat"),Tg,Cf):Sh=="async"?Sf(Xf):sm=="@"?Sf(Ah,Xf):Af(Kf("stat"),Ah,xf(";"),Cf)}function sh(Sh){if(Sh=="(")return Sf(Mh,xf(")"))}function Ah(Sh,sm){return gh(Sh,sm,!1)}function dh(Sh,sm){return gh(Sh,sm,!0)}function Rf(Sh){return Sh!="("?Af():Sf(Kf(")"),Bh,xf(")"),Cf)}function gh(Sh,sm,Wm){if(vf.state.fatArrowAt==vf.stream.start){var rg=Wm?Wh:kh;if(Sh=="(")return Sf(Pf,Kf(")"),yh(Mh,")"),Cf,xf("=>"),rg,Yf);if(Sh=="variable")return Af(Pf,o_,xf("=>"),rg,Yf)}var jm=Wm?$f:th;return Xd.hasOwnProperty(Sh)?Sf(jm):Sh=="function"?Sf(Bf,jm):Sh=="class"||vd&&sm=="interface"?(vf.marked="keyword",Sf(Kf("form"),dm,Cf)):Sh=="keyword c"||Sh=="async"?Sf(Wm?dh:Ah):Sh=="("?Sf(Kf(")"),Bh,xf(")"),Cf,jm):Sh=="operator"||Sh=="spread"?Sf(Wm?dh:Ah):Sh=="["?Sf(Kf("]"),Kg,Cf,jm):Sh=="{"?jf(mm,"}",null,jm):Sh=="quasi"?Af(Uf,jm):Sh=="new"?Sf(xh(Wm)):Sf()}function Bh(Sh){return Sh.match(/[;\}\)\],]/)?Af():Af(Ah)}function th(Sh,sm){return Sh==","?Sf(Bh):$f(Sh,sm,!1)}function $f(Sh,sm,Wm){var rg=Wm==!1?th:$f,jm=Wm==!1?Ah:dh;if(Sh=="=>")return Sf(Pf,Wm?Wh:kh,Yf);if(Sh=="operator")return/\+\+|--/.test(sm)||vd&&sm=="!"?Sf(rg):vd&&sm=="<"&&vf.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?Sf(Kf(">"),yh(Lm,">"),Cf,rg):sm=="?"?Sf(Ah,xf(":"),jm):Sf(jm);if(Sh=="quasi")return Af(Uf,rg);if(Sh!=";"){if(Sh=="(")return jf(dh,")","call",rg);if(Sh==".")return Sf(Nm,rg);if(Sh=="[")return Sf(Kf("]"),Bh,xf("]"),Cf,rg);if(vd&&sm=="as")return vf.marked="keyword",Sf(Lm,rg);if(Sh=="regexp")return vf.state.lastType=vf.marked="operator",vf.stream.backUp(vf.stream.pos-vf.stream.start-1),Sf(jm)}}function Uf(Sh,sm){return Sh!="quasi"?Af():sm.slice(sm.length-2)!="${"?Sf(Uf):Sf(Bh,Zf)}function Zf(Sh){if(Sh=="}")return vf.marked="string-2",vf.state.tokenize=Yd,Sf(Uf)}function kh(Sh){return yf(vf.stream,vf.state),Af(Sh=="{"?Xf:Ah)}function Wh(Sh){return yf(vf.stream,vf.state),Af(Sh=="{"?Xf:dh)}function xh(Sh){return function(sm){return sm=="."?Sf(Sh?Jh:pm):sm=="variable"&&vd?Sf(Yg,Sh?$f:th):Af(Sh?dh:Ah)}}function pm(Sh,sm){if(sm=="target")return vf.marked="keyword",Sf(th)}function Jh(Sh,sm){if(sm=="target")return vf.marked="keyword",Sf($f)}function Om(Sh){return Sh==":"?Sf(Cf,Xf):Af(th,xf(";"),Cf)}function Nm(Sh){if(Sh=="variable")return vf.marked="property",Sf()}function mm(Sh,sm){if(Sh=="async")return vf.marked="property",Sf(mm);if(Sh=="variable"||vf.style=="keyword"){if(vf.marked="property",sm=="get"||sm=="set")return Sf(Pm);var Wm;return vd&&vf.state.fatArrowAt==vf.stream.start&&(Wm=vf.stream.match(/^\s*:\s*/,!1))&&(vf.state.fatArrowAt=vf.stream.pos+Wm[0].length),Sf(Vm)}else{if(Sh=="number"||Sh=="string")return vf.marked=pd?"property":vf.style+" property",Sf(Vm);if(Sh=="jsonld-keyword")return Sf(Vm);if(vd&&Jf(sm))return vf.marked="keyword",Sf(mm);if(Sh=="[")return Sf(Ah,_h,xf("]"),Vm);if(Sh=="spread")return Sf(dh,Vm);if(sm=="*")return vf.marked="keyword",Sf(mm);if(Sh==":")return Af(Vm)}}function Pm(Sh){return Sh!="variable"?Af(Vm):(vf.marked="property",Sf(Bf))}function Vm(Sh){if(Sh==":")return Sf(dh);if(Sh=="(")return Af(Bf)}function yh(Sh,sm,Wm){function rg(jm,_g){if(Wm?Wm.indexOf(jm)>-1:jm==","){var t_=vf.state.lexical;return t_.info=="call"&&(t_.pos=(t_.pos||0)+1),Sf(function(R_,G_){return R_==sm||G_==sm?Af():Af(Sh)},rg)}return jm==sm||_g==sm?Sf():Wm&&Wm.indexOf(";")>-1?Af(Sh):Sf(xf(sm))}return function(jm,_g){return jm==sm||_g==sm?Sf():Af(Sh,rg)}}function jf(Sh,sm,Wm){for(var rg=3;rg"),Lm);if(Sh=="quasi")return Af(og,p_)}function Jm(Sh){if(Sh=="=>")return Sf(Lm)}function Gm(Sh){return Sh.match(/[\}\)\]]/)?Sf():Sh==","||Sh==";"?Sf(Gm):Af(Eg,Gm)}function Eg(Sh,sm){if(Sh=="variable"||vf.style=="keyword")return vf.marked="property",Sf(Eg);if(sm=="?"||Sh=="number"||Sh=="string")return Sf(Eg);if(Sh==":")return Sf(Lm);if(Sh=="[")return Sf(xf("variable"),Oh,xf("]"),Eg);if(Sh=="(")return Af(Fh,Eg);if(!Sh.match(/[;\}\)\],]/))return Sf()}function og(Sh,sm){return Sh!="quasi"?Af():sm.slice(sm.length-2)!="${"?Sf(og):Sf(Lm,Cg)}function Cg(Sh){if(Sh=="}")return vf.marked="string-2",vf.state.tokenize=Yd,Sf(og)}function jg(Sh,sm){return Sh=="variable"&&vf.stream.match(/^\s*[?:]/,!1)||sm=="?"?Sf(jg):Sh==":"?Sf(Lm):Sh=="spread"?Sf(jg):Af(Lm)}function p_(Sh,sm){if(sm=="<")return Sf(Kf(">"),yh(Lm,">"),Cf,p_);if(sm=="|"||Sh=="."||sm=="&")return Sf(Lm);if(Sh=="[")return Sf(Lm,xf("]"),p_);if(sm=="extends"||sm=="implements")return vf.marked="keyword",Sf(Lm);if(sm=="?")return Sf(Lm,xf(":"),Lm)}function Yg(Sh,sm){if(sm=="<")return Sf(Kf(">"),yh(Lm,">"),Cf,p_)}function i_(){return Af(Lm,$g)}function $g(Sh,sm){if(sm=="=")return Sf(Lm)}function C_(Sh,sm){return sm=="enum"?(vf.marked="keyword",Sf(sg)):Af(o_,_h,h_,b_)}function o_(Sh,sm){if(vd&&Jf(sm))return vf.marked="keyword",Sf(o_);if(Sh=="variable")return If(sm),Sf();if(Sh=="spread")return Sf(o_);if(Sh=="[")return jf(B_,"]");if(Sh=="{")return jf(M_,"}")}function M_(Sh,sm){return Sh=="variable"&&!vf.stream.match(/^\s*:/,!1)?(If(sm),Sf(h_)):(Sh=="variable"&&(vf.marked="property"),Sh=="spread"?Sf(o_):Sh=="}"?Af():Sh=="["?Sf(Ah,xf("]"),xf(":"),M_):Sf(xf(":"),o_,h_))}function B_(){return Af(o_,h_)}function h_(Sh,sm){if(sm=="=")return Sf(dh)}function b_(Sh){if(Sh==",")return Sf(C_)}function lg(Sh,sm){if(Sh=="keyword b"&&sm=="else")return Sf(Kf("form","else"),Xf,Cf)}function vb(Sh,sm){if(sm=="await")return Sf(vb);if(Sh=="(")return Sf(Kf(")"),kb,Cf)}function kb(Sh){return Sh=="var"?Sf(C_,Z_):Sh=="variable"?Sf(Z_):Af(Z_)}function Z_(Sh,sm){return Sh==")"?Sf():Sh==";"?Sf(Z_):sm=="in"||sm=="of"?(vf.marked="keyword",Sf(Ah,Z_)):Af(Ah,Z_)}function Bf(Sh,sm){if(sm=="*")return vf.marked="keyword",Sf(Bf);if(Sh=="variable")return If(sm),Sf(Bf);if(Sh=="(")return Sf(Pf,Kf(")"),yh(Mh,")"),Cf,um,Xf,Yf);if(vd&&sm=="<")return Sf(Kf(">"),yh(i_,">"),Cf,Bf)}function Fh(Sh,sm){if(sm=="*")return vf.marked="keyword",Sf(Fh);if(Sh=="variable")return If(sm),Sf(Fh);if(Sh=="(")return Sf(Pf,Kf(")"),yh(Mh,")"),Cf,um,Yf);if(vd&&sm=="<")return Sf(Kf(">"),yh(i_,">"),Cf,Fh)}function Ch(Sh,sm){if(Sh=="keyword"||Sh=="variable")return vf.marked="type",Sf(Ch);if(sm=="<")return Sf(Kf(">"),yh(i_,">"),Cf)}function Mh(Sh,sm){return sm=="@"&&Sf(Ah,Mh),Sh=="spread"?Sf(Mh):vd&&Jf(sm)?(vf.marked="keyword",Sf(Mh)):vd&&Sh=="this"?Sf(_h,h_):Af(o_,_h,h_)}function dm(Sh,sm){return Sh=="variable"?om(Sh,sm):Tm(Sh,sm)}function om(Sh,sm){if(Sh=="variable")return If(sm),Sf(Tm)}function Tm(Sh,sm){if(sm=="<")return Sf(Kf(">"),yh(i_,">"),Cf,Tm);if(sm=="extends"||sm=="implements"||vd&&Sh==",")return sm=="implements"&&(vf.marked="keyword"),Sf(vd?Lm:Ah,Tm);if(Sh=="{")return Sf(Kf("}"),_m,Cf)}function _m(Sh,sm){if(Sh=="async"||Sh=="variable"&&(sm=="static"||sm=="get"||sm=="set"||vd&&Jf(sm))&&vf.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return vf.marked="keyword",Sf(_m);if(Sh=="variable"||vf.style=="keyword")return vf.marked="property",Sf(Xh,_m);if(Sh=="number"||Sh=="string")return Sf(Xh,_m);if(Sh=="[")return Sf(Ah,_h,xf("]"),Xh,_m);if(sm=="*")return vf.marked="keyword",Sf(_m);if(vd&&Sh=="(")return Af(Fh,_m);if(Sh==";"||Sh==",")return Sf(_m);if(Sh=="}")return Sf();if(sm=="@")return Sf(Ah,_m)}function Xh(Sh,sm){if(sm=="!"||sm=="?")return Sf(Xh);if(Sh==":")return Sf(Lm,h_);if(sm=="=")return Sf(dh);var Wm=vf.state.lexical.prev,rg=Wm&&Wm.info=="interface";return Af(rg?Fh:Bf)}function Hm(Sh,sm){return sm=="*"?(vf.marked="keyword",Sf(l_,xf(";"))):sm=="default"?(vf.marked="keyword",Sf(Ah,xf(";"))):Sh=="{"?Sf(yh(Ym,"}"),l_,xf(";")):Af(Xf)}function Ym(Sh,sm){if(sm=="as")return vf.marked="keyword",Sf(xf("variable"));if(Sh=="variable")return Af(dh,Ym)}function Tg(Sh){return Sh=="string"?Sf():Sh=="("?Af(Ah):Sh=="."?Af(th):Af(Zm,Ag,l_)}function Zm(Sh,sm){return Sh=="{"?jf(Zm,"}"):(Sh=="variable"&&If(sm),sm=="*"&&(vf.marked="keyword"),Sf(u_))}function Ag(Sh){if(Sh==",")return Sf(Zm,Ag)}function u_(Sh,sm){if(sm=="as")return vf.marked="keyword",Sf(Zm)}function l_(Sh,sm){if(sm=="from")return vf.marked="keyword",Sf(Ah)}function Kg(Sh){return Sh=="]"?Sf():Af(yh(dh,"]"))}function sg(){return Af(Kf("form"),o_,xf("{"),Kf("}"),yh(D_,"}"),Cf,Cf)}function D_(){return Af(o_,h_)}function Jg(Sh,sm){return Sh.lastType=="operator"||Sh.lastType==","||Od.test(sm.charAt(0))||/[,.]/.test(sm.charAt(0))}function Ug(Sh,sm,Wm){return sm.tokenize==jd&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(sm.lastType)||sm.lastType=="quasi"&&/\{\s*$/.test(Sh.string.slice(0,Sh.pos-(Wm||0)))}return{startState:function(Sh){var sm={tokenize:jd,lastType:"sof",cc:[],lexical:new pf((Sh||0)-ud,0,"block",!1),localVars:ld.localVars,context:ld.localVars&&new ih(null,null,!1),indented:Sh||0};return ld.globalVars&&typeof ld.globalVars=="object"&&(sm.globalVars=ld.globalVars),sm},token:function(Sh,sm){if(Sh.sol()&&(sm.lexical.hasOwnProperty("align")||(sm.lexical.align=!1),sm.indented=Sh.indentation(),yf(Sh,sm)),sm.tokenize!=zd&&Sh.eatSpace())return null;var Wm=sm.tokenize(Sh,sm);return Gd=="comment"?Wm:(sm.lastType=Gd=="operator"&&(Ud=="++"||Ud=="--")?"incdec":Gd,Tf(sm,Wm,Gd,Ud,Sh))},indent:function(Sh,sm){if(Sh.tokenize==zd||Sh.tokenize==Yd)return nd.Pass;if(Sh.tokenize!=jd)return 0;var Wm=sm&&sm.charAt(0),rg=Sh.lexical,jm;if(!/^\s*else\b/.test(sm))for(var _g=Sh.cc.length-1;_g>=0;--_g){var t_=Sh.cc[_g];if(t_==Cf)rg=rg.prev;else if(t_!=lg&&t_!=Yf)break}for(;(rg.type=="stat"||rg.type=="form")&&(Wm=="}"||(jm=Sh.cc[Sh.cc.length-1])&&(jm==th||jm==$f)&&!/^[,\.=+\-*:?[\(]/.test(sm));)rg=rg.prev;dd&&rg.type==")"&&rg.prev.type=="stat"&&(rg=rg.prev);var R_=rg.type,G_=Wm==R_;return R_=="vardef"?rg.indented+(Sh.lastType=="operator"||Sh.lastType==","?rg.info.length+1:0):R_=="form"&&Wm=="{"?rg.indented:R_=="form"?rg.indented+ud:R_=="stat"?rg.indented+(Jg(Sh,sm)?dd||ud:0):rg.info=="switch"&&!G_&&ld.doubleIndentSwitch!=!1?rg.indented+(/^(?:case|default)\b/.test(sm)?ud:2*ud):rg.align?rg.column+(G_?0:1):rg.indented+(G_?0:ud)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:fd?null:"/*",blockCommentEnd:fd?null:"*/",blockCommentContinue:fd?null:" * ",lineComment:fd?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:fd?"json":"javascript",jsonldMode:pd,jsonMode:fd,expressionAllowed:Ug,skipExpression:function(Sh){Tf(Sh,"atom","atom","true",new nd.StringStream("",2,null))}}}),nd.registerHelper("wordChars","javascript",/[\w$]/),nd.defineMIME("text/javascript","javascript"),nd.defineMIME("text/ecmascript","javascript"),nd.defineMIME("application/javascript","javascript"),nd.defineMIME("application/x-javascript","javascript"),nd.defineMIME("application/ecmascript","javascript"),nd.defineMIME("application/json",{name:"javascript",json:!0}),nd.defineMIME("application/x-json",{name:"javascript",json:!0}),nd.defineMIME("application/manifest+json",{name:"javascript",json:!0}),nd.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),nd.defineMIME("text/typescript",{name:"javascript",typescript:!0}),nd.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var xml={exports:{}},hasRequiredXml;function requireXml(){return hasRequiredXml||(hasRequiredXml=1,function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){var od={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ld={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};nd.defineMode("xml",function(ud,dd){var pd=ud.indentUnit,fd={},md=dd.htmlMode?od:ld;for(var vd in md)fd[vd]=md[vd];for(var vd in dd)fd[vd]=dd[vd];var Ad,Nd;function Od(Sf,Df){function If(ih){return Df.tokenize=ih,ih(Sf,Df)}var Gf=Sf.next();if(Gf=="<")return Sf.eat("!")?Sf.eat("[")?Sf.match("CDATA[")?If(Gd("atom","]]>")):null:Sf.match("--")?If(Gd("comment","-->")):Sf.match("DOCTYPE",!0,!0)?(Sf.eatWhile(/[\w\._\-]/),If(Ud(1))):null:Sf.eat("?")?(Sf.eatWhile(/[\w\._\-]/),Df.tokenize=Gd("meta","?>"),"meta"):(Ad=Sf.eat("/")?"closeTag":"openTag",Df.tokenize=kd,"tag bracket");if(Gf=="&"){var Jf;return Sf.eat("#")?Sf.eat("x")?Jf=Sf.eatWhile(/[a-fA-F\d]/)&&Sf.eat(";"):Jf=Sf.eatWhile(/[\d]/)&&Sf.eat(";"):Jf=Sf.eatWhile(/[\w\.\-:]/)&&Sf.eat(";"),Jf?"atom":"error"}else return Sf.eatWhile(/[^&<]/),null}Od.isInText=!0;function kd(Sf,Df){var If=Sf.next();if(If==">"||If=="/"&&Sf.eat(">"))return Df.tokenize=Od,Ad=If==">"?"endTag":"selfcloseTag","tag bracket";if(If=="=")return Ad="equals",null;if(If=="<"){Df.tokenize=Od,Df.state=Yd,Df.tagName=Df.tagStart=null;var Gf=Df.tokenize(Sf,Df);return Gf?Gf+" tag error":"tag error"}else return/[\'\"]/.test(If)?(Df.tokenize=Ld(If),Df.stringStartCol=Sf.column(),Df.tokenize(Sf,Df)):(Sf.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ld(Sf){var Df=function(If,Gf){for(;!If.eol();)if(If.next()==Sf){Gf.tokenize=kd;break}return"string"};return Df.isInAttribute=!0,Df}function Gd(Sf,Df){return function(If,Gf){for(;!If.eol();){if(If.match(Df)){Gf.tokenize=Od;break}If.next()}return Sf}}function Ud(Sf){return function(Df,If){for(var Gf;(Gf=Df.next())!=null;){if(Gf=="<")return If.tokenize=Ud(Sf+1),If.tokenize(Df,If);if(Gf==">")if(Sf==1){If.tokenize=Od;break}else return If.tokenize=Ud(Sf-1),If.tokenize(Df,If)}return"meta"}}function Fd(Sf){return Sf&&Sf.toLowerCase()}function jd(Sf,Df,If){this.prev=Sf.context,this.tagName=Df||"",this.indent=Sf.indented,this.startOfLine=If,(fd.doNotIndent.hasOwnProperty(Df)||Sf.context&&Sf.context.noIndent)&&(this.noIndent=!0)}function qd(Sf){Sf.context&&(Sf.context=Sf.context.prev)}function zd(Sf,Df){for(var If;;){if(!Sf.context||(If=Sf.context.tagName,!fd.contextGrabbers.hasOwnProperty(Fd(If))||!fd.contextGrabbers[Fd(If)].hasOwnProperty(Fd(Df))))return;qd(Sf)}}function Yd(Sf,Df,If){return Sf=="openTag"?(If.tagStart=Df.column(),Jd):Sf=="closeTag"?yf:Yd}function Jd(Sf,Df,If){return Sf=="word"?(If.tagName=Df.current(),Nd="tag",mf):fd.allowMissingTagName&&Sf=="endTag"?(Nd="tag bracket",mf(Sf,Df,If)):(Nd="error",Jd)}function yf(Sf,Df,If){if(Sf=="word"){var Gf=Df.current();return If.context&&If.context.tagName!=Gf&&fd.implicitlyClosed.hasOwnProperty(Fd(If.context.tagName))&&qd(If),If.context&&If.context.tagName==Gf||fd.matchClosing===!1?(Nd="tag",Xd):(Nd="tag error",pf)}else return fd.allowMissingTagName&&Sf=="endTag"?(Nd="tag bracket",Xd(Sf,Df,If)):(Nd="error",pf)}function Xd(Sf,Df,If){return Sf!="endTag"?(Nd="error",Xd):(qd(If),Yd)}function pf(Sf,Df,If){return Nd="error",Xd(Sf,Df,If)}function mf(Sf,Df,If){if(Sf=="word")return Nd="attribute",Tf;if(Sf=="endTag"||Sf=="selfcloseTag"){var Gf=If.tagName,Jf=If.tagStart;return If.tagName=If.tagStart=null,Sf=="selfcloseTag"||fd.autoSelfClosers.hasOwnProperty(Fd(Gf))?zd(If,Gf):(zd(If,Gf),If.context=new jd(If,Gf,Jf==If.indented)),Yd}return Nd="error",mf}function Tf(Sf,Df,If){return Sf=="equals"?vf:(fd.allowMissing||(Nd="error"),mf(Sf,Df,If))}function vf(Sf,Df,If){return Sf=="string"?Af:Sf=="word"&&fd.allowUnquoted?(Nd="string",mf):(Nd="error",mf(Sf,Df,If))}function Af(Sf,Df,If){return Sf=="string"?Af:mf(Sf,Df,If)}return{startState:function(Sf){var Df={tokenize:Od,state:Yd,indented:Sf||0,tagName:null,tagStart:null,context:null};return Sf!=null&&(Df.baseIndent=Sf),Df},token:function(Sf,Df){if(!Df.tagName&&Sf.sol()&&(Df.indented=Sf.indentation()),Sf.eatSpace())return null;Ad=null;var If=Df.tokenize(Sf,Df);return(If||Ad)&&If!="comment"&&(Nd=null,Df.state=Df.state(Ad||If,Sf,Df),Nd&&(If=Nd=="error"?If+" error":Nd)),If},indent:function(Sf,Df,If){var Gf=Sf.context;if(Sf.tokenize.isInAttribute)return Sf.tagStart==Sf.indented?Sf.stringStartCol+1:Sf.indented+pd;if(Gf&&Gf.noIndent)return nd.Pass;if(Sf.tokenize!=kd&&Sf.tokenize!=Od)return If?If.match(/^(\s*)/)[0].length:0;if(Sf.tagName)return fd.multilineTagIndentPastTag!==!1?Sf.tagStart+Sf.tagName.length+2:Sf.tagStart+pd*(fd.multilineTagIndentFactor||1);if(fd.alignCDATA&&/$/,blockCommentStart:"",configuration:fd.htmlMode?"html":"xml",helperType:fd.htmlMode?"html":"xml",skipAttribute:function(Sf){Sf.state==vf&&(Sf.state=mf)},xmlCurrentTag:function(Sf){return Sf.tagName?{name:Sf.tagName,close:Sf.type=="closeTag"}:null},xmlCurrentContext:function(Sf){for(var Df=[],If=Sf.context;If;If=If.prev)Df.push(If.tagName);return Df.reverse()}}}),nd.defineMIME("text/xml","xml"),nd.defineMIME("application/xml","xml"),nd.mimeModes.hasOwnProperty("text/html")||nd.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xml.exports}var meta={exports:{}},hasRequiredMeta;function requireMeta(){return hasRequiredMeta||(hasRequiredMeta=1,function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){nd.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var od=0;od-1&&ud.substring(fd+1,ud.length);if(md)return nd.findModeByExtension(md)},nd.findModeByName=function(ud){ud=ud.toLowerCase();for(var dd=0;dd` "'(~:]+/,Gd=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ud=/^\s*\[[^\]]+?\]:.*$/,Fd=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,jd=" ";function qd(qf,Pf,Wf){return Pf.f=Pf.inline=Wf,Wf(qf,Pf)}function zd(qf,Pf,Wf){return Pf.f=Pf.block=Wf,Wf(qf,Pf)}function Yd(qf){return!qf||!/\S/.test(qf.string)}function Jd(qf){if(qf.linkTitle=!1,qf.linkHref=!1,qf.linkText=!1,qf.em=!1,qf.strong=!1,qf.strikethrough=!1,qf.quote=0,qf.indentedCode=!1,qf.f==Xd){var Pf=dd;if(!Pf){var Wf=nd.innerMode(ud,qf.htmlState);Pf=Wf.mode.name=="xml"&&Wf.state.tagStart===null&&!Wf.state.context&&Wf.state.tokenize.isInText}Pf&&(qf.f=vf,qf.block=yf,qf.htmlState=null)}return qf.trailingSpace=0,qf.trailingSpaceNewLine=!1,qf.prevLine=qf.thisLine,qf.thisLine={stream:null},null}function yf(qf,Pf){var Wf=qf.column()===Pf.indentation,Yf=Yd(Pf.prevLine.stream),Kf=Pf.indentedCode,Cf=Pf.prevLine.hr,xf=Pf.list!==!1,Xf=(Pf.listStack[Pf.listStack.length-1]||0)+3;Pf.indentedCode=!1;var sh=Pf.indentation;if(Pf.indentationDiff===null&&(Pf.indentationDiff=Pf.indentation,xf)){for(Pf.list=null;sh=4&&(Kf||Pf.prevLine.fencedCodeEnd||Pf.prevLine.header||Yf))return qf.skipToEnd(),Pf.indentedCode=!0,fd.code;if(qf.eatSpace())return null;if(Wf&&Pf.indentation<=Xf&&(Rf=qf.match(Od))&&Rf[1].length<=6)return Pf.quote=0,Pf.header=Rf[1].length,Pf.thisLine.header=!0,ld.highlightFormatting&&(Pf.formatting="header"),Pf.f=Pf.inline,mf(Pf);if(Pf.indentation<=Xf&&qf.eat(">"))return Pf.quote=Wf?1:Pf.quote+1,ld.highlightFormatting&&(Pf.formatting="quote"),qf.eatSpace(),mf(Pf);if(!dh&&!Pf.setext&&Wf&&Pf.indentation<=Xf&&(Rf=qf.match(Ad))){var gh=Rf[1]?"ol":"ul";return Pf.indentation=sh+qf.current().length,Pf.list=!0,Pf.quote=0,Pf.listStack.push(Pf.indentation),Pf.em=!1,Pf.strong=!1,Pf.code=!1,Pf.strikethrough=!1,ld.taskLists&&qf.match(Nd,!1)&&(Pf.taskList=!0),Pf.f=Pf.inline,ld.highlightFormatting&&(Pf.formatting=["list","list-"+gh]),mf(Pf)}else{if(Wf&&Pf.indentation<=Xf&&(Rf=qf.match(Gd,!0)))return Pf.quote=0,Pf.fencedEndRE=new RegExp(Rf[1]+"+ *$"),Pf.localMode=ld.fencedCodeBlockHighlighting&&pd(Rf[2]||ld.fencedCodeBlockDefaultMode),Pf.localMode&&(Pf.localState=nd.startState(Pf.localMode)),Pf.f=Pf.block=pf,ld.highlightFormatting&&(Pf.formatting="code-block"),Pf.code=-1,mf(Pf);if(Pf.setext||(!Ah||!xf)&&!Pf.quote&&Pf.list===!1&&!Pf.code&&!dh&&!Ud.test(qf.string)&&(Rf=qf.lookAhead(1))&&(Rf=Rf.match(kd)))return Pf.setext?(Pf.header=Pf.setext,Pf.setext=0,qf.skipToEnd(),ld.highlightFormatting&&(Pf.formatting="header")):(Pf.header=Rf[0].charAt(0)=="="?1:2,Pf.setext=Pf.header),Pf.thisLine.header=!0,Pf.f=Pf.inline,mf(Pf);if(dh)return qf.skipToEnd(),Pf.hr=!0,Pf.thisLine.hr=!0,fd.hr;if(qf.peek()==="[")return qd(qf,Pf,Gf)}return qd(qf,Pf,Pf.inline)}function Xd(qf,Pf){var Wf=ud.token(qf,Pf.htmlState);if(!dd){var Yf=nd.innerMode(ud,Pf.htmlState);(Yf.mode.name=="xml"&&Yf.state.tagStart===null&&!Yf.state.context&&Yf.state.tokenize.isInText||Pf.md_inside&&qf.current().indexOf(">")>-1)&&(Pf.f=vf,Pf.block=yf,Pf.htmlState=null)}return Wf}function pf(qf,Pf){var Wf=Pf.listStack[Pf.listStack.length-1]||0,Yf=Pf.indentation=qf.quote?Pf.push(fd.formatting+"-"+qf.formatting[Wf]+"-"+qf.quote):Pf.push("error"))}if(qf.taskOpen)return Pf.push("meta"),Pf.length?Pf.join(" "):null;if(qf.taskClosed)return Pf.push("property"),Pf.length?Pf.join(" "):null;if(qf.linkHref?Pf.push(fd.linkHref,"url"):(qf.strong&&Pf.push(fd.strong),qf.em&&Pf.push(fd.em),qf.strikethrough&&Pf.push(fd.strikethrough),qf.emoji&&Pf.push(fd.emoji),qf.linkText&&Pf.push(fd.linkText),qf.code&&Pf.push(fd.code),qf.image&&Pf.push(fd.image),qf.imageAltText&&Pf.push(fd.imageAltText,"link"),qf.imageMarker&&Pf.push(fd.imageMarker)),qf.header&&Pf.push(fd.header,fd.header+"-"+qf.header),qf.quote&&(Pf.push(fd.quote),!ld.maxBlockquoteDepth||ld.maxBlockquoteDepth>=qf.quote?Pf.push(fd.quote+"-"+qf.quote):Pf.push(fd.quote+"-"+ld.maxBlockquoteDepth)),qf.list!==!1){var Yf=(qf.listStack.length-1)%3;Yf?Yf===1?Pf.push(fd.list2):Pf.push(fd.list3):Pf.push(fd.list1)}return qf.trailingSpaceNewLine?Pf.push("trailing-space-new-line"):qf.trailingSpace&&Pf.push("trailing-space-"+(qf.trailingSpace%2?"a":"b")),Pf.length?Pf.join(" "):null}function Tf(qf,Pf){if(qf.match(Ld,!0))return mf(Pf)}function vf(qf,Pf){var Wf=Pf.text(qf,Pf);if(typeof Wf<"u")return Wf;if(Pf.list)return Pf.list=null,mf(Pf);if(Pf.taskList){var Yf=qf.match(Nd,!0)[1]===" ";return Yf?Pf.taskOpen=!0:Pf.taskClosed=!0,ld.highlightFormatting&&(Pf.formatting="task"),Pf.taskList=!1,mf(Pf)}if(Pf.taskOpen=!1,Pf.taskClosed=!1,Pf.header&&qf.match(/^#+$/,!0))return ld.highlightFormatting&&(Pf.formatting="header"),mf(Pf);var Kf=qf.next();if(Pf.linkTitle){Pf.linkTitle=!1;var Cf=Kf;Kf==="("&&(Cf=")"),Cf=(Cf+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var xf="^\\s*(?:[^"+Cf+"\\\\]+|\\\\\\\\|\\\\.)"+Cf;if(qf.match(new RegExp(xf),!0))return fd.linkHref}if(Kf==="`"){var Xf=Pf.formatting;ld.highlightFormatting&&(Pf.formatting="code"),qf.eatWhile("`");var sh=qf.current().length;if(Pf.code==0&&(!Pf.quote||sh==1))return Pf.code=sh,mf(Pf);if(sh==Pf.code){var Ah=mf(Pf);return Pf.code=0,Ah}else return Pf.formatting=Xf,mf(Pf)}else if(Pf.code)return mf(Pf);if(Kf==="\\"&&(qf.next(),ld.highlightFormatting)){var dh=mf(Pf),Rf=fd.formatting+"-escape";return dh?dh+" "+Rf:Rf}if(Kf==="!"&&qf.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Pf.imageMarker=!0,Pf.image=!0,ld.highlightFormatting&&(Pf.formatting="image"),mf(Pf);if(Kf==="["&&Pf.imageMarker&&qf.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Pf.imageMarker=!1,Pf.imageAltText=!0,ld.highlightFormatting&&(Pf.formatting="image"),mf(Pf);if(Kf==="]"&&Pf.imageAltText){ld.highlightFormatting&&(Pf.formatting="image");var dh=mf(Pf);return Pf.imageAltText=!1,Pf.image=!1,Pf.inline=Pf.f=Sf,dh}if(Kf==="["&&!Pf.image)return Pf.linkText&&qf.match(/^.*?\]/)||(Pf.linkText=!0,ld.highlightFormatting&&(Pf.formatting="link")),mf(Pf);if(Kf==="]"&&Pf.linkText){ld.highlightFormatting&&(Pf.formatting="link");var dh=mf(Pf);return Pf.linkText=!1,Pf.inline=Pf.f=qf.match(/\(.*?\)| ?\[.*?\]/,!1)?Sf:vf,dh}if(Kf==="<"&&qf.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Pf.f=Pf.inline=Af,ld.highlightFormatting&&(Pf.formatting="link");var dh=mf(Pf);return dh?dh+=" ":dh="",dh+fd.linkInline}if(Kf==="<"&&qf.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Pf.f=Pf.inline=Af,ld.highlightFormatting&&(Pf.formatting="link");var dh=mf(Pf);return dh?dh+=" ":dh="",dh+fd.linkEmail}if(ld.xml&&Kf==="<"&&qf.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var gh=qf.string.indexOf(">",qf.pos);if(gh!=-1){var Bh=qf.string.substring(qf.start,gh);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Bh)&&(Pf.md_inside=!0)}return qf.backUp(1),Pf.htmlState=nd.startState(ud),zd(qf,Pf,Xd)}if(ld.xml&&Kf==="<"&&qf.match(/^\/\w*?>/))return Pf.md_inside=!1,"tag";if(Kf==="*"||Kf==="_"){for(var th=1,$f=qf.pos==1?" ":qf.string.charAt(qf.pos-2);th<3&&qf.eat(Kf);)th++;var Uf=qf.peek()||" ",Zf=!/\s/.test(Uf)&&(!Fd.test(Uf)||/\s/.test($f)||Fd.test($f)),kh=!/\s/.test($f)&&(!Fd.test($f)||/\s/.test(Uf)||Fd.test(Uf)),Wh=null,xh=null;if(th%2&&(!Pf.em&&Zf&&(Kf==="*"||!kh||Fd.test($f))?Wh=!0:Pf.em==Kf&&kh&&(Kf==="*"||!Zf||Fd.test(Uf))&&(Wh=!1)),th>1&&(!Pf.strong&&Zf&&(Kf==="*"||!kh||Fd.test($f))?xh=!0:Pf.strong==Kf&&kh&&(Kf==="*"||!Zf||Fd.test(Uf))&&(xh=!1)),xh!=null||Wh!=null){ld.highlightFormatting&&(Pf.formatting=Wh==null?"strong":xh==null?"em":"strong em"),Wh===!0&&(Pf.em=Kf),xh===!0&&(Pf.strong=Kf);var Ah=mf(Pf);return Wh===!1&&(Pf.em=!1),xh===!1&&(Pf.strong=!1),Ah}}else if(Kf===" "&&(qf.eat("*")||qf.eat("_"))){if(qf.peek()===" ")return mf(Pf);qf.backUp(1)}if(ld.strikethrough){if(Kf==="~"&&qf.eatWhile(Kf)){if(Pf.strikethrough){ld.highlightFormatting&&(Pf.formatting="strikethrough");var Ah=mf(Pf);return Pf.strikethrough=!1,Ah}else if(qf.match(/^[^\s]/,!1))return Pf.strikethrough=!0,ld.highlightFormatting&&(Pf.formatting="strikethrough"),mf(Pf)}else if(Kf===" "&&qf.match("~~",!0)){if(qf.peek()===" ")return mf(Pf);qf.backUp(2)}}if(ld.emoji&&Kf===":"&&qf.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Pf.emoji=!0,ld.highlightFormatting&&(Pf.formatting="emoji");var pm=mf(Pf);return Pf.emoji=!1,pm}return Kf===" "&&(qf.match(/^ +$/,!1)?Pf.trailingSpace++:Pf.trailingSpace&&(Pf.trailingSpaceNewLine=!0)),mf(Pf)}function Af(qf,Pf){var Wf=qf.next();if(Wf===">"){Pf.f=Pf.inline=vf,ld.highlightFormatting&&(Pf.formatting="link");var Yf=mf(Pf);return Yf?Yf+=" ":Yf="",Yf+fd.linkInline}return qf.match(/^[^>]+/,!0),fd.linkInline}function Sf(qf,Pf){if(qf.eatSpace())return null;var Wf=qf.next();return Wf==="("||Wf==="["?(Pf.f=Pf.inline=If(Wf==="("?")":"]"),ld.highlightFormatting&&(Pf.formatting="link-string"),Pf.linkHref=!0,mf(Pf)):"error"}var Df={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function If(qf){return function(Pf,Wf){var Yf=Pf.next();if(Yf===qf){Wf.f=Wf.inline=vf,ld.highlightFormatting&&(Wf.formatting="link-string");var Kf=mf(Wf);return Wf.linkHref=!1,Kf}return Pf.match(Df[qf]),Wf.linkHref=!0,mf(Wf)}}function Gf(qf,Pf){return qf.match(/^([^\]\\]|\\.)*\]:/,!1)?(Pf.f=Jf,qf.next(),ld.highlightFormatting&&(Pf.formatting="link"),Pf.linkText=!0,mf(Pf)):qd(qf,Pf,vf)}function Jf(qf,Pf){if(qf.match("]:",!0)){Pf.f=Pf.inline=ih,ld.highlightFormatting&&(Pf.formatting="link");var Wf=mf(Pf);return Pf.linkText=!1,Wf}return qf.match(/^([^\]\\]|\\.)+/,!0),fd.linkText}function ih(qf,Pf){return qf.eatSpace()?null:(qf.match(/^[^\s]+/,!0),qf.peek()===void 0?Pf.linkTitle=!0:qf.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),Pf.f=Pf.inline=vf,fd.linkHref+" url")}var uh={startState:function(){return{f:yf,prevLine:{stream:null},thisLine:{stream:null},block:yf,htmlState:null,indentation:0,inline:vf,text:Tf,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(qf){return{f:qf.f,prevLine:qf.prevLine,thisLine:qf.thisLine,block:qf.block,htmlState:qf.htmlState&&nd.copyState(ud,qf.htmlState),indentation:qf.indentation,localMode:qf.localMode,localState:qf.localMode?nd.copyState(qf.localMode,qf.localState):null,inline:qf.inline,text:qf.text,formatting:!1,linkText:qf.linkText,linkTitle:qf.linkTitle,linkHref:qf.linkHref,code:qf.code,em:qf.em,strong:qf.strong,strikethrough:qf.strikethrough,emoji:qf.emoji,header:qf.header,setext:qf.setext,hr:qf.hr,taskList:qf.taskList,list:qf.list,listStack:qf.listStack.slice(0),quote:qf.quote,indentedCode:qf.indentedCode,trailingSpace:qf.trailingSpace,trailingSpaceNewLine:qf.trailingSpaceNewLine,md_inside:qf.md_inside,fencedEndRE:qf.fencedEndRE}},token:function(qf,Pf){if(Pf.formatting=!1,qf!=Pf.thisLine.stream){if(Pf.header=0,Pf.hr=!1,qf.match(/^\s*$/,!0))return Jd(Pf),null;if(Pf.prevLine=Pf.thisLine,Pf.thisLine={stream:qf},Pf.taskList=!1,Pf.trailingSpace=0,Pf.trailingSpaceNewLine=!1,!Pf.localState&&(Pf.f=Pf.block,Pf.f!=Xd)){var Wf=qf.match(/^\s*/,!0)[0].replace(/\t/g,jd).length;if(Pf.indentation=Wf,Pf.indentationDiff=null,Wf>0)return null}}return Pf.f(qf,Pf)},innerMode:function(qf){return qf.block==Xd?{state:qf.htmlState,mode:ud}:qf.localState?{state:qf.localState,mode:qf.localMode}:{state:qf,mode:uh}},indent:function(qf,Pf,Wf){return qf.block==Xd&&ud.indent?ud.indent(qf.htmlState,Pf,Wf):qf.localState&&qf.localMode.indent?qf.localMode.indent(qf.localState,Pf,Wf):nd.Pass},blankLine:Jd,getType:mf,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return uh},"xml"),nd.defineMIME("text/markdown","markdown"),nd.defineMIME("text/x-markdown","markdown")})})();(function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){var od={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ld=nd.Pos;nd.defineOption("autoCloseBrackets",!1,function(Ud,Fd,jd){jd&&jd!=nd.Init&&(Ud.removeKeyMap(dd),Ud.state.closeBrackets=null),Fd&&(pd(ud(Fd,"pairs")),Ud.state.closeBrackets=Fd,Ud.addKeyMap(dd))});function ud(Ud,Fd){return Fd=="pairs"&&typeof Ud=="string"?Ud:typeof Ud=="object"&&Ud[Fd]!=null?Ud[Fd]:od[Fd]}var dd={Backspace:vd,Enter:Ad};function pd(Ud){for(var Fd=0;Fd=0;zd--){var Jd=qd[zd].head;Ud.replaceRange("",ld(Jd.line,Jd.ch-1),ld(Jd.line,Jd.ch+1),"+delete")}}function Ad(Ud){var Fd=md(Ud),jd=Fd&&ud(Fd,"explode");if(!jd||Ud.getOption("disableInput"))return nd.Pass;for(var qd=Ud.listSelections(),zd=0;zd0?{line:Jd.head.line,ch:Jd.head.ch+Fd}:{line:Jd.head.line-1};jd.push({anchor:yf,head:yf})}Ud.setSelections(jd,zd)}function Od(Ud){var Fd=nd.cmpPos(Ud.anchor,Ud.head)>0;return{anchor:new ld(Ud.anchor.line,Ud.anchor.ch+(Fd?-1:1)),head:new ld(Ud.head.line,Ud.head.ch+(Fd?1:-1))}}function kd(Ud,Fd){var jd=md(Ud);if(!jd||Ud.getOption("disableInput"))return nd.Pass;var qd=ud(jd,"pairs"),zd=qd.indexOf(Fd);if(zd==-1)return nd.Pass;for(var Yd=ud(jd,"closeBefore"),Jd=ud(jd,"triples"),yf=qd.charAt(zd+1)==Fd,Xd=Ud.listSelections(),pf=zd%2==0,mf,Tf=0;Tf=0&&Ud.getRange(Af,ld(Af.line,Af.ch+3))==Fd+Fd+Fd?Sf="skipThree":Sf="skip";else if(yf&&Af.ch>1&&Jd.indexOf(Fd)>=0&&Ud.getRange(ld(Af.line,Af.ch-2),Af)==Fd+Fd){if(Af.ch>2&&/\bstring/.test(Ud.getTokenTypeAt(ld(Af.line,Af.ch-2))))return nd.Pass;Sf="addFour"}else if(yf){var If=Af.ch==0?" ":Ud.getRange(ld(Af.line,Af.ch-1),Af);if(!nd.isWordChar(Df)&&If!=Fd&&!nd.isWordChar(If))Sf="both";else return nd.Pass}else if(pf&&(Df.length===0||/\s/.test(Df)||Yd.indexOf(Df)>-1))Sf="both";else return nd.Pass;if(!mf)mf=Sf;else if(mf!=Sf)return nd.Pass}var Gf=zd%2?qd.charAt(zd-1):Fd,Jf=zd%2?Fd:qd.charAt(zd+1);Ud.operation(function(){if(mf=="skip")Nd(Ud,1);else if(mf=="skipThree")Nd(Ud,3);else if(mf=="surround"){for(var ih=Ud.getSelections(),uh=0;uh",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function dd(Nd){return Nd&&Nd.bracketRegex||/[(){}[\]]/}function pd(Nd,Od,kd){var Ld=Nd.getLineHandle(Od.line),Gd=Od.ch-1,Ud=kd&&kd.afterCursor;Ud==null&&(Ud=/(^| )cm-fat-cursor($| )/.test(Nd.getWrapperElement().className));var Fd=dd(kd),jd=!Ud&&Gd>=0&&Fd.test(Ld.text.charAt(Gd))&&ud[Ld.text.charAt(Gd)]||Fd.test(Ld.text.charAt(Gd+1))&&ud[Ld.text.charAt(++Gd)];if(!jd)return null;var qd=jd.charAt(1)==">"?1:-1;if(kd&&kd.strict&&qd>0!=(Gd==Od.ch))return null;var zd=Nd.getTokenTypeAt(ld(Od.line,Gd+1)),Yd=fd(Nd,ld(Od.line,Gd+(qd>0?1:0)),qd,zd,kd);return Yd==null?null:{from:ld(Od.line,Gd),to:Yd&&Yd.pos,match:Yd&&Yd.ch==jd.charAt(0),forward:qd>0}}function fd(Nd,Od,kd,Ld,Gd){for(var Ud=Gd&&Gd.maxScanLineLength||1e4,Fd=Gd&&Gd.maxScanLines||1e3,jd=[],qd=dd(Gd),zd=kd>0?Math.min(Od.line+Fd,Nd.lastLine()+1):Math.max(Nd.firstLine()-1,Od.line-Fd),Yd=Od.line;Yd!=zd;Yd+=kd){var Jd=Nd.getLine(Yd);if(Jd){var yf=kd>0?0:Jd.length-1,Xd=kd>0?Jd.length:-1;if(!(Jd.length>Ud))for(Yd==Od.line&&(yf=Od.ch-(kd<0?1:0));yf!=Xd;yf+=kd){var pf=Jd.charAt(yf);if(qd.test(pf)&&(Ld===void 0||(Nd.getTokenTypeAt(ld(Yd,yf+1))||"")==(Ld||""))){var mf=ud[pf];if(mf&&mf.charAt(1)==">"==kd>0)jd.push(pf);else if(jd.length)jd.pop();else return{pos:ld(Yd,yf),ch:pf}}}}}return Yd-kd==(kd>0?Nd.lastLine():Nd.firstLine())?!1:null}function md(Nd,Od,kd){for(var Ld=Nd.state.matchBrackets.maxHighlightLineLength||1e3,Gd=kd&&kd.highlightNonMatching,Ud=[],Fd=Nd.listSelections(),jd=0;jd1)){if(this.somethingSelected()){if(!Ud.hint.supportsSelection)return;for(var jd=0;jdJd.clientHeight+1:!1,Xf;setTimeout(function(){Xf=qd.getScrollInfo()});var sh=Cf.bottom-Kf;if(sh>0){var Ah=Cf.bottom-Cf.top,dh=Cf.top-(Sf.bottom-Sf.top)-2;Kf-Cf.topdh&&(Jd.style.height=(Ah=dh)+"px"),Jd.style.top=(If=Sf.top-Ah)+ih+"px",Gf=!1):Jd.style.height=Kf-Cf.top-2+"px"}var Rf=Cf.right-Yf;if(xf&&(Rf+=qd.display.nativeBarWidth),Rf>0&&(Cf.right-Cf.left>Yf&&(Jd.style.width=Yf-5+"px",Rf-=Cf.right-Cf.left-Yf),Jd.style.left=(Df=Math.max(Sf.left-Rf-Jf,0))+"px"),xf)for(var gh=Jd.firstChild;gh;gh=gh.nextSibling)gh.style.paddingRight=qd.display.nativeBarWidth+"px";if(qd.addKeyMap(this.keyMap=vd(Ud,{moveFocus:function($f,Uf){jd.changeActive(jd.selectedHint+$f,Uf)},setFocus:function($f){jd.changeActive($f)},menuSize:function(){return jd.screenAmount()},length:Xd.length,close:function(){Ud.close()},pick:function(){jd.pick()},data:Fd})),Ud.options.closeOnUnfocus){var Bh;qd.on("blur",this.onBlur=function(){Bh=setTimeout(function(){Ud.close()},100)}),qd.on("focus",this.onFocus=function(){clearTimeout(Bh)})}qd.on("scroll",this.onScroll=function(){var $f=qd.getScrollInfo(),Uf=qd.getWrapperElement().getBoundingClientRect();Xf||(Xf=qd.getScrollInfo());var Zf=If+Xf.top-$f.top,kh=Zf-(Yd.pageYOffset||(zd.documentElement||zd.body).scrollTop);if(Gf||(kh+=Jd.offsetHeight),kh<=Uf.top||kh>=Uf.bottom)return Ud.close();Jd.style.top=Zf+"px",Jd.style.left=Df+Xf.left-$f.left+"px"}),nd.on(Jd,"dblclick",function($f){var Uf=Ad(Jd,$f.target||$f.srcElement);Uf&&Uf.hintId!=null&&(jd.changeActive(Uf.hintId),jd.pick())}),nd.on(Jd,"click",function($f){var Uf=Ad(Jd,$f.target||$f.srcElement);Uf&&Uf.hintId!=null&&(jd.changeActive(Uf.hintId),Ud.options.completeOnSingleClick&&jd.pick())}),nd.on(Jd,"mousedown",function(){setTimeout(function(){qd.focus()},20)});var th=this.getSelectedHintRange();return(th.from!==0||th.to!==0)&&this.scrollToActive(),nd.signal(Fd,"select",Xd[this.selectedHint],Jd.childNodes[this.selectedHint]),!0}Nd.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var Ud=this.completion.cm.getInputField();Ud.removeAttribute("aria-activedescendant"),Ud.removeAttribute("aria-owns");var Fd=this.completion.cm;this.completion.options.closeOnUnfocus&&(Fd.off("blur",this.onBlur),Fd.off("focus",this.onFocus)),Fd.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var Ud=this;this.keyMap={Enter:function(){Ud.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(Ud,Fd){if(Ud>=this.data.list.length?Ud=Fd?this.data.list.length-1:0:Ud<0&&(Ud=Fd?0:this.data.list.length-1),this.selectedHint!=Ud){var jd=this.hints.childNodes[this.selectedHint];jd&&(jd.className=jd.className.replace(" "+ld,""),jd.removeAttribute("aria-selected")),jd=this.hints.childNodes[this.selectedHint=Ud],jd.className+=" "+ld,jd.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",jd.id),this.scrollToActive(),nd.signal(this.data,"select",this.data.list[this.selectedHint],jd)}},scrollToActive:function(){var Ud=this.getSelectedHintRange(),Fd=this.hints.childNodes[Ud.from],jd=this.hints.childNodes[Ud.to],qd=this.hints.firstChild;Fd.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=jd.offsetTop+jd.offsetHeight-this.hints.clientHeight+qd.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var Ud=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-Ud),to:Math.min(this.data.list.length-1,this.selectedHint+Ud)}}};function Od(Ud,Fd){if(!Ud.somethingSelected())return Fd;for(var jd=[],qd=0;qd0?Jd(Tf):pf(mf+1)})}pf(0)};return zd.async=!0,zd.supportsSelection=!0,zd}else return(qd=Ud.getHelper(Ud.getCursor(),"hintWords"))?function(Yd){return nd.hint.fromList(Yd,{words:qd})}:nd.hint.anyword?function(Yd,Jd){return nd.hint.anyword(Yd,Jd)}:function(){}}nd.registerHelper("hint","auto",{resolve:Ld}),nd.registerHelper("hint","fromList",function(Ud,Fd){var jd=Ud.getCursor(),qd=Ud.getTokenAt(jd),zd,Yd=nd.Pos(jd.line,qd.start),Jd=jd;qd.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};nd.defineOption("hintOptions",null)})})();(function(Ra,qa){(function(nd){nd(requireCodemirror(),cssExports)})(function(nd){var od={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};nd.registerHelper("hint","css",function(ld){var ud=ld.getCursor(),dd=ld.getTokenAt(ud),pd=nd.innerMode(ld.getMode(),dd.state);if(pd.mode.name!="css")return;if(dd.type=="keyword"&&"!important".indexOf(dd.string)==0)return{list:["!important"],from:nd.Pos(ud.line,dd.start),to:nd.Pos(ud.line,dd.end)};var fd=dd.start,md=ud.ch,vd=dd.string.slice(0,md-fd);/[^\w$_-]/.test(vd)&&(vd="",fd=md=ud.ch);var Ad=nd.resolveMode("text/css"),Nd=[];function Od(Ld){for(var Gd in Ld)(!vd||Gd.lastIndexOf(vd,0)==0)&&Nd.push(Gd)}var kd=pd.state.state;if(kd=="pseudo"||dd.type=="variable-3"?Od(od):kd=="block"||kd=="maybeprop"?Od(Ad.propertyKeywords):kd=="prop"||kd=="parens"||kd=="at"||kd=="params"?(Od(Ad.valueKeywords),Od(Ad.colorKeywords)):(kd=="media"||kd=="media_parens")&&(Od(Ad.mediaTypes),Od(Ad.mediaFeatures)),Nd.length)return{list:Nd,from:nd.Pos(ud.line,fd),to:nd.Pos(ud.line,md)}})})})();const app=createApp(_sfc_main);app.use(createPinia());app.mount("#app");export{withPath as $,rgba$1 as A,defaultConfig_default as B,cleanAndMerge as C,getConfig$1 as D,random as E,setupGraphViewbox2 as F,selectSvgElement as G,version$2 as H,getThemeVariables3 as I,JSON_SCHEMA as J,line$1 as K,hasKatex as L,calculateMathMLDimensions as M,renderKatex as N,parseFontSize as O,parseGenericTypes as P,curveBasis as Q,generateId as R,lineBreakRegex as S,__export as T,commonDb_exports as U,setupGraphViewbox as V,isDark as W,lighten as X,darken as Y,ZERO_WIDTH_SPACE as Z,__name as _,assignWithDepth_default as a,hue as a$,halfPi as a0,epsilon as a1,tau as a2,cos as a3,sin as a4,min as a5,abs$1 as a6,pi as a7,sqrt as a8,atan2 as a9,baseRest as aA,isArrayLikeObject as aB,constant$2 as aC,isFunction$2 as aD,isEmpty$1 as aE,computeDimensionOfText as aF,array as aG,commonjsGlobal as aH,getDefaultExportFromCjs as aI,unknownIcon as aJ,registerIconPacks as aK,getIconSVG as aL,isObject$2 as aM,isIterateeCall as aN,keysIn as aO,eq as aP,isArrayLike$1 as aQ,isArray$1 as aR,identity as aS,isIndex as aT,assignValue as aU,define$1 as aV,extend$1 as aW,Rgb as aX,Color as aY,rgbConvert as aZ,nogamma as a_,constant$3 as aa,asin as ab,acos as ac,max$1 as ad,insertCluster as ae,insertNode as af,positionNode as ag,getStylesFromArray as ah,evaluate as ai,createText as aj,getSubGraphTitleMargins as ak,getLineFunctionsWithOffset as al,replaceIconSubstring as am,decodeEntities as an,Utils$1 as ao,Color$1 as ap,global$1 as aq,markers_default as ar,clear2 as as,clear as at,clear$1 as au,updateNodeBounds as av,setNodeElem as aw,insertEdge as ax,positionEdgeLabel as ay,insertEdgeLabel as az,getAccDescription as b,dayjs2 as b0,constant$4 as b1,interpolateNumber as b2,color as b3,interpolateRgb as b4,interpolateString as b5,setToString as b6,overRest as b7,baseFor as b8,baseAssignValue as b9,isPrototype as bA,__vitePreload as bB,baseUnary as ba,merge$1 as bb,isObjectLike as bc,baseGetTag as bd,Symbol$1 as be,arrayLikeKeys as bf,baseKeys as bg,memoize$2 as bh,isArguments$1 as bi,copyObject as bj,getPrototype as bk,cloneArrayBuffer as bl,cloneTypedArray as bm,getTag as bn,nodeUtil as bo,copyArray as bp,isBuffer$1 as bq,cloneBuffer as br,initCloneObject as bs,Stack as bt,MapCache as bu,Uint8Array$1 as bv,isTypedArray$2 as bw,isLength as bx,Set$1 as by,createAssigner as bz,setAccDescription as c,getConfig2 as d,common_default as e,calculateTextHeight as f,getAccTitle as g,calculateTextWidth as h,sanitizeText as i,select as j,configureSvgSize as k,log$1 as l,sanitizeUrl_1 as m,setConfig2 as n,defaultConfig2 as o,setDiagramTitle as p,getDiagramTitle as q,load as r,setAccTitle as s,isValidShape as t,utils_default as u,clear$2 as v,wrapLabel as w,getEdgeId as x,getRegisteredLayoutAlgorithm as y,render$1 as z}; + `;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer:Buffer$1,uuidv4:v4,qiniu,tokenTools,getDir,getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(Ra=>{console.error(Ra),reject(Ra)})})}function fileUpload(Ra,qa){const nd=localStorage.getItem("imgHost");switch(nd||localStorage.setItem("imgHost","default"),nd){case"aliOSS":return aliOSSFileUpload(qa);case"minio":return minioFileUpload(Ra,qa.name);case"txCOS":return txCOSFileUpload(qa);case"qiniu":return qiniuUpload(qa);case"gitee":return giteeUpload(Ra,qa.name);case"github":return ghFileUpload(Ra,qa.name);case"mp":return mpFileUpload(qa);case"r2":return r2Upload(qa);case"formCustom":return formCustomUpload(Ra,qa);default:return ghFileUpload(Ra,qa.name)}}const fileApi={fileUpload},_hoisted_1={class:"container-main flex flex-1 flex-col"},_hoisted_2={class:"container-main-section border-radius-10 relative flex flex-1 overflow-hidden border-1"},_hoisted_3={class:"preview border-x-1 shadow-xl"},_hoisted_4=["innerHTML"],_hoisted_5={key:0,class:"loading-mask"},_hoisted_6={class:"h-[30px] flex select-none items-center justify-end text-[12px]"},_sfc_main$1=defineComponent({__name:"CodemirrorEditor",setup(Ra){const qa=useStore(),nd=useDisplayStore(),{isDark:od,output:ld,editor:ud,readingTime:dd}=storeToRefs(qa),{editorRefresh:pd,exportEditorContent2HTML:fd,exportEditorContent2MD:md,formatContent:vd,importMarkdownContent:Ad,resetStyleConfirm:Nd}=qa,{toggleShowInsertFormDialog:Od,toggleShowUploadImgDialog:kd}=nd,Ld=ref$1(!1),Gd=ref$1(),jd=ref$1(null);function Fd(){const If=Xf=>{let ph,qf;clearTimeout(Gd.value),Xf==="preview"?(ph=jd.value,qf=document.querySelector(".CodeMirror-scroll"),ud.value.off("scroll",Gf),Gd.value=setTimeout(()=>{ud.value.on("scroll",Gf)},300)):(ph=document.querySelector(".CodeMirror-scroll"),qf=jd.value,qf.removeEventListener("scroll",Qf,!1),Gd.value=setTimeout(()=>{qf.addEventListener("scroll",Qf,!1)},300));const Wf=ph.scrollTop/(ph.scrollHeight-ph.offsetHeight)*(qf.scrollHeight-qf.offsetHeight);qf.scrollTo(0,Wf)};function Gf(){If("editor")}function Qf(){If("preview")}jd.value.addEventListener("scroll",Qf,!1),ud.value.on("scroll",Gf)}onMounted(()=>{setTimeout(()=>{Fd()},300)});function Ud(){pd()}const qd=ref$1(!1),zd=ref$1(!1);function Wd(){zd.value=!0,qd.value=!0}function Jd(){qd.value=!1,setTimeout(()=>{zd.value=!1},800)}function _f(If){const Gf=checkImage(If);if(!Gf.ok)return Ke$1.error(Gf.msg),!1;const Qf=localStorage.getItem("imgHost")||"default";localStorage.setItem("imgHost",Qf);const Xf=localStorage.getItem(`${Qf}Config`);return Qf==="default"||Xf?!0:(Ke$1.error(`请先配置 ${Qf} 图床参数`),!1)}function Xd(If){if(!If){Ke$1.error("上传图片未知异常");return}kd(!1);const Gf=ud.value.getCursor(),Qf=`![](${If})`;toRaw(qa.editor).replaceSelection(` +${Qf} +`,Gf),Ke$1.success("图片上传成功")}function pf(If,Gf){Ld.value=!0,toBase64$2(If).then(Qf=>fileApi.fileUpload(Qf,If)).then(Qf=>{Gf?Gf(Qf):Xd(Qf)}).catch(Qf=>{Ke$1.error(Qf.message)}).finally(()=>{Ld.value=!1})}const mf=ref$1();watch(od,()=>{var Gf,Qf;const If=od.value?"darcula":"xq-light";(Qf=(Gf=toRaw(ud.value))==null?void 0:Gf.setOption)==null||Qf.call(Gf,"theme",If)});function Sf(){const If=document.querySelector("#editor");If.value||(If.value=qa.posts[qa.currentPostIndex].content),ud.value=CodeMirror.fromTextArea(If,{mode:"text/x-markdown",theme:od.value?"darcula":"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Qf){formatDoc(Qf.getValue()).then(Xf=>{Qf.setValue(Xf)})},[`${ctrlKey}-B`]:function(Qf){const Xf=Qf.getSelection();Qf.replaceSelection(`**${Xf}**`)},[`${ctrlKey}-I`]:function(Qf){const Xf=Qf.getSelection();Qf.replaceSelection(`*${Xf}*`)},[`${ctrlKey}-D`]:function(Qf){const Xf=Qf.getSelection();Qf.replaceSelection(`~~${Xf}~~`)},[`${ctrlKey}-K`]:function(Qf){const Xf=Qf.getSelection();Qf.replaceSelection(`[${Xf}]()`)},[`${ctrlKey}-E`]:function(Qf){const Xf=Qf.getSelection();Qf.replaceSelection(`\`${Xf}\``)},[`${ctrlKey}-L`]:function(Qf){const Xf=Qf.getSelection();Qf.replaceSelection(`\`${Xf}\``)}}}),ud.value.on("change",Gf=>{clearTimeout(mf.value),mf.value=setTimeout(()=>{Ud(),qa.posts[qa.currentPostIndex].content=Gf.getValue()},300)}),ud.value.on("paste",(Gf,Qf)=>{if(!(!(Qf.clipboardData&&Qf.clipboardData.items)||Ld.value))for(let Xf=0,ph=Qf.clipboardData.items.length;Xf{const Lf=[...ph.str.matchAll(/!\[(.*?)\]\((.*?)\)/g)||[]].filter(Kf=>Kf),Wf=ph.path.match(/.+?\//)[0];(await Promise.all(Lf.map(Kf=>new Promise(Cf=>{let[,,xf]=Kf;xf=xf.replace(/^.\//,"");const{file:Yf}=qf.find(dh=>dh.path===`${Wf}${xf}`)||{};pf(Yf,dh=>{Cf({matchStr:xf,url:dh})})})))).forEach(Kf=>{ph.str=ph.str.replace(`](./${Kf.matchStr})`,`](${Kf.url})`).replace(`](${Kf.matchStr})`,`](${Kf.url})`)}),ud.value.setValue(ph.str)};If.ondragover=ph=>ph.preventDefault(),If.ondrop=async ph=>{ph.preventDefault();for(const qf of ph.dataTransfer.items)qf.getAsFileSystemHandle().then(async Lf=>{if(Lf.kind==="directory"){const Wf=await Xf(Lf),Jf=await Qf({list:Wf});Gf({md:Jf,list:Wf})}else{const Wf=await Lf.getFile();console.log("file",Wf)}})};async function Qf({list:ph}){return new Promise(qf=>{const{path:Lf,file:Wf}=ph.find(Kf=>Kf.path.match(/\.md$/)),Jf=new FileReader;Jf.readAsText(Wf,"UTF-8"),Jf.onload=Kf=>{qf({str:Kf.target.result,file:Wf,path:Lf})}})}async function Xf(ph){const qf=[];let Lf="";try{const Wf=[ph];for(const Jf of Wf){Lf+=`${Jf.name}/`;for await(const[,Kf]of Jf)Kf.kind==="file"?qf.push({path:Lf+Kf.name,file:await Kf.getFile()}):(qf.push({path:`${Lf+Kf.name}/`}),Wf.push(Kf))}}catch(Wf){console.error(Wf)}return qf}}return onMounted(()=>{Sf(),Ud(),Nf()}),(If,Gf)=>{var Mh,_h;const Qf=__unplugin_components_0,Xf=_sfc_main$C,ph=_sfc_main$I,qf=_sfc_main$J,Lf=_sfc_main$K,Wf=_sfc_main$L,Jf=_sfc_main$M,Kf=_sfc_main$N,Cf=_sfc_main$O,xf=__unplugin_components_9,Yf=_sfc_main$R,dh=_sfc_main$S,Rh=_sfc_main$15,th=__unplugin_components_13$1,Bf=_sfc_main$1j,Sh=_sfc_main$1k,Fh=_sfc_main$1l,uh=_sfc_main$1m,Pf=_sfc_main$1n,Uf=_sfc_main$1p,Zf=_sfc_main$1q,mh=_sfc_main$1r;return openBlock(),createElementBlock("div",{ref_key:"container",ref:Tf,class:"container flex flex-col"},[createVNode(Qf,{onAddFormat:Af,onFormatContent:unref(vd),onStartCopy:Wd,onEndCopy:Jd},null,8,["onFormatContent"]),createBaseVNode("main",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createVNode(Xf),createBaseVNode("div",{ref_key:"codeMirrorWrapper",ref:Ef,class:normalizeClass(["codeMirror-wrapper flex-1",{"order-1 border-l":!unref(qa).isEditOnLeft,"border-r":unref(qa).isEditOnLeft}])},[createVNode(Kf,null,{default:withCtx(()=>[createVNode(ph,null,{default:withCtx(()=>Gf[9]||(Gf[9]=[createBaseVNode("textarea",{id:"editor",type:"textarea",placeholder:"Your markdown text here."},null,-1)])),_:1}),createVNode(Jf,{class:"w-64"},{default:withCtx(()=>[createVNode(qf,{inset:"",onClick:Gf[0]||(Gf[0]=pm=>unref(kd)())},{default:withCtx(()=>Gf[10]||(Gf[10]=[createTextVNode(" 上传图片 ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[1]||(Gf[1]=pm=>unref(Od)())},{default:withCtx(()=>Gf[11]||(Gf[11]=[createTextVNode(" 插入表格 ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[2]||(Gf[2]=pm=>unref(Nd)())},{default:withCtx(()=>Gf[12]||(Gf[12]=[createTextVNode(" 恢复默认样式 ")])),_:1}),createVNode(Lf),createVNode(qf,{inset:"",onClick:Gf[3]||(Gf[3]=pm=>unref(Ad)())},{default:withCtx(()=>Gf[13]||(Gf[13]=[createTextVNode(" 导入 .md 文档 ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[4]||(Gf[4]=pm=>unref(md)())},{default:withCtx(()=>Gf[14]||(Gf[14]=[createTextVNode(" 导出 .md 文档 ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[5]||(Gf[5]=pm=>unref(fd)())},{default:withCtx(()=>Gf[15]||(Gf[15]=[createTextVNode(" 导出 .html ")])),_:1}),createVNode(qf,{inset:"",onClick:Gf[6]||(Gf[6]=pm=>unref(vd)())},{default:withCtx(()=>[Gf[16]||(Gf[16]=createTextVNode(" 格式化 ")),createVNode(Wf,null,{default:withCtx(()=>[createTextVNode(toDisplayString(unref(altSign))+" + "+toDisplayString(unref(shiftSign))+" + F",1)]),_:1})]),_:1})]),_:1})]),_:1})],2),createBaseVNode("div",{id:"preview",ref_key:"preview",ref:jd,class:"preview-wrapper flex-1 p-5"},[createBaseVNode("div",{id:"output-wrapper",class:normalizeClass({output_night:!unref(qd)})},[createBaseVNode("div",_hoisted_3,[createBaseVNode("section",{id:"output",innerHTML:unref(ld)},null,8,_hoisted_4),unref(zd)?(openBlock(),createElementBlock("div",_hoisted_5,Gf[17]||(Gf[17]=[createBaseVNode("div",{class:"loading-mask-box"},[createBaseVNode("div",{class:"loading__img"}),createBaseVNode("span",null,"正在生成")],-1)]))):createCommentVNode("",!0)])],2),createVNode(Cf,{target:"preview",right:40,bottom:40})],512),createVNode(xf,{class:"order-2 flex-1"}),createVNode(Yf,{class:"order-2"})]),createBaseVNode("footer",_hoisted_6," 字数 "+toDisplayString((Mh=unref(dd))==null?void 0:Mh.words)+", 阅读大约需 "+toDisplayString(Math.ceil(((_h=unref(dd))==null?void 0:_h.minutes)??0))+" 分钟 ",1),createVNode(dh,{onUploadImage:pf}),createVNode(Rh),createVNode(th),createVNode(mh,{open:unref(qa).isOpenConfirmDialog,"onUpdate:open":Gf[8]||(Gf[8]=pm=>unref(qa).isOpenConfirmDialog=pm)},{default:withCtx(()=>[createVNode(Zf,null,{default:withCtx(()=>[createVNode(Fh,null,{default:withCtx(()=>[createVNode(Bf,null,{default:withCtx(()=>Gf[18]||(Gf[18]=[createTextVNode("提示")])),_:1}),createVNode(Sh,null,{default:withCtx(()=>Gf[19]||(Gf[19]=[createTextVNode(" 此操作将丢失本地自定义样式,是否继续? ")])),_:1})]),_:1}),createVNode(Uf,null,{default:withCtx(()=>[createVNode(uh,null,{default:withCtx(()=>Gf[20]||(Gf[20]=[createTextVNode("取消")])),_:1}),createVNode(Pf,{onClick:Gf[7]||(Gf[7]=pm=>unref(qa).resetStyle())},{default:withCtx(()=>Gf[21]||(Gf[21]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])],512)}}}),CodemirrorEditor=_export_sfc(_sfc_main$1,[["__scopeId","data-v-bc4a5df5"]]),_sfc_main=defineComponent({__name:"App",setup(Ra){return(qa,nd)=>(openBlock(),createBlock(CodemirrorEditor))}});var css={exports:{}};(function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){nd.defineMode("css",function(pf,mf){var Sf=mf.inline;mf.propertyKeywords||(mf=nd.resolveMode("text/css"));var Tf=pf.indentUnit,Af=mf.tokenHooks,Ef=mf.documentTypes||{},Nf=mf.mediaTypes||{},If=mf.mediaFeatures||{},Gf=mf.mediaValueKeywords||{},Qf=mf.propertyKeywords||{},Xf=mf.nonStandardPropertyKeywords||{},ph=mf.fontProperties||{},qf=mf.counterDescriptors||{},Lf=mf.colorKeywords||{},Wf=mf.valueKeywords||{},Jf=mf.allowNested,Kf=mf.lineComment,Cf=mf.supportsAtComponent===!0,xf=pf.highlightNonStandardPropertyKeywords!==!1,Yf,dh;function Rh(_h,pm){return Yf=pm,_h}function th(_h,pm){var Jh=_h.next();if(Af[Jh]){var Mm=Af[Jh](_h,pm);if(Mm!==!1)return Mm}if(Jh=="@")return _h.eatWhile(/[\w\\\-]/),Rh("def",_h.current());if(Jh=="="||(Jh=="~"||Jh=="|")&&_h.eat("="))return Rh(null,"compare");if(Jh=='"'||Jh=="'")return pm.tokenize=Bf(Jh),pm.tokenize(_h,pm);if(Jh=="#")return _h.eatWhile(/[\w\\\-]/),Rh("atom","hash");if(Jh=="!")return _h.match(/^\s*\w*/),Rh("keyword","important");if(/\d/.test(Jh)||Jh=="."&&_h.eat(/\d/))return _h.eatWhile(/[\w.%]/),Rh("number","unit");if(Jh==="-"){if(/[\d.]/.test(_h.peek()))return _h.eatWhile(/[\w.%]/),Rh("number","unit");if(_h.match(/^-[\w\\\-]*/))return _h.eatWhile(/[\w\\\-]/),_h.match(/^\s*:/,!1)?Rh("variable-2","variable-definition"):Rh("variable-2","variable");if(_h.match(/^\w+-/))return Rh("meta","meta")}else return/[,+>*\/]/.test(Jh)?Rh(null,"select-op"):Jh=="."&&_h.match(/^-?[_a-z][_a-z0-9-]*/i)?Rh("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Jh)?Rh(null,Jh):_h.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(_h.current())&&(pm.tokenize=Sh),Rh("variable callee","variable")):/[\w\\\-]/.test(Jh)?(_h.eatWhile(/[\w\\\-]/),Rh("property","word")):Rh(null,null)}function Bf(_h){return function(pm,Jh){for(var Mm=!1,Im;(Im=pm.next())!=null;){if(Im==_h&&!Mm){_h==")"&&pm.backUp(1);break}Mm=!Mm&&Im=="\\"}return(Im==_h||!Mm&&_h!=")")&&(Jh.tokenize=null),Rh("string","string")}}function Sh(_h,pm){return _h.next(),_h.match(/^\s*[\"\')]/,!1)?pm.tokenize=null:pm.tokenize=Bf(")"),Rh(null,"(")}function Fh(_h,pm,Jh){this.type=_h,this.indent=pm,this.prev=Jh}function uh(_h,pm,Jh,Mm){return _h.context=new Fh(Jh,pm.indentation()+(Mm===!1?0:Tf),_h.context),Jh}function Pf(_h){return _h.context.prev&&(_h.context=_h.context.prev),_h.context.type}function Uf(_h,pm,Jh){return Mh[Jh.context.type](_h,pm,Jh)}function Zf(_h,pm,Jh,Mm){for(var Im=Mm||1;Im>0;Im--)Jh.context=Jh.context.prev;return Uf(_h,pm,Jh)}function mh(_h){var pm=_h.current().toLowerCase();Wf.hasOwnProperty(pm)?dh="atom":Lf.hasOwnProperty(pm)?dh="keyword":dh="variable"}var Mh={};return Mh.top=function(_h,pm,Jh){if(_h=="{")return uh(Jh,pm,"block");if(_h=="}"&&Jh.context.prev)return Pf(Jh);if(Cf&&/@component/i.test(_h))return uh(Jh,pm,"atComponentBlock");if(/^@(-moz-)?document$/i.test(_h))return uh(Jh,pm,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(_h))return uh(Jh,pm,"atBlock");if(/^@(font-face|counter-style)/i.test(_h))return Jh.stateArg=_h,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(_h))return"keyframes";if(_h&&_h.charAt(0)=="@")return uh(Jh,pm,"at");if(_h=="hash")dh="builtin";else if(_h=="word")dh="tag";else{if(_h=="variable-definition")return"maybeprop";if(_h=="interpolation")return uh(Jh,pm,"interpolation");if(_h==":")return"pseudo";if(Jf&&_h=="(")return uh(Jh,pm,"parens")}return Jh.context.type},Mh.block=function(_h,pm,Jh){if(_h=="word"){var Mm=pm.current().toLowerCase();return Qf.hasOwnProperty(Mm)?(dh="property","maybeprop"):Xf.hasOwnProperty(Mm)?(dh=xf?"string-2":"property","maybeprop"):Jf?(dh=pm.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(dh+=" error","maybeprop")}else return _h=="meta"?"block":!Jf&&(_h=="hash"||_h=="qualifier")?(dh="error","block"):Mh.top(_h,pm,Jh)},Mh.maybeprop=function(_h,pm,Jh){return _h==":"?uh(Jh,pm,"prop"):Uf(_h,pm,Jh)},Mh.prop=function(_h,pm,Jh){if(_h==";")return Pf(Jh);if(_h=="{"&&Jf)return uh(Jh,pm,"propBlock");if(_h=="}"||_h=="{")return Zf(_h,pm,Jh);if(_h=="(")return uh(Jh,pm,"parens");if(_h=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(pm.current()))dh+=" error";else if(_h=="word")mh(pm);else if(_h=="interpolation")return uh(Jh,pm,"interpolation");return"prop"},Mh.propBlock=function(_h,pm,Jh){return _h=="}"?Pf(Jh):_h=="word"?(dh="property","maybeprop"):Jh.context.type},Mh.parens=function(_h,pm,Jh){return _h=="{"||_h=="}"?Zf(_h,pm,Jh):_h==")"?Pf(Jh):_h=="("?uh(Jh,pm,"parens"):_h=="interpolation"?uh(Jh,pm,"interpolation"):(_h=="word"&&mh(pm),"parens")},Mh.pseudo=function(_h,pm,Jh){return _h=="meta"?"pseudo":_h=="word"?(dh="variable-3",Jh.context.type):Uf(_h,pm,Jh)},Mh.documentTypes=function(_h,pm,Jh){return _h=="word"&&Ef.hasOwnProperty(pm.current())?(dh="tag",Jh.context.type):Mh.atBlock(_h,pm,Jh)},Mh.atBlock=function(_h,pm,Jh){if(_h=="(")return uh(Jh,pm,"atBlock_parens");if(_h=="}"||_h==";")return Zf(_h,pm,Jh);if(_h=="{")return Pf(Jh)&&uh(Jh,pm,Jf?"block":"top");if(_h=="interpolation")return uh(Jh,pm,"interpolation");if(_h=="word"){var Mm=pm.current().toLowerCase();Mm=="only"||Mm=="not"||Mm=="and"||Mm=="or"?dh="keyword":Nf.hasOwnProperty(Mm)?dh="attribute":If.hasOwnProperty(Mm)?dh="property":Gf.hasOwnProperty(Mm)?dh="keyword":Qf.hasOwnProperty(Mm)?dh="property":Xf.hasOwnProperty(Mm)?dh=xf?"string-2":"property":Wf.hasOwnProperty(Mm)?dh="atom":Lf.hasOwnProperty(Mm)?dh="keyword":dh="error"}return Jh.context.type},Mh.atComponentBlock=function(_h,pm,Jh){return _h=="}"?Zf(_h,pm,Jh):_h=="{"?Pf(Jh)&&uh(Jh,pm,Jf?"block":"top",!1):(_h=="word"&&(dh="error"),Jh.context.type)},Mh.atBlock_parens=function(_h,pm,Jh){return _h==")"?Pf(Jh):_h=="{"||_h=="}"?Zf(_h,pm,Jh,2):Mh.atBlock(_h,pm,Jh)},Mh.restricted_atBlock_before=function(_h,pm,Jh){return _h=="{"?uh(Jh,pm,"restricted_atBlock"):_h=="word"&&Jh.stateArg=="@counter-style"?(dh="variable","restricted_atBlock_before"):Uf(_h,pm,Jh)},Mh.restricted_atBlock=function(_h,pm,Jh){return _h=="}"?(Jh.stateArg=null,Pf(Jh)):_h=="word"?(Jh.stateArg=="@font-face"&&!ph.hasOwnProperty(pm.current().toLowerCase())||Jh.stateArg=="@counter-style"&&!qf.hasOwnProperty(pm.current().toLowerCase())?dh="error":dh="property","maybeprop"):"restricted_atBlock"},Mh.keyframes=function(_h,pm,Jh){return _h=="word"?(dh="variable","keyframes"):_h=="{"?uh(Jh,pm,"top"):Uf(_h,pm,Jh)},Mh.at=function(_h,pm,Jh){return _h==";"?Pf(Jh):_h=="{"||_h=="}"?Zf(_h,pm,Jh):(_h=="word"?dh="tag":_h=="hash"&&(dh="builtin"),"at")},Mh.interpolation=function(_h,pm,Jh){return _h=="}"?Pf(Jh):_h=="{"||_h==";"?Zf(_h,pm,Jh):(_h=="word"?dh="variable":_h!="variable"&&_h!="("&&_h!=")"&&(dh="error"),"interpolation")},{startState:function(_h){return{tokenize:null,state:Sf?"block":"top",stateArg:null,context:new Fh(Sf?"block":"top",_h||0,null)}},token:function(_h,pm){if(!pm.tokenize&&_h.eatSpace())return null;var Jh=(pm.tokenize||th)(_h,pm);return Jh&&typeof Jh=="object"&&(Yf=Jh[1],Jh=Jh[0]),dh=Jh,Yf!="comment"&&(pm.state=Mh[pm.state](Yf,_h,pm)),dh},indent:function(_h,pm){var Jh=_h.context,Mm=pm&&pm.charAt(0),Im=Jh.indent;return Jh.type=="prop"&&(Mm=="}"||Mm==")")&&(Jh=Jh.prev),Jh.prev&&(Mm=="}"&&(Jh.type=="block"||Jh.type=="top"||Jh.type=="interpolation"||Jh.type=="restricted_atBlock")?(Jh=Jh.prev,Im=Jh.indent):(Mm==")"&&(Jh.type=="parens"||Jh.type=="atBlock_parens")||Mm=="{"&&(Jh.type=="at"||Jh.type=="atBlock"))&&(Im=Math.max(0,Jh.indent-Tf))),Im},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Kf,fold:"brace"}});function od(pf){for(var mf={},Sf=0;Sf!?|~^@]/,kd=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Ld(Ch){for(var um=!1,Ym,ng=!1;(Ym=Ch.next())!=null;){if(!um){if(Ym=="/"&&!ng)return;Ym=="["?ng=!0:ng&&Ym=="]"&&(ng=!1)}um=!um&&Ym=="\\"}}var Gd,jd;function Fd(Ch,um,Ym){return Gd=Ch,jd=Ym,um}function Ud(Ch,um){var Ym=Ch.next();if(Ym=='"'||Ym=="'")return um.tokenize=qd(Ym),um.tokenize(Ch,um);if(Ym=="."&&Ch.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Fd("number","number");if(Ym=="."&&Ch.match(".."))return Fd("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Ym))return Fd(Ym);if(Ym=="="&&Ch.eat(">"))return Fd("=>","operator");if(Ym=="0"&&Ch.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Fd("number","number");if(/\d/.test(Ym))return Ch.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Fd("number","number");if(Ym=="/")return Ch.eat("*")?(um.tokenize=zd,zd(Ch,um)):Ch.eat("/")?(Ch.skipToEnd(),Fd("comment","comment")):Ug(Ch,um,1)?(Ld(Ch),Ch.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Fd("regexp","string-2")):(Ch.eat("="),Fd("operator","operator",Ch.current()));if(Ym=="`")return um.tokenize=Wd,Wd(Ch,um);if(Ym=="#"&&Ch.peek()=="!")return Ch.skipToEnd(),Fd("meta","meta");if(Ym=="#"&&Ch.eatWhile(Ad))return Fd("variable","property");if(Ym=="<"&&Ch.match("!--")||Ym=="-"&&Ch.match("->")&&!/\S/.test(Ch.string.slice(0,Ch.start)))return Ch.skipToEnd(),Fd("comment","comment");if(Od.test(Ym))return(Ym!=">"||!um.lexical||um.lexical.type!=">")&&(Ch.eat("=")?(Ym=="!"||Ym=="=")&&Ch.eat("="):/[<>*+\-|&?]/.test(Ym)&&(Ch.eat(Ym),Ym==">"&&Ch.eat(Ym))),Ym=="?"&&Ch.eat(".")?Fd("."):Fd("operator","operator",Ch.current());if(Ad.test(Ym)){Ch.eatWhile(Ad);var ng=Ch.current();if(um.lastType!="."){if(Nd.propertyIsEnumerable(ng)){var Um=Nd[ng];return Fd(Um.type,Um.style,ng)}if(ng=="async"&&Ch.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Fd("async","keyword",ng)}return Fd("variable","variable",ng)}}function qd(Ch){return function(um,Ym){var ng=!1,Um;if(pd&&um.peek()=="@"&&um.match(kd))return Ym.tokenize=Ud,Fd("jsonld-keyword","meta");for(;(Um=um.next())!=null&&!(Um==Ch&&!ng);)ng=!ng&&Um=="\\";return ng||(Ym.tokenize=Ud),Fd("string","string")}}function zd(Ch,um){for(var Ym=!1,ng;ng=Ch.next();){if(ng=="/"&&Ym){um.tokenize=Ud;break}Ym=ng=="*"}return Fd("comment","comment")}function Wd(Ch,um){for(var Ym=!1,ng;(ng=Ch.next())!=null;){if(!Ym&&(ng=="`"||ng=="$"&&Ch.eat("{"))){um.tokenize=Ud;break}Ym=!Ym&&ng=="\\"}return Fd("quasi","string-2",Ch.current())}var Jd="([{}])";function _f(Ch,um){um.fatArrowAt&&(um.fatArrowAt=null);var Ym=Ch.string.indexOf("=>",Ch.start);if(!(Ym<0)){if(vd){var ng=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Ch.string.slice(Ch.start,Ym));ng&&(Ym=ng.index)}for(var Um=0,Eg=!1,r_=Ym-1;r_>=0;--r_){var R_=Ch.string.charAt(r_),G_=Jd.indexOf(R_);if(G_>=0&&G_<3){if(!Um){++r_;break}if(--Um==0){R_=="("&&(Eg=!0);break}}else if(G_>=3&&G_<6)++Um;else if(Ad.test(R_))Eg=!0;else if(/["'\/`]/.test(R_))for(;;--r_){if(r_==0)return;var Tb=Ch.string.charAt(r_-1);if(Tb==R_&&Ch.string.charAt(r_-2)!="\\"){r_--;break}}else if(Eg&&!Um){++r_;break}}Eg&&!Um&&(um.fatArrowAt=r_)}}var Xd={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function pf(Ch,um,Ym,ng,Um,Eg){this.indented=Ch,this.column=um,this.type=Ym,this.prev=Um,this.info=Eg,ng!=null&&(this.align=ng)}function mf(Ch,um){if(!md)return!1;for(var Ym=Ch.localVars;Ym;Ym=Ym.next)if(Ym.name==um)return!0;for(var ng=Ch.context;ng;ng=ng.prev)for(var Ym=ng.vars;Ym;Ym=Ym.next)if(Ym.name==um)return!0}function Sf(Ch,um,Ym,ng,Um){var Eg=Ch.cc;for(Tf.state=Ch,Tf.stream=Um,Tf.marked=null,Tf.cc=Eg,Tf.style=um,Ch.lexical.hasOwnProperty("align")||(Ch.lexical.align=!0);;){var r_=Eg.length?Eg.pop():fd?Rh:Yf;if(r_(Ym,ng)){for(;Eg.length&&Eg[Eg.length-1].lex;)Eg.pop()();return Tf.marked?Tf.marked:Ym=="variable"&&mf(Ch,ng)?"variable-2":um}}}var Tf={state:null,column:null,marked:null,cc:null};function Af(){for(var Ch=arguments.length-1;Ch>=0;Ch--)Tf.cc.push(arguments[Ch])}function Ef(){return Af.apply(null,arguments),!0}function Nf(Ch,um){for(var Ym=um;Ym;Ym=Ym.next)if(Ym.name==Ch)return!0;return!1}function If(Ch){var um=Tf.state;if(Tf.marked="def",!!md){if(um.context){if(um.lexical.info=="var"&&um.context&&um.context.block){var Ym=Gf(Ch,um.context);if(Ym!=null){um.context=Ym;return}}else if(!Nf(Ch,um.localVars)){um.localVars=new ph(Ch,um.localVars);return}}ld.globalVars&&!Nf(Ch,um.globalVars)&&(um.globalVars=new ph(Ch,um.globalVars))}}function Gf(Ch,um){if(um)if(um.block){var Ym=Gf(Ch,um.prev);return Ym?Ym==um.prev?um:new Xf(Ym,um.vars,!0):null}else return Nf(Ch,um.vars)?um:new Xf(um.prev,new ph(Ch,um.vars),!1);else return null}function Qf(Ch){return Ch=="public"||Ch=="private"||Ch=="protected"||Ch=="abstract"||Ch=="readonly"}function Xf(Ch,um,Ym){this.prev=Ch,this.vars=um,this.block=Ym}function ph(Ch,um){this.name=Ch,this.next=um}var qf=new ph("this",new ph("arguments",null));function Lf(){Tf.state.context=new Xf(Tf.state.context,Tf.state.localVars,!1),Tf.state.localVars=qf}function Wf(){Tf.state.context=new Xf(Tf.state.context,Tf.state.localVars,!0),Tf.state.localVars=null}Lf.lex=Wf.lex=!0;function Jf(){Tf.state.localVars=Tf.state.context.vars,Tf.state.context=Tf.state.context.prev}Jf.lex=!0;function Kf(Ch,um){var Ym=function(){var ng=Tf.state,Um=ng.indented;if(ng.lexical.type=="stat")Um=ng.lexical.indented;else for(var Eg=ng.lexical;Eg&&Eg.type==")"&&Eg.align;Eg=Eg.prev)Um=Eg.indented;ng.lexical=new pf(Um,Tf.stream.column(),Ch,null,ng.lexical,um)};return Ym.lex=!0,Ym}function Cf(){var Ch=Tf.state;Ch.lexical.prev&&(Ch.lexical.type==")"&&(Ch.indented=Ch.lexical.indented),Ch.lexical=Ch.lexical.prev)}Cf.lex=!0;function xf(Ch){function um(Ym){return Ym==Ch?Ef():Ch==";"||Ym=="}"||Ym==")"||Ym=="]"?Af():Ef(um)}return um}function Yf(Ch,um){return Ch=="var"?Ef(Kf("vardef",um),m_,xf(";"),Cf):Ch=="keyword a"?Ef(Kf("form"),Bf,Yf,Cf):Ch=="keyword b"?Ef(Kf("form"),Yf,Cf):Ch=="keyword d"?Tf.stream.match(/^\s*$/,!1)?Ef():Ef(Kf("stat"),Fh,xf(";"),Cf):Ch=="debugger"?Ef(xf(";")):Ch=="{"?Ef(Kf("}"),Wf,wf,Cf,Jf):Ch==";"?Ef():Ch=="if"?(Tf.state.lexical.info=="else"&&Tf.state.cc[Tf.state.cc.length-1]==Cf&&Tf.state.cc.pop()(),Ef(Kf("form"),Bf,Yf,Cf,dg)):Ch=="function"?Ef(jf):Ch=="for"?Ef(Kf("form"),Wf,vb,Yf,Jf,Cf):Ch=="class"||vd&&um=="interface"?(Tf.marked="keyword",Ef(Kf("form",Ch=="class"?Ch:um),dm,Cf)):Ch=="variable"?vd&&um=="declare"?(Tf.marked="keyword",Ef(Yf)):vd&&(um=="module"||um=="enum"||um=="type")&&Tf.stream.match(/^\s*\w/,!1)?(Tf.marked="keyword",um=="enum"?Ef(lg):um=="type"?Ef(wh,xf("operator"),Dm,xf(";")):Ef(Kf("form"),a_,xf("{"),Kf("}"),wf,Cf,Cf)):vd&&um=="namespace"?(Tf.marked="keyword",Ef(Kf("form"),Rh,Yf,Cf)):vd&&um=="abstract"?(Tf.marked="keyword",Ef(Yf)):Ef(Kf("stat"),Mm):Ch=="switch"?Ef(Kf("form"),Bf,xf("{"),Kf("}","switch"),Wf,wf,Cf,Cf,Jf):Ch=="case"?Ef(Rh,xf(":")):Ch=="default"?Ef(xf(":")):Ch=="catch"?Ef(Kf("form"),Lf,dh,Yf,Cf,Jf):Ch=="export"?Ef(Kf("stat"),Gm,Cf):Ch=="import"?Ef(Kf("stat"),xg,Cf):Ch=="async"?Ef(Yf):um=="@"?Ef(Rh,Yf):Af(Kf("stat"),Rh,xf(";"),Cf)}function dh(Ch){if(Ch=="(")return Ef(Bh,xf(")"))}function Rh(Ch,um){return Sh(Ch,um,!1)}function th(Ch,um){return Sh(Ch,um,!0)}function Bf(Ch){return Ch!="("?Af():Ef(Kf(")"),Fh,xf(")"),Cf)}function Sh(Ch,um,Ym){if(Tf.state.fatArrowAt==Tf.stream.start){var ng=Ym?Mh:mh;if(Ch=="(")return Ef(Lf,Kf(")"),Th(Bh,")"),Cf,xf("=>"),ng,Jf);if(Ch=="variable")return Af(Lf,a_,xf("=>"),ng,Jf)}var Um=Ym?Pf:uh;return Xd.hasOwnProperty(Ch)?Ef(Um):Ch=="function"?Ef(jf,Um):Ch=="class"||vd&&um=="interface"?(Tf.marked="keyword",Ef(Kf("form"),fm,Cf)):Ch=="keyword c"||Ch=="async"?Ef(Ym?th:Rh):Ch=="("?Ef(Kf(")"),Fh,xf(")"),Cf,Um):Ch=="operator"||Ch=="spread"?Ef(Ym?th:Rh):Ch=="["?Ef(Kf("]"),Xg,Cf,Um):Ch=="{"?Rf(gm,"}",null,Um):Ch=="quasi"?Af(Uf,Um):Ch=="new"?Ef(_h(Ym)):Ef()}function Fh(Ch){return Ch.match(/[;\}\)\],]/)?Af():Af(Rh)}function uh(Ch,um){return Ch==","?Ef(Fh):Pf(Ch,um,!1)}function Pf(Ch,um,Ym){var ng=Ym==!1?uh:Pf,Um=Ym==!1?Rh:th;if(Ch=="=>")return Ef(Lf,Ym?Mh:mh,Jf);if(Ch=="operator")return/\+\+|--/.test(um)||vd&&um=="!"?Ef(ng):vd&&um=="<"&&Tf.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?Ef(Kf(">"),Th(Dm,">"),Cf,ng):um=="?"?Ef(Rh,xf(":"),Um):Ef(Um);if(Ch=="quasi")return Af(Uf,ng);if(Ch!=";"){if(Ch=="(")return Rf(th,")","call",ng);if(Ch==".")return Ef(Im,ng);if(Ch=="[")return Ef(Kf("]"),Fh,xf("]"),Cf,ng);if(vd&&um=="as")return Tf.marked="keyword",Ef(Dm,ng);if(Ch=="regexp")return Tf.state.lastType=Tf.marked="operator",Tf.stream.backUp(Tf.stream.pos-Tf.stream.start-1),Ef(Um)}}function Uf(Ch,um){return Ch!="quasi"?Af():um.slice(um.length-2)!="${"?Ef(Uf):Ef(Fh,Zf)}function Zf(Ch){if(Ch=="}")return Tf.marked="string-2",Tf.state.tokenize=Wd,Ef(Uf)}function mh(Ch){return _f(Tf.stream,Tf.state),Af(Ch=="{"?Yf:Rh)}function Mh(Ch){return _f(Tf.stream,Tf.state),Af(Ch=="{"?Yf:th)}function _h(Ch){return function(um){return um=="."?Ef(Ch?Jh:pm):um=="variable"&&vd?Ef(Gg,Ch?Pf:uh):Af(Ch?th:Rh)}}function pm(Ch,um){if(um=="target")return Tf.marked="keyword",Ef(uh)}function Jh(Ch,um){if(um=="target")return Tf.marked="keyword",Ef(Pf)}function Mm(Ch){return Ch==":"?Ef(Cf,Yf):Af(uh,xf(";"),Cf)}function Im(Ch){if(Ch=="variable")return Tf.marked="property",Ef()}function gm(Ch,um){if(Ch=="async")return Tf.marked="property",Ef(gm);if(Ch=="variable"||Tf.style=="keyword"){if(Tf.marked="property",um=="get"||um=="set")return Ef(Lm);var Ym;return vd&&Tf.state.fatArrowAt==Tf.stream.start&&(Ym=Tf.stream.match(/^\s*:\s*/,!1))&&(Tf.state.fatArrowAt=Tf.stream.pos+Ym[0].length),Ef(Vm)}else{if(Ch=="number"||Ch=="string")return Tf.marked=pd?"property":Tf.style+" property",Ef(Vm);if(Ch=="jsonld-keyword")return Ef(Vm);if(vd&&Qf(um))return Tf.marked="keyword",Ef(gm);if(Ch=="[")return Ef(Rh,sh,xf("]"),Vm);if(Ch=="spread")return Ef(th,Vm);if(um=="*")return Tf.marked="keyword",Ef(gm);if(Ch==":")return Af(Vm)}}function Lm(Ch){return Ch!="variable"?Af(Vm):(Tf.marked="property",Ef(jf))}function Vm(Ch){if(Ch==":")return Ef(th);if(Ch=="(")return Af(jf)}function Th(Ch,um,Ym){function ng(Um,Eg){if(Ym?Ym.indexOf(Um)>-1:Um==","){var r_=Tf.state.lexical;return r_.info=="call"&&(r_.pos=(r_.pos||0)+1),Ef(function(R_,G_){return R_==um||G_==um?Af():Af(Ch)},ng)}return Um==um||Eg==um?Ef():Ym&&Ym.indexOf(";")>-1?Af(Ch):Ef(xf(um))}return function(Um,Eg){return Um==um||Eg==um?Ef():Af(Ch,ng)}}function Rf(Ch,um,Ym){for(var ng=3;ng"),Dm);if(Ch=="quasi")return Af(Zm,Kg)}function zm(Ch){if(Ch=="=>")return Ef(Dm)}function jm(Ch){return Ch.match(/[\}\)\]]/)?Ef():Ch==","||Ch==";"?Ef(jm):Af(ig,jm)}function ig(Ch,um){if(Ch=="variable"||Tf.style=="keyword")return Tf.marked="property",Ef(ig);if(um=="?"||Ch=="number"||Ch=="string")return Ef(ig);if(Ch==":")return Ef(Dm);if(Ch=="[")return Ef(xf("variable"),xh,xf("]"),ig);if(Ch=="(")return Af(Uh,ig);if(!Ch.match(/[;\}\)\],]/))return Ef()}function Zm(Ch,um){return Ch!="quasi"?Af():um.slice(um.length-2)!="${"?Ef(Zm):Ef(Dm,ug)}function ug(Ch){if(Ch=="}")return Tf.marked="string-2",Tf.state.tokenize=Wd,Ef(Zm)}function wg(Ch,um){return Ch=="variable"&&Tf.stream.match(/^\s*[?:]/,!1)||um=="?"?Ef(wg):Ch==":"?Ef(Dm):Ch=="spread"?Ef(wg):Af(Dm)}function Kg(Ch,um){if(um=="<")return Ef(Kf(">"),Th(Dm,">"),Cf,Kg);if(um=="|"||Ch=="."||um=="&")return Ef(Dm);if(Ch=="[")return Ef(Dm,xf("]"),Kg);if(um=="extends"||um=="implements")return Tf.marked="keyword",Ef(Dm);if(um=="?")return Ef(Dm,xf(":"),Dm)}function Gg(Ch,um){if(um=="<")return Ef(Kf(">"),Th(Dm,">"),Cf,Kg)}function n_(){return Af(Dm,Pg)}function Pg(Ch,um){if(um=="=")return Ef(Dm)}function m_(Ch,um){return um=="enum"?(Tf.marked="keyword",Ef(lg)):Af(a_,sh,h_,y_)}function a_(Ch,um){if(vd&&Qf(um))return Tf.marked="keyword",Ef(a_);if(Ch=="variable")return If(um),Ef();if(Ch=="spread")return Ef(a_);if(Ch=="[")return Rf(B_,"]");if(Ch=="{")return Rf(M_,"}")}function M_(Ch,um){return Ch=="variable"&&!Tf.stream.match(/^\s*:/,!1)?(If(um),Ef(h_)):(Ch=="variable"&&(Tf.marked="property"),Ch=="spread"?Ef(a_):Ch=="}"?Af():Ch=="["?Ef(Rh,xf("]"),xf(":"),M_):Ef(xf(":"),a_,h_))}function B_(){return Af(a_,h_)}function h_(Ch,um){if(um=="=")return Ef(th)}function y_(Ch){if(Ch==",")return Ef(m_)}function dg(Ch,um){if(Ch=="keyword b"&&um=="else")return Ef(Kf("form","else"),Yf,Cf)}function vb(Ch,um){if(um=="await")return Ef(vb);if(Ch=="(")return Ef(Kf(")"),kb,Cf)}function kb(Ch){return Ch=="var"?Ef(m_,Z_):Ch=="variable"?Ef(Z_):Af(Z_)}function Z_(Ch,um){return Ch==")"?Ef():Ch==";"?Ef(Z_):um=="in"||um=="of"?(Tf.marked="keyword",Ef(Rh,Z_)):Af(Rh,Z_)}function jf(Ch,um){if(um=="*")return Tf.marked="keyword",Ef(jf);if(Ch=="variable")return If(um),Ef(jf);if(Ch=="(")return Ef(Lf,Kf(")"),Th(Bh,")"),Cf,Wh,Yf,Jf);if(vd&&um=="<")return Ef(Kf(">"),Th(n_,">"),Cf,jf)}function Uh(Ch,um){if(um=="*")return Tf.marked="keyword",Ef(Uh);if(Ch=="variable")return If(um),Ef(Uh);if(Ch=="(")return Ef(Lf,Kf(")"),Th(Bh,")"),Cf,Wh,Jf);if(vd&&um=="<")return Ef(Kf(">"),Th(n_,">"),Cf,Uh)}function wh(Ch,um){if(Ch=="keyword"||Ch=="variable")return Tf.marked="type",Ef(wh);if(um=="<")return Ef(Kf(">"),Th(n_,">"),Cf)}function Bh(Ch,um){return um=="@"&&Ef(Rh,Bh),Ch=="spread"?Ef(Bh):vd&&Qf(um)?(Tf.marked="keyword",Ef(Bh)):vd&&Ch=="this"?Ef(sh,h_):Af(a_,sh,h_)}function fm(Ch,um){return Ch=="variable"?dm(Ch,um):Tm(Ch,um)}function dm(Ch,um){if(Ch=="variable")return If(um),Ef(Tm)}function Tm(Ch,um){if(um=="<")return Ef(Kf(">"),Th(n_,">"),Cf,Tm);if(um=="extends"||um=="implements"||vd&&Ch==",")return um=="implements"&&(Tf.marked="keyword"),Ef(vd?Dm:Rh,Tm);if(Ch=="{")return Ef(Kf("}"),_m,Cf)}function _m(Ch,um){if(Ch=="async"||Ch=="variable"&&(um=="static"||um=="get"||um=="set"||vd&&Qf(um))&&Tf.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return Tf.marked="keyword",Ef(_m);if(Ch=="variable"||Tf.style=="keyword")return Tf.marked="property",Ef(Zh,_m);if(Ch=="number"||Ch=="string")return Ef(Zh,_m);if(Ch=="[")return Ef(Rh,sh,xf("]"),Zh,_m);if(um=="*")return Tf.marked="keyword",Ef(_m);if(vd&&Ch=="(")return Af(Uh,_m);if(Ch==";"||Ch==",")return Ef(_m);if(Ch=="}")return Ef();if(um=="@")return Ef(Rh,_m)}function Zh(Ch,um){if(um=="!"||um=="?")return Ef(Zh);if(Ch==":")return Ef(Dm,h_);if(um=="=")return Ef(th);var Ym=Tf.state.lexical.prev,ng=Ym&&Ym.info=="interface";return Af(ng?Uh:jf)}function Gm(Ch,um){return um=="*"?(Tf.marked="keyword",Ef(u_,xf(";"))):um=="default"?(Tf.marked="keyword",Ef(Rh,xf(";"))):Ch=="{"?Ef(Th(Km,"}"),u_,xf(";")):Af(Yf)}function Km(Ch,um){if(um=="as")return Tf.marked="keyword",Ef(xf("variable"));if(Ch=="variable")return Af(th,Km)}function xg(Ch){return Ch=="string"?Ef():Ch=="("?Af(Rh):Ch=="."?Af(uh):Af(eg,Ag,u_)}function eg(Ch,um){return Ch=="{"?Rf(eg,"}"):(Ch=="variable"&&If(um),um=="*"&&(Tf.marked="keyword"),Ef(d_))}function Ag(Ch){if(Ch==",")return Ef(eg,Ag)}function d_(Ch,um){if(um=="as")return Tf.marked="keyword",Ef(eg)}function u_(Ch,um){if(um=="from")return Tf.marked="keyword",Ef(Rh)}function Xg(Ch){return Ch=="]"?Ef():Af(Th(th,"]"))}function lg(){return Af(Kf("form"),a_,xf("{"),Kf("}"),Th(N_,"}"),Cf,Cf)}function N_(){return Af(a_,h_)}function Zg(Ch,um){return Ch.lastType=="operator"||Ch.lastType==","||Od.test(um.charAt(0))||/[,.]/.test(um.charAt(0))}function Ug(Ch,um,Ym){return um.tokenize==Ud&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(um.lastType)||um.lastType=="quasi"&&/\{\s*$/.test(Ch.string.slice(0,Ch.pos-(Ym||0)))}return{startState:function(Ch){var um={tokenize:Ud,lastType:"sof",cc:[],lexical:new pf((Ch||0)-ud,0,"block",!1),localVars:ld.localVars,context:ld.localVars&&new Xf(null,null,!1),indented:Ch||0};return ld.globalVars&&typeof ld.globalVars=="object"&&(um.globalVars=ld.globalVars),um},token:function(Ch,um){if(Ch.sol()&&(um.lexical.hasOwnProperty("align")||(um.lexical.align=!1),um.indented=Ch.indentation(),_f(Ch,um)),um.tokenize!=zd&&Ch.eatSpace())return null;var Ym=um.tokenize(Ch,um);return Gd=="comment"?Ym:(um.lastType=Gd=="operator"&&(jd=="++"||jd=="--")?"incdec":Gd,Sf(um,Ym,Gd,jd,Ch))},indent:function(Ch,um){if(Ch.tokenize==zd||Ch.tokenize==Wd)return nd.Pass;if(Ch.tokenize!=Ud)return 0;var Ym=um&&um.charAt(0),ng=Ch.lexical,Um;if(!/^\s*else\b/.test(um))for(var Eg=Ch.cc.length-1;Eg>=0;--Eg){var r_=Ch.cc[Eg];if(r_==Cf)ng=ng.prev;else if(r_!=dg&&r_!=Jf)break}for(;(ng.type=="stat"||ng.type=="form")&&(Ym=="}"||(Um=Ch.cc[Ch.cc.length-1])&&(Um==uh||Um==Pf)&&!/^[,\.=+\-*:?[\(]/.test(um));)ng=ng.prev;dd&&ng.type==")"&&ng.prev.type=="stat"&&(ng=ng.prev);var R_=ng.type,G_=Ym==R_;return R_=="vardef"?ng.indented+(Ch.lastType=="operator"||Ch.lastType==","?ng.info.length+1:0):R_=="form"&&Ym=="{"?ng.indented:R_=="form"?ng.indented+ud:R_=="stat"?ng.indented+(Zg(Ch,um)?dd||ud:0):ng.info=="switch"&&!G_&&ld.doubleIndentSwitch!=!1?ng.indented+(/^(?:case|default)\b/.test(um)?ud:2*ud):ng.align?ng.column+(G_?0:1):ng.indented+(G_?0:ud)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:fd?null:"/*",blockCommentEnd:fd?null:"*/",blockCommentContinue:fd?null:" * ",lineComment:fd?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:fd?"json":"javascript",jsonldMode:pd,jsonMode:fd,expressionAllowed:Ug,skipExpression:function(Ch){Sf(Ch,"atom","atom","true",new nd.StringStream("",2,null))}}}),nd.registerHelper("wordChars","javascript",/[\w$]/),nd.defineMIME("text/javascript","javascript"),nd.defineMIME("text/ecmascript","javascript"),nd.defineMIME("application/javascript","javascript"),nd.defineMIME("application/x-javascript","javascript"),nd.defineMIME("application/ecmascript","javascript"),nd.defineMIME("application/json",{name:"javascript",json:!0}),nd.defineMIME("application/x-json",{name:"javascript",json:!0}),nd.defineMIME("application/manifest+json",{name:"javascript",json:!0}),nd.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),nd.defineMIME("text/typescript",{name:"javascript",typescript:!0}),nd.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var xml={exports:{}},hasRequiredXml;function requireXml(){return hasRequiredXml||(hasRequiredXml=1,function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){var od={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ld={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};nd.defineMode("xml",function(ud,dd){var pd=ud.indentUnit,fd={},md=dd.htmlMode?od:ld;for(var vd in md)fd[vd]=md[vd];for(var vd in dd)fd[vd]=dd[vd];var Ad,Nd;function Od(Ef,Nf){function If(Xf){return Nf.tokenize=Xf,Xf(Ef,Nf)}var Gf=Ef.next();if(Gf=="<")return Ef.eat("!")?Ef.eat("[")?Ef.match("CDATA[")?If(Gd("atom","]]>")):null:Ef.match("--")?If(Gd("comment","-->")):Ef.match("DOCTYPE",!0,!0)?(Ef.eatWhile(/[\w\._\-]/),If(jd(1))):null:Ef.eat("?")?(Ef.eatWhile(/[\w\._\-]/),Nf.tokenize=Gd("meta","?>"),"meta"):(Ad=Ef.eat("/")?"closeTag":"openTag",Nf.tokenize=kd,"tag bracket");if(Gf=="&"){var Qf;return Ef.eat("#")?Ef.eat("x")?Qf=Ef.eatWhile(/[a-fA-F\d]/)&&Ef.eat(";"):Qf=Ef.eatWhile(/[\d]/)&&Ef.eat(";"):Qf=Ef.eatWhile(/[\w\.\-:]/)&&Ef.eat(";"),Qf?"atom":"error"}else return Ef.eatWhile(/[^&<]/),null}Od.isInText=!0;function kd(Ef,Nf){var If=Ef.next();if(If==">"||If=="/"&&Ef.eat(">"))return Nf.tokenize=Od,Ad=If==">"?"endTag":"selfcloseTag","tag bracket";if(If=="=")return Ad="equals",null;if(If=="<"){Nf.tokenize=Od,Nf.state=Wd,Nf.tagName=Nf.tagStart=null;var Gf=Nf.tokenize(Ef,Nf);return Gf?Gf+" tag error":"tag error"}else return/[\'\"]/.test(If)?(Nf.tokenize=Ld(If),Nf.stringStartCol=Ef.column(),Nf.tokenize(Ef,Nf)):(Ef.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ld(Ef){var Nf=function(If,Gf){for(;!If.eol();)if(If.next()==Ef){Gf.tokenize=kd;break}return"string"};return Nf.isInAttribute=!0,Nf}function Gd(Ef,Nf){return function(If,Gf){for(;!If.eol();){if(If.match(Nf)){Gf.tokenize=Od;break}If.next()}return Ef}}function jd(Ef){return function(Nf,If){for(var Gf;(Gf=Nf.next())!=null;){if(Gf=="<")return If.tokenize=jd(Ef+1),If.tokenize(Nf,If);if(Gf==">")if(Ef==1){If.tokenize=Od;break}else return If.tokenize=jd(Ef-1),If.tokenize(Nf,If)}return"meta"}}function Fd(Ef){return Ef&&Ef.toLowerCase()}function Ud(Ef,Nf,If){this.prev=Ef.context,this.tagName=Nf||"",this.indent=Ef.indented,this.startOfLine=If,(fd.doNotIndent.hasOwnProperty(Nf)||Ef.context&&Ef.context.noIndent)&&(this.noIndent=!0)}function qd(Ef){Ef.context&&(Ef.context=Ef.context.prev)}function zd(Ef,Nf){for(var If;;){if(!Ef.context||(If=Ef.context.tagName,!fd.contextGrabbers.hasOwnProperty(Fd(If))||!fd.contextGrabbers[Fd(If)].hasOwnProperty(Fd(Nf))))return;qd(Ef)}}function Wd(Ef,Nf,If){return Ef=="openTag"?(If.tagStart=Nf.column(),Jd):Ef=="closeTag"?_f:Wd}function Jd(Ef,Nf,If){return Ef=="word"?(If.tagName=Nf.current(),Nd="tag",mf):fd.allowMissingTagName&&Ef=="endTag"?(Nd="tag bracket",mf(Ef,Nf,If)):(Nd="error",Jd)}function _f(Ef,Nf,If){if(Ef=="word"){var Gf=Nf.current();return If.context&&If.context.tagName!=Gf&&fd.implicitlyClosed.hasOwnProperty(Fd(If.context.tagName))&&qd(If),If.context&&If.context.tagName==Gf||fd.matchClosing===!1?(Nd="tag",Xd):(Nd="tag error",pf)}else return fd.allowMissingTagName&&Ef=="endTag"?(Nd="tag bracket",Xd(Ef,Nf,If)):(Nd="error",pf)}function Xd(Ef,Nf,If){return Ef!="endTag"?(Nd="error",Xd):(qd(If),Wd)}function pf(Ef,Nf,If){return Nd="error",Xd(Ef,Nf,If)}function mf(Ef,Nf,If){if(Ef=="word")return Nd="attribute",Sf;if(Ef=="endTag"||Ef=="selfcloseTag"){var Gf=If.tagName,Qf=If.tagStart;return If.tagName=If.tagStart=null,Ef=="selfcloseTag"||fd.autoSelfClosers.hasOwnProperty(Fd(Gf))?zd(If,Gf):(zd(If,Gf),If.context=new Ud(If,Gf,Qf==If.indented)),Wd}return Nd="error",mf}function Sf(Ef,Nf,If){return Ef=="equals"?Tf:(fd.allowMissing||(Nd="error"),mf(Ef,Nf,If))}function Tf(Ef,Nf,If){return Ef=="string"?Af:Ef=="word"&&fd.allowUnquoted?(Nd="string",mf):(Nd="error",mf(Ef,Nf,If))}function Af(Ef,Nf,If){return Ef=="string"?Af:mf(Ef,Nf,If)}return{startState:function(Ef){var Nf={tokenize:Od,state:Wd,indented:Ef||0,tagName:null,tagStart:null,context:null};return Ef!=null&&(Nf.baseIndent=Ef),Nf},token:function(Ef,Nf){if(!Nf.tagName&&Ef.sol()&&(Nf.indented=Ef.indentation()),Ef.eatSpace())return null;Ad=null;var If=Nf.tokenize(Ef,Nf);return(If||Ad)&&If!="comment"&&(Nd=null,Nf.state=Nf.state(Ad||If,Ef,Nf),Nd&&(If=Nd=="error"?If+" error":Nd)),If},indent:function(Ef,Nf,If){var Gf=Ef.context;if(Ef.tokenize.isInAttribute)return Ef.tagStart==Ef.indented?Ef.stringStartCol+1:Ef.indented+pd;if(Gf&&Gf.noIndent)return nd.Pass;if(Ef.tokenize!=kd&&Ef.tokenize!=Od)return If?If.match(/^(\s*)/)[0].length:0;if(Ef.tagName)return fd.multilineTagIndentPastTag!==!1?Ef.tagStart+Ef.tagName.length+2:Ef.tagStart+pd*(fd.multilineTagIndentFactor||1);if(fd.alignCDATA&&/$/,blockCommentStart:"",configuration:fd.htmlMode?"html":"xml",helperType:fd.htmlMode?"html":"xml",skipAttribute:function(Ef){Ef.state==Tf&&(Ef.state=mf)},xmlCurrentTag:function(Ef){return Ef.tagName?{name:Ef.tagName,close:Ef.type=="closeTag"}:null},xmlCurrentContext:function(Ef){for(var Nf=[],If=Ef.context;If;If=If.prev)Nf.push(If.tagName);return Nf.reverse()}}}),nd.defineMIME("text/xml","xml"),nd.defineMIME("application/xml","xml"),nd.mimeModes.hasOwnProperty("text/html")||nd.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xml.exports}var meta={exports:{}},hasRequiredMeta;function requireMeta(){return hasRequiredMeta||(hasRequiredMeta=1,function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){nd.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var od=0;od-1&&ud.substring(fd+1,ud.length);if(md)return nd.findModeByExtension(md)},nd.findModeByName=function(ud){ud=ud.toLowerCase();for(var dd=0;dd` "'(~:]+/,Gd=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,jd=/^\s*\[[^\]]+?\]:.*$/,Fd=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Ud=" ";function qd(qf,Lf,Wf){return Lf.f=Lf.inline=Wf,Wf(qf,Lf)}function zd(qf,Lf,Wf){return Lf.f=Lf.block=Wf,Wf(qf,Lf)}function Wd(qf){return!qf||!/\S/.test(qf.string)}function Jd(qf){if(qf.linkTitle=!1,qf.linkHref=!1,qf.linkText=!1,qf.em=!1,qf.strong=!1,qf.strikethrough=!1,qf.quote=0,qf.indentedCode=!1,qf.f==Xd){var Lf=dd;if(!Lf){var Wf=nd.innerMode(ud,qf.htmlState);Lf=Wf.mode.name=="xml"&&Wf.state.tagStart===null&&!Wf.state.context&&Wf.state.tokenize.isInText}Lf&&(qf.f=Tf,qf.block=_f,qf.htmlState=null)}return qf.trailingSpace=0,qf.trailingSpaceNewLine=!1,qf.prevLine=qf.thisLine,qf.thisLine={stream:null},null}function _f(qf,Lf){var Wf=qf.column()===Lf.indentation,Jf=Wd(Lf.prevLine.stream),Kf=Lf.indentedCode,Cf=Lf.prevLine.hr,xf=Lf.list!==!1,Yf=(Lf.listStack[Lf.listStack.length-1]||0)+3;Lf.indentedCode=!1;var dh=Lf.indentation;if(Lf.indentationDiff===null&&(Lf.indentationDiff=Lf.indentation,xf)){for(Lf.list=null;dh=4&&(Kf||Lf.prevLine.fencedCodeEnd||Lf.prevLine.header||Jf))return qf.skipToEnd(),Lf.indentedCode=!0,fd.code;if(qf.eatSpace())return null;if(Wf&&Lf.indentation<=Yf&&(Bf=qf.match(Od))&&Bf[1].length<=6)return Lf.quote=0,Lf.header=Bf[1].length,Lf.thisLine.header=!0,ld.highlightFormatting&&(Lf.formatting="header"),Lf.f=Lf.inline,mf(Lf);if(Lf.indentation<=Yf&&qf.eat(">"))return Lf.quote=Wf?1:Lf.quote+1,ld.highlightFormatting&&(Lf.formatting="quote"),qf.eatSpace(),mf(Lf);if(!th&&!Lf.setext&&Wf&&Lf.indentation<=Yf&&(Bf=qf.match(Ad))){var Sh=Bf[1]?"ol":"ul";return Lf.indentation=dh+qf.current().length,Lf.list=!0,Lf.quote=0,Lf.listStack.push(Lf.indentation),Lf.em=!1,Lf.strong=!1,Lf.code=!1,Lf.strikethrough=!1,ld.taskLists&&qf.match(Nd,!1)&&(Lf.taskList=!0),Lf.f=Lf.inline,ld.highlightFormatting&&(Lf.formatting=["list","list-"+Sh]),mf(Lf)}else{if(Wf&&Lf.indentation<=Yf&&(Bf=qf.match(Gd,!0)))return Lf.quote=0,Lf.fencedEndRE=new RegExp(Bf[1]+"+ *$"),Lf.localMode=ld.fencedCodeBlockHighlighting&&pd(Bf[2]||ld.fencedCodeBlockDefaultMode),Lf.localMode&&(Lf.localState=nd.startState(Lf.localMode)),Lf.f=Lf.block=pf,ld.highlightFormatting&&(Lf.formatting="code-block"),Lf.code=-1,mf(Lf);if(Lf.setext||(!Rh||!xf)&&!Lf.quote&&Lf.list===!1&&!Lf.code&&!th&&!jd.test(qf.string)&&(Bf=qf.lookAhead(1))&&(Bf=Bf.match(kd)))return Lf.setext?(Lf.header=Lf.setext,Lf.setext=0,qf.skipToEnd(),ld.highlightFormatting&&(Lf.formatting="header")):(Lf.header=Bf[0].charAt(0)=="="?1:2,Lf.setext=Lf.header),Lf.thisLine.header=!0,Lf.f=Lf.inline,mf(Lf);if(th)return qf.skipToEnd(),Lf.hr=!0,Lf.thisLine.hr=!0,fd.hr;if(qf.peek()==="[")return qd(qf,Lf,Gf)}return qd(qf,Lf,Lf.inline)}function Xd(qf,Lf){var Wf=ud.token(qf,Lf.htmlState);if(!dd){var Jf=nd.innerMode(ud,Lf.htmlState);(Jf.mode.name=="xml"&&Jf.state.tagStart===null&&!Jf.state.context&&Jf.state.tokenize.isInText||Lf.md_inside&&qf.current().indexOf(">")>-1)&&(Lf.f=Tf,Lf.block=_f,Lf.htmlState=null)}return Wf}function pf(qf,Lf){var Wf=Lf.listStack[Lf.listStack.length-1]||0,Jf=Lf.indentation=qf.quote?Lf.push(fd.formatting+"-"+qf.formatting[Wf]+"-"+qf.quote):Lf.push("error"))}if(qf.taskOpen)return Lf.push("meta"),Lf.length?Lf.join(" "):null;if(qf.taskClosed)return Lf.push("property"),Lf.length?Lf.join(" "):null;if(qf.linkHref?Lf.push(fd.linkHref,"url"):(qf.strong&&Lf.push(fd.strong),qf.em&&Lf.push(fd.em),qf.strikethrough&&Lf.push(fd.strikethrough),qf.emoji&&Lf.push(fd.emoji),qf.linkText&&Lf.push(fd.linkText),qf.code&&Lf.push(fd.code),qf.image&&Lf.push(fd.image),qf.imageAltText&&Lf.push(fd.imageAltText,"link"),qf.imageMarker&&Lf.push(fd.imageMarker)),qf.header&&Lf.push(fd.header,fd.header+"-"+qf.header),qf.quote&&(Lf.push(fd.quote),!ld.maxBlockquoteDepth||ld.maxBlockquoteDepth>=qf.quote?Lf.push(fd.quote+"-"+qf.quote):Lf.push(fd.quote+"-"+ld.maxBlockquoteDepth)),qf.list!==!1){var Jf=(qf.listStack.length-1)%3;Jf?Jf===1?Lf.push(fd.list2):Lf.push(fd.list3):Lf.push(fd.list1)}return qf.trailingSpaceNewLine?Lf.push("trailing-space-new-line"):qf.trailingSpace&&Lf.push("trailing-space-"+(qf.trailingSpace%2?"a":"b")),Lf.length?Lf.join(" "):null}function Sf(qf,Lf){if(qf.match(Ld,!0))return mf(Lf)}function Tf(qf,Lf){var Wf=Lf.text(qf,Lf);if(typeof Wf<"u")return Wf;if(Lf.list)return Lf.list=null,mf(Lf);if(Lf.taskList){var Jf=qf.match(Nd,!0)[1]===" ";return Jf?Lf.taskOpen=!0:Lf.taskClosed=!0,ld.highlightFormatting&&(Lf.formatting="task"),Lf.taskList=!1,mf(Lf)}if(Lf.taskOpen=!1,Lf.taskClosed=!1,Lf.header&&qf.match(/^#+$/,!0))return ld.highlightFormatting&&(Lf.formatting="header"),mf(Lf);var Kf=qf.next();if(Lf.linkTitle){Lf.linkTitle=!1;var Cf=Kf;Kf==="("&&(Cf=")"),Cf=(Cf+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var xf="^\\s*(?:[^"+Cf+"\\\\]+|\\\\\\\\|\\\\.)"+Cf;if(qf.match(new RegExp(xf),!0))return fd.linkHref}if(Kf==="`"){var Yf=Lf.formatting;ld.highlightFormatting&&(Lf.formatting="code"),qf.eatWhile("`");var dh=qf.current().length;if(Lf.code==0&&(!Lf.quote||dh==1))return Lf.code=dh,mf(Lf);if(dh==Lf.code){var Rh=mf(Lf);return Lf.code=0,Rh}else return Lf.formatting=Yf,mf(Lf)}else if(Lf.code)return mf(Lf);if(Kf==="\\"&&(qf.next(),ld.highlightFormatting)){var th=mf(Lf),Bf=fd.formatting+"-escape";return th?th+" "+Bf:Bf}if(Kf==="!"&&qf.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Lf.imageMarker=!0,Lf.image=!0,ld.highlightFormatting&&(Lf.formatting="image"),mf(Lf);if(Kf==="["&&Lf.imageMarker&&qf.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Lf.imageMarker=!1,Lf.imageAltText=!0,ld.highlightFormatting&&(Lf.formatting="image"),mf(Lf);if(Kf==="]"&&Lf.imageAltText){ld.highlightFormatting&&(Lf.formatting="image");var th=mf(Lf);return Lf.imageAltText=!1,Lf.image=!1,Lf.inline=Lf.f=Ef,th}if(Kf==="["&&!Lf.image)return Lf.linkText&&qf.match(/^.*?\]/)||(Lf.linkText=!0,ld.highlightFormatting&&(Lf.formatting="link")),mf(Lf);if(Kf==="]"&&Lf.linkText){ld.highlightFormatting&&(Lf.formatting="link");var th=mf(Lf);return Lf.linkText=!1,Lf.inline=Lf.f=qf.match(/\(.*?\)| ?\[.*?\]/,!1)?Ef:Tf,th}if(Kf==="<"&&qf.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Lf.f=Lf.inline=Af,ld.highlightFormatting&&(Lf.formatting="link");var th=mf(Lf);return th?th+=" ":th="",th+fd.linkInline}if(Kf==="<"&&qf.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Lf.f=Lf.inline=Af,ld.highlightFormatting&&(Lf.formatting="link");var th=mf(Lf);return th?th+=" ":th="",th+fd.linkEmail}if(ld.xml&&Kf==="<"&&qf.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Sh=qf.string.indexOf(">",qf.pos);if(Sh!=-1){var Fh=qf.string.substring(qf.start,Sh);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Fh)&&(Lf.md_inside=!0)}return qf.backUp(1),Lf.htmlState=nd.startState(ud),zd(qf,Lf,Xd)}if(ld.xml&&Kf==="<"&&qf.match(/^\/\w*?>/))return Lf.md_inside=!1,"tag";if(Kf==="*"||Kf==="_"){for(var uh=1,Pf=qf.pos==1?" ":qf.string.charAt(qf.pos-2);uh<3&&qf.eat(Kf);)uh++;var Uf=qf.peek()||" ",Zf=!/\s/.test(Uf)&&(!Fd.test(Uf)||/\s/.test(Pf)||Fd.test(Pf)),mh=!/\s/.test(Pf)&&(!Fd.test(Pf)||/\s/.test(Uf)||Fd.test(Uf)),Mh=null,_h=null;if(uh%2&&(!Lf.em&&Zf&&(Kf==="*"||!mh||Fd.test(Pf))?Mh=!0:Lf.em==Kf&&mh&&(Kf==="*"||!Zf||Fd.test(Uf))&&(Mh=!1)),uh>1&&(!Lf.strong&&Zf&&(Kf==="*"||!mh||Fd.test(Pf))?_h=!0:Lf.strong==Kf&&mh&&(Kf==="*"||!Zf||Fd.test(Uf))&&(_h=!1)),_h!=null||Mh!=null){ld.highlightFormatting&&(Lf.formatting=Mh==null?"strong":_h==null?"em":"strong em"),Mh===!0&&(Lf.em=Kf),_h===!0&&(Lf.strong=Kf);var Rh=mf(Lf);return Mh===!1&&(Lf.em=!1),_h===!1&&(Lf.strong=!1),Rh}}else if(Kf===" "&&(qf.eat("*")||qf.eat("_"))){if(qf.peek()===" ")return mf(Lf);qf.backUp(1)}if(ld.strikethrough){if(Kf==="~"&&qf.eatWhile(Kf)){if(Lf.strikethrough){ld.highlightFormatting&&(Lf.formatting="strikethrough");var Rh=mf(Lf);return Lf.strikethrough=!1,Rh}else if(qf.match(/^[^\s]/,!1))return Lf.strikethrough=!0,ld.highlightFormatting&&(Lf.formatting="strikethrough"),mf(Lf)}else if(Kf===" "&&qf.match("~~",!0)){if(qf.peek()===" ")return mf(Lf);qf.backUp(2)}}if(ld.emoji&&Kf===":"&&qf.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Lf.emoji=!0,ld.highlightFormatting&&(Lf.formatting="emoji");var pm=mf(Lf);return Lf.emoji=!1,pm}return Kf===" "&&(qf.match(/^ +$/,!1)?Lf.trailingSpace++:Lf.trailingSpace&&(Lf.trailingSpaceNewLine=!0)),mf(Lf)}function Af(qf,Lf){var Wf=qf.next();if(Wf===">"){Lf.f=Lf.inline=Tf,ld.highlightFormatting&&(Lf.formatting="link");var Jf=mf(Lf);return Jf?Jf+=" ":Jf="",Jf+fd.linkInline}return qf.match(/^[^>]+/,!0),fd.linkInline}function Ef(qf,Lf){if(qf.eatSpace())return null;var Wf=qf.next();return Wf==="("||Wf==="["?(Lf.f=Lf.inline=If(Wf==="("?")":"]"),ld.highlightFormatting&&(Lf.formatting="link-string"),Lf.linkHref=!0,mf(Lf)):"error"}var Nf={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function If(qf){return function(Lf,Wf){var Jf=Lf.next();if(Jf===qf){Wf.f=Wf.inline=Tf,ld.highlightFormatting&&(Wf.formatting="link-string");var Kf=mf(Wf);return Wf.linkHref=!1,Kf}return Lf.match(Nf[qf]),Wf.linkHref=!0,mf(Wf)}}function Gf(qf,Lf){return qf.match(/^([^\]\\]|\\.)*\]:/,!1)?(Lf.f=Qf,qf.next(),ld.highlightFormatting&&(Lf.formatting="link"),Lf.linkText=!0,mf(Lf)):qd(qf,Lf,Tf)}function Qf(qf,Lf){if(qf.match("]:",!0)){Lf.f=Lf.inline=Xf,ld.highlightFormatting&&(Lf.formatting="link");var Wf=mf(Lf);return Lf.linkText=!1,Wf}return qf.match(/^([^\]\\]|\\.)+/,!0),fd.linkText}function Xf(qf,Lf){return qf.eatSpace()?null:(qf.match(/^[^\s]+/,!0),qf.peek()===void 0?Lf.linkTitle=!0:qf.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),Lf.f=Lf.inline=Tf,fd.linkHref+" url")}var ph={startState:function(){return{f:_f,prevLine:{stream:null},thisLine:{stream:null},block:_f,htmlState:null,indentation:0,inline:Tf,text:Sf,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(qf){return{f:qf.f,prevLine:qf.prevLine,thisLine:qf.thisLine,block:qf.block,htmlState:qf.htmlState&&nd.copyState(ud,qf.htmlState),indentation:qf.indentation,localMode:qf.localMode,localState:qf.localMode?nd.copyState(qf.localMode,qf.localState):null,inline:qf.inline,text:qf.text,formatting:!1,linkText:qf.linkText,linkTitle:qf.linkTitle,linkHref:qf.linkHref,code:qf.code,em:qf.em,strong:qf.strong,strikethrough:qf.strikethrough,emoji:qf.emoji,header:qf.header,setext:qf.setext,hr:qf.hr,taskList:qf.taskList,list:qf.list,listStack:qf.listStack.slice(0),quote:qf.quote,indentedCode:qf.indentedCode,trailingSpace:qf.trailingSpace,trailingSpaceNewLine:qf.trailingSpaceNewLine,md_inside:qf.md_inside,fencedEndRE:qf.fencedEndRE}},token:function(qf,Lf){if(Lf.formatting=!1,qf!=Lf.thisLine.stream){if(Lf.header=0,Lf.hr=!1,qf.match(/^\s*$/,!0))return Jd(Lf),null;if(Lf.prevLine=Lf.thisLine,Lf.thisLine={stream:qf},Lf.taskList=!1,Lf.trailingSpace=0,Lf.trailingSpaceNewLine=!1,!Lf.localState&&(Lf.f=Lf.block,Lf.f!=Xd)){var Wf=qf.match(/^\s*/,!0)[0].replace(/\t/g,Ud).length;if(Lf.indentation=Wf,Lf.indentationDiff=null,Wf>0)return null}}return Lf.f(qf,Lf)},innerMode:function(qf){return qf.block==Xd?{state:qf.htmlState,mode:ud}:qf.localState?{state:qf.localState,mode:qf.localMode}:{state:qf,mode:ph}},indent:function(qf,Lf,Wf){return qf.block==Xd&&ud.indent?ud.indent(qf.htmlState,Lf,Wf):qf.localState&&qf.localMode.indent?qf.localMode.indent(qf.localState,Lf,Wf):nd.Pass},blankLine:Jd,getType:mf,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ph},"xml"),nd.defineMIME("text/markdown","markdown"),nd.defineMIME("text/x-markdown","markdown")})})();(function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){var od={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ld=nd.Pos;nd.defineOption("autoCloseBrackets",!1,function(jd,Fd,Ud){Ud&&Ud!=nd.Init&&(jd.removeKeyMap(dd),jd.state.closeBrackets=null),Fd&&(pd(ud(Fd,"pairs")),jd.state.closeBrackets=Fd,jd.addKeyMap(dd))});function ud(jd,Fd){return Fd=="pairs"&&typeof jd=="string"?jd:typeof jd=="object"&&jd[Fd]!=null?jd[Fd]:od[Fd]}var dd={Backspace:vd,Enter:Ad};function pd(jd){for(var Fd=0;Fd=0;zd--){var Jd=qd[zd].head;jd.replaceRange("",ld(Jd.line,Jd.ch-1),ld(Jd.line,Jd.ch+1),"+delete")}}function Ad(jd){var Fd=md(jd),Ud=Fd&&ud(Fd,"explode");if(!Ud||jd.getOption("disableInput"))return nd.Pass;for(var qd=jd.listSelections(),zd=0;zd0?{line:Jd.head.line,ch:Jd.head.ch+Fd}:{line:Jd.head.line-1};Ud.push({anchor:_f,head:_f})}jd.setSelections(Ud,zd)}function Od(jd){var Fd=nd.cmpPos(jd.anchor,jd.head)>0;return{anchor:new ld(jd.anchor.line,jd.anchor.ch+(Fd?-1:1)),head:new ld(jd.head.line,jd.head.ch+(Fd?1:-1))}}function kd(jd,Fd){var Ud=md(jd);if(!Ud||jd.getOption("disableInput"))return nd.Pass;var qd=ud(Ud,"pairs"),zd=qd.indexOf(Fd);if(zd==-1)return nd.Pass;for(var Wd=ud(Ud,"closeBefore"),Jd=ud(Ud,"triples"),_f=qd.charAt(zd+1)==Fd,Xd=jd.listSelections(),pf=zd%2==0,mf,Sf=0;Sf=0&&jd.getRange(Af,ld(Af.line,Af.ch+3))==Fd+Fd+Fd?Ef="skipThree":Ef="skip";else if(_f&&Af.ch>1&&Jd.indexOf(Fd)>=0&&jd.getRange(ld(Af.line,Af.ch-2),Af)==Fd+Fd){if(Af.ch>2&&/\bstring/.test(jd.getTokenTypeAt(ld(Af.line,Af.ch-2))))return nd.Pass;Ef="addFour"}else if(_f){var If=Af.ch==0?" ":jd.getRange(ld(Af.line,Af.ch-1),Af);if(!nd.isWordChar(Nf)&&If!=Fd&&!nd.isWordChar(If))Ef="both";else return nd.Pass}else if(pf&&(Nf.length===0||/\s/.test(Nf)||Wd.indexOf(Nf)>-1))Ef="both";else return nd.Pass;if(!mf)mf=Ef;else if(mf!=Ef)return nd.Pass}var Gf=zd%2?qd.charAt(zd-1):Fd,Qf=zd%2?Fd:qd.charAt(zd+1);jd.operation(function(){if(mf=="skip")Nd(jd,1);else if(mf=="skipThree")Nd(jd,3);else if(mf=="surround"){for(var Xf=jd.getSelections(),ph=0;ph",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function dd(Nd){return Nd&&Nd.bracketRegex||/[(){}[\]]/}function pd(Nd,Od,kd){var Ld=Nd.getLineHandle(Od.line),Gd=Od.ch-1,jd=kd&&kd.afterCursor;jd==null&&(jd=/(^| )cm-fat-cursor($| )/.test(Nd.getWrapperElement().className));var Fd=dd(kd),Ud=!jd&&Gd>=0&&Fd.test(Ld.text.charAt(Gd))&&ud[Ld.text.charAt(Gd)]||Fd.test(Ld.text.charAt(Gd+1))&&ud[Ld.text.charAt(++Gd)];if(!Ud)return null;var qd=Ud.charAt(1)==">"?1:-1;if(kd&&kd.strict&&qd>0!=(Gd==Od.ch))return null;var zd=Nd.getTokenTypeAt(ld(Od.line,Gd+1)),Wd=fd(Nd,ld(Od.line,Gd+(qd>0?1:0)),qd,zd,kd);return Wd==null?null:{from:ld(Od.line,Gd),to:Wd&&Wd.pos,match:Wd&&Wd.ch==Ud.charAt(0),forward:qd>0}}function fd(Nd,Od,kd,Ld,Gd){for(var jd=Gd&&Gd.maxScanLineLength||1e4,Fd=Gd&&Gd.maxScanLines||1e3,Ud=[],qd=dd(Gd),zd=kd>0?Math.min(Od.line+Fd,Nd.lastLine()+1):Math.max(Nd.firstLine()-1,Od.line-Fd),Wd=Od.line;Wd!=zd;Wd+=kd){var Jd=Nd.getLine(Wd);if(Jd){var _f=kd>0?0:Jd.length-1,Xd=kd>0?Jd.length:-1;if(!(Jd.length>jd))for(Wd==Od.line&&(_f=Od.ch-(kd<0?1:0));_f!=Xd;_f+=kd){var pf=Jd.charAt(_f);if(qd.test(pf)&&(Ld===void 0||(Nd.getTokenTypeAt(ld(Wd,_f+1))||"")==(Ld||""))){var mf=ud[pf];if(mf&&mf.charAt(1)==">"==kd>0)Ud.push(pf);else if(Ud.length)Ud.pop();else return{pos:ld(Wd,_f),ch:pf}}}}}return Wd-kd==(kd>0?Nd.lastLine():Nd.firstLine())?!1:null}function md(Nd,Od,kd){for(var Ld=Nd.state.matchBrackets.maxHighlightLineLength||1e3,Gd=kd&&kd.highlightNonMatching,jd=[],Fd=Nd.listSelections(),Ud=0;Ud1)){if(this.somethingSelected()){if(!jd.hint.supportsSelection)return;for(var Ud=0;UdJd.clientHeight+1:!1,Yf;setTimeout(function(){Yf=qd.getScrollInfo()});var dh=Cf.bottom-Kf;if(dh>0){var Rh=Cf.bottom-Cf.top,th=Cf.top-(Ef.bottom-Ef.top)-2;Kf-Cf.topth&&(Jd.style.height=(Rh=th)+"px"),Jd.style.top=(If=Ef.top-Rh)+Xf+"px",Gf=!1):Jd.style.height=Kf-Cf.top-2+"px"}var Bf=Cf.right-Jf;if(xf&&(Bf+=qd.display.nativeBarWidth),Bf>0&&(Cf.right-Cf.left>Jf&&(Jd.style.width=Jf-5+"px",Bf-=Cf.right-Cf.left-Jf),Jd.style.left=(Nf=Math.max(Ef.left-Bf-Qf,0))+"px"),xf)for(var Sh=Jd.firstChild;Sh;Sh=Sh.nextSibling)Sh.style.paddingRight=qd.display.nativeBarWidth+"px";if(qd.addKeyMap(this.keyMap=vd(jd,{moveFocus:function(Pf,Uf){Ud.changeActive(Ud.selectedHint+Pf,Uf)},setFocus:function(Pf){Ud.changeActive(Pf)},menuSize:function(){return Ud.screenAmount()},length:Xd.length,close:function(){jd.close()},pick:function(){Ud.pick()},data:Fd})),jd.options.closeOnUnfocus){var Fh;qd.on("blur",this.onBlur=function(){Fh=setTimeout(function(){jd.close()},100)}),qd.on("focus",this.onFocus=function(){clearTimeout(Fh)})}qd.on("scroll",this.onScroll=function(){var Pf=qd.getScrollInfo(),Uf=qd.getWrapperElement().getBoundingClientRect();Yf||(Yf=qd.getScrollInfo());var Zf=If+Yf.top-Pf.top,mh=Zf-(Wd.pageYOffset||(zd.documentElement||zd.body).scrollTop);if(Gf||(mh+=Jd.offsetHeight),mh<=Uf.top||mh>=Uf.bottom)return jd.close();Jd.style.top=Zf+"px",Jd.style.left=Nf+Yf.left-Pf.left+"px"}),nd.on(Jd,"dblclick",function(Pf){var Uf=Ad(Jd,Pf.target||Pf.srcElement);Uf&&Uf.hintId!=null&&(Ud.changeActive(Uf.hintId),Ud.pick())}),nd.on(Jd,"click",function(Pf){var Uf=Ad(Jd,Pf.target||Pf.srcElement);Uf&&Uf.hintId!=null&&(Ud.changeActive(Uf.hintId),jd.options.completeOnSingleClick&&Ud.pick())}),nd.on(Jd,"mousedown",function(){setTimeout(function(){qd.focus()},20)});var uh=this.getSelectedHintRange();return(uh.from!==0||uh.to!==0)&&this.scrollToActive(),nd.signal(Fd,"select",Xd[this.selectedHint],Jd.childNodes[this.selectedHint]),!0}Nd.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var jd=this.completion.cm.getInputField();jd.removeAttribute("aria-activedescendant"),jd.removeAttribute("aria-owns");var Fd=this.completion.cm;this.completion.options.closeOnUnfocus&&(Fd.off("blur",this.onBlur),Fd.off("focus",this.onFocus)),Fd.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var jd=this;this.keyMap={Enter:function(){jd.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(jd,Fd){if(jd>=this.data.list.length?jd=Fd?this.data.list.length-1:0:jd<0&&(jd=Fd?0:this.data.list.length-1),this.selectedHint!=jd){var Ud=this.hints.childNodes[this.selectedHint];Ud&&(Ud.className=Ud.className.replace(" "+ld,""),Ud.removeAttribute("aria-selected")),Ud=this.hints.childNodes[this.selectedHint=jd],Ud.className+=" "+ld,Ud.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",Ud.id),this.scrollToActive(),nd.signal(this.data,"select",this.data.list[this.selectedHint],Ud)}},scrollToActive:function(){var jd=this.getSelectedHintRange(),Fd=this.hints.childNodes[jd.from],Ud=this.hints.childNodes[jd.to],qd=this.hints.firstChild;Fd.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=Ud.offsetTop+Ud.offsetHeight-this.hints.clientHeight+qd.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var jd=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-jd),to:Math.min(this.data.list.length-1,this.selectedHint+jd)}}};function Od(jd,Fd){if(!jd.somethingSelected())return Fd;for(var Ud=[],qd=0;qd0?Jd(Sf):pf(mf+1)})}pf(0)};return zd.async=!0,zd.supportsSelection=!0,zd}else return(qd=jd.getHelper(jd.getCursor(),"hintWords"))?function(Wd){return nd.hint.fromList(Wd,{words:qd})}:nd.hint.anyword?function(Wd,Jd){return nd.hint.anyword(Wd,Jd)}:function(){}}nd.registerHelper("hint","auto",{resolve:Ld}),nd.registerHelper("hint","fromList",function(jd,Fd){var Ud=jd.getCursor(),qd=jd.getTokenAt(Ud),zd,Wd=nd.Pos(Ud.line,qd.start),Jd=Ud;qd.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};nd.defineOption("hintOptions",null)})})();(function(Ra,qa){(function(nd){nd(requireCodemirror(),cssExports)})(function(nd){var od={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};nd.registerHelper("hint","css",function(ld){var ud=ld.getCursor(),dd=ld.getTokenAt(ud),pd=nd.innerMode(ld.getMode(),dd.state);if(pd.mode.name!="css")return;if(dd.type=="keyword"&&"!important".indexOf(dd.string)==0)return{list:["!important"],from:nd.Pos(ud.line,dd.start),to:nd.Pos(ud.line,dd.end)};var fd=dd.start,md=ud.ch,vd=dd.string.slice(0,md-fd);/[^\w$_-]/.test(vd)&&(vd="",fd=md=ud.ch);var Ad=nd.resolveMode("text/css"),Nd=[];function Od(Ld){for(var Gd in Ld)(!vd||Gd.lastIndexOf(vd,0)==0)&&Nd.push(Gd)}var kd=pd.state.state;if(kd=="pseudo"||dd.type=="variable-3"?Od(od):kd=="block"||kd=="maybeprop"?Od(Ad.propertyKeywords):kd=="prop"||kd=="parens"||kd=="at"||kd=="params"?(Od(Ad.valueKeywords),Od(Ad.colorKeywords)):(kd=="media"||kd=="media_parens")&&(Od(Ad.mediaTypes),Od(Ad.mediaFeatures)),Nd.length)return{list:Nd,from:nd.Pos(ud.line,fd),to:nd.Pos(ud.line,md)}})})})();const app=createApp(_sfc_main);app.use(createPinia());app.mount("#app");export{withPath as $,rgba$1 as A,defaultConfig_default as B,cleanAndMerge as C,getConfig$2 as D,random as E,setupGraphViewbox2 as F,selectSvgElement as G,version$2 as H,getThemeVariables3 as I,JSON_SCHEMA as J,line$1 as K,hasKatex as L,calculateMathMLDimensions as M,renderKatex as N,parseFontSize as O,parseGenericTypes as P,curveBasis as Q,generateId as R,lineBreakRegex as S,__export as T,commonDb_exports as U,setupGraphViewbox as V,isDark as W,lighten as X,darken as Y,ZERO_WIDTH_SPACE as Z,__name as _,assignWithDepth_default as a,hue as a$,halfPi as a0,epsilon as a1,tau as a2,cos as a3,sin as a4,min as a5,abs$1 as a6,pi as a7,sqrt as a8,atan2 as a9,baseRest as aA,isArrayLikeObject as aB,constant$2 as aC,isFunction$2 as aD,isEmpty$1 as aE,computeDimensionOfText as aF,array$1 as aG,commonjsGlobal as aH,getDefaultExportFromCjs as aI,unknownIcon as aJ,registerIconPacks as aK,getIconSVG as aL,isObject$5 as aM,isIterateeCall as aN,keysIn as aO,eq as aP,isArrayLike$1 as aQ,isArray$1 as aR,identity as aS,isIndex$2 as aT,assignValue as aU,define$1 as aV,extend$1 as aW,Rgb as aX,Color as aY,rgbConvert as aZ,nogamma as a_,constant$3 as aa,asin as ab,acos as ac,max$1 as ad,insertCluster as ae,insertNode as af,positionNode as ag,getStylesFromArray as ah,evaluate as ai,createText as aj,getSubGraphTitleMargins as ak,getLineFunctionsWithOffset as al,replaceIconSubstring as am,decodeEntities as an,Utils$1 as ao,Color$1 as ap,global$1 as aq,markers_default as ar,clear2 as as,clear as at,clear$1 as au,updateNodeBounds as av,setNodeElem as aw,insertEdge as ax,positionEdgeLabel as ay,insertEdgeLabel as az,getAccDescription as b,dayjs2 as b0,constant$4 as b1,interpolateNumber as b2,color as b3,interpolateRgb as b4,interpolateString as b5,setToString as b6,overRest as b7,baseFor as b8,baseAssignValue as b9,isPrototype as bA,__vitePreload as bB,baseUnary as ba,merge$3 as bb,isObjectLike$2 as bc,baseGetTag as bd,Symbol$1 as be,arrayLikeKeys as bf,baseKeys as bg,memoize$2 as bh,isArguments$1 as bi,copyObject as bj,getPrototype as bk,cloneArrayBuffer as bl,cloneTypedArray as bm,getTag$2 as bn,nodeUtil as bo,copyArray as bp,isBuffer$1 as bq,cloneBuffer as br,initCloneObject as bs,Stack as bt,MapCache as bu,Uint8Array$1 as bv,isTypedArray$2 as bw,isLength as bx,Set$1 as by,createAssigner as bz,setAccDescription as c,getConfig2 as d,common_default as e,calculateTextHeight as f,getAccTitle as g,calculateTextWidth as h,sanitizeText as i,select as j,configureSvgSize as k,log$1 as l,sanitizeUrl_1 as m,setConfig2 as n,defaultConfig2 as o,setDiagramTitle as p,getDiagramTitle as q,load as r,setAccTitle as s,isValidShape as t,utils_default as u,clear$2 as v,wrapLabel as w,getEdgeId as x,getRegisteredLayoutAlgorithm as y,render$1 as z}; diff --git a/static/js/md-infoDiagram-A4XQUW5V-C4Na9ftU.js b/static/js/md-infoDiagram-A4XQUW5V-1c5r9cBt.js similarity index 61% rename from static/js/md-infoDiagram-A4XQUW5V-C4Na9ftU.js rename to static/js/md-infoDiagram-A4XQUW5V-1c5r9cBt.js index c179f5f..3ba951f 100644 --- a/static/js/md-infoDiagram-A4XQUW5V-C4Na9ftU.js +++ b/static/js/md-infoDiagram-A4XQUW5V-1c5r9cBt.js @@ -1,2 +1,2 @@ -import{_ as e,l as s,G as n,k as i,H as p}from"./md-index-BhYxDPe5.js";import{p as g}from"./md-gitGraph-YCYPL57B-BAO2bH4y.js";import"./md-_baseUniq-Cjg3wXP1.js";import"./md-_basePickBy-CdF26LR_.js";import"./md-clone-CtDbzCPt.js";var v={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},d={version:p},m=e(()=>d.version,"getVersion"),c={getVersion:m},l=e((r,a,o)=>{s.debug(`rendering info diagram +import{_ as e,l as s,G as n,k as i,H as p}from"./md-index-ByjuzIYZ.js";import{p as g}from"./md-gitGraph-YCYPL57B-Cg_Niwrz.js";import"./md-_baseUniq-DZXHEAoF.js";import"./md-_basePickBy-C4aggLA-.js";import"./md-clone-CEEsdKQ5.js";var v={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},d={version:p},m=e(()=>d.version,"getVersion"),c={getVersion:m},l=e((r,a,o)=>{s.debug(`rendering info diagram `+r);const t=n(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),f={draw:l},S={parser:v,db:c,renderer:f};export{S as diagram}; diff --git a/static/js/md-journeyDiagram-G5WM74LC-DF5-Nk21.js b/static/js/md-journeyDiagram-G5WM74LC-WQWGbOcr.js similarity index 99% rename from static/js/md-journeyDiagram-G5WM74LC-DF5-Nk21.js rename to static/js/md-journeyDiagram-G5WM74LC-WQWGbOcr.js index 10022b8..9b4020a 100644 --- a/static/js/md-journeyDiagram-G5WM74LC-DF5-Nk21.js +++ b/static/js/md-journeyDiagram-G5WM74LC-WQWGbOcr.js @@ -1,4 +1,4 @@ -import{d as ft,f as gt,g as at,b as mt}from"./md-chunk-ASOPGD6M-BZAPvhZW.js";import{_ as i,d as A,p as xt,q as kt,s as _t,g as vt,c as bt,b as wt,v as Tt,j as W,k as St}from"./md-index-BhYxDPe5.js";import{d as tt}from"./md-arc-Drcnh5x3.js";var H=function(){var t=i(function(g,r,a,l){for(a=a||{},l=g.length;l--;a[g[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],c=[1,10],s=[1,11],u=[1,12],h=[1,13],p=[1,14],d={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i(function(r,a,l,y,f,o,S){var _=o.length-1;switch(f){case 1:return o[_-1];case 2:this.$=[];break;case 3:o[_-1].push(o[_]),this.$=o[_-1];break;case 4:case 5:this.$=o[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(o[_].substr(6)),this.$=o[_].substr(6);break;case 9:this.$=o[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=o[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(o[_].substr(8)),this.$=o[_].substr(8);break;case 13:y.addTask(o[_-1],o[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:i(function(r){var a=this,l=[0],y=[],f=[null],o=[],S=this.table,_="",B=0,J=0,ut=2,K=1,yt=o.slice.call(arguments,1),k=Object.create(this.lexer),E={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(E.yy[O]=this.yy[O]);k.setInput(r,E.yy),E.yy.lexer=k,E.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Y=k.yylloc;o.push(Y);var dt=k.options&&k.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(b){l.length=l.length-2*b,f.length=f.length-b,o.length=o.length-b}i(pt,"popStack");function Q(){var b;return b=y.pop()||k.lex()||K,typeof b!="number"&&(b instanceof Array&&(y=b,b=y.pop()),b=a.symbols_[b]||b),b}i(Q,"lex");for(var v,P,w,q,C={},j,M,D,N;;){if(P=l[l.length-1],this.defaultActions[P]?w=this.defaultActions[P]:((v===null||typeof v>"u")&&(v=Q()),w=S[P]&&S[P][v]),typeof w>"u"||!w.length||!w[0]){var G="";N=[];for(j in S[P])this.terminals_[j]&&j>ut&&N.push("'"+this.terminals_[j]+"'");k.showPosition?G="Parse error on line "+(B+1)+`: +import{d as ft,f as gt,g as at,b as mt}from"./md-chunk-ASOPGD6M-D5CB9lCy.js";import{_ as i,d as A,p as xt,q as kt,s as _t,g as vt,c as bt,b as wt,v as Tt,j as W,k as St}from"./md-index-ByjuzIYZ.js";import{d as tt}from"./md-arc-C7OGNnly.js";var H=function(){var t=i(function(g,r,a,l){for(a=a||{},l=g.length;l--;a[g[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],c=[1,10],s=[1,11],u=[1,12],h=[1,13],p=[1,14],d={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i(function(r,a,l,y,f,o,S){var _=o.length-1;switch(f){case 1:return o[_-1];case 2:this.$=[];break;case 3:o[_-1].push(o[_]),this.$=o[_-1];break;case 4:case 5:this.$=o[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(o[_].substr(6)),this.$=o[_].substr(6);break;case 9:this.$=o[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=o[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(o[_].substr(8)),this.$=o[_].substr(8);break;case 13:y.addTask(o[_-1],o[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:i(function(r){var a=this,l=[0],y=[],f=[null],o=[],S=this.table,_="",B=0,J=0,ut=2,K=1,yt=o.slice.call(arguments,1),k=Object.create(this.lexer),E={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(E.yy[O]=this.yy[O]);k.setInput(r,E.yy),E.yy.lexer=k,E.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Y=k.yylloc;o.push(Y);var dt=k.options&&k.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(b){l.length=l.length-2*b,f.length=f.length-b,o.length=o.length-b}i(pt,"popStack");function Q(){var b;return b=y.pop()||k.lex()||K,typeof b!="number"&&(b instanceof Array&&(y=b,b=y.pop()),b=a.symbols_[b]||b),b}i(Q,"lex");for(var v,P,w,q,C={},j,M,D,N;;){if(P=l[l.length-1],this.defaultActions[P]?w=this.defaultActions[P]:((v===null||typeof v>"u")&&(v=Q()),w=S[P]&&S[P][v]),typeof w>"u"||!w.length||!w[0]){var G="";N=[];for(j in S[P])this.terminals_[j]&&j>ut&&N.push("'"+this.terminals_[j]+"'");k.showPosition?G="Parse error on line "+(B+1)+`: `+k.showPosition()+` Expecting `+N.join(", ")+", got '"+(this.terminals_[v]||v)+"'":G="Parse error on line "+(B+1)+": Unexpected "+(v==K?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(G,{text:k.match,token:this.terminals_[v]||v,line:k.yylineno,loc:Y,expected:N})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+v);switch(w[0]){case 1:l.push(v),f.push(k.yytext),o.push(k.yylloc),l.push(w[1]),v=null,J=k.yyleng,_=k.yytext,B=k.yylineno,Y=k.yylloc;break;case 2:if(M=this.productions_[w[1]][1],C.$=f[f.length-M],C._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},dt&&(C._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(C,[_,J,B,E.yy,w[1],f,o].concat(yt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),f=f.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[w[1]][0]),f.push(C.$),o.push(C._$),D=S[l[l.length-2]][l[l.length-1]],l.push(D);break;case 3:return!0}}return!0},"parse")},x=function(){var g={EOF:1,parseError:i(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:i(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:i(function(r){var a=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(r){this.unput(this.match.slice(r))},"less"),pastInput:i(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/static/js/md-kanban-definition-QRCXZQQD-BXwoUNlq.js b/static/js/md-kanban-definition-QRCXZQQD-DEOy5xlf.js similarity index 99% rename from static/js/md-kanban-definition-QRCXZQQD-BXwoUNlq.js rename to static/js/md-kanban-definition-QRCXZQQD-DEOy5xlf.js index cf0a907..1ef51a3 100644 --- a/static/js/md-kanban-definition-QRCXZQQD-BXwoUNlq.js +++ b/static/js/md-kanban-definition-QRCXZQQD-DEOy5xlf.js @@ -1,4 +1,4 @@ -import{_ as c,l as te,d as W,G as fe,ae as ye,af as be,ag as me,V as _e,B as K,i as F,r as Ee,J as ke,W as Se,X as le,Y as ce}from"./md-index-BhYxDPe5.js";var $=function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],E=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],M=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],U=[1,35],j=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:M}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(P,[2,14],{7:U,11:j}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:M}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:U,11:j}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);b.setInput(s,T.yy),T.yy.lexer=b,T.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;e.push(q);var de=b.options&&b.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var k,R,v,Q,G={},X,I,oe,Y;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((k===null||typeof k>"u")&&(k=ae()),v=B[R]&&B[R][k]),typeof v>"u"||!v.length||!v[0]){var Z="";Y=[];for(X in B[R])this.terminals_[X]&&X>ue&&Y.push("'"+this.terminals_[X]+"'");b.showPosition?Z="Parse error on line "+(z+1)+`: +import{_ as c,l as te,d as W,G as fe,ae as ye,af as be,ag as me,V as _e,B as K,i as F,r as Ee,J as ke,W as Se,X as le,Y as ce}from"./md-index-ByjuzIYZ.js";var $=function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],E=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],M=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],U=[1,35],j=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:M}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:E,18:17,19:18,20:f,23:h},t(P,[2,14],{7:U,11:j}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:M}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:U,11:j}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);b.setInput(s,T.yy),T.yy.lexer=b,T.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;e.push(q);var de=b.options&&b.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var k,R,v,Q,G={},X,I,oe,Y;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((k===null||typeof k>"u")&&(k=ae()),v=B[R]&&B[R][k]),typeof v>"u"||!v.length||!v[0]){var Z="";Y=[];for(X in B[R])this.terminals_[X]&&X>ue&&Y.push("'"+this.terminals_[X]+"'");b.showPosition?Z="Parse error on line "+(z+1)+`: `+b.showPosition()+` Expecting `+Y.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Z="Parse error on line "+(z+1)+": Unexpected "+(k==re?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[k]||k,line:b.yylineno,loc:q,expected:Y})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+k);switch(v[0]){case 1:a.push(k),u.push(b.yytext),e.push(b.yylloc),a.push(v[1]),k=null,ie=b.yyleng,l=b.yytext,z=b.yylineno,q=b.yylloc;break;case 2:if(I=this.productions_[v[1]][1],G.$=u[u.length-I],G._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(G._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Q=this.performAction.apply(G,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof Q<"u")return Q;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(G.$),e.push(G._$),oe=B[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},m=function(){var _={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/static/js/md-layout-f1dVBnkM.js b/static/js/md-layout-B18tK69Y.js similarity index 98% rename from static/js/md-layout-f1dVBnkM.js rename to static/js/md-layout-B18tK69Y.js index 72278dd..6fc92c5 100644 --- a/static/js/md-layout-f1dVBnkM.js +++ b/static/js/md-layout-B18tK69Y.js @@ -1 +1 @@ -import{G as g}from"./md-graph--GW7E-WG.js";import{b as Te,p as ce,q as le,g as z,e as ee,l as j,o as Ie,s as Me,c as Se,u as Fe,d as f,i as m,f as _,v as x,r as M}from"./md-_baseUniq-Cjg3wXP1.js";import{f as O,b as he,a as je,c as Ve,d as Ae,t as V,m as w,e as P,h as ve,g as U,l as T,i as Be}from"./md-_basePickBy-CdF26LR_.js";import{b6 as Ge,b7 as Ye,b8 as De,aO as qe,b9 as $e,aS as pe,aR as we,ba as We,aN as q,aA as ze,aU as Ue,aC as Xe,bb as $}from"./md-index-BhYxDPe5.js";function He(e){return Ge(Ye(e,void 0,O),e+"")}var Je=1,Ze=4;function Ke(e){return Te(e,Je|Ze)}function Qe(e,n){return e==null?e:De(e,ce(n),qe)}function en(e,n){return e&&le(e,ce(n))}function nn(e,n){return e>n}function S(e,n){var r={};return n=z(n),le(e,function(t,a,i){$e(r,a,n(t,a,i))}),r}function y(e){return e&&e.length?he(e,pe,nn):void 0}function X(e,n){return e&&e.length?he(e,z(n),je):void 0}function rn(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function tn(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,i=ee(e),o=n!==void 0,u=n===null,d=n===n,s=ee(n);if(!u&&!s&&!i&&e>n||i&&o&&d&&!u&&!s||t&&o&&d||!r&&d||!a)return 1;if(!t&&!i&&!s&&e=u)return d;var s=r[t];return d*(s=="desc"?-1:1)}}return e.index-n.index}function on(e,n,r){n.length?n=j(n,function(i){return we(i)?function(o){return Ie(o,i.length===1?i[0]:i)}:i}):n=[pe];var t=-1;n=j(n,We(z));var a=Ve(e,function(i,o,u){var d=j(n,function(s){return s(i)});return{criteria:d,index:++t,value:i}});return rn(a,function(i,o){return an(i,o,r)})}function un(e,n){return Ae(e,n,function(r,t){return Me(e,t)})}var I=He(function(e,n){return e==null?{}:un(e,n)}),dn=Math.ceil,sn=Math.max;function fn(e,n,r,t){for(var a=-1,i=sn(dn((n-e)/(r||1)),0),o=Array(i);i--;)o[++a]=e,e+=r;return o}function cn(e){return function(n,r,t){return t&&typeof t!="number"&&q(n,r,t)&&(r=t=void 0),n=V(n),r===void 0?(r=n,n=0):r=V(r),t=t===void 0?n1&&q(e,n[0],n[1])?n=[]:r>2&&q(n[0],n[1],n[2])&&(n=[n[0]]),on(e,Se(n),[])}),ln=0;function H(e){var n=++ln;return Fe(e)+n}function hn(e,n,r){for(var t=-1,a=e.length,i=n.length,o={};++t0;--u)if(o=n[u].dequeue(),o){t=t.concat(A(e,n,r,o,!0));break}}}return t}function A(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var u=e.edge(o),d=e.node(o.v);a&&i.push({v:o.v,w:o.w}),d.out-=u,W(n,r,d)}),f(e.outEdges(t.v),function(o){var u=e.edge(o),d=o.w,s=e.node(d);s.in-=u,W(n,r,s)}),e.removeNode(t.v),i}function yn(e,n){var r=new g,t=0,a=0;f(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,s=n(u),c=d+s;r.setEdge(u.v,u.w,c),a=Math.max(a,r.node(u.v).out+=s),t=Math.max(t,r.node(u.w).in+=s)});var i=E(a+t+3).map(function(){return new pn}),o=t+1;return f(r.nodes(),function(u){W(i,o,r.node(u))}),{graph:r,buckets:i,zeroIdx:o}}function W(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function kn(e){var n=e.graph().acyclicer==="greedy"?mn(e,r(e)):xn(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,H("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function xn(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function En(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function L(e,n,r,t){var a;do a=H(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function On(e){var n=new g().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function be(e){var n=new g({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function re(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,u=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var d,s;return Math.abs(i)*o>Math.abs(a)*u?(i<0&&(u=-u),d=u*a/i,s=u):(a<0&&(o=-o),d=o,s=o*i/a),{x:r+d,y:t+s}}function F(e){var n=w(E(me(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;m(a)||(n[a][t.order]=r)}),n}function Ln(e){var n=P(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ve(t,"rank")&&(t.rank-=n)})}function Nn(e){var n=P(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){m(i)&&o%a!==0?--t:t&&f(i,function(u){e.node(u).rank+=t})})}function te(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),L(e,"border",a,n)}function me(e){return y(w(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function Pn(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function Cn(e,n){return n()}function _n(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;io.lim&&(u=o,d=!0);var s=_(n.edges(),function(c){return d===oe(e,e.node(c.v),u)&&d!==oe(e,e.node(c.w),u)});return X(s,function(c){return C(n,c)})}function Pe(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),K(e),Z(e,n),$n(e,n)}function $n(e,n){var r=U(e.nodes(),function(a){return!n.node(a).parent}),t=Dn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),u=!1;o||(o=n.edge(i,a),u=!0),n.node(a).rank=n.node(i).rank+(u?o.minlen:-o.minlen)})}function Wn(e,n,r){return e.hasEdge(n,r)}function oe(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function zn(e){switch(e.graph().ranker){case"network-simplex":ue(e);break;case"tight-tree":Xn(e);break;case"longest-path":Un(e);break;default:ue(e)}}var Un=J;function Xn(e){J(e),ye(e)}function ue(e){k(e)}function Hn(e){var n=L(e,"root",{},"_root"),r=Jn(e),t=y(x(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=Zn(e)+1;f(e.children(),function(o){Ce(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function Ce(e,n,r,t,a,i,o){var u=e.children(o);if(!u.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var d=te(e,"_bt"),s=te(e,"_bb"),c=e.node(o);e.setParent(d,o),c.borderTop=d,e.setParent(s,o),c.borderBottom=s,f(u,function(l){Ce(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(d,v,{weight:b,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:b,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,d,{weight:0,minlen:a+i[o]})}function Jn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function Zn(e){return M(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Kn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Qn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),u,d;o;){if(u=e.parent(o),u?(d=t[u],t[u]=o):(d=a,a=o),d&&d!==o){n.setEdge(d,o);return}o=u}})}function er(e,n,r){var t=nr(e),a=new g({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),u=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,u||t),f(e[r](i),function(d){var s=d.v===i?d.w:d.v,c=a.edge(s,i),l=m(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function nr(e){for(var n;e.hasNode(n=H("_root")););return n}function rr(e,n){for(var r=0,t=1;t0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=s.weight;d+=s.weight*l})),d}function ar(e){var n={},r=_(e.nodes(),function(u){return!e.children(u).length}),t=y(w(r,function(u){return e.node(u).rank})),a=w(E(t+1),function(){return[]});function i(u){if(!ve(n,u)){n[u]=!0;var d=e.node(u);a[d.rank].push(u),f(e.successors(u),i)}}var o=R(r,function(u){return e.node(u).rank});return f(o,i),a}function ir(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=M(t,function(i,o){var u=e.edge(o),d=e.node(o.v);return{sum:i.sum+u.weight*d.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function or(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};m(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!m(i)&&!m(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return ur(t)}function ur(e){var n=[];function r(i){return function(o){o.merged||(m(o.barycenter)||m(i.barycenter)||o.barycenter>=i.barycenter)&&dr(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return I(i,["vs","i","barycenter","weight"])})}function dr(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function sr(e,n){var r=Pn(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=R(r.rhs,function(c){return-c.i}),i=[],o=0,u=0,d=0;t.sort(fr(!!n)),d=de(i,a,d),f(t,function(c){d+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,u+=c.weight,d=de(i,a,d)});var s={vs:O(i)};return u&&(s.barycenter=o/u,s.weight=u),s}function de(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function fr(e){return function(n,r){return n.barycenterr.barycenter?1:e?r.i-n.i:n.i-r.i}}function _e(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,d={};o&&(a=_(a,function(p){return p!==o&&p!==u}));var s=ir(e,a);f(s,function(p){if(e.children(p.v).length){var b=_e(e,p.v,r,t);d[p.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&lr(p,b)}});var c=or(s,r);cr(c,d);var l=sr(c,t);if(o&&(l.vs=O([o,l.vs,u]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function cr(e,n){f(e,function(r){r.vs=O(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function lr(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function hr(e){var n=me(e),r=se(e,E(1,n+1),"inEdges"),t=se(e,E(n-1,-1,-1),"outEdges"),a=ar(e);fe(e,a);for(var i=Number.POSITIVE_INFINITY,o,u=0,d=0;d<4;++u,++d){vr(u%2?r:t,u%4>=2),a=F(e);var s=rr(e,a);so||u>n[d].lim));for(s=d,d=t;(d=e.parent(d))!==s;)i.push(d);return{path:a.concat(i.reverse()),lca:s}}function br(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function mr(e,n){var r={};function t(a,i){var o=0,u=0,d=a.length,s=T(i);return f(i,function(c,l){var h=yr(e,c),v=h?e.node(h).order:d;(h||c===s)&&(f(i.slice(u,l+1),function(p){f(e.predecessors(p),function(b){var N=e.node(b),Q=N.order;(Qs)&&Re(r,h,c)})})}function a(i,o){var u=-1,d,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(d=e.node(h[0]).order,t(o,s,l,u,d),s=l,u=d)}t(o,s,o.length,d,i.length)}),o}return M(n,a),r}function yr(e,n){if(e.node(n).dummy)return U(e.predecessors(n),function(r){return e.node(r).dummy})}function Re(e,n,r){if(n>r){var t=n;n=r,r=t}var a=e[n];a||(e[n]=a={}),a[r]=!0}function kr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function xr(e,n,r,t){var a={},i={},o={};return f(n,function(u){f(u,function(d,s){a[d]=d,i[d]=d,o[d]=s})}),f(n,function(u){var d=-1;f(u,function(s){var c=t(s);if(c.length){c=R(c,function(b){return o[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&d{var t=r(" buildLayoutGraph",()=>qr(e));r(" runLayout",()=>Mr(t,r)),r(" updateInputGraph",()=>Sr(e,t))})}function Mr(e,n){n(" makeSpaceForEdgeLabels",()=>$r(e)),n(" removeSelfEdges",()=>Qr(e)),n(" acyclic",()=>kn(e)),n(" nestingGraph.run",()=>Hn(e)),n(" rank",()=>zn(be(e))),n(" injectEdgeLabelProxies",()=>Wr(e)),n(" removeEmptyRanks",()=>Nn(e)),n(" nestingGraph.cleanup",()=>Kn(e)),n(" normalizeRanks",()=>Ln(e)),n(" assignRankMinMax",()=>zr(e)),n(" removeEdgeLabelProxies",()=>Ur(e)),n(" normalize.run",()=>Sn(e)),n(" parentDummyChains",()=>pr(e)),n(" addBorderSegments",()=>_n(e)),n(" order",()=>hr(e)),n(" insertSelfEdges",()=>et(e)),n(" adjustCoordinateSystem",()=>Rn(e)),n(" position",()=>Tr(e)),n(" positionSelfEdges",()=>nt(e)),n(" removeBorderNodes",()=>Kr(e)),n(" normalize.undo",()=>jn(e)),n(" fixupEdgeLabelCoords",()=>Jr(e)),n(" undoCoordinateSystem",()=>Tn(e)),n(" translateGraph",()=>Xr(e)),n(" assignNodeIntersects",()=>Hr(e)),n(" reversePoints",()=>Zr(e)),n(" acyclic.undo",()=>En(e))}function Sr(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Fr=["nodesep","edgesep","ranksep","marginx","marginy"],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Vr=["acyclicer","ranker","rankdir","align"],Ar=["width","height"],Br={width:0,height:0},Gr=["minlen","weight","width","height","labeloffset"],Yr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Dr=["labelpos"];function qr(e){var n=new g({multigraph:!0,compound:!0}),r=D(e.graph());return n.setGraph($({},jr,Y(r,Fr),I(r,Vr))),f(e.nodes(),function(t){var a=D(e.node(t));n.setNode(t,Be(Y(a,Ar),Br)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=D(e.edge(t));n.setEdge(t,$({},Yr,Y(a,Gr),I(a,Dr)))}),n}function $r(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Wr(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};L(e,"edge-proxy",i,"_ep")}})}function zr(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=y(n,t.maxRank))}),e.graph().maxRank=n}function Ur(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Xr(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,u=i.marginy||0;function d(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){d(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&d(c)}),n-=o,t-=u,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+u}function Hr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(re(t,i)),r.points.push(re(a,o))})}function Jr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Zr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Kr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Qr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function et(e){var n=F(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(u){L(e,"selfedge",{width:u.label.width,height:u.label.height,rank:o.rank,order:i+ ++t,e:u.e,label:u.label},"_se")}),delete o.selfEdges})})}function nt(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-u},{x:a+5*o/6,y:i-u},{x:a+o,y:i},{x:a+5*o/6,y:i+u},{x:a+2*o/3,y:i+u}],r.label.x=r.x,r.label.y=r.y}})}function Y(e,n){return S(I(e,n),Number)}function D(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{ot as l}; +import{G as g}from"./md-graph-C_Pg_EOJ.js";import{b as Te,p as ce,q as le,g as z,e as ee,l as j,o as Ie,s as Me,c as Se,u as Fe,d as f,i as m,f as _,v as x,r as M}from"./md-_baseUniq-DZXHEAoF.js";import{f as O,b as he,a as je,c as Ve,d as Ae,t as V,m as w,e as P,h as ve,g as U,l as T,i as Be}from"./md-_basePickBy-C4aggLA-.js";import{b6 as Ge,b7 as Ye,b8 as De,aO as qe,b9 as $e,aS as pe,aR as we,ba as We,aN as q,aA as ze,aU as Ue,aC as Xe,bb as $}from"./md-index-ByjuzIYZ.js";function He(e){return Ge(Ye(e,void 0,O),e+"")}var Je=1,Ze=4;function Ke(e){return Te(e,Je|Ze)}function Qe(e,n){return e==null?e:De(e,ce(n),qe)}function en(e,n){return e&&le(e,ce(n))}function nn(e,n){return e>n}function S(e,n){var r={};return n=z(n),le(e,function(t,a,i){$e(r,a,n(t,a,i))}),r}function y(e){return e&&e.length?he(e,pe,nn):void 0}function X(e,n){return e&&e.length?he(e,z(n),je):void 0}function rn(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function tn(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,i=ee(e),o=n!==void 0,u=n===null,d=n===n,s=ee(n);if(!u&&!s&&!i&&e>n||i&&o&&d&&!u&&!s||t&&o&&d||!r&&d||!a)return 1;if(!t&&!i&&!s&&e=u)return d;var s=r[t];return d*(s=="desc"?-1:1)}}return e.index-n.index}function on(e,n,r){n.length?n=j(n,function(i){return we(i)?function(o){return Ie(o,i.length===1?i[0]:i)}:i}):n=[pe];var t=-1;n=j(n,We(z));var a=Ve(e,function(i,o,u){var d=j(n,function(s){return s(i)});return{criteria:d,index:++t,value:i}});return rn(a,function(i,o){return an(i,o,r)})}function un(e,n){return Ae(e,n,function(r,t){return Me(e,t)})}var I=He(function(e,n){return e==null?{}:un(e,n)}),dn=Math.ceil,sn=Math.max;function fn(e,n,r,t){for(var a=-1,i=sn(dn((n-e)/(r||1)),0),o=Array(i);i--;)o[++a]=e,e+=r;return o}function cn(e){return function(n,r,t){return t&&typeof t!="number"&&q(n,r,t)&&(r=t=void 0),n=V(n),r===void 0?(r=n,n=0):r=V(r),t=t===void 0?n1&&q(e,n[0],n[1])?n=[]:r>2&&q(n[0],n[1],n[2])&&(n=[n[0]]),on(e,Se(n),[])}),ln=0;function H(e){var n=++ln;return Fe(e)+n}function hn(e,n,r){for(var t=-1,a=e.length,i=n.length,o={};++t0;--u)if(o=n[u].dequeue(),o){t=t.concat(A(e,n,r,o,!0));break}}}return t}function A(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var u=e.edge(o),d=e.node(o.v);a&&i.push({v:o.v,w:o.w}),d.out-=u,W(n,r,d)}),f(e.outEdges(t.v),function(o){var u=e.edge(o),d=o.w,s=e.node(d);s.in-=u,W(n,r,s)}),e.removeNode(t.v),i}function yn(e,n){var r=new g,t=0,a=0;f(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,s=n(u),c=d+s;r.setEdge(u.v,u.w,c),a=Math.max(a,r.node(u.v).out+=s),t=Math.max(t,r.node(u.w).in+=s)});var i=E(a+t+3).map(function(){return new pn}),o=t+1;return f(r.nodes(),function(u){W(i,o,r.node(u))}),{graph:r,buckets:i,zeroIdx:o}}function W(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function kn(e){var n=e.graph().acyclicer==="greedy"?mn(e,r(e)):xn(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,H("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function xn(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function En(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function L(e,n,r,t){var a;do a=H(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function On(e){var n=new g().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function be(e){var n=new g({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function re(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,u=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var d,s;return Math.abs(i)*o>Math.abs(a)*u?(i<0&&(u=-u),d=u*a/i,s=u):(a<0&&(o=-o),d=o,s=o*i/a),{x:r+d,y:t+s}}function F(e){var n=w(E(me(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;m(a)||(n[a][t.order]=r)}),n}function Ln(e){var n=P(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ve(t,"rank")&&(t.rank-=n)})}function Nn(e){var n=P(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){m(i)&&o%a!==0?--t:t&&f(i,function(u){e.node(u).rank+=t})})}function te(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),L(e,"border",a,n)}function me(e){return y(w(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function Pn(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function Cn(e,n){return n()}function _n(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;io.lim&&(u=o,d=!0);var s=_(n.edges(),function(c){return d===oe(e,e.node(c.v),u)&&d!==oe(e,e.node(c.w),u)});return X(s,function(c){return C(n,c)})}function Pe(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),K(e),Z(e,n),$n(e,n)}function $n(e,n){var r=U(e.nodes(),function(a){return!n.node(a).parent}),t=Dn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),u=!1;o||(o=n.edge(i,a),u=!0),n.node(a).rank=n.node(i).rank+(u?o.minlen:-o.minlen)})}function Wn(e,n,r){return e.hasEdge(n,r)}function oe(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function zn(e){switch(e.graph().ranker){case"network-simplex":ue(e);break;case"tight-tree":Xn(e);break;case"longest-path":Un(e);break;default:ue(e)}}var Un=J;function Xn(e){J(e),ye(e)}function ue(e){k(e)}function Hn(e){var n=L(e,"root",{},"_root"),r=Jn(e),t=y(x(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=Zn(e)+1;f(e.children(),function(o){Ce(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function Ce(e,n,r,t,a,i,o){var u=e.children(o);if(!u.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var d=te(e,"_bt"),s=te(e,"_bb"),c=e.node(o);e.setParent(d,o),c.borderTop=d,e.setParent(s,o),c.borderBottom=s,f(u,function(l){Ce(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(d,v,{weight:b,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:b,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,d,{weight:0,minlen:a+i[o]})}function Jn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function Zn(e){return M(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Kn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Qn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),u,d;o;){if(u=e.parent(o),u?(d=t[u],t[u]=o):(d=a,a=o),d&&d!==o){n.setEdge(d,o);return}o=u}})}function er(e,n,r){var t=nr(e),a=new g({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),u=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,u||t),f(e[r](i),function(d){var s=d.v===i?d.w:d.v,c=a.edge(s,i),l=m(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function nr(e){for(var n;e.hasNode(n=H("_root")););return n}function rr(e,n){for(var r=0,t=1;t0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=s.weight;d+=s.weight*l})),d}function ar(e){var n={},r=_(e.nodes(),function(u){return!e.children(u).length}),t=y(w(r,function(u){return e.node(u).rank})),a=w(E(t+1),function(){return[]});function i(u){if(!ve(n,u)){n[u]=!0;var d=e.node(u);a[d.rank].push(u),f(e.successors(u),i)}}var o=R(r,function(u){return e.node(u).rank});return f(o,i),a}function ir(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=M(t,function(i,o){var u=e.edge(o),d=e.node(o.v);return{sum:i.sum+u.weight*d.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function or(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};m(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!m(i)&&!m(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return ur(t)}function ur(e){var n=[];function r(i){return function(o){o.merged||(m(o.barycenter)||m(i.barycenter)||o.barycenter>=i.barycenter)&&dr(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return I(i,["vs","i","barycenter","weight"])})}function dr(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function sr(e,n){var r=Pn(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=R(r.rhs,function(c){return-c.i}),i=[],o=0,u=0,d=0;t.sort(fr(!!n)),d=de(i,a,d),f(t,function(c){d+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,u+=c.weight,d=de(i,a,d)});var s={vs:O(i)};return u&&(s.barycenter=o/u,s.weight=u),s}function de(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function fr(e){return function(n,r){return n.barycenterr.barycenter?1:e?r.i-n.i:n.i-r.i}}function _e(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,d={};o&&(a=_(a,function(p){return p!==o&&p!==u}));var s=ir(e,a);f(s,function(p){if(e.children(p.v).length){var b=_e(e,p.v,r,t);d[p.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&lr(p,b)}});var c=or(s,r);cr(c,d);var l=sr(c,t);if(o&&(l.vs=O([o,l.vs,u]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function cr(e,n){f(e,function(r){r.vs=O(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function lr(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function hr(e){var n=me(e),r=se(e,E(1,n+1),"inEdges"),t=se(e,E(n-1,-1,-1),"outEdges"),a=ar(e);fe(e,a);for(var i=Number.POSITIVE_INFINITY,o,u=0,d=0;d<4;++u,++d){vr(u%2?r:t,u%4>=2),a=F(e);var s=rr(e,a);so||u>n[d].lim));for(s=d,d=t;(d=e.parent(d))!==s;)i.push(d);return{path:a.concat(i.reverse()),lca:s}}function br(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function mr(e,n){var r={};function t(a,i){var o=0,u=0,d=a.length,s=T(i);return f(i,function(c,l){var h=yr(e,c),v=h?e.node(h).order:d;(h||c===s)&&(f(i.slice(u,l+1),function(p){f(e.predecessors(p),function(b){var N=e.node(b),Q=N.order;(Qs)&&Re(r,h,c)})})}function a(i,o){var u=-1,d,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(d=e.node(h[0]).order,t(o,s,l,u,d),s=l,u=d)}t(o,s,o.length,d,i.length)}),o}return M(n,a),r}function yr(e,n){if(e.node(n).dummy)return U(e.predecessors(n),function(r){return e.node(r).dummy})}function Re(e,n,r){if(n>r){var t=n;n=r,r=t}var a=e[n];a||(e[n]=a={}),a[r]=!0}function kr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function xr(e,n,r,t){var a={},i={},o={};return f(n,function(u){f(u,function(d,s){a[d]=d,i[d]=d,o[d]=s})}),f(n,function(u){var d=-1;f(u,function(s){var c=t(s);if(c.length){c=R(c,function(b){return o[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&d{var t=r(" buildLayoutGraph",()=>qr(e));r(" runLayout",()=>Mr(t,r)),r(" updateInputGraph",()=>Sr(e,t))})}function Mr(e,n){n(" makeSpaceForEdgeLabels",()=>$r(e)),n(" removeSelfEdges",()=>Qr(e)),n(" acyclic",()=>kn(e)),n(" nestingGraph.run",()=>Hn(e)),n(" rank",()=>zn(be(e))),n(" injectEdgeLabelProxies",()=>Wr(e)),n(" removeEmptyRanks",()=>Nn(e)),n(" nestingGraph.cleanup",()=>Kn(e)),n(" normalizeRanks",()=>Ln(e)),n(" assignRankMinMax",()=>zr(e)),n(" removeEdgeLabelProxies",()=>Ur(e)),n(" normalize.run",()=>Sn(e)),n(" parentDummyChains",()=>pr(e)),n(" addBorderSegments",()=>_n(e)),n(" order",()=>hr(e)),n(" insertSelfEdges",()=>et(e)),n(" adjustCoordinateSystem",()=>Rn(e)),n(" position",()=>Tr(e)),n(" positionSelfEdges",()=>nt(e)),n(" removeBorderNodes",()=>Kr(e)),n(" normalize.undo",()=>jn(e)),n(" fixupEdgeLabelCoords",()=>Jr(e)),n(" undoCoordinateSystem",()=>Tn(e)),n(" translateGraph",()=>Xr(e)),n(" assignNodeIntersects",()=>Hr(e)),n(" reversePoints",()=>Zr(e)),n(" acyclic.undo",()=>En(e))}function Sr(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Fr=["nodesep","edgesep","ranksep","marginx","marginy"],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Vr=["acyclicer","ranker","rankdir","align"],Ar=["width","height"],Br={width:0,height:0},Gr=["minlen","weight","width","height","labeloffset"],Yr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Dr=["labelpos"];function qr(e){var n=new g({multigraph:!0,compound:!0}),r=D(e.graph());return n.setGraph($({},jr,Y(r,Fr),I(r,Vr))),f(e.nodes(),function(t){var a=D(e.node(t));n.setNode(t,Be(Y(a,Ar),Br)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=D(e.edge(t));n.setEdge(t,$({},Yr,Y(a,Gr),I(a,Dr)))}),n}function $r(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Wr(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};L(e,"edge-proxy",i,"_ep")}})}function zr(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=y(n,t.maxRank))}),e.graph().maxRank=n}function Ur(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Xr(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,u=i.marginy||0;function d(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){d(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&d(c)}),n-=o,t-=u,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+u}function Hr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(re(t,i)),r.points.push(re(a,o))})}function Jr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Zr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Kr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Qr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function et(e){var n=F(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(u){L(e,"selfedge",{width:u.label.width,height:u.label.height,rank:o.rank,order:i+ ++t,e:u.e,label:u.label},"_se")}),delete o.selfEdges})})}function nt(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-u},{x:a+5*o/6,y:i-u},{x:a+o,y:i},{x:a+5*o/6,y:i+u},{x:a+2*o/3,y:i+u}],r.label.x=r.x,r.label.y=r.y}})}function Y(e,n){return S(I(e,n),Number)}function D(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{ot as l}; diff --git a/static/js/md-linear-Co0c8OqW.js b/static/js/md-linear-D0BfzCsi.js similarity index 99% rename from static/js/md-linear-Co0c8OqW.js rename to static/js/md-linear-D0BfzCsi.js index 012e98b..5205f54 100644 --- a/static/js/md-linear-Co0c8OqW.js +++ b/static/js/md-linear-D0BfzCsi.js @@ -1 +1 @@ -import{b1 as un,b2 as I,b3 as U,b4 as Y,b5 as fn}from"./md-index-BhYxDPe5.js";import{i as cn}from"./md-init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=_(F),dn=sn.right;_(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Sn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?J:jn(K.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:Pn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,b=h.symbol,k=h.zero,S=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):H[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=b==="$"?e:b==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=b==="$"?r:/[%p]/.test(d)?a:"",O=H[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?Q[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,b=Math.pow(10,-y),k=Q[8+y/3];return function(S){return p(b*S)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var W=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Gn:Bn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=bn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Xn(){return Vn()(A,A)}function Un(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Yn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Un(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Zn(){var n=Xn();return n.copy=function(){return On(n,Zn())},cn.apply(n,arguments),Yn(n)}export{On as a,_ as b,Xn as c,Zn as l,wn as t}; +import{b1 as un,b2 as I,b3 as U,b4 as Y,b5 as fn}from"./md-index-ByjuzIYZ.js";import{i as cn}from"./md-init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=_(F),dn=sn.right;_(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Sn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?J:jn(K.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:Pn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,b=h.symbol,k=h.zero,S=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):H[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=b==="$"?e:b==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=b==="$"?r:/[%p]/.test(d)?a:"",O=H[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?Q[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,b=Math.pow(10,-y),k=Q[8+y/3];return function(S){return p(b*S)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var W=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Gn:Bn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=bn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Xn(){return Vn()(A,A)}function Un(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Yn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Un(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Zn(){var n=Xn();return n.copy=function(){return On(n,Zn())},cn.apply(n,arguments),Yn(n)}export{On as a,_ as b,Xn as c,Zn as l,wn as t}; diff --git a/static/js/md-mindmap-definition-GWI6TPTV-BN_pDCz5.js b/static/js/md-mindmap-definition-GWI6TPTV-Cg1KPMe9.js similarity index 99% rename from static/js/md-mindmap-definition-GWI6TPTV-BN_pDCz5.js rename to static/js/md-mindmap-definition-GWI6TPTV-Cg1KPMe9.js index 6713178..5b35a7e 100644 --- a/static/js/md-mindmap-definition-GWI6TPTV-BN_pDCz5.js +++ b/static/js/md-mindmap-definition-GWI6TPTV-Cg1KPMe9.js @@ -1,4 +1,4 @@ -import{aH as at,aI as Nt,_ as S,l as z,j as Dt,aj as mt,O as Ot,d as ot,G as At,V as It,B as tt,i as et,W as Ct,X as Rt,Y as xt}from"./md-index-BhYxDPe5.js";import{c as pt}from"./md-cytoscape.esm-DNbDS6Fs.js";var dt={exports:{}},it={exports:{}},nt={exports:{}},ut;function Mt(){return ut||(ut=1,function(I,w){(function(m,y){I.exports=y()})(at,function(){return function(f){var m={};function y(r){if(m[r])return m[r].exports;var t=m[r]={i:r,l:!1,exports:{}};return f[r].call(t.exports,t,t.exports,y),t.l=!0,t.exports}return y.m=f,y.c=m,y.i=function(r){return r},y.d=function(r,t,e){y.o(r,t)||Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:e})},y.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return y.d(t,"a",t),t},y.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},y.p="",y(y.s=26)}([function(f,m,y){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,f.exports=r},function(f,m,y){var r=y(2),t=y(8),e=y(9);function i(g,a,v){r.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=g,this.target=a}i.prototype=Object.create(r.prototype);for(var o in r)i[o]=r[o];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,a){for(var v=this.getOtherEnd(g),n=a.getGraphManager().getRoot();;){if(v.getOwner()==a)return v;if(v.getOwner()==n)break;v=v.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=t.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},f.exports=i},function(f,m,y){function r(t){this.vGraphObject=t}f.exports=r},function(f,m,y){var r=y(2),t=y(10),e=y(13),i=y(0),o=y(16),g=y(4);function a(n,c,l,E){l==null&&E==null&&(E=c),r.call(this,E),n.graphManager!=null&&(n=n.graphManager),this.estimatedSize=t.MIN_VALUE,this.inclusionTreeDepth=t.MAX_VALUE,this.vGraphObject=E,this.edges=[],this.graphManager=n,l!=null&&c!=null?this.rect=new e(c.x,c.y,l.width,l.height):this.rect=new e}a.prototype=Object.create(r.prototype);for(var v in r)a[v]=r[v];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(n){this.rect.width=n},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(n){this.rect.height=n},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(n,c){this.rect.x=n.x,this.rect.y=n.y,this.rect.width=c.width,this.rect.height=c.height},a.prototype.setCenter=function(n,c){this.rect.x=n-this.rect.width/2,this.rect.y=c-this.rect.height/2},a.prototype.setLocation=function(n,c){this.rect.x=n,this.rect.y=c},a.prototype.moveBy=function(n,c){this.rect.x+=n,this.rect.y+=c},a.prototype.getEdgeListToNode=function(n){var c=[],l=this;return l.edges.forEach(function(E){if(E.target==n){if(E.source!=l)throw"Incorrect edge source!";c.push(E)}}),c},a.prototype.getEdgesBetween=function(n){var c=[],l=this;return l.edges.forEach(function(E){if(!(E.source==l||E.target==l))throw"Incorrect edge source and/or target";(E.target==n||E.source==n)&&c.push(E)}),c},a.prototype.getNeighborsList=function(){var n=new Set,c=this;return c.edges.forEach(function(l){if(l.source==c)n.add(l.target);else{if(l.target!=c)throw"Incorrect incidency!";n.add(l.source)}}),n},a.prototype.withChildren=function(){var n=new Set,c,l;if(n.add(this),this.child!=null)for(var E=this.child.getNodes(),T=0;Tc&&(this.rect.x-=(this.labelWidth-c)/2,this.setWidth(this.labelWidth)),this.labelHeight>l&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-l)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-l),this.setHeight(this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==t.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(n){var c=this.rect.x;c>i.WORLD_BOUNDARY?c=i.WORLD_BOUNDARY:c<-i.WORLD_BOUNDARY&&(c=-i.WORLD_BOUNDARY);var l=this.rect.y;l>i.WORLD_BOUNDARY?l=i.WORLD_BOUNDARY:l<-i.WORLD_BOUNDARY&&(l=-i.WORLD_BOUNDARY);var E=new g(c,l),T=n.inverseTransformPoint(E);this.setLocation(T.x,T.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},f.exports=a},function(f,m,y){function r(t,e){t==null&&e==null?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},f.exports=r},function(f,m,y){var r=y(2),t=y(10),e=y(0),i=y(6),o=y(3),g=y(1),a=y(13),v=y(12),n=y(11);function c(E,T,D){r.call(this,D),this.estimatedSize=t.MIN_VALUE,this.margin=e.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=E,T!=null&&T instanceof i?this.graphManager=T:T!=null&&T instanceof Layout&&(this.graphManager=T.graphManager)}c.prototype=Object.create(r.prototype);for(var l in r)c[l]=r[l];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(E,T,D){if(T==null&&D==null){var L=E;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(L)>-1)throw"Node already in graph!";return L.owner=this,this.getNodes().push(L),L}else{var O=E;if(!(this.getNodes().indexOf(T)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(T.owner==D.owner&&T.owner==this))throw"Both owners must be this graph!";return T.owner!=D.owner?null:(O.source=T,O.target=D,O.isInterGraph=!1,this.getEdges().push(O),T.edges.push(O),D!=T&&D.edges.push(O),O)}},c.prototype.remove=function(E){var T=E;if(E instanceof o){if(T==null)throw"Node is null!";if(!(T.owner!=null&&T.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=T.edges.slice(),L,O=D.length,d=0;d-1&&h>-1))throw"Source and/or target doesn't know this edge!";L.source.edges.splice(s,1),L.target!=L.source&&L.target.edges.splice(h,1);var N=L.source.owner.getEdges().indexOf(L);if(N==-1)throw"Not in owner's edge list!";L.source.owner.getEdges().splice(N,1)}},c.prototype.updateLeftTop=function(){for(var E=t.MAX_VALUE,T=t.MAX_VALUE,D,L,O,d=this.getNodes(),N=d.length,s=0;sD&&(E=D),T>L&&(T=L)}return E==t.MAX_VALUE?null:(d[0].getParent().paddingLeft!=null?O=d[0].getParent().paddingLeft:O=this.margin,this.left=T-O,this.top=E-O,new v(this.left,this.top))},c.prototype.updateBounds=function(E){for(var T=t.MAX_VALUE,D=-t.MAX_VALUE,L=t.MAX_VALUE,O=-t.MAX_VALUE,d,N,s,h,u,p=this.nodes,A=p.length,C=0;Cd&&(T=d),Ds&&(L=s),Od&&(T=d),Ds&&(L=s),O=this.nodes.length){var A=0;D.forEach(function(C){C.owner==E&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},f.exports=c},function(f,m,y){var r,t=y(1);function e(i){r=y(5),this.layout=i,this.graphs=[],this.edges=[]}e.prototype.addRoot=function(){var i=this.layout.newGraph(),o=this.layout.newNode(null),g=this.add(i,o);return this.setRootGraph(g),this.rootGraph},e.prototype.add=function(i,o,g,a,v){if(g==null&&a==null&&v==null){if(i==null)throw"Graph is null!";if(o==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(o.child!=null)throw"Already has a child!";return i.parent=o,o.child=i,i}else{v=g,a=o,g=i;var n=a.getOwner(),c=v.getOwner();if(!(n!=null&&n.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(c!=null&&c.getGraphManager()==this))throw"Target not in this graph mgr!";if(n==c)return g.isInterGraph=!1,n.add(g,a,v);if(g.isInterGraph=!0,g.source=a,g.target=v,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},e.prototype.remove=function(i){if(i instanceof r){var o=i;if(o.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(o==this.rootGraph||o.parent!=null&&o.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(o.getEdges());for(var a,v=g.length,n=0;n=i.getRight()?o[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight()):i.getX()<=e.getX()&&i.getRight()>=e.getRight()&&(o[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight())),e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()?o[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()):i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()&&(o[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()));var v=Math.abs((i.getCenterY()-e.getCenterY())/(i.getCenterX()-e.getCenterX()));i.getCenterY()===e.getCenterY()&&i.getCenterX()===e.getCenterX()&&(v=1);var n=v*o[0],c=o[1]/v;o[0]n)return o[0]=g,o[1]=l,o[2]=v,o[3]=p,!1;if(av)return o[0]=c,o[1]=a,o[2]=h,o[3]=n,!1;if(gv?(o[0]=T,o[1]=D,x=!0):(o[0]=E,o[1]=l,x=!0):U===M&&(g>v?(o[0]=c,o[1]=l,x=!0):(o[0]=L,o[1]=D,x=!0)),-X===M?v>g?(o[2]=u,o[3]=p,_=!0):(o[2]=h,o[3]=s,_=!0):X===M&&(v>g?(o[2]=N,o[3]=s,_=!0):(o[2]=A,o[3]=p,_=!0)),x&&_)return!1;if(g>v?a>n?(G=this.getCardinalDirection(U,M,4),F=this.getCardinalDirection(X,M,2)):(G=this.getCardinalDirection(-U,M,3),F=this.getCardinalDirection(-X,M,1)):a>n?(G=this.getCardinalDirection(-U,M,1),F=this.getCardinalDirection(-X,M,3)):(G=this.getCardinalDirection(U,M,2),F=this.getCardinalDirection(X,M,4)),!x)switch(G){case 1:Y=l,b=g+-d/M,o[0]=b,o[1]=Y;break;case 2:b=L,Y=a+O*M,o[0]=b,o[1]=Y;break;case 3:Y=D,b=g+d/M,o[0]=b,o[1]=Y;break;case 4:b=T,Y=a+-O*M,o[0]=b,o[1]=Y;break}if(!_)switch(F){case 1:H=s,k=v+-R/M,o[2]=k,o[3]=H;break;case 2:k=A,H=n+C*M,o[2]=k,o[3]=H;break;case 3:H=p,k=v+R/M,o[2]=k,o[3]=H;break;case 4:k=u,H=n+-C*M,o[2]=k,o[3]=H;break}}return!1},t.getCardinalDirection=function(e,i,o){return e>i?o:1+o%4},t.getIntersection=function(e,i,o,g){if(g==null)return this.getIntersection2(e,i,o);var a=e.x,v=e.y,n=i.x,c=i.y,l=o.x,E=o.y,T=g.x,D=g.y,L=void 0,O=void 0,d=void 0,N=void 0,s=void 0,h=void 0,u=void 0,p=void 0,A=void 0;return d=c-v,s=a-n,u=n*v-a*c,N=D-E,h=l-T,p=T*E-l*D,A=d*h-N*s,A===0?null:(L=(s*p-h*u)/A,O=(N*u-d*p)/A,new r(L,O))},t.angleOfVector=function(e,i,o,g){var a=void 0;return e!==o?(a=Math.atan((g-i)/(o-e)),o0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},f.exports=r},function(f,m,y){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,f.exports=r},function(f,m,y){var r=function(){function a(v,n){for(var c=0;c"u"?"undefined":r(e);return e==null||i!="object"&&i!="function"},f.exports=t},function(f,m,y){function r(l){if(Array.isArray(l)){for(var E=0,T=Array(l.length);E0&&E;){for(d.push(s[0]);d.length>0&&E;){var h=d[0];d.splice(0,1),O.add(h);for(var u=h.getEdges(),L=0;L-1&&s.splice(R,1)}O=new Set,N=new Map}}return l},c.prototype.createDummyNodesForBendpoints=function(l){for(var E=[],T=l.source,D=this.graphManager.calcLowestCommonAncestor(l.source,l.target),L=0;L0){for(var D=this.edgeToDummyNodes.get(T),L=0;L=0&&E.splice(p,1);var A=N.getNeighborsList();A.forEach(function(x){if(T.indexOf(x)<0){var _=D.get(x),U=_-1;U==1&&h.push(x),D.set(x,U)}})}T=T.concat(h),(E.length==1||E.length==2)&&(L=!0,O=E[0])}return O},c.prototype.setGraphManager=function(l){this.graphManager=l},f.exports=c},function(f,m,y){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},f.exports=r},function(f,m,y){var r=y(4);function t(e,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}t.prototype.getWorldOrgX=function(){return this.lworldOrgX},t.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},t.prototype.getWorldOrgY=function(){return this.lworldOrgY},t.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},t.prototype.getWorldExtX=function(){return this.lworldExtX},t.prototype.setWorldExtX=function(e){this.lworldExtX=e},t.prototype.getWorldExtY=function(){return this.lworldExtY},t.prototype.setWorldExtY=function(e){this.lworldExtY=e},t.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},t.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},t.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},t.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},t.prototype.getDeviceExtX=function(){return this.ldeviceExtX},t.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},t.prototype.getDeviceExtY=function(){return this.ldeviceExtY},t.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},t.prototype.transformX=function(e){var i=0,o=this.lworldExtX;return o!=0&&(i=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/o),i},t.prototype.transformY=function(e){var i=0,o=this.lworldExtY;return o!=0&&(i=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/o),i},t.prototype.inverseTransformX=function(e){var i=0,o=this.ldeviceExtX;return o!=0&&(i=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/o),i},t.prototype.inverseTransformY=function(e){var i=0,o=this.ldeviceExtY;return o!=0&&(i=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/o),i},t.prototype.inverseTransformPoint=function(e){var i=new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y));return i},f.exports=t},function(f,m,y){function r(n){if(Array.isArray(n)){for(var c=0,l=Array(n.length);ce.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-e.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT_INCREMENTAL):(n>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*(1-e.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var n=this.getAllEdges(),c,l=0;l0&&arguments[0]!==void 0?arguments[0]:!0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l,E,T,D,L=this.getAllNodes(),O;if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&n&&this.updateGrid(),O=new Set,l=0;ld||O>d)&&(n.gravitationForceX=-this.gravityConstant*T,n.gravitationForceY=-this.gravityConstant*D)):(d=c.getEstimatedSize()*this.compoundGravityRangeFactor,(L>d||O>d)&&(n.gravitationForceX=-this.gravityConstant*T*this.compoundGravityConstant,n.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},a.prototype.isConverged=function(){var n,c=!1;return this.totalIterations>this.maxIterations/3&&(c=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),n=this.totalDisplacement=L.length||d>=L[0].length)){for(var N=0;Na}}]),o}();f.exports=i},function(f,m,y){var r=function(){function i(o,g){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;t(this,i),this.sequence1=o,this.sequence2=g,this.match_score=a,this.mismatch_penalty=v,this.gap_penalty=n,this.iMax=o.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var c=0;c=0;o--){var g=this.listeners[o];g.event===e&&g.callback===i&&this.listeners.splice(o,1)}},t.emit=function(e,i){for(var o=0;og.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,a){for(var v=this.getChild().getNodes(),n,c=0;c0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var h=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(p){return h.has(p)});this.graphManager.setAllNodesToApplyGravitation(u),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},d.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%v.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),h=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(h),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var u=!this.isTreeGrowing&&!this.isGrowthFinished,p=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(u,p),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},d.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),h={},u=0;u1){var x;for(x=0;xp&&(p=Math.floor(R.y)),C=Math.floor(R.x+a.DEFAULT_COMPONENT_SEPERATION)}this.transform(new l(n.WORLD_CENTER_X-R.x/2,n.WORLD_CENTER_Y-R.y/2))},d.radialLayout=function(s,h,u){var p=Math.max(this.maxDiagonalInTree(s),a.DEFAULT_RADIAL_SEPARATION);d.branchRadialLayout(h,null,0,359,0,p);var A=L.calculateBounds(s),C=new O;C.setDeviceOrgX(A.getMinX()),C.setDeviceOrgY(A.getMinY()),C.setWorldOrgX(u.x),C.setWorldOrgY(u.y);for(var R=0;R1;){var H=k[0];k.splice(0,1);var P=M.indexOf(H);P>=0&&M.splice(P,1),b--,G--}h!=null?Y=(M.indexOf(k[0])+1)%b:Y=0;for(var B=Math.abs(p-u)/G,$=Y;F!=G;$=++$%b){var K=M[$].getOtherEnd(s);if(K!=h){var Q=(u+F*B)%360,J=(Q+B)%360;d.branchRadialLayout(K,s,Q,J,A+C,C),F++}}},d.maxDiagonalInTree=function(s){for(var h=T.MIN_VALUE,u=0;uh&&(h=A)}return h},d.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},d.prototype.groupZeroDegreeMembers=function(){var s=this,h={};this.memberGroups={},this.idToDummyNode={};for(var u=[],p=this.graphManager.getAllNodes(),A=0;A"u"&&(h[x]=[]),h[x]=h[x].concat(C)}Object.keys(h).forEach(function(_){if(h[_].length>1){var U="DummyCompound_"+_;s.memberGroups[U]=h[_];var X=h[_][0].getParent(),M=new o(s.graphManager);M.id=U,M.paddingLeft=X.paddingLeft||0,M.paddingRight=X.paddingRight||0,M.paddingBottom=X.paddingBottom||0,M.paddingTop=X.paddingTop||0,s.idToDummyNode[U]=M;var G=s.getGraphManager().add(s.newGraph(),M),F=X.getChild();F.add(M);for(var b=0;b=0;s--){var h=this.compoundOrder[s],u=h.id,p=h.paddingLeft,A=h.paddingTop;this.adjustLocations(this.tiledMemberPack[u],h.rect.x,h.rect.y,p,A)}},d.prototype.repopulateZeroDegreeMembers=function(){var s=this,h=this.tiledZeroDegreePack;Object.keys(h).forEach(function(u){var p=s.idToDummyNode[u],A=p.paddingLeft,C=p.paddingTop;s.adjustLocations(h[u],p.rect.x,p.rect.y,A,C)})},d.prototype.getToBeTiled=function(s){var h=s.id;if(this.toBeTiled[h]!=null)return this.toBeTiled[h];var u=s.getChild();if(u==null)return this.toBeTiled[h]=!1,!1;for(var p=u.getNodes(),A=0;A0)return this.toBeTiled[h]=!1,!1;if(C.getChild()==null){this.toBeTiled[C.id]=!1;continue}if(!this.getToBeTiled(C))return this.toBeTiled[h]=!1,!1}return this.toBeTiled[h]=!0,!0},d.prototype.getNodeDegree=function(s){s.id;for(var h=s.getEdges(),u=0,p=0;p_&&(_=X.rect.height)}u+=_+s.verticalPadding}},d.prototype.tileCompoundMembers=function(s,h){var u=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(p){var A=h[p];u.tiledMemberPack[p]=u.tileNodes(s[p],A.paddingLeft+A.paddingRight),A.rect.width=u.tiledMemberPack[p].width,A.rect.height=u.tiledMemberPack[p].height})},d.prototype.tileNodes=function(s,h){var u=a.TILING_PADDING_VERTICAL,p=a.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:h,verticalPadding:u,horizontalPadding:p};s.sort(function(x,_){return x.rect.width*x.rect.height>_.rect.width*_.rect.height?-1:x.rect.width*x.rect.height<_.rect.width*_.rect.height?1:0});for(var C=0;C0&&(R+=s.horizontalPadding),s.rowWidth[u]=R,s.width0&&(x+=s.verticalPadding);var _=0;x>s.rowHeight[u]&&(_=s.rowHeight[u],s.rowHeight[u]=x,_=s.rowHeight[u]-_),s.height+=_,s.rows[u].push(h)},d.prototype.getShortestRowIndex=function(s){for(var h=-1,u=Number.MAX_VALUE,p=0;pu&&(h=p,u=s.rowWidth[p]);return h},d.prototype.canAddHorizontal=function(s,h,u){var p=this.getShortestRowIndex(s);if(p<0)return!0;var A=s.rowWidth[p];if(A+s.horizontalPadding+h<=s.width)return!0;var C=0;s.rowHeight[p]0&&(C=u+s.verticalPadding-s.rowHeight[p]);var R;s.width-A>=h+s.horizontalPadding?R=(s.height+C)/(A+h+s.horizontalPadding):R=(s.height+C)/s.width,C=u+s.verticalPadding;var x;return s.widthC&&h!=u){p.splice(-1,1),s.rows[u].push(A),s.rowWidth[h]=s.rowWidth[h]-C,s.rowWidth[u]=s.rowWidth[u]+C,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var R=Number.MIN_VALUE,x=0;xR&&(R=p[x].height);h>0&&(R+=s.verticalPadding);var _=s.rowHeight[h]+s.rowHeight[u];s.rowHeight[h]=R,s.rowHeight[u]0)for(var F=A;F<=C;F++)G[0]+=this.grid[F][R-1].length+this.grid[F][R].length-1;if(C0)for(var F=R;F<=x;F++)G[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var b=T.MAX_VALUE,Y,k,H=0;H0){var x;x=O.getGraphManager().add(O.newGraph(),u),this.processChildrenList(x,h,O)}}},l.prototype.stop=function(){return this.stopped=!0,this};var T=function(L){L("layout","cose-bilkent",l)};typeof cytoscape<"u"&&T(cytoscape),m.exports=T}])})})(dt);var St=dt.exports;const Gt=Nt(St);var st=function(){var I=S(function(O,d,N,s){for(N=N||{},s=O.length;s--;N[O[s]]=d);return N},"o"),w=[1,4],f=[1,13],m=[1,12],y=[1,15],r=[1,16],t=[1,20],e=[1,19],i=[6,7,8],o=[1,26],g=[1,24],a=[1,25],v=[6,7,11],n=[1,6,13,15,16,19,22],c=[1,33],l=[1,34],E=[1,6,7,11,13,15,16,19,22],T={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:S(function(d,N,s,h,u,p,A){var C=p.length-1;switch(u){case 6:case 7:return h;case 8:h.getLogger().trace("Stop NL ");break;case 9:h.getLogger().trace("Stop EOF ");break;case 11:h.getLogger().trace("Stop NL2 ");break;case 12:h.getLogger().trace("Stop EOF2 ");break;case 15:h.getLogger().info("Node: ",p[C].id),h.addNode(p[C-1].length,p[C].id,p[C].descr,p[C].type);break;case 16:h.getLogger().trace("Icon: ",p[C]),h.decorateNode({icon:p[C]});break;case 17:case 21:h.decorateNode({class:p[C]});break;case 18:h.getLogger().trace("SPACELIST");break;case 19:h.getLogger().trace("Node: ",p[C].id),h.addNode(0,p[C].id,p[C].descr,p[C].type);break;case 20:h.decorateNode({icon:p[C]});break;case 25:h.getLogger().trace("node found ..",p[C-2]),this.$={id:p[C-1],descr:p[C-1],type:h.getType(p[C-2],p[C])};break;case 26:this.$={id:p[C],descr:p[C],type:h.nodeType.DEFAULT};break;case 27:h.getLogger().trace("node found ..",p[C-3]),this.$={id:p[C-3],descr:p[C-1],type:h.getType(p[C-2],p[C])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:w},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:w},{6:f,7:[1,10],9:9,12:11,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},I(i,[2,3]),{1:[2,2]},I(i,[2,4]),I(i,[2,5]),{1:[2,6],6:f,12:21,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},{6:f,9:22,12:11,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},{6:o,7:g,10:23,11:a},I(v,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:t,22:e}),I(v,[2,18]),I(v,[2,19]),I(v,[2,20]),I(v,[2,21]),I(v,[2,23]),I(v,[2,24]),I(v,[2,26],{19:[1,30]}),{20:[1,31]},{6:o,7:g,10:32,11:a},{1:[2,7],6:f,12:21,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},I(n,[2,14],{7:c,11:l}),I(E,[2,8]),I(E,[2,9]),I(E,[2,10]),I(v,[2,15]),I(v,[2,16]),I(v,[2,17]),{20:[1,35]},{21:[1,36]},I(n,[2,13],{7:c,11:l}),I(E,[2,11]),I(E,[2,12]),{21:[1,37]},I(v,[2,25]),I(v,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(d,N){if(N.recoverable)this.trace(d);else{var s=new Error(d);throw s.hash=N,s}},"parseError"),parse:S(function(d){var N=this,s=[0],h=[],u=[null],p=[],A=this.table,C="",R=0,x=0,_=2,U=1,X=p.slice.call(arguments,1),M=Object.create(this.lexer),G={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(G.yy[F]=this.yy[F]);M.setInput(d,G.yy),G.yy.lexer=M,G.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var b=M.yylloc;p.push(b);var Y=M.options&&M.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function k(V){s.length=s.length-2*V,u.length=u.length-V,p.length=p.length-V}S(k,"popStack");function H(){var V;return V=h.pop()||M.lex()||U,typeof V!="number"&&(V instanceof Array&&(h=V,V=h.pop()),V=N.symbols_[V]||V),V}S(H,"lex");for(var P,B,$,K,Q={},J,j,gt,q;;){if(B=s[s.length-1],this.defaultActions[B]?$=this.defaultActions[B]:((P===null||typeof P>"u")&&(P=H()),$=A[B]&&A[B][P]),typeof $>"u"||!$.length||!$[0]){var rt="";q=[];for(J in A[B])this.terminals_[J]&&J>_&&q.push("'"+this.terminals_[J]+"'");M.showPosition?rt="Parse error on line "+(R+1)+`: +import{aH as at,aI as Nt,_ as S,l as z,j as Dt,aj as mt,O as Ot,d as ot,G as At,V as It,B as tt,i as et,W as Ct,X as Rt,Y as xt}from"./md-index-ByjuzIYZ.js";import{c as pt}from"./md-cytoscape.esm-xtxBoH4m.js";var dt={exports:{}},it={exports:{}},nt={exports:{}},ut;function Mt(){return ut||(ut=1,function(I,w){(function(m,y){I.exports=y()})(at,function(){return function(f){var m={};function y(r){if(m[r])return m[r].exports;var t=m[r]={i:r,l:!1,exports:{}};return f[r].call(t.exports,t,t.exports,y),t.l=!0,t.exports}return y.m=f,y.c=m,y.i=function(r){return r},y.d=function(r,t,e){y.o(r,t)||Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:e})},y.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return y.d(t,"a",t),t},y.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},y.p="",y(y.s=26)}([function(f,m,y){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,f.exports=r},function(f,m,y){var r=y(2),t=y(8),e=y(9);function i(g,a,v){r.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=g,this.target=a}i.prototype=Object.create(r.prototype);for(var o in r)i[o]=r[o];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,a){for(var v=this.getOtherEnd(g),n=a.getGraphManager().getRoot();;){if(v.getOwner()==a)return v;if(v.getOwner()==n)break;v=v.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=t.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},f.exports=i},function(f,m,y){function r(t){this.vGraphObject=t}f.exports=r},function(f,m,y){var r=y(2),t=y(10),e=y(13),i=y(0),o=y(16),g=y(4);function a(n,c,l,E){l==null&&E==null&&(E=c),r.call(this,E),n.graphManager!=null&&(n=n.graphManager),this.estimatedSize=t.MIN_VALUE,this.inclusionTreeDepth=t.MAX_VALUE,this.vGraphObject=E,this.edges=[],this.graphManager=n,l!=null&&c!=null?this.rect=new e(c.x,c.y,l.width,l.height):this.rect=new e}a.prototype=Object.create(r.prototype);for(var v in r)a[v]=r[v];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(n){this.rect.width=n},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(n){this.rect.height=n},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(n,c){this.rect.x=n.x,this.rect.y=n.y,this.rect.width=c.width,this.rect.height=c.height},a.prototype.setCenter=function(n,c){this.rect.x=n-this.rect.width/2,this.rect.y=c-this.rect.height/2},a.prototype.setLocation=function(n,c){this.rect.x=n,this.rect.y=c},a.prototype.moveBy=function(n,c){this.rect.x+=n,this.rect.y+=c},a.prototype.getEdgeListToNode=function(n){var c=[],l=this;return l.edges.forEach(function(E){if(E.target==n){if(E.source!=l)throw"Incorrect edge source!";c.push(E)}}),c},a.prototype.getEdgesBetween=function(n){var c=[],l=this;return l.edges.forEach(function(E){if(!(E.source==l||E.target==l))throw"Incorrect edge source and/or target";(E.target==n||E.source==n)&&c.push(E)}),c},a.prototype.getNeighborsList=function(){var n=new Set,c=this;return c.edges.forEach(function(l){if(l.source==c)n.add(l.target);else{if(l.target!=c)throw"Incorrect incidency!";n.add(l.source)}}),n},a.prototype.withChildren=function(){var n=new Set,c,l;if(n.add(this),this.child!=null)for(var E=this.child.getNodes(),T=0;Tc&&(this.rect.x-=(this.labelWidth-c)/2,this.setWidth(this.labelWidth)),this.labelHeight>l&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-l)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-l),this.setHeight(this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==t.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(n){var c=this.rect.x;c>i.WORLD_BOUNDARY?c=i.WORLD_BOUNDARY:c<-i.WORLD_BOUNDARY&&(c=-i.WORLD_BOUNDARY);var l=this.rect.y;l>i.WORLD_BOUNDARY?l=i.WORLD_BOUNDARY:l<-i.WORLD_BOUNDARY&&(l=-i.WORLD_BOUNDARY);var E=new g(c,l),T=n.inverseTransformPoint(E);this.setLocation(T.x,T.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},f.exports=a},function(f,m,y){function r(t,e){t==null&&e==null?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},f.exports=r},function(f,m,y){var r=y(2),t=y(10),e=y(0),i=y(6),o=y(3),g=y(1),a=y(13),v=y(12),n=y(11);function c(E,T,D){r.call(this,D),this.estimatedSize=t.MIN_VALUE,this.margin=e.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=E,T!=null&&T instanceof i?this.graphManager=T:T!=null&&T instanceof Layout&&(this.graphManager=T.graphManager)}c.prototype=Object.create(r.prototype);for(var l in r)c[l]=r[l];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(E,T,D){if(T==null&&D==null){var L=E;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(L)>-1)throw"Node already in graph!";return L.owner=this,this.getNodes().push(L),L}else{var O=E;if(!(this.getNodes().indexOf(T)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(T.owner==D.owner&&T.owner==this))throw"Both owners must be this graph!";return T.owner!=D.owner?null:(O.source=T,O.target=D,O.isInterGraph=!1,this.getEdges().push(O),T.edges.push(O),D!=T&&D.edges.push(O),O)}},c.prototype.remove=function(E){var T=E;if(E instanceof o){if(T==null)throw"Node is null!";if(!(T.owner!=null&&T.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=T.edges.slice(),L,O=D.length,d=0;d-1&&h>-1))throw"Source and/or target doesn't know this edge!";L.source.edges.splice(s,1),L.target!=L.source&&L.target.edges.splice(h,1);var N=L.source.owner.getEdges().indexOf(L);if(N==-1)throw"Not in owner's edge list!";L.source.owner.getEdges().splice(N,1)}},c.prototype.updateLeftTop=function(){for(var E=t.MAX_VALUE,T=t.MAX_VALUE,D,L,O,d=this.getNodes(),N=d.length,s=0;sD&&(E=D),T>L&&(T=L)}return E==t.MAX_VALUE?null:(d[0].getParent().paddingLeft!=null?O=d[0].getParent().paddingLeft:O=this.margin,this.left=T-O,this.top=E-O,new v(this.left,this.top))},c.prototype.updateBounds=function(E){for(var T=t.MAX_VALUE,D=-t.MAX_VALUE,L=t.MAX_VALUE,O=-t.MAX_VALUE,d,N,s,h,u,p=this.nodes,A=p.length,C=0;Cd&&(T=d),Ds&&(L=s),Od&&(T=d),Ds&&(L=s),O=this.nodes.length){var A=0;D.forEach(function(C){C.owner==E&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},f.exports=c},function(f,m,y){var r,t=y(1);function e(i){r=y(5),this.layout=i,this.graphs=[],this.edges=[]}e.prototype.addRoot=function(){var i=this.layout.newGraph(),o=this.layout.newNode(null),g=this.add(i,o);return this.setRootGraph(g),this.rootGraph},e.prototype.add=function(i,o,g,a,v){if(g==null&&a==null&&v==null){if(i==null)throw"Graph is null!";if(o==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(o.child!=null)throw"Already has a child!";return i.parent=o,o.child=i,i}else{v=g,a=o,g=i;var n=a.getOwner(),c=v.getOwner();if(!(n!=null&&n.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(c!=null&&c.getGraphManager()==this))throw"Target not in this graph mgr!";if(n==c)return g.isInterGraph=!1,n.add(g,a,v);if(g.isInterGraph=!0,g.source=a,g.target=v,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},e.prototype.remove=function(i){if(i instanceof r){var o=i;if(o.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(o==this.rootGraph||o.parent!=null&&o.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(o.getEdges());for(var a,v=g.length,n=0;n=i.getRight()?o[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight()):i.getX()<=e.getX()&&i.getRight()>=e.getRight()&&(o[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight())),e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()?o[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()):i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()&&(o[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()));var v=Math.abs((i.getCenterY()-e.getCenterY())/(i.getCenterX()-e.getCenterX()));i.getCenterY()===e.getCenterY()&&i.getCenterX()===e.getCenterX()&&(v=1);var n=v*o[0],c=o[1]/v;o[0]n)return o[0]=g,o[1]=l,o[2]=v,o[3]=p,!1;if(av)return o[0]=c,o[1]=a,o[2]=h,o[3]=n,!1;if(gv?(o[0]=T,o[1]=D,x=!0):(o[0]=E,o[1]=l,x=!0):U===M&&(g>v?(o[0]=c,o[1]=l,x=!0):(o[0]=L,o[1]=D,x=!0)),-X===M?v>g?(o[2]=u,o[3]=p,_=!0):(o[2]=h,o[3]=s,_=!0):X===M&&(v>g?(o[2]=N,o[3]=s,_=!0):(o[2]=A,o[3]=p,_=!0)),x&&_)return!1;if(g>v?a>n?(G=this.getCardinalDirection(U,M,4),F=this.getCardinalDirection(X,M,2)):(G=this.getCardinalDirection(-U,M,3),F=this.getCardinalDirection(-X,M,1)):a>n?(G=this.getCardinalDirection(-U,M,1),F=this.getCardinalDirection(-X,M,3)):(G=this.getCardinalDirection(U,M,2),F=this.getCardinalDirection(X,M,4)),!x)switch(G){case 1:Y=l,b=g+-d/M,o[0]=b,o[1]=Y;break;case 2:b=L,Y=a+O*M,o[0]=b,o[1]=Y;break;case 3:Y=D,b=g+d/M,o[0]=b,o[1]=Y;break;case 4:b=T,Y=a+-O*M,o[0]=b,o[1]=Y;break}if(!_)switch(F){case 1:H=s,k=v+-R/M,o[2]=k,o[3]=H;break;case 2:k=A,H=n+C*M,o[2]=k,o[3]=H;break;case 3:H=p,k=v+R/M,o[2]=k,o[3]=H;break;case 4:k=u,H=n+-C*M,o[2]=k,o[3]=H;break}}return!1},t.getCardinalDirection=function(e,i,o){return e>i?o:1+o%4},t.getIntersection=function(e,i,o,g){if(g==null)return this.getIntersection2(e,i,o);var a=e.x,v=e.y,n=i.x,c=i.y,l=o.x,E=o.y,T=g.x,D=g.y,L=void 0,O=void 0,d=void 0,N=void 0,s=void 0,h=void 0,u=void 0,p=void 0,A=void 0;return d=c-v,s=a-n,u=n*v-a*c,N=D-E,h=l-T,p=T*E-l*D,A=d*h-N*s,A===0?null:(L=(s*p-h*u)/A,O=(N*u-d*p)/A,new r(L,O))},t.angleOfVector=function(e,i,o,g){var a=void 0;return e!==o?(a=Math.atan((g-i)/(o-e)),o0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},f.exports=r},function(f,m,y){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,f.exports=r},function(f,m,y){var r=function(){function a(v,n){for(var c=0;c"u"?"undefined":r(e);return e==null||i!="object"&&i!="function"},f.exports=t},function(f,m,y){function r(l){if(Array.isArray(l)){for(var E=0,T=Array(l.length);E0&&E;){for(d.push(s[0]);d.length>0&&E;){var h=d[0];d.splice(0,1),O.add(h);for(var u=h.getEdges(),L=0;L-1&&s.splice(R,1)}O=new Set,N=new Map}}return l},c.prototype.createDummyNodesForBendpoints=function(l){for(var E=[],T=l.source,D=this.graphManager.calcLowestCommonAncestor(l.source,l.target),L=0;L0){for(var D=this.edgeToDummyNodes.get(T),L=0;L=0&&E.splice(p,1);var A=N.getNeighborsList();A.forEach(function(x){if(T.indexOf(x)<0){var _=D.get(x),U=_-1;U==1&&h.push(x),D.set(x,U)}})}T=T.concat(h),(E.length==1||E.length==2)&&(L=!0,O=E[0])}return O},c.prototype.setGraphManager=function(l){this.graphManager=l},f.exports=c},function(f,m,y){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},f.exports=r},function(f,m,y){var r=y(4);function t(e,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}t.prototype.getWorldOrgX=function(){return this.lworldOrgX},t.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},t.prototype.getWorldOrgY=function(){return this.lworldOrgY},t.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},t.prototype.getWorldExtX=function(){return this.lworldExtX},t.prototype.setWorldExtX=function(e){this.lworldExtX=e},t.prototype.getWorldExtY=function(){return this.lworldExtY},t.prototype.setWorldExtY=function(e){this.lworldExtY=e},t.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},t.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},t.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},t.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},t.prototype.getDeviceExtX=function(){return this.ldeviceExtX},t.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},t.prototype.getDeviceExtY=function(){return this.ldeviceExtY},t.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},t.prototype.transformX=function(e){var i=0,o=this.lworldExtX;return o!=0&&(i=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/o),i},t.prototype.transformY=function(e){var i=0,o=this.lworldExtY;return o!=0&&(i=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/o),i},t.prototype.inverseTransformX=function(e){var i=0,o=this.ldeviceExtX;return o!=0&&(i=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/o),i},t.prototype.inverseTransformY=function(e){var i=0,o=this.ldeviceExtY;return o!=0&&(i=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/o),i},t.prototype.inverseTransformPoint=function(e){var i=new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y));return i},f.exports=t},function(f,m,y){function r(n){if(Array.isArray(n)){for(var c=0,l=Array(n.length);ce.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-e.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT_INCREMENTAL):(n>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*(1-e.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var n=this.getAllEdges(),c,l=0;l0&&arguments[0]!==void 0?arguments[0]:!0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l,E,T,D,L=this.getAllNodes(),O;if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&n&&this.updateGrid(),O=new Set,l=0;ld||O>d)&&(n.gravitationForceX=-this.gravityConstant*T,n.gravitationForceY=-this.gravityConstant*D)):(d=c.getEstimatedSize()*this.compoundGravityRangeFactor,(L>d||O>d)&&(n.gravitationForceX=-this.gravityConstant*T*this.compoundGravityConstant,n.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},a.prototype.isConverged=function(){var n,c=!1;return this.totalIterations>this.maxIterations/3&&(c=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),n=this.totalDisplacement=L.length||d>=L[0].length)){for(var N=0;Na}}]),o}();f.exports=i},function(f,m,y){var r=function(){function i(o,g){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;t(this,i),this.sequence1=o,this.sequence2=g,this.match_score=a,this.mismatch_penalty=v,this.gap_penalty=n,this.iMax=o.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var c=0;c=0;o--){var g=this.listeners[o];g.event===e&&g.callback===i&&this.listeners.splice(o,1)}},t.emit=function(e,i){for(var o=0;og.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,a){for(var v=this.getChild().getNodes(),n,c=0;c0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var h=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(p){return h.has(p)});this.graphManager.setAllNodesToApplyGravitation(u),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},d.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%v.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),h=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(h),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var u=!this.isTreeGrowing&&!this.isGrowthFinished,p=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(u,p),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},d.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),h={},u=0;u1){var x;for(x=0;xp&&(p=Math.floor(R.y)),C=Math.floor(R.x+a.DEFAULT_COMPONENT_SEPERATION)}this.transform(new l(n.WORLD_CENTER_X-R.x/2,n.WORLD_CENTER_Y-R.y/2))},d.radialLayout=function(s,h,u){var p=Math.max(this.maxDiagonalInTree(s),a.DEFAULT_RADIAL_SEPARATION);d.branchRadialLayout(h,null,0,359,0,p);var A=L.calculateBounds(s),C=new O;C.setDeviceOrgX(A.getMinX()),C.setDeviceOrgY(A.getMinY()),C.setWorldOrgX(u.x),C.setWorldOrgY(u.y);for(var R=0;R1;){var H=k[0];k.splice(0,1);var P=M.indexOf(H);P>=0&&M.splice(P,1),b--,G--}h!=null?Y=(M.indexOf(k[0])+1)%b:Y=0;for(var B=Math.abs(p-u)/G,$=Y;F!=G;$=++$%b){var K=M[$].getOtherEnd(s);if(K!=h){var Q=(u+F*B)%360,J=(Q+B)%360;d.branchRadialLayout(K,s,Q,J,A+C,C),F++}}},d.maxDiagonalInTree=function(s){for(var h=T.MIN_VALUE,u=0;uh&&(h=A)}return h},d.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},d.prototype.groupZeroDegreeMembers=function(){var s=this,h={};this.memberGroups={},this.idToDummyNode={};for(var u=[],p=this.graphManager.getAllNodes(),A=0;A"u"&&(h[x]=[]),h[x]=h[x].concat(C)}Object.keys(h).forEach(function(_){if(h[_].length>1){var U="DummyCompound_"+_;s.memberGroups[U]=h[_];var X=h[_][0].getParent(),M=new o(s.graphManager);M.id=U,M.paddingLeft=X.paddingLeft||0,M.paddingRight=X.paddingRight||0,M.paddingBottom=X.paddingBottom||0,M.paddingTop=X.paddingTop||0,s.idToDummyNode[U]=M;var G=s.getGraphManager().add(s.newGraph(),M),F=X.getChild();F.add(M);for(var b=0;b=0;s--){var h=this.compoundOrder[s],u=h.id,p=h.paddingLeft,A=h.paddingTop;this.adjustLocations(this.tiledMemberPack[u],h.rect.x,h.rect.y,p,A)}},d.prototype.repopulateZeroDegreeMembers=function(){var s=this,h=this.tiledZeroDegreePack;Object.keys(h).forEach(function(u){var p=s.idToDummyNode[u],A=p.paddingLeft,C=p.paddingTop;s.adjustLocations(h[u],p.rect.x,p.rect.y,A,C)})},d.prototype.getToBeTiled=function(s){var h=s.id;if(this.toBeTiled[h]!=null)return this.toBeTiled[h];var u=s.getChild();if(u==null)return this.toBeTiled[h]=!1,!1;for(var p=u.getNodes(),A=0;A0)return this.toBeTiled[h]=!1,!1;if(C.getChild()==null){this.toBeTiled[C.id]=!1;continue}if(!this.getToBeTiled(C))return this.toBeTiled[h]=!1,!1}return this.toBeTiled[h]=!0,!0},d.prototype.getNodeDegree=function(s){s.id;for(var h=s.getEdges(),u=0,p=0;p_&&(_=X.rect.height)}u+=_+s.verticalPadding}},d.prototype.tileCompoundMembers=function(s,h){var u=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(p){var A=h[p];u.tiledMemberPack[p]=u.tileNodes(s[p],A.paddingLeft+A.paddingRight),A.rect.width=u.tiledMemberPack[p].width,A.rect.height=u.tiledMemberPack[p].height})},d.prototype.tileNodes=function(s,h){var u=a.TILING_PADDING_VERTICAL,p=a.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:h,verticalPadding:u,horizontalPadding:p};s.sort(function(x,_){return x.rect.width*x.rect.height>_.rect.width*_.rect.height?-1:x.rect.width*x.rect.height<_.rect.width*_.rect.height?1:0});for(var C=0;C0&&(R+=s.horizontalPadding),s.rowWidth[u]=R,s.width0&&(x+=s.verticalPadding);var _=0;x>s.rowHeight[u]&&(_=s.rowHeight[u],s.rowHeight[u]=x,_=s.rowHeight[u]-_),s.height+=_,s.rows[u].push(h)},d.prototype.getShortestRowIndex=function(s){for(var h=-1,u=Number.MAX_VALUE,p=0;pu&&(h=p,u=s.rowWidth[p]);return h},d.prototype.canAddHorizontal=function(s,h,u){var p=this.getShortestRowIndex(s);if(p<0)return!0;var A=s.rowWidth[p];if(A+s.horizontalPadding+h<=s.width)return!0;var C=0;s.rowHeight[p]0&&(C=u+s.verticalPadding-s.rowHeight[p]);var R;s.width-A>=h+s.horizontalPadding?R=(s.height+C)/(A+h+s.horizontalPadding):R=(s.height+C)/s.width,C=u+s.verticalPadding;var x;return s.widthC&&h!=u){p.splice(-1,1),s.rows[u].push(A),s.rowWidth[h]=s.rowWidth[h]-C,s.rowWidth[u]=s.rowWidth[u]+C,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var R=Number.MIN_VALUE,x=0;xR&&(R=p[x].height);h>0&&(R+=s.verticalPadding);var _=s.rowHeight[h]+s.rowHeight[u];s.rowHeight[h]=R,s.rowHeight[u]0)for(var F=A;F<=C;F++)G[0]+=this.grid[F][R-1].length+this.grid[F][R].length-1;if(C0)for(var F=R;F<=x;F++)G[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var b=T.MAX_VALUE,Y,k,H=0;H0){var x;x=O.getGraphManager().add(O.newGraph(),u),this.processChildrenList(x,h,O)}}},l.prototype.stop=function(){return this.stopped=!0,this};var T=function(L){L("layout","cose-bilkent",l)};typeof cytoscape<"u"&&T(cytoscape),m.exports=T}])})})(dt);var St=dt.exports;const Gt=Nt(St);var st=function(){var I=S(function(O,d,N,s){for(N=N||{},s=O.length;s--;N[O[s]]=d);return N},"o"),w=[1,4],f=[1,13],m=[1,12],y=[1,15],r=[1,16],t=[1,20],e=[1,19],i=[6,7,8],o=[1,26],g=[1,24],a=[1,25],v=[6,7,11],n=[1,6,13,15,16,19,22],c=[1,33],l=[1,34],E=[1,6,7,11,13,15,16,19,22],T={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:S(function(d,N,s,h,u,p,A){var C=p.length-1;switch(u){case 6:case 7:return h;case 8:h.getLogger().trace("Stop NL ");break;case 9:h.getLogger().trace("Stop EOF ");break;case 11:h.getLogger().trace("Stop NL2 ");break;case 12:h.getLogger().trace("Stop EOF2 ");break;case 15:h.getLogger().info("Node: ",p[C].id),h.addNode(p[C-1].length,p[C].id,p[C].descr,p[C].type);break;case 16:h.getLogger().trace("Icon: ",p[C]),h.decorateNode({icon:p[C]});break;case 17:case 21:h.decorateNode({class:p[C]});break;case 18:h.getLogger().trace("SPACELIST");break;case 19:h.getLogger().trace("Node: ",p[C].id),h.addNode(0,p[C].id,p[C].descr,p[C].type);break;case 20:h.decorateNode({icon:p[C]});break;case 25:h.getLogger().trace("node found ..",p[C-2]),this.$={id:p[C-1],descr:p[C-1],type:h.getType(p[C-2],p[C])};break;case 26:this.$={id:p[C],descr:p[C],type:h.nodeType.DEFAULT};break;case 27:h.getLogger().trace("node found ..",p[C-3]),this.$={id:p[C-3],descr:p[C-1],type:h.getType(p[C-2],p[C])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:w},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:w},{6:f,7:[1,10],9:9,12:11,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},I(i,[2,3]),{1:[2,2]},I(i,[2,4]),I(i,[2,5]),{1:[2,6],6:f,12:21,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},{6:f,9:22,12:11,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},{6:o,7:g,10:23,11:a},I(v,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:t,22:e}),I(v,[2,18]),I(v,[2,19]),I(v,[2,20]),I(v,[2,21]),I(v,[2,23]),I(v,[2,24]),I(v,[2,26],{19:[1,30]}),{20:[1,31]},{6:o,7:g,10:32,11:a},{1:[2,7],6:f,12:21,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},I(n,[2,14],{7:c,11:l}),I(E,[2,8]),I(E,[2,9]),I(E,[2,10]),I(v,[2,15]),I(v,[2,16]),I(v,[2,17]),{20:[1,35]},{21:[1,36]},I(n,[2,13],{7:c,11:l}),I(E,[2,11]),I(E,[2,12]),{21:[1,37]},I(v,[2,25]),I(v,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(d,N){if(N.recoverable)this.trace(d);else{var s=new Error(d);throw s.hash=N,s}},"parseError"),parse:S(function(d){var N=this,s=[0],h=[],u=[null],p=[],A=this.table,C="",R=0,x=0,_=2,U=1,X=p.slice.call(arguments,1),M=Object.create(this.lexer),G={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(G.yy[F]=this.yy[F]);M.setInput(d,G.yy),G.yy.lexer=M,G.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var b=M.yylloc;p.push(b);var Y=M.options&&M.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function k(V){s.length=s.length-2*V,u.length=u.length-V,p.length=p.length-V}S(k,"popStack");function H(){var V;return V=h.pop()||M.lex()||U,typeof V!="number"&&(V instanceof Array&&(h=V,V=h.pop()),V=N.symbols_[V]||V),V}S(H,"lex");for(var P,B,$,K,Q={},J,j,gt,q;;){if(B=s[s.length-1],this.defaultActions[B]?$=this.defaultActions[B]:((P===null||typeof P>"u")&&(P=H()),$=A[B]&&A[B][P]),typeof $>"u"||!$.length||!$[0]){var rt="";q=[];for(J in A[B])this.terminals_[J]&&J>_&&q.push("'"+this.terminals_[J]+"'");M.showPosition?rt="Parse error on line "+(R+1)+`: `+M.showPosition()+` Expecting `+q.join(", ")+", got '"+(this.terminals_[P]||P)+"'":rt="Parse error on line "+(R+1)+": Unexpected "+(P==U?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(rt,{text:M.match,token:this.terminals_[P]||P,line:M.yylineno,loc:b,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+P);switch($[0]){case 1:s.push(P),u.push(M.yytext),p.push(M.yylloc),s.push($[1]),P=null,x=M.yyleng,C=M.yytext,R=M.yylineno,b=M.yylloc;break;case 2:if(j=this.productions_[$[1]][1],Q.$=u[u.length-j],Q._$={first_line:p[p.length-(j||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(j||1)].first_column,last_column:p[p.length-1].last_column},Y&&(Q._$.range=[p[p.length-(j||1)].range[0],p[p.length-1].range[1]]),K=this.performAction.apply(Q,[C,x,R,G.yy,$[1],u,p].concat(X)),typeof K<"u")return K;j&&(s=s.slice(0,-1*j*2),u=u.slice(0,-1*j),p=p.slice(0,-1*j)),s.push(this.productions_[$[1]][0]),u.push(Q.$),p.push(Q._$),gt=A[s[s.length-2]][s[s.length-1]],s.push(gt);break;case 3:return!0}}return!0},"parse")},D=function(){var O={EOF:1,parseError:S(function(N,s){if(this.yy.parser)this.yy.parser.parseError(N,s);else throw new Error(N)},"parseError"),setInput:S(function(d,N){return this.yy=N||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:S(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var N=d.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:S(function(d){var N=d.length,s=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===h.length?this.yylloc.first_column:0)+h[h.length-s.length].length-s[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-N]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(d){this.unput(this.match.slice(d))},"less"),pastInput:S(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var d=this.pastInput(),N=new Array(d.length+1).join("-");return d+this.upcomingInput()+` diff --git a/static/js/md-pieDiagram-YF2LJOPJ-Bc7-xj2K.js b/static/js/md-pieDiagram-YF2LJOPJ-Dl_wwVwL.js similarity index 93% rename from static/js/md-pieDiagram-YF2LJOPJ-Bc7-xj2K.js rename to static/js/md-pieDiagram-YF2LJOPJ-Dl_wwVwL.js index a5f0b27..644a8ab 100644 --- a/static/js/md-pieDiagram-YF2LJOPJ-Bc7-xj2K.js +++ b/static/js/md-pieDiagram-YF2LJOPJ-Dl_wwVwL.js @@ -1,4 +1,4 @@ -import{p as U}from"./md-chunk-TMUBEWPD-D-4gDNXh.js";import{aa as y,a2 as G,aG as j,B as q,p as Z,q as H,s as J,g as K,c as Q,b as X,_ as p,l as z,v as Y,d as tt,C as et,G as at,O as rt,k as nt}from"./md-index-BhYxDPe5.js";import{p as it}from"./md-gitGraph-YCYPL57B-BAO2bH4y.js";import{d as P}from"./md-arc-Drcnh5x3.js";import{o as st}from"./md-ordinal-CxVaQH2l.js";import"./md-_baseUniq-Cjg3wXP1.js";import"./md-_basePickBy-CdF26LR_.js";import"./md-clone-CtDbzCPt.js";import"./md-init-Gi6I4Gst.js";function ot(t,a){return at?1:a>=t?0:NaN}function lt(t){return t}function ct(){var t=lt,a=ot,m=null,o=y(0),g=y(G),x=y(0);function i(e){var r,l=(e=j(e)).length,c,A,h=0,u=new Array(l),n=new Array(l),v=+o.apply(this,arguments),w=Math.min(G,Math.max(-G,g.apply(this,arguments)-v)),f,T=Math.min(Math.abs(w)/l,x.apply(this,arguments)),$=T*(w<0?-1:1),d;for(r=0;r0&&(h+=d);for(a!=null?u.sort(function(S,C){return a(n[S],n[C])}):m!=null&&u.sort(function(S,C){return m(e[S],e[C])}),r=0,A=h?(w-l*$)/h:0;r0?d*A:0)+$,n[c]={data:e[c],index:r,value:d,startAngle:v,endAngle:f,padAngle:T};return n}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:y(+e),i):t},i.sortValues=function(e){return arguments.length?(a=e,m=null,i):a},i.sort=function(e){return arguments.length?(m=e,a=null,i):m},i.startAngle=function(e){return arguments.length?(o=typeof e=="function"?e:y(+e),i):o},i.endAngle=function(e){return arguments.length?(g=typeof e=="function"?e:y(+e),i):g},i.padAngle=function(e){return arguments.length?(x=typeof e=="function"?e:y(+e),i):x},i}var R=q.pie,F={sections:new Map,showData:!1,config:R},b=F.sections,O=F.showData,ut=structuredClone(R),pt=p(()=>structuredClone(ut),"getConfig"),gt=p(()=>{b=new Map,O=F.showData,Y()},"clear"),dt=p(({label:t,value:a})=>{b.has(t)||(b.set(t,a),z.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),ft=p(()=>b,"getSections"),mt=p(t=>{O=t},"setShowData"),ht=p(()=>O,"getShowData"),I={getConfig:pt,clear:gt,setDiagramTitle:Z,getDiagramTitle:H,setAccTitle:J,getAccTitle:K,setAccDescription:Q,getAccDescription:X,addSection:dt,getSections:ft,setShowData:mt,getShowData:ht},vt=p((t,a)=>{U(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),St={parse:p(async t=>{const a=await it("pie",t);z.debug(a),vt(a,I)},"parse")},yt=p(t=>` +import{p as U}from"./md-chunk-TMUBEWPD-Dgrus0aV.js";import{aa as y,a2 as G,aG as j,B as q,p as Z,q as H,s as J,g as K,c as Q,b as X,_ as p,l as z,v as Y,d as tt,C as et,G as at,O as rt,k as nt}from"./md-index-ByjuzIYZ.js";import{p as it}from"./md-gitGraph-YCYPL57B-Cg_Niwrz.js";import{d as P}from"./md-arc-C7OGNnly.js";import{o as st}from"./md-ordinal-CxVaQH2l.js";import"./md-_baseUniq-DZXHEAoF.js";import"./md-_basePickBy-C4aggLA-.js";import"./md-clone-CEEsdKQ5.js";import"./md-init-Gi6I4Gst.js";function ot(t,a){return at?1:a>=t?0:NaN}function lt(t){return t}function ct(){var t=lt,a=ot,m=null,o=y(0),g=y(G),x=y(0);function i(e){var r,l=(e=j(e)).length,c,A,h=0,u=new Array(l),n=new Array(l),v=+o.apply(this,arguments),w=Math.min(G,Math.max(-G,g.apply(this,arguments)-v)),f,T=Math.min(Math.abs(w)/l,x.apply(this,arguments)),$=T*(w<0?-1:1),d;for(r=0;r0&&(h+=d);for(a!=null?u.sort(function(S,C){return a(n[S],n[C])}):m!=null&&u.sort(function(S,C){return m(e[S],e[C])}),r=0,A=h?(w-l*$)/h:0;r0?d*A:0)+$,n[c]={data:e[c],index:r,value:d,startAngle:v,endAngle:f,padAngle:T};return n}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:y(+e),i):t},i.sortValues=function(e){return arguments.length?(a=e,m=null,i):a},i.sort=function(e){return arguments.length?(m=e,a=null,i):m},i.startAngle=function(e){return arguments.length?(o=typeof e=="function"?e:y(+e),i):o},i.endAngle=function(e){return arguments.length?(g=typeof e=="function"?e:y(+e),i):g},i.padAngle=function(e){return arguments.length?(x=typeof e=="function"?e:y(+e),i):x},i}var R=q.pie,F={sections:new Map,showData:!1,config:R},b=F.sections,O=F.showData,ut=structuredClone(R),pt=p(()=>structuredClone(ut),"getConfig"),gt=p(()=>{b=new Map,O=F.showData,Y()},"clear"),dt=p(({label:t,value:a})=>{b.has(t)||(b.set(t,a),z.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),ft=p(()=>b,"getSections"),mt=p(t=>{O=t},"setShowData"),ht=p(()=>O,"getShowData"),I={getConfig:pt,clear:gt,setDiagramTitle:Z,getDiagramTitle:H,setAccTitle:J,getAccTitle:K,setAccDescription:Q,getAccDescription:X,addSection:dt,getSections:ft,setShowData:mt,getShowData:ht},vt=p((t,a)=>{U(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),St={parse:p(async t=>{const a=await it("pie",t);z.debug(a),vt(a,I)},"parse")},yt=p(t=>` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; diff --git a/static/js/md-quadrantDiagram-OS5C2QUG-CX2urZQX.js b/static/js/md-quadrantDiagram-OS5C2QUG-DLle--aO.js similarity index 99% rename from static/js/md-quadrantDiagram-OS5C2QUG-CX2urZQX.js rename to static/js/md-quadrantDiagram-OS5C2QUG-DLle--aO.js index fe96962..db9564b 100644 --- a/static/js/md-quadrantDiagram-OS5C2QUG-CX2urZQX.js +++ b/static/js/md-quadrantDiagram-OS5C2QUG-DLle--aO.js @@ -1,4 +1,4 @@ -import{_ as o,I as _e,B as D,l as At,d as wt,i as Ae,q as ie,s as ke,g as Fe,p as Pe,b as ve,c as Ce,v as Le,j as zt,k as Ee}from"./md-index-BhYxDPe5.js";import{l as ee}from"./md-linear-Co0c8OqW.js";import"./md-init-Gi6I4Gst.js";var Vt=function(){var t=o(function(j,r,l,g){for(l=l||{},g=j.length;g--;l[j[g]]=r);return l},"o"),n=[1,3],u=[1,4],c=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],A=[2,36],d=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],x=[1,41],O=[1,14],Y=[1,23],G=[1,18],yt=[1,19],Tt=[1,20],dt=[1,21],Ft=[1,22],ut=[1,24],xt=[1,25],ft=[1,26],gt=[1,27],i=[1,28],Bt=[1,29],W=[1,32],U=[1,33],k=[1,34],F=[1,39],P=[1,40],v=[1,42],C=[1,44],H=[1,62],X=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Rt=[1,65],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],I=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],$=[1,91],tt=[1,92],et=[1,99],it=[1,93],at=[1,96],nt=[1,94],st=[1,95],rt=[1,97],ot=[1,98],Pt=[1,102],Kt=[10,55,56,57],R=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],vt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,g,f,_,e,pt){var s=e.length-1;switch(_){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],f.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:f.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:f.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:f.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:f.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:f.setXAxisLeftText(e[s-2]),f.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",f.setXAxisLeftText(e[s-1]);break;case 53:f.setXAxisLeftText(e[s]);break;case 54:f.setYAxisBottomText(e[s-2]),f.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",f.setYAxisBottomText(e[s-1]);break;case 56:f.setYAxisBottomText(e[s]);break;case 57:f.setQuadrant1Text(e[s]);break;case 58:f.setQuadrant2Text(e[s]);break;case 59:f.setQuadrant3Text(e[s]);break;case 60:f.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:u,55:c,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:u,55:c,56:h,57:p},{18:n,26:9,27:2,28:u,55:c,56:h,57:p},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(a,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(y,[2,34]),{27:45,55:c,56:h,57:p},t(a,[2,37]),t(a,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(a,[2,45]),t(a,[2,46]),{18:[1,50]},{4:d,5:T,10:q,12:m,13:b,14:x,43:51,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:52,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:53,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:54,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:55,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:56,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:v,67:C},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:64,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,21:63},t(a,[2,53],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,77],63:k,64:F,65:P,66:v,67:C}),t(a,[2,56],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,78],63:k,64:F,65:P,66:v,67:C}),t(a,[2,57],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,58],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,59],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,60],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,18:[1,81]},t(I,[2,23]),t(I,[2,1]),t(I,[2,2]),t(I,[2,3]),t(I,[2,4]),t(I,[2,5]),t(I,[2,6]),t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12]),t(a,[2,52],{58:31,43:83,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,55],{58:31,43:84,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),{46:[1,85]},{45:[1,86]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:88,23:87},t(I,[2,24]),t(a,[2,51],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,54],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,47],{22:88,16:89,23:100,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,101]},t(a,[2,29],{10:Pt}),t(Kt,[2,27],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(R,[2,25]),t(R,[2,13]),t(R,[2,14]),t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),t(R,[2,19]),t(R,[2,20]),t(R,[2,21]),t(R,[2,22]),t(a,[2,49],{10:Pt}),t(a,[2,48],{22:88,16:89,23:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:105},t(R,[2,26]),t(a,[2,50],{10:Pt}),t(Kt,[2,28],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=l,g}},"parseError"),parse:o(function(r){var l=this,g=[0],f=[],_=[null],e=[],pt=this.table,s="",mt=0,Zt=0,qe=2,Jt=1,me=e.slice.call(arguments,1),E=Object.create(this.lexer),K={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(K.yy[Ct]=this.yy[Ct]);E.setInput(r,K.yy),K.yy.lexer=E,K.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Lt=E.yylloc;e.push(Lt);var be=E.options&&E.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(B){g.length=g.length-2*B,_.length=_.length-B,e.length=e.length-B}o(Se,"popStack");function $t(){var B;return B=f.pop()||E.lex()||Jt,typeof B!="number"&&(B instanceof Array&&(f=B,B=f.pop()),B=l.symbols_[B]||B),B}o($t,"lex");for(var w,Z,N,Et,lt={},bt,M,te,St;;){if(Z=g[g.length-1],this.defaultActions[Z]?N=this.defaultActions[Z]:((w===null||typeof w>"u")&&(w=$t()),N=pt[Z]&&pt[Z][w]),typeof N>"u"||!N.length||!N[0]){var Dt="";St=[];for(bt in pt[Z])this.terminals_[bt]&&bt>qe&&St.push("'"+this.terminals_[bt]+"'");E.showPosition?Dt="Parse error on line "+(mt+1)+`: +import{_ as o,I as _e,B as D,l as At,d as wt,i as Ae,q as ie,s as ke,g as Fe,p as Pe,b as ve,c as Ce,v as Le,j as zt,k as Ee}from"./md-index-ByjuzIYZ.js";import{l as ee}from"./md-linear-D0BfzCsi.js";import"./md-init-Gi6I4Gst.js";var Vt=function(){var t=o(function(j,r,l,g){for(l=l||{},g=j.length;g--;l[j[g]]=r);return l},"o"),n=[1,3],u=[1,4],c=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],A=[2,36],d=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],x=[1,41],O=[1,14],Y=[1,23],G=[1,18],yt=[1,19],Tt=[1,20],dt=[1,21],Ft=[1,22],ut=[1,24],xt=[1,25],ft=[1,26],gt=[1,27],i=[1,28],Bt=[1,29],W=[1,32],U=[1,33],k=[1,34],F=[1,39],P=[1,40],v=[1,42],C=[1,44],H=[1,62],X=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Rt=[1,65],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],I=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],$=[1,91],tt=[1,92],et=[1,99],it=[1,93],at=[1,96],nt=[1,94],st=[1,95],rt=[1,97],ot=[1,98],Pt=[1,102],Kt=[10,55,56,57],R=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],vt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,g,f,_,e,pt){var s=e.length-1;switch(_){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],f.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:f.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:f.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:f.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:f.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:f.setXAxisLeftText(e[s-2]),f.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",f.setXAxisLeftText(e[s-1]);break;case 53:f.setXAxisLeftText(e[s]);break;case 54:f.setYAxisBottomText(e[s-2]),f.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",f.setYAxisBottomText(e[s-1]);break;case 56:f.setYAxisBottomText(e[s]);break;case 57:f.setQuadrant1Text(e[s]);break;case 58:f.setQuadrant2Text(e[s]);break;case 59:f.setQuadrant3Text(e[s]);break;case 60:f.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:u,55:c,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:u,55:c,56:h,57:p},{18:n,26:9,27:2,28:u,55:c,56:h,57:p},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(a,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(y,[2,34]),{27:45,55:c,56:h,57:p},t(a,[2,37]),t(a,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(a,[2,45]),t(a,[2,46]),{18:[1,50]},{4:d,5:T,10:q,12:m,13:b,14:x,43:51,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:52,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:53,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:54,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:55,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:56,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:v,67:C},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:64,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,21:63},t(a,[2,53],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,77],63:k,64:F,65:P,66:v,67:C}),t(a,[2,56],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,78],63:k,64:F,65:P,66:v,67:C}),t(a,[2,57],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,58],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,59],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,60],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,18:[1,81]},t(I,[2,23]),t(I,[2,1]),t(I,[2,2]),t(I,[2,3]),t(I,[2,4]),t(I,[2,5]),t(I,[2,6]),t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12]),t(a,[2,52],{58:31,43:83,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,55],{58:31,43:84,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),{46:[1,85]},{45:[1,86]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:88,23:87},t(I,[2,24]),t(a,[2,51],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,54],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,47],{22:88,16:89,23:100,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,101]},t(a,[2,29],{10:Pt}),t(Kt,[2,27],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(R,[2,25]),t(R,[2,13]),t(R,[2,14]),t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),t(R,[2,19]),t(R,[2,20]),t(R,[2,21]),t(R,[2,22]),t(a,[2,49],{10:Pt}),t(a,[2,48],{22:88,16:89,23:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:105},t(R,[2,26]),t(a,[2,50],{10:Pt}),t(Kt,[2,28],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=l,g}},"parseError"),parse:o(function(r){var l=this,g=[0],f=[],_=[null],e=[],pt=this.table,s="",mt=0,Zt=0,qe=2,Jt=1,me=e.slice.call(arguments,1),E=Object.create(this.lexer),K={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(K.yy[Ct]=this.yy[Ct]);E.setInput(r,K.yy),K.yy.lexer=E,K.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Lt=E.yylloc;e.push(Lt);var be=E.options&&E.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(B){g.length=g.length-2*B,_.length=_.length-B,e.length=e.length-B}o(Se,"popStack");function $t(){var B;return B=f.pop()||E.lex()||Jt,typeof B!="number"&&(B instanceof Array&&(f=B,B=f.pop()),B=l.symbols_[B]||B),B}o($t,"lex");for(var w,Z,N,Et,lt={},bt,M,te,St;;){if(Z=g[g.length-1],this.defaultActions[Z]?N=this.defaultActions[Z]:((w===null||typeof w>"u")&&(w=$t()),N=pt[Z]&&pt[Z][w]),typeof N>"u"||!N.length||!N[0]){var Dt="";St=[];for(bt in pt[Z])this.terminals_[bt]&&bt>qe&&St.push("'"+this.terminals_[bt]+"'");E.showPosition?Dt="Parse error on line "+(mt+1)+`: `+E.showPosition()+` Expecting `+St.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Dt="Parse error on line "+(mt+1)+": Unexpected "+(w==Jt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Dt,{text:E.match,token:this.terminals_[w]||w,line:E.yylineno,loc:Lt,expected:St})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+w);switch(N[0]){case 1:g.push(w),_.push(E.yytext),e.push(E.yylloc),g.push(N[1]),w=null,Zt=E.yyleng,s=E.yytext,mt=E.yylineno,Lt=E.yylloc;break;case 2:if(M=this.productions_[N[1]][1],lt.$=_[_.length-M],lt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},be&&(lt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),Et=this.performAction.apply(lt,[s,Zt,mt,K.yy,N[1],_,e].concat(me)),typeof Et<"u")return Et;M&&(g=g.slice(0,-1*M*2),_=_.slice(0,-1*M),e=e.slice(0,-1*M)),g.push(this.productions_[N[1]][0]),_.push(lt.$),e.push(lt._$),te=pt[g[g.length-2]][g[g.length-1]],g.push(te);break;case 3:return!0}}return!0},"parse")},Te=function(){var j={EOF:1,parseError:o(function(l,g){if(this.yy.parser)this.yy.parser.parseError(l,g);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/static/js/md-requirementDiagram-MIRIMTAZ-0y-Z-0BS.js b/static/js/md-requirementDiagram-MIRIMTAZ-D404uIf2.js similarity index 99% rename from static/js/md-requirementDiagram-MIRIMTAZ-0y-Z-0BS.js rename to static/js/md-requirementDiagram-MIRIMTAZ-D404uIf2.js index b3c4e21..280a09b 100644 --- a/static/js/md-requirementDiagram-MIRIMTAZ-0y-Z-0BS.js +++ b/static/js/md-requirementDiagram-MIRIMTAZ-D404uIf2.js @@ -1,4 +1,4 @@ -import{_ as r,d as ve,s as Fe,g as De,c as Pe,b as Ye,l as xe,v as Ue,j as ce,k as Be,K as Qe,e as Te}from"./md-index-BhYxDPe5.js";import{G as He}from"./md-graph--GW7E-WG.js";import{l as We}from"./md-layout-f1dVBnkM.js";import"./md-_baseUniq-Cjg3wXP1.js";import"./md-_basePickBy-CdF26LR_.js";var he=function(){var e=r(function($,i,a,l){for(a=a||{},l=$.length;l--;a[$[l]]=i);return a},"o"),t=[1,3],c=[1,4],d=[1,5],u=[1,6],p=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],y=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],I=[1,25],b=[1,26],w=[1,27],q=[1,20],v=[1,28],A=[1,29],F=[62,63],pe=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],fe=[1,47],ye=[1,48],_e=[1,49],ge=[1,50],Ee=[1,51],Re=[1,52],me=[1,53],O=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],j=[1,69],X=[1,70],J=[1,67],Z=[1,68],S=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ne={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:r(function(i,a,l,n,f,s,K){var E=s.length-1;switch(f){case 4:this.$=s[E].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[E].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[E-3],s[E-4]);break;case 14:n.setNewReqId(s[E-2]);break;case 15:n.setNewReqText(s[E-2]);break;case 16:n.setNewReqRisk(s[E-2]);break;case 17:n.setNewReqVerifyMethod(s[E-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[E-3]);break;case 34:n.setNewElementType(s[E-2]);break;case 35:n.setNewElementDocRef(s[E-2]);break;case 38:n.addRelationship(s[E-2],s[E],s[E-4]);break;case 39:n.addRelationship(s[E-2],s[E-4],s[E]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},"anonymous"),table:[{3:1,4:2,6:t,9:c,11:d,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:c,11:d,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(p,[2,6]),{3:12,4:2,6:t,9:c,11:d,13:u},{1:[2,2]},{4:17,5:y,7:13,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},e(p,[2,4]),e(p,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:y,7:31,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:32,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:33,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:34,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:35,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(pe,[2,49]),e(pe,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{52:54,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:66,47:J,49:Z},{23:71,62:v,63:A},{23:72,62:v,63:A},e(S,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(S,[2,19]),e(S,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:X,46:80,47:J,49:Z},e(S,[2,37]),e(S,[2,38]),e(S,[2,39]),{23:81,62:v,63:A},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(S,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(S,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:110,47:J,49:Z},{5:j,30:X,46:111,47:J,49:Z},e(S,[2,14]),e(S,[2,15]),e(S,[2,16]),e(S,[2,17]),e(S,[2,34]),e(S,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:r(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:r(function(i){var a=this,l=[0],n=[],f=[null],s=[],K=this.table,E="",te=0,Ie=0,Le=2,be=1,Oe=s.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);m.setInput(i,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var ae=m.yylloc;s.push(ae);var Ce=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(N){l.length=l.length-2*N,f.length=f.length-N,s.length=s.length-N}r(Me,"popStack");function Se(){var N;return N=n.pop()||m.lex()||be,typeof N!="number"&&(N instanceof Array&&(n=N,N=n.pop()),N=a.symbols_[N]||N),N}r(Se,"lex");for(var k,M,x,le,H={},ie,V,ke,re;;){if(M=l[l.length-1],this.defaultActions[M]?x=this.defaultActions[M]:((k===null||typeof k>"u")&&(k=Se()),x=K[M]&&K[M][k]),typeof x>"u"||!x.length||!x[0]){var oe="";re=[];for(ie in K[M])this.terminals_[ie]&&ie>Le&&re.push("'"+this.terminals_[ie]+"'");m.showPosition?oe="Parse error on line "+(te+1)+`: +import{_ as r,d as ve,s as Fe,g as De,c as Pe,b as Ye,l as xe,v as Ue,j as ce,k as Be,K as Qe,e as Te}from"./md-index-ByjuzIYZ.js";import{G as He}from"./md-graph-C_Pg_EOJ.js";import{l as We}from"./md-layout-B18tK69Y.js";import"./md-_baseUniq-DZXHEAoF.js";import"./md-_basePickBy-C4aggLA-.js";var he=function(){var e=r(function($,i,a,l){for(a=a||{},l=$.length;l--;a[$[l]]=i);return a},"o"),t=[1,3],c=[1,4],d=[1,5],u=[1,6],p=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],y=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],I=[1,25],b=[1,26],w=[1,27],q=[1,20],v=[1,28],A=[1,29],F=[62,63],pe=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],fe=[1,47],ye=[1,48],_e=[1,49],ge=[1,50],Ee=[1,51],Re=[1,52],me=[1,53],O=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],j=[1,69],X=[1,70],J=[1,67],Z=[1,68],S=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ne={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:r(function(i,a,l,n,f,s,K){var E=s.length-1;switch(f){case 4:this.$=s[E].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[E].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[E-3],s[E-4]);break;case 14:n.setNewReqId(s[E-2]);break;case 15:n.setNewReqText(s[E-2]);break;case 16:n.setNewReqRisk(s[E-2]);break;case 17:n.setNewReqVerifyMethod(s[E-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[E-3]);break;case 34:n.setNewElementType(s[E-2]);break;case 35:n.setNewElementDocRef(s[E-2]);break;case 38:n.addRelationship(s[E-2],s[E],s[E-4]);break;case 39:n.addRelationship(s[E-2],s[E-4],s[E]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},"anonymous"),table:[{3:1,4:2,6:t,9:c,11:d,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:c,11:d,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(p,[2,6]),{3:12,4:2,6:t,9:c,11:d,13:u},{1:[2,2]},{4:17,5:y,7:13,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},e(p,[2,4]),e(p,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:y,7:31,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:32,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:33,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:34,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:35,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(pe,[2,49]),e(pe,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{52:54,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:66,47:J,49:Z},{23:71,62:v,63:A},{23:72,62:v,63:A},e(S,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(S,[2,19]),e(S,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:X,46:80,47:J,49:Z},e(S,[2,37]),e(S,[2,38]),e(S,[2,39]),{23:81,62:v,63:A},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(S,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(S,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:110,47:J,49:Z},{5:j,30:X,46:111,47:J,49:Z},e(S,[2,14]),e(S,[2,15]),e(S,[2,16]),e(S,[2,17]),e(S,[2,34]),e(S,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:r(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:r(function(i){var a=this,l=[0],n=[],f=[null],s=[],K=this.table,E="",te=0,Ie=0,Le=2,be=1,Oe=s.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);m.setInput(i,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var ae=m.yylloc;s.push(ae);var Ce=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(N){l.length=l.length-2*N,f.length=f.length-N,s.length=s.length-N}r(Me,"popStack");function Se(){var N;return N=n.pop()||m.lex()||be,typeof N!="number"&&(N instanceof Array&&(n=N,N=n.pop()),N=a.symbols_[N]||N),N}r(Se,"lex");for(var k,M,x,le,H={},ie,V,ke,re;;){if(M=l[l.length-1],this.defaultActions[M]?x=this.defaultActions[M]:((k===null||typeof k>"u")&&(k=Se()),x=K[M]&&K[M][k]),typeof x>"u"||!x.length||!x[0]){var oe="";re=[];for(ie in K[M])this.terminals_[ie]&&ie>Le&&re.push("'"+this.terminals_[ie]+"'");m.showPosition?oe="Parse error on line "+(te+1)+`: `+m.showPosition()+` Expecting `+re.join(", ")+", got '"+(this.terminals_[k]||k)+"'":oe="Parse error on line "+(te+1)+": Unexpected "+(k==be?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(oe,{text:m.match,token:this.terminals_[k]||k,line:m.yylineno,loc:ae,expected:re})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+k);switch(x[0]){case 1:l.push(k),f.push(m.yytext),s.push(m.yylloc),l.push(x[1]),k=null,Ie=m.yyleng,E=m.yytext,te=m.yylineno,ae=m.yylloc;break;case 2:if(V=this.productions_[x[1]][1],H.$=f[f.length-V],H._$={first_line:s[s.length-(V||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(V||1)].first_column,last_column:s[s.length-1].last_column},Ce&&(H._$.range=[s[s.length-(V||1)].range[0],s[s.length-1].range[1]]),le=this.performAction.apply(H,[E,Ie,te,C.yy,x[1],f,s].concat(Oe)),typeof le<"u")return le;V&&(l=l.slice(0,-1*V*2),f=f.slice(0,-1*V),s=s.slice(0,-1*V)),l.push(this.productions_[x[1]][0]),f.push(H.$),s.push(H._$),ke=K[l[l.length-2]][l[l.length-1]],l.push(ke);break;case 3:return!0}}return!0},"parse")},$e=function(){var $={EOF:1,parseError:r(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:r(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:r(function(i){var a=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===n.length?this.yylloc.first_column:0)+n[n.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(i){this.unput(this.match.slice(i))},"less"),pastInput:r(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/static/js/md-sankeyDiagram-Y46BX6SQ-Dd5NMB5G.js b/static/js/md-sankeyDiagram-Y46BX6SQ-j2j7veLN.js similarity index 99% rename from static/js/md-sankeyDiagram-Y46BX6SQ-Dd5NMB5G.js rename to static/js/md-sankeyDiagram-Y46BX6SQ-j2j7veLN.js index 46ee9da..2c74f23 100644 --- a/static/js/md-sankeyDiagram-Y46BX6SQ-Dd5NMB5G.js +++ b/static/js/md-sankeyDiagram-Y46BX6SQ-j2j7veLN.js @@ -1,4 +1,4 @@ -import{_ as m,d as lt,g as _t,s as xt,b as vt,c as bt,q as wt,p as St,v as Lt,e as Et,o as At,j as H,V as Tt}from"./md-index-BhYxDPe5.js";import{o as Mt}from"./md-ordinal-CxVaQH2l.js";import"./md-init-Gi6I4Gst.js";function Nt(t){for(var e=t.length/6|0,i=new Array(e),a=0;a=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i=h)&&(i=h)}return i}function pt(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i>h||i===void 0&&h>=h)&&(i=h)}return i}function nt(t,e){let i=0;if(e===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let h of t)(h=+e(h,++a,t))&&(i+=h)}return i}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,e){return e-1-t.height}function mt(t,e){return t.sourceLinks.length?t.depth:e-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function X(t){return function(){return t}}function ut(t,e){return Q(t.source,e.source)||t.index-e.index}function ht(t,e){return Q(t.target,e.target)||t.index-e.index}function Q(t,e){return t.y0-e.y0}function it(t){return t.value}function jt(t){return t.index}function zt(t){return t.nodes}function $t(t){return t.links}function ft(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function yt({nodes:t}){for(const e of t){let i=e.y0,a=i;for(const h of e.sourceLinks)h.y0=i+h.width/2,i+=h.width;for(const h of e.targetLinks)h.y1=a+h.width/2,a+=h.width}}function Bt(){let t=0,e=0,i=1,a=1,h=24,d=8,p,_=jt,s=mt,o,l,x=zt,v=$t,y=6;function b(){const n={nodes:x.apply(null,arguments),links:v.apply(null,arguments)};return M(n),T(n),N(n),C(n),S(n),yt(n),n}b.update=function(n){return yt(n),n},b.nodeId=function(n){return arguments.length?(_=typeof n=="function"?n:X(n),b):_},b.nodeAlign=function(n){return arguments.length?(s=typeof n=="function"?n:X(n),b):s},b.nodeSort=function(n){return arguments.length?(o=n,b):o},b.nodeWidth=function(n){return arguments.length?(h=+n,b):h},b.nodePadding=function(n){return arguments.length?(d=p=+n,b):d},b.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:X(n),b):x},b.links=function(n){return arguments.length?(v=typeof n=="function"?n:X(n),b):v},b.linkSort=function(n){return arguments.length?(l=n,b):l},b.size=function(n){return arguments.length?(t=e=0,i=+n[0],a=+n[1],b):[i-t,a-e]},b.extent=function(n){return arguments.length?(t=+n[0][0],i=+n[1][0],e=+n[0][1],a=+n[1][1],b):[[t,e],[i,a]]},b.iterations=function(n){return arguments.length?(y=+n,b):y};function M({nodes:n,links:f}){for(const[c,r]of n.entries())r.index=c,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((c,r)=>[_(c,r,n),c]));for(const[c,r]of f.entries()){r.index=c;let{source:k,target:w}=r;typeof k!="object"&&(k=r.source=ft(u,k)),typeof w!="object"&&(w=r.target=ft(u,w)),k.sourceLinks.push(r),w.targetLinks.push(r)}if(l!=null)for(const{sourceLinks:c,targetLinks:r}of n)c.sort(l),r.sort(l)}function T({nodes:n}){for(const f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function N({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:w}of k.sourceLinks)c.add(w)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function C({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:w}of k.targetLinks)c.add(w)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function j({nodes:n}){const f=ct(n,r=>r.depth)+1,u=(i-t-h)/(f-1),c=new Array(f);for(const r of n){const k=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,c[k]?c[k].push(r):c[k]=[r]}if(o)for(const r of c)r.sort(o);return c}function R(n){const f=pt(n,u=>(a-e-(u.length-1)*p)/nt(u,it));for(const u of n){let c=e;for(const r of u){r.y0=c,r.y1=c+r.value*f,c=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*f}c=(a-c+p)/(u.length+1);for(let r=0;ru.length)-1)),R(f);for(let u=0;u0))continue;let G=(L/V-w.y0)*f;w.y0+=G,w.y1+=G,E(w)}o===void 0&&k.sort(Q),O(k,u)}}function B(n,f,u){for(let c=n.length,r=c-2;r>=0;--r){const k=n[r];for(const w of k){let L=0,V=0;for(const{target:Y,value:et}of w.sourceLinks){let q=et*(Y.layer-w.layer);L+=I(w,Y)*q,V+=q}if(!(V>0))continue;let G=(L/V-w.y0)*f;w.y0+=G,w.y1+=G,E(w)}o===void 0&&k.sort(Q),O(k,u)}}function O(n,f){const u=n.length>>1,c=n[u];g(n,c.y0-p,u-1,f),D(n,c.y1+p,u+1,f),g(n,a,n.length-1,f),D(n,e,0,f)}function D(n,f,u,c){for(;u1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+p}}function g(n,f,u,c){for(;u>=0;--u){const r=n[u],k=(r.y1-f)*c;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-p}}function E({sourceLinks:n,targetLinks:f}){if(l===void 0){for(const{source:{sourceLinks:u}}of f)u.sort(ht);for(const{target:{targetLinks:u}}of n)u.sort(ut)}}function A(n){if(l===void 0)for(const{sourceLinks:f,targetLinks:u}of n)f.sort(ht),u.sort(ut)}function z(n,f){let u=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u+=r+p}for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u-=r}return u}function I(n,f){let u=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u+=r+p}for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u-=r}return u}return b}var st=Math.PI,rt=2*st,F=1e-6,Rt=rt-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function kt(){return new ot}ot.prototype=kt.prototype={constructor:ot,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(t,e,i,a,h,d){this._+="C"+ +t+","+ +e+","+ +i+","+ +a+","+(this._x1=+h)+","+(this._y1=+d)},arcTo:function(t,e,i,a,h){t=+t,e=+e,i=+i,a=+a,h=+h;var d=this._x1,p=this._y1,_=i-t,s=a-e,o=d-t,l=p-e,x=o*o+l*l;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(x>F)if(!(Math.abs(l*_-s*o)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var v=i-d,y=a-p,b=_*_+s*s,M=v*v+y*y,T=Math.sqrt(b),N=Math.sqrt(x),C=h*Math.tan((st-Math.acos((b+x-M)/(2*T*N)))/2),j=C/N,R=C/T;Math.abs(j-1)>F&&(this._+="L"+(t+j*o)+","+(e+j*l)),this._+="A"+h+","+h+",0,0,"+ +(l*v>o*y)+","+(this._x1=t+R*_)+","+(this._y1=e+R*s)}},arc:function(t,e,i,a,h,d){t=+t,e=+e,i=+i,d=!!d;var p=i*Math.cos(a),_=i*Math.sin(a),s=t+p,o=e+_,l=1^d,x=d?a-h:h-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+s+","+o:(Math.abs(this._x1-s)>F||Math.abs(this._y1-o)>F)&&(this._+="L"+s+","+o),i&&(x<0&&(x=x%rt+rt),x>Rt?this._+="A"+i+","+i+",0,1,"+l+","+(t-p)+","+(e-_)+"A"+i+","+i+",0,1,"+l+","+(this._x1=s)+","+(this._y1=o):x>F&&(this._+="A"+i+","+i+",0,"+ +(x>=st)+","+l+","+(this._x1=t+i*Math.cos(h))+","+(this._y1=e+i*Math.sin(h))))},rect:function(t,e,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Vt(t){return t[0]}function Ft(t){return t[1]}var Wt=Array.prototype.slice;function Ut(t){return t.source}function Gt(t){return t.target}function Yt(t){var e=Ut,i=Gt,a=Vt,h=Ft,d=null;function p(){var _,s=Wt.call(arguments),o=e.apply(this,s),l=i.apply(this,s);if(d||(d=_=kt()),t(d,+a.apply(this,(s[0]=o,s)),+h.apply(this,s),+a.apply(this,(s[0]=l,s)),+h.apply(this,s)),_)return d=null,_+""||null}return p.source=function(_){return arguments.length?(e=_,p):e},p.target=function(_){return arguments.length?(i=_,p):i},p.x=function(_){return arguments.length?(a=typeof _=="function"?_:dt(+_),p):a},p.y=function(_){return arguments.length?(h=typeof _=="function"?_:dt(+_),p):h},p.context=function(_){return arguments.length?(d=_??null,p):d},p}function qt(t,e,i,a,h){t.moveTo(e,i),t.bezierCurveTo(e=(e+a)/2,i,e,h,a,h)}function Ht(){return Yt(qt)}function Xt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Kt(){return Ht().source(Xt).target(Qt)}var at=function(){var t=m(function(_,s,o,l){for(o=o||{},l=_.length;l--;o[_[l]]=s);return o},"o"),e=[1,9],i=[1,10],a=[1,5,10,12],h={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:m(function(s,o,l,x,v,y,b){var M=y.length-1;switch(v){case 7:const T=x.findOrCreateNode(y[M-4].trim().replaceAll('""','"')),N=x.findOrCreateNode(y[M-2].trim().replaceAll('""','"')),C=parseFloat(y[M].trim());x.addLink(T,N,C);break;case 8:case 9:case 11:this.$=y[M];break;case 10:this.$=y[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:m(function(s,o){if(o.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=o,l}},"parseError"),parse:m(function(s){var o=this,l=[0],x=[],v=[null],y=[],b=this.table,M="",T=0,N=0,C=2,j=1,R=y.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(P.yy[B]=this.yy[B]);S.setInput(s,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var O=S.yylloc;y.push(O);var D=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function g(L){l.length=l.length-2*L,v.length=v.length-L,y.length=y.length-L}m(g,"popStack");function E(){var L;return L=x.pop()||S.lex()||j,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=o.symbols_[L]||L),L}m(E,"lex");for(var A,z,I,n,f={},u,c,r,k;;){if(z=l[l.length-1],this.defaultActions[z]?I=this.defaultActions[z]:((A===null||typeof A>"u")&&(A=E()),I=b[z]&&b[z][A]),typeof I>"u"||!I.length||!I[0]){var w="";k=[];for(u in b[z])this.terminals_[u]&&u>C&&k.push("'"+this.terminals_[u]+"'");S.showPosition?w="Parse error on line "+(T+1)+`: +import{_ as m,d as lt,g as _t,s as xt,b as vt,c as bt,q as wt,p as St,v as Lt,e as Et,o as At,j as H,V as Tt}from"./md-index-ByjuzIYZ.js";import{o as Mt}from"./md-ordinal-CxVaQH2l.js";import"./md-init-Gi6I4Gst.js";function Nt(t){for(var e=t.length/6|0,i=new Array(e),a=0;a=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i=h)&&(i=h)}return i}function pt(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i>h||i===void 0&&h>=h)&&(i=h)}return i}function nt(t,e){let i=0;if(e===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let h of t)(h=+e(h,++a,t))&&(i+=h)}return i}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,e){return e-1-t.height}function mt(t,e){return t.sourceLinks.length?t.depth:e-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function X(t){return function(){return t}}function ut(t,e){return Q(t.source,e.source)||t.index-e.index}function ht(t,e){return Q(t.target,e.target)||t.index-e.index}function Q(t,e){return t.y0-e.y0}function it(t){return t.value}function jt(t){return t.index}function zt(t){return t.nodes}function $t(t){return t.links}function ft(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function yt({nodes:t}){for(const e of t){let i=e.y0,a=i;for(const h of e.sourceLinks)h.y0=i+h.width/2,i+=h.width;for(const h of e.targetLinks)h.y1=a+h.width/2,a+=h.width}}function Bt(){let t=0,e=0,i=1,a=1,h=24,d=8,p,_=jt,s=mt,o,l,x=zt,v=$t,y=6;function b(){const n={nodes:x.apply(null,arguments),links:v.apply(null,arguments)};return M(n),T(n),N(n),C(n),S(n),yt(n),n}b.update=function(n){return yt(n),n},b.nodeId=function(n){return arguments.length?(_=typeof n=="function"?n:X(n),b):_},b.nodeAlign=function(n){return arguments.length?(s=typeof n=="function"?n:X(n),b):s},b.nodeSort=function(n){return arguments.length?(o=n,b):o},b.nodeWidth=function(n){return arguments.length?(h=+n,b):h},b.nodePadding=function(n){return arguments.length?(d=p=+n,b):d},b.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:X(n),b):x},b.links=function(n){return arguments.length?(v=typeof n=="function"?n:X(n),b):v},b.linkSort=function(n){return arguments.length?(l=n,b):l},b.size=function(n){return arguments.length?(t=e=0,i=+n[0],a=+n[1],b):[i-t,a-e]},b.extent=function(n){return arguments.length?(t=+n[0][0],i=+n[1][0],e=+n[0][1],a=+n[1][1],b):[[t,e],[i,a]]},b.iterations=function(n){return arguments.length?(y=+n,b):y};function M({nodes:n,links:f}){for(const[c,r]of n.entries())r.index=c,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((c,r)=>[_(c,r,n),c]));for(const[c,r]of f.entries()){r.index=c;let{source:k,target:w}=r;typeof k!="object"&&(k=r.source=ft(u,k)),typeof w!="object"&&(w=r.target=ft(u,w)),k.sourceLinks.push(r),w.targetLinks.push(r)}if(l!=null)for(const{sourceLinks:c,targetLinks:r}of n)c.sort(l),r.sort(l)}function T({nodes:n}){for(const f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function N({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:w}of k.sourceLinks)c.add(w)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function C({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:w}of k.targetLinks)c.add(w)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function j({nodes:n}){const f=ct(n,r=>r.depth)+1,u=(i-t-h)/(f-1),c=new Array(f);for(const r of n){const k=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,c[k]?c[k].push(r):c[k]=[r]}if(o)for(const r of c)r.sort(o);return c}function R(n){const f=pt(n,u=>(a-e-(u.length-1)*p)/nt(u,it));for(const u of n){let c=e;for(const r of u){r.y0=c,r.y1=c+r.value*f,c=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*f}c=(a-c+p)/(u.length+1);for(let r=0;ru.length)-1)),R(f);for(let u=0;u0))continue;let G=(L/V-w.y0)*f;w.y0+=G,w.y1+=G,E(w)}o===void 0&&k.sort(Q),O(k,u)}}function B(n,f,u){for(let c=n.length,r=c-2;r>=0;--r){const k=n[r];for(const w of k){let L=0,V=0;for(const{target:Y,value:et}of w.sourceLinks){let q=et*(Y.layer-w.layer);L+=I(w,Y)*q,V+=q}if(!(V>0))continue;let G=(L/V-w.y0)*f;w.y0+=G,w.y1+=G,E(w)}o===void 0&&k.sort(Q),O(k,u)}}function O(n,f){const u=n.length>>1,c=n[u];g(n,c.y0-p,u-1,f),D(n,c.y1+p,u+1,f),g(n,a,n.length-1,f),D(n,e,0,f)}function D(n,f,u,c){for(;u1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+p}}function g(n,f,u,c){for(;u>=0;--u){const r=n[u],k=(r.y1-f)*c;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-p}}function E({sourceLinks:n,targetLinks:f}){if(l===void 0){for(const{source:{sourceLinks:u}}of f)u.sort(ht);for(const{target:{targetLinks:u}}of n)u.sort(ut)}}function A(n){if(l===void 0)for(const{sourceLinks:f,targetLinks:u}of n)f.sort(ht),u.sort(ut)}function z(n,f){let u=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u+=r+p}for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u-=r}return u}function I(n,f){let u=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u+=r+p}for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u-=r}return u}return b}var st=Math.PI,rt=2*st,F=1e-6,Rt=rt-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function kt(){return new ot}ot.prototype=kt.prototype={constructor:ot,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(t,e,i,a,h,d){this._+="C"+ +t+","+ +e+","+ +i+","+ +a+","+(this._x1=+h)+","+(this._y1=+d)},arcTo:function(t,e,i,a,h){t=+t,e=+e,i=+i,a=+a,h=+h;var d=this._x1,p=this._y1,_=i-t,s=a-e,o=d-t,l=p-e,x=o*o+l*l;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(x>F)if(!(Math.abs(l*_-s*o)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var v=i-d,y=a-p,b=_*_+s*s,M=v*v+y*y,T=Math.sqrt(b),N=Math.sqrt(x),C=h*Math.tan((st-Math.acos((b+x-M)/(2*T*N)))/2),j=C/N,R=C/T;Math.abs(j-1)>F&&(this._+="L"+(t+j*o)+","+(e+j*l)),this._+="A"+h+","+h+",0,0,"+ +(l*v>o*y)+","+(this._x1=t+R*_)+","+(this._y1=e+R*s)}},arc:function(t,e,i,a,h,d){t=+t,e=+e,i=+i,d=!!d;var p=i*Math.cos(a),_=i*Math.sin(a),s=t+p,o=e+_,l=1^d,x=d?a-h:h-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+s+","+o:(Math.abs(this._x1-s)>F||Math.abs(this._y1-o)>F)&&(this._+="L"+s+","+o),i&&(x<0&&(x=x%rt+rt),x>Rt?this._+="A"+i+","+i+",0,1,"+l+","+(t-p)+","+(e-_)+"A"+i+","+i+",0,1,"+l+","+(this._x1=s)+","+(this._y1=o):x>F&&(this._+="A"+i+","+i+",0,"+ +(x>=st)+","+l+","+(this._x1=t+i*Math.cos(h))+","+(this._y1=e+i*Math.sin(h))))},rect:function(t,e,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Vt(t){return t[0]}function Ft(t){return t[1]}var Wt=Array.prototype.slice;function Ut(t){return t.source}function Gt(t){return t.target}function Yt(t){var e=Ut,i=Gt,a=Vt,h=Ft,d=null;function p(){var _,s=Wt.call(arguments),o=e.apply(this,s),l=i.apply(this,s);if(d||(d=_=kt()),t(d,+a.apply(this,(s[0]=o,s)),+h.apply(this,s),+a.apply(this,(s[0]=l,s)),+h.apply(this,s)),_)return d=null,_+""||null}return p.source=function(_){return arguments.length?(e=_,p):e},p.target=function(_){return arguments.length?(i=_,p):i},p.x=function(_){return arguments.length?(a=typeof _=="function"?_:dt(+_),p):a},p.y=function(_){return arguments.length?(h=typeof _=="function"?_:dt(+_),p):h},p.context=function(_){return arguments.length?(d=_??null,p):d},p}function qt(t,e,i,a,h){t.moveTo(e,i),t.bezierCurveTo(e=(e+a)/2,i,e,h,a,h)}function Ht(){return Yt(qt)}function Xt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Kt(){return Ht().source(Xt).target(Qt)}var at=function(){var t=m(function(_,s,o,l){for(o=o||{},l=_.length;l--;o[_[l]]=s);return o},"o"),e=[1,9],i=[1,10],a=[1,5,10,12],h={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:m(function(s,o,l,x,v,y,b){var M=y.length-1;switch(v){case 7:const T=x.findOrCreateNode(y[M-4].trim().replaceAll('""','"')),N=x.findOrCreateNode(y[M-2].trim().replaceAll('""','"')),C=parseFloat(y[M].trim());x.addLink(T,N,C);break;case 8:case 9:case 11:this.$=y[M];break;case 10:this.$=y[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:m(function(s,o){if(o.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=o,l}},"parseError"),parse:m(function(s){var o=this,l=[0],x=[],v=[null],y=[],b=this.table,M="",T=0,N=0,C=2,j=1,R=y.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(P.yy[B]=this.yy[B]);S.setInput(s,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var O=S.yylloc;y.push(O);var D=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function g(L){l.length=l.length-2*L,v.length=v.length-L,y.length=y.length-L}m(g,"popStack");function E(){var L;return L=x.pop()||S.lex()||j,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=o.symbols_[L]||L),L}m(E,"lex");for(var A,z,I,n,f={},u,c,r,k;;){if(z=l[l.length-1],this.defaultActions[z]?I=this.defaultActions[z]:((A===null||typeof A>"u")&&(A=E()),I=b[z]&&b[z][A]),typeof I>"u"||!I.length||!I[0]){var w="";k=[];for(u in b[z])this.terminals_[u]&&u>C&&k.push("'"+this.terminals_[u]+"'");S.showPosition?w="Parse error on line "+(T+1)+`: `+S.showPosition()+` Expecting `+k.join(", ")+", got '"+(this.terminals_[A]||A)+"'":w="Parse error on line "+(T+1)+": Unexpected "+(A==j?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(w,{text:S.match,token:this.terminals_[A]||A,line:S.yylineno,loc:O,expected:k})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+A);switch(I[0]){case 1:l.push(A),v.push(S.yytext),y.push(S.yylloc),l.push(I[1]),A=null,N=S.yyleng,M=S.yytext,T=S.yylineno,O=S.yylloc;break;case 2:if(c=this.productions_[I[1]][1],f.$=v[v.length-c],f._$={first_line:y[y.length-(c||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(c||1)].first_column,last_column:y[y.length-1].last_column},D&&(f._$.range=[y[y.length-(c||1)].range[0],y[y.length-1].range[1]]),n=this.performAction.apply(f,[M,N,T,P.yy,I[1],v,y].concat(R)),typeof n<"u")return n;c&&(l=l.slice(0,-1*c*2),v=v.slice(0,-1*c),y=y.slice(0,-1*c)),l.push(this.productions_[I[1]][0]),v.push(f.$),y.push(f._$),r=b[l[l.length-2]][l[l.length-1]],l.push(r);break;case 3:return!0}}return!0},"parse")},d=function(){var _={EOF:1,parseError:m(function(o,l){if(this.yy.parser)this.yy.parser.parseError(o,l);else throw new Error(o)},"parseError"),setInput:m(function(s,o){return this.yy=o||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:m(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var o=s.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:m(function(s){var o=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===x.length?this.yylloc.first_column:0)+x[x.length-l.length].length-l[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(s){this.unput(this.match.slice(s))},"less"),pastInput:m(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/static/js/md-sequenceDiagram-G6AWOVSC-DjVel-zD.js b/static/js/md-sequenceDiagram-G6AWOVSC-CtkVu07L.js similarity index 99% rename from static/js/md-sequenceDiagram-G6AWOVSC-DjVel-zD.js rename to static/js/md-sequenceDiagram-G6AWOVSC-CtkVu07L.js index 3e9b331..51b17fc 100644 --- a/static/js/md-sequenceDiagram-G6AWOVSC-DjVel-zD.js +++ b/static/js/md-sequenceDiagram-G6AWOVSC-CtkVu07L.js @@ -1,4 +1,4 @@ -import{g as St,a as Kt,d as Se,b as Me,c as Re,e as De}from"./md-chunk-ASOPGD6M-BZAPvhZW.js";import{I as Ce}from"./md-chunk-KFBOBJHC-hNoUdd-l.js";import{_ as d,g as Oe,q as Be,p as Ve,d as at,s as se,c as Ye,b as Fe,e as _,L as lt,M as wt,u as F,l as J,v as We,i as Mt,a as qe,j as kt,k as ze,m as ae,N as ie,D as Ft,O as ne,Z as He}from"./md-index-BhYxDPe5.js";var Wt=function(){var t=d(function(pt,I,L,A){for(L=L||{},A=pt.length;A--;L[pt[A]]=I);return L},"o"),e=[1,2],o=[1,3],r=[1,4],a=[2,4],i=[1,9],c=[1,11],h=[1,13],p=[1,14],s=[1,16],f=[1,17],E=[1,18],g=[1,24],T=[1,25],m=[1,26],w=[1,27],k=[1,28],V=[1,29],M=[1,30],Y=[1,31],C=[1,32],z=[1,33],H=[1,34],Z=[1,35],et=[1,36],K=[1,37],U=[1,38],q=[1,39],R=[1,41],Q=[1,42],G=[1,43],j=[1,44],rt=[1,45],S=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],it=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],N=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Jt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ot=[68,69,70],dt=[1,122],Ct={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:d(function(I,L,A,b,D,l,mt){var u=l.length-1;switch(D){case 3:return b.apply(l[u]),l[u];case 4:case 9:this.$=[];break;case 5:case 10:l[u-1].push(l[u]),this.$=l[u-1];break;case 6:case 7:case 11:case 12:this.$=l[u];break;case 8:case 13:this.$=[];break;case 15:l[u].type="createParticipant",this.$=l[u];break;case 16:l[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(l[u-2])}),l[u-1].push({type:"boxEnd",boxText:l[u-2]}),this.$=l[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-2]),sequenceIndexStep:Number(l[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 29:b.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 30:b.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 31:this.$=l[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=l[u].trim(),b.setAccDescription(this.$);break;case 34:l[u-1].unshift({type:"loopStart",loopText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 35:l[u-1].unshift({type:"rectStart",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"optStart",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"altStart",altText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"breakStart",breakText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 43:this.$=l[u-3].concat([{type:"option",optionText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 45:this.$=l[u-3].concat([{type:"and",parText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.PAR_AND},l[u]]);break;case 47:this.$=l[u-3].concat([{type:"else",altText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.ALT_ELSE},l[u]]);break;case 48:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=b.parseMessage(l[u-1]),this.$=l[u-3];break;case 49:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 50:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=b.parseMessage(l[u-1]),this.$=l[u-3];break;case 51:l[u-1].draw="actor",l[u-1].type="addParticipant",this.$=l[u-1];break;case 52:l[u-1].type="destroyParticipant",this.$=l[u-1];break;case 53:this.$=[l[u-1],{type:"addNote",placement:l[u-2],actor:l[u-1].actor,text:l[u]}];break;case 54:l[u-2]=[].concat(l[u-1],l[u-1]).slice(0,2),l[u-2][0]=l[u-2][0].actor,l[u-2][1]=l[u-2][1].actor,this.$=[l[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:l[u-2].slice(0,2),text:l[u]}];break;case 55:this.$=[l[u-1],{type:"addLinks",actor:l[u-1].actor,text:l[u]}];break;case 56:this.$=[l[u-1],{type:"addALink",actor:l[u-1].actor,text:l[u]}];break;case 57:this.$=[l[u-1],{type:"addProperties",actor:l[u-1].actor,text:l[u]}];break;case 58:this.$=[l[u-1],{type:"addDetails",actor:l[u-1].actor,text:l[u]}];break;case 61:this.$=[l[u-2],l[u]];break;case 62:this.$=l[u];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor}];break;case 66:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-4].actor}];break;case 67:this.$=[l[u-3],l[u-1],{type:"addMessage",from:l[u-3].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u]}];break;case 68:this.$={type:"addParticipant",actor:l[u]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=b.LINETYPE.DOTTED;break;case 74:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=b.LINETYPE.SOLID_CROSS;break;case 76:this.$=b.LINETYPE.DOTTED_CROSS;break;case 77:this.$=b.LINETYPE.SOLID_POINT;break;case 78:this.$=b.LINETYPE.DOTTED_POINT;break;case 79:this.$=b.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:o,6:r},{1:[3]},{3:5,4:e,5:o,6:r},{3:6,4:e,5:o,6:r},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},t(y,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:K,52:U,53:q},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:S},{22:55,70:S},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:S},{22:72,70:S},{22:73,70:S},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:S},{22:90,70:S},{22:91,70:S},{22:92,70:S},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:93}),t(y,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(y,[2,21]),{5:[1,97]},{5:[1,98]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t($,a,{7:99}),t($,a,{7:100}),t($,a,{7:101}),t(it,a,{40:102,7:103}),t(N,a,{42:104,7:105}),t(N,a,{7:105,42:106}),t(Jt,a,{45:107,7:108}),t($,a,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:S},t(ot,[2,69]),t(ot,[2,70]),t(ot,[2,71]),t(ot,[2,72]),t(ot,[2,73]),t(ot,[2,74]),t(ot,[2,75]),t(ot,[2,76]),t(ot,[2,77]),t(ot,[2,78]),{22:118,70:S},{22:120,58:119,70:S},{70:[2,63]},{70:[2,64]},{56:121,81:dt},{56:123,81:dt},{56:124,81:dt},{56:125,81:dt},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:K,52:U,53:q},{5:[1,131]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,133],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,134],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,135]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,49:[1,136],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,137]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,48:[1,138],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,139]},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,47:[1,141],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,142],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{15:[1,143]},t(y,[2,49]),{15:[1,144]},t(y,[2,51]),t(y,[2,52]),{22:145,70:S},{22:146,70:S},{56:147,81:dt},{56:148,81:dt},{56:149,81:dt},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:151,50:K,52:U,53:q},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,152]},t(y,[2,38]),{15:[1,153]},t(y,[2,39]),t(y,[2,40]),{15:[1,154]},t(y,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:dt},{56:158,81:dt},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:S},t(P,[2,11]),t(it,a,{7:103,40:160}),t(N,a,{7:105,42:161}),t(Jt,a,{7:108,45:162}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:d(function(I,L){if(L.recoverable)this.trace(I);else{var A=new Error(I);throw A.hash=L,A}},"parseError"),parse:d(function(I){var L=this,A=[0],b=[],D=[null],l=[],mt=this.table,u="",Lt=0,Zt=0,Pe=2,Qt=1,Ae=l.slice.call(arguments,1),W=Object.create(this.lexer),ut={yy:{}};for(var Ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ot)&&(ut.yy[Ot]=this.yy[Ot]);W.setInput(I,ut.yy),ut.yy.lexer=W,ut.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var Bt=W.yylloc;l.push(Bt);var ke=W.options&&W.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ne(tt){A.length=A.length-2*tt,D.length=D.length-tt,l.length=l.length-tt}d(Ne,"popStack");function jt(){var tt;return tt=b.pop()||W.lex()||Qt,typeof tt!="number"&&(tt instanceof Array&&(b=tt,tt=b.pop()),tt=L.symbols_[tt]||tt),tt}d(jt,"lex");for(var X,gt,st,Vt,yt={},Pt,ht,$t,At;;){if(gt=A[A.length-1],this.defaultActions[gt]?st=this.defaultActions[gt]:((X===null||typeof X>"u")&&(X=jt()),st=mt[gt]&&mt[gt][X]),typeof st>"u"||!st.length||!st[0]){var Yt="";At=[];for(Pt in mt[gt])this.terminals_[Pt]&&Pt>Pe&&At.push("'"+this.terminals_[Pt]+"'");W.showPosition?Yt="Parse error on line "+(Lt+1)+`: +import{g as St,a as Kt,d as Se,b as Me,c as Re,e as De}from"./md-chunk-ASOPGD6M-D5CB9lCy.js";import{I as Ce}from"./md-chunk-KFBOBJHC-CHuIljkb.js";import{_ as d,g as Oe,q as Be,p as Ve,d as at,s as se,c as Ye,b as Fe,e as _,L as lt,M as wt,u as F,l as J,v as We,i as Mt,a as qe,j as kt,k as ze,m as ae,N as ie,D as Ft,O as ne,Z as He}from"./md-index-ByjuzIYZ.js";var Wt=function(){var t=d(function(pt,I,L,A){for(L=L||{},A=pt.length;A--;L[pt[A]]=I);return L},"o"),e=[1,2],o=[1,3],r=[1,4],a=[2,4],i=[1,9],c=[1,11],h=[1,13],p=[1,14],s=[1,16],f=[1,17],E=[1,18],g=[1,24],T=[1,25],m=[1,26],w=[1,27],k=[1,28],V=[1,29],M=[1,30],Y=[1,31],C=[1,32],z=[1,33],H=[1,34],Z=[1,35],et=[1,36],K=[1,37],U=[1,38],q=[1,39],R=[1,41],Q=[1,42],G=[1,43],j=[1,44],rt=[1,45],S=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],it=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],N=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Jt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ot=[68,69,70],dt=[1,122],Ct={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:d(function(I,L,A,b,D,l,mt){var u=l.length-1;switch(D){case 3:return b.apply(l[u]),l[u];case 4:case 9:this.$=[];break;case 5:case 10:l[u-1].push(l[u]),this.$=l[u-1];break;case 6:case 7:case 11:case 12:this.$=l[u];break;case 8:case 13:this.$=[];break;case 15:l[u].type="createParticipant",this.$=l[u];break;case 16:l[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(l[u-2])}),l[u-1].push({type:"boxEnd",boxText:l[u-2]}),this.$=l[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-2]),sequenceIndexStep:Number(l[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 29:b.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 30:b.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 31:this.$=l[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=l[u].trim(),b.setAccDescription(this.$);break;case 34:l[u-1].unshift({type:"loopStart",loopText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 35:l[u-1].unshift({type:"rectStart",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"optStart",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"altStart",altText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"breakStart",breakText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 43:this.$=l[u-3].concat([{type:"option",optionText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 45:this.$=l[u-3].concat([{type:"and",parText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.PAR_AND},l[u]]);break;case 47:this.$=l[u-3].concat([{type:"else",altText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.ALT_ELSE},l[u]]);break;case 48:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=b.parseMessage(l[u-1]),this.$=l[u-3];break;case 49:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 50:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=b.parseMessage(l[u-1]),this.$=l[u-3];break;case 51:l[u-1].draw="actor",l[u-1].type="addParticipant",this.$=l[u-1];break;case 52:l[u-1].type="destroyParticipant",this.$=l[u-1];break;case 53:this.$=[l[u-1],{type:"addNote",placement:l[u-2],actor:l[u-1].actor,text:l[u]}];break;case 54:l[u-2]=[].concat(l[u-1],l[u-1]).slice(0,2),l[u-2][0]=l[u-2][0].actor,l[u-2][1]=l[u-2][1].actor,this.$=[l[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:l[u-2].slice(0,2),text:l[u]}];break;case 55:this.$=[l[u-1],{type:"addLinks",actor:l[u-1].actor,text:l[u]}];break;case 56:this.$=[l[u-1],{type:"addALink",actor:l[u-1].actor,text:l[u]}];break;case 57:this.$=[l[u-1],{type:"addProperties",actor:l[u-1].actor,text:l[u]}];break;case 58:this.$=[l[u-1],{type:"addDetails",actor:l[u-1].actor,text:l[u]}];break;case 61:this.$=[l[u-2],l[u]];break;case 62:this.$=l[u];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor}];break;case 66:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-4].actor}];break;case 67:this.$=[l[u-3],l[u-1],{type:"addMessage",from:l[u-3].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u]}];break;case 68:this.$={type:"addParticipant",actor:l[u]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=b.LINETYPE.DOTTED;break;case 74:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=b.LINETYPE.SOLID_CROSS;break;case 76:this.$=b.LINETYPE.DOTTED_CROSS;break;case 77:this.$=b.LINETYPE.SOLID_POINT;break;case 78:this.$=b.LINETYPE.DOTTED_POINT;break;case 79:this.$=b.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:o,6:r},{1:[3]},{3:5,4:e,5:o,6:r},{3:6,4:e,5:o,6:r},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},t(y,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:K,52:U,53:q},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:S},{22:55,70:S},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:S},{22:72,70:S},{22:73,70:S},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:S},{22:90,70:S},{22:91,70:S},{22:92,70:S},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:93}),t(y,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(y,[2,21]),{5:[1,97]},{5:[1,98]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t($,a,{7:99}),t($,a,{7:100}),t($,a,{7:101}),t(it,a,{40:102,7:103}),t(N,a,{42:104,7:105}),t(N,a,{7:105,42:106}),t(Jt,a,{45:107,7:108}),t($,a,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:S},t(ot,[2,69]),t(ot,[2,70]),t(ot,[2,71]),t(ot,[2,72]),t(ot,[2,73]),t(ot,[2,74]),t(ot,[2,75]),t(ot,[2,76]),t(ot,[2,77]),t(ot,[2,78]),{22:118,70:S},{22:120,58:119,70:S},{70:[2,63]},{70:[2,64]},{56:121,81:dt},{56:123,81:dt},{56:124,81:dt},{56:125,81:dt},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:K,52:U,53:q},{5:[1,131]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,133],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,134],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,135]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,49:[1,136],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,137]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,48:[1,138],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,139]},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,47:[1,141],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,142],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{15:[1,143]},t(y,[2,49]),{15:[1,144]},t(y,[2,51]),t(y,[2,52]),{22:145,70:S},{22:146,70:S},{56:147,81:dt},{56:148,81:dt},{56:149,81:dt},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:151,50:K,52:U,53:q},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,152]},t(y,[2,38]),{15:[1,153]},t(y,[2,39]),t(y,[2,40]),{15:[1,154]},t(y,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:dt},{56:158,81:dt},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:S},t(P,[2,11]),t(it,a,{7:103,40:160}),t(N,a,{7:105,42:161}),t(Jt,a,{7:108,45:162}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:d(function(I,L){if(L.recoverable)this.trace(I);else{var A=new Error(I);throw A.hash=L,A}},"parseError"),parse:d(function(I){var L=this,A=[0],b=[],D=[null],l=[],mt=this.table,u="",Lt=0,Zt=0,Pe=2,Qt=1,Ae=l.slice.call(arguments,1),W=Object.create(this.lexer),ut={yy:{}};for(var Ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ot)&&(ut.yy[Ot]=this.yy[Ot]);W.setInput(I,ut.yy),ut.yy.lexer=W,ut.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var Bt=W.yylloc;l.push(Bt);var ke=W.options&&W.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ne(tt){A.length=A.length-2*tt,D.length=D.length-tt,l.length=l.length-tt}d(Ne,"popStack");function jt(){var tt;return tt=b.pop()||W.lex()||Qt,typeof tt!="number"&&(tt instanceof Array&&(b=tt,tt=b.pop()),tt=L.symbols_[tt]||tt),tt}d(jt,"lex");for(var X,gt,st,Vt,yt={},Pt,ht,$t,At;;){if(gt=A[A.length-1],this.defaultActions[gt]?st=this.defaultActions[gt]:((X===null||typeof X>"u")&&(X=jt()),st=mt[gt]&&mt[gt][X]),typeof st>"u"||!st.length||!st[0]){var Yt="";At=[];for(Pt in mt[gt])this.terminals_[Pt]&&Pt>Pe&&At.push("'"+this.terminals_[Pt]+"'");W.showPosition?Yt="Parse error on line "+(Lt+1)+`: `+W.showPosition()+` Expecting `+At.join(", ")+", got '"+(this.terminals_[X]||X)+"'":Yt="Parse error on line "+(Lt+1)+": Unexpected "+(X==Qt?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Yt,{text:W.match,token:this.terminals_[X]||X,line:W.yylineno,loc:Bt,expected:At})}if(st[0]instanceof Array&&st.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+X);switch(st[0]){case 1:A.push(X),D.push(W.yytext),l.push(W.yylloc),A.push(st[1]),X=null,Zt=W.yyleng,u=W.yytext,Lt=W.yylineno,Bt=W.yylloc;break;case 2:if(ht=this.productions_[st[1]][1],yt.$=D[D.length-ht],yt._$={first_line:l[l.length-(ht||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ht||1)].first_column,last_column:l[l.length-1].last_column},ke&&(yt._$.range=[l[l.length-(ht||1)].range[0],l[l.length-1].range[1]]),Vt=this.performAction.apply(yt,[u,Zt,Lt,ut.yy,st[1],D,l].concat(Ae)),typeof Vt<"u")return Vt;ht&&(A=A.slice(0,-1*ht*2),D=D.slice(0,-1*ht),l=l.slice(0,-1*ht)),A.push(this.productions_[st[1]][0]),D.push(yt.$),l.push(yt._$),$t=mt[A[A.length-2]][A[A.length-1]],A.push($t);break;case 3:return!0}}return!0},"parse")},Le=function(){var pt={EOF:1,parseError:d(function(L,A){if(this.yy.parser)this.yy.parser.parseError(L,A);else throw new Error(L)},"parseError"),setInput:d(function(I,L){return this.yy=L||this.yy||{},this._input=I,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var I=this._input[0];this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I;var L=I.match(/(?:\r\n?|\n).*/g);return L?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),I},"input"),unput:d(function(I){var L=I.length,A=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),A.length-1&&(this.yylineno-=A.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:A?(A.length===b.length?this.yylloc.first_column:0)+b[b.length-A.length].length-A[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-L]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(I){this.unput(this.match.slice(I))},"less"),pastInput:d(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var I=this.pastInput(),L=new Array(I.length+1).join("-");return I+this.upcomingInput()+` diff --git a/static/js/md-stateDiagram-MAYHULR4-DuTkR2D1.js b/static/js/md-stateDiagram-MAYHULR4-BIcC8GHV.js similarity index 96% rename from static/js/md-stateDiagram-MAYHULR4-DuTkR2D1.js rename to static/js/md-stateDiagram-MAYHULR4-BIcC8GHV.js index 63709fa..ad56d8d 100644 --- a/static/js/md-stateDiagram-MAYHULR4-DuTkR2D1.js +++ b/static/js/md-stateDiagram-MAYHULR4-BIcC8GHV.js @@ -1 +1 @@ -import{s as W,a as N,b as P}from"./md-chunk-7U56Z5CX-Dp7clwJn.js";import{_ as u,d as t,j as H,l as S,k as C,e as z,K as U,Q as F,u as O}from"./md-index-BhYxDPe5.js";import{G as J}from"./md-graph--GW7E-WG.js";import{l as X}from"./md-layout-f1dVBnkM.js";import"./md-chunk-5HRBRIJM-CkTnwvT0.js";import"./md-_baseUniq-Cjg3wXP1.js";import"./md-_basePickBy-CdF26LR_.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},j=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),q=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),K=u((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),Q=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(p,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),c=Math.max(x.width,n.width);return y.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Z=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let c=Math.max(x,p);c===p&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,x>p&&(l=(p-c)/2+o),Math.abs(a-B.x)p&&(l=a-(x-p)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),x<=p&&s.attr("x",a+(c-n)/2-x/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const c=g.append("tspan");if(c.text(x),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&j(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&q(n),i.type==="default"&&i.descriptions.length===0&&K(n,i),i.type==="default"&&i.descriptions.length>0&&Q(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(F),p=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:x}=O.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const h=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",x+l),w=h.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,x+l),l===0&&(l=h.node().getBBox().height,S.info("Title height",l,x)),B.push(h)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((h,w)=>h.attr("y",x+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",x-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const p=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,p,a,o);const x=b.padding,c=s.node().getBBox(),l=c.width+x*2,B=c.height+x*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,p)=>{const a=new J({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s{const w=h.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},ft={parser:W,db:N,renderer:ot,styles:P,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()},"init")};export{ft as diagram}; +import{s as W,a as N,b as P}from"./md-chunk-7U56Z5CX-DsEs53Ln.js";import{_ as u,d as t,j as H,l as S,k as C,e as z,K as U,Q as F,u as O}from"./md-index-ByjuzIYZ.js";import{G as J}from"./md-graph-C_Pg_EOJ.js";import{l as X}from"./md-layout-B18tK69Y.js";import"./md-chunk-5HRBRIJM-nr27TBxG.js";import"./md-_baseUniq-DZXHEAoF.js";import"./md-_basePickBy-C4aggLA-.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},j=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),q=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),K=u((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),Q=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(p,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),c=Math.max(x.width,n.width);return y.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),Z=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let c=Math.max(x,p);c===p&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,x>p&&(l=(p-c)/2+o),Math.abs(a-B.x)p&&(l=a-(x-p)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),x<=p&&s.attr("x",a+(c-n)/2-x/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const c=g.append("tspan");if(c.text(x),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&j(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&q(n),i.type==="default"&&i.descriptions.length===0&&K(n,i),i.type==="default"&&i.descriptions.length>0&&Q(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(F),p=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:x}=O.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const h=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",x+l),w=h.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,x+l),l===0&&(l=h.node().getBBox().height,S.info("Title height",l,x)),B.push(h)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((h,w)=>h.attr("y",x+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",x-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const p=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,p,a,o);const x=b.padding,c=s.node().getBBox(),l=c.width+x*2,B=c.height+x*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,p)=>{const a=new J({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s{const w=h.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},ft={parser:W,db:N,renderer:ot,styles:P,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()},"init")};export{ft as diagram}; diff --git a/static/js/md-stateDiagram-v2-4JROLMXI-CRjPXwwq.js b/static/js/md-stateDiagram-v2-4JROLMXI-CRjPXwwq.js new file mode 100644 index 0000000..7613637 --- /dev/null +++ b/static/js/md-stateDiagram-v2-4JROLMXI-CRjPXwwq.js @@ -0,0 +1 @@ +import{s as t,a as e,c as r,b as s}from"./md-chunk-7U56Z5CX-DsEs53Ln.js";import{_ as i}from"./md-index-ByjuzIYZ.js";import"./md-chunk-5HRBRIJM-nr27TBxG.js";var _={parser:t,db:e,renderer:r,styles:s,init:i(a=>{a.state||(a.state={}),a.state.arrowMarkerAbsolute=a.arrowMarkerAbsolute,e.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-stateDiagram-v2-4JROLMXI-_0BMNyYc.js b/static/js/md-stateDiagram-v2-4JROLMXI-_0BMNyYc.js deleted file mode 100644 index fe7d992..0000000 --- a/static/js/md-stateDiagram-v2-4JROLMXI-_0BMNyYc.js +++ /dev/null @@ -1 +0,0 @@ -import{s as t,a as e,c as r,b as s}from"./md-chunk-7U56Z5CX-Dp7clwJn.js";import{_ as i}from"./md-index-BhYxDPe5.js";import"./md-chunk-5HRBRIJM-CkTnwvT0.js";var _={parser:t,db:e,renderer:r,styles:s,init:i(a=>{a.state||(a.state={}),a.state.arrowMarkerAbsolute=a.arrowMarkerAbsolute,e.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-timeline-definition-U7ZMHBDA-D6OlfbdI.js b/static/js/md-timeline-definition-U7ZMHBDA-n8Ag5tXS.js similarity index 99% rename from static/js/md-timeline-definition-U7ZMHBDA-D6OlfbdI.js rename to static/js/md-timeline-definition-U7ZMHBDA-n8Ag5tXS.js index c1dc78a..e4f03fc 100644 --- a/static/js/md-timeline-definition-U7ZMHBDA-D6OlfbdI.js +++ b/static/js/md-timeline-definition-U7ZMHBDA-n8Ag5tXS.js @@ -1,4 +1,4 @@ -import{_ as s,T as xt,U as kt,v as vt,j as U,d as _t,l as T,V as bt,W as wt,X as St,Y as Et}from"./md-index-BhYxDPe5.js";import{d as nt}from"./md-arc-Drcnh5x3.js";var X=function(){var n=s(function(f,i,a,d){for(a=a||{},d=f.length;d--;a[f[d]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],h=[1,12],c=[1,13],g=[1,16],m=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,d,u,y,o,S){var k=o.length-1;switch(y){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var d=new Error(i);throw d.hash=a,d}},"parseError"),parse:s(function(i){var a=this,d=[0],u=[],y=[null],o=[],S=this.table,k="",M=0,P=0,B=2,J=1,O=o.slice.call(arguments,1),v=Object.create(this.lexer),E={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(E.yy[b]=this.yy[b]);v.setInput(i,E.yy),E.yy.lexer=v,E.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var L=v.yylloc;o.push(L);var A=v.options&&v.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(I){d.length=d.length-2*I,y.length=y.length-I,o.length=o.length-I}s(R,"popStack");function F(){var I;return I=u.pop()||v.lex()||J,typeof I!="number"&&(I instanceof Array&&(u=I,I=u.pop()),I=a.symbols_[I]||I),I}s(F,"lex");for(var w,C,N,K,V={},j,$,et,G;;){if(C=d[d.length-1],this.defaultActions[C]?N=this.defaultActions[C]:((w===null||typeof w>"u")&&(w=F()),N=S[C]&&S[C][w]),typeof N>"u"||!N.length||!N[0]){var Q="";G=[];for(j in S[C])this.terminals_[j]&&j>B&&G.push("'"+this.terminals_[j]+"'");v.showPosition?Q="Parse error on line "+(M+1)+`: +import{_ as s,T as xt,U as kt,v as vt,j as U,d as _t,l as T,V as bt,W as wt,X as St,Y as Et}from"./md-index-ByjuzIYZ.js";import{d as nt}from"./md-arc-C7OGNnly.js";var X=function(){var n=s(function(f,i,a,d){for(a=a||{},d=f.length;d--;a[f[d]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],h=[1,12],c=[1,13],g=[1,16],m=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,d,u,y,o,S){var k=o.length-1;switch(y){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var d=new Error(i);throw d.hash=a,d}},"parseError"),parse:s(function(i){var a=this,d=[0],u=[],y=[null],o=[],S=this.table,k="",M=0,P=0,B=2,J=1,O=o.slice.call(arguments,1),v=Object.create(this.lexer),E={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(E.yy[b]=this.yy[b]);v.setInput(i,E.yy),E.yy.lexer=v,E.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var L=v.yylloc;o.push(L);var A=v.options&&v.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(I){d.length=d.length-2*I,y.length=y.length-I,o.length=o.length-I}s(R,"popStack");function F(){var I;return I=u.pop()||v.lex()||J,typeof I!="number"&&(I instanceof Array&&(u=I,I=u.pop()),I=a.symbols_[I]||I),I}s(F,"lex");for(var w,C,N,K,V={},j,$,et,G;;){if(C=d[d.length-1],this.defaultActions[C]?N=this.defaultActions[C]:((w===null||typeof w>"u")&&(w=F()),N=S[C]&&S[C][w]),typeof N>"u"||!N.length||!N[0]){var Q="";G=[];for(j in S[C])this.terminals_[j]&&j>B&&G.push("'"+this.terminals_[j]+"'");v.showPosition?Q="Parse error on line "+(M+1)+`: `+v.showPosition()+` Expecting `+G.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Q="Parse error on line "+(M+1)+": Unexpected "+(w==J?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Q,{text:v.match,token:this.terminals_[w]||w,line:v.yylineno,loc:L,expected:G})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+w);switch(N[0]){case 1:d.push(w),y.push(v.yytext),o.push(v.yylloc),d.push(N[1]),w=null,P=v.yyleng,k=v.yytext,M=v.yylineno,L=v.yylloc;break;case 2:if($=this.productions_[N[1]][1],V.$=y[y.length-$],V._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},A&&(V._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),K=this.performAction.apply(V,[k,P,M,E.yy,N[1],y,o].concat(O)),typeof K<"u")return K;$&&(d=d.slice(0,-1*$*2),y=y.slice(0,-1*$),o=o.slice(0,-1*$)),d.push(this.productions_[N[1]][0]),y.push(V.$),o.push(V._$),et=S[d[d.length-2]][d[d.length-1]],d.push(et);break;case 3:return!0}}return!0},"parse")},x=function(){var f={EOF:1,parseError:s(function(a,d){if(this.yy.parser)this.yy.parser.parseError(a,d);else throw new Error(a)},"parseError"),setInput:s(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var a=i.length,d=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===u.length?this.yylloc.first_column:0)+u[u.length-d.length].length-d[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/static/js/md-xychartDiagram-6QU3TZC5-avPt4Gwi.js b/static/js/md-xychartDiagram-6QU3TZC5-DCXKT1pK.js similarity index 99% rename from static/js/md-xychartDiagram-6QU3TZC5-avPt4Gwi.js rename to static/js/md-xychartDiagram-6QU3TZC5-DCXKT1pK.js index 337efc1..7d9ebc1 100644 --- a/static/js/md-xychartDiagram-6QU3TZC5-avPt4Gwi.js +++ b/static/js/md-xychartDiagram-6QU3TZC5-DCXKT1pK.js @@ -1,4 +1,4 @@ -import{_ as a,aF as ui,l as Ft,K as Bt,I as gi,D as At,C as Xt,B as xi,i as di,q as Nt,s as pi,g as fi,p as mi,b as yi,c as bi,v as Ai,G as wi,k as Ci}from"./md-index-BhYxDPe5.js";import{i as Si}from"./md-init-Gi6I4Gst.js";import{o as _i}from"./md-ordinal-CxVaQH2l.js";import{l as Wt}from"./md-linear-Co0c8OqW.js";function ki(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(T.yylloc={});var gt=T.yylloc;r.push(gt);var li=T.options&&T.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ci(L){g.length=g.length-2*L,A.length=A.length-L,r.length=r.length-L}a(ci,"popStack");function Mt(){var L;return L=x.pop()||T.lex()||It,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=c.symbols_[L]||L),L}a(Mt,"lex");for(var P,O,M,xt,z={},at,V,Vt,rt;;){if(O=g[g.length-1],this.defaultActions[O]?M=this.defaultActions[O]:((P===null||typeof P>"u")&&(P=Mt()),M=Z[O]&&Z[O][P]),typeof M>"u"||!M.length||!M[0]){var dt="";rt=[];for(at in Z[O])this.terminals_[at]&&at>oi&&rt.push("'"+this.terminals_[at]+"'");T.showPosition?dt="Parse error on line "+(nt+1)+`: +import{_ as a,aF as ui,l as Ft,K as Bt,I as gi,D as At,C as Xt,B as xi,i as di,q as Nt,s as pi,g as fi,p as mi,b as yi,c as bi,v as Ai,G as wi,k as Ci}from"./md-index-ByjuzIYZ.js";import{i as Si}from"./md-init-Gi6I4Gst.js";import{o as _i}from"./md-ordinal-CxVaQH2l.js";import{l as Wt}from"./md-linear-D0BfzCsi.js";function ki(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(T.yylloc={});var gt=T.yylloc;r.push(gt);var li=T.options&&T.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ci(L){g.length=g.length-2*L,A.length=A.length-L,r.length=r.length-L}a(ci,"popStack");function Mt(){var L;return L=x.pop()||T.lex()||It,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=c.symbols_[L]||L),L}a(Mt,"lex");for(var P,O,M,xt,z={},at,V,Vt,rt;;){if(O=g[g.length-1],this.defaultActions[O]?M=this.defaultActions[O]:((P===null||typeof P>"u")&&(P=Mt()),M=Z[O]&&Z[O][P]),typeof M>"u"||!M.length||!M[0]){var dt="";rt=[];for(at in Z[O])this.terminals_[at]&&at>oi&&rt.push("'"+this.terminals_[at]+"'");T.showPosition?dt="Parse error on line "+(nt+1)+`: `+T.showPosition()+` Expecting `+rt.join(", ")+", got '"+(this.terminals_[P]||P)+"'":dt="Parse error on line "+(nt+1)+": Unexpected "+(P==It?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(dt,{text:T.match,token:this.terminals_[P]||P,line:T.yylineno,loc:gt,expected:rt})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+P);switch(M[0]){case 1:g.push(P),A.push(T.yytext),r.push(T.yylloc),g.push(M[1]),P=null,Et=T.yyleng,d=T.yytext,nt=T.yylineno,gt=T.yylloc;break;case 2:if(V=this.productions_[M[1]][1],z.$=A[A.length-V],z._$={first_line:r[r.length-(V||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(V||1)].first_column,last_column:r[r.length-1].last_column},li&&(z._$.range=[r[r.length-(V||1)].range[0],r[r.length-1].range[1]]),xt=this.performAction.apply(z,[d,Et,nt,W.yy,M[1],A,r].concat(hi)),typeof xt<"u")return xt;V&&(g=g.slice(0,-1*V*2),A=A.slice(0,-1*V),r=r.slice(0,-1*V)),g.push(this.productions_[M[1]][0]),A.push(z.$),r.push(z._$),Vt=Z[g[g.length-2]][g[g.length-1]],g.push(Vt);break;case 3:return!0}}return!0},"parse")},ri=function(){var B={EOF:1,parseError:a(function(c,g){if(this.yy.parser)this.yy.parser.parseError(c,g);else throw new Error(c)},"parseError"),setInput:a(function(h,c){return this.yy=c||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var c=h.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:a(function(h){var c=h.length,g=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(h){this.unput(this.match.slice(h))},"less"),pastInput:a(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var h=this.pastInput(),c=new Array(h.length+1).join("-");return h+this.upcomingInput()+`