var gp=Object.defineProperty;var mp=(e,t,n)=>t in e?gp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Te=(e,t,n)=>(mp(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))i(p);new MutationObserver(p=>{for(const u of p)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function n(p){const u={};return p.integrity&&(u.integrity=p.integrity),p.referrerPolicy&&(u.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?u.credentials="include":p.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(p){if(p.ep)return;p.ep=!0;const u=n(p);fetch(p.href,u)}})();function Tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable})),n.push.apply(n,i)}return n}function pe(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);n-1;p--){var u=n[p],d=(u.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(d)>-1&&(i=u)}return Ve.head.insertBefore(t,i),e}}var Hp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function lr(){for(var e=12,t="";e-- >0;)t+=Hp[Math.random()*62|0];return t}function ki(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ka(e){return e.classList?ki(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function Pu(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Up(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(Pu(e[n]),'" ')},"").trim()}function Ro(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ea(e){return e.size!==Ht.size||e.x!==Ht.x||e.y!==Ht.y||e.rotate!==Ht.rotate||e.flipX||e.flipY}function zp(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,p={transform:"translate(".concat(n/2," 256)")},u="translate(".concat(t.x*32,", ").concat(t.y*32,") "),d="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),g="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(u," ").concat(d," ").concat(g)},h={transform:"translate(".concat(i/2*-1," -256)")};return{outer:p,inner:s,path:h}}function Vp(e){var t=e.transform,n=e.width,i=n===void 0?Fs:n,p=e.height,u=p===void 0?Fs:p,d=e.startCentered,g=d===void 0?!1:d,s="";return g&&Tu?s+="translate(".concat(t.x/pn-i/2,"em, ").concat(t.y/pn-u/2,"em) "):g?s+="translate(calc(-50% + ".concat(t.x/pn,"em), calc(-50% + ").concat(t.y/pn,"em)) "):s+="translate(".concat(t.x/pn,"em, ").concat(t.y/pn,"em) "),s+="scale(".concat(t.size/pn*(t.flipX?-1:1),", ").concat(t.size/pn*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var jp=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; } svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { overflow: visible; box-sizing: content-box; } .svg-inline--fa { display: var(--fa-display, inline-block); height: 1em; overflow: visible; vertical-align: -0.125em; } .svg-inline--fa.fa-2xs { vertical-align: 0.1em; } .svg-inline--fa.fa-xs { vertical-align: 0em; } .svg-inline--fa.fa-sm { vertical-align: -0.0714285705em; } .svg-inline--fa.fa-lg { vertical-align: -0.2em; } .svg-inline--fa.fa-xl { vertical-align: -0.25em; } .svg-inline--fa.fa-2xl { vertical-align: -0.3125em; } .svg-inline--fa.fa-pull-left { margin-right: var(--fa-pull-margin, 0.3em); width: auto; } .svg-inline--fa.fa-pull-right { margin-left: var(--fa-pull-margin, 0.3em); width: auto; } .svg-inline--fa.fa-li { width: var(--fa-li-width, 2em); top: 0.25em; } .svg-inline--fa.fa-fw { width: var(--fa-fw-width, 1.25em); } .fa-layers svg.svg-inline--fa { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; } .fa-layers-counter, .fa-layers-text { display: inline-block; position: absolute; text-align: center; } .fa-layers { display: inline-block; height: 1em; position: relative; text-align: center; vertical-align: -0.125em; width: 1em; } .fa-layers svg.svg-inline--fa { -webkit-transform-origin: center center; transform-origin: center center; } .fa-layers-text { left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); -webkit-transform-origin: center center; transform-origin: center center; } .fa-layers-counter { background-color: var(--fa-counter-background-color, #ff253a); border-radius: var(--fa-counter-border-radius, 1em); box-sizing: border-box; color: var(--fa-inverse, #fff); line-height: var(--fa-counter-line-height, 1); max-width: var(--fa-counter-max-width, 5em); min-width: var(--fa-counter-min-width, 1.5em); overflow: hidden; padding: var(--fa-counter-padding, 0.25em 0.5em); right: var(--fa-right, 0); text-overflow: ellipsis; top: var(--fa-top, 0); -webkit-transform: scale(var(--fa-counter-scale, 0.25)); transform: scale(var(--fa-counter-scale, 0.25)); -webkit-transform-origin: top right; transform-origin: top right; } .fa-layers-bottom-right { bottom: var(--fa-bottom, 0); right: var(--fa-right, 0); top: auto; -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: bottom right; transform-origin: bottom right; } .fa-layers-bottom-left { bottom: var(--fa-bottom, 0); left: var(--fa-left, 0); right: auto; top: auto; -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: bottom left; transform-origin: bottom left; } .fa-layers-top-right { top: var(--fa-top, 0); right: var(--fa-right, 0); -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: top right; transform-origin: top right; } .fa-layers-top-left { left: var(--fa-left, 0); right: auto; top: var(--fa-top, 0); -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: top left; transform-origin: top left; } .fa-1x { font-size: 1em; } .fa-2x { font-size: 2em; } .fa-3x { font-size: 3em; } .fa-4x { font-size: 4em; } .fa-5x { font-size: 5em; } .fa-6x { font-size: 6em; } .fa-7x { font-size: 7em; } .fa-8x { font-size: 8em; } .fa-9x { font-size: 9em; } .fa-10x { font-size: 10em; } .fa-2xs { font-size: 0.625em; line-height: 0.1em; vertical-align: 0.225em; } .fa-xs { font-size: 0.75em; line-height: 0.0833333337em; vertical-align: 0.125em; } .fa-sm { font-size: 0.875em; line-height: 0.0714285718em; vertical-align: 0.0535714295em; } .fa-lg { font-size: 1.25em; line-height: 0.05em; vertical-align: -0.075em; } .fa-xl { font-size: 1.5em; line-height: 0.0416666682em; vertical-align: -0.125em; } .fa-2xl { font-size: 2em; line-height: 0.03125em; vertical-align: -0.1875em; } .fa-fw { text-align: center; width: 1.25em; } .fa-ul { list-style-type: none; margin-left: var(--fa-li-margin, 2.5em); padding-left: 0; } .fa-ul > li { position: relative; } .fa-li { left: calc(var(--fa-li-width, 2em) * -1); position: absolute; text-align: center; width: var(--fa-li-width, 2em); line-height: inherit; } .fa-border { border-color: var(--fa-border-color, #eee); border-radius: var(--fa-border-radius, 0.1em); border-style: var(--fa-border-style, solid); border-width: var(--fa-border-width, 0.08em); padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); } .fa-pull-left { float: left; margin-right: var(--fa-pull-margin, 0.3em); } .fa-pull-right { float: right; margin-left: var(--fa-pull-margin, 0.3em); } .fa-beat { -webkit-animation-name: fa-beat; animation-name: fa-beat; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-bounce { -webkit-animation-name: fa-bounce; animation-name: fa-bounce; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); } .fa-fade { -webkit-animation-name: fa-fade; animation-name: fa-fade; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-beat-fade { -webkit-animation-name: fa-beat-fade; animation-name: fa-beat-fade; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-flip { -webkit-animation-name: fa-flip; animation-name: fa-flip; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-shake { -webkit-animation-name: fa-shake; animation-name: fa-shake; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, linear); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin { -webkit-animation-name: fa-spin; animation-name: fa-spin; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 2s); animation-duration: var(--fa-animation-duration, 2s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, linear); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin-reverse { --fa-animation-direction: reverse; } .fa-pulse, .fa-spin-pulse { -webkit-animation-name: fa-spin; animation-name: fa-spin; -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); animation-timing-function: var(--fa-animation-timing, steps(8)); } @media (prefers-reduced-motion: reduce) { .fa-beat, .fa-bounce, .fa-fade, .fa-beat-fade, .fa-flip, .fa-pulse, .fa-shake, .fa-spin, .fa-spin-pulse { -webkit-animation-delay: -1ms; animation-delay: -1ms; -webkit-animation-duration: 1ms; animation-duration: 1ms; -webkit-animation-iteration-count: 1; animation-iteration-count: 1; -webkit-transition-delay: 0s; transition-delay: 0s; -webkit-transition-duration: 0s; transition-duration: 0s; } } @-webkit-keyframes fa-beat { 0%, 90% { -webkit-transform: scale(1); transform: scale(1); } 45% { -webkit-transform: scale(var(--fa-beat-scale, 1.25)); transform: scale(var(--fa-beat-scale, 1.25)); } } @keyframes fa-beat { 0%, 90% { -webkit-transform: scale(1); transform: scale(1); } 45% { -webkit-transform: scale(var(--fa-beat-scale, 1.25)); transform: scale(var(--fa-beat-scale, 1.25)); } } @-webkit-keyframes fa-bounce { 0% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 10% { -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); } 50% { -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 100% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } } @keyframes fa-bounce { 0% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 10% { -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); } 50% { -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 100% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } } @-webkit-keyframes fa-fade { 50% { opacity: var(--fa-fade-opacity, 0.4); } } @keyframes fa-fade { 50% { opacity: var(--fa-fade-opacity, 0.4); } } @-webkit-keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); -webkit-transform: scale(1); transform: scale(1); } 50% { opacity: 1; -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); -webkit-transform: scale(1); transform: scale(1); } 50% { opacity: 1; -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @-webkit-keyframes fa-flip { 50% { -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @keyframes fa-flip { 50% { -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @-webkit-keyframes fa-shake { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 4% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 8%, 24% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 12%, 28% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 20% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 32% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 36% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 40%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @keyframes fa-shake { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 4% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 8%, 24% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 12%, 28% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 20% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 32% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 36% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 40%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @-webkit-keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } .fa-rotate-90 { -webkit-transform: rotate(90deg); transform: rotate(90deg); } .fa-rotate-180 { -webkit-transform: rotate(180deg); transform: rotate(180deg); } .fa-rotate-270 { -webkit-transform: rotate(270deg); transform: rotate(270deg); } .fa-flip-horizontal { -webkit-transform: scale(-1, 1); transform: scale(-1, 1); } .fa-flip-vertical { -webkit-transform: scale(1, -1); transform: scale(1, -1); } .fa-flip-both, .fa-flip-horizontal.fa-flip-vertical { -webkit-transform: scale(-1, -1); transform: scale(-1, -1); } .fa-rotate-by { -webkit-transform: rotate(var(--fa-rotate-angle, none)); transform: rotate(var(--fa-rotate-angle, none)); } .fa-stack { display: inline-block; vertical-align: middle; height: 2em; position: relative; width: 2.5em; } .fa-stack-1x, .fa-stack-2x { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; z-index: var(--fa-stack-z-index, auto); } .svg-inline--fa.fa-stack-1x { height: 1em; width: 1.25em; } .svg-inline--fa.fa-stack-2x { height: 2em; width: 2.5em; } .fa-inverse { color: var(--fa-inverse, #fff); } .sr-only, .fa-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; } .sr-only-focusable:not(:focus), .fa-sr-only-focusable:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .svg-inline--fa .fa-primary { fill: var(--fa-primary-color, currentColor); opacity: var(--fa-primary-opacity, 1); } .svg-inline--fa .fa-secondary { fill: var(--fa-secondary-color, currentColor); opacity: var(--fa-secondary-opacity, 0.4); } .svg-inline--fa.fa-swap-opacity .fa-primary { opacity: var(--fa-secondary-opacity, 0.4); } .svg-inline--fa.fa-swap-opacity .fa-secondary { opacity: var(--fa-primary-opacity, 1); } .svg-inline--fa mask .fa-primary, .svg-inline--fa mask .fa-secondary { fill: black; } .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); }`;function Du(){var e=Lu,t=Mu,n=ye.cssPrefix,i=ye.replacementClass,p=jp;if(n!==e||i!==t){var u=new RegExp("\\.".concat(e,"\\-"),"g"),d=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");p=p.replace(u,".".concat(n,"-")).replace(d,"--".concat(n,"-")).replace(g,".".concat(i))}return p}var Pl=!1;function fs(){ye.autoAddCss&&!Pl&&(Wp(Du()),Pl=!0)}var Gp={mixout:function(){return{dom:{css:Du,insertCss:fs}}},hooks:function(){return{beforeDOMElementCreation:function(){fs()},beforeI2svg:function(){fs()}}}},sn=xn||{};sn[on]||(sn[on]={});sn[on].styles||(sn[on].styles={});sn[on].hooks||(sn[on].hooks={});sn[on].shims||(sn[on].shims=[]);var It=sn[on],Bu=[],Kp=function e(){Ve.removeEventListener("DOMContentLoaded",e),co=1,Bu.map(function(t){return t()})},co=!1;ln&&(co=(Ve.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ve.readyState),co||Ve.addEventListener("DOMContentLoaded",Kp));function Yp(e){ln&&(co?setTimeout(e,0):Bu.push(e))}function Cr(e){var t=e.tag,n=e.attributes,i=n===void 0?{}:n,p=e.children,u=p===void 0?[]:p;return typeof e=="string"?Pu(e):"<".concat(t," ").concat(Up(i),">").concat(u.map(Cr).join(""),"")}function Dl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Xp=function(t,n){return function(i,p,u,d){return t.call(n,i,p,u,d)}},ds=function(t,n,i,p){var u=Object.keys(t),d=u.length,g=p!==void 0?Xp(n,p):n,s,h,o;for(i===void 0?(s=1,o=t[u[0]]):(s=0,o=i);s=55296&&p<=56319&&n=55296&&i<=56319&&n>t+1&&(p=e.charCodeAt(t+1),p>=56320&&p<=57343)?(i-55296)*1024+p-56320+65536:i}function Bl(e){return Object.keys(e).reduce(function(t,n){var i=e[n],p=!!i.icon;return p?t[i.iconName]=i.icon:t[n]=i,t},{})}function Ds(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.skipHooks,p=i===void 0?!1:i,u=Bl(t);typeof It.hooks.addPack=="function"&&!p?It.hooks.addPack(e,Bl(t)):It.styles[e]=pe(pe({},It.styles[e]||{}),u),e==="fas"&&Ds("fa",t)}var Dr,Br,Wr,si=It.styles,Jp=It.shims,qp=(Dr={},et(Dr,ze,Object.values(sr[ze])),et(Dr,Xe,Object.values(sr[Xe])),Dr),Ra=null,Wu={},Hu={},Uu={},zu={},Vu={},eg=(Br={},et(Br,ze,Object.keys(rr[ze])),et(Br,Xe,Object.keys(rr[Xe])),Br);function tg(e){return~Fp.indexOf(e)}function ng(e,t){var n=t.split("-"),i=n[0],p=n.slice(1).join("-");return i===e&&p!==""&&!tg(p)?p:null}var ju=function(){var t=function(u){return ds(si,function(d,g,s){return d[s]=ds(g,u,{}),d},{})};Wu=t(function(p,u,d){if(u[3]&&(p[u[3]]=d),u[2]){var g=u[2].filter(function(s){return typeof s=="number"});g.forEach(function(s){p[s.toString(16)]=d})}return p}),Hu=t(function(p,u,d){if(p[d]=d,u[2]){var g=u[2].filter(function(s){return typeof s=="string"});g.forEach(function(s){p[s]=d})}return p}),Vu=t(function(p,u,d){var g=u[2];return p[d]=d,g.forEach(function(s){p[s]=d}),p});var n="far"in si||ye.autoFetchSvg,i=ds(Jp,function(p,u){var d=u[0],g=u[1],s=u[2];return g==="far"&&!n&&(g="fas"),typeof d=="string"&&(p.names[d]={prefix:g,iconName:s}),typeof d=="number"&&(p.unicodes[d.toString(16)]={prefix:g,iconName:s}),p},{names:{},unicodes:{}});Uu=i.names,zu=i.unicodes,Ra=To(ye.styleDefault,{family:ye.familyDefault})};Bp(function(e){Ra=To(e.styleDefault,{family:ye.familyDefault})});ju();function Ta(e,t){return(Wu[e]||{})[t]}function ig(e,t){return(Hu[e]||{})[t]}function Un(e,t){return(Vu[e]||{})[t]}function Gu(e){return Uu[e]||{prefix:null,iconName:null}}function rg(e){var t=zu[e],n=Ta("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function kn(){return Ra}var La=function(){return{prefix:null,iconName:null,rest:[]}};function To(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,i=n===void 0?ze:n,p=rr[i][e],u=or[i][e]||or[i][p],d=e in It.styles?e:null;return u||d||null}var Wl=(Wr={},et(Wr,ze,Object.keys(sr[ze])),et(Wr,Xe,Object.keys(sr[Xe])),Wr);function Lo(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.skipLookups,p=i===void 0?!1:i,u=(t={},et(t,ze,"".concat(ye.cssPrefix,"-").concat(ze)),et(t,Xe,"".concat(ye.cssPrefix,"-").concat(Xe)),t),d=null,g=ze;(e.includes(u[ze])||e.some(function(h){return Wl[ze].includes(h)}))&&(g=ze),(e.includes(u[Xe])||e.some(function(h){return Wl[Xe].includes(h)}))&&(g=Xe);var s=e.reduce(function(h,o){var r=ng(ye.cssPrefix,o);if(si[o]?(o=qp[g].includes(o)?Rp[g][o]:o,d=o,h.prefix=o):eg[g].indexOf(o)>-1?(d=o,h.prefix=To(o,{family:g})):r?h.iconName=r:o!==ye.replacementClass&&o!==u[ze]&&o!==u[Xe]&&h.rest.push(o),!p&&h.prefix&&h.iconName){var l=d==="fa"?Gu(h.iconName):{},c=Un(h.prefix,h.iconName);l.prefix&&(d=null),h.iconName=l.iconName||c||h.iconName,h.prefix=l.prefix||h.prefix,h.prefix==="far"&&!si.far&&si.fas&&!ye.autoFetchSvg&&(h.prefix="fas")}return h},La());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&g===Xe&&(si.fass||ye.autoFetchSvg)&&(s.prefix="fass",s.iconName=Un(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||d==="fa")&&(s.prefix=kn()||"fas"),s}var og=function(){function e(){vp(this,e),this.definitions={}}return yp(e,[{key:"add",value:function(){for(var n=this,i=arguments.length,p=new Array(i),u=0;u0&&o.forEach(function(r){typeof r=="string"&&(n[g][r]=h)}),n[g][s]=h}),n}}]),e}(),Hl=[],ai={},ci={},sg=Object.keys(ci);function ag(e,t){var n=t.mixoutsTo;return Hl=e,ai={},Object.keys(ci).forEach(function(i){sg.indexOf(i)===-1&&delete ci[i]}),Hl.forEach(function(i){var p=i.mixout?i.mixout():{};if(Object.keys(p).forEach(function(d){typeof p[d]=="function"&&(n[d]=p[d]),lo(p[d])==="object"&&Object.keys(p[d]).forEach(function(g){n[d]||(n[d]={}),n[d][g]=p[d][g]})}),i.hooks){var u=i.hooks();Object.keys(u).forEach(function(d){ai[d]||(ai[d]=[]),ai[d].push(u[d])})}i.provides&&i.provides(ci)}),n}function Bs(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),p=2;p1?t-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:{};return ln?(Xn("beforeI2svg",t),an("pseudoElements2svg",t),an("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ye.autoReplaceSvg===!1&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,Yp(function(){hg({autoReplaceSvgRoot:n}),Xn("watch",t)})}},ug={icon:function(t){if(t===null)return null;if(lo(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Un(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],i=To(t[0]);return{prefix:i,iconName:Un(i,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ye.cssPrefix,"-"))>-1||t.match(Tp))){var p=Lo(t.split(" "),{skipLookups:!0});return{prefix:p.prefix||kn(),iconName:Un(p.prefix,p.iconName)||p.iconName}}if(typeof t=="string"){var u=kn();return{prefix:u,iconName:Un(u,t)||t}}}},_t={noAuto:lg,config:ye,dom:cg,parse:ug,library:Ku,findIconDefinition:Ws,toHtml:Cr},hg=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,i=n===void 0?Ve:n;(Object.keys(It.styles).length>0||ye.autoFetchSvg)&&ln&&ye.autoReplaceSvg&&_t.dom.i2svg({node:i})};function Mo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(i){return Cr(i)})}}),Object.defineProperty(e,"node",{get:function(){if(ln){var i=Ve.createElement("div");return i.innerHTML=e.html,i.children}}}),e}function fg(e){var t=e.children,n=e.main,i=e.mask,p=e.attributes,u=e.styles,d=e.transform;if(Ea(d)&&n.found&&!i.found){var g=n.width,s=n.height,h={x:g/s/2,y:.5};p.style=Ro(pe(pe({},u),{},{"transform-origin":"".concat(h.x+d.x/16,"em ").concat(h.y+d.y/16,"em")}))}return[{tag:"svg",attributes:p,children:t}]}function dg(e){var t=e.prefix,n=e.iconName,i=e.children,p=e.attributes,u=e.symbol,d=u===!0?"".concat(t,"-").concat(ye.cssPrefix,"-").concat(n):u;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:pe(pe({},p),{},{id:d}),children:i}]}]}function Ma(e){var t=e.icons,n=t.main,i=t.mask,p=e.prefix,u=e.iconName,d=e.transform,g=e.symbol,s=e.title,h=e.maskId,o=e.titleId,r=e.extra,l=e.watchable,c=l===void 0?!1:l,a=i.found?i:n,f=a.width,m=a.height,v=p==="fak",b=[ye.replacementClass,u?"".concat(ye.cssPrefix,"-").concat(u):""].filter(function(k){return r.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(r.classes).join(" "),x={children:[],attributes:pe(pe({},r.attributes),{},{"data-prefix":p,"data-icon":u,class:b,role:r.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(m)})},C=v&&!~r.classes.indexOf("fa-fw")?{width:"".concat(f/m*16*.0625,"em")}:{};c&&(x.attributes[Yn]=""),s&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(o||lr())},children:[s]}),delete x.attributes.title);var S=pe(pe({},x),{},{prefix:p,iconName:u,main:n,mask:i,maskId:h,transform:d,symbol:g,styles:pe(pe({},C),r.styles)}),$=i.found&&n.found?an("generateAbstractMask",S)||{children:[],attributes:{}}:an("generateAbstractIcon",S)||{children:[],attributes:{}},L=$.children,R=$.attributes;return S.children=L,S.attributes=R,g?dg(S):fg(S)}function Ul(e){var t=e.content,n=e.width,i=e.height,p=e.transform,u=e.title,d=e.extra,g=e.watchable,s=g===void 0?!1:g,h=pe(pe(pe({},d.attributes),u?{title:u}:{}),{},{class:d.classes.join(" ")});s&&(h[Yn]="");var o=pe({},d.styles);Ea(p)&&(o.transform=Vp({transform:p,startCentered:!0,width:n,height:i}),o["-webkit-transform"]=o.transform);var r=Ro(o);r.length>0&&(h.style=r);var l=[];return l.push({tag:"span",attributes:h,children:[t]}),u&&l.push({tag:"span",attributes:{class:"sr-only"},children:[u]}),l}function pg(e){var t=e.content,n=e.title,i=e.extra,p=pe(pe(pe({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),u=Ro(i.styles);u.length>0&&(p.style=u);var d=[];return d.push({tag:"span",attributes:p,children:[t]}),n&&d.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),d}var ps=It.styles;function Hs(e){var t=e[0],n=e[1],i=e.slice(4),p=_a(i,1),u=p[0],d=null;return Array.isArray(u)?d={tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Hn.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Hn.SECONDARY),fill:"currentColor",d:u[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Hn.PRIMARY),fill:"currentColor",d:u[1]}}]}:d={tag:"path",attributes:{fill:"currentColor",d:u}},{found:!0,width:t,height:n,icon:d}}var gg={found:!1,width:512,height:512};function mg(e,t){!Ou&&!ye.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Us(e,t){var n=t;return t==="fa"&&ye.styleDefault!==null&&(t=kn()),new Promise(function(i,p){if(an("missingIconAbstract"),n==="fa"){var u=Gu(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&ps[t]&&ps[t][e]){var d=ps[t][e];return i(Hs(d))}mg(e,t),i(pe(pe({},gg),{},{icon:ye.showMissingIcons&&e?an("missingIconAbstract")||{}:{}}))})}var zl=function(){},zs=ye.measurePerformance&&Mr&&Mr.mark&&Mr.measure?Mr:{mark:zl,measure:zl},zi='FA "6.4.2"',vg=function(t){return zs.mark("".concat(zi," ").concat(t," begins")),function(){return Yu(t)}},Yu=function(t){zs.mark("".concat(zi," ").concat(t," ends")),zs.measure("".concat(zi," ").concat(t),"".concat(zi," ").concat(t," begins"),"".concat(zi," ").concat(t," ends"))},Oa={begin:vg,end:Yu},eo=function(){};function Vl(e){var t=e.getAttribute?e.getAttribute(Yn):null;return typeof t=="string"}function yg(e){var t=e.getAttribute?e.getAttribute(Sa):null,n=e.getAttribute?e.getAttribute(Aa):null;return t&&n}function bg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function wg(){if(ye.autoReplaceSvg===!0)return to.replace;var e=to[ye.autoReplaceSvg];return e||to.replace}function $g(e){return Ve.createElementNS("http://www.w3.org/2000/svg",e)}function _g(e){return Ve.createElement(e)}function Xu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,i=n===void 0?e.tag==="svg"?$g:_g:n;if(typeof e=="string")return Ve.createTextNode(e);var p=i(e.tag);Object.keys(e.attributes||[]).forEach(function(d){p.setAttribute(d,e.attributes[d])});var u=e.children||[];return u.forEach(function(d){p.appendChild(Xu(d,{ceFn:i}))}),p}function Cg(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var to={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(p){n.parentNode.insertBefore(Xu(p),n)}),n.getAttribute(Yn)===null&&ye.keepOriginalSource){var i=Ve.createComment(Cg(n));n.parentNode.replaceChild(i,n)}else n.remove()},nest:function(t){var n=t[0],i=t[1];if(~ka(n).indexOf(ye.replacementClass))return to.replace(t);var p=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var u=i[0].attributes.class.split(" ").reduce(function(g,s){return s===ye.replacementClass||s.match(p)?g.toSvg.push(s):g.toNode.push(s),g},{toNode:[],toSvg:[]});i[0].attributes.class=u.toSvg.join(" "),u.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",u.toNode.join(" "))}var d=i.map(function(g){return Cr(g)}).join(` `);n.setAttribute(Yn,""),n.innerHTML=d}};function jl(e){e()}function Zu(e,t){var n=typeof t=="function"?t:eo;if(e.length===0)n();else{var i=jl;ye.mutateApproach===kp&&(i=xn.requestAnimationFrame||jl),i(function(){var p=wg(),u=Oa.begin("mutate");e.map(p),u(),n()})}}var Ia=!1;function Qu(){Ia=!0}function Vs(){Ia=!1}var uo=null;function Gl(e){if(Fl&&ye.observeMutations){var t=e.treeCallback,n=t===void 0?eo:t,i=e.nodeCallback,p=i===void 0?eo:i,u=e.pseudoElementsCallback,d=u===void 0?eo:u,g=e.observeMutationsRoot,s=g===void 0?Ve:g;uo=new Fl(function(h){if(!Ia){var o=kn();ki(h).forEach(function(r){if(r.type==="childList"&&r.addedNodes.length>0&&!Vl(r.addedNodes[0])&&(ye.searchPseudoElements&&d(r.target),n(r.target)),r.type==="attributes"&&r.target.parentNode&&ye.searchPseudoElements&&d(r.target.parentNode),r.type==="attributes"&&Vl(r.target)&&~Ip.indexOf(r.attributeName))if(r.attributeName==="class"&&yg(r.target)){var l=Lo(ka(r.target)),c=l.prefix,a=l.iconName;r.target.setAttribute(Sa,c||o),a&&r.target.setAttribute(Aa,a)}else bg(r.target)&&p(r.target)})}}),ln&&uo.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Sg(){uo&&uo.disconnect()}function Ag(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(i,p){var u=p.split(":"),d=u[0],g=u.slice(1);return d&&g.length>0&&(i[d]=g.join(":").trim()),i},{})),n}function xg(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"",p=Lo(ka(e));return p.prefix||(p.prefix=kn()),t&&n&&(p.prefix=t,p.iconName=n),p.iconName&&p.prefix||(p.prefix&&i.length>0&&(p.iconName=ig(p.prefix,e.innerText)||Ta(p.prefix,Ps(e.innerText))),!p.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(p.iconName=e.firstChild.data)),p}function kg(e){var t=ki(e.attributes).reduce(function(p,u){return p.name!=="class"&&p.name!=="style"&&(p[u.name]=u.value),p},{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return ye.autoA11y&&(n?t["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(i||lr()):(t["aria-hidden"]="true",t.focusable="false")),t}function Eg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ht,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Kl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=xg(e),i=n.iconName,p=n.prefix,u=n.rest,d=kg(e),g=Bs("parseNodeAttributes",{},e),s=t.styleParser?Ag(e):[];return pe({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:p,transform:Ht,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:u,styles:s,attributes:d}},g)}var Rg=It.styles;function Ju(e){var t=ye.autoReplaceSvg==="nest"?Kl(e,{styleParser:!1}):Kl(e);return~t.extra.classes.indexOf(Iu)?an("generateLayersText",e,t):an("generateSvgReplacementMutation",e,t)}var En=new Set;xa.map(function(e){En.add("fa-".concat(e))});Object.keys(rr[ze]).map(En.add.bind(En));Object.keys(rr[Xe]).map(En.add.bind(En));En=$r(En);function Yl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ln)return Promise.resolve();var n=Ve.documentElement.classList,i=function(r){return n.add("".concat(Nl,"-").concat(r))},p=function(r){return n.remove("".concat(Nl,"-").concat(r))},u=ye.autoFetchSvg?En:xa.map(function(o){return"fa-".concat(o)}).concat(Object.keys(Rg));u.includes("fa")||u.push("fa");var d=[".".concat(Iu,":not([").concat(Yn,"])")].concat(u.map(function(o){return".".concat(o,":not([").concat(Yn,"])")})).join(", ");if(d.length===0)return Promise.resolve();var g=[];try{g=ki(e.querySelectorAll(d))}catch{}if(g.length>0)i("pending"),p("complete");else return Promise.resolve();var s=Oa.begin("onTree"),h=g.reduce(function(o,r){try{var l=Ju(r);l&&o.push(l)}catch(c){Ou||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise(function(o,r){Promise.all(h).then(function(l){Zu(l,function(){i("active"),i("complete"),p("pending"),typeof t=="function"&&t(),s(),o()})}).catch(function(l){s(),r(l)})})}function Tg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ju(e).then(function(n){n&&Zu([n],t)})}function Lg(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(t||{}).icon?t:Ws(t||{}),p=n.mask;return p&&(p=(p||{}).icon?p:Ws(p||{})),e(i,pe(pe({},n),{},{mask:p}))}}var Mg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,p=i===void 0?Ht:i,u=n.symbol,d=u===void 0?!1:u,g=n.mask,s=g===void 0?null:g,h=n.maskId,o=h===void 0?null:h,r=n.title,l=r===void 0?null:r,c=n.titleId,a=c===void 0?null:c,f=n.classes,m=f===void 0?[]:f,v=n.attributes,b=v===void 0?{}:v,x=n.styles,C=x===void 0?{}:x;if(t){var S=t.prefix,$=t.iconName,L=t.icon;return Mo(pe({type:"icon"},t),function(){return Xn("beforeDOMElementCreation",{iconDefinition:t,params:n}),ye.autoA11y&&(l?b["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(a||lr()):(b["aria-hidden"]="true",b.focusable="false")),Ma({icons:{main:Hs(L),mask:s?Hs(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:$,transform:pe(pe({},Ht),p),symbol:d,title:l,maskId:o,titleId:a,extra:{attributes:b,styles:C,classes:m}})})}},Og={mixout:function(){return{icon:Lg(Mg)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Yl,n.nodeCallback=Tg,n}}},provides:function(t){t.i2svg=function(n){var i=n.node,p=i===void 0?Ve:i,u=n.callback,d=u===void 0?function(){}:u;return Yl(p,d)},t.generateSvgReplacementMutation=function(n,i){var p=i.iconName,u=i.title,d=i.titleId,g=i.prefix,s=i.transform,h=i.symbol,o=i.mask,r=i.maskId,l=i.extra;return new Promise(function(c,a){Promise.all([Us(p,g),o.iconName?Us(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(f){var m=_a(f,2),v=m[0],b=m[1];c([n,Ma({icons:{main:v,mask:b},prefix:g,iconName:p,transform:s,symbol:h,maskId:r,title:u,titleId:d,extra:l,watchable:!0})])}).catch(a)})},t.generateAbstractIcon=function(n){var i=n.children,p=n.attributes,u=n.main,d=n.transform,g=n.styles,s=Ro(g);s.length>0&&(p.style=s);var h;return Ea(d)&&(h=an("generateAbstractTransformGrouping",{main:u,transform:d,containerWidth:u.width,iconWidth:u.width})),i.push(h||u.icon),{children:i,attributes:p}}}},Ig={mixout:function(){return{layer:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.classes,u=p===void 0?[]:p;return Mo({type:"layer"},function(){Xn("beforeDOMElementCreation",{assembler:n,params:i});var d=[];return n(function(g){Array.isArray(g)?g.map(function(s){d=d.concat(s.abstract)}):d=d.concat(g.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat($r(u)).join(" ")},children:d}]})}}}},Fg={mixout:function(){return{counter:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.title,u=p===void 0?null:p,d=i.classes,g=d===void 0?[]:d,s=i.attributes,h=s===void 0?{}:s,o=i.styles,r=o===void 0?{}:o;return Mo({type:"counter",content:n},function(){return Xn("beforeDOMElementCreation",{content:n,params:i}),pg({content:n.toString(),title:u,extra:{attributes:h,styles:r,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat($r(g))}})})}}}},Ng={mixout:function(){return{text:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=i.transform,u=p===void 0?Ht:p,d=i.title,g=d===void 0?null:d,s=i.classes,h=s===void 0?[]:s,o=i.attributes,r=o===void 0?{}:o,l=i.styles,c=l===void 0?{}:l;return Mo({type:"text",content:n},function(){return Xn("beforeDOMElementCreation",{content:n,params:i}),Ul({content:n,transform:pe(pe({},Ht),u),title:g,extra:{attributes:r,styles:c,classes:["".concat(ye.cssPrefix,"-layers-text")].concat($r(h))}})})}}},provides:function(t){t.generateLayersText=function(n,i){var p=i.title,u=i.transform,d=i.extra,g=null,s=null;if(Tu){var h=parseInt(getComputedStyle(n).fontSize,10),o=n.getBoundingClientRect();g=o.width/h,s=o.height/h}return ye.autoA11y&&!p&&(d.attributes["aria-hidden"]="true"),Promise.resolve([n,Ul({content:n.innerHTML,width:g,height:s,transform:u,title:p,extra:d,watchable:!0})])}}},Pg=new RegExp('"',"ug"),Xl=[1105920,1112319];function Dg(e){var t=e.replace(Pg,""),n=Qp(t,0),i=n>=Xl[0]&&n<=Xl[1],p=t.length===2?t[0]===t[1]:!1;return{value:Ps(p?t[0]:t),isSecondary:i||p}}function Zl(e,t){var n="".concat(xp).concat(t.replace(":","-"));return new Promise(function(i,p){if(e.getAttribute(n)!==null)return i();var u=ki(e.children),d=u.filter(function(L){return L.getAttribute(Ns)===t})[0],g=xn.getComputedStyle(e,t),s=g.getPropertyValue("font-family").match(Lp),h=g.getPropertyValue("font-weight"),o=g.getPropertyValue("content");if(d&&!s)return e.removeChild(d),i();if(s&&o!=="none"&&o!==""){var r=g.getPropertyValue("content"),l=~["Sharp"].indexOf(s[2])?Xe:ze,c=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?or[l][s[2].toLowerCase()]:Mp[l][h],a=Dg(r),f=a.value,m=a.isSecondary,v=s[0].startsWith("FontAwesome"),b=Ta(c,f),x=b;if(v){var C=rg(f);C.iconName&&C.prefix&&(b=C.iconName,c=C.prefix)}if(b&&!m&&(!d||d.getAttribute(Sa)!==c||d.getAttribute(Aa)!==x)){e.setAttribute(n,x),d&&e.removeChild(d);var S=Eg(),$=S.extra;$.attributes[Ns]=t,Us(b,c).then(function(L){var R=Ma(pe(pe({},S),{},{icons:{main:L,mask:La()},prefix:c,iconName:x,extra:$,watchable:!0})),k=Ve.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=R.map(function(M){return Cr(M)}).join(` `),e.removeAttribute(n),i()}).catch(p)}else i()}else i()})}function Bg(e){return Promise.all([Zl(e,"::before"),Zl(e,"::after")])}function Wg(e){return e.parentNode!==document.head&&!~Ep.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ns)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ql(e){if(ln)return new Promise(function(t,n){var i=ki(e.querySelectorAll("*")).filter(Wg).map(Bg),p=Oa.begin("searchPseudoElements");Qu(),Promise.all(i).then(function(){p(),Vs(),t()}).catch(function(){p(),Vs(),n()})})}var Hg={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Ql,n}}},provides:function(t){t.pseudoElements2svg=function(n){var i=n.node,p=i===void 0?Ve:i;ye.searchPseudoElements&&Ql(p)}}},Jl=!1,Ug={mixout:function(){return{dom:{unwatch:function(){Qu(),Jl=!0}}}},hooks:function(){return{bootstrap:function(){Gl(Bs("mutationObserverCallbacks",{}))},noAuto:function(){Sg()},watch:function(n){var i=n.observeMutationsRoot;Jl?Vs():Gl(Bs("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},ql=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(i,p){var u=p.toLowerCase().split("-"),d=u[0],g=u.slice(1).join("-");if(d&&g==="h")return i.flipX=!0,i;if(d&&g==="v")return i.flipY=!0,i;if(g=parseFloat(g),isNaN(g))return i;switch(d){case"grow":i.size=i.size+g;break;case"shrink":i.size=i.size-g;break;case"left":i.x=i.x-g;break;case"right":i.x=i.x+g;break;case"up":i.y=i.y-g;break;case"down":i.y=i.y+g;break;case"rotate":i.rotate=i.rotate+g;break}return i},n)},zg={mixout:function(){return{parse:{transform:function(n){return ql(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-transform");return p&&(n.transform=ql(p)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var i=n.main,p=n.transform,u=n.containerWidth,d=n.iconWidth,g={transform:"translate(".concat(u/2," 256)")},s="translate(".concat(p.x*32,", ").concat(p.y*32,") "),h="scale(".concat(p.size/16*(p.flipX?-1:1),", ").concat(p.size/16*(p.flipY?-1:1),") "),o="rotate(".concat(p.rotate," 0 0)"),r={transform:"".concat(s," ").concat(h," ").concat(o)},l={transform:"translate(".concat(d/2*-1," -256)")},c={outer:g,inner:r,path:l};return{tag:"g",attributes:pe({},c.outer),children:[{tag:"g",attributes:pe({},c.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:pe(pe({},i.icon.attributes),c.path)}]}]}}}},gs={x:0,y:0,width:"100%",height:"100%"};function ec(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Vg(e){return e.tag==="g"?e.children:[e]}var jg={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-mask"),u=p?Lo(p.split(" ").map(function(d){return d.trim()})):La();return u.prefix||(u.prefix=kn()),n.mask=u,n.maskId=i.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var i=n.children,p=n.attributes,u=n.main,d=n.mask,g=n.maskId,s=n.transform,h=u.width,o=u.icon,r=d.width,l=d.icon,c=zp({transform:s,containerWidth:r,iconWidth:h}),a={tag:"rect",attributes:pe(pe({},gs),{},{fill:"white"})},f=o.children?{children:o.children.map(ec)}:{},m={tag:"g",attributes:pe({},c.inner),children:[ec(pe({tag:o.tag,attributes:pe(pe({},o.attributes),c.path)},f))]},v={tag:"g",attributes:pe({},c.outer),children:[m]},b="mask-".concat(g||lr()),x="clip-".concat(g||lr()),C={tag:"mask",attributes:pe(pe({},gs),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[a,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:Vg(l)},C]};return i.push(S,{tag:"rect",attributes:pe({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(b,")")},gs)}),{children:i,attributes:p}}}},Gg={provides:function(t){var n=!1;xn.matchMedia&&(n=xn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],p={fill:"currentColor"},u={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:pe(pe({},p),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var d=pe(pe({},u),{},{attributeName:"opacity"}),g={tag:"circle",attributes:pe(pe({},p),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||g.children.push({tag:"animate",attributes:pe(pe({},u),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:pe(pe({},d),{},{values:"1;0;1;1;0;1;"})}),i.push(g),i.push({tag:"path",attributes:pe(pe({},p),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:pe(pe({},d),{},{values:"1;0;0;0;0;1;"})}]}),n||i.push({tag:"path",attributes:pe(pe({},p),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:pe(pe({},d),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},Kg={hooks:function(){return{parseNodeAttributes:function(n,i){var p=i.getAttribute("data-fa-symbol"),u=p===null?!1:p===""?!0:p;return n.symbol=u,n}}}},Yg=[Gp,Og,Ig,Fg,Ng,Hg,Ug,zg,jg,Gg,Kg];ag(Yg,{mixoutsTo:_t});_t.noAuto;_t.config;var Xg=_t.library;_t.dom;var js=_t.parse;_t.findIconDefinition;_t.toHtml;var Zg=_t.icon;_t.layer;_t.text;_t.counter;var Qg={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2l0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4l0 0c19.8 27.1 39.7 54.4 49.2 86.2H272zM192 512c44.2 0 80-35.8 80-80V416H112v16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"]},Jg={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},qg=Jg,em={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},tm={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},nm=tm,im={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},rm=im,om={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},sm={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},am=sm,lm={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},cm={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},um={prefix:"fas",iconName:"exclamation",icon:[64,512,[10069,10071,61738],"21","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V320c0 17.7 14.3 32 32 32s32-14.3 32-32V64zM32 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]};function Oo(e,t){const n=Object.create(null),i=e.split(",");for(let p=0;p!!n[p.toLowerCase()]:p=>!!n[p]}const Be={},ui=[],Nt=()=>{},hm=()=>!1,fm=/^on[^a-z]/,Sr=e=>fm.test(e),Fa=e=>e.startsWith("onUpdate:"),je=Object.assign,Na=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dm=Object.prototype.hasOwnProperty,Fe=(e,t)=>dm.call(e,t),ge=Array.isArray,hi=e=>Ei(e)==="[object Map]",ei=e=>Ei(e)==="[object Set]",tc=e=>Ei(e)==="[object Date]",pm=e=>Ei(e)==="[object RegExp]",Ce=e=>typeof e=="function",Ge=e=>typeof e=="string",mi=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Pa=e=>(We(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),qu=Object.prototype.toString,Ei=e=>qu.call(e),gm=e=>Ei(e).slice(8,-1),eh=e=>Ei(e)==="[object Object]",Da=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xi=Oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Io=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},mm=/-(\w)/g,mt=Io(e=>e.replace(mm,(t,n)=>n?n.toUpperCase():"")),vm=/\B([A-Z])/g,At=Io(e=>e.replace(vm,"-$1").toLowerCase()),Ri=Io(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zi=Io(e=>e?`on${Ri(e)}`:""),Rn=(e,t)=>!Object.is(e,t),fi=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},fo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},po=e=>{const t=Ge(e)?Number(e):NaN;return isNaN(t)?e:t};let nc;const Gs=()=>nc||(nc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),ym="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",bm=Oo(ym);function Ar(e){if(ge(e)){const t={};for(let n=0;n{if(n){const i=n.split($m);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function xr(e){let t="";if(Ge(e))t=e;else if(ge(e))for(let n=0;nTn(n,t))}const Ae=e=>Ge(e)?e:e==null?"":ge(e)||We(e)&&(e.toString===qu||!Ce(e.toString))?JSON.stringify(e,nh,2):String(e),nh=(e,t)=>t&&t.__v_isRef?nh(e,t.value):hi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,p])=>(n[`${i} =>`]=p,n),{})}:ei(t)?{[`Set(${t.size})`]:[...t.values()]}:We(t)&&!ge(t)&&!eh(t)?String(t):t;let yt;class Ba{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=yt,!t&&yt&&(this.index=(yt.scopes||(yt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=yt;try{return yt=this,t()}finally{yt=n}}}on(){yt=this}off(){yt=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},sh=e=>(e.w&Ln)>0,ah=e=>(e.n&Ln)>0,Em=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(o==="length"||!mi(o)&&o>=s)&&g.push(h)})}else switch(n!==void 0&&g.push(d.get(n)),t){case"add":ge(e)?Da(n)&&g.push(d.get("length")):(g.push(d.get(Vn)),hi(e)&&g.push(d.get(Ys)));break;case"delete":ge(e)||(g.push(d.get(Vn)),hi(e)&&g.push(d.get(Ys)));break;case"set":hi(e)&&g.push(d.get(Vn));break}if(g.length===1)g[0]&&Xs(g[0]);else{const s=[];for(const h of g)h&&s.push(...h);Xs(Ha(s))}}function Xs(e,t){const n=ge(e)?e:[...e];for(const i of n)i.computed&&rc(i);for(const i of n)i.computed||rc(i)}function rc(e,t){(e!==Lt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Mm(e,t){var n;return(n=go.get(e))==null?void 0:n.get(t)}const Om=Oo("__proto__,__v_isRef,__isVue"),uh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mi)),oc=Im();function Im(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Le(this);for(let u=0,d=this.length;u{e[t]=function(...n){Ti();const i=Le(this)[t].apply(this,n);return Li(),i}}),e}function Fm(e){const t=Le(this);return vt(t,"has",e),t.hasOwnProperty(e)}class hh{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const p=this._isReadonly,u=this._shallow;if(n==="__v_isReactive")return!p;if(n==="__v_isReadonly")return p;if(n==="__v_isShallow")return u;if(n==="__v_raw"&&i===(p?u?vh:mh:u?gh:ph).get(t))return t;const d=ge(t);if(!p){if(d&&Fe(oc,n))return Reflect.get(oc,n,i);if(n==="hasOwnProperty")return Fm}const g=Reflect.get(t,n,i);return(mi(n)?uh.has(n):Om(n))||(p||vt(t,"get",n),u)?g:qe(g)?d&&Da(n)?g:g.value:We(g)?p?Do(g):Mi(g):g}}class fh extends hh{constructor(t=!1){super(!1,t)}set(t,n,i,p){let u=t[n];if(Zn(u)&&qe(u)&&!qe(i))return!1;if(!this._shallow&&(!cr(i)&&!Zn(i)&&(u=Le(u),i=Le(i)),!ge(t)&&qe(u)&&!qe(i)))return u.value=i,!0;const d=ge(t)&&Da(n)?Number(n)e,No=e=>Reflect.getPrototypeOf(e);function Hr(e,t,n=!1,i=!1){e=e.__v_raw;const p=Le(e),u=Le(t);n||(Rn(t,u)&&vt(p,"get",t),vt(p,"get",u));const{has:d}=No(p),g=i?Ua:n?ja:ur;if(d.call(p,t))return g(e.get(t));if(d.call(p,u))return g(e.get(u));e!==p&&e.get(t)}function Ur(e,t=!1){const n=this.__v_raw,i=Le(n),p=Le(e);return t||(Rn(e,p)&&vt(i,"has",e),vt(i,"has",p)),e===p?n.has(e):n.has(e)||n.has(p)}function zr(e,t=!1){return e=e.__v_raw,!t&&vt(Le(e),"iterate",Vn),Reflect.get(e,"size",e)}function sc(e){e=Le(e);const t=Le(this);return No(t).has.call(t,e)||(t.add(e),en(t,"add",e,e)),this}function ac(e,t){t=Le(t);const n=Le(this),{has:i,get:p}=No(n);let u=i.call(n,e);u||(e=Le(e),u=i.call(n,e));const d=p.call(n,e);return n.set(e,t),u?Rn(t,d)&&en(n,"set",e,t):en(n,"add",e,t),this}function lc(e){const t=Le(this),{has:n,get:i}=No(t);let p=n.call(t,e);p||(e=Le(e),p=n.call(t,e)),i&&i.call(t,e);const u=t.delete(e);return p&&en(t,"delete",e,void 0),u}function cc(){const e=Le(this),t=e.size!==0,n=e.clear();return t&&en(e,"clear",void 0,void 0),n}function Vr(e,t){return function(i,p){const u=this,d=u.__v_raw,g=Le(d),s=t?Ua:e?ja:ur;return!e&&vt(g,"iterate",Vn),d.forEach((h,o)=>i.call(p,s(h),s(o),u))}}function jr(e,t,n){return function(...i){const p=this.__v_raw,u=Le(p),d=hi(u),g=e==="entries"||e===Symbol.iterator&&d,s=e==="keys"&&d,h=p[e](...i),o=n?Ua:t?ja:ur;return!t&&vt(u,"iterate",s?Ys:Vn),{next(){const{value:r,done:l}=h.next();return l?{value:r,done:l}:{value:g?[o(r[0]),o(r[1])]:o(r),done:l}},[Symbol.iterator](){return this}}}}function gn(e){return function(...t){return e==="delete"?!1:this}}function Wm(){const e={get(u){return Hr(this,u)},get size(){return zr(this)},has:Ur,add:sc,set:ac,delete:lc,clear:cc,forEach:Vr(!1,!1)},t={get(u){return Hr(this,u,!1,!0)},get size(){return zr(this)},has:Ur,add:sc,set:ac,delete:lc,clear:cc,forEach:Vr(!1,!0)},n={get(u){return Hr(this,u,!0)},get size(){return zr(this,!0)},has(u){return Ur.call(this,u,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:Vr(!0,!1)},i={get(u){return Hr(this,u,!0,!0)},get size(){return zr(this,!0)},has(u){return Ur.call(this,u,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:Vr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{e[u]=jr(u,!1,!1),n[u]=jr(u,!0,!1),t[u]=jr(u,!1,!0),i[u]=jr(u,!0,!0)}),[e,n,t,i]}const[Hm,Um,zm,Vm]=Wm();function Po(e,t){const n=t?e?Vm:zm:e?Um:Hm;return(i,p,u)=>p==="__v_isReactive"?!e:p==="__v_isReadonly"?e:p==="__v_raw"?i:Reflect.get(Fe(n,p)&&p in i?n:i,p,u)}const jm={get:Po(!1,!1)},Gm={get:Po(!1,!0)},Km={get:Po(!0,!1)},Ym={get:Po(!0,!0)},ph=new WeakMap,gh=new WeakMap,mh=new WeakMap,vh=new WeakMap;function Xm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zm(e){return e.__v_skip||!Object.isExtensible(e)?0:Xm(gm(e))}function Mi(e){return Zn(e)?e:Bo(e,!1,Nm,jm,ph)}function za(e){return Bo(e,!1,Dm,Gm,gh)}function Do(e){return Bo(e,!0,Pm,Km,mh)}function Qm(e){return Bo(e,!0,Bm,Ym,vh)}function Bo(e,t,n,i,p){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=p.get(e);if(u)return u;const d=Zm(e);if(d===0)return e;const g=new Proxy(e,d===2?i:n);return p.set(e,g),g}function jn(e){return Zn(e)?jn(e.__v_raw):!!(e&&e.__v_isReactive)}function Zn(e){return!!(e&&e.__v_isReadonly)}function cr(e){return!!(e&&e.__v_isShallow)}function Va(e){return jn(e)||Zn(e)}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function Wo(e){return ho(e,"__v_skip",!0),e}const ur=e=>We(e)?Mi(e):e,ja=e=>We(e)?Do(e):e;function Ga(e){Sn&&Lt&&(e=Le(e),ch(e.dep||(e.dep=Ha())))}function Ho(e,t){e=Le(e);const n=e.dep;n&&Xs(n)}function qe(e){return!!(e&&e.__v_isRef===!0)}function Ie(e){return bh(e,!1)}function yh(e){return bh(e,!0)}function bh(e,t){return qe(e)?e:new Jm(e,t)}class Jm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Le(t),this._value=n?t:ur(t)}get value(){return Ga(this),this._value}set value(t){const n=this.__v_isShallow||cr(t)||Zn(t);t=n?t:Le(t),Rn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ur(t),Ho(this))}}function qm(e){Ho(e)}function tn(e){return qe(e)?e.value:e}function ev(e){return Ce(e)?e():tn(e)}const tv={get:(e,t,n)=>tn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const p=e[t];return qe(p)&&!qe(n)?(p.value=n,!0):Reflect.set(e,t,n,i)}};function Ka(e){return jn(e)?e:new Proxy(e,tv)}class nv{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:i}=t(()=>Ga(this),()=>Ho(this));this._get=n,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Ya(e){return new nv(e)}function iv(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=wh(e,n);return t}class rv{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Mm(Le(this._object),this._key)}}class ov{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function yi(e,t,n){return qe(e)?e:Ce(e)?new ov(e):We(e)&&arguments.length>1?wh(e,t,n):Ie(e)}function wh(e,t,n){const i=e[t];return qe(i)?i:new rv(e,t,n)}class sv{constructor(t,n,i,p){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new vi(t,()=>{this._dirty||(this._dirty=!0,Ho(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!p,this.__v_isReadonly=i}get value(){const t=Le(this);return Ga(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function av(e,t,n=!1){let i,p;const u=Ce(e);return u?(i=e,p=Nt):(i=e.get,p=e.set),new sv(i,p,u||!p,n)}function lv(e,...t){}function cv(e,t){}function nn(e,t,n,i){let p;try{p=i?e(...i):e()}catch(u){ti(u,t,n)}return p}function $t(e,t,n,i){if(Ce(e)){const u=nn(e,t,n,i);return u&&Pa(u)&&u.catch(d=>{ti(d,t,n)}),u}const p=[];for(let u=0;u>>1,p=st[i],u=fr(p);uWt&&st.splice(t,1)}function mo(e){ge(e)?di.push(...e):(!Zt||!Zt.includes(e,e.allowRecurse?Bn+1:Bn))&&di.push(e),_h()}function uc(e,t=hr?Wt+1:0){for(;tfr(n)-fr(i)),Bn=0;Bne.id==null?1/0:e.id,dv=(e,t)=>{const n=fr(e)-fr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ch(e){Zs=!1,hr=!0,st.sort(dv);const t=Nt;try{for(Wt=0;Wtri.emit(p,...u)),Gr=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(u=>{Sh(u,t)}),setTimeout(()=>{ri||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Gr=[])},3e3)):Gr=[]}function pv(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||Be;let p=n;const u=t.startsWith("update:"),d=u&&t.slice(7);if(d&&d in i){const o=`${d==="modelValue"?"model":d}Modifiers`,{number:r,trim:l}=i[o]||Be;l&&(p=n.map(c=>Ge(c)?c.trim():c)),r&&(p=n.map(fo))}let g,s=i[g=Zi(t)]||i[g=Zi(mt(t))];!s&&u&&(s=i[g=Zi(At(t))]),s&&$t(s,e,6,p);const h=i[g+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,$t(h,e,6,p)}}function Ah(e,t,n=!1){const i=t.emitsCache,p=i.get(e);if(p!==void 0)return p;const u=e.emits;let d={},g=!1;if(!Ce(e)){const s=h=>{const o=Ah(h,t,!0);o&&(g=!0,je(d,o))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!u&&!g?(We(e)&&i.set(e,null),null):(ge(u)?u.forEach(s=>d[s]=null):je(d,u),We(e)&&i.set(e,d),d)}function zo(e,t){return!e||!Sr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,At(t))||Fe(e,t))}let nt=null,Vo=null;function dr(e){const t=nt;return nt=e,Vo=e&&e.type.__scopeId||null,t}function Za(e){Vo=e}function Qa(){Vo=null}const gv=e=>xt;function xt(e,t=nt,n){if(!t||e._n)return e;const i=(...p)=>{i._d&&ia(-1);const u=dr(t);let d;try{d=e(...p)}finally{dr(u),i._d&&ia(1)}return d};return i._n=!0,i._c=!0,i._d=!0,i}function no(e){const{type:t,vnode:n,proxy:i,withProxy:p,props:u,propsOptions:[d],slots:g,attrs:s,emit:h,render:o,renderCache:r,data:l,setupState:c,ctx:a,inheritAttrs:f}=e;let m,v;const b=dr(e);try{if(n.shapeFlag&4){const C=p||i;m=bt(o.call(C,C,r,u,c,l,a)),v=s}else{const C=t;m=bt(C.length>1?C(u,{attrs:s,slots:g,emit:h}):C(u,null)),v=t.props?s:vv(s)}}catch(C){er.length=0,ti(C,e,1),m=he(lt)}let x=m;if(v&&f!==!1){const C=Object.keys(v),{shapeFlag:S}=x;C.length&&S&7&&(d&&C.some(Fa)&&(v=yv(v,d)),x=jt(x,v))}return n.dirs&&(x=jt(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),m=x,dr(b),m}function mv(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Sr(n))&&((t||(t={}))[n]=e[n]);return t},yv=(e,t)=>{const n={};for(const i in e)(!Fa(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function bv(e,t,n){const{props:i,children:p,component:u}=e,{props:d,children:g,patchFlag:s}=t,h=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return i?hc(i,d,h):!!d;if(s&8){const o=t.dynamicProps;for(let r=0;re.__isSuspense,Cv={name:"Suspense",__isSuspense:!0,process(e,t,n,i,p,u,d,g,s,h){e==null?Av(t,n,i,p,u,d,g,s,h):xv(e,t,n,i,p,d,g,s,h)},hydrate:kv,create:tl,normalize:Ev},Sv=Cv;function pr(e,t){const n=e.props&&e.props[t];Ce(n)&&n()}function Av(e,t,n,i,p,u,d,g,s){const{p:h,o:{createElement:o}}=s,r=o("div"),l=e.suspense=tl(e,p,i,t,r,n,u,d,g,s);h(null,l.pendingBranch=e.ssContent,r,null,i,l,u,d),l.deps>0?(pr(e,"onPending"),pr(e,"onFallback"),h(null,e.ssFallback,t,n,i,null,u,d),pi(l,e.ssFallback)):l.resolve(!1,!0)}function xv(e,t,n,i,p,u,d,g,{p:s,um:h,o:{createElement:o}}){const r=t.suspense=e.suspense;r.vnode=t,t.el=e.el;const l=t.ssContent,c=t.ssFallback,{activeBranch:a,pendingBranch:f,isInFallback:m,isHydrating:v}=r;if(f)r.pendingBranch=l,Ot(l,f)?(s(f,l,r.hiddenContainer,null,p,r,u,d,g),r.deps<=0?r.resolve():m&&(s(a,c,n,i,p,null,u,d,g),pi(r,c))):(r.pendingId++,v?(r.isHydrating=!1,r.activeBranch=f):h(f,p,r),r.deps=0,r.effects.length=0,r.hiddenContainer=o("div"),m?(s(null,l,r.hiddenContainer,null,p,r,u,d,g),r.deps<=0?r.resolve():(s(a,c,n,i,p,null,u,d,g),pi(r,c))):a&&Ot(l,a)?(s(a,l,n,i,p,r,u,d,g),r.resolve(!0)):(s(null,l,r.hiddenContainer,null,p,r,u,d,g),r.deps<=0&&r.resolve()));else if(a&&Ot(l,a))s(a,l,n,i,p,r,u,d,g),pi(r,l);else if(pr(t,"onPending"),r.pendingBranch=l,r.pendingId++,s(null,l,r.hiddenContainer,null,p,r,u,d,g),r.deps<=0)r.resolve();else{const{timeout:b,pendingId:x}=r;b>0?setTimeout(()=>{r.pendingId===x&&r.fallback(c)},b):b===0&&r.fallback(c)}}function tl(e,t,n,i,p,u,d,g,s,h,o=!1){const{p:r,m:l,um:c,n:a,o:{parentNode:f,remove:m}}=h;let v;const b=Rv(e);b&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const x=e.props?po(e.props.timeout):void 0,C={vnode:e,parent:t,parentComponent:n,isSVG:d,container:i,hiddenContainer:p,anchor:u,deps:0,pendingId:0,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:o,isUnmounted:!1,effects:[],resolve(S=!1,$=!1){const{vnode:L,activeBranch:R,pendingBranch:k,pendingId:M,effects:y,parentComponent:A,container:_}=C;let w=!1;if(C.isHydrating)C.isHydrating=!1;else if(!S){w=R&&k.transition&&k.transition.mode==="out-in",w&&(R.transition.afterLeave=()=>{M===C.pendingId&&(l(k,_,O,0),mo(y))});let{anchor:O}=C;R&&(O=a(R),c(R,A,C,!0)),w||l(k,_,O,0)}pi(C,k),C.pendingBranch=null,C.isInFallback=!1;let E=C.parent,T=!1;for(;E;){if(E.pendingBranch){E.effects.push(...y),T=!0;break}E=E.parent}!T&&!w&&mo(y),C.effects=[],b&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),pr(L,"onResolve")},fallback(S){if(!C.pendingBranch)return;const{vnode:$,activeBranch:L,parentComponent:R,container:k,isSVG:M}=C;pr($,"onFallback");const y=a(L),A=()=>{C.isInFallback&&(r(null,S,k,y,R,null,M,g,s),pi(C,S))},_=S.transition&&S.transition.mode==="out-in";_&&(L.transition.afterLeave=A),C.isInFallback=!0,c(L,R,null,!0),_||A()},move(S,$,L){C.activeBranch&&l(C.activeBranch,S,$,L),C.container=S},next(){return C.activeBranch&&a(C.activeBranch)},registerDep(S,$){const L=!!C.pendingBranch;L&&C.deps++;const R=S.vnode.el;S.asyncDep.catch(k=>{ti(k,S,0)}).then(k=>{if(S.isUnmounted||C.isUnmounted||C.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;ra(S,k,!1),R&&(M.el=R);const y=!R&&S.subTree.el;$(S,M,f(R||S.subTree.el),R?null:a(S.subTree),C,d,s),y&&m(y),Ja(S,M.el),L&&--C.deps===0&&C.resolve()})},unmount(S,$){C.isUnmounted=!0,C.activeBranch&&c(C.activeBranch,n,S,$),C.pendingBranch&&c(C.pendingBranch,n,S,$)}};return C}function kv(e,t,n,i,p,u,d,g,s){const h=t.suspense=tl(t,i,n,e.parentNode,document.createElement("div"),null,p,u,d,g,!0),o=s(e,h.pendingBranch=t.ssContent,n,h,u,d);return h.deps===0&&h.resolve(!1,!0),o}function Ev(e){const{shapeFlag:t,children:n}=e,i=t&32;e.ssContent=dc(i?n.default:n),e.ssFallback=i?dc(n.fallback):he(lt)}function dc(e){let t;if(Ce(e)){const n=qn&&e._c;n&&(e._d=!1,q()),e=e(),n&&(e._d=!0,t=gt,rf())}return ge(e)&&(e=mv(e)),e=bt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Eh(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):mo(e)}function pi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e,p=n.el=t.el;i&&i.subTree===n&&(i.vnode.el=p,Ja(i,p))}function Rv(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Rh(e,t){return kr(e,null,t)}function Th(e,t){return kr(e,null,{flush:"post"})}function Tv(e,t){return kr(e,null,{flush:"sync"})}const Kr={};function Ye(e,t,n){return kr(e,t,n)}function kr(e,t,{immediate:n,deep:i,flush:p,onTrack:u,onTrigger:d}=Be){var g;const s=Wa()===((g=Qe)==null?void 0:g.scope)?Qe:null;let h,o=!1,r=!1;if(qe(e)?(h=()=>e.value,o=cr(e)):jn(e)?(h=()=>e,i=!0):ge(e)?(r=!0,o=e.some(C=>jn(C)||cr(C)),h=()=>e.map(C=>{if(qe(C))return C.value;if(jn(C))return zn(C);if(Ce(C))return nn(C,s,2)})):Ce(e)?t?h=()=>nn(e,s,2):h=()=>{if(!(s&&s.isUnmounted))return l&&l(),$t(e,s,3,[c])}:h=Nt,t&&i){const C=h;h=()=>zn(C())}let l,c=C=>{l=b.onStop=()=>{nn(C,s,4)}},a;if(wi)if(c=Nt,t?n&&$t(t,s,3,[h(),r?[]:void 0,c]):h(),p==="sync"){const C=gf();a=C.__watcherHandles||(C.__watcherHandles=[])}else return Nt;let f=r?new Array(e.length).fill(Kr):Kr;const m=()=>{if(b.active)if(t){const C=b.run();(i||o||(r?C.some((S,$)=>Rn(S,f[$])):Rn(C,f)))&&(l&&l(),$t(t,s,3,[C,f===Kr?void 0:r&&f[0]===Kr?[]:f,c]),f=C)}else b.run()};m.allowRecurse=!!t;let v;p==="sync"?v=m:p==="post"?v=()=>rt(m,s&&s.suspense):(m.pre=!0,s&&(m.id=s.uid),v=()=>Uo(m));const b=new vi(h,v);t?n?m():f=b.run():p==="post"?rt(b.run.bind(b),s&&s.suspense):b.run();const x=()=>{b.stop(),s&&s.scope&&Na(s.scope.effects,b)};return a&&a.push(x),x}function Lv(e,t,n){const i=this.proxy,p=Ge(e)?e.includes(".")?Lh(i,e):()=>i[e]:e.bind(i,i);let u;Ce(t)?u=t:(u=t.handler,n=t);const d=Qe;On(this);const g=kr(p,u.bind(i),n);return d?On(d):An(),g}function Lh(e,t){const n=t.split(".");return()=>{let i=e;for(let p=0;p{zn(n,t)});else if(eh(e))for(const n in e)zn(e[n],t);return e}function Mt(e,t){const n=nt;if(n===null)return e;const i=Zo(n)||n.proxy,p=e.dirs||(e.dirs=[]);for(let u=0;u{e.isMounted=!0}),Rr(()=>{e.isUnmounting=!0}),e}const St=[Function,Array],il={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:St,onEnter:St,onAfterEnter:St,onEnterCancelled:St,onBeforeLeave:St,onLeave:St,onAfterLeave:St,onLeaveCancelled:St,onBeforeAppear:St,onAppear:St,onAfterAppear:St,onAppearCancelled:St},Mv={name:"BaseTransition",props:il,setup(e,{slots:t}){const n=Dt(),i=nl();let p;return()=>{const u=t.default&&jo(t.default(),!0);if(!u||!u.length)return;let d=u[0];if(u.length>1){for(const f of u)if(f.type!==lt){d=f;break}}const g=Le(e),{mode:s}=g;if(i.isLeaving)return ms(d);const h=pc(d);if(!h)return ms(d);const o=bi(h,g,i,n);Qn(h,o);const r=n.subTree,l=r&&pc(r);let c=!1;const{getTransitionKey:a}=h.type;if(a){const f=a();p===void 0?p=f:f!==p&&(p=f,c=!0)}if(l&&l.type!==lt&&(!Ot(h,l)||c)){const f=bi(l,g,i,n);if(Qn(l,f),s==="out-in")return i.isLeaving=!0,f.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},ms(d);s==="in-out"&&h.type!==lt&&(f.delayLeave=(m,v,b)=>{const x=Oh(i,l);x[String(l.key)]=l,m[$n]=()=>{v(),m[$n]=void 0,delete o.delayedLeave},o.delayedLeave=b})}return d}}},Mh=Mv;function Oh(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function bi(e,t,n,i){const{appear:p,mode:u,persisted:d=!1,onBeforeEnter:g,onEnter:s,onAfterEnter:h,onEnterCancelled:o,onBeforeLeave:r,onLeave:l,onAfterLeave:c,onLeaveCancelled:a,onBeforeAppear:f,onAppear:m,onAfterAppear:v,onAppearCancelled:b}=t,x=String(e.key),C=Oh(n,e),S=(R,k)=>{R&&$t(R,i,9,k)},$=(R,k)=>{const M=k[1];S(R,k),ge(R)?R.every(y=>y.length<=1)&&M():R.length<=1&&M()},L={mode:u,persisted:d,beforeEnter(R){let k=g;if(!n.isMounted)if(p)k=f||g;else return;R[$n]&&R[$n](!0);const M=C[x];M&&Ot(e,M)&&M.el[$n]&&M.el[$n](),S(k,[R])},enter(R){let k=s,M=h,y=o;if(!n.isMounted)if(p)k=m||s,M=v||h,y=b||o;else return;let A=!1;const _=R[Yr]=w=>{A||(A=!0,w?S(y,[R]):S(M,[R]),L.delayedLeave&&L.delayedLeave(),R[Yr]=void 0)};k?$(k,[R,_]):_()},leave(R,k){const M=String(e.key);if(R[Yr]&&R[Yr](!0),n.isUnmounting)return k();S(r,[R]);let y=!1;const A=R[$n]=_=>{y||(y=!0,k(),_?S(a,[R]):S(c,[R]),R[$n]=void 0,C[M]===e&&delete C[M])};C[M]=e,l?$(l,[R,A]):A()},clone(R){return bi(R,t,n,i)}};return L}function ms(e){if(Er(e))return e=jt(e),e.children=null,e}function pc(e){return Er(e)?e.children?e.children[0]:void 0:e}function Qn(e,t){e.shapeFlag&6&&e.component?Qn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jo(e,t=!1,n){let i=[],p=0;for(let u=0;u1)for(let u=0;uje({name:e.name},t,{setup:e}))():e}const Gn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Ov(e){Ce(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:p=200,timeout:u,suspensible:d=!0,onError:g}=e;let s=null,h,o=0;const r=()=>(o++,s=null,l()),l=()=>{let c;return s||(c=s=t().catch(a=>{if(a=a instanceof Error?a:new Error(String(a)),g)return new Promise((f,m)=>{g(a,()=>f(r()),()=>m(a),o+1)});throw a}).then(a=>c!==s&&s?s:(a&&(a.__esModule||a[Symbol.toStringTag]==="Module")&&(a=a.default),h=a,a)))};return $e({name:"AsyncComponentWrapper",__asyncLoader:l,get __asyncResolved(){return h},setup(){const c=Qe;if(h)return()=>vs(h,c);const a=b=>{s=null,ti(b,c,13,!i)};if(d&&c.suspense||wi)return l().then(b=>()=>vs(b,c)).catch(b=>(a(b),()=>i?he(i,{error:b}):null));const f=Ie(!1),m=Ie(),v=Ie(!!p);return p&&setTimeout(()=>{v.value=!1},p),u!=null&&setTimeout(()=>{if(!f.value&&!m.value){const b=new Error(`Async component timed out after ${u}ms.`);a(b),m.value=b}},u),l().then(()=>{f.value=!0,c.parent&&Er(c.parent.vnode)&&Uo(c.parent.update)}).catch(b=>{a(b),m.value=b}),()=>{if(f.value&&h)return vs(h,c);if(m.value&&i)return he(i,{error:m.value});if(n&&!v.value)return he(n)}}})}function vs(e,t){const{ref:n,props:i,children:p,ce:u}=t.vnode,d=he(e,i,p);return d.ref=n,d.ce=u,delete t.vnode.ce,d}const Er=e=>e.type.__isKeepAlive,Iv={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Dt(),i=n.ctx;if(!i.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const p=new Map,u=new Set;let d=null;const g=n.suspense,{renderer:{p:s,m:h,um:o,o:{createElement:r}}}=i,l=r("div");i.activate=(b,x,C,S,$)=>{const L=b.component;h(b,x,C,0,g),s(L.vnode,b,x,C,L,g,S,b.slotScopeIds,$),rt(()=>{L.isDeactivated=!1,L.a&&fi(L.a);const R=b.props&&b.props.onVnodeMounted;R&&pt(R,L.parent,b)},g)},i.deactivate=b=>{const x=b.component;h(b,l,null,1,g),rt(()=>{x.da&&fi(x.da);const C=b.props&&b.props.onVnodeUnmounted;C&&pt(C,x.parent,b),x.isDeactivated=!0},g)};function c(b){ys(b),o(b,n,g,!0)}function a(b){p.forEach((x,C)=>{const S=sa(x.type);S&&(!b||!b(S))&&f(C)})}function f(b){const x=p.get(b);!d||!Ot(x,d)?c(x):d&&ys(d),p.delete(b),u.delete(b)}Ye(()=>[e.include,e.exclude],([b,x])=>{b&&a(C=>ji(b,C)),x&&a(C=>!ji(x,C))},{flush:"post",deep:!0});let m=null;const v=()=>{m!=null&&p.set(m,bs(n.subTree))};return tt(v),Ko(v),Rr(()=>{p.forEach(b=>{const{subTree:x,suspense:C}=n,S=bs(x);if(b.type===S.type&&b.key===S.key){ys(S);const $=S.component.da;$&&rt($,C);return}c(b)})}),()=>{if(m=null,!t.default)return null;const b=t.default(),x=b[0];if(b.length>1)return d=null,b;if(!Mn(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return d=null,x;let C=bs(x);const S=C.type,$=sa(Gn(C)?C.type.__asyncResolved||{}:S),{include:L,exclude:R,max:k}=e;if(L&&(!$||!ji(L,$))||R&&$&&ji(R,$))return d=C,x;const M=C.key==null?S:C.key,y=p.get(M);return C.el&&(C=jt(C),x.shapeFlag&128&&(x.ssContent=C)),m=M,y?(C.el=y.el,C.component=y.component,C.transition&&Qn(C,C.transition),C.shapeFlag|=512,u.delete(M),u.add(M)):(u.add(M),k&&u.size>parseInt(k,10)&&f(u.values().next().value)),C.shapeFlag|=256,d=C,kh(x.type)?x:C}}},Fv=Iv;function ji(e,t){return ge(e)?e.some(n=>ji(n,t)):Ge(e)?e.split(",").includes(t):pm(e)?e.test(t):!1}function Ih(e,t){Nh(e,"a",t)}function Fh(e,t){Nh(e,"da",t)}function Nh(e,t,n=Qe){const i=e.__wdc||(e.__wdc=()=>{let p=n;for(;p;){if(p.isDeactivated)return;p=p.parent}return e()});if(Go(t,i,n),n){let p=n.parent;for(;p&&p.parent;)Er(p.parent.vnode)&&Nv(i,t,n,p),p=p.parent}}function Nv(e,t,n,i){const p=Go(t,e,i,!0);Yo(()=>{Na(i[t],p)},n)}function ys(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function bs(e){return e.shapeFlag&128?e.ssContent:e}function Go(e,t,n=Qe,i=!1){if(n){const p=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...d)=>{if(n.isUnmounted)return;Ti(),On(n);const g=$t(t,n,e,d);return An(),Li(),g});return i?p.unshift(u):p.push(u),u}}const cn=e=>(t,n=Qe)=>(!wi||e==="sp")&&Go(e,(...i)=>t(...i),n),Ph=cn("bm"),tt=cn("m"),Dh=cn("bu"),Ko=cn("u"),Rr=cn("bum"),Yo=cn("um"),Bh=cn("sp"),Wh=cn("rtg"),Hh=cn("rtc");function Uh(e,t=Qe){Go("ec",e,t)}function ct(e,t,n,i){let p;const u=n&&n[i];if(ge(e)||Ge(e)){p=new Array(e.length);for(let d=0,g=e.length;dt(d,g,void 0,u&&u[g]));else{const d=Object.keys(e);p=new Array(d.length);for(let g=0,s=d.length;g{const u=i.fn(...p);return u&&(u.key=i.key),u}:i.fn)}return e}function Dv(e,t,n={},i,p){if(nt.isCE||nt.parent&&Gn(nt.parent)&&nt.parent.isCE)return t!=="default"&&(n.name=t),he("slot",n,i&&i());let u=e[t];u&&u._c&&(u._d=!1),q();const d=u&&zh(u(n)),g=Me(Se,{key:n.key||d&&d.key||`_${t}`},d||(i?i():[]),d&&e._===1?64:-2);return!p&&g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),u&&u._c&&(u._d=!0),g}function zh(e){return e.some(t=>Mn(t)?!(t.type===lt||t.type===Se&&!zh(t.children)):!0)?e:null}function Bv(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:Zi(i)]=e[i];return n}const Qs=e=>e?uf(e)?Zo(e)||e.proxy:Qs(e.parent):null,Qi=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qs(e.parent),$root:e=>Qs(e.root),$emit:e=>e.emit,$options:e=>rl(e),$forceUpdate:e=>e.f||(e.f=()=>Uo(e.update)),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>Lv.bind(e)}),ws=(e,t)=>e!==Be&&!e.__isScriptSetup&&Fe(e,t),Js={get({_:e},t){const{ctx:n,setupState:i,data:p,props:u,accessCache:d,type:g,appContext:s}=e;let h;if(t[0]!=="$"){const c=d[t];if(c!==void 0)switch(c){case 1:return i[t];case 2:return p[t];case 4:return n[t];case 3:return u[t]}else{if(ws(i,t))return d[t]=1,i[t];if(p!==Be&&Fe(p,t))return d[t]=2,p[t];if((h=e.propsOptions[0])&&Fe(h,t))return d[t]=3,u[t];if(n!==Be&&Fe(n,t))return d[t]=4,n[t];qs&&(d[t]=0)}}const o=Qi[t];let r,l;if(o)return t==="$attrs"&&vt(e,"get",t),o(e);if((r=g.__cssModules)&&(r=r[t]))return r;if(n!==Be&&Fe(n,t))return d[t]=4,n[t];if(l=s.config.globalProperties,Fe(l,t))return l[t]},set({_:e},t,n){const{data:i,setupState:p,ctx:u}=e;return ws(p,t)?(p[t]=n,!0):i!==Be&&Fe(i,t)?(i[t]=n,!0):Fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:p,propsOptions:u}},d){let g;return!!n[d]||e!==Be&&Fe(e,d)||ws(t,d)||(g=u[0])&&Fe(g,d)||Fe(i,d)||Fe(Qi,d)||Fe(p.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Wv=je({},Js,{get(e,t){if(t!==Symbol.unscopables)return Js.get(e,t,e)},has(e,t){return t[0]!=="_"&&!bm(t)}});function Hv(){return null}function Uv(){return null}function zv(e){}function Vv(e){}function jv(){return null}function Gv(){}function Kv(e,t){return null}function Yv(){return Vh().slots}function Xv(){return Vh().attrs}function Zv(e,t,n){const i=Dt();if(n&&n.local){const p=Ie(e[t]);return Ye(()=>e[t],u=>p.value=u),Ye(p,u=>{u!==e[t]&&i.emit(`update:${t}`,u)}),p}else return{__v_isRef:!0,get value(){return e[t]},set value(p){i.emit(`update:${t}`,p)}}}function Vh(){const e=Dt();return e.setupContext||(e.setupContext=df(e))}function gr(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Qv(e,t){const n=gr(e);for(const i in t){if(i.startsWith("__skip"))continue;let p=n[i];p?ge(p)||Ce(p)?p=n[i]={type:p,default:t[i]}:p.default=t[i]:p===null&&(p=n[i]={default:t[i]}),p&&t[`__skip_${i}`]&&(p.skipFactory=!0)}return n}function Jv(e,t){return!e||!t?e||t:ge(e)&&ge(t)?e.concat(t):je({},gr(e),gr(t))}function qv(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function ey(e){const t=Dt();let n=e();return An(),Pa(n)&&(n=n.catch(i=>{throw On(t),i})),[n,()=>On(t)]}let qs=!0;function ty(e){const t=rl(e),n=e.proxy,i=e.ctx;qs=!1,t.beforeCreate&&gc(t.beforeCreate,e,"bc");const{data:p,computed:u,methods:d,watch:g,provide:s,inject:h,created:o,beforeMount:r,mounted:l,beforeUpdate:c,updated:a,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:b,destroyed:x,unmounted:C,render:S,renderTracked:$,renderTriggered:L,errorCaptured:R,serverPrefetch:k,expose:M,inheritAttrs:y,components:A,directives:_,filters:w}=t;if(h&&ny(h,i,null),d)for(const O in d){const I=d[O];Ce(I)&&(i[O]=I.bind(n))}if(p){const O=p.call(n,n);We(O)&&(e.data=Mi(O))}if(qs=!0,u)for(const O in u){const I=u[O],F=Ce(I)?I.bind(n,n):Ce(I.get)?I.get.bind(n,n):Nt,D=!Ce(I)&&Ce(I.set)?I.set.bind(n):Nt,W=Ee({get:F,set:D});Object.defineProperty(i,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(g)for(const O in g)jh(g[O],i,n,O);if(s){const O=Ce(s)?s.call(n):s;Reflect.ownKeys(O).forEach(I=>{Ji(I,O[I])})}o&&gc(o,e,"c");function T(O,I){ge(I)?I.forEach(F=>O(F.bind(n))):I&&O(I.bind(n))}if(T(Ph,r),T(tt,l),T(Dh,c),T(Ko,a),T(Ih,f),T(Fh,m),T(Uh,R),T(Hh,$),T(Wh,L),T(Rr,b),T(Yo,C),T(Bh,k),ge(M))if(M.length){const O=e.exposed||(e.exposed={});M.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:F=>n[I]=F})})}else e.exposed||(e.exposed={});S&&e.render===Nt&&(e.render=S),y!=null&&(e.inheritAttrs=y),A&&(e.components=A),_&&(e.directives=_)}function ny(e,t,n=Nt){ge(e)&&(e=ea(e));for(const i in e){const p=e[i];let u;We(p)?"default"in p?u=kt(p.from||i,p.default,!0):u=kt(p.from||i):u=kt(p),qe(u)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>u.value,set:d=>u.value=d}):t[i]=u}}function gc(e,t,n){$t(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function jh(e,t,n,i){const p=i.includes(".")?Lh(n,i):()=>n[i];if(Ge(e)){const u=t[e];Ce(u)&&Ye(p,u)}else if(Ce(e))Ye(p,e.bind(n));else if(We(e))if(ge(e))e.forEach(u=>jh(u,t,n,i));else{const u=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(u)&&Ye(p,u,e)}}function rl(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:p,optionsCache:u,config:{optionMergeStrategies:d}}=e.appContext,g=u.get(t);let s;return g?s=g:!p.length&&!n&&!i?s=t:(s={},p.length&&p.forEach(h=>yo(s,h,d,!0)),yo(s,t,d)),We(t)&&u.set(t,s),s}function yo(e,t,n,i=!1){const{mixins:p,extends:u}=t;u&&yo(e,u,n,!0),p&&p.forEach(d=>yo(e,d,n,!0));for(const d in t)if(!(i&&d==="expose")){const g=iy[d]||n&&n[d];e[d]=g?g(e[d],t[d]):t[d]}return e}const iy={data:mc,props:vc,emits:vc,methods:Gi,computed:Gi,beforeCreate:ft,created:ft,beforeMount:ft,mounted:ft,beforeUpdate:ft,updated:ft,beforeDestroy:ft,beforeUnmount:ft,destroyed:ft,unmounted:ft,activated:ft,deactivated:ft,errorCaptured:ft,serverPrefetch:ft,components:Gi,directives:Gi,watch:oy,provide:mc,inject:ry};function mc(e,t){return t?e?function(){return je(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function ry(e,t){return Gi(ea(e),ea(t))}function ea(e){if(ge(e)){const t={};for(let n=0;n1)return n&&Ce(t)?t.call(i&&i.proxy):t}}function ly(){return!!(Qe||nt||mr)}function cy(e,t,n,i=!1){const p={},u={};ho(u,Xo,1),e.propsDefaults=Object.create(null),Kh(e,t,p,u);for(const d in e.propsOptions[0])d in p||(p[d]=void 0);n?e.props=i?p:za(p):e.type.props?e.props=p:e.props=u,e.attrs=u}function uy(e,t,n,i){const{props:p,attrs:u,vnode:{patchFlag:d}}=e,g=Le(p),[s]=e.propsOptions;let h=!1;if((i||d>0)&&!(d&16)){if(d&8){const o=e.vnode.dynamicProps;for(let r=0;r{s=!0;const[l,c]=Yh(r,t,!0);je(d,l),c&&g.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!u&&!s)return We(e)&&i.set(e,ui),ui;if(ge(u))for(let o=0;o-1,c[1]=f<0||a-1||Fe(c,"default"))&&g.push(r)}}}const h=[d,g];return We(e)&&i.set(e,h),h}function yc(e){return e[0]!=="$"}function bc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function wc(e,t){return bc(e)===bc(t)}function $c(e,t){return ge(t)?t.findIndex(n=>wc(n,e)):Ce(t)&&wc(t,e)?0:-1}const Xh=e=>e[0]==="_"||e==="$stable",ol=e=>ge(e)?e.map(bt):[bt(e)],hy=(e,t,n)=>{if(t._n)return t;const i=xt((...p)=>ol(t(...p)),n);return i._c=!1,i},Zh=(e,t,n)=>{const i=e._ctx;for(const p in e){if(Xh(p))continue;const u=e[p];if(Ce(u))t[p]=hy(p,u,i);else if(u!=null){const d=ol(u);t[p]=()=>d}}},Qh=(e,t)=>{const n=ol(t);e.slots.default=()=>n},fy=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Le(t),ho(t,"_",n)):Zh(t,e.slots={})}else e.slots={},t&&Qh(e,t);ho(e.slots,Xo,1)},dy=(e,t,n)=>{const{vnode:i,slots:p}=e;let u=!0,d=Be;if(i.shapeFlag&32){const g=t._;g?n&&g===1?u=!1:(je(p,t),!n&&g===1&&delete p._):(u=!t.$stable,Zh(t,p)),d=t}else t&&(Qh(e,t),d={default:1});if(u)for(const g in p)!Xh(g)&&d[g]==null&&delete p[g]};function bo(e,t,n,i,p=!1){if(ge(e)){e.forEach((l,c)=>bo(l,t&&(ge(t)?t[c]:t),n,i,p));return}if(Gn(i)&&!p)return;const u=i.shapeFlag&4?Zo(i.component)||i.component.proxy:i.el,d=p?null:u,{i:g,r:s}=e,h=t&&t.r,o=g.refs===Be?g.refs={}:g.refs,r=g.setupState;if(h!=null&&h!==s&&(Ge(h)?(o[h]=null,Fe(r,h)&&(r[h]=null)):qe(h)&&(h.value=null)),Ce(s))nn(s,g,12,[d,o]);else{const l=Ge(s),c=qe(s);if(l||c){const a=()=>{if(e.f){const f=l?Fe(r,s)?r[s]:o[s]:s.value;p?ge(f)&&Na(f,u):ge(f)?f.includes(u)||f.push(u):l?(o[s]=[u],Fe(r,s)&&(r[s]=o[s])):(s.value=[u],e.k&&(o[e.k]=s.value))}else l?(o[s]=d,Fe(r,s)&&(r[s]=d)):c&&(s.value=d,e.k&&(o[e.k]=d))};d?(a.id=-1,rt(a,n)):a()}}}let mn=!1;const Xr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Zr=e=>e.nodeType===8;function py(e){const{mt:t,p:n,o:{patchProp:i,createText:p,nextSibling:u,parentNode:d,remove:g,insert:s,createComment:h}}=e,o=(x,C)=>{if(!C.hasChildNodes()){n(null,x,C),vo(),C._vnode=x;return}mn=!1,r(C.firstChild,x,null,null,null),vo(),C._vnode=x,mn&&console.error("Hydration completed but contains mismatches.")},r=(x,C,S,$,L,R=!1)=>{const k=Zr(x)&&x.data==="[",M=()=>f(x,C,S,$,L,k),{type:y,ref:A,shapeFlag:_,patchFlag:w}=C;let E=x.nodeType;C.el=x,w===-2&&(R=!1,C.dynamicChildren=null);let T=null;switch(y){case Jn:E!==3?C.children===""?(s(C.el=p(""),d(x),x),T=x):T=M():(x.data!==C.children&&(mn=!0,x.data=C.children),T=u(x));break;case lt:b(x)?(T=u(x),v(C.el=x.content.firstChild,x,S)):E!==8||k?T=M():T=u(x);break;case Kn:if(k&&(x=u(x),E=x.nodeType),E===1||E===3){T=x;const O=!C.children.length;for(let I=0;I{R=R||!!C.dynamicChildren;const{type:k,props:M,patchFlag:y,shapeFlag:A,dirs:_,transition:w}=C,E=k==="input"&&_||k==="option";if(E||y!==-1){if(_&&Bt(C,null,S,"created"),M)if(E||!R||y&48)for(const I in M)(E&&I.endsWith("value")||Sr(I)&&!Xi(I))&&i(x,I,null,M[I],!1,void 0,S);else M.onClick&&i(x,"onClick",null,M.onClick,!1,void 0,S);let T;(T=M&&M.onVnodeBeforeMount)&&pt(T,S,C);let O=!1;if(b(x)){O=tf($,w)&&S&&S.vnode.props&&S.vnode.props.appear;const I=x.content.firstChild;O&&w.beforeEnter(I),v(I,x,S),C.el=x=I}if(_&&Bt(C,null,S,"beforeMount"),((T=M&&M.onVnodeMounted)||_||O)&&Eh(()=>{T&&pt(T,S,C),O&&w.enter(x),_&&Bt(C,null,S,"mounted")},$),A&16&&!(M&&(M.innerHTML||M.textContent))){let I=c(x.firstChild,C,x,S,$,L,R);for(;I;){mn=!0;const F=I;I=I.nextSibling,g(F)}}else A&8&&x.textContent!==C.children&&(mn=!0,x.textContent=C.children)}return x.nextSibling},c=(x,C,S,$,L,R,k)=>{k=k||!!C.dynamicChildren;const M=C.children,y=M.length;for(let A=0;A{const{slotScopeIds:k}=C;k&&(L=L?L.concat(k):k);const M=d(x),y=c(u(x),C,M,S,$,L,R);return y&&Zr(y)&&y.data==="]"?u(C.anchor=y):(mn=!0,s(C.anchor=h("]"),M,y),y)},f=(x,C,S,$,L,R)=>{if(mn=!0,C.el=null,R){const y=m(x);for(;;){const A=u(x);if(A&&A!==y)g(A);else break}}const k=u(x),M=d(x);return g(x),n(null,C,M,k,S,$,Xr(M),L),k},m=(x,C="[",S="]")=>{let $=0;for(;x;)if(x=u(x),x&&Zr(x)&&(x.data===C&&$++,x.data===S)){if($===0)return u(x);$--}return x},v=(x,C,S)=>{const $=C.parentNode;$&&$.replaceChild(x,C);let L=S;for(;L;)L.vnode.el===C&&(L.vnode.el=L.subTree.el=x),L=L.parent},b=x=>x.nodeType===1&&x.tagName.toLowerCase()==="template";return[o,r]}const rt=Eh;function Jh(e){return ef(e)}function qh(e){return ef(e,py)}function ef(e,t){const n=Gs();n.__VUE__=!0;const{insert:i,remove:p,patchProp:u,createElement:d,createText:g,createComment:s,setText:h,setElementText:o,parentNode:r,nextSibling:l,setScopeId:c=Nt,insertStaticContent:a}=e,f=(P,B,G,Q=null,te=null,ie=null,le=!1,se=null,ce=!!B.dynamicChildren)=>{if(P===B)return;P&&!Ot(P,B)&&(Q=z(P),j(P,te,ie,!0),P=null),B.patchFlag===-2&&(ce=!1,B.dynamicChildren=null);const{type:re,ref:ve,shapeFlag:de}=B;switch(re){case Jn:m(P,B,G,Q);break;case lt:v(P,B,G,Q);break;case Kn:P==null&&b(B,G,Q,le);break;case Se:A(P,B,G,Q,te,ie,le,se,ce);break;default:de&1?S(P,B,G,Q,te,ie,le,se,ce):de&6?_(P,B,G,Q,te,ie,le,se,ce):(de&64||de&128)&&re.process(P,B,G,Q,te,ie,le,se,ce,Y)}ve!=null&&te&&bo(ve,P&&P.ref,ie,B||P,!B)},m=(P,B,G,Q)=>{if(P==null)i(B.el=g(B.children),G,Q);else{const te=B.el=P.el;B.children!==P.children&&h(te,B.children)}},v=(P,B,G,Q)=>{P==null?i(B.el=s(B.children||""),G,Q):B.el=P.el},b=(P,B,G,Q)=>{[P.el,P.anchor]=a(P.children,B,G,Q,P.el,P.anchor)},x=({el:P,anchor:B},G,Q)=>{let te;for(;P&&P!==B;)te=l(P),i(P,G,Q),P=te;i(B,G,Q)},C=({el:P,anchor:B})=>{let G;for(;P&&P!==B;)G=l(P),p(P),P=G;p(B)},S=(P,B,G,Q,te,ie,le,se,ce)=>{le=le||B.type==="svg",P==null?$(B,G,Q,te,ie,le,se,ce):k(P,B,te,ie,le,se,ce)},$=(P,B,G,Q,te,ie,le,se)=>{let ce,re;const{type:ve,props:de,shapeFlag:me,transition:_e,dirs:J}=P;if(ce=P.el=d(P.type,ie,de&&de.is,de),me&8?o(ce,P.children):me&16&&R(P.children,ce,null,Q,te,ie&&ve!=="foreignObject",le,se),J&&Bt(P,null,Q,"created"),L(ce,P,P.scopeId,le,Q),de){for(const ue in de)ue!=="value"&&!Xi(ue)&&u(ce,ue,null,de[ue],ie,P.children,Q,te,Z);"value"in de&&u(ce,"value",null,de.value),(re=de.onVnodeBeforeMount)&&pt(re,Q,P)}J&&Bt(P,null,Q,"beforeMount");const ae=tf(te,_e);ae&&_e.beforeEnter(ce),i(ce,B,G),((re=de&&de.onVnodeMounted)||ae||J)&&rt(()=>{re&&pt(re,Q,P),ae&&_e.enter(ce),J&&Bt(P,null,Q,"mounted")},te)},L=(P,B,G,Q,te)=>{if(G&&c(P,G),Q)for(let ie=0;ie{for(let re=ce;re{const se=B.el=P.el;let{patchFlag:ce,dynamicChildren:re,dirs:ve}=B;ce|=P.patchFlag&16;const de=P.props||Be,me=B.props||Be;let _e;G&&Pn(G,!1),(_e=me.onVnodeBeforeUpdate)&&pt(_e,G,B,P),ve&&Bt(B,P,G,"beforeUpdate"),G&&Pn(G,!0);const J=te&&B.type!=="foreignObject";if(re?M(P.dynamicChildren,re,se,G,Q,J,ie):le||I(P,B,se,null,G,Q,J,ie,!1),ce>0){if(ce&16)y(se,B,de,me,G,Q,te);else if(ce&2&&de.class!==me.class&&u(se,"class",null,me.class,te),ce&4&&u(se,"style",de.style,me.style,te),ce&8){const ae=B.dynamicProps;for(let ue=0;ue{_e&&pt(_e,G,B,P),ve&&Bt(B,P,G,"updated")},Q)},M=(P,B,G,Q,te,ie,le)=>{for(let se=0;se{if(G!==Q){if(G!==Be)for(const se in G)!Xi(se)&&!(se in Q)&&u(P,se,G[se],null,le,B.children,te,ie,Z);for(const se in Q){if(Xi(se))continue;const ce=Q[se],re=G[se];ce!==re&&se!=="value"&&u(P,se,re,ce,le,B.children,te,ie,Z)}"value"in Q&&u(P,"value",G.value,Q.value)}},A=(P,B,G,Q,te,ie,le,se,ce)=>{const re=B.el=P?P.el:g(""),ve=B.anchor=P?P.anchor:g("");let{patchFlag:de,dynamicChildren:me,slotScopeIds:_e}=B;_e&&(se=se?se.concat(_e):_e),P==null?(i(re,G,Q),i(ve,G,Q),R(B.children,G,ve,te,ie,le,se,ce)):de>0&&de&64&&me&&P.dynamicChildren?(M(P.dynamicChildren,me,G,te,ie,le,se),(B.key!=null||te&&B===te.subTree)&&sl(P,B,!0)):I(P,B,G,ve,te,ie,le,se,ce)},_=(P,B,G,Q,te,ie,le,se,ce)=>{B.slotScopeIds=se,P==null?B.shapeFlag&512?te.ctx.activate(B,G,Q,le,ce):w(B,G,Q,te,ie,le,ce):E(P,B,ce)},w=(P,B,G,Q,te,ie,le)=>{const se=P.component=cf(P,Q,te);if(Er(P)&&(se.ctx.renderer=Y),hf(se),se.asyncDep){if(te&&te.registerDep(se,T),!P.el){const ce=se.subTree=he(lt);v(null,ce,B,G)}return}T(se,P,B,G,te,ie,le)},E=(P,B,G)=>{const Q=B.component=P.component;if(bv(P,B,G))if(Q.asyncDep&&!Q.asyncResolved){O(Q,B,G);return}else Q.next=B,fv(Q.update),Q.update();else B.el=P.el,Q.vnode=B},T=(P,B,G,Q,te,ie,le)=>{const se=()=>{if(P.isMounted){let{next:ve,bu:de,u:me,parent:_e,vnode:J}=P,ae=ve,ue;Pn(P,!1),ve?(ve.el=J.el,O(P,ve,le)):ve=J,de&&fi(de),(ue=ve.props&&ve.props.onVnodeBeforeUpdate)&&pt(ue,_e,ve,J),Pn(P,!0);const be=no(P),Re=P.subTree;P.subTree=be,f(Re,be,r(Re.el),z(Re),P,te,ie),ve.el=be.el,ae===null&&Ja(P,be.el),me&&rt(me,te),(ue=ve.props&&ve.props.onVnodeUpdated)&&rt(()=>pt(ue,_e,ve,J),te)}else{let ve;const{el:de,props:me}=B,{bm:_e,m:J,parent:ae}=P,ue=Gn(B);if(Pn(P,!1),_e&&fi(_e),!ue&&(ve=me&&me.onVnodeBeforeMount)&&pt(ve,ae,B),Pn(P,!0),de&&ee){const be=()=>{P.subTree=no(P),ee(de,P.subTree,P,te,null)};ue?B.type.__asyncLoader().then(()=>!P.isUnmounted&&be()):be()}else{const be=P.subTree=no(P);f(null,be,G,Q,P,te,ie),B.el=be.el}if(J&&rt(J,te),!ue&&(ve=me&&me.onVnodeMounted)){const be=B;rt(()=>pt(ve,ae,be),te)}(B.shapeFlag&256||ae&&Gn(ae.vnode)&&ae.vnode.shapeFlag&256)&&P.a&&rt(P.a,te),P.isMounted=!0,B=G=Q=null}},ce=P.effect=new vi(se,()=>Uo(re),P.scope),re=P.update=()=>ce.run();re.id=P.uid,Pn(P,!0),re()},O=(P,B,G)=>{B.component=P;const Q=P.vnode.props;P.vnode=B,P.next=null,uy(P,B.props,Q,G),dy(P,B.children,G),Ti(),uc(),Li()},I=(P,B,G,Q,te,ie,le,se,ce=!1)=>{const re=P&&P.children,ve=P?P.shapeFlag:0,de=B.children,{patchFlag:me,shapeFlag:_e}=B;if(me>0){if(me&128){D(re,de,G,Q,te,ie,le,se,ce);return}else if(me&256){F(re,de,G,Q,te,ie,le,se,ce);return}}_e&8?(ve&16&&Z(re,te,ie),de!==re&&o(G,de)):ve&16?_e&16?D(re,de,G,Q,te,ie,le,se,ce):Z(re,te,ie,!0):(ve&8&&o(G,""),_e&16&&R(de,G,Q,te,ie,le,se,ce))},F=(P,B,G,Q,te,ie,le,se,ce)=>{P=P||ui,B=B||ui;const re=P.length,ve=B.length,de=Math.min(re,ve);let me;for(me=0;meve?Z(P,te,ie,!0,!1,de):R(B,G,Q,te,ie,le,se,ce,de)},D=(P,B,G,Q,te,ie,le,se,ce)=>{let re=0;const ve=B.length;let de=P.length-1,me=ve-1;for(;re<=de&&re<=me;){const _e=P[re],J=B[re]=ce?_n(B[re]):bt(B[re]);if(Ot(_e,J))f(_e,J,G,null,te,ie,le,se,ce);else break;re++}for(;re<=de&&re<=me;){const _e=P[de],J=B[me]=ce?_n(B[me]):bt(B[me]);if(Ot(_e,J))f(_e,J,G,null,te,ie,le,se,ce);else break;de--,me--}if(re>de){if(re<=me){const _e=me+1,J=_eme)for(;re<=de;)j(P[re],te,ie,!0),re++;else{const _e=re,J=re,ae=new Map;for(re=J;re<=me;re++){const ke=B[re]=ce?_n(B[re]):bt(B[re]);ke.key!=null&&ae.set(ke.key,re)}let ue,be=0;const Re=me-J+1;let Ne=!1,Ke=0;const De=new Array(Re);for(re=0;re=Re){j(ke,te,ie,!0);continue}let Ue;if(ke.key!=null)Ue=ae.get(ke.key);else for(ue=J;ue<=me;ue++)if(De[ue-J]===0&&Ot(ke,B[ue])){Ue=ue;break}Ue===void 0?j(ke,te,ie,!0):(De[Ue-J]=re+1,Ue>=Ke?Ke=Ue:Ne=!0,f(ke,B[Ue],G,null,te,ie,le,se,ce),be++)}const He=Ne?gy(De):ui;for(ue=He.length-1,re=Re-1;re>=0;re--){const ke=J+re,Ue=B[ke],dn=ke+1{const{el:ie,type:le,transition:se,children:ce,shapeFlag:re}=P;if(re&6){W(P.component.subTree,B,G,Q);return}if(re&128){P.suspense.move(B,G,Q);return}if(re&64){le.move(P,B,G,Y);return}if(le===Se){i(ie,B,G);for(let de=0;dese.enter(ie),te);else{const{leave:de,delayLeave:me,afterLeave:_e}=se,J=()=>i(ie,B,G),ae=()=>{de(ie,()=>{J(),_e&&_e()})};me?me(ie,J,ae):ae()}else i(ie,B,G)},j=(P,B,G,Q=!1,te=!1)=>{const{type:ie,props:le,ref:se,children:ce,dynamicChildren:re,shapeFlag:ve,patchFlag:de,dirs:me}=P;if(se!=null&&bo(se,null,G,P,!0),ve&256){B.ctx.deactivate(P);return}const _e=ve&1&&me,J=!Gn(P);let ae;if(J&&(ae=le&&le.onVnodeBeforeUnmount)&&pt(ae,B,P),ve&6)K(P.component,G,Q);else{if(ve&128){P.suspense.unmount(G,Q);return}_e&&Bt(P,null,B,"beforeUnmount"),ve&64?P.type.remove(P,B,G,te,Y,Q):re&&(ie!==Se||de>0&&de&64)?Z(re,B,G,!1,!0):(ie===Se&&de&384||!te&&ve&16)&&Z(ce,B,G),Q&&H(P)}(J&&(ae=le&&le.onVnodeUnmounted)||_e)&&rt(()=>{ae&&pt(ae,B,P),_e&&Bt(P,null,B,"unmounted")},G)},H=P=>{const{type:B,el:G,anchor:Q,transition:te}=P;if(B===Se){U(G,Q);return}if(B===Kn){C(P);return}const ie=()=>{p(G),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(P.shapeFlag&1&&te&&!te.persisted){const{leave:le,delayLeave:se}=te,ce=()=>le(G,ie);se?se(P.el,ie,ce):ce()}else ie()},U=(P,B)=>{let G;for(;P!==B;)G=l(P),p(P),P=G;p(B)},K=(P,B,G)=>{const{bum:Q,scope:te,update:ie,subTree:le,um:se}=P;Q&&fi(Q),te.stop(),ie&&(ie.active=!1,j(le,P,B,G)),se&&rt(se,B),rt(()=>{P.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Z=(P,B,G,Q=!1,te=!1,ie=0)=>{for(let le=ie;leP.shapeFlag&6?z(P.component.subTree):P.shapeFlag&128?P.suspense.next():l(P.anchor||P.el),X=(P,B,G)=>{P==null?B._vnode&&j(B._vnode,null,null,!0):f(B._vnode||null,P,B,null,null,null,G),uc(),vo(),B._vnode=P},Y={p:f,um:j,m:W,r:H,mt:w,mc:R,pc:I,pbc:M,n:z,o:e};let V,ee;return t&&([V,ee]=t(Y)),{render:X,hydrate:V,createApp:ay(X,V)}}function Pn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function tf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sl(e,t,n=!1){const i=e.children,p=t.children;if(ge(i)&&ge(p))for(let u=0;u>1,e[n[g]]0&&(t[i]=n[u-1]),n[u]=i)}}for(u=n.length,d=n[u-1];u-- >0;)n[u]=d,d=t[d];return n}const my=e=>e.__isTeleport,qi=e=>e&&(e.disabled||e.disabled===""),_c=e=>typeof SVGElement<"u"&&e instanceof SVGElement,na=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},vy={__isTeleport:!0,process(e,t,n,i,p,u,d,g,s,h){const{mc:o,pc:r,pbc:l,o:{insert:c,querySelector:a,createText:f,createComment:m}}=h,v=qi(t.props);let{shapeFlag:b,children:x,dynamicChildren:C}=t;if(e==null){const S=t.el=f(""),$=t.anchor=f("");c(S,n,i),c($,n,i);const L=t.target=na(t.props,a),R=t.targetAnchor=f("");L&&(c(R,L),d=d||_c(L));const k=(M,y)=>{b&16&&o(x,M,y,p,u,d,g,s)};v?k(n,$):L&&k(L,R)}else{t.el=e.el;const S=t.anchor=e.anchor,$=t.target=e.target,L=t.targetAnchor=e.targetAnchor,R=qi(e.props),k=R?n:$,M=R?S:L;if(d=d||_c($),C?(l(e.dynamicChildren,C,k,p,u,d,g),sl(e,t,!0)):s||r(e,t,k,M,p,u,d,g,!1),v)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qr(t,n,S,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const y=t.target=na(t.props,a);y&&Qr(t,y,null,h,0)}else R&&Qr(t,$,L,h,1)}nf(t)},remove(e,t,n,i,{um:p,o:{remove:u}},d){const{shapeFlag:g,children:s,anchor:h,targetAnchor:o,target:r,props:l}=e;if(r&&u(o),d&&u(h),g&16){const c=d||!qi(l);for(let a=0;a0?gt||ui:null,rf(),qn>0&>&>.push(e),e}function oe(e,t,n,i,p,u){return of(N(e,t,n,i,p,u,!0))}function Me(e,t,n,i,p){return of(he(e,t,n,i,p,!0))}function Mn(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}function wy(e){}const Xo="__vInternal",sf=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ge(e)||qe(e)||Ce(e)?{i:nt,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,i=0,p=null,u=e===Se?0:1,d=!1,g=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sf(t),ref:t&&io(t),scopeId:Vo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:i,dynamicProps:p,dynamicChildren:null,appContext:null,ctx:nt};return g?(al(s,n),u&128&&e.normalize(s)):n&&(s.shapeFlag|=Ge(n)?8:16),qn>0&&!d&>&&(s.patchFlag>0||u&6)&&s.patchFlag!==32&>.push(s),s}const he=$y;function $y(e,t=null,n=null,i=0,p=null,u=!1){if((!e||e===xh)&&(e=lt),Mn(e)){const g=jt(e,t,!0);return n&&al(g,n),qn>0&&!u&>&&(g.shapeFlag&6?gt[gt.indexOf(e)]=g:gt.push(g)),g.patchFlag|=-2,g}if(Ry(e)&&(e=e.__vccOpts),t){t=af(t);let{class:g,style:s}=t;g&&!Ge(g)&&(t.class=xr(g)),We(s)&&(Va(s)&&!ge(s)&&(s=je({},s)),t.style=Ar(s))}const d=Ge(e)?1:kh(e)?128:my(e)?64:We(e)?4:Ce(e)?2:0;return N(e,t,n,i,p,d,u,!0)}function af(e){return e?Va(e)||Xo in e?je({},e):e:null}function jt(e,t,n=!1){const{props:i,ref:p,patchFlag:u,children:d}=e,g=t?lf(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&sf(g),ref:t&&t.ref?n&&p?ge(p)?p.concat(io(t)):[p,io(t)]:io(t):p,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:d,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function at(e=" ",t=0){return he(Jn,null,e,t)}function _y(e,t){const n=he(Kn,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(q(),Me(lt,null,e)):he(lt,null,e)}function bt(e){return e==null||typeof e=="boolean"?he(lt):ge(e)?he(Se,null,e.slice()):typeof e=="object"?_n(e):he(Jn,null,String(e))}function _n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function al(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(ge(t))n=16;else if(typeof t=="object")if(i&65){const p=t.default;p&&(p._c&&(p._d=!1),al(e,p()),p._c&&(p._d=!0));return}else{n=32;const p=t._;!p&&!(Xo in t)?t._ctx=nt:p===3&&nt&&(nt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:nt},n=32):(t=String(t),i&64?(n=16,t=[at(t)]):n=8);e.children=t,e.shapeFlag|=n}function lf(...e){const t={};for(let n=0;nQe||nt;let ll,ii,Cc="__VUE_INSTANCE_SETTERS__";(ii=Gs()[Cc])||(ii=Gs()[Cc]=[]),ii.push(e=>Qe=e),ll=e=>{ii.length>1?ii.forEach(t=>t(e)):ii[0](e)};const On=e=>{ll(e),e.scope.on()},An=()=>{Qe&&Qe.scope.off(),ll(null)};function uf(e){return e.vnode.shapeFlag&4}let wi=!1;function hf(e,t=!1){wi=t;const{props:n,children:i}=e.vnode,p=uf(e);cy(e,n,p,t),fy(e,i);const u=p?Ay(e,t):void 0;return wi=!1,u}function Ay(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Wo(new Proxy(e.ctx,Js));const{setup:i}=n;if(i){const p=e.setupContext=i.length>1?df(e):null;On(e),Ti();const u=nn(i,e,0,[e.props,p]);if(Li(),An(),Pa(u)){if(u.then(An,An),t)return u.then(d=>{ra(e,d,t)}).catch(d=>{ti(d,e,0)});e.asyncDep=u}else ra(e,u,t)}else ff(e,t)}function ra(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=Ka(t)),ff(e,n)}let wo,oa;function xy(e){wo=e,oa=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Wv))}}const ky=()=>!wo;function ff(e,t,n){const i=e.type;if(!e.render){if(!t&&wo&&!i.render){const p=i.template||rl(e).template;if(p){const{isCustomElement:u,compilerOptions:d}=e.appContext.config,{delimiters:g,compilerOptions:s}=i,h=je(je({isCustomElement:u,delimiters:g},d),s);i.render=wo(p,h)}}e.render=i.render||Nt,oa&&oa(e)}{On(e),Ti();try{ty(e)}finally{Li(),An()}}}function Ey(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return vt(e,"get","$attrs"),t[n]}}))}function df(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ey(e)},slots:e.slots,emit:e.emit,expose:t}}function Zo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ka(Wo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qi)return Qi[n](e)},has(t,n){return n in t||n in Qi}}))}function sa(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Ry(e){return Ce(e)&&"__vccOpts"in e}const Ee=(e,t)=>av(e,t,wi);function Oi(e,t,n){const i=arguments.length;return i===2?We(t)&&!ge(t)?Mn(t)?he(e,null,[t]):he(e,t):he(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Mn(n)&&(n=[n]),he(e,t,n))}const pf=Symbol.for("v-scx"),gf=()=>kt(pf);function Ty(){}function Ly(e,t,n,i){const p=n[i];if(p&&mf(p,e))return p;const u=t();return u.memo=e.slice(),n[i]=u}function mf(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i0&>&>.push(e),!0}const vf="3.3.8",My={createComponentInstance:cf,setupComponent:hf,renderComponentRoot:no,setCurrentRenderingInstance:dr,isVNode:Mn,normalizeVNode:bt},Oy=My,Iy=null,Fy=null,Ny="http://www.w3.org/2000/svg",Wn=typeof document<"u"?document:null,Sc=Wn&&Wn.createElement("template"),Py={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const p=t?Wn.createElementNS(Ny,e):Wn.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&p.setAttribute("multiple",i.multiple),p},createText:e=>Wn.createTextNode(e),createComment:e=>Wn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,p,u){const d=n?n.previousSibling:t.lastChild;if(p&&(p===u||p.nextSibling))for(;t.insertBefore(p.cloneNode(!0),n),!(p===u||!(p=p.nextSibling)););else{Sc.innerHTML=i?`${e}`:e;const g=Sc.content;if(i){const s=g.firstChild;for(;s.firstChild;)g.appendChild(s.firstChild);g.removeChild(s)}t.insertBefore(g,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},vn="transition",Di="animation",$i=Symbol("_vtc"),cl=(e,{slots:t})=>Oi(Mh,bf(e),t);cl.displayName="Transition";const yf={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},Dy=cl.props=je({},il,yf),Dn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ac=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function bf(e){const t={};for(const A in e)A in yf||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:i,duration:p,enterFromClass:u=`${n}-enter-from`,enterActiveClass:d=`${n}-enter-active`,enterToClass:g=`${n}-enter-to`,appearFromClass:s=u,appearActiveClass:h=d,appearToClass:o=g,leaveFromClass:r=`${n}-leave-from`,leaveActiveClass:l=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,a=By(p),f=a&&a[0],m=a&&a[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:x,onLeave:C,onLeaveCancelled:S,onBeforeAppear:$=v,onAppear:L=b,onAppearCancelled:R=x}=t,k=(A,_,w)=>{wn(A,_?o:g),wn(A,_?h:d),w&&w()},M=(A,_)=>{A._isLeaving=!1,wn(A,r),wn(A,c),wn(A,l),_&&_()},y=A=>(_,w)=>{const E=A?L:b,T=()=>k(_,A,w);Dn(E,[_,T]),xc(()=>{wn(_,A?s:u),Xt(_,A?o:g),Ac(E)||kc(_,i,f,T)})};return je(t,{onBeforeEnter(A){Dn(v,[A]),Xt(A,u),Xt(A,d)},onBeforeAppear(A){Dn($,[A]),Xt(A,s),Xt(A,h)},onEnter:y(!1),onAppear:y(!0),onLeave(A,_){A._isLeaving=!0;const w=()=>M(A,_);Xt(A,r),$f(),Xt(A,l),xc(()=>{A._isLeaving&&(wn(A,r),Xt(A,c),Ac(C)||kc(A,i,m,w))}),Dn(C,[A,w])},onEnterCancelled(A){k(A,!1),Dn(x,[A])},onAppearCancelled(A){k(A,!0),Dn(R,[A])},onLeaveCancelled(A){M(A),Dn(S,[A])}})}function By(e){if(e==null)return null;if(We(e))return[$s(e.enter),$s(e.leave)];{const t=$s(e);return[t,t]}}function $s(e){return po(e)}function Xt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$i]||(e[$i]=new Set)).add(t)}function wn(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const n=e[$i];n&&(n.delete(t),n.size||(e[$i]=void 0))}function xc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Wy=0;function kc(e,t,n,i){const p=e._endId=++Wy,u=()=>{p===e._endId&&i()};if(n)return setTimeout(u,n);const{type:d,timeout:g,propCount:s}=wf(e,t);if(!d)return i();const h=d+"end";let o=0;const r=()=>{e.removeEventListener(h,l),u()},l=c=>{c.target===e&&++o>=s&&r()};setTimeout(()=>{o(n[a]||"").split(", "),p=i(`${vn}Delay`),u=i(`${vn}Duration`),d=Ec(p,u),g=i(`${Di}Delay`),s=i(`${Di}Duration`),h=Ec(g,s);let o=null,r=0,l=0;t===vn?d>0&&(o=vn,r=d,l=u.length):t===Di?h>0&&(o=Di,r=h,l=s.length):(r=Math.max(d,h),o=r>0?d>h?vn:Di:null,l=o?o===vn?u.length:s.length:0);const c=o===vn&&/\b(transform|all)(,|$)/.test(i(`${vn}Property`).toString());return{type:o,timeout:r,propCount:l,hasTransform:c}}function Ec(e,t){for(;e.lengthRc(n)+Rc(e[i])))}function Rc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function $f(){return document.body.offsetHeight}function Hy(e,t,n){const i=e[$i];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ul=Symbol("_vod"),_f={beforeMount(e,{value:t},{transition:n}){e[ul]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Bi(e,!0),i.enter(e)):i.leave(e,()=>{Bi(e,!1)}):Bi(e,t))},beforeUnmount(e,{value:t}){Bi(e,t)}};function Bi(e,t){e.style.display=t?e[ul]:"none"}function Uy(){_f.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}function zy(e,t,n){const i=e.style,p=Ge(n);if(n&&!p){if(t&&!Ge(t))for(const u in t)n[u]==null&&aa(i,u,"");for(const u in n)aa(i,u,n[u])}else{const u=i.display;p?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),ul in e&&(i.display=u)}}const Tc=/\s*!important$/;function aa(e,t,n){if(ge(n))n.forEach(i=>aa(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Vy(e,t);Tc.test(n)?e.setProperty(At(i),n.replace(Tc,""),"important"):e[i]=n}}const Lc=["Webkit","Moz","ms"],_s={};function Vy(e,t){const n=_s[t];if(n)return n;let i=mt(t);if(i!=="filter"&&i in e)return _s[t]=i;i=Ri(i);for(let p=0;pCs||(Zy.then(()=>Cs=0),Cs=Date.now());function Jy(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;$t(qy(i,n.value),t,5,[i])};return n.value=e,n.attached=Qy(),n}function qy(e,t){if(ge(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>p=>!p._stopped&&i&&i(p))}else return t}const Fc=/^on[a-z]/,e0=(e,t,n,i,p=!1,u,d,g,s)=>{t==="class"?Hy(e,i,p):t==="style"?zy(e,n,i):Sr(t)?Fa(t)||Yy(e,t,n,i,d):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):t0(e,t,i,p))?Gy(e,t,i,u,d,g,s):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),jy(e,t,i,p))};function t0(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Fc.test(t)&&Ce(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Fc.test(t)&&Ge(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Cf(e,t){const n=$e(e);class i extends Qo{constructor(u){super(n,u,t)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const n0=e=>Cf(e,Of),i0=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends i0{constructor(t,n={},i){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Vt(()=>{this._connected||(ua(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i{for(const p of i)this._setAttr(p.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(i,p=!1)=>{const{props:u,styles:d}=i;let g;if(u&&!ge(u))for(const s in u){const h=u[s];(h===Number||h&&h.type===Number)&&(s in this._props&&(this._props[s]=po(this._props[s])),(g||(g=Object.create(null)))[mt(s)]=!0)}this._numberProps=g,p&&this._resolveProps(i),this._applyStyles(d),this._update()},n=this._def.__asyncLoader;n?n().then(i=>t(i,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,i=ge(n)?n:Object.keys(n||{});for(const p of Object.keys(this))p[0]!=="_"&&i.includes(p)&&this._setProp(p,this[p],!0,!1);for(const p of i.map(mt))Object.defineProperty(this,p,{get(){return this._getProp(p)},set(u){this._setProp(p,u)}})}_setAttr(t){let n=this.getAttribute(t);const i=mt(t);this._numberProps&&this._numberProps[i]&&(n=po(n)),this._setProp(i,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,i=!0,p=!0){n!==this._props[t]&&(this._props[t]=n,p&&this._instance&&this._update(),i&&(n===!0?this.setAttribute(At(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(At(t),n+""):n||this.removeAttribute(At(t))))}_update(){ua(this._createVNode(),this.shadowRoot)}_createVNode(){const t=he(this._def,je({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const i=(u,d)=>{this.dispatchEvent(new CustomEvent(u,{detail:d}))};n.emit=(u,...d)=>{i(u,d),At(u)!==u&&i(At(u),d)};let p=this;for(;p=p&&(p.parentNode||p.host);)if(p instanceof Qo){n.parent=p._instance,n.provides=p._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const i=document.createElement("style");i.textContent=n,this.shadowRoot.appendChild(i)})}}function r0(e="$style"){{const t=Dt();if(!t)return Be;const n=t.type.__cssModules;if(!n)return Be;const i=n[e];return i||Be}}function o0(e){const t=Dt();if(!t)return;const n=t.ut=(p=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(u=>ca(u,p))},i=()=>{const p=e(t.proxy);la(t.subTree,p),n(p)};Th(i),tt(()=>{const p=new MutationObserver(i);p.observe(t.subTree.el.parentNode,{childList:!0}),Yo(()=>p.disconnect())})}function la(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{la(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ca(e.el,t);else if(e.type===Se)e.children.forEach(n=>la(n,t));else if(e.type===Kn){let{el:n,anchor:i}=e;for(;n&&(ca(n,t),n!==i);)n=n.nextSibling}}function ca(e,t){if(e.nodeType===1){const n=e.style;for(const i in t)n.setProperty(`--${i}`,t[i])}}const Sf=new WeakMap,Af=new WeakMap,$o=Symbol("_moveCb"),Nc=Symbol("_enterCb"),xf={name:"TransitionGroup",props:je({},Dy,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dt(),i=nl();let p,u;return Ko(()=>{if(!p.length)return;const d=e.moveClass||`${e.name||"v"}-move`;if(!h0(p[0].el,n.vnode.el,d))return;p.forEach(l0),p.forEach(c0);const g=p.filter(u0);$f(),g.forEach(s=>{const h=s.el,o=h.style;Xt(h,d),o.transform=o.webkitTransform=o.transitionDuration="";const r=h[$o]=l=>{l&&l.target!==h||(!l||/transform$/.test(l.propertyName))&&(h.removeEventListener("transitionend",r),h[$o]=null,wn(h,d))};h.addEventListener("transitionend",r)})}),()=>{const d=Le(e),g=bf(d);let s=d.tag||Se;p=u,u=t.default?jo(t.default()):[];for(let h=0;hdelete e.mode;xf.props;const a0=xf;function l0(e){const t=e.el;t[$o]&&t[$o](),t[Nc]&&t[Nc]()}function c0(e){Af.set(e,e.el.getBoundingClientRect())}function u0(e){const t=Sf.get(e),n=Af.get(e),i=t.left-n.left,p=t.top-n.top;if(i||p){const u=e.el.style;return u.transform=u.webkitTransform=`translate(${i}px,${p}px)`,u.transitionDuration="0s",e}}function h0(e,t,n){const i=e.cloneNode(),p=e[$i];p&&p.forEach(g=>{g.split(/\s+/).forEach(s=>s&&i.classList.remove(s))}),n.split(/\s+/).forEach(g=>g&&i.classList.add(g)),i.style.display="none";const u=t.nodeType===1?t:t.parentNode;u.appendChild(i);const{hasTransform:d}=wf(i);return u.removeChild(i),d}const In=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>fi(t,n):t};function f0(e){e.target.composing=!0}function Pc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Et=Symbol("_assign"),Ft={created(e,{modifiers:{lazy:t,trim:n,number:i}},p){e[Et]=In(p);const u=i||p.props&&p.props.type==="number";Qt(e,t?"change":"input",d=>{if(d.target.composing)return;let g=e.value;n&&(g=g.trim()),u&&(g=fo(g)),e[Et](g)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",f0),Qt(e,"compositionend",Pc),Qt(e,"change",Pc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:p}},u){if(e[Et]=In(u),e.composing||document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===t||(p||e.type==="number")&&fo(e.value)===t))return;const d=t??"";e.value!==d&&(e.value=d)}},hl={deep:!0,created(e,t,n){e[Et]=In(n),Qt(e,"change",()=>{const i=e._modelValue,p=_i(e),u=e.checked,d=e[Et];if(ge(i)){const g=Fo(i,p),s=g!==-1;if(u&&!s)d(i.concat(p));else if(!u&&s){const h=[...i];h.splice(g,1),d(h)}}else if(ei(i)){const g=new Set(i);u?g.add(p):g.delete(p),d(g)}else d(kf(e,u))})},mounted:Dc,beforeUpdate(e,t,n){e[Et]=In(n),Dc(e,t,n)}};function Dc(e,{value:t,oldValue:n},i){e._modelValue=t,ge(t)?e.checked=Fo(t,i.props.value)>-1:ei(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Tn(t,kf(e,!0)))}const fl={created(e,{value:t},n){e.checked=Tn(t,n.props.value),e[Et]=In(n),Qt(e,"change",()=>{e[Et](_i(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Et]=In(i),t!==n&&(e.checked=Tn(t,i.props.value))}},vr={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const p=ei(t);Qt(e,"change",()=>{const u=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>n?fo(_i(d)):_i(d));e[Et](e.multiple?p?new Set(u):u:u[0])}),e[Et]=In(i)},mounted(e,{value:t}){Bc(e,t)},beforeUpdate(e,t,n){e[Et]=In(n)},updated(e,{value:t}){Bc(e,t)}};function Bc(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!ei(t))){for(let i=0,p=e.options.length;i-1:u.selected=t.has(d);else if(Tn(_i(u),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _i(e){return"_value"in e?e._value:e.value}function kf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ef={created(e,t,n){Jr(e,t,n,null,"created")},mounted(e,t,n){Jr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){Jr(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){Jr(e,t,n,i,"updated")}};function Rf(e,t){switch(e){case"SELECT":return vr;case"TEXTAREA":return Ft;default:switch(t){case"checkbox":return hl;case"radio":return fl;default:return Ft}}}function Jr(e,t,n,i,p){const d=Rf(e.tagName,n.props&&n.props.type)[p];d&&d(e,t,n,i)}function d0(){Ft.getSSRProps=({value:e})=>({value:e}),fl.getSSRProps=({value:e},t)=>{if(t.props&&Tn(t.props.value,e))return{checked:!0}},hl.getSSRProps=({value:e},t)=>{if(ge(e)){if(t.props&&Fo(e,t.props.value)>-1)return{checked:!0}}else if(ei(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ef.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Rf(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const p0=["ctrl","shift","alt","meta"],g0={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>p0.some(n=>e[`${n}Key`]&&!t.includes(n))},m0=(e,t)=>(n,...i)=>{for(let p=0;pn=>{if(!("key"in n))return;const i=At(n.key);if(t.some(p=>p===i||v0[p]===i))return e(n)},Tf=je({patchProp:e0},Py);let tr,Wc=!1;function Lf(){return tr||(tr=Jh(Tf))}function Mf(){return tr=Wc?tr:qh(Tf),Wc=!0,tr}const ua=(...e)=>{Lf().render(...e)},Of=(...e)=>{Mf().hydrate(...e)},If=(...e)=>{const t=Lf().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Ff(i);if(!p)return;const u=t._component;!Ce(u)&&!u.render&&!u.template&&(u.template=p.innerHTML),p.innerHTML="";const d=n(p,!1,p instanceof SVGElement);return p instanceof Element&&(p.removeAttribute("v-cloak"),p.setAttribute("data-v-app","")),d},t},b0=(...e)=>{const t=Mf().createApp(...e),{mount:n}=t;return t.mount=i=>{const p=Ff(i);if(p)return n(p,!0,p instanceof SVGElement)},t};function Ff(e){return Ge(e)?document.querySelector(e):e}let Hc=!1;const w0=()=>{Hc||(Hc=!0,d0(),Uy())},$0=()=>{},_0=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Mh,BaseTransitionPropsValidators:il,Comment:lt,EffectScope:Ba,Fragment:Se,KeepAlive:Fv,ReactiveEffect:vi,Static:Kn,Suspense:Sv,Teleport:by,Text:Jn,Transition:cl,TransitionGroup:a0,VueElement:Qo,assertNumber:cv,callWithAsyncErrorHandling:$t,callWithErrorHandling:nn,camelize:mt,capitalize:Ri,cloneVNode:jt,compatUtils:Fy,compile:$0,computed:Ee,createApp:If,createBlock:Me,createCommentVNode:we,createElementBlock:oe,createElementVNode:N,createHydrationRenderer:qh,createPropsRestProxy:qv,createRenderer:Jh,createSSRApp:b0,createSlots:Pv,createStaticVNode:_y,createTextVNode:at,createVNode:he,customRef:Ya,defineAsyncComponent:Ov,defineComponent:$e,defineCustomElement:Cf,defineEmits:Uv,defineExpose:zv,defineModel:Gv,defineOptions:Vv,defineProps:Hv,defineSSRCustomElement:n0,defineSlots:jv,get devtools(){return ri},effect:Tm,effectScope:ih,getCurrentInstance:Dt,getCurrentScope:Wa,getTransitionRawChildren:jo,guardReactiveProps:af,h:Oi,handleError:ti,hasInjectionContext:ly,hydrate:Of,initCustomFormatter:Ty,initDirectivesForSSR:w0,inject:kt,isMemoSame:mf,isProxy:Va,isReactive:jn,isReadonly:Zn,isRef:qe,isRuntimeOnly:ky,isShallow:cr,isVNode:Mn,markRaw:Wo,mergeDefaults:Qv,mergeModels:Jv,mergeProps:lf,nextTick:Vt,normalizeClass:xr,normalizeProps:Sm,normalizeStyle:Ar,onActivated:Ih,onBeforeMount:Ph,onBeforeUnmount:Rr,onBeforeUpdate:Dh,onDeactivated:Fh,onErrorCaptured:Uh,onMounted:tt,onRenderTracked:Hh,onRenderTriggered:Wh,onScopeDispose:oh,onServerPrefetch:Bh,onUnmounted:Yo,onUpdated:Ko,openBlock:q,popScopeId:Qa,provide:Ji,proxyRefs:Ka,pushScopeId:Za,queuePostFlushCb:mo,reactive:Mi,readonly:Do,ref:Ie,registerRuntimeCompiler:xy,render:ua,renderList:ct,renderSlot:Dv,resolveComponent:fe,resolveDirective:_v,resolveDynamicComponent:$v,resolveFilter:Iy,resolveTransitionHooks:bi,setBlockTracking:ia,setDevtoolsHook:Sh,setTransitionHooks:Qn,shallowReactive:za,shallowReadonly:Qm,shallowRef:yh,ssrContextKey:pf,ssrUtils:Oy,stop:Lm,toDisplayString:Ae,toHandlerKey:Zi,toHandlers:Bv,toRaw:Le,toRef:yi,toRefs:iv,toValue:ev,transformVNodeArgs:wy,triggerRef:qm,unref:tn,useAttrs:Xv,useCssModule:r0,useCssVars:o0,useModel:Zv,useSSRContext:gf,useSlots:Yv,useTransitionState:nl,vModelCheckbox:hl,vModelDynamic:Ef,vModelRadio:fl,vModelSelect:vr,vModelText:Ft,vShow:_f,version:vf,warn:lv,watch:Ye,watchEffect:Rh,watchPostEffect:Th,watchSyncEffect:Tv,withAsyncContext:ey,withCtx:xt,withDefaults:Kv,withDirectives:Mt,withKeys:y0,withMemo:Ly,withModifiers:m0,withScopeId:gv},Symbol.toStringTag,{value:"Module"}));function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable})),n.push.apply(n,i)}return n}function Jt(e){for(var t=1;t=0)&&(n[p]=e[p]);return n}function S0(e,t){if(e==null)return{};var n=C0(e,t),i,p;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(p=0;p=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function A0(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x0(e){var t=A0(e,"string");return typeof t=="symbol"?t:String(t)}var k0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Nf={exports:{}};(function(e){(function(t){var n=function(v,b,x){if(!h(b)||r(b)||l(b)||c(b)||s(b))return b;var C,S=0,$=0;if(o(b))for(C=[],$=b.length;S<$;S++)C.push(n(v,b[S],x));else{C={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&(C[v(L,x)]=n(v,b[L],x))}return C},i=function(v,b){b=b||{};var x=b.separator||"_",C=b.split||/(?=[A-Z])/;return v.split(C).join(x)},p=function(v){return a(v)?v:(v=v.replace(/[\-_\s]+(.)?/g,function(b,x){return x?x.toUpperCase():""}),v.substr(0,1).toLowerCase()+v.substr(1))},u=function(v){var b=p(v);return b.substr(0,1).toUpperCase()+b.substr(1)},d=function(v,b){return i(v,b).toLowerCase()},g=Object.prototype.toString,s=function(v){return typeof v=="function"},h=function(v){return v===Object(v)},o=function(v){return g.call(v)=="[object Array]"},r=function(v){return g.call(v)=="[object Date]"},l=function(v){return g.call(v)=="[object RegExp]"},c=function(v){return g.call(v)=="[object Boolean]"},a=function(v){return v=v-0,v===v},f=function(v,b){var x=b&&"process"in b?b.process:b;return typeof x!="function"?v:function(C,S){return x(C,v,S)}},m={camelize:p,decamelize:d,pascalize:u,depascalize:d,camelizeKeys:function(v,b){return n(f(p,b),v)},decamelizeKeys:function(v,b){return n(f(d,b),v,b)},pascalizeKeys:function(v,b){return n(f(u,b),v)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(k0)})(Nf);var E0=Nf.exports,R0=["class","style"];function T0(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var i=n.indexOf(":"),p=E0.camelize(n.slice(0,i)),u=n.slice(i+1).trim();return t[p]=u,t},{})}function L0(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Pf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var i=(e.children||[]).map(function(s){return Pf(s)}),p=Object.keys(e.attributes||{}).reduce(function(s,h){var o=e.attributes[h];switch(h){case"class":s.class=L0(o);break;case"style":s.style=T0(o);break;default:s.attrs[h]=o}return s},{attrs:{},class:{},style:{}});n.class;var u=n.style,d=u===void 0?{}:u,g=S0(n,R0);return Oi(e.tag,Jt(Jt(Jt({},t),{},{class:p.class,style:Jt(Jt({},p.style),d)},p.attrs),g),i)}var Df=!1;try{Df=!0}catch{}function M0(){if(!Df&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ss(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?dt({},e,t):{}}function O0(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},dt(t,"fa-".concat(e.size),e.size!==null),dt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),dt(t,"fa-pull-".concat(e.pull),e.pull!==null),dt(t,"fa-swap-opacity",e.swapOpacity),dt(t,"fa-bounce",e.bounce),dt(t,"fa-shake",e.shake),dt(t,"fa-beat",e.beat),dt(t,"fa-fade",e.fade),dt(t,"fa-beat-fade",e.beatFade),dt(t,"fa-flash",e.flash),dt(t,"fa-spin-pulse",e.spinPulse),dt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}function zc(e){if(e&&_o(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(js.icon)return js.icon(e);if(e===null)return null;if(_o(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var I0=$e({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var i=n.attrs,p=Ee(function(){return zc(t.icon)}),u=Ee(function(){return Ss("classes",O0(t))}),d=Ee(function(){return Ss("transform",typeof t.transform=="string"?js.transform(t.transform):t.transform)}),g=Ee(function(){return Ss("mask",zc(t.mask))}),s=Ee(function(){return Zg(p.value,Jt(Jt(Jt(Jt({},u.value),d.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Ye(s,function(o){if(!o)return M0("Could not find one or more icon(s)",p.value,g.value)},{immediate:!0});var h=Ee(function(){return s.value?Pf(s.value.abstract[0],{},i):null});return function(){return h.value}}});const F0=$e({name:"NavbarItem"});const xe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,p]of t)n[i]=p;return n},Jo=e=>(Za("data-v-19d4e9a4"),e=e(),Qa(),e),N0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},P0=Jo(()=>N("div",{class:"navbar-brand"},[N("a",{class:"navbar-item"},[N("h1",{class:"title"},"Mihari")]),N("a",{role:"button","aria-label":"menu",class:"navbar-burger burger"},[N("span",{"aria-hidden":"true"}),N("span",{"aria-hidden":"true"}),N("span",{"aria-hidden":"true"})])],-1)),D0={class:"navbar-menu"},B0=Jo(()=>N("div",{class:"navbar-start"},null,-1)),W0={class:"navbar-end"},H0=Jo(()=>N("a",{class:"navbar-item"},[N("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),U0=Jo(()=>N("a",{class:"navbar-item"},[N("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function z0(e,t,n,i,p,u){const d=fe("router-link");return q(),oe("nav",N0,[P0,N("div",D0,[B0,N("div",W0,[he(d,{class:"navbar-item",to:{name:"Alerts"}},{default:xt(()=>[at("Alerts")]),_:1}),he(d,{class:"navbar-item",to:{name:"NewRule"}},{default:xt(()=>[at("New rule")]),_:1}),he(d,{class:"navbar-item",to:{name:"Rules"}},{default:xt(()=>[at("Rules")]),_:1}),he(d,{class:"navbar-item",to:{name:"Configs"}},{default:xt(()=>[at("Configs")]),_:1}),H0,U0])])])}const V0=xe(F0,[["render",z0],["__scopeId","data-v-19d4e9a4"]]),j0=$e({name:"App",components:{Navbar:V0}});const G0={class:"section is-medium"},K0={class:"container"};function Y0(e,t,n,i,p,u){const d=fe("Navbar"),g=fe("router-view");return q(),oe(Se,null,[he(d),N("section",G0,[N("div",K0,[he(g)])])],64)}const X0=xe(j0,[["render",Y0]]);/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT */const oi=typeof window<"u";function Z0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Pe=Object.assign;function As(e,t){const n={};for(const i in t){const p=t[i];n[i]=Pt(p)?p.map(e):e(p)}return n}const nr=()=>{},Pt=Array.isArray,Q0=/\/$/,J0=e=>e.replace(Q0,"");function xs(e,t,n="/"){let i,p={},u="",d="";const g=t.indexOf("#");let s=t.indexOf("?");return g=0&&(s=-1),s>-1&&(i=t.slice(0,s),u=t.slice(s+1,g>-1?g:t.length),p=e(u)),g>-1&&(i=i||t.slice(0,g),d=t.slice(g,t.length)),i=nb(i??t,n),{fullPath:i+(u&&"?")+u+d,path:i,query:p,hash:d}}function q0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Vc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function eb(e,t,n){const i=t.matched.length-1,p=n.matched.length-1;return i>-1&&i===p&&Ci(t.matched[i],n.matched[p])&&Bf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ci(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Bf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tb(e[n],t[n]))return!1;return!0}function tb(e,t){return Pt(e)?jc(e,t):Pt(t)?jc(t,e):e===t}function jc(e,t){return Pt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function nb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),p=i[i.length-1];(p===".."||p===".")&&i.push("");let u=n.length-1,d,g;for(d=0;d1&&u--;else break;return n.slice(0,u).join("/")+"/"+i.slice(d-(d===i.length?1:0)).join("/")}var yr;(function(e){e.pop="pop",e.push="push"})(yr||(yr={}));var ir;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ir||(ir={}));function ib(e){if(!e)if(oi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),J0(e)}const rb=/^[^#]+#/;function ob(e,t){return e.replace(rb,"#")+t}function sb(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const qo=()=>({left:window.pageXOffset,top:window.pageYOffset});function ab(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),p=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!p)return;t=sb(p,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Gc(e,t){return(history.state?history.state.position-t:-1)+e}const ha=new Map;function lb(e,t){ha.set(e,t)}function cb(e){const t=ha.get(e);return ha.delete(e),t}let ub=()=>location.protocol+"//"+location.host;function Wf(e,t){const{pathname:n,search:i,hash:p}=t,u=e.indexOf("#");if(u>-1){let g=p.includes(e.slice(u))?e.slice(u).length:1,s=p.slice(g);return s[0]!=="/"&&(s="/"+s),Vc(s,"")}return Vc(n,e)+i+p}function hb(e,t,n,i){let p=[],u=[],d=null;const g=({state:l})=>{const c=Wf(e,location),a=n.value,f=t.value;let m=0;if(l){if(n.value=c,t.value=l,d&&d===a){d=null;return}m=f?l.position-f.position:0}else i(c);p.forEach(v=>{v(n.value,a,{delta:m,type:yr.pop,direction:m?m>0?ir.forward:ir.back:ir.unknown})})};function s(){d=n.value}function h(l){p.push(l);const c=()=>{const a=p.indexOf(l);a>-1&&p.splice(a,1)};return u.push(c),c}function o(){const{history:l}=window;l.state&&l.replaceState(Pe({},l.state,{scroll:qo()}),"")}function r(){for(const l of u)l();u=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:s,listen:h,destroy:r}}function Kc(e,t,n,i=!1,p=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:p?qo():null}}function fb(e){const{history:t,location:n}=window,i={value:Wf(e,n)},p={value:t.state};p.value||u(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(s,h,o){const r=e.indexOf("#"),l=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+s:ub()+e+s;try{t[o?"replaceState":"pushState"](h,"",l),p.value=h}catch(c){console.error(c),n[o?"replace":"assign"](l)}}function d(s,h){const o=Pe({},t.state,Kc(p.value.back,s,p.value.forward,!0),h,{position:p.value.position});u(s,o,!0),i.value=s}function g(s,h){const o=Pe({},p.value,t.state,{forward:s,scroll:qo()});u(o.current,o,!0);const r=Pe({},Kc(i.value,s,null),{position:o.position+1},h);u(s,r,!1),i.value=s}return{location:i,state:p,push:g,replace:d}}function db(e){e=ib(e);const t=fb(e),n=hb(e,t.state,t.location,t.replace);function i(u,d=!0){d||n.pauseListeners(),history.go(u)}const p=Pe({location:"",base:e,go:i,createHref:ob.bind(null,e)},t,n);return Object.defineProperty(p,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(p,"state",{enumerable:!0,get:()=>t.state.value}),p}function pb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),db(e)}function gb(e){return typeof e=="string"||e&&typeof e=="object"}function Hf(e){return typeof e=="string"||typeof e=="symbol"}const yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Uf=Symbol("");var Yc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Yc||(Yc={}));function Si(e,t){return Pe(new Error,{type:e,[Uf]:!0},t)}function Yt(e,t){return e instanceof Error&&Uf in e&&(t==null||!!(e.type&t))}const Xc="[^/]+?",mb={sensitive:!1,strict:!1,start:!0,end:!0},vb=/[.+*?^${}()[\]/\\]/g;function yb(e,t){const n=Pe({},mb,t),i=[];let p=n.start?"^":"";const u=[];for(const h of e){const o=h.length?[]:[90];n.strict&&!h.length&&(p+="/");for(let r=0;rt.length?t.length===1&&t[0]===40+40?1:-1:0}function wb(e,t){let n=0;const i=e.score,p=t.score;for(;n0&&t[t.length-1]<0}const $b={type:0,value:""},_b=/[a-zA-Z0-9_]/;function Cb(e){if(!e)return[[]];if(e==="/")return[[$b]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${h}": ${c}`)}let n=0,i=n;const p=[];let u;function d(){u&&p.push(u),u=[]}let g=0,s,h="",o="";function r(){h&&(n===0?u.push({type:0,value:h}):n===1||n===2||n===3?(u.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:h,regexp:o,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),h="")}function l(){h+=s}for(;g{d(b)}:nr}function d(o){if(Hf(o)){const r=i.get(o);r&&(i.delete(o),n.splice(n.indexOf(r),1),r.children.forEach(d),r.alias.forEach(d))}else{const r=n.indexOf(o);r>-1&&(n.splice(r,1),o.record.name&&i.delete(o.record.name),o.children.forEach(d),o.alias.forEach(d))}}function g(){return n}function s(o){let r=0;for(;r=0&&(o.record.path!==n[r].record.path||!zf(o,n[r]));)r++;n.splice(r,0,o),o.record.name&&!Jc(o)&&i.set(o.record.name,o)}function h(o,r){let l,c={},a,f;if("name"in o&&o.name){if(l=i.get(o.name),!l)throw Si(1,{location:o});f=l.record.name,c=Pe(Qc(r.params,l.keys.filter(b=>!b.optional).map(b=>b.name)),o.params&&Qc(o.params,l.keys.map(b=>b.name))),a=l.stringify(c)}else if("path"in o)a=o.path,l=n.find(b=>b.re.test(a)),l&&(c=l.parse(a),f=l.record.name);else{if(l=r.name?i.get(r.name):n.find(b=>b.re.test(r.path)),!l)throw Si(1,{location:o,currentLocation:r});f=l.record.name,c=Pe({},r.params,o.params),a=l.stringify(c)}const m=[];let v=l;for(;v;)m.unshift(v.record),v=v.parent;return{name:f,path:a,params:c,matched:m,meta:Eb(m)}}return e.forEach(o=>u(o)),{addRoute:u,resolve:h,removeRoute:d,getRoutes:g,getRecordMatcher:p}}function Qc(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function xb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:kb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function kb(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Jc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Eb(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function qc(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function zf(e,t){return t.children.some(n=>n===e||zf(e,n))}const Vf=/#/g,Rb=/&/g,Tb=/\//g,Lb=/=/g,Mb=/\?/g,jf=/\+/g,Ob=/%5B/g,Ib=/%5D/g,Gf=/%5E/g,Fb=/%60/g,Kf=/%7B/g,Nb=/%7C/g,Yf=/%7D/g,Pb=/%20/g;function dl(e){return encodeURI(""+e).replace(Nb,"|").replace(Ob,"[").replace(Ib,"]")}function Db(e){return dl(e).replace(Kf,"{").replace(Yf,"}").replace(Gf,"^")}function fa(e){return dl(e).replace(jf,"%2B").replace(Pb,"+").replace(Vf,"%23").replace(Rb,"%26").replace(Fb,"`").replace(Kf,"{").replace(Yf,"}").replace(Gf,"^")}function Bb(e){return fa(e).replace(Lb,"%3D")}function Wb(e){return dl(e).replace(Vf,"%23").replace(Mb,"%3F")}function Hb(e){return e==null?"":Wb(e).replace(Tb,"%2F")}function Co(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Ub(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let p=0;pu&&fa(u)):[i&&fa(i)]).forEach(u=>{u!==void 0&&(t+=(t.length?"&":"")+n,u!=null&&(t+="="+u))})}return t}function zb(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Pt(i)?i.map(p=>p==null?null:""+p):i==null?i:""+i)}return t}const Vb=Symbol(""),tu=Symbol(""),es=Symbol(""),pl=Symbol(""),da=Symbol("");function Wi(){let e=[];function t(i){return e.push(i),()=>{const p=e.indexOf(i);p>-1&&e.splice(p,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Cn(e,t,n,i,p){const u=i&&(i.enterCallbacks[p]=i.enterCallbacks[p]||[]);return()=>new Promise((d,g)=>{const s=r=>{r===!1?g(Si(4,{from:n,to:t})):r instanceof Error?g(r):gb(r)?g(Si(2,{from:t,to:r})):(u&&i.enterCallbacks[p]===u&&typeof r=="function"&&u.push(r),d())},h=e.call(i&&i.instances[p],t,n,s);let o=Promise.resolve(h);e.length<3&&(o=o.then(s)),o.catch(r=>g(r))})}function ks(e,t,n,i){const p=[];for(const u of e)for(const d in u.components){let g=u.components[d];if(!(t!=="beforeRouteEnter"&&!u.instances[d]))if(jb(g)){const h=(g.__vccOpts||g)[t];h&&p.push(Cn(h,n,i,u,d))}else{let s=g();p.push(()=>s.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${u.path}"`));const o=Z0(h)?h.default:h;u.components[d]=o;const l=(o.__vccOpts||o)[t];return l&&Cn(l,n,i,u,d)()}))}}return p}function jb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nu(e){const t=kt(es),n=kt(pl),i=Ee(()=>t.resolve(tn(e.to))),p=Ee(()=>{const{matched:s}=i.value,{length:h}=s,o=s[h-1],r=n.matched;if(!o||!r.length)return-1;const l=r.findIndex(Ci.bind(null,o));if(l>-1)return l;const c=iu(s[h-2]);return h>1&&iu(o)===c&&r[r.length-1].path!==c?r.findIndex(Ci.bind(null,s[h-2])):l}),u=Ee(()=>p.value>-1&&Xb(n.params,i.value.params)),d=Ee(()=>p.value>-1&&p.value===n.matched.length-1&&Bf(n.params,i.value.params));function g(s={}){return Yb(s)?t[tn(e.replace)?"replace":"push"](tn(e.to)).catch(nr):Promise.resolve()}return{route:i,href:Ee(()=>i.value.href),isActive:u,isExactActive:d,navigate:g}}const Gb=$e({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:nu,setup(e,{slots:t}){const n=Mi(nu(e)),{options:i}=kt(es),p=Ee(()=>({[ru(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[ru(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&t.default(n);return e.custom?u:Oi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:p.value},u)}}}),Kb=Gb;function Yb(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xb(e,t){for(const n in t){const i=t[n],p=e[n];if(typeof i=="string"){if(i!==p)return!1}else if(!Pt(p)||p.length!==i.length||i.some((u,d)=>u!==p[d]))return!1}return!0}function iu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ru=(e,t,n)=>e??t??n,Zb=$e({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=kt(da),p=Ee(()=>e.route||i.value),u=kt(tu,0),d=Ee(()=>{let h=tn(u);const{matched:o}=p.value;let r;for(;(r=o[h])&&!r.components;)h++;return h}),g=Ee(()=>p.value.matched[d.value]);Ji(tu,Ee(()=>d.value+1)),Ji(Vb,g),Ji(da,p);const s=Ie();return Ye(()=>[s.value,g.value,e.name],([h,o,r],[l,c,a])=>{o&&(o.instances[r]=h,c&&c!==o&&h&&h===l&&(o.leaveGuards.size||(o.leaveGuards=c.leaveGuards),o.updateGuards.size||(o.updateGuards=c.updateGuards))),h&&o&&(!c||!Ci(o,c)||!l)&&(o.enterCallbacks[r]||[]).forEach(f=>f(h))},{flush:"post"}),()=>{const h=p.value,o=e.name,r=g.value,l=r&&r.components[o];if(!l)return ou(n.default,{Component:l,route:h});const c=r.props[o],a=c?c===!0?h.params:typeof c=="function"?c(h):c:null,m=Oi(l,Pe({},a,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(r.instances[o]=null)},ref:s}));return ou(n.default,{Component:m,route:h})||m}}});function ou(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Qb=Zb;function Jb(e){const t=Ab(e.routes,e),n=e.parseQuery||Ub,i=e.stringifyQuery||eu,p=e.history,u=Wi(),d=Wi(),g=Wi(),s=yh(yn);let h=yn;oi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=As.bind(null,z=>""+z),r=As.bind(null,Hb),l=As.bind(null,Co);function c(z,X){let Y,V;return Hf(z)?(Y=t.getRecordMatcher(z),V=X):V=z,t.addRoute(V,Y)}function a(z){const X=t.getRecordMatcher(z);X&&t.removeRoute(X)}function f(){return t.getRoutes().map(z=>z.record)}function m(z){return!!t.getRecordMatcher(z)}function v(z,X){if(X=Pe({},X||s.value),typeof z=="string"){const G=xs(n,z,X.path),Q=t.resolve({path:G.path},X),te=p.createHref(G.fullPath);return Pe(G,Q,{params:l(Q.params),hash:Co(G.hash),redirectedFrom:void 0,href:te})}let Y;if("path"in z)Y=Pe({},z,{path:xs(n,z.path,X.path).path});else{const G=Pe({},z.params);for(const Q in G)G[Q]==null&&delete G[Q];Y=Pe({},z,{params:r(G)}),X.params=r(X.params)}const V=t.resolve(Y,X),ee=z.hash||"";V.params=o(l(V.params));const P=q0(i,Pe({},z,{hash:Db(ee),path:V.path})),B=p.createHref(P);return Pe({fullPath:P,hash:ee,query:i===eu?zb(z.query):z.query||{}},V,{redirectedFrom:void 0,href:B})}function b(z){return typeof z=="string"?xs(n,z,s.value.path):Pe({},z)}function x(z,X){if(h!==z)return Si(8,{from:X,to:z})}function C(z){return L(z)}function S(z){return C(Pe(b(z),{replace:!0}))}function $(z){const X=z.matched[z.matched.length-1];if(X&&X.redirect){const{redirect:Y}=X;let V=typeof Y=="function"?Y(z):Y;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=b(V):{path:V},V.params={}),Pe({query:z.query,hash:z.hash,params:"path"in V?{}:z.params},V)}}function L(z,X){const Y=h=v(z),V=s.value,ee=z.state,P=z.force,B=z.replace===!0,G=$(Y);if(G)return L(Pe(b(G),{state:typeof G=="object"?Pe({},ee,G.state):ee,force:P,replace:B}),X||Y);const Q=Y;Q.redirectedFrom=X;let te;return!P&&eb(i,V,Y)&&(te=Si(16,{to:Q,from:V}),W(V,V,!0,!1)),(te?Promise.resolve(te):M(Q,V)).catch(ie=>Yt(ie)?Yt(ie,2)?ie:D(ie):I(ie,Q,V)).then(ie=>{if(ie){if(Yt(ie,2))return L(Pe({replace:B},b(ie.to),{state:typeof ie.to=="object"?Pe({},ee,ie.to.state):ee,force:P}),X||Q)}else ie=A(Q,V,!0,B,ee);return y(Q,V,ie),ie})}function R(z,X){const Y=x(z,X);return Y?Promise.reject(Y):Promise.resolve()}function k(z){const X=U.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(z):z()}function M(z,X){let Y;const[V,ee,P]=qb(z,X);Y=ks(V.reverse(),"beforeRouteLeave",z,X);for(const G of V)G.leaveGuards.forEach(Q=>{Y.push(Cn(Q,z,X))});const B=R.bind(null,z,X);return Y.push(B),Z(Y).then(()=>{Y=[];for(const G of u.list())Y.push(Cn(G,z,X));return Y.push(B),Z(Y)}).then(()=>{Y=ks(ee,"beforeRouteUpdate",z,X);for(const G of ee)G.updateGuards.forEach(Q=>{Y.push(Cn(Q,z,X))});return Y.push(B),Z(Y)}).then(()=>{Y=[];for(const G of P)if(G.beforeEnter)if(Pt(G.beforeEnter))for(const Q of G.beforeEnter)Y.push(Cn(Q,z,X));else Y.push(Cn(G.beforeEnter,z,X));return Y.push(B),Z(Y)}).then(()=>(z.matched.forEach(G=>G.enterCallbacks={}),Y=ks(P,"beforeRouteEnter",z,X),Y.push(B),Z(Y))).then(()=>{Y=[];for(const G of d.list())Y.push(Cn(G,z,X));return Y.push(B),Z(Y)}).catch(G=>Yt(G,8)?G:Promise.reject(G))}function y(z,X,Y){g.list().forEach(V=>k(()=>V(z,X,Y)))}function A(z,X,Y,V,ee){const P=x(z,X);if(P)return P;const B=X===yn,G=oi?history.state:{};Y&&(V||B?p.replace(z.fullPath,Pe({scroll:B&&G&&G.scroll},ee)):p.push(z.fullPath,ee)),s.value=z,W(z,X,Y,B),D()}let _;function w(){_||(_=p.listen((z,X,Y)=>{if(!K.listening)return;const V=v(z),ee=$(V);if(ee){L(Pe(ee,{replace:!0}),V).catch(nr);return}h=V;const P=s.value;oi&&lb(Gc(P.fullPath,Y.delta),qo()),M(V,P).catch(B=>Yt(B,12)?B:Yt(B,2)?(L(B.to,V).then(G=>{Yt(G,20)&&!Y.delta&&Y.type===yr.pop&&p.go(-1,!1)}).catch(nr),Promise.reject()):(Y.delta&&p.go(-Y.delta,!1),I(B,V,P))).then(B=>{B=B||A(V,P,!1),B&&(Y.delta&&!Yt(B,8)?p.go(-Y.delta,!1):Y.type===yr.pop&&Yt(B,20)&&p.go(-1,!1)),y(V,P,B)}).catch(nr)}))}let E=Wi(),T=Wi(),O;function I(z,X,Y){D(z);const V=T.list();return V.length?V.forEach(ee=>ee(z,X,Y)):console.error(z),Promise.reject(z)}function F(){return O&&s.value!==yn?Promise.resolve():new Promise((z,X)=>{E.add([z,X])})}function D(z){return O||(O=!z,w(),E.list().forEach(([X,Y])=>z?Y(z):X()),E.reset()),z}function W(z,X,Y,V){const{scrollBehavior:ee}=e;if(!oi||!ee)return Promise.resolve();const P=!Y&&cb(Gc(z.fullPath,0))||(V||!Y)&&history.state&&history.state.scroll||null;return Vt().then(()=>ee(z,X,P)).then(B=>B&&ab(B)).catch(B=>I(B,z,X))}const j=z=>p.go(z);let H;const U=new Set,K={currentRoute:s,listening:!0,addRoute:c,removeRoute:a,hasRoute:m,getRoutes:f,resolve:v,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:u.add,beforeResolve:d.add,afterEach:g.add,onError:T.add,isReady:F,install(z){const X=this;z.component("RouterLink",Kb),z.component("RouterView",Qb),z.config.globalProperties.$router=X,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>tn(s)}),oi&&!H&&s.value===yn&&(H=!0,C(p.location).catch(ee=>{}));const Y={};for(const ee in yn)Object.defineProperty(Y,ee,{get:()=>s.value[ee],enumerable:!0});z.provide(es,X),z.provide(pl,za(Y)),z.provide(da,s);const V=z.unmount;U.add(z),z.unmount=function(){U.delete(z),U.size<1&&(h=yn,_&&_(),_=null,s.value=yn,H=!1,O=!1),V()}}};function Z(z){return z.reduce((X,Y)=>X.then(()=>k(Y)),Promise.resolve())}return K}function qb(e,t){const n=[],i=[],p=[],u=Math.max(t.matched.length,e.matched.length);for(let d=0;dCi(h,g))?i.push(g):n.push(g));const s=e.matched[d];s&&(t.matched.find(h=>Ci(h,s))||p.push(s))}return[n,i,p]}function Ii(){return kt(es)}function ts(){return kt(pl)}function Xf(e){return Wa()?(oh(e),!0):!1}function So(e){return typeof e=="function"?e():tn(e)}const Zf=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ew=()=>{};function tw(...e){if(e.length!==1)return yi(...e);const t=e[0];return typeof t=="function"?Do(Ya(()=>({get:t,set:ew}))):Ie(t)}function nw(e){var t;const n=So(e);return(t=n==null?void 0:n.$el)!=null?t:n}const iw=Zf?window:void 0,rw=Zf?window.document:void 0;function ow(){const e=Ie(!1);return Dt()&&tt(()=>{e.value=!0}),e}function sw(e){const t=ow();return Ee(()=>(t.value,!!e()))}function aw(e,t,n={}){const{window:i=iw,...p}=n;let u;const d=sw(()=>i&&"MutationObserver"in i),g=()=>{u&&(u.disconnect(),u=void 0)},s=Ye(()=>nw(e),r=>{g(),d.value&&i&&r&&(u=new MutationObserver(t),u.observe(r,p))},{immediate:!0}),h=()=>u==null?void 0:u.takeRecords(),o=()=>{g(),s()};return Xf(o),{isSupported:d,stop:o,takeRecords:h}}function ni(e=null,t={}){var n,i;const{document:p=rw}=t,u=tw((n=e??(p==null?void 0:p.title))!=null?n:null),d=e&&typeof e=="function";function g(s){if(!("titleTemplate"in t))return s;const h=t.titleTemplate||"%s";return typeof h=="function"?h(s):So(h).replace(/%s/g,s)}return Ye(u,(s,h)=>{s!==h&&p&&(p.title=g(typeof s=="string"?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&p&&!d&&aw((i=p.head)==null?void 0:i.querySelector("title"),()=>{p&&p.title!==u.value&&(u.value=g(p.title))},{childList:!0}),u}var Fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var p=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,p.get?p:{enumerable:!0,get:function(){return e[i]}})}),n}var Nn={exports:{}},Ct={exports:{}};const qt=Symbol("Cleanup Function"),Jf=Symbol("Timeout Token"),li=Symbol("Signal Reason"),wt=Symbol("Unset"),[ro,lw]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,ml(t.signal.reason)]}();let Ao=class{constructor(t=new AbortController){this.controller=t,this.signal=t.signal,this.signal[li]=wt;var n,i=(p,u)=>{var d=()=>{if(u&&this.signal){let g=ns(this.signal);this._trackSignalReason(g),u(g!==wt?g:void 0)}u=null};this.signal.addEventListener("abort",d,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",d,!1),this.signal.pr&&(this.signal.pr[qt]=null)),d=null}};this.signal.pr=new Promise(i),this.signal.pr[qt]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:wt;this._trackSignalReason(n),this.controller&&(ro&&n!==wt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[qt]&&this.signal.pr[qt](),this.signal.pr=null),delete this.signal[li],ro||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==wt&&(!ro&&!("reason"in this.signal)&&(this.signal.reason=t),this.signal[li]===wt&&(this.signal[li]=t))}};Ct.exports={CLEANUP_FN:qt,TIMEOUT_TOKEN:Jf,UNSET:wt,getSignalReason:ns,cancelToken:Ao,signalPromise:gl,processTokenOrSignal:qf,deferred:ed,isFunction:td,isPromise:nd,invokeAbort:id};Ct.exports.CLEANUP_FN=qt;Ct.exports.TIMEOUT_TOKEN=Jf;Ct.exports.UNSET=wt;Ct.exports.getSignalReason=ns;Ct.exports.cancelToken=Ao;Ct.exports.signalPromise=gl;Ct.exports.processTokenOrSignal=qf;Ct.exports.deferred=ed;Ct.exports.isFunction=td;Ct.exports.isPromise=nd;Ct.exports.invokeAbort=id;function ns(e){return e&&e.aborted?ro&&lw?ml(e.reason)?wt:e.reason:li in e?e[li]:wt:wt}function gl(e){if(e.pr)return e.pr;var t,n=new Promise(function(p,u){t=()=>{if(u&&e){let d=ns(e);u(d!==wt?d:void 0)}u=null},e.addEventListener("abort",t,!1)});return n[qt]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[qt]=t=null)},n.catch(n[qt]),n}function qf(e){e instanceof AbortController&&(e=new Ao(e));var t=e&&e instanceof Ao?e.signal:e,n=gl(t);return{tokenOrSignal:e,signal:t,signalPr:n}}function ed(){var e,t=new Promise(n=>e=n);return{pr:t,resolve:e}}function td(e){return typeof e=="function"}function nd(e){return e&&typeof e=="object"&&typeof e.then=="function"}function ml(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function id(e,t){!ml(t)&&t!==wt?e.abort(t):e.abort()}var cw=Ct.exports,{CLEANUP_FN:su,TIMEOUT_TOKEN:rd,UNSET:br,getSignalReason:od,cancelToken:Fi,signalPromise:uw,processTokenOrSignal:sd,isFunction:hw,invokeAbort:is}=cw;Nn.exports=Object.assign(dw,{cancelToken:Fi,delay:vl,timeout:ad,signalRace:hd,signalAll:fd,tokenCycle:dd});var fw=Nn.exports.cancelToken=Fi;Nn.exports.delay=vl;Nn.exports.timeout=ad;Nn.exports.signalRace=hd;Nn.exports.signalAll=fd;Nn.exports.tokenCycle=dd;function dw(e){return function(n,...i){var p,u;if({tokenOrSignal:n,signal:p,signalPr:u}=sd(n),p.aborted)return u;var d=u.catch(function(r){var l=od(p);l=l!==br?l:r;try{var c=g.return();throw c.value!==void 0?c.value:l!==br?l:void 0}finally{g=s=d=h=null}}),{it:g,result:s}=pw.call(this,e,p,...i),h=Promise.race([s,d]);if(n!==p&&n[rd]){let o=function(l){is(n,l),hw(n.discard)&&n.discard(),n=o=null};h.then(o,o)}else h.catch(()=>{}),n=null;return i=null,h}}function vl(e,t){typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]);var n,i;return e&&({tokenOrSignal:e,signal:n,signalPr:i}=sd(e)),n&&n.aborted?i:new Promise(function(u,d){n&&(i.catch(function(){if(d&&n&&g){let h=od(n);clearTimeout(g),d(h!==br?h:`delay (${t}) interrupted`),u=d=g=n=null}}),i=null);var g=setTimeout(function(){u(`delayed: ${t}`),u=d=g=n=null},t)})}function ad(e,t="Timeout"){e=Number(e)||0;var n=new Fi;return vl(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,rd,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...p){is(n,p.length>0?p[0]:br),n.discard(),n=null}}function ld(e){return e.reduce(function(n,i){var p=uw(i);return n[0].push(p),i.pr||n[1].push(p),n},[[],[]])}function cd(e,t,n){e.then(function(p){is(t,p),t.discard(),t=null}).then(function(){for(let p of n)p[su]&&p[su]();n=null})}function ud(e){return e.catch(t=>t)}function hd(e){var t=new Fi,[n,i]=ld(e);return cd(ud(Promise.race(n)),t,i),t.signal}function fd(e){var t=new Fi,[n,i]=ld(e);return cd(Promise.all(n.map(ud)),t,i),t.signal}function dd(){var e;return function(...n){return e&&(is(e,n.length>0?n[0]:br),e.discard()),e=new Fi}}function pw(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(p){try{var u=n.next(p);p=null}catch(d){return Promise.reject(d)}return function d(g){var s=Promise.resolve(g.value);return g.done?n=null:(s=s.then(i,function(o){return Promise.resolve(n.throw(o)).then(d)}),s.catch(function(){n=null})),g=null,s}(u)}()}}var gw=Nn.exports;const mw=un(gw);function pa(){pa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=typeof Symbol=="function"?Symbol:{},p=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",d=i.toStringTag||"@@toStringTag";function g(M,y,A){return Object.defineProperty(M,y,{value:A,enumerable:!0,configurable:!0,writable:!0}),M[y]}try{g({},"")}catch{g=function(y,A,_){return y[A]=_}}function s(M,y,A,_){var w=Object.create((y&&y.prototype instanceof r?y:r).prototype),E=new L(_||[]);return w._invoke=function(T,O,I){var F="suspendedStart";return function(D,W){if(F==="executing")throw new Error("Generator is already running");if(F==="completed"){if(D==="throw")throw W;return{value:void 0,done:!0}}for(I.method=D,I.arg=W;;){var j=I.delegate;if(j){var H=C(j,I);if(H){if(H===o)continue;return H}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(F==="suspendedStart")throw F="completed",I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);F="executing";var U=h(T,O,I);if(U.type==="normal"){if(F=I.done?"completed":"suspendedYield",U.arg===o)continue;return{value:U.arg,done:I.done}}U.type==="throw"&&(F="completed",I.method="throw",I.arg=U.arg)}}}(M,A,E),w}function h(M,y,A){try{return{type:"normal",arg:M.call(y,A)}}catch(_){return{type:"throw",arg:_}}}e.wrap=s;var o={};function r(){}function l(){}function c(){}var a={};g(a,p,function(){return this});var f=Object.getPrototypeOf,m=f&&f(f(R([])));m&&m!==t&&n.call(m,p)&&(a=m);var v=c.prototype=r.prototype=Object.create(a);function b(M){["next","throw","return"].forEach(function(y){g(M,y,function(A){return this._invoke(y,A)})})}function x(M,y){function A(w,E,T,O){var I=h(M[w],M,E);if(I.type!=="throw"){var F=I.arg,D=F.value;return D&&typeof D=="object"&&n.call(D,"__await")?y.resolve(D.__await).then(function(W){A("next",W,T,O)},function(W){A("throw",W,T,O)}):y.resolve(D).then(function(W){F.value=W,T(F)},function(W){return A("throw",W,T,O)})}O(I.arg)}var _;this._invoke=function(w,E){function T(){return new y(function(O,I){A(w,E,O,I)})}return _=_?_.then(T,T):T()}}function C(M,y){var A=M.iterator[y.method];if(A===void 0){if(y.delegate=null,y.method==="throw"){if(M.iterator.return&&(y.method="return",y.arg=void 0,C(M,y),y.method==="throw"))return o;y.method="throw",y.arg=new TypeError("The iterator does not provide a 'throw' method")}return o}var _=h(A,M.iterator,y.arg);if(_.type==="throw")return y.method="throw",y.arg=_.arg,y.delegate=null,o;var w=_.arg;return w?w.done?(y[M.resultName]=w.value,y.next=M.nextLoc,y.method!=="return"&&(y.method="next",y.arg=void 0),y.delegate=null,o):w:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,o)}function S(M){var y={tryLoc:M[0]};1 in M&&(y.catchLoc=M[1]),2 in M&&(y.finallyLoc=M[2],y.afterLoc=M[3]),this.tryEntries.push(y)}function $(M){var y=M.completion||{};y.type="normal",delete y.arg,M.completion=y}function L(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(S,this),this.reset(!0)}function R(M){if(M){var y=M[p];if(y)return y.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var A=-1,_=function w(){for(;++A=0;--_){var w=this.tryEntries[_],E=w.completion;if(w.tryLoc==="root")return A("end");if(w.tryLoc<=this.prev){var T=n.call(w,"catchLoc"),O=n.call(w,"finallyLoc");if(T&&O){if(this.prev=0;--A){var _=this.tryEntries[A];if(_.tryLoc<=this.prev&&n.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var w=_;break}}w&&(M==="break"||M==="continue")&&w.tryLoc<=y&&y<=w.finallyLoc&&(w=null);var E=w?w.completion:{};return E.type=M,E.arg=y,w?(this.method="next",this.next=w.finallyLoc,o):this.complete(E)},complete:function(M,y){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&y&&(this.next=y),o},finish:function(M){for(var y=this.tryEntries.length-1;y>=0;--y){var A=this.tryEntries[y];if(A.finallyLoc===M)return this.complete(A.completion,A.afterLoc),$(A),o}},catch:function(M){for(var y=this.tryEntries.length-1;y>=0;--y){var A=this.tryEntries[y];if(A.tryLoc===M){var _=A.completion;if(_.type==="throw"){var w=_.arg;$(A)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(M,y,A){return this.delegate={iterator:R(M),resultName:y,nextLoc:A},this.method==="next"&&(this.arg=void 0),o}},e}var vw=function(e){return e._runningInstances.length>=e._maxConcurrency},yw=function(e){var t=e._activeInstances[0];t&&t.cancel()},bw=function(e){e._enqueuedInstances.forEach(function(t){t.isEnqueued=!1,t.isDropped=!0})};function Hi(e,t){return t?function(n,i,p){return Ee(function(){return n().filter(function(u){return u[i]})})}(function(){return e()._instances},t):Ee(function(){return[]})}function ww(e){return Ee(function(){return e().length})}function au(e){return Ee(function(){var t=e();return t[t.length-1]})}function $w(e){return Ee(function(){return e()[0]})}function pd(e){return Mi(e)}function ut(e){return Cw(pa().mark(function t(n){var i=arguments;return pa().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",e.apply(void 0,[n].concat([].slice.call(i,1))));case 1:case"end":return p.stop()}},t)}))}function _w(e,t,n){var i,p,u={id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Ee(function(){return d.isCanceling&&d.isFinished}),isActive:Ee(function(){return d.isRunning&&!d.isCanceling}),isSuccessful:!1,isNotDropped:Ee(function(){return!d.isDropped}),isError:Ee(function(){return!!d.error}),status:Ee(function(){var s=[[d.isRunning,"running"],[d.isEnqueued,"enqueued"],[d.isCanceled,"canceled"],[d.isCanceling,"canceling"],[d.isDropped,"dropped"],[d.isError,"error"],[d.isSuccessful,"success"]].find(function(h){return h[0]});return s&&s[1]}),error:null,value:null,cancel:function(s){if((s===void 0?{force:!1}:s).force||(d.isCanceling=!0,d.isEnqueued&&(d.isFinished=!0),d.isEnqueued=!1),d.token&&d._canAbort){d.token.abort("cancel");try{d.token.discard()}catch{}d.token=void 0,d._canAbort=!1}},canceledOn:function(s){return s.pr.catch(function(h){d.cancel()}),d},_run:function(){(function(s,h,o,r){var l=new fw,c=mw(h,l);function a(){s.isRunning=!1,s.isFinished=!0}s.token=l,s.hasStarted=!0,s.isRunning=!0,s.isEnqueued=!1,c.call.apply(c,[s,l].concat(o)).then(function(f){s.value=f,s.isSuccessful=!0,a(),s._deferredObject.resolve(f),s._canAbort=!1,r.onFinish(s)}).catch(function(f){f!=="cancel"&&(s.error=f),a(),s._shouldThrow&&s._deferredObject.reject(f),r.onFinish(s)})})(d,e,t,n)},_handled:!0,_deferredObject:(i={},p=new Promise(function(s,h){i.resolve=s,i.reject=h}),i.promise=p,i),_shouldThrow:!1,_canAbort:!0,then:function(s,h){return d._shouldThrow=!0,d._deferredObject.promise.then(s,h)},catch:function(s,h){return h===void 0&&(h=!0),d._shouldThrow=h,d._deferredObject.promise.catch(s)},finally:function(s){return d._shouldThrow=!0,d._deferredObject.promise.finally(s)}},d=pd(u),g=n.modifiers;return g.drop?d.isDropped=!0:g.enqueue?d.isEnqueued=!0:d._run(),d}function Cw(e,t){t===void 0&&(t={cancelOnUnmount:!0});var n=Dt(),i=ih(),p={_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Ee(function(){return u._isRestartable||u._isDropping||u._isEnqueuing||u._isKeepingLatest}),isIdle:Ee(function(){return!u.isRunning}),isRunning:Ee(function(){return!!u._instances.find(function(d){return d.isRunning})}),isError:Ee(function(){return!(!u.last||!u.last.isError)}),_instances:[],_successfulInstances:Hi(function(){return u},"isSuccessful"),_runningInstances:Hi(function(){return u},"isRunning"),_enqueuedInstances:Hi(function(){return u},"isEnqueued"),_notDroppedInstances:Hi(function(){return u},"isNotDropped"),_activeInstances:Hi(function(){return u},"isActive"),performCount:ww(function(){return u._instances}),last:au(function(){return u._notDroppedInstances}),lastSuccessful:au(function(){return u._successfulInstances}),firstEnqueued:$w(function(){return u._enqueuedInstances}),cancelAll:function(d){var g=(d===void 0?{force:!1}:d).force;u._instances.forEach(function(s){try{(g||!s.isDropped&&!s.isFinished)&&s.cancel({force:g})}catch(h){if(h!=="cancel")throw h}})},perform:function(){var d=arguments,g={enqueue:!1,drop:!1};u._hasConcurrency&&vw(u)&&(u._isDropping&&(g.drop=!0),u._isRestartable&&yw(u),u._isKeepingLatest&&bw(u),(u._isEnqueuing||u._isKeepingLatest)&&(g.enqueue=!0));var s=function(){return Sw(u)},h=function(){return _w(e,[].slice.call(d),{modifiers:g,onFinish:s,scope:i,id:u._instances.length+1})},o=i.active?i.run(h):h();return i.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),u._instances=[].concat(u._instances,[o]),o},clear:function(){this.cancelAll({force:!0}),this._instances=[]},destroy:function(){i.stop(),this.clear()},restartable:function(){return u._resetModifierFlags(),u._isRestartable=!0,u},drop:function(){return u._resetModifierFlags(),u._isDropping=!0,u},enqueue:function(){return u._resetModifierFlags(),u._isEnqueuing=!0,u},keepLatest:function(){return u._resetModifierFlags(),u._isKeepingLatest=!0,u},_resetModifierFlags:function(){u._isKeepingLatest=!1,u._isRestartable=!1,u._isEnqueuing=!1,u._isDropping=!1},maxConcurrency:function(d){return u._maxConcurrency=d,u}},u=pd(p);return n&&t.cancelOnUnmount&&Rr(function(){u._instances&&u.destroy()}),u}function Sw(e){if(e._isEnqueuing||e._isKeepingLatest){var t=e.firstEnqueued;t&&t._run()}}function gd(e,t){return function(){return e.apply(t,arguments)}}const{toString:Aw}=Object.prototype,{getPrototypeOf:yl}=Object,rs=(e=>t=>{const n=Aw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>rs(t)===e),os=e=>t=>typeof t===e,{isArray:Ni}=Array,wr=os("undefined");function xw(e){return e!==null&&!wr(e)&&e.constructor!==null&&!wr(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const md=Kt("ArrayBuffer");function kw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&md(e.buffer),t}const Ew=os("string"),Rt=os("function"),vd=os("number"),ss=e=>e!==null&&typeof e=="object",Rw=e=>e===!0||e===!1,oo=e=>{if(rs(e)!=="object")return!1;const t=yl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Tw=Kt("Date"),Lw=Kt("File"),Mw=Kt("Blob"),Ow=Kt("FileList"),Iw=e=>ss(e)&&Rt(e.pipe),Fw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rt(e.append)&&((t=rs(e))==="formdata"||t==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"))},Nw=Kt("URLSearchParams"),Pw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Tr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,p;if(typeof e!="object"&&(e=[e]),Ni(e))for(i=0,p=e.length;i0;)if(p=n[i],t===p.toLowerCase())return p;return null}const bd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),wd=e=>!wr(e)&&e!==bd;function ga(){const{caseless:e}=wd(this)&&this||{},t={},n=(i,p)=>{const u=e&&yd(t,p)||p;oo(t[u])&&oo(i)?t[u]=ga(t[u],i):oo(i)?t[u]=ga({},i):Ni(i)?t[u]=i.slice():t[u]=i};for(let i=0,p=arguments.length;i(Tr(t,(p,u)=>{n&&Rt(p)?e[u]=gd(p,n):e[u]=p},{allOwnKeys:i}),e),Bw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ww=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Hw=(e,t,n,i)=>{let p,u,d;const g={};if(t=t||{},e==null)return t;do{for(p=Object.getOwnPropertyNames(e),u=p.length;u-- >0;)d=p[u],(!i||i(d,e,t))&&!g[d]&&(t[d]=e[d],g[d]=!0);e=n!==!1&&yl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uw=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},zw=e=>{if(!e)return null;if(Ni(e))return e;let t=e.length;if(!vd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yl(Uint8Array)),jw=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let p;for(;(p=i.next())&&!p.done;){const u=p.value;t.call(e,u[0],u[1])}},Gw=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},Kw=Kt("HTMLFormElement"),Yw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,p){return i.toUpperCase()+p}),lu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xw=Kt("RegExp"),$d=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Tr(n,(p,u)=>{let d;(d=t(p,u,e))!==!1&&(i[u]=d||p)}),Object.defineProperties(e,i)},Zw=e=>{$d(e,(t,n)=>{if(Rt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Rt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Qw=(e,t)=>{const n={},i=p=>{p.forEach(u=>{n[u]=!0})};return Ni(e)?i(e):i(String(e).split(t)),n},Jw=()=>{},qw=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Es="abcdefghijklmnopqrstuvwxyz",cu="0123456789",_d={DIGIT:cu,ALPHA:Es,ALPHA_DIGIT:Es+Es.toUpperCase()+cu},e1=(e=16,t=_d.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function t1(e){return!!(e&&Rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const n1=e=>{const t=new Array(10),n=(i,p)=>{if(ss(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[p]=i;const u=Ni(i)?[]:{};return Tr(i,(d,g)=>{const s=n(d,p+1);!wr(s)&&(u[g]=s)}),t[p]=void 0,u}}return i};return n(e,0)},i1=Kt("AsyncFunction"),r1=e=>e&&(ss(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),ne={isArray:Ni,isArrayBuffer:md,isBuffer:xw,isFormData:Fw,isArrayBufferView:kw,isString:Ew,isNumber:vd,isBoolean:Rw,isObject:ss,isPlainObject:oo,isUndefined:wr,isDate:Tw,isFile:Lw,isBlob:Mw,isRegExp:Xw,isFunction:Rt,isStream:Iw,isURLSearchParams:Nw,isTypedArray:Vw,isFileList:Ow,forEach:Tr,merge:ga,extend:Dw,trim:Pw,stripBOM:Bw,inherits:Ww,toFlatObject:Hw,kindOf:rs,kindOfTest:Kt,endsWith:Uw,toArray:zw,forEachEntry:jw,matchAll:Gw,isHTMLForm:Kw,hasOwnProperty:lu,hasOwnProp:lu,reduceDescriptors:$d,freezeMethods:Zw,toObjectSet:Qw,toCamelCase:Yw,noop:Jw,toFiniteNumber:qw,findKey:yd,global:bd,isContextDefined:wd,ALPHABET:_d,generateString:e1,isSpecCompliantForm:t1,toJSONObject:n1,isAsyncFn:i1,isThenable:r1};function Oe(e,t,n,i,p){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),p&&(this.response=p)}ne.inherits(Oe,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:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Cd=Oe.prototype,Sd={};["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(e=>{Sd[e]={value:e}});Object.defineProperties(Oe,Sd);Object.defineProperty(Cd,"isAxiosError",{value:!0});Oe.from=(e,t,n,i,p,u)=>{const d=Object.create(Cd);return ne.toFlatObject(e,d,function(s){return s!==Error.prototype},g=>g!=="isAxiosError"),Oe.call(d,e.message,t,n,i,p),d.cause=e,d.name=e.name,u&&Object.assign(d,u),d};const o1=null;function ma(e){return ne.isPlainObject(e)||ne.isArray(e)}function Ad(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function uu(e,t,n){return e?e.concat(t).map(function(p,u){return p=Ad(p),!n&&u?"["+p+"]":p}).join(n?".":""):t}function s1(e){return ne.isArray(e)&&!e.some(ma)}const a1=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function as(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!ne.isUndefined(m[f])});const i=n.metaTokens,p=n.visitor||o,u=n.dots,d=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(p))throw new TypeError("visitor must be a function");function h(a){if(a===null)return"";if(ne.isDate(a))return a.toISOString();if(!s&&ne.isBlob(a))throw new Oe("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(a)||ne.isTypedArray(a)?s&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function o(a,f,m){let v=a;if(a&&!m&&typeof a=="object"){if(ne.endsWith(f,"{}"))f=i?f:f.slice(0,-2),a=JSON.stringify(a);else if(ne.isArray(a)&&s1(a)||(ne.isFileList(a)||ne.endsWith(f,"[]"))&&(v=ne.toArray(a)))return f=Ad(f),v.forEach(function(x,C){!(ne.isUndefined(x)||x===null)&&t.append(d===!0?uu([f],C,u):d===null?f:f+"[]",h(x))}),!1}return ma(a)?!0:(t.append(uu(m,f,u),h(a)),!1)}const r=[],l=Object.assign(a1,{defaultVisitor:o,convertValue:h,isVisitable:ma});function c(a,f){if(!ne.isUndefined(a)){if(r.indexOf(a)!==-1)throw Error("Circular reference detected in "+f.join("."));r.push(a),ne.forEach(a,function(v,b){(!(ne.isUndefined(v)||v===null)&&p.call(t,v,ne.isString(b)?b.trim():b,f,l))===!0&&c(v,f?f.concat(b):[b])}),r.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return c(e),t}function hu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function bl(e,t){this._pairs=[],e&&as(e,this,t)}const xd=bl.prototype;xd.append=function(t,n){this._pairs.push([t,n])};xd.toString=function(t){const n=t?function(i){return t.call(this,i,hu)}:hu;return this._pairs.map(function(p){return n(p[0])+"="+n(p[1])},"").join("&")};function l1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kd(e,t,n){if(!t)return e;const i=n&&n.encode||l1,p=n&&n.serialize;let u;if(p?u=p(t,n):u=ne.isURLSearchParams(t)?t.toString():new bl(t,n).toString(i),u){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class c1{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(i){i!==null&&t(i)})}}const fu=c1,Ed={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u1=typeof URLSearchParams<"u"?URLSearchParams:bl,h1=typeof FormData<"u"?FormData:null,f1=typeof Blob<"u"?Blob:null,d1={isBrowser:!0,classes:{URLSearchParams:u1,FormData:h1,Blob:f1},protocols:["http","https","file","blob","url","data"]},Rd=typeof window<"u"&&typeof document<"u",p1=(e=>Rd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),g1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),m1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Rd,hasStandardBrowserEnv:p1,hasStandardBrowserWebWorkerEnv:g1},Symbol.toStringTag,{value:"Module"})),Ut={...m1,...d1};function v1(e,t){return as(e,new Ut.classes.URLSearchParams,Object.assign({visitor:function(n,i,p,u){return Ut.isNode&&ne.isBuffer(n)?(this.append(i,n.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},t))}function y1(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b1(e){const t={},n=Object.keys(e);let i;const p=n.length;let u;for(i=0;i=n.length;return d=!d&&ne.isArray(p)?p.length:d,s?(ne.hasOwnProp(p,d)?p[d]=[p[d],i]:p[d]=i,!g):((!p[d]||!ne.isObject(p[d]))&&(p[d]=[]),t(n,i,p[d],u)&&ne.isArray(p[d])&&(p[d]=b1(p[d])),!g)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(i,p)=>{t(y1(i),p,n,0)}),n}return null}function w1(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const wl={transitional:Ed,adapter:["xhr","http"],transformRequest:[function(t,n){const i=n.getContentType()||"",p=i.indexOf("application/json")>-1,u=ne.isObject(t);if(u&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return p&&p?JSON.stringify(Td(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(u){if(i.indexOf("application/x-www-form-urlencoded")>-1)return v1(t,this.formSerializer).toString();if((g=ne.isFileList(t))||i.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return as(g?{"files[]":t}:t,s&&new s,this.formSerializer)}}return u||p?(n.setContentType("application/json",!1),w1(t)):t}],transformResponse:[function(t){const n=this.transitional||wl.transitional,i=n&&n.forcedJSONParsing,p=this.responseType==="json";if(t&&ne.isString(t)&&(i&&!this.responseType||p)){const d=!(n&&n.silentJSONParsing)&&p;try{return JSON.parse(t)}catch(g){if(d)throw g.name==="SyntaxError"?Oe.from(g,Oe.ERR_BAD_RESPONSE,this,null,this.response):g}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ut.classes.FormData,Blob:Ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{wl.headers[e]={}});const $l=wl,$1=ne.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"]),_1=e=>{const t={};let n,i,p;return e&&e.split(` `).forEach(function(d){p=d.indexOf(":"),n=d.substring(0,p).trim().toLowerCase(),i=d.substring(p+1).trim(),!(!n||t[n]&&$1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},du=Symbol("internals");function Ui(e){return e&&String(e).trim().toLowerCase()}function so(e){return e===!1||e==null?e:ne.isArray(e)?e.map(so):String(e)}function C1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const S1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rs(e,t,n,i,p){if(ne.isFunction(i))return i.call(this,t,n);if(p&&(t=n),!!ne.isString(t)){if(ne.isString(i))return t.indexOf(i)!==-1;if(ne.isRegExp(i))return i.test(t)}}function A1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function x1(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(p,u,d){return this[i].call(this,t,p,u,d)},configurable:!0})})}class ls{constructor(t){t&&this.set(t)}set(t,n,i){const p=this;function u(g,s,h){const o=Ui(s);if(!o)throw new Error("header name must be a non-empty string");const r=ne.findKey(p,o);(!r||p[r]===void 0||h===!0||h===void 0&&p[r]!==!1)&&(p[r||s]=so(g))}const d=(g,s)=>ne.forEach(g,(h,o)=>u(h,o,s));return ne.isPlainObject(t)||t instanceof this.constructor?d(t,n):ne.isString(t)&&(t=t.trim())&&!S1(t)?d(_1(t),n):t!=null&&u(n,t,i),this}get(t,n){if(t=Ui(t),t){const i=ne.findKey(this,t);if(i){const p=this[i];if(!n)return p;if(n===!0)return C1(p);if(ne.isFunction(n))return n.call(this,p,i);if(ne.isRegExp(n))return n.exec(p);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ui(t),t){const i=ne.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Rs(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let p=!1;function u(d){if(d=Ui(d),d){const g=ne.findKey(i,d);g&&(!n||Rs(i,i[g],g,n))&&(delete i[g],p=!0)}}return ne.isArray(t)?t.forEach(u):u(t),p}clear(t){const n=Object.keys(this);let i=n.length,p=!1;for(;i--;){const u=n[i];(!t||Rs(this,this[u],u,t,!0))&&(delete this[u],p=!0)}return p}normalize(t){const n=this,i={};return ne.forEach(this,(p,u)=>{const d=ne.findKey(i,u);if(d){n[d]=so(p),delete n[u];return}const g=t?A1(u):String(u).trim();g!==u&&delete n[u],n[g]=so(p),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(i,p)=>{i!=null&&i!==!1&&(n[p]=t&&ne.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(p=>i.set(p)),i}static accessor(t){const i=(this[du]=this[du]={accessors:{}}).accessors,p=this.prototype;function u(d){const g=Ui(d);i[g]||(x1(p,d),i[g]=!0)}return ne.isArray(t)?t.forEach(u):u(t),this}}ls.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(ls.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});ne.freezeMethods(ls);const rn=ls;function Ts(e,t){const n=this||$l,i=t||n,p=rn.from(i.headers);let u=i.data;return ne.forEach(e,function(g){u=g.call(n,u,p.normalize(),t?t.status:void 0)}),p.normalize(),u}function Ld(e){return!!(e&&e.__CANCEL__)}function Lr(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Lr,Oe,{__CANCEL__:!0});function k1(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const E1=Ut.hasStandardBrowserEnv?{write(e,t,n,i,p,u){const d=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),ne.isString(i)&&d.push("path="+i),ne.isString(p)&&d.push("domain="+p),u===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function R1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function T1(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Md(e,t){return e&&!R1(t)?T1(e,t):t}const L1=Ut.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function p(u){let d=u;return t&&(n.setAttribute("href",d),d=n.href),n.setAttribute("href",d),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=p(window.location.href),function(d){const g=ne.isString(d)?p(d):d;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}();function M1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let p=0,u=0,d;return t=t!==void 0?t:1e3,function(s){const h=Date.now(),o=i[u];d||(d=h),n[p]=s,i[p]=h;let r=u,l=0;for(;r!==p;)l+=n[r++],r=r%e;if(p=(p+1)%e,p===u&&(u=(u+1)%e),h-d{const u=p.loaded,d=p.lengthComputable?p.total:void 0,g=u-n,s=i(g),h=u<=d;n=u;const o={loaded:u,total:d,progress:d?u/d:void 0,bytes:g,rate:s||void 0,estimated:s&&d&&h?(d-u)/s:void 0,event:p};o[t?"download":"upload"]=!0,e(o)}}const I1=typeof XMLHttpRequest<"u",F1=I1&&function(e){return new Promise(function(n,i){let p=e.data;const u=rn.from(e.headers).normalize();let{responseType:d,withXSRFToken:g}=e,s;function h(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let o;if(ne.isFormData(p)){if(Ut.hasStandardBrowserEnv||Ut.hasStandardBrowserWebWorkerEnv)u.setContentType(!1);else if((o=u.getContentType())!==!1){const[f,...m]=o?o.split(";").map(v=>v.trim()).filter(Boolean):[];u.setContentType([f||"multipart/form-data",...m].join("; "))}}let r=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";u.set("Authorization","Basic "+btoa(f+":"+m))}const l=Md(e.baseURL,e.url);r.open(e.method.toUpperCase(),kd(l,e.params,e.paramsSerializer),!0),r.timeout=e.timeout;function c(){if(!r)return;const f=rn.from("getAllResponseHeaders"in r&&r.getAllResponseHeaders()),v={data:!d||d==="text"||d==="json"?r.responseText:r.response,status:r.status,statusText:r.statusText,headers:f,config:e,request:r};k1(function(x){n(x),h()},function(x){i(x),h()},v),r=null}if("onloadend"in r?r.onloadend=c:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(c)},r.onabort=function(){r&&(i(new Oe("Request aborted",Oe.ECONNABORTED,e,r)),r=null)},r.onerror=function(){i(new Oe("Network Error",Oe.ERR_NETWORK,e,r)),r=null},r.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Ed;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),i(new Oe(m,v.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,r)),r=null},Ut.hasStandardBrowserEnv&&(g&&ne.isFunction(g)&&(g=g(e)),g||g!==!1&&L1(l))){const f=e.xsrfHeaderName&&e.xsrfCookieName&&E1.read(e.xsrfCookieName);f&&u.set(e.xsrfHeaderName,f)}p===void 0&&u.setContentType(null),"setRequestHeader"in r&&ne.forEach(u.toJSON(),function(m,v){r.setRequestHeader(v,m)}),ne.isUndefined(e.withCredentials)||(r.withCredentials=!!e.withCredentials),d&&d!=="json"&&(r.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&r.addEventListener("progress",pu(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&r.upload&&r.upload.addEventListener("progress",pu(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=f=>{r&&(i(!f||f.type?new Lr(null,e,r):f),r.abort(),r=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const a=M1(l);if(a&&Ut.protocols.indexOf(a)===-1){i(new Oe("Unsupported protocol "+a+":",Oe.ERR_BAD_REQUEST,e));return}r.send(p||null)})},va={http:o1,xhr:F1};ne.forEach(va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gu=e=>`- ${e}`,N1=e=>ne.isFunction(e)||e===null||e===!1,Od={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,i;const p={};for(let u=0;u`adapter ${g} `+(s===!1?"is not supported by the environment":"is not available in the build"));let d=t?u.length>1?`since : `+u.map(gu).join(` `):" "+gu(u[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:va};function Ls(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lr(null,e)}function mu(e){return Ls(e),e.headers=rn.from(e.headers),e.data=Ts.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Od.getAdapter(e.adapter||$l.adapter)(e).then(function(i){return Ls(e),i.data=Ts.call(e,e.transformResponse,i),i.headers=rn.from(i.headers),i},function(i){return Ld(i)||(Ls(e),i&&i.response&&(i.response.data=Ts.call(e,e.transformResponse,i.response),i.response.headers=rn.from(i.response.headers))),Promise.reject(i)})}const vu=e=>e instanceof rn?e.toJSON():e;function Ai(e,t){t=t||{};const n={};function i(h,o,r){return ne.isPlainObject(h)&&ne.isPlainObject(o)?ne.merge.call({caseless:r},h,o):ne.isPlainObject(o)?ne.merge({},o):ne.isArray(o)?o.slice():o}function p(h,o,r){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h,r)}else return i(h,o,r)}function u(h,o){if(!ne.isUndefined(o))return i(void 0,o)}function d(h,o){if(ne.isUndefined(o)){if(!ne.isUndefined(h))return i(void 0,h)}else return i(void 0,o)}function g(h,o,r){if(r in t)return i(h,o);if(r in e)return i(void 0,h)}const s={url:u,method:u,data:u,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:g,headers:(h,o)=>p(vu(h),vu(o),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(o){const r=s[o]||p,l=r(e[o],t[o],o);ne.isUndefined(l)&&r!==g||(n[o]=l)}),n}const Id="1.6.2",_l={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_l[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const yu={};_l.transitional=function(t,n,i){function p(u,d){return"[Axios v"+Id+"] Transitional option '"+u+"'"+d+(i?". "+i:"")}return(u,d,g)=>{if(t===!1)throw new Oe(p(d," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!yu[d]&&(yu[d]=!0,console.warn(p(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(u,d,g):!0}};function P1(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let p=i.length;for(;p-- >0;){const u=i[p],d=t[u];if(d){const g=e[u],s=g===void 0||d(g,u,e);if(s!==!0)throw new Oe("option "+u+" must be "+s,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+u,Oe.ERR_BAD_OPTION)}}const ya={assertOptions:P1,validators:_l},bn=ya.validators;class xo{constructor(t){this.defaults=t,this.interceptors={request:new fu,response:new fu}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ai(this.defaults,n);const{transitional:i,paramsSerializer:p,headers:u}=n;i!==void 0&&ya.assertOptions(i,{silentJSONParsing:bn.transitional(bn.boolean),forcedJSONParsing:bn.transitional(bn.boolean),clarifyTimeoutError:bn.transitional(bn.boolean)},!1),p!=null&&(ne.isFunction(p)?n.paramsSerializer={serialize:p}:ya.assertOptions(p,{encode:bn.function,serialize:bn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=u&&ne.merge(u.common,u[n.method]);u&&ne.forEach(["delete","get","head","post","put","patch","common"],a=>{delete u[a]}),n.headers=rn.concat(d,u);const g=[];let s=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(s=s&&f.synchronous,g.unshift(f.fulfilled,f.rejected))});const h=[];this.interceptors.response.forEach(function(f){h.push(f.fulfilled,f.rejected)});let o,r=0,l;if(!s){const a=[mu.bind(this),void 0];for(a.unshift.apply(a,g),a.push.apply(a,h),l=a.length,o=Promise.resolve(n);r{if(!i._listeners)return;let u=i._listeners.length;for(;u-- >0;)i._listeners[u](p);i._listeners=null}),this.promise.then=p=>{let u;const d=new Promise(g=>{i.subscribe(g),u=g}).then(p);return d.cancel=function(){i.unsubscribe(u)},d},t(function(u,d,g){i.reason||(i.reason=new Lr(u,d,g),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Cl(function(p){t=p}),cancel:t}}}const D1=Cl;function B1(e){return function(n){return e.apply(null,n)}}function W1(e){return ne.isObject(e)&&e.isAxiosError===!0}const ba={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(ba).forEach(([e,t])=>{ba[t]=e});const H1=ba;function Fd(e){const t=new ao(e),n=gd(ao.prototype.request,t);return ne.extend(n,ao.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(p){return Fd(Ai(e,p))},n}const Je=Fd($l);Je.Axios=ao;Je.CanceledError=Lr;Je.CancelToken=D1;Je.isCancel=Ld;Je.VERSION=Id;Je.toFormData=as;Je.AxiosError=Oe;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=B1;Je.isAxiosError=W1;Je.mergeConfig=Ai;Je.AxiosHeaders=rn;Je.formToJSON=e=>Td(ne.isHTMLForm(e)?new FormData(e):e);Je.getAdapter=Od.getAdapter;Je.HttpStatusCode=H1;Je.default=Je;const U1=Je,ot=U1.create({headers:{Accept:"application/json"}}),ht={async getConfigs(){return(await ot.get("/api/configs")).data},async getAlerts(e){return e.page=e.page||1,(await ot.get("/api/alerts",{params:e})).data},async getTags(){return(await ot.get("/api/tags")).data.tags},async getRuleSet(){return(await ot.get("/api/rules/ids")).data.ruleIds},async deleteAlert(e){await ot.delete(`/api/alerts/${e}`)},async getArtifact(e){return(await ot.get(`/api/artifacts/${e}`)).data},async enrichArtifact(e){await ot.get(`/api/artifacts/${e}/enrich`)},async deleteArtifact(e){await ot.delete(`/api/artifacts/${e}`)},async getRules(e){return e.page=e.page||1,(await ot.get("/api/rules",{params:e})).data},async getRule(e){return(await ot.get(`/api/rules/${e}`)).data},async runRule(e){await ot.get(`/api/rules/${e}/run`)},async createRule(e){return(await ot.post("/api/rules/",e)).data},async updateRule(e){return(await ot.put("/api/rules/",e)).data},async deleteRule(e){await ot.delete(`/api/rules/${e}`)},async deleteTag(e){await ot.delete(`/api/tags/${e}`)},async getIPInfo(e){return(await ot.get(`/api/ip_addresses/${e}`)).data}};function Sl(){return ut(async(e,t)=>await ht.getAlerts(t))}function z1(){return ut(async(e,t)=>await ht.deleteAlert(t))}function Nd(){return ut(async()=>await ht.getTags())}function V1(){return ut(async(e,t)=>await ht.deleteTag(t))}function j1(){return ut(async()=>await ht.getRuleSet())}function G1(){return ut(async(e,t)=>await ht.getArtifact(t))}function Pd(){return ut(async(e,t)=>await ht.deleteArtifact(t))}function K1(){return ut(async(e,t)=>await ht.enrichArtifact(t))}function Y1(){return ut(async()=>await ht.getConfigs())}function X1(){return ut(async(e,t)=>await ht.getIPInfo(t))}function Z1(){return ut(async(e,t)=>await ht.getRules(t))}function Dd(){return ut(async(e,t)=>await ht.getRule(t))}function Q1(){return ut(async(e,t)=>await ht.deleteRule(t))}function J1(){return ut(async(e,t)=>await ht.runRule(t))}function q1(){return ut(async(e,t)=>await ht.createRule(t))}function e$(){return ut(async(e,t)=>await ht.updateRule(t))}const t$=$e({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},setup(e){const t=Ie(!1),n=Ie(!1),i=Pd();return{isDeleted:t,deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await i.perform(e.artifact.id),t.value=!0)},showDeleteButton:()=>{n.value=!0},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n}}}),n$={key:0,class:"control"};function i$(e,t,n,i,p,u){const d=fe("router-link");return e.isDeleted?we("",!0):(q(),oe("div",n$,[N("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...g)=>e.showDeleteButton&&e.showDeleteButton(...g)),onMouseleave:t[2]||(t[2]=(...g)=>e.hideDeleteButton&&e.hideDeleteButton(...g))},[he(d,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:xt(()=>[at(Ae(e.artifact.data),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled?(q(),oe("span",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...g)=>e.deleteArtifact&&e.deleteArtifact(...g))})):we("",!0)],32)]))}const r$=xe(t$,[["render",i$]]),o$=$e({name:"ArtifactTags",components:{ArtifactComponent:r$},props:{artifacts:{type:Array,required:!0}}}),s$={class:"field is-grouped is-grouped-multiline"};function a$(e,t,n,i,p,u){const d=fe("ArtifactComponent");return q(),oe("div",s$,[(q(!0),oe(Se,null,ct(e.artifacts,g=>(q(),Me(d,{key:g.id,artifact:g},null,8,["artifact"]))),128))])}const l$=xe(o$,[["render",a$]]),c$=$e({name:"TagItem",props:{tag:{type:Object,required:!0}},setup(e,t){const n=Ie(!1),i=Ie(!1),p=V1();return{updateTag:()=>{t.emit("update-tag",e.tag.name)},isDeleted:n,deleteTag:async()=>{window.confirm(`Are you sure you want to delete ${e.tag.name} (ID: ${e.tag.id})?`)&&(await p.perform(e.tag.id),n.value=!0)},showDeleteButton:()=>{i.value=!0},hideDeleteButton:()=>{i.value=!1},isDeleteButtonEnabled:i}}}),u$={key:0,class:"control"};function h$(e,t,n,i,p,u){return e.isDeleted?we("",!0):(q(),oe("div",u$,[N("div",{class:"tags has-addons are-medium",onMouseover:t[2]||(t[2]=(...d)=>e.showDeleteButton&&e.showDeleteButton(...d)),onMouseleave:t[3]||(t[3]=(...d)=>e.hideDeleteButton&&e.hideDeleteButton(...d))},[N("span",{class:"tag is-info is-light",onClick:t[0]||(t[0]=(...d)=>e.updateTag&&e.updateTag(...d))},Ae(e.tag.name),1),e.isDeleteButtonEnabled?(q(),oe("a",{key:0,class:"tag is-delete",onClick:t[1]||(t[1]=(...d)=>e.deleteTag&&e.deleteTag(...d))})):we("",!0)],32)]))}const f$=xe(c$,[["render",h$]]),d$=$e({name:"TagsItem",components:{TagComponent:f$},props:{tags:{type:Array,required:!0}},setup(e,t){return{updateTag:i=>{t.emit("update-tag",i)}}}}),p$={class:"field is-grouped is-grouped-multiline"};function g$(e,t,n,i,p,u){const d=fe("TagComponent");return q(),oe("div",p$,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(d,{tag:g,key:g.name,onUpdateTag:e.updateTag},null,8,["tag","onUpdateTag"]))),128))])}const Bd=xe(d$,[["render",g$]]);var Wd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Fn,function(){var n=1e3,i=6e4,p=36e5,u="millisecond",d="second",g="minute",s="hour",h="day",o="week",r="month",l="quarter",c="year",a="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var E=["th","st","nd","rd"],T=w%100;return"["+w+(E[(T-20)%10]||E[T]||E[0])+"]"}},x=function(w,E,T){var O=String(w);return!O||O.length>=E?w:""+Array(E+1-O.length).join(T)+w},C={s:x,z:function(w){var E=-w.utcOffset(),T=Math.abs(E),O=Math.floor(T/60),I=T%60;return(E<=0?"+":"-")+x(O,2,"0")+":"+x(I,2,"0")},m:function w(E,T){if(E.date()1)return w(D[0])}else{var W=E.name;$[W]=E,I=W}return!O&&I&&(S=I),I||!O&&S},M=function(w,E){if(R(w))return w.clone();var T=typeof E=="object"?E:{};return T.date=w,T.args=arguments,new A(T)},y=C;y.l=k,y.i=R,y.w=function(w,E){return M(w,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var A=function(){function w(T){this.$L=k(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[L]=!0}var E=w.prototype;return E.parse=function(T){this.$d=function(O){var I=O.date,F=O.utc;if(I===null)return new Date(NaN);if(y.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var D=I.match(m);if(D){var W=D[2]-1||0,j=(D[7]||"0").substring(0,3);return F?new Date(Date.UTC(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)):new Date(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,j)}}return new Date(I)}(T),this.init()},E.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},E.$utils=function(){return y},E.isValid=function(){return this.$d.toString()!==f},E.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},E.isAfter=function(T,O){return M(T)0,$<=S.r||!S.r){$<=1&&C>0&&(S=b[C-1]);var L=v[S.l];c&&($=c(""+$)),f=typeof L=="string"?L.replace("%d",$):L($,o,S.l,m);break}}if(o)return f;var R=m?v.future:v.past;return typeof R=="function"?R(f):R.replace("%s",f)},u.to=function(h,o){return g(h,o,this,!0)},u.from=function(h,o){return g(h,o,this)};var s=function(h){return h.$u?p.utc():p()};u.toNow=function(h){return this.to(s(this),h)},u.fromNow=function(h){return this.from(s(this),h)}}})})(Hd);var v$=Hd.exports;const y$=un(v$);var Ud={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Fn,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(p,u,d){var g,s=function(l,c,a){a===void 0&&(a={});var f=new Date(l),m=function(v,b){b===void 0&&(b={});var x=b.timeZoneName||"short",C=v+"|"+x,S=i[C];return S||(S=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:x}),i[C]=S),S}(c,a);return m.formatToParts(f)},h=function(l,c){for(var a=s(l,c),f=[],m=0;m=0&&(f[C]=parseInt(x,10))}var S=f[3],$=S===24?0:S,L=f[0]+"-"+f[1]+"-"+f[2]+" "+$+":"+f[4]+":"+f[5]+":000",R=+l;return(d.utc(L).valueOf()-(R-=R%1e3))/6e4},o=u.prototype;o.tz=function(l,c){l===void 0&&(l=g);var a=this.utcOffset(),f=this.toDate(),m=f.toLocaleString("en-US",{timeZone:l}),v=Math.round((f-new Date(m))/1e3/60),b=d(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-v,!0);if(c){var x=b.utcOffset();b=b.add(a-x,"minute")}return b.$x.$timezone=l,b},o.offsetName=function(l){var c=this.$x.$timezone||d.tz.guess(),a=s(this.valueOf(),c,{timeZoneName:l}).find(function(f){return f.type.toLowerCase()==="timezonename"});return a&&a.value};var r=o.startOf;o.startOf=function(l,c){if(!this.$x||!this.$x.$timezone)return r.call(this,l,c);var a=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return r.call(a,l,c).tz(this.$x.$timezone,!0)},d.tz=function(l,c,a){var f=a&&c,m=a||c||g,v=h(+d(),m);if(typeof l!="string")return d(l).tz(m);var b=function($,L,R){var k=$-60*L*1e3,M=h(k,R);if(L===M)return[k,L];var y=h(k-=60*(M-L)*1e3,R);return M===y?[k,M]:[$-60*Math.min(M,y)*1e3,Math.max(M,y)]}(d.utc(l,f).valueOf(),v,m),x=b[0],C=b[1],S=d(x).utcOffset(C);return S.$x.$timezone=m,S},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(l){g=l}}})})(Ud);var b$=Ud.exports;const w$=un(b$);var zd={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Fn,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(u,d,g){var s=d.prototype;g.utc=function(f){var m={date:f,utc:!0,args:arguments};return new d(m)},s.utc=function(f){var m=g(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),n):m},s.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var h=s.parse;s.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),h.call(this,f)};var o=s.init;s.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else o.call(this)};var r=s.utcOffset;s.utcOffset=function(f,m){var v=this.$utils().u;if(v(f))return this.$u?0:v(this.$offset)?r.call(this):this.$offset;if(typeof f=="string"&&(f=function(S){S===void 0&&(S="");var $=S.match(i);if(!$)return null;var L=(""+$[0]).match(p)||["-",0,0],R=L[0],k=60*+L[1]+ +L[2];return k===0?0:R==="+"?k:-k}(f),f===null))return this;var b=Math.abs(f)<=16?60*f:f,x=this;if(m)return x.$offset=b,x.$u=f===0,x;if(f!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(x=this.local().add(b+C,n)).$offset=b,x.$x.$localOffset=C}else x=this.utc();return x};var l=s.format;s.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,m)},s.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var c=s.toDate;s.toDate=function(f){return f==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var a=s.diff;s.diff=function(f,m,v){if(f&&this.$u===f.$u)return a.call(this,f,m,v);var b=this.local(),x=g(f).local();return a.call(b,x,m,v)}}})})(zd);var $$=zd.exports;const _$=un($$),C$=[{name:"Afghanistan",lat:33.93911,long:67.709953,code:"AF"},{name:"Albania",lat:41.153332,long:20.168331,code:"AL"},{name:"Algeria",lat:28.033886,long:1.659626,code:"DZ"},{name:"American Samoa",lat:-14.270972,long:-170.132217,code:"AS"},{name:"Andorra",lat:42.546245,long:1.601554,code:"AD"},{name:"Angola",lat:-11.202692,long:17.873887,code:"AO"},{name:"Anguilla",lat:18.220554,long:-63.068615,code:"AI"},{name:"Antarctica",lat:-75.250973,long:-.071389,code:"AQ"},{name:"Antigua and Barbuda",lat:17.060816,long:-61.796428,code:"AG"},{name:"Argentina",lat:-38.416097,long:-63.616672,code:"AR"},{name:"Armenia",lat:40.069099,long:45.038189,code:"AM"},{name:"Aruba",lat:12.52111,long:-69.968338,code:"AW"},{name:"Australia",lat:-25.274398,long:133.775136,code:"AU"},{name:"Austria",lat:47.516231,long:14.550072,code:"AT"},{name:"Azerbaijan",lat:40.143105,long:47.576927,code:"AZ"},{name:"Bahamas",lat:25.03428,long:-77.39628,code:"BS"},{name:"Bahrain",lat:25.930414,long:50.637772,code:"BH"},{name:"Bangladesh",lat:23.684994,long:90.356331,code:"BD"},{name:"Barbados",lat:13.193887,long:-59.543198,code:"BB"},{name:"Belarus",lat:53.709807,long:27.953389,code:"BY"},{name:"Belgium",lat:50.503887,long:4.469936,code:"BE"},{name:"Belize",lat:17.189877,long:-88.49765,code:"BZ"},{name:"Benin",lat:9.30769,long:2.315834,code:"BJ"},{name:"Bermuda",lat:32.321384,long:-64.75737,code:"BM"},{name:"Bhutan",lat:27.514162,long:90.433601,code:"BT"},{name:"Bolivia",lat:-16.290154,long:-63.588653,code:"BO"},{name:"Bosnia",lat:43.915886,long:17.679076,code:"BA"},{name:"Botswana",lat:-22.328474,long:24.684866,code:"BW"},{name:"Bouvet Island",lat:-54.423199,long:3.413194,code:"BV"},{name:"Brazil",lat:-14.235004,long:-51.92528,code:"BR"},{name:"British Indian Ocean Territory",lat:-6.343194,long:71.876519,code:"IO"},{name:"Brunei",lat:4.535277,long:114.727669,code:"BN"},{name:"Bulgaria",lat:42.733883,long:25.48583,code:"BG"},{name:"Burkina Faso",lat:12.238333,long:-1.561593,code:"BF"},{name:"Burundi",lat:-3.373056,long:29.918886,code:"BI"},{name:"Cabo Verde",lat:16.002082,long:-24.013197,code:"CV"},{name:"Cambodia",lat:12.565679,long:104.990963,code:"KH"},{name:"Cameroon",lat:7.369722,long:12.354722,code:"CM"},{name:"Canada",lat:56.130366,long:-106.346771,code:"CA"},{name:"Cayman Islands",lat:19.513469,long:-80.566956,code:"KY"},{name:"Central African Republic",lat:6.611111,long:20.939444,code:"CF"},{name:"Caribbean Netherlands",lat:12.2,long:-68.26,code:"BQ"},{name:"Chad",lat:15.454166,long:18.732207,code:"TD"},{name:"Chile",lat:-35.675147,long:-71.542969,code:"CL"},{name:"China",lat:35.86166,long:104.195397,code:"CN"},{name:"Christmas Island",lat:-10.447525,long:105.690449,code:"CX"},{name:"Cocos (Keeling) Islands",lat:-12.164165,long:96.870956,code:"CC"},{name:"Colombia",lat:4.570868,long:-74.297333,code:"CO"},{name:"Comoros",lat:-11.875001,long:43.872219,code:"KM"},{name:"Congo",lat:-.228021,long:15.827659,code:"CG"},{name:"DRC",lat:-4.038333,long:21.758664,code:"CD"},{name:"Cook Islands",lat:-21.236736,long:-159.777671,code:"CK"},{name:"Costa Rica",lat:9.748917,long:-83.753428,code:"CR"},{name:'Côte d"Ivoire',lat:7.539989,long:-5.54708,code:"CI"},{name:"Croatia",lat:45.1,long:15.2,code:"HR"},{name:"Cuba",lat:21.521757,long:-77.781167,code:"CU"},{name:"Curaçao",lat:12.15,long:-68.97,code:"CW"},{name:"Cyprus",lat:35.126413,long:33.429859,code:"CY"},{name:"Czechia",lat:49.817492,long:15.472962,code:"CZ"},{name:"Denmark",lat:56.26392,long:9.501785,code:"DK"},{name:"Djibouti",lat:11.825138,long:42.590275,code:"DJ"},{name:"Dominica",lat:15.414999,long:-61.370976,code:"DM"},{name:"Dominican Republic",lat:18.735693,long:-70.162651,code:"DO"},{name:"Ecuador",lat:-1.831239,long:-78.183406,code:"EC"},{name:"Egypt",lat:26.820553,long:30.802498,code:"EG"},{name:"El Salvador",lat:13.794185,long:-88.89653,code:"SV"},{name:"Equatorial Guinea",lat:1.650801,long:10.267895,code:"GQ"},{name:"Eritrea",lat:15.179384,long:39.782334,code:"ER"},{name:"Estonia",lat:58.595272,long:25.013607,code:"EE"},{name:"Ethiopia",lat:9.145,long:40.489673,code:"ET"},{name:"Falkland Islands (Malvinas)",lat:-51.796253,long:-59.523613,code:"FK"},{name:"Faroe Islands",lat:61.892635,long:-6.911806,code:"FO"},{name:"Fiji",lat:-16.578193,long:179.414413,code:"FJ"},{name:"Finland",lat:61.92411,long:25.748151,code:"FI"},{name:"France",lat:46.227638,long:2.213749,code:"FR"},{name:"French Guiana",lat:3.933889,long:-53.125782,code:"GF"},{name:"French Polynesia",lat:-17.679742,long:-149.406843,code:"PF"},{name:"French Southern Territories",lat:-49.280366,long:69.348557,code:"TF"},{name:"Gabon",lat:-.803689,long:11.609444,code:"GA"},{name:"Gambia",lat:13.443182,long:-15.310139,code:"GM"},{name:"Georgia",lat:42.315407,long:43.356892,code:"GE"},{name:"Germany",lat:51.165691,long:10.451526,code:"DE"},{name:"Ghana",lat:7.946527,long:-1.023194,code:"GH"},{name:"Gibraltar",lat:36.137741,long:-5.345374,code:"GI"},{name:"Greece",lat:39.074208,long:21.824312,code:"GR"},{name:"Greenland",lat:71.706936,long:-42.604303,code:"GL"},{name:"Grenada",lat:12.262776,long:-61.604171,code:"GD"},{name:"Guadeloupe",lat:16.995971,long:-62.067641,code:"GP"},{name:"Guam",lat:13.444304,long:144.793731,code:"GU"},{name:"Guatemala",lat:15.783471,long:-90.230759,code:"GT"},{name:"Guernsey",lat:49.465691,long:-2.585278,code:"GG"},{name:"Guinea",lat:9.945587,long:-9.696645,code:"GN"},{name:"Guinea-Bissau",lat:11.803749,long:-15.180413,code:"GW"},{name:"Guyana",lat:4.860416,long:-58.93018,code:"GY"},{name:"Haiti",lat:18.971187,long:-72.285215,code:"HT"},{name:"Heard Island and McDonald Islands",lat:-53.08181,long:73.504158,code:"HM"},{name:"Holy See (Vatican City State)",lat:41.902916,long:12.453389,code:"VA"},{name:"Honduras",lat:15.199999,long:-86.241905,code:"HN"},{name:"Hong Kong",lat:22.396428,long:114.109497,code:"HK"},{name:"Hungary",lat:47.162494,long:19.503304,code:"HU"},{name:"Iceland",lat:64.963051,long:-19.020835,code:"IS"},{name:"India",lat:20.593684,long:78.96288,code:"IN"},{name:"Indonesia",lat:-.789275,long:113.921327,code:"ID"},{name:"Iran",lat:32.427908,long:53.688046,code:"IR"},{name:"Iraq",lat:33.223191,long:43.679291,code:"IQ"},{name:"Ireland",lat:53.41291,long:-8.24389,code:"IE"},{name:"Isle of Man",lat:54.236107,long:-4.548056,code:"IM"},{name:"Israel",lat:31.046051,long:34.851612,code:"IL"},{name:"Italy",lat:41.87194,long:12.56738,code:"IT"},{name:"Jamaica",lat:18.109581,long:-77.297508,code:"JM"},{name:"Japan",lat:36.204824,long:138.252924,code:"JP"},{name:"Channel Islands",lat:49.214439,long:-2.13125,code:"JE"},{name:"Jordan",lat:30.585164,long:36.238414,code:"JO"},{name:"Kazakhstan",lat:48.019573,long:66.923684,code:"KZ"},{name:"Kenya",lat:-.023559,long:37.906193,code:"KE"},{name:"Kiribati",lat:-3.370417,long:-168.734039,code:"KI"},{name:"Kosovo",lat:42.602636,long:20.902977,code:"XK"},{name:"N. Korea",lat:40.339852,long:127.510093,code:"KP"},{name:"S. Korea",lat:35.907757,long:127.766922,code:"KR"},{name:"Kuwait",lat:29.31166,long:47.481766,code:"KW"},{name:"Kyrgyzstan",lat:41.20438,long:74.766098,code:"KG"},{name:'Lao People"s Democratic Republic',lat:19.85627,long:102.495496,code:"LA"},{name:"Latvia",lat:56.879635,long:24.603189,code:"LV"},{name:"Lebanon",lat:33.854721,long:35.862285,code:"LB"},{name:"Lesotho",lat:-29.609988,long:28.233608,code:"LS"},{name:"Liberia",lat:6.428055,long:-9.429499,code:"LR"},{name:"Libyan Arab Jamahiriya",lat:26.3351,long:17.228331,code:"LY"},{name:"Liechtenstein",lat:47.166,long:9.555373,code:"LI"},{name:"Lithuania",lat:55.169438,long:23.881275,code:"LT"},{name:"Luxembourg",lat:49.815273,long:6.129583,code:"LU"},{name:"Macao",lat:22.198745,long:113.543873,code:"MO"},{name:"Macedonia",lat:41.608635,long:21.745275,code:"MK"},{name:"Madagascar",lat:-18.766947,long:46.869107,code:"MG"},{name:"Malawi",lat:-13.254308,long:34.301525,code:"MW"},{name:"Malaysia",lat:4.210484,long:101.975766,code:"MY"},{name:"Maldives",lat:3.202778,long:73.22068,code:"MV"},{name:"Mali",lat:17.570692,long:-3.996166,code:"ML"},{name:"Malta",lat:35.937496,long:14.375416,code:"MT"},{name:"Marshall Islands",lat:7.131474,long:171.184478,code:"MH"},{name:"Martinique",lat:14.641528,long:-61.024174,code:"MQ"},{name:"Mauritania",lat:21.00789,long:-10.940835,code:"MR"},{name:"Mauritius",lat:-20.348404,long:57.552152,code:"MU"},{name:"Mayotte",lat:-12.8275,long:45.166244,code:"YT"},{name:"Mexico",lat:23.634501,long:-102.552784,code:"MX"},{name:"Micronesia",lat:7.425554,long:150.550812,code:"FM"},{name:"Moldova",lat:47.411631,long:28.369885,code:"MD"},{name:"Monaco",lat:43.750298,long:7.412841,code:"MC"},{name:"Mongolia",lat:46.862496,long:103.846656,code:"MN"},{name:"Montenegro",lat:42.708678,long:19.37439,code:"ME"},{name:"Montserrat",lat:16.742498,long:-62.187366,code:"MS"},{name:"Morocco",lat:31.791702,long:-7.09262,code:"MA"},{name:"Mozambique",lat:-18.665695,long:35.529562,code:"MZ"},{name:"Myanmar",lat:21.913965,long:95.956223,code:"MM"},{name:"Burma",lat:22,long:98,code:"BU"},{name:"Namibia",lat:-22.95764,long:18.49041,code:"NA"},{name:"Nauru",lat:-.522778,long:166.931503,code:"NR"},{name:"Nepal",lat:28.394857,long:84.124008,code:"NP"},{name:"Netherlands",lat:52.132633,long:5.291266,code:"NL"},{name:"Netherlands Antilles",lat:12.226079,long:-69.060087,code:"AN"},{name:"New Caledonia",lat:-20.904305,long:165.618042,code:"NC"},{name:"New Zealand",lat:-40.900557,long:174.885971,code:"NZ"},{name:"Nicaragua",lat:12.865416,long:-85.207229,code:"NI"},{name:"Niger",lat:17.607789,long:8.081666,code:"NE"},{name:"Nigeria",lat:9.081999,long:8.675277,code:"NG"},{name:"Niue",lat:-19.054445,long:-169.867233,code:"NU"},{name:"Norfolk Island",lat:-29.040835,long:167.954712,code:"NF"},{name:"Northern Mariana Islands",lat:17.33083,long:145.38469,code:"MP"},{name:"Norway",lat:60.472024,long:8.468946,code:"NO"},{name:"Oman",lat:21.512583,long:55.923255,code:"OM"},{name:"Pakistan",lat:30.375321,long:69.345116,code:"PK"},{name:"Palau",lat:7.51498,long:134.58252,code:"PW"},{name:"Palestine",lat:31.952162,long:35.233154,code:"PS"},{name:"Panama",lat:8.537981,long:-80.782127,code:"PA"},{name:"Papua New Guinea",lat:-6.314993,long:143.95555,code:"PG"},{name:"Paraguay",lat:-23.442503,long:-58.443832,code:"PY"},{name:"Peru",lat:-9.189967,long:-75.015152,code:"PE"},{name:"Philippines",lat:12.879721,long:121.774017,code:"PH"},{name:"Pitcairn",lat:-24.703615,long:-127.439308,code:"PN"},{name:"Poland",lat:51.919438,long:19.145136,code:"PL"},{name:"Portugal",lat:39.399872,long:-8.224454,code:"PT"},{name:"Puerto Rico",lat:18.220833,long:-66.590149,code:"PR"},{name:"Qatar",lat:25.354826,long:51.183884,code:"QA"},{name:"Réunion",lat:-21.115141,long:55.536384,code:"RE"},{name:"Romania",lat:45.943161,long:24.96676,code:"RO"},{name:"Russia",lat:61.52401,long:105.318756,code:"RU"},{name:"Rwanda",lat:-1.940278,long:29.873888,code:"RW"},{name:"St. Barth",lat:17.89,long:-62.82,code:"BL"},{name:"Saint Helena",lat:-24.143474,long:-10.030696,code:"SH"},{name:"Saint Kitts and Nevis",lat:17.357822,long:-62.782998,code:"KN"},{name:"Saint Lucia",lat:13.909444,long:-60.978893,code:"LC"},{name:"Saint Pierre Miquelon",lat:46.941936,long:-56.27111,code:"PM"},{name:"Saint Martin",lat:18.11,long:-63.03,code:"MF"},{name:"Sint Maarten",lat:18.02,long:-63.06,code:"SX"},{name:"Saint Vincent and the Grenadines",lat:12.984305,long:-61.287228,code:"VC"},{name:"Samoa",lat:-13.759029,long:-172.104629,code:"WS"},{name:"San Marino",lat:43.94236,long:12.457777,code:"SM"},{name:"Sao Tome and Principe",lat:.18636,long:6.613081,code:"ST"},{name:"Saudi Arabia",lat:23.885942,long:45.079162,code:"SA"},{name:"Senegal",lat:14.497401,long:-14.452362,code:"SN"},{name:"Serbia",lat:44.016521,long:21.005859,code:"RS"},{name:"Seychelles",lat:-4.679574,long:55.491977,code:"SC"},{name:"Sierra Leone",lat:8.460555,long:-11.779889,code:"SL"},{name:"Singapore",lat:1.352083,long:103.819836,code:"SG"},{name:"Slovakia",lat:48.669026,long:19.699024,code:"SK"},{name:"Slovenia",lat:46.151241,long:14.995463,code:"SI"},{name:"Solomon Islands",lat:-9.64571,long:160.156194,code:"SB"},{name:"Somalia",lat:5.152149,long:46.199616,code:"SO"},{name:"South Africa",lat:-30.559482,long:22.937506,code:"ZA"},{name:"South Georgia and the South Sandwich Islands",lat:-54.429579,long:-36.587909,code:"GS"},{name:"South Sudan",lat:6.8769,long:31.3069,code:"SS"},{name:"Spain",lat:40.463667,long:-3.74922,code:"ES"},{name:"Sri Lanka",lat:7.873054,long:80.771797,code:"LK"},{name:"Sudan",lat:12.862807,long:30.217636,code:"SD"},{name:"Suriname",lat:3.919305,long:-56.027783,code:"SR"},{name:"Svalbard and Jan Mayen",lat:77.553604,long:23.670272,code:"SJ"},{name:"Swaziland",lat:-26.522503,long:31.465866,code:"SZ"},{name:"Sweden",lat:60.128161,long:18.643501,code:"SE"},{name:"Switzerland",lat:46.818188,long:8.227512,code:"CH"},{name:"Syrian Arab Republic",lat:34.802075,long:38.996815,code:"SY"},{name:"Taiwan",lat:23.69781,long:120.960515,code:"TW"},{name:"Tajikistan",lat:38.861034,long:71.276093,code:"TJ"},{name:"Tanzania",lat:-6.369028,long:34.888822,code:"TZ"},{name:"Thailand",lat:15.870032,long:100.992541,code:"TH"},{name:"Timor-Leste",lat:-8.874217,long:125.727539,code:"TL"},{name:"Togo",lat:8.619543,long:.824782,code:"TG"},{name:"Tokelau",lat:-8.967363,long:-171.855881,code:"TK"},{name:"Tonga",lat:-21.178986,long:-175.198242,code:"TO"},{name:"Trinidad and Tobago",lat:10.691803,long:-61.222503,code:"TT"},{name:"Tunisia",lat:33.886917,long:9.537499,code:"TN"},{name:"Turkey",lat:38.963745,long:35.243322,code:"TR"},{name:"Turkmenistan",lat:38.969719,long:59.556278,code:"TM"},{name:"Turks and Caicos Islands",lat:21.694025,long:-71.797928,code:"TC"},{name:"Tuvalu",lat:-7.109535,long:177.64933,code:"TV"},{name:"Uganda",lat:1.373333,long:32.290275,code:"UG"},{name:"Ukraine",lat:48.379433,long:31.16558,code:"UA"},{name:"UAE",lat:23.424076,long:53.847818,code:"AE"},{name:"UK",lat:55.378051,long:-3.435973,code:"GB"},{name:"USA",lat:37.09024,long:-95.712891,code:"US"},{name:"United States Minor Outlying Islands",lat:0,long:0,code:"UM"},{name:"Uruguay",lat:-32.522779,long:-55.765835,code:"UY"},{name:"Uzbekistan",lat:41.377491,long:64.585262,code:"UZ"},{name:"Vanuatu",lat:-15.376706,long:166.959158,code:"VU"},{name:"Venezuela",lat:6.42375,long:-66.58973,code:"VE"},{name:"Vietnam",lat:14.058324,long:108.277199,code:"VN"},{name:"British Virgin Islands",lat:18.420695,long:-64.639968,code:"VG"},{name:"U.S. Virgin Islands",lat:18.335765,long:-64.896335,code:"VI"},{name:"Wallis and Futuna",lat:-13.768752,long:-177.156097,code:"WF"},{name:"Western Sahara",lat:24.215527,long:-12.885834,code:"EH"},{name:"Yemen",lat:15.552727,long:48.516388,code:"YE"},{name:"Zambia",lat:-13.133897,long:27.849332,code:"ZM"},{name:"Zimbabwe",lat:-19.015438,long:29.154857,code:"ZW"}];function S$(e){return C$.find(n=>n.code===e)}Pi.extend(y$);Pi.extend(w$);Pi.extend(_$);function A$(e){return Pi(e).local().format("YYYY-MM-DD HH:mm:ss")}function x$(e){return Pi(e).local().fromNow()}function Vd(e){const t=S$(e);if(t!==void 0)return{lat:t.lat,long:t.long}}function k$(e){if(e.loc!==void 0){const t=e.loc.split(",");if(t.length===2){const n=t[0],i=t[1];return{lat:parseFloat(n),long:parseFloat(i)}}}return Vd(e.countryCode)}function jd(e){if(e!=null)return typeof e=="string"?e:e.toString()}const E$=$e({name:"AlertItem",components:{Artifacts:l$,Tags:Bd},props:{alert:{type:Object,required:!0}},setup(e,t){const n=u=>{t.emit("update-tag",u)},i=z1();return{updateTag:n,deleteAlert:async()=>{window.confirm(`Are you sure you want to delete ${e.alert.id}?`)&&(await i.perform(e.alert.id),t.emit("refresh-page"))},getLocalDatetime:A$,getHumanizedRelativeTime:x$}}}),R$={class:"box"},T$={class:"table is-fullwidth is-completely-borderless"},L$=N("th",null,"ID",-1),M$=N("span",null,"Delete",-1),O$={class:"icon is-small"},I$=N("th",null,"Rule",-1),F$=N("th",null,"Artifacts",-1),N$={key:0},P$=N("th",null,"Tags",-1),D$={class:"help"};function B$(e,t,n,i,p,u){const d=fe("font-awesome-icon"),g=fe("router-link"),s=fe("Artifacts"),h=fe("Tags");return q(),oe("div",R$,[N("table",T$,[N("tr",null,[L$,N("td",null,[at(Ae(e.alert.id)+" ",1),N("button",{class:"button is-light is-small is-pulled-right",onClick:t[0]||(t[0]=(...o)=>e.deleteAlert&&e.deleteAlert(...o))},[M$,N("span",O$,[he(d,{icon:"times"})])])])]),N("tr",null,[I$,N("td",null,[he(g,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:xt(()=>[at(Ae(e.alert.ruleId),1)]),_:1},8,["to"])])]),N("tr",null,[F$,N("td",null,[he(s,{artifacts:e.alert.artifacts},null,8,["artifacts"])])]),e.alert.tags.length>0?(q(),oe("tr",N$,[P$,N("td",null,[he(h,{tags:e.alert.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])])):we("",!0)]),N("p",D$,"Created at: "+Ae(e.alert.createdAt),1)])}const W$=xe(E$,[["render",B$]]),Ms=new WeakMap;function bu(e,t,n={}){const{mode:i="replace",route:p=ts(),router:u=Ii(),transform:d=r=>r}=n;Ms.has(u)||Ms.set(u,new Map);const g=Ms.get(u);let s=p.query[e];Xf(()=>{s=void 0});let h;const o=Ya((r,l)=>(h=l,{get(){return r(),d(s!==void 0?s:So(t))},set(c){s!==c&&(s=c,g.set(e,c),l(),Vt(()=>{if(g.size===0)return;const a=Object.fromEntries(g.entries());g.clear();const{params:f,query:m,hash:v}=p;u[So(i)]({params:f,query:{...m,...a},hash:v})}))}}));return Ye(()=>p.query[e],r=>{s=r,h()},{flush:"sync"}),o}const H$=$e({name:"AlertsPagination",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,t){const n=ts(),i=Ii(),p={route:n,router:i},u=Ee(()=>Math.ceil(e.total/e.pageSize)),d=Ee(()=>u.value===1),g=Ee(()=>e.currentPage>1),s=Ee(()=>e.currentPage-1!==1),h=Ee(()=>e.currentPagee.currentPage+1!==u.value),r=l=>{const c=bu("page",l.toString(),p);c.value=l.toString(),t.emit("update-page",l)};return tt(()=>{const l=bu("page",null,p);l.value&&parseInt(l.value)!==e.currentPage&&r(parseInt(l.value))}),{updatePage:r,hasNextPage:h,hasOnlyOnePage:d,hasPreviousPage:g,isNextPageNotLast:o,isPreviousPageNotFirst:s,totalPageCount:u}}}),U$={key:0,class:"message is-warning"},z$=N("div",{class:"message-body"},"There is no result to show.",-1),V$=[z$],j$={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},G$={key:0,class:"pagination-list"},K$={key:1,class:"pagination-list"},Y$={key:0},X$={key:1},Z$=N("span",{class:"pagination-ellipsis"},"…",-1),Q$=[Z$],J$={key:2},q$={key:3},e_={key:4},t_=N("span",{class:"pagination-ellipsis"},"…",-1),n_=[t_],i_={key:5};function r_(e,t,n,i,p,u){return e.total===0?(q(),oe("article",U$,V$)):(q(),oe("nav",j$,[e.hasOnlyOnePage?(q(),oe("ul",G$,[N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=d=>e.updatePage(1))},"1")])])):(q(),oe("ul",K$,[e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",Y$,[N("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=d=>e.updatePage(1))}," 1")])):we("",!0),e.hasPreviousPage&&e.isPreviousPageNotFirst?(q(),oe("li",X$,Q$)):we("",!0),e.hasPreviousPage?(q(),oe("li",J$,[N("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=d=>e.updatePage(e.currentPage-1))},Ae(e.currentPage-1),1)])):we("",!0),N("li",null,[N("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=d=>e.updatePage(e.currentPage))},Ae(e.currentPage),1)]),e.hasNextPage?(q(),oe("li",q$,[N("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=d=>e.updatePage(e.currentPage+1))},Ae(e.currentPage+1),1)])):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",e_,n_)):we("",!0),e.hasNextPage&&e.isNextPageNotLast?(q(),oe("li",i_,[N("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=d=>e.updatePage(e.totalPageCount))},Ae(e.totalPageCount),1)])):we("",!0)]))]))}const Gd=xe(H$,[["render",r_]]),o_=$e({name:"AlertsItem",components:{Alert:W$,Pagination:Gd},props:{alerts:{type:Object,required:!0}},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})};return{updatePage:d=>{n(),t.emit("update-page",d)},updateTag:d=>{n(),t.emit("update-tag",d)},refreshPage:()=>{n(),t.emit("refresh-page")}}}}),s_={class:"help"};function a_(e,t,n,i,p,u){const d=fe("Alert"),g=fe("Pagination");return q(),oe(Se,null,[(q(!0),oe(Se,null,ct(e.alerts.alerts,(s,h)=>(q(),Me(d,{alert:s,key:h,onRefreshPage:e.refreshPage,onUpdateTag:e.updateTag},null,8,["alert","onRefreshPage","onUpdateTag"]))),128)),he(g,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.updatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),N("p",s_,"("+Ae(e.alerts.total)+" results in total, "+Ae(e.alerts.alerts.length)+" shown)",1)],64)}const Kd=xe(o_,[["render",a_]]),l_=$e({name:"AlertsForm",props:{tags:{type:Array,required:!0},ruleSet:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=ts(),n=Ie(void 0),i=Ie(void 0),p=Ie(e.tag),u=Ie(void 0),d=Ie(void 0),g=()=>{const h=t.query.tag;p.value===void 0&&(p.value=jd(h))},s=()=>(g(),{artifact:n.value===""?void 0:n.value,page:e.page,ruleId:u.value===""?void 0:u.value,tag:p.value===""?void 0:p.value,toAt:d.value===""?void 0:d.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{p.value=e.tag}),{artifact:n,fromAt:i,getSearchParams:s,ruleId:u,toAt:d,tagInput:p}}}),c_={class:"columns"},u_={class:"column"},h_={class:"field is-horizontal"},f_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Rule")],-1),d_={class:"field-body"},p_={class:"field"},g_={class:"control"},m_={class:"select"},v_=N("option",null,null,-1),y_={class:"column"},b_={class:"field is-horizontal"},w_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Artifact")],-1),$_={class:"field-body"},__={class:"field"},C_={class:"control"},S_={class:"columns"},A_={class:"column"},x_={class:"field is-horizontal"},k_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Tag")],-1),E_={class:"field-body"},R_={class:"field"},T_={class:"control"},L_={class:"select"},M_=N("option",null,null,-1),O_=N("div",{class:"column"},null,-1),I_={class:"columns"},F_={class:"column"},N_={class:"field is-horizontal"},P_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"From")],-1),D_={class:"field-body"},B_={class:"field"},W_={class:"control"},H_={class:"column"},U_={class:"field is-horizontal"},z_=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"To")],-1),V_={class:"field-body"},j_={class:"field"},G_={class:"control"};function K_(e,t,n,i,p,u){return q(),oe(Se,null,[N("div",c_,[N("div",u_,[N("div",h_,[f_,N("div",d_,[N("div",p_,[N("div",g_,[N("div",m_,[Mt(N("select",{"onUpdate:modelValue":t[0]||(t[0]=d=>e.ruleId=d)},[v_,(q(!0),oe(Se,null,ct(e.ruleSet,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[vr,e.ruleId]])])])])])])]),N("div",y_,[N("div",b_,[w_,N("div",$_,[N("div",__,[N("p",C_,[Mt(N("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=d=>e.artifact=d)},null,512),[[Ft,e.artifact]])])])])])])]),N("div",S_,[N("div",A_,[N("div",x_,[k_,N("div",E_,[N("div",R_,[N("div",T_,[N("div",L_,[Mt(N("select",{"onUpdate:modelValue":t[2]||(t[2]=d=>e.tagInput=d)},[M_,(q(!0),oe(Se,null,ct(e.tags,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[vr,e.tagInput]])])])])])])]),O_]),N("div",I_,[N("div",F_,[N("div",N_,[P_,N("div",D_,[N("div",B_,[N("p",W_,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=d=>e.fromAt=d)},null,512),[[Ft,e.fromAt]])])])])])]),N("div",H_,[N("div",U_,[z_,N("div",V_,[N("div",j_,[N("p",G_,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=d=>e.toAt=d)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const Y_=xe(l_,[["render",K_]]);var Yd={exports:{}};const X_=Qf(_0);(function(e,t){(function(n,i){e.exports=i(X_)})(Fn,function(n){return function(){var i={789:function(g){g.exports=n}},p={};function u(g){var s=p[g];if(s!==void 0)return s.exports;var h=p[g]={exports:{}};return i[g](h,h.exports,u),h.exports}u.d=function(g,s){for(var h in s)u.o(s,h)&&!u.o(g,h)&&Object.defineProperty(g,h,{enumerable:!0,get:s[h]})},u.o=function(g,s){return Object.prototype.hasOwnProperty.call(g,s)},u.r=function(g){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})};var d={};return function(){function g(y,A){(A==null||A>y.length)&&(A=y.length);for(var _=0,w=new Array(A);_1&&arguments[1]!==void 0?arguments[1]:"root",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3?arguments[3]:void 0,E=w||{},T=E.key,O=E.index,I=E.type,F=I===void 0?"content":I,D=E.showComma,W=D!==void 0&&D,j=E.length,H=j===void 0?1:j,U=m(y);if(U==="array"){var K=b(y.map(function(X,Y,V){return v(X,"".concat(A,"[").concat(Y,"]"),_+1,{index:Y,showComma:Y!==V.length-1,length:H,type:F})}));return[v("[",A,_,{showComma:!1,key:T,length:y.length,type:"arrayStart"})[0]].concat(K,v("]",A,_,{showComma:W,length:y.length,type:"arrayEnd"})[0])}if(U==="object"){var Z=Object.keys(y),z=b(Z.map(function(X,Y,V){return v(y[X],/^[a-zA-Z_]\w*$/.test(X)?"".concat(A,".").concat(X):"".concat(A,'["').concat(X,'"]'),_+1,{key:X,showComma:Y!==V.length-1,length:H,type:F})}));return[v("{",A,_,{showComma:!1,key:T,index:O,length:Z.length,type:"objectStart"})[0]].concat(z,v("}",A,_,{showComma:W,length:Z.length,type:"objectEnd"})[0])}return[{content:y,level:_,key:T,index:O,path:A,showComma:W,length:H,type:F}]}function b(y){if(typeof Array.prototype.flat=="function")return y.flat();for(var A=h(y),_=[];A.length;){var w=A.shift();Array.isArray(w)?A.unshift.apply(A,h(w)):_.push(w)}return _}function x(y){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(y==null)return y;if(y instanceof Date)return new Date(y);if(y instanceof RegExp)return new RegExp(y);if(f(y)!=="object")return y;if(A.get(y))return A.get(y);if(Array.isArray(y)){var _=y.map(function(T){return x(T,A)});return A.set(y,_),_}var w={};for(var E in y)w[E]=x(y[E],A);return A.set(y,w),w}function C(y,A){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);A&&(w=w.filter(function(E){return Object.getOwnPropertyDescriptor(y,E).enumerable})),_.push.apply(_,w)}return _}function S(y){for(var A=1;A=V,Q=(B=y.pathCollapsible)===null||B===void 0?void 0:B.call(y,P);return P.type!=="objectStart"&&P.type!=="arrayStart"||!G&&!Q?ee:k(k({},ee),{},o({},P.path,1))},{})},I=(0,r.reactive)({translateY:0,visibleData:null,hiddenPaths:O(y.deep)}),F=(0,r.computed)(function(){for(var V=null,ee=[],P=T.value.length,B=0;BV.length?V.length-P:G;Q<0&&(Q=0);var te=Q+P;I.translateY=Q*y.itemHeight,I.visibleData=V.filter(function(ie,le){return le>=Q&&le{var c;const l=(c=n.value)==null?void 0:c.getSearchParams();return await i.perform(l)},g=l=>{e.value=l},s=()=>{e.value=1},h=async()=>{s(),await d()},o=l=>{t.value===l?t.value=void 0:t.value=l,Vt(async()=>await h())},r=async()=>{await h()};return tt(async()=>{p.perform(),u.perform(),await d()}),Ye([e,t],async()=>{Vt(async()=>await d())}),{getAlertsTask:i,getRuleSetTask:u,getTagsTask:p,refreshPage:r,search:h,tag:t,updatePage:g,updateTag:o,form:n,page:e}}}),cC={class:"box mb-6"},uC=N("hr",null,null,-1),hC={class:"columns"},fC={class:"column"},dC={class:"field is-grouped is-grouped-centered"},pC={class:"control"},gC={class:"icon is-small"},mC=N("span",null,"Search",-1),vC={key:0},yC=N("hr",null,null,-1);function bC(e,t,n,i,p,u){var r,l,c,a;const d=fe("FormComponent"),g=fe("font-awesome-icon"),s=fe("Loading"),h=fe("ErrorMessage"),o=fe("AlertsComponent");return q(),oe(Se,null,[N("div",cC,[he(d,{ref:"form",ruleSet:((r=e.getRuleSetTask.last)==null?void 0:r.value)||[],tags:((l=e.getTagsTask.last)==null?void 0:l.value)||[],page:e.page,tag:e.tag},null,8,["ruleSet","tags","page","tag"]),uC,N("div",hC,[N("div",fC,[N("div",dC,[N("p",pC,[N("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...f)=>e.search&&e.search(...f))},[N("span",gC,[he(g,{icon:"search"})]),mC])])])])])]),e.getAlertsTask.performCount>0?(q(),oe("div",vC,[yC,e.getAlertsTask.isRunning?(q(),Me(s,{key:0})):we("",!0),e.getAlertsTask.isError?(q(),Me(h,{key:1,error:(c=e.getAlertsTask.last)==null?void 0:c.error},null,8,["error"])):we("",!0),(a=e.getAlertsTask.last)!=null&&a.value?(q(),Me(o,{key:2,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const wC=xe(lC,[["render",bC]]),$C=$e({name:"AlertsView",components:{Alerts:wC},setup(){ni("Alerts - Mihari")}});function _C(e,t,n,i,p,u){const d=fe("Alerts",!0);return q(),Me(d)}const CC=xe($C,[["render",_C]]),SC=$e({name:"AlertsWithPagination",props:{ruleId:{type:String},artifact:{type:String}},components:{Alerts:Kd,Loading:fn},setup(e){const t=Ie(1),n=Ie(void 0),i=Sl(),p=async()=>{const h={artifact:e.artifact,page:t.value,ruleId:e.ruleId,tag:n.value,toAt:void 0,fromAt:void 0};return await i.perform(h)},u=h=>{t.value=h},d=()=>{t.value=1},g=async()=>{d(),await p()},s=h=>{n.value===h?n.value=void 0:n.value=h};return tt(async()=>{await p()}),Ye([e,t,n],async()=>{Vt(async()=>await p())}),{getAlertsTask:i,refreshPage:g,updatePage:u,updateTag:s}}});function AC(e,t,n,i,p,u){var s;const d=fe("Loading"),g=fe("Alerts");return q(),oe(Se,null,[e.getAlertsTask.isRunning?(q(),Me(d,{key:0})):we("",!0),(s=e.getAlertsTask.last)!=null&&s.value?(q(),Me(g,{key:1,alerts:e.getAlertsTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["alerts","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)],64)}const Zd=xe(SC,[["render",AC]]),xC=$e({name:"AS",props:{autonomousSystem:{type:Object,required:!0}}}),kC={class:"tags are-medium"},EC={class:"tag"};function RC(e,t,n,i,p,u){return q(),oe("div",kC,[N("span",EC,Ae(e.autonomousSystem.asn),1)])}const TC=xe(xC,[["render",RC]]),LC=$e({name:"CPEsItem",props:{cpes:{type:Array,required:!0}}}),MC={class:"tags are-medium"};function OC(e,t,n,i,p,u){return q(),oe("div",MC,[(q(!0),oe(Se,null,ct(e.cpes,d=>(q(),oe("span",{class:"tag",key:d.cpe},Ae(d.cpe),1))),128))])}const IC=xe(LC,[["render",OC]]);var Qd={exports:{}};(function(e){(function(t,n){var i="…",p=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function u(g,s,h){return h.length===g.length||!s.ellipsis||(h+=s.ellipsis),h}function d(g,s,h){var o="",r=!0,l=s,c,a;if(h=h||{},h.ellipsis=typeof h.ellipsis>"u"?i:h.ellipsis,!g||g.length===0)return"";for(r=!0;r;){if(p.lastIndex=o.length,r=p.exec(g),!r||r.index-o.length>=l||p.lastIndex>=s+3e3)return o+=g.substring(o.length,s),u(g,h,o);if(c=r[0],a=r.index,o+=g.substring(o.length,a+c.length),l-=a+c.length,l<=0)break}return u(g,h,o)}e.exports?e.exports=d:t.truncate=d})(String)})(Qd);var FC=Qd.exports;const NC=un(FC),PC=$e({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:NC}}}),DC={class:"field is-grouped is-grouped-multiline"},BC={class:"tags has-addons are-medium"},WC={class:"tag is-dark"},HC={class:"tag"};function UC(e,t,n,i,p,u){return q(),oe("div",DC,[(q(!0),oe(Se,null,ct(e.dnsRecords,(d,g)=>(q(),oe("div",{class:"control",key:g},[N("div",BC,[N("span",WC,Ae(d.resource),1),N("span",HC,Ae(e.truncate(d.value,50)),1)])]))),128))])}const zC=xe(PC,[["render",UC]]),VC=$e({name:"PortsItem",props:{ports:{type:Array,required:!0}}}),jC={class:"tags are-medium"};function GC(e,t,n,i,p,u){return q(),oe("div",jC,[(q(!0),oe(Se,null,ct(e.ports,d=>(q(),oe("span",{class:"tag",key:d.port},Ae(d.port),1))),128))])}const KC=xe(VC,[["render",GC]]),YC=$e({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}}}),XC={class:"tags are-medium"};function ZC(e,t,n,i,p,u){return q(),oe("div",XC,[(q(!0),oe(Se,null,ct(e.reverseDnsNames,d=>(q(),oe("span",{class:"tag",key:d.name},Ae(d.name),1))),128))])}const QC=xe(YC,[["render",ZC]]),JC=$e({name:"TagsItem",props:{tags:{type:Array,required:!0}}}),qC={class:"tags are-medium"};function eS(e,t,n,i,p,u){const d=fe("router-link");return q(),oe("div",qC,[(q(!0),oe(Se,null,ct(e.tags,g=>(q(),Me(d,{class:"tag is-info is-light",key:g.id,to:{name:"Alerts",query:{tag:g.name}}},{default:xt(()=>[at(Ae(g.name),1)]),_:2},1032,["to"]))),128))])}const tS=xe(JC,[["render",eS]]),nS=$e({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),iS={class:"field is-grouped is-grouped-multiline"},rS={class:"control"},oS={class:"tags has-addons are-medium"},sS=N("span",{class:"tag is-dark"},"Registrar",-1),aS={class:"tag is-light"},lS={class:"control"},cS={class:"tags has-addons are-medium"},uS=N("span",{class:"tag is-dark"},"Created on",-1),hS={class:"tag is-light"},fS={class:"control"},dS={class:"tags has-addons are-medium"},pS=N("span",{class:"tag is-dark"},"Updated on",-1),gS={class:"tag is-light"},mS={class:"control"},vS={class:"tags has-addons are-medium"},yS=N("span",{class:"tag is-dark"},"Expires on",-1),bS={class:"tag is-light"};function wS(e,t,n,i,p,u){var d;return q(),oe("div",iS,[N("div",rS,[N("div",oS,[sS,N("span",aS,Ae(((d=e.whoisRecord.registrar)==null?void 0:d.name)||"N/A"),1)])]),N("div",lS,[N("div",cS,[uS,N("span",hS,Ae(e.whoisRecord.createdOn||"N/A"),1)])]),N("div",fS,[N("div",dS,[pS,N("span",gS,Ae(e.whoisRecord.updatedOn||"N/A"),1)])]),N("div",mS,[N("div",vS,[yS,N("span",bS,Ae(e.whoisRecord.expiresOn||"N/A"),1)])])])}const $S=xe(nS,[["render",wS]]),_S=$e({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}});const CS=["href"],SS=["src"];function AS(e,t,n,i,p,u){return q(),oe("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[N("img",{src:e.link.favicon(),alt:"favicon"},null,8,SS),N("span",null,Ae(e.link.name),1)],8,CS)}const xS=xe(_S,[["render",AS],["__scopeId","data-v-66270500"]]);class Tt{constructor(){Te(this,"baseURL");this.baseURL="https://example.com"}favicon(){return"https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url="+this.baseURL}}class kS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class ES extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class RS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class TS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class LS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class MS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://www.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/viz/query?gnql=ip:${n}`}}class OS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class Jd extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class IS extends Jd{constructor(){super();Te(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class qd extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class FS extends qd{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class NS extends qd{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class PS extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class Al extends Tt{constructor(){super();Te(this,"baseURL");Te(this,"name");Te(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class DS extends Al{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class BS extends Al{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class WS extends Al{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var ep={exports:{}};const HS={},US=Object.freeze(Object.defineProperty({__proto__:null,default:HS},Symbol.toStringTag,{value:"Module"})),wu=Qf(US);/** * [js-sha256]{@link https://github.com/emn178/js-sha256} * * @version 0.10.1 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2023 * @license MIT */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var p=!n&&typeof self=="object",u=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;u?i=Fn:p&&(i=self);var d=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",s="0123456789abcdef".split(""),h=[-2147483648,8388608,32768,128],o=[24,16,8,0],r=[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],l=["hex","array","digest","arrayBuffer"],c=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function($){return Object.prototype.toString.call($)==="[object Array]"}),g&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function($){return typeof $=="object"&&$.buffer&&$.buffer.constructor===ArrayBuffer});var a=function($,L){return function(R){return new x(L,!0).update(R)[$]()}},f=function($){var L=a("hex",$);u&&(L=m(L,$)),L.create=function(){return new x($)},L.update=function(M){return L.create().update(M)};for(var R=0;R>2]|=$[M]<>2]|=k<>2]|=(192|k>>6)<>2]|=(128|k&63)<=57344?(_[y>>2]|=(224|k>>12)<>2]|=(128|k>>6&63)<>2]|=(128|k&63)<>2]|=(240|k>>18)<>2]|=(128|k>>12&63)<>2]|=(128|k>>6&63)<>2]|=(128|k&63)<=64?(this.block=_[16],this.start=y-64,this.hash(),this.hashed=!0):this.start=y}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},x.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,L=this.lastByteIndex;$[16]=this.block,$[L>>2]|=h[L&3],this.block=$[16],L>=56&&(this.hashed||this.hash(),$[0]=this.block,$[16]=$[1]=$[2]=$[3]=$[4]=$[5]=$[6]=$[7]=$[8]=$[9]=$[10]=$[11]=$[12]=$[13]=$[14]=$[15]=0),$[14]=this.hBytes<<3|this.bytes>>>29,$[15]=this.bytes<<3,this.hash()}},x.prototype.hash=function(){var $=this.h0,L=this.h1,R=this.h2,k=this.h3,M=this.h4,y=this.h5,A=this.h6,_=this.h7,w=this.blocks,E,T,O,I,F,D,W,j,H,U,K;for(E=16;E<64;++E)F=w[E-15],T=(F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3,F=w[E-2],O=(F>>>17|F<<15)^(F>>>19|F<<13)^F>>>10,w[E]=w[E-16]+T+w[E-7]+O<<0;for(K=L&R,E=0;E<64;E+=4)this.first?(this.is224?(j=300032,F=w[0]-1413257819,_=F-150054599<<0,k=F+24177077<<0):(j=704751109,F=w[0]-210244248,_=F-1521486534<<0,k=F+143694565<<0),this.first=!1):(T=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=$&L,I=j^$&R^K,W=M&y^~M&A,F=_+O+W+r[E]+w[E],D=T+I,_=k+F<<0,k=F+D<<0),T=(k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),H=k&$,I=H^k&L^j,W=_&M^~_&y,F=A+O+W+r[E+1]+w[E+1],D=T+I,A=R+F<<0,R=F+D<<0,T=(R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),U=R&k,I=U^R&$^H,W=A&_^~A&M,F=y+O+W+r[E+2]+w[E+2],D=T+I,y=L+F<<0,L=F+D<<0,T=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),O=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),K=L&R,I=K^L&k^U,W=y&A^~y&_,F=M+O+W+r[E+3]+w[E+3],D=T+I,M=$+F<<0,$=F+D<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+$<<0,this.h1=this.h1+L<<0,this.h2=this.h2+R<<0,this.h3=this.h3+k<<0,this.h4=this.h4+M<<0,this.h5=this.h5+y<<0,this.h6=this.h6+A<<0,this.h7=this.h7+_<<0},x.prototype.hex=function(){this.finalize();var $=this.h0,L=this.h1,R=this.h2,k=this.h3,M=this.h4,y=this.h5,A=this.h6,_=this.h7,w=s[$>>28&15]+s[$>>24&15]+s[$>>20&15]+s[$>>16&15]+s[$>>12&15]+s[$>>8&15]+s[$>>4&15]+s[$&15]+s[L>>28&15]+s[L>>24&15]+s[L>>20&15]+s[L>>16&15]+s[L>>12&15]+s[L>>8&15]+s[L>>4&15]+s[L&15]+s[R>>28&15]+s[R>>24&15]+s[R>>20&15]+s[R>>16&15]+s[R>>12&15]+s[R>>8&15]+s[R>>4&15]+s[R&15]+s[k>>28&15]+s[k>>24&15]+s[k>>20&15]+s[k>>16&15]+s[k>>12&15]+s[k>>8&15]+s[k>>4&15]+s[k&15]+s[M>>28&15]+s[M>>24&15]+s[M>>20&15]+s[M>>16&15]+s[M>>12&15]+s[M>>8&15]+s[M>>4&15]+s[M&15]+s[y>>28&15]+s[y>>24&15]+s[y>>20&15]+s[y>>16&15]+s[y>>12&15]+s[y>>8&15]+s[y>>4&15]+s[y&15]+s[A>>28&15]+s[A>>24&15]+s[A>>20&15]+s[A>>16&15]+s[A>>12&15]+s[A>>8&15]+s[A>>4&15]+s[A&15];return this.is224||(w+=s[_>>28&15]+s[_>>24&15]+s[_>>20&15]+s[_>>16&15]+s[_>>12&15]+s[_>>8&15]+s[_>>4&15]+s[_&15]),w},x.prototype.toString=x.prototype.hex,x.prototype.digest=function(){this.finalize();var $=this.h0,L=this.h1,R=this.h2,k=this.h3,M=this.h4,y=this.h5,A=this.h6,_=this.h7,w=[$>>24&255,$>>16&255,$>>8&255,$&255,L>>24&255,L>>16&255,L>>8&255,L&255,R>>24&255,R>>16&255,R>>8&255,R&255,k>>24&255,k>>16&255,k>>8&255,k&255,M>>24&255,M>>16&255,M>>8&255,M&255,y>>24&255,y>>16&255,y>>8&255,y&255,A>>24&255,A>>16&255,A>>8&255,A&255];return this.is224||w.push(_>>24&255,_>>16&255,_>>8&255,_&255),w},x.prototype.array=x.prototype.digest,x.prototype.arrayBuffer=function(){this.finalize();var $=new ArrayBuffer(this.is224?28:32),L=new DataView($);return L.setUint32(0,this.h0),L.setUint32(4,this.h1),L.setUint32(8,this.h2),L.setUint32(12,this.h3),L.setUint32(16,this.h4),L.setUint32(20,this.h5),L.setUint32(24,this.h6),this.is224||L.setUint32(28,this.h7),$};function C($,L,R){var k,M=typeof $;if(M==="string"){var y=[],A=$.length,_=0,w;for(k=0;k>6,y[_++]=128|w&63):w<55296||w>=57344?(y[_++]=224|w>>12,y[_++]=128|w>>6&63,y[_++]=128|w&63):(w=65536+((w&1023)<<10|$.charCodeAt(++k)&1023),y[_++]=240|w>>18,y[_++]=128|w>>12&63,y[_++]=128|w>>6&63,y[_++]=128|w&63);$=y}else if(M==="object"){if($===null)throw new Error(t);if(g&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!g||!ArrayBuffer.isView($)))throw new Error(t)}else throw new Error(t);$.length>64&&($=new x(L,!0).update($).array());var E=[],T=[];for(k=0;k<64;++k){var O=$[k]||0;E[k]=92^O,T[k]=54^O}x.call(this,L,R),this.update(T),this.oKeyPad=E,this.inner=!0,this.sharedMemory=R}C.prototype=new x,C.prototype.finalize=function(){if(x.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();x.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),x.prototype.finalize.call(this)}};var S=f();S.sha256=S,S.sha224=f(!0),S.sha256.hmac=b(),S.sha224.hmac=b(!0),d?e.exports=S:(i.sha256=S.sha256,i.sha224=S.sha224)})()})(ep);var zS=ep.exports,VS=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},xl={},jS=Object.prototype.hasOwnProperty,GS;function $u(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function _u(e){try{return encodeURIComponent(e)}catch{return null}}function KS(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var p=$u(i[1]),u=$u(i[2]);p===null||u===null||p in n||(n[p]=u)}return n}function YS(e,t){t=t||"";var n=[],i,p;typeof t!="string"&&(t="?");for(p in e)if(jS.call(e,p)){if(i=e[p],!i&&(i===null||i===GS||isNaN(i))&&(i=""),p=_u(p),i=_u(i),p===null||i===null)continue;n.push(p+"="+i)}return n.length?t+n.join("&"):""}xl.stringify=YS;xl.parse=KS;var tp=VS,cs=xl,XS=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,np=/[\n\r\t]/g,ZS=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,ip=/:\d+$/,QS=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,JS=/^[a-zA-Z]:/;function kl(e){return(e||"").toString().replace(XS,"")}var wa=[["#","hash"],["?","query"],function(t,n){return zt(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Cu={hash:1,query:1};function rp(e){var t;typeof window<"u"?t=window:typeof Fn<"u"?t=Fn:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var i={},p=typeof e,u;if(e.protocol==="blob:")i=new Gt(unescape(e.pathname),{});else if(p==="string"){i=new Gt(e,{});for(u in Cu)delete i[u]}else if(p==="object"){for(u in e)u in Cu||(i[u]=e[u]);i.slashes===void 0&&(i.slashes=ZS.test(e.href))}return i}function zt(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function op(e,t){e=kl(e),e=e.replace(np,""),t=t||{};var n=QS.exec(e),i=n[1]?n[1].toLowerCase():"",p=!!n[2],u=!!n[3],d=0,g;return p?u?(g=n[2]+n[3]+n[4],d=n[2].length+n[3].length):(g=n[2]+n[4],d=n[2].length):u?(g=n[3]+n[4],d=n[3].length):g=n[4],i==="file:"?d>=2&&(g=g.slice(2)):zt(i)?g=n[4]:i?p&&(g=g.slice(2)):d>=2&&zt(t.protocol)&&(g=n[4]),{protocol:i,slashes:p||zt(i),slashesCount:d,rest:g}}function qS(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,p=n[i-1],u=!1,d=0;i--;)n[i]==="."?n.splice(i,1):n[i]===".."?(n.splice(i,1),d++):d&&(i===0&&(u=!0),n.splice(i,1),d--);return u&&n.unshift(""),(p==="."||p==="..")&&n.push(""),n.join("/")}function Gt(e,t,n){if(e=kl(e),e=e.replace(np,""),!(this instanceof Gt))return new Gt(e,t,n);var i,p,u,d,g,s,h=wa.slice(),o=typeof t,r=this,l=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=cs.parse),t=rp(t),p=op(e||"",t),i=!p.protocol&&!p.slashes,r.slashes=p.slashes||i&&t.slashes,r.protocol=p.protocol||t.protocol||"",e=p.rest,(p.protocol==="file:"&&(p.slashesCount!==2||JS.test(e))||!p.slashes&&(p.protocol||p.slashesCount<2||!zt(r.protocol)))&&(h[3]=[/(.*)/,"pathname"]);le.type===void 0?t:t.filter(i=>i.type===e.type))}}}),uA={class:"tags are-medium"};function hA(e,t,n,i,p,u){const d=fe("LinkComponent");return q(),oe("div",uA,[(q(!0),oe(Se,null,ct(e.selectedLinks,g=>(q(),Me(d,{data:e.data,link:g,key:g.name},null,8,["data","link"]))),128))])}const fA=xe(cA,[["render",hA]]),dA=$e({name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},components:{Alerts:Zd,AS:TC,DnsRecords:zC,Links:fA,Loading:fn,ReverseDnsNames:QC,Tags:tS,VueJsonPretty:Xd,WhoisRecord:$S,CPEs:IC,Ports:KC},emits:["refresh"],setup(e,t){const n=Ie(void 0),i=Ie(void 0),p=Ie(!1),u=Ii(),d=Ee(()=>{if(e.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${e.artifact.data}`}`;if(e.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${e.artifact.data}`}),g=f=>{if(f!==void 0)return`https://maps.google.co.jp/maps?output=embed&q=${f.lat},${f.long}&z=3`},s=X1(),h=Sl(),o=Pd(),r=K1(),l=async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await o.perform(e.artifact.id),u.push("/"))},c=async()=>{await r.perform(e.artifact.id),t.emit("refresh")};return tt(async()=>{if(e.artifact.dataType==="ip"){let f;if(e.artifact.geolocation===null){const m=await s.perform(e.artifact.data);f=k$(m),i.value=m.countryCode}else f=Vd(e.artifact.geolocation.countryCode);n.value=g(f)}}),{countryCode:i,enrichArtifactTask:r,getAlertsTask:h,googleMapSrc:n,showMetadata:p,urlscanLiveshotSrc:d,deleteArtifact:l,enrichArtifact:c,flipShowMetadata:()=>{p.value=!p.value}}}});const Ze=e=>(Za("data-v-1a7db503"),e=e(),Qa(),e),pA={class:"column"},gA={key:0},mA=Ze(()=>N("hr",null,null,-1)),vA=Ze(()=>N("h2",{class:"is-size-2 mb-4"},"Artifact",-1)),yA={class:"columns"},bA={key:0,class:"column is-half"},wA={key:0},$A={class:"is-size-4 mb-2"},_A={class:"has-text-grey"},CA=["src"],SA={key:1},AA=Ze(()=>N("h4",{class:"is-size-4 mb-2"},[at(" Live screenshot "),N("span",{class:"has-text-grey"},"Hover to expand")],-1)),xA=["src"],kA={class:"column"},EA={class:"block"},RA=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Information",-1)),TA={class:"table is-fullwidth is-completely-borderless"},LA=Ze(()=>N("th",null,"ID",-1)),MA={class:"buttons is-pulled-right"},OA=Ze(()=>N("span",null,"Enrich",-1)),IA={class:"icon is-small"},FA=Ze(()=>N("span",null,"Metadata",-1)),NA={class:"icon is-small"},PA=Ze(()=>N("span",null,"Delete",-1)),DA={class:"icon is-small"},BA=Ze(()=>N("th",null,"Data type",-1)),WA=Ze(()=>N("th",null,"Data",-1)),HA=Ze(()=>N("th",null,"Source",-1)),UA={key:0},zA=Ze(()=>N("th",null,"Tags",-1)),VA={key:0},jA={class:"modal is-active"},GA={class:"modal-card"},KA={class:"modal-card-head"},YA=Ze(()=>N("p",{class:"modal-card-title"},"Metadata",-1)),XA={class:"modal-card-body"},ZA={key:1,class:"block"},QA=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"AS",-1)),JA={key:2,class:"block"},qA=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),e2={key:3,class:"block"},t2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),n2={key:4,class:"block"},i2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),r2={key:5,class:"block"},o2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Ports",-1)),s2={key:6,class:"block"},a2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),l2={class:"block"},c2=Ze(()=>N("h4",{class:"is-size-4 mb-2"},"Links",-1)),u2=Ze(()=>N("hr",null,null,-1)),h2={class:"column"},f2=Ze(()=>N("h2",{class:"is-size-2 mb-4"},"Related alerts",-1));function d2(e,t,n,i,p,u){var b;const d=fe("Loading"),g=fe("font-awesome-icon"),s=fe("Tags"),h=fe("VueJsonPretty"),o=fe("AS"),r=fe("ReverseDnsNames"),l=fe("DnsRecords"),c=fe("CPEs"),a=fe("Ports"),f=fe("WhoisRecord"),m=fe("Links"),v=fe("Alerts");return q(),oe(Se,null,[N("div",pA,[e.enrichArtifactTask.isRunning?(q(),oe("div",gA,[he(d),mA])):we("",!0),vA,N("div",yA,[e.googleMapSrc!==void 0||e.urlscanLiveshotSrc!==void 0?(q(),oe("div",bA,[e.googleMapSrc?(q(),oe("div",wA,[N("h4",$A,[at(" Geolocation "),N("span",_A,Ae(e.countryCode||((b=e.artifact.geolocation)==null?void 0:b.countryCode)),1)]),N("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,CA)])):we("",!0),e.urlscanLiveshotSrc?(q(),oe("div",SA,[AA,N("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,xA)])):we("",!0)])):we("",!0),N("div",kA,[N("div",EA,[RA,N("table",TA,[N("tr",null,[LA,N("td",null,[at(Ae(e.artifact.id)+" ",1),N("span",MA,[N("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...x)=>e.enrichArtifact&&e.enrichArtifact(...x))},[OA,N("span",IA,[he(g,{icon:"lightbulb"})])]),e.artifact.metadata?(q(),oe("button",{key:0,class:"button is-info is-light is-small",onClick:t[1]||(t[1]=(...x)=>e.flipShowMetadata&&e.flipShowMetadata(...x))},[FA,N("span",NA,[he(g,{icon:"info-circle"})])])):we("",!0),N("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...x)=>e.deleteArtifact&&e.deleteArtifact(...x))},[PA,N("span",DA,[he(g,{icon:"times"})])])])])]),N("tr",null,[BA,N("td",null,Ae(e.artifact.dataType),1)]),N("tr",null,[WA,N("td",null,Ae(e.artifact.data),1)]),N("tr",null,[HA,N("td",null,Ae(e.artifact.source),1)]),e.artifact.tags.length>0?(q(),oe("tr",UA,[zA,N("td",null,[he(s,{tags:e.artifact.tags},null,8,["tags"])])])):we("",!0)])]),e.artifact.metadata&&e.showMetadata?(q(),oe("div",VA,[N("div",jA,[N("div",{class:"modal-background",onClick:t[3]||(t[3]=(...x)=>e.flipShowMetadata&&e.flipShowMetadata(...x))}),N("div",GA,[N("header",KA,[YA,N("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...x)=>e.flipShowMetadata&&e.flipShowMetadata(...x))})]),N("section",XA,[he(h,{data:e.artifact.metadata},null,8,["data"])])])])])):we("",!0)])]),e.artifact.autonomousSystem?(q(),oe("div",ZA,[QA,he(o,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):we("",!0),e.artifact.reverseDnsNames?(q(),oe("div",JA,[qA,he(r,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):we("",!0),e.artifact.dnsRecords?(q(),oe("div",e2,[t2,he(l,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):we("",!0),e.artifact.cpes?(q(),oe("div",n2,[i2,he(c,{cpes:e.artifact.cpes},null,8,["cpes"])])):we("",!0),e.artifact.ports?(q(),oe("div",r2,[o2,he(a,{ports:e.artifact.ports},null,8,["ports"])])):we("",!0),e.artifact.whoisRecord?(q(),oe("div",s2,[a2,he(f,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):we("",!0),N("div",l2,[c2,he(m,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])])]),u2,N("div",h2,[f2,he(v,{artifact:e.artifact.data},null,8,["artifact"])])],64)}const p2=xe(dA,[["render",d2],["__scopeId","data-v-1a7db503"]]),g2=$e({name:"ArtifactWrapper",components:{ArtifactComponent:p2,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=G1(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getArtifactTask:t,refresh:i}}});function m2(e,t,n,i,p,u){var h,o;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("ArtifactComponent");return q(),oe(Se,null,[e.getArtifactTask.isRunning?(q(),Me(d,{key:0})):we("",!0),e.getArtifactTask.isError?(q(),Me(g,{key:1,error:(h=e.getArtifactTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getArtifactTask.last)!=null&&o.value?(q(),Me(s,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.refresh},null,8,["artifact","onRefresh"])):we("",!0)],64)}const v2=xe(g2,[["render",m2]]),y2=$e({name:"ArtifactView",components:{Artifact:v2},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ni(`Artifact:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function b2(e,t,n,i,p,u){const d=fe("Artifact",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const w2=xe(y2,[["render",b2]]),$2=$e({name:"ConfigsItem",props:{configs:{type:Array,required:!0}}}),_2={class:"box"},C2={class:"table-container"},S2={class:"table is-fullwidth"},A2=N("thead",null,[N("tr",null,[N("th",null,"Name"),N("th",null,"Type"),N("th",null,"Configured"),N("th",null,"Key-value(s)")])],-1),x2={key:0,class:"button is-success is-small ml-1"},k2={class:"icon is-small"},E2=N("span",null,"Yes",-1),R2={key:1,class:"button is-warning is-small ml-1"},T2={class:"icon is-small"},L2=N("span",null,"No",-1),M2={key:0},O2={key:1};function I2(e,t,n,i,p,u){const d=fe("font-awesome-icon");return q(),oe("div",_2,[N("div",C2,[N("table",S2,[A2,N("tbody",null,[(q(!0),oe(Se,null,ct(e.configs,g=>(q(),oe("tr",{key:g.name},[N("td",null,Ae(g.name),1),N("td",null,Ae(g.type),1),N("td",null,[g.isConfigured?(q(),oe("button",x2,[N("span",k2,[he(d,{icon:"check"})]),E2])):(q(),oe("button",R2,[N("span",T2,[he(d,{icon:"exclamation"})]),L2]))]),N("td",null,[N("ul",null,[(q(!0),oe(Se,null,ct(g.values,(s,h)=>(q(),oe("li",{key:h},[N("strong",null,Ae(s.key),1),at(": "),s.value?(q(),oe("code",M2,Ae(s.value),1)):(q(),oe("span",O2,"N/A"))]))),128))])])]))),128))])])])])}const F2=xe($2,[["render",I2]]),N2=$e({name:"ConfigsWrapper",components:{Configs:F2,Loading:fn,ErrorMessage:hn},setup(){const e=Y1();return tt(async()=>{await e.perform()}),{getConfigsTask:e}}});function P2(e,t,n,i,p,u){var h,o;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("Configs");return q(),oe(Se,null,[e.getConfigsTask.isRunning?(q(),Me(d,{key:0})):we("",!0),e.getConfigsTask.isError?(q(),Me(g,{key:1,error:(h=e.getConfigsTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getConfigsTask.last)!=null&&o.value?(q(),Me(s,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):we("",!0)],64)}const D2=xe(N2,[["render",P2]]),B2=$e({name:"ConfigView",components:{Configs:D2},setup(){ni("Config - Mihari")}});function W2(e,t,n,i,p,u){const d=fe("Configs",!0);return q(),Me(d)}const H2=xe(B2,[["render",W2]]);var sp={exports:{}};(function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var p=function(o,r,l){if(typeof o!="string"){p.original?p.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(l=r),p.modules[o]||(p.payloads[o]=l,p.modules[o]=null)};p.modules={},p.payloads={};var u=function(o,r,l){if(typeof r=="string"){var c=s(o,r);if(c!=null)return l&&l(),c}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var a=[],f=0,m=r.length;fs.length)&&(g=s.length),g-=d.length;var h=s.indexOf(d,g);return h!==-1&&h===g}),String.prototype.repeat||u(String.prototype,"repeat",function(d){for(var g="",s=this;d>0;)d&1&&(g+=s),(d>>=1)&&(s+=s);return g}),String.prototype.includes||u(String.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Object.assign||(Object.assign=function(d){if(d==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(d),s=1;s>>0,h=arguments[1],o=h>>0,r=o<0?Math.max(s+o,0):Math.min(o,s),l=arguments[2],c=l===void 0?s:l>>0,a=c<0?Math.max(s+c,0):Math.min(c,s);r0;)s&1&&(h+=g),(s>>=1)&&(g+=g);return h};var u=/^\s\s*/,d=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(u,"")},i.stringTrimRight=function(g){return g.replace(d,"")},i.copyObject=function(g){var s={};for(var h in g)s[h]=g[h];return s},i.copyArray=function(g){for(var s=[],h=0,o=g.length;h=0?parseFloat((g.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((g.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=g.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,i.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,i.isAIR=g.indexOf("AdobeAIR")>=0,i.isAndroid=g.indexOf("Android")>=0,i.isChromeOS=g.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,i,p){var u=n("./useragent"),d="http://www.w3.org/1999/xhtml";i.buildDom=function l(c,a,f){if(typeof c=="string"&&c){var m=document.createTextNode(c);return a&&a.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&a&&a.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var v=[],b=0;b"u")){if(s){if(a)h();else if(a===!1)return s.push([l,c])}if(!g){var f=a;!a||!a.getRootNode?f=document:(f=a.getRootNode(),(!f||f==a)&&(f=document));var m=f.ownerDocument||f;if(c&&i.hasCssString(c,f))return null;c&&(l+=` /*# sourceURL=ace/css/`+c+" */");var v=i.createElement("style");v.appendChild(m.createTextNode(l)),c&&(v.id=c),f==m&&(f=i.getDocumentHead(m)),f.insertBefore(v,f.firstChild)}}}if(i.importCssString=o,i.importCssStylsheet=function(l,c){i.buildDom(["link",{rel:"stylesheet",href:l}],i.getDocumentHead(c))},i.scrollbarWidth=function(l){var c=i.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var a=i.createElement("ace_outer"),f=a.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",a.appendChild(c);var m=l&&l.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(a);var v=c.offsetWidth;f.overflow="scroll";var b=c.offsetWidth;return v===b&&(b=a.clientWidth),m.removeChild(a),v-b},i.computedStyle=function(l,c){return window.getComputedStyle(l,"")||{}},i.setStyle=function(l,c,a){l[c]!==a&&(l[c]=a)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=u.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,u.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var r=document.createElement("div");i.HI_DPI&&r.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!u.isEdge&&typeof r.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),r=null}i.HAS_CSS_TRANSFORMS?i.translate=function(l,c,a){l.style.transform="translate("+Math.round(c)+"px, "+Math.round(a)+"px)"}:i.translate=function(l,c,a){l.style.top=Math.round(a)+"px",l.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,p){/* * based on code from: * * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */var u=n("./dom");i.get=function(d,g){var s=new XMLHttpRequest;s.open("GET",d,!0),s.onreadystatechange=function(){s.readyState===4&&g(s.responseText)},s.send(null)},i.loadScript=function(d,g){var s=u.getDocumentHead(),h=document.createElement("script");h.src=d,s.appendChild(h),h.onload=h.onreadystatechange=function(o,r){(r||!h.readyState||h.readyState=="loaded"||h.readyState=="complete")&&(h=h.onload=h.onreadystatechange=null,r||g())}},i.qualifyURL=function(d){var g=document.createElement("a");return g.href=d,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,i,p){i.inherits=function(u,d){u.super_=d,u.prototype=Object.create(d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(u,d){for(var g in d)u[g]=d[g];return u},i.implement=function(u,d){i.mixin(u,d)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,p){var u={},d=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};u._emit=u._dispatchEvent=function(s,h){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[s]||[],r=this._defaultHandlers[s];if(!(!o.length&&!r)){(typeof h!="object"||!h)&&(h={}),h.type||(h.type=s),h.stopPropagation||(h.stopPropagation=d),h.preventDefault||(h.preventDefault=g),o=o.slice();for(var l=0;l1&&(v=f[f.length-2]);var x=h[a+"Path"];return x==null?x=h.basePath:m=="/"&&(a=m=""),x&&x.slice(-1)!="/"&&(x+="/"),x+a+m+v+this.get("suffix")},i.setModuleUrl=function(c,a){return h.$moduleUrls[c]=a};var o=function(c,a){if(c==="ace/theme/textmate"||c==="./theme/textmate")return a(null,n("./theme/textmate"));if(r)return r(c,a);console.error("loader is not configured")},r;i.setLoader=function(c){r=c},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(c,a){var f,m;Array.isArray(c)&&(m=c[0],c=c[1]);var v=function(b){if(b&&!i.$loading[c])return a&&a(b);if(i.$loading[c]||(i.$loading[c]=[]),i.$loading[c].push(a),!(i.$loading[c].length>1)){var x=function(){o(c,function(C,S){S&&(i.$loaded[c]=S),i._emit("load.module",{name:c,module:S});var $=i.$loading[c];i.$loading[c]=null,$.forEach(function(L){L&&L(S)})})};if(!i.get("packaged"))return x();d.loadScript(i.moduleUrl(c,m),x),l()}};if(i.dynamicModules[c])i.dynamicModules[c]().then(function(b){b.default?v(b.default):v(b)});else{try{f=this.$require(c)}catch{}v(f||i.$loaded[c])}},i.$require=function(c){if(typeof p.require=="function"){var a="require";return p[a](c)}},i.setModuleLoader=function(c,a){i.dynamicModules[c]=a};var l=function(){!h.basePath&&!h.workerPath&&!h.modePath&&!h.themePath&&!Object.keys(h.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),l=function(){})};i.version="1.31.2"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,p){n("./lib/fixoldbrowsers");var u=n("./config");u.setLoader(function(h,o){n([h],function(r){o(null,r)})});var d=function(){return this||typeof window<"u"&&window}();p.exports=function(h){u.init=g,u.$require=n,h.require=n},g(!0);function g(h){if(!(!d||!d.document)){u.set("packaged",h||n.packaged||p.packaged||d.define&&(void 0).packaged);var o={},r="",l=document.currentScript||document._currentScript,c=l&&l.ownerDocument||document;l&&l.src&&(r=l.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var a=c.getElementsByTagName("script"),f=0;f ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(s,h){return this.compare(s,h)==0},g.prototype.compareRange=function(s){var h,o=s.end,r=s.start;return h=this.compare(o.row,o.column),h==1?(h=this.compare(r.row,r.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(r.row,r.column),h==-1?-1:h==1?42:0)},g.prototype.comparePoint=function(s){return this.compare(s.row,s.column)},g.prototype.containsRange=function(s){return this.comparePoint(s.start)==0&&this.comparePoint(s.end)==0},g.prototype.intersects=function(s){var h=this.compareRange(s);return h==-1||h==0||h==1},g.prototype.isEnd=function(s,h){return this.end.row==s&&this.end.column==h},g.prototype.isStart=function(s,h){return this.start.row==s&&this.start.column==h},g.prototype.setStart=function(s,h){typeof s=="object"?(this.start.column=s.column,this.start.row=s.row):(this.start.row=s,this.start.column=h)},g.prototype.setEnd=function(s,h){typeof s=="object"?(this.end.column=s.column,this.end.row=s.row):(this.end.row=s,this.end.column=h)},g.prototype.inside=function(s,h){return this.compare(s,h)==0?!(this.isEnd(s,h)||this.isStart(s,h)):!1},g.prototype.insideStart=function(s,h){return this.compare(s,h)==0?!this.isEnd(s,h):!1},g.prototype.insideEnd=function(s,h){return this.compare(s,h)==0?!this.isStart(s,h):!1},g.prototype.compare=function(s,h){return!this.isMultiLine()&&s===this.start.row?hthis.end.column?1:0:sthis.end.row?1:this.start.row===s?h>=this.start.column?0:-1:this.end.row===s?h<=this.end.column?0:1:0},g.prototype.compareStart=function(s,h){return this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.compareEnd=function(s,h){return this.end.row==s&&this.end.column==h?1:this.compare(s,h)},g.prototype.compareInside=function(s,h){return this.end.row==s&&this.end.column==h?1:this.start.row==s&&this.start.column==h?-1:this.compare(s,h)},g.prototype.clipRows=function(s,h){if(this.end.row>h)var o={row:h+1,column:0};else if(this.end.rowh)var r={row:h+1,column:0};else if(this.start.row1?(R++,R>4&&(R=1)):R=1,d.isIE){var E=Math.abs(w.clientX-k)>5||Math.abs(w.clientY-M)>5;(!y||E)&&(R=1),y&&clearTimeout(y),y=setTimeout(function(){y=null},C[R-1]||600),R==1&&(k=w.clientX,M=w.clientY)}if(w._clicks=R,S[$]("mousedown",w),R>4)R=0;else if(R>1)return S[$](A[R],w)}Array.isArray(x)||(x=[x]),x.forEach(function(w){c(w,"mousedown",_,L)})};var f=function(x){return 0|(x.ctrlKey?1:0)|(x.altKey?2:0)|(x.shiftKey?4:0)|(x.metaKey?8:0)};i.getModifierString=function(x){return u.KEY_MODS[f(x)]};function m(x,C,S){var $=f(C);if(!d.isMac&&g){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&($|=8),g.altGr)if((3&$)!=3)g.altGr=0;else return;if(S===18||S===17){var L="location"in C?C.location:C.keyLocation;if(S===17&&L===1)g[S]==1&&(s=C.timeStamp);else if(S===18&&$===3&&L===2){var R=C.timeStamp-s;R<50&&(g.altGr=!0)}}}if(S in u.MODIFIER_KEYS&&(S=-1),!$&&S===13){var L="location"in C?C.location:C.keyLocation;if(L===3&&(x(C,$,-S),C.defaultPrevented))return}if(d.isChromeOS&&$&8){if(x(C,$,S),C.defaultPrevented)return;$&=-9}return!$&&!(S in u.FUNCTION_KEYS)&&!(S in u.PRINTABLE_KEYS)?!1:x(C,$,S)}i.addCommandKeyListener=function(x,C,S){if(d.isOldGecko||d.isOpera&&!("KeyboardEvent"in window)){var $=null;c(x,"keydown",function(R){$=R.keyCode},S),c(x,"keypress",function(R){return m(C,R,$)},S)}else{var L=null;c(x,"keydown",function(R){g[R.keyCode]=(g[R.keyCode]||0)+1;var k=m(C,R,R.keyCode);return L=R.defaultPrevented,k},S),c(x,"keypress",function(R){L&&(R.ctrlKey||R.altKey||R.shiftKey||R.metaKey)&&(i.stopEvent(R),L=null)},S),c(x,"keyup",function(R){g[R.keyCode]=null},S),g||(v(),c(window,"focus",v))}};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var b=1;i.nextTick=function(x,C){C=C||window;var S="zero-timeout-message-"+b++,$=function(L){L.data==S&&(i.stopPropagation(L),a(C,"message",$),x())};c(C,"message",$),C.postMessage(S,"*")}}i.$idleBlocked=!1,i.onIdle=function(x,C){return setTimeout(function S(){i.$idleBlocked?setTimeout(S,100):x()},C)},i.$idleBlockId=null,i.blockIdle=function(x){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},x||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function(x){setTimeout(x,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,i,p){var u;p.exports={lineMode:!1,pasteCancelled:function(){return u&&u>Date.now()-50?!0:u=!1},cancel:function(){u=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,i,p){var u=n("../lib/event"),d=n("../config").nls,g=n("../lib/useragent"),s=n("../lib/dom"),h=n("../lib/lang"),o=n("../clipboard"),r=g.isChrome<18,l=g.isIE,c=g.isChrome>63,a=400,f=n("../lib/keys"),m=f.KEY_MODS,v=g.isIOS,b=v?/\s/:/\n/,x=g.isMobile,C=function(S,$){var L=s.createElement("textarea");L.className="ace_text-input",L.setAttribute("wrap","off"),L.setAttribute("autocorrect","off"),L.setAttribute("autocapitalize","off"),L.setAttribute("spellcheck",!1),L.style.opacity="0",S.insertBefore(L,S.firstChild);var R=!1,k=!1,M=!1,y=!1,A="";x||(L.style.fontSize="1px");var _=!1,w=!1,E="",T=0,O=0,I=0,F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,W=0;try{var j=document.activeElement===L}catch{}this.setNumberOfExtraLines=function(J){if(F=Number.MAX_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER,J<0){W=0;return}W=J},this.setAriaOptions=function(J){if(J.activeDescendant?(L.setAttribute("aria-haspopup","true"),L.setAttribute("aria-autocomplete",J.inline?"both":"list"),L.setAttribute("aria-activedescendant",J.activeDescendant)):(L.setAttribute("aria-haspopup","false"),L.setAttribute("aria-autocomplete","both"),L.removeAttribute("aria-activedescendant")),J.role&&L.setAttribute("role",J.role),J.setLabel&&(L.setAttribute("aria-roledescription",d("editor")),$.session)){var ae=$.session.selection.cursor.row;L.setAttribute("aria-label",d("Cursor at row $0",[ae+1]))}},this.setAriaOptions({role:"textbox"}),u.addListener(L,"blur",function(J){w||($.onBlur(J),j=!1)},$),u.addListener(L,"focus",function(J){if(!w){if(j=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}$.onFocus(J),g.isEdge?setTimeout(U):U()}},$),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:$.renderer.enableKeyboardAccessibility}),A||c||this.$focusScroll=="browser")return L.focus({preventScroll:!0});var J=L.style.top;L.style.position="fixed",L.style.top="0px";try{var ae=L.getBoundingClientRect().top!=0}catch{return}var ue=[];if(ae)for(var be=L.parentElement;be&&be.nodeType==1;)ue.push(be),be.setAttribute("ace_nocontext",!0),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;L.focus({preventScroll:!0}),ae&&ue.forEach(function(Re){Re.removeAttribute("ace_nocontext")}),setTimeout(function(){L.style.position="",L.style.top=="0px"&&(L.style.top=J)},0)},this.blur=function(){L.blur()},this.isFocused=function(){return j},$.on("beforeEndOperation",function(){var J=$.curOp,ae=J&&J.command&&J.command.name;if(ae!="insertstring"){var ue=ae&&(J.docChanged||J.selectionChanged);M&&ue&&(E=L.value="",le()),U()}});var H=function(J,ae){for(var ue=ae,be=1;be<=J-F&&be<2*W+1;be++)ue+=$.session.getLine(J-be).length+1;return ue},U=v?function(J){if(!(!j||R&&!J||y)){J||(J="");var ae=` ab`+J+`cde fg `;ae!=L.value&&(L.value=E=ae);var ue=4,be=4+(J.length||($.selection.isEmpty()?0:1));(T!=ue||O!=be)&&L.setSelectionRange(ue,be),T=ue,O=be}}:function(){if(!(M||y)&&!(!j&&!X)){M=!0;var J=0,ae=0,ue="";if($.session){var be=$.selection,Re=be.getRange(),Ne=be.cursor.row;Ne===D+1?(F=D+1,D=F+2*W):Ne===F-1?(D=F-1,F=D-2*W):(NeD+1)&&(F=Ne>W?Ne-W:0,D=Ne>W?Ne+W:2*W);for(var Ke=[],De=F;De<=D;De++)Ke.push($.session.getLine(De));if(ue=Ke.join(` `),J=H(Re.start.row,Re.start.column),ae=H(Re.end.row,Re.end.column),Re.start.rowD){var ke=$.session.getLine(D+1);ae=Re.end.row>D+1?ke.length:Re.end.column,ae+=ue.length+1,ue=ue+` `+ke}else x&&Ne>0&&(ue=` `+ue,ae+=1,J+=1);ue.length>a&&(J=E.length&&J.value===E&&E&&J.selectionEnd!==O},Z=function(J){M||(R?R=!1:K(L)?($.selectAll(),U()):x&&L.selectionStart!=T&&U())},z=null;this.setInputHandler=function(J){z=J},this.getInputHandler=function(){return z};var X=!1,Y=function(J,ae){if(X&&(X=!1),k)return U(),J&&$.onPaste(J),k=!1,"";for(var ue=L.selectionStart,be=L.selectionEnd,Re=T,Ne=E.length-O,Ke=J,De=J.length-ue,He=J.length-be,ke=0;Re>0&&E[ke]==J[ke];)ke++,Re--;for(Ke=Ke.slice(ke),ke=1;Ne>0&&E.length-ke>T-1&&E[E.length-ke]==J[J.length-ke];)ke++,Ne--;De-=ke-1,He-=ke-1;var Ue=Ke.length-ke+1;if(Ue<0&&(Re=-Ue,Ue=0),Ke=Ke.slice(0,Ue),!ae&&!Ke&&!De&&!Re&&!Ne&&!He)return"";y=!0;var dn=!1;return g.isAndroid&&Ke==". "&&(Ke=" ",dn=!0),Ke&&!Re&&!Ne&&!De&&!He||_?$.onTextInput(Ke):$.onTextInput(Ke,{extendLeft:Re,extendRight:Ne,restoreStart:De,restoreEnd:He}),y=!1,E=J,T=ue,O=be,I=He,dn?` `:Ke},V=function(J){if(M)return ie();if(J&&J.inputType){if(J.inputType=="historyUndo")return $.execCommand("undo");if(J.inputType=="historyRedo")return $.execCommand("redo")}var ae=L.value,ue=Y(ae,!0);(ae.length>a+100||b.test(ue)||x&&T<1&&T==O)&&U()},ee=function(J,ae,ue){var be=J.clipboardData||window.clipboardData;if(!(!be||r)){var Re=l||ue?"Text":"text/plain";try{return ae?be.setData(Re,ae)!==!1:be.getData(Re)}catch(Ne){if(!ue)return ee(Ne,ae,!0)}}},P=function(J,ae){var ue=$.getCopyText();if(!ue)return u.preventDefault(J);ee(J,ue)?(v&&(U(ue),R=ue,setTimeout(function(){R=!1},10)),ae?$.onCut():$.onCopy(),u.preventDefault(J)):(R=!0,L.value=ue,L.select(),setTimeout(function(){R=!1,U(),ae?$.onCut():$.onCopy()}))},B=function(J){P(J,!0)},G=function(J){P(J,!1)},Q=function(J){var ae=ee(J);o.pasteCancelled()||(typeof ae=="string"?(ae&&$.onPaste(ae,J),g.isIE&&setTimeout(U),u.preventDefault(J)):(L.value="",k=!0))};u.addCommandKeyListener(L,$.onCommandKey.bind($),$),u.addListener(L,"select",Z,$),u.addListener(L,"input",V,$),u.addListener(L,"cut",B,$),u.addListener(L,"copy",G,$),u.addListener(L,"paste",Q,$),(!("oncut"in L)||!("oncopy"in L)||!("onpaste"in L))&&u.addListener(S,"keydown",function(J){if(!(g.isMac&&!J.metaKey||!J.ctrlKey))switch(J.keyCode){case 67:G(J);break;case 86:Q(J);break;case 88:B(J);break}},$);var te=function(J){if(!(M||!$.onCompositionStart||$.$readOnly)&&(M={},!_)){J.data&&(M.useTextareaForIME=!1),setTimeout(ie,0),$._signal("compositionStart"),$.on("mousedown",se);var ae=$.getSelectionRange();ae.end.row=ae.start.row,ae.end.column=ae.start.column,M.markerRange=ae,M.selectionStart=T,$.onCompositionStart(M),M.useTextareaForIME?(E=L.value="",T=0,O=0):(L.msGetInputContext&&(M.context=L.msGetInputContext()),L.getInputContext&&(M.context=L.getInputContext()))}},ie=function(){if(!(!M||!$.onCompositionUpdate||$.$readOnly)){if(_)return se();if(M.useTextareaForIME)$.onCompositionUpdate(L.value);else{var J=L.value;Y(J),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+O-M.selectionStart+I)}}},le=function(J){!$.onCompositionEnd||$.$readOnly||(M=!1,$.onCompositionEnd(),$.off("mousedown",se),J&&V())};function se(){w=!0,L.blur(),L.focus(),w=!1}var ce=h.delayedCall(ie,50).schedule.bind(null,null);function re(J){J.keyCode==27&&L.value.lengthO&&E[He]==` `?ke=f.end:DeO&&E.slice(0,He).split(` `).length>2?ke=f.down:He>O&&E[He-1]==" "?(ke=f.right,Ue=m.option):(He>O||He==O&&O!=T&&De==He)&&(ke=f.right),De!==He&&(Ue|=m.shift),ke){var dn=ae.onCommandKey({},Ue,ke);if(!dn&&ae.commands){ke=f.keyCodeToString(ke);var Rl=ae.commands.findKeyCommand(Ue,ke);Rl&&ae.execCommand(Rl)}T=De,O=He,U("")}}};document.addEventListener("selectionchange",Ne),ae.on("destroy",function(){document.removeEventListener("selectionchange",Ne)})}this.destroy=function(){L.parentElement&&L.parentElement.removeChild(L)}};i.TextInput=C,i.$setUserAgentForTests=function(S,$){x=S,v=$}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,p){var u=n("../lib/useragent"),d=0,g=550,s=function(){function r(l){l.$clickSelection=null;var c=l.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(l)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(l)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(l)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(l)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(l));var a=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];a.forEach(function(f){l[f]=this[f]},this),l.selectByLines=this.extendSelectionBy.bind(l,"getLineRange"),l.selectByWords=this.extendSelectionBy.bind(l,"getWordRange")}return r.prototype.onMouseDown=function(l){var c=l.inSelection(),a=l.getDocumentPosition();this.mousedownEvent=l;var f=this.editor,m=l.getButton();if(m!==0){var v=f.getSelectionRange(),b=v.isEmpty();(b||m==1)&&f.selection.moveToPosition(a),m==2&&(f.textInput.onContextMenu(l.domEvent),u.isMozilla||l.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(l);return}return this.captureMouse(l),this.startSelect(a,l.domEvent._clicks>1),l.preventDefault()},r.prototype.startSelect=function(l,c){l=l||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var a=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?a.selection.selectToPosition(l):c||a.selection.moveToPosition(l),c||this.select(),a.setStyle("ace_selecting"),this.setState("select"))},r.prototype.select=function(){var l,c=this.editor,a=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(a);if(f==-1)l=this.$clickSelection.end;else if(f==1)l=this.$clickSelection.start;else{var m=o(this.$clickSelection,a);a=m.cursor,l=m.anchor}c.selection.setSelectionAnchor(l.row,l.column)}c.selection.selectToPosition(a),c.renderer.scrollCursorIntoView()},r.prototype.extendSelectionBy=function(l){var c,a=this.editor,f=a.renderer.screenToTextCoordinates(this.x,this.y),m=a.selection[l](f.row,f.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),b=this.$clickSelection.comparePoint(m.end);if(v==-1&&b<=0)c=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(b==1&&v>=0)c=this.$clickSelection.start,(m.start.row!=f.row||m.start.column!=f.column)&&(f=m.end);else if(v==-1&&b==1)f=m.end,c=m.start;else{var x=o(this.$clickSelection,f);f=x.cursor,c=x.anchor}a.selection.setSelectionAnchor(c.row,c.column)}a.selection.selectToPosition(f),a.renderer.scrollCursorIntoView()},r.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},r.prototype.focusWait=function(){var l=h(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(l>d||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},r.prototype.onDoubleClick=function(l){var c=l.getDocumentPosition(),a=this.editor,f=a.session,m=f.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=a.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},r.prototype.onTripleClick=function(l){var c=l.getDocumentPosition(),a=this.editor;this.setState("selectByLines");var f=a.getSelectionRange();f.isMultiLine()&&f.contains(c.row,c.column)?(this.$clickSelection=a.selection.getLineRange(f.start.row),this.$clickSelection.end=a.selection.getLineRange(f.end.row).end):this.$clickSelection=a.selection.getLineRange(c.row),this.select()},r.prototype.onQuadClick=function(l){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},r.prototype.onMouseWheel=function(l){if(!l.getAccelKey()){l.getShiftKey()&&l.wheelY&&!l.wheelX&&(l.wheelX=l.wheelY,l.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var a=this.$lastScroll,f=l.domEvent.timeStamp,m=f-a.t,v=m?l.wheelX/m:a.vx,b=m?l.wheelY/m:a.vy;m=1&&c.renderer.isScrollableBy(l.wheelX*l.speed,0)&&(C=!0),x<=1&&c.renderer.isScrollableBy(0,l.wheelY*l.speed)&&(C=!0),C)a.allowed=f;else if(f-a.allowed=a.length&&(a=void 0),{value:a&&a[v++],done:!a}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom"),s=n("./range").Range,h="ace_tooltip",o=function(){function a(f){this.isOpen=!1,this.$element=null,this.$parentNode=f}return a.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=h,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},a.prototype.getElement=function(){return this.$element||this.$init()},a.prototype.setText=function(f){this.getElement().textContent=f},a.prototype.setHtml=function(f){this.getElement().innerHTML=f},a.prototype.setPosition=function(f,m){this.getElement().style.left=f+"px",this.getElement().style.top=m+"px"},a.prototype.setClassName=function(f){g.addCssClass(this.getElement(),f)},a.prototype.setTheme=function(f){this.$element.className=h+" "+(f.isDark?"ace_dark ":"")+(f.cssClass||"")},a.prototype.show=function(f,m,v){f!=null&&this.setText(f),m!=null&&v!=null&&this.setPosition(m,v),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},a.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=h,this.isOpen=!1)},a.prototype.getHeight=function(){return this.getElement().offsetHeight},a.prototype.getWidth=function(){return this.getElement().offsetWidth},a.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},a}(),r=function(){function a(){this.popups=[]}return a.prototype.addPopup=function(f){this.popups.push(f),this.updatePopups()},a.prototype.removePopup=function(f){var m=this.popups.indexOf(f);m!==-1&&(this.popups.splice(m,1),this.updatePopups())},a.prototype.updatePopups=function(){var f,m,v,b;this.popups.sort(function(y,A){return A.priority-y.priority});var x=[];try{for(var C=d(this.popups),S=C.next();!S.done;S=C.next()){var $=S.value,L=!0;try{for(var R=(v=void 0,d(x)),k=R.next();!k.done;k=R.next()){var M=k.value;if(this.doPopupsOverlap(M,$)){L=!1;break}}}catch(y){v={error:y}}finally{try{k&&!k.done&&(b=R.return)&&b.call(R)}finally{if(v)throw v.error}}L?x.push($):$.hide()}}catch(y){f={error:y}}finally{try{S&&!S.done&&(m=C.return)&&m.call(C)}finally{if(f)throw f.error}}},a.prototype.doPopupsOverlap=function(f,m){var v=f.getElement().getBoundingClientRect(),b=m.getElement().getBoundingClientRect();return v.leftb.left&&v.topb.top},a}(),l=new r;i.popupManager=l,i.Tooltip=o;var c=function(a){u(f,a);function f(m){m===void 0&&(m=document.body);var v=a.call(this,m)||this;v.timeout=void 0,v.lastT=0,v.idleTime=350,v.lastEvent=void 0,v.onMouseOut=v.onMouseOut.bind(v),v.onMouseMove=v.onMouseMove.bind(v),v.waitForHover=v.waitForHover.bind(v),v.hide=v.hide.bind(v);var b=v.getElement();return b.style.whiteSpace="pre-wrap",b.style.pointerEvents="auto",b.addEventListener("mouseout",v.onMouseOut),b.tabIndex=-1,b.addEventListener("blur",(function(){b.contains(document.activeElement)||this.hide()}).bind(v)),v}return f.prototype.addToEditor=function(m){m.on("mousemove",this.onMouseMove),m.on("mousedown",this.hide),m.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},f.prototype.removeFromEditor=function(m){m.off("mousemove",this.onMouseMove),m.off("mousedown",this.hide),m.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},f.prototype.onMouseMove=function(m,v){this.lastEvent=m,this.lastT=Date.now();var b=v.$mouseHandler.isMousePressed;if(this.isOpen){var x=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(x.row,x.column)||b||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||b||(this.lastEvent=m,this.timeout=setTimeout(this.waitForHover,this.idleTime))},f.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var m=Date.now()-this.lastT;if(this.idleTime-m>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-m);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},f.prototype.isOutsideOfText=function(m){var v=m.editor,b=m.getDocumentPosition(),x=v.session.getLine(b.row);if(b.column==x.length){var C=v.renderer.pixelToScreenCoordinates(m.clientX,m.clientY),S=v.session.documentToScreenPosition(b.row,b.column);if(S.column!=C.column||S.row!=C.row)return!0}return!1},f.prototype.setDataProvider=function(m){this.$gatherData=m},f.prototype.showForRange=function(m,v,b,x){if(!(x&&x!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var C=m.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(C.theme)),this.isOpen=!0,this.addMarker(v,m.session),this.range=s.fromPoints(v.start,v.end);var S=this.getElement();S.innerHTML="",S.appendChild(b),S.style.display="block";var $=C.textToScreenCoordinates(v.start.row,v.start.column),L=S.clientHeight,R=C.scroller.getBoundingClientRect(),k=!0;$.pageY-L<0&&(k=!1),k?$.pageY-=L:$.pageY+=C.lineHeight,S.style.maxWidth=R.width-($.pageX-R.left)+"px",this.setPosition($.pageX,$.pageY)}},f.prototype.addMarker=function(m,v){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=v,this.marker=v&&v.addMarker(m,"ace_highlight-marker","text")},f.prototype.hide=function(m){!m&&document.activeElement==this.getElement()||m&&m.target&&(m.type!="keydown"||m.ctrlKey||m.metaKey)&&this.$element.contains(m.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,l.removePopup(this)))},f.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},f.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},f.prototype.onMouseOut=function(m){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!m.relatedTarget||m.relatedTarget==this.getElement()||m&&m.currentTarget.contains(m.relatedTarget)||m.relatedTarget.classList.contains("ace_content")||this.hide())},f}(o);i.HoverTooltip=c}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(n,i,p){var u=this&&this.__extends||function(){var c=function(a,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(m[b]=v[b])},c(a,f)};return function(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(a,f);function m(){this.constructor=a}a.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,f=a&&c[a],m=0;if(f)return f.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&m>=c.length&&(c=void 0),{value:c&&c[m++],done:!c}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),s=n("../lib/event"),h=n("../tooltip").Tooltip,o=n("../config").nls;function r(c){var a=c.editor,f=a.renderer.$gutterLayer,m=new l(a);c.editor.setDefaultHandler("guttermousedown",function($){if(!(!a.isFocused()||$.getButton()!=0)){var L=f.getRegion($);if(L!="foldWidgets"){var R=$.getDocumentPosition().row,k=a.session.selection;if($.getShiftKey())k.selectTo(R,0);else{if($.domEvent.detail==2)return a.selectAll(),$.preventDefault();c.$clickSelection=a.selection.getLineRange(R)}return c.setState("selectByLines"),c.captureMouse($),$.preventDefault()}}});var v,b;function x(){var $=b.getDocumentPosition().row,L=a.session.getLength();if($==L){var R=a.renderer.pixelToScreenCoordinates(0,b.y).row,k=b.$pos;if(R>a.session.documentToScreenRow(k.row,k.column))return C()}if(m.showTooltip($),!!m.isOpen)if(a.on("mousewheel",C),c.$tooltipFollowsMouse)S(b);else{var M=b.getGutterRow(),y=f.$lines.get(M);if(y){var A=y.element.querySelector(".ace_gutter_annotation"),_=A.getBoundingClientRect(),w=m.getElement().style;w.left=_.right+"px",w.top=_.bottom+"px"}else S(b)}}function C(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),a.off("mousewheel",C))}function S($){m.setPosition($.x,$.y)}c.editor.setDefaultHandler("guttermousemove",function($){var L=$.domEvent.target||$.domEvent.srcElement;if(g.hasCssClass(L,"ace_fold-widget"))return C();m.isOpen&&c.$tooltipFollowsMouse&&S($),b=$,!v&&(v=setTimeout(function(){v=null,b&&!c.isMousePressed?x():C()},50))}),s.addListener(a.renderer.$gutter,"mouseout",function($){b=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,C()},50))},a),a.on("changeSession",C),a.on("input",C)}i.GutterHandler=r;var l=function(c){u(a,c);function a(f){var m=c.call(this,f.container)||this;return m.editor=f,m}return a.prototype.setPosition=function(f,m){var v=window.innerWidth||document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight,x=this.getWidth(),C=this.getHeight();f+=15,m+=15,f+x>v&&(f-=f+x-v),m+C>b&&(m-=20+C),h.prototype.setPosition.call(this,f,m)},Object.defineProperty(a,"annotationLabels",{get:function(){return{error:{singular:o("error"),plural:o("errors")},warning:{singular:o("warning"),plural:o("warnings")},info:{singular:o("information message"),plural:o("information messages")}}},enumerable:!1,configurable:!0}),a.prototype.showTooltip=function(f){var m=this.editor.renderer.$gutterLayer,v=m.$annotations[f],b;v?b={text:Array.from(v.text),type:Array.from(v.type)}:b={text:[],type:[]};var x=m.session.getFoldLine(f);if(x&&m.$showFoldedAnnotations){for(var C={error:[],warning:[],info:[]},S,$=f+1;$<=x.end.row;$++)if(m.$annotations[$])for(var L=0;L ").concat(b.text[$]);M[b.type[$].replace("_fold","")].push(A)}var _=[].concat(M.error,M.warning,M.info).join("
");this.setHtml(_),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},a.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},a.annotationsToSummaryString=function(f){var m,v,b=[],x=["error","warning","info"];try{for(var C=d(x),S=C.next();!S.done;S=C.next()){var $=S.value;if(f[$].length){var L=f[$].length===1?a.annotationLabels[$].singular:a.annotationLabels[$].plural;b.push("".concat(f[$].length," ").concat(L))}}}catch(R){m={error:R}}finally{try{S&&!S.done&&(v=C.return)&&v.call(C)}finally{if(m)throw m.error}}return b.join(", ")},a}(h);i.GutterTooltip=l}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/event"),d=n("../lib/useragent"),g=function(){function s(h,o){this.domEvent=h,this.editor=o,this.x=this.clientX=h.clientX,this.y=this.clientY=h.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){u.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){u.preventDefault(this.domEvent),this.defaultPrevented=!0},s.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},s.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},s.prototype.getGutterRow=function(){var h=this.getDocumentPosition().row,o=this.editor.session.documentToScreenRow(h,0),r=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return o-r},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var h=this.editor,o=h.getSelectionRange();if(o.isEmpty())this.$inSelection=!1;else{var r=this.getDocumentPosition();this.$inSelection=o.contains(r.row,r.column)}return this.$inSelection},s.prototype.getButton=function(){return u.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return d.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();i.MouseEvent=g}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,i,p){var u=n("../lib/dom"),d=n("../lib/event"),g=n("../lib/useragent"),s=200,h=200,o=5;function r(c){var a=c.editor,f=u.createElement("div");f.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",f.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(H){c[H]=this[H]},this),a.on("mousedown",this.onMouseDown.bind(c));var v=a.container,b,x,C,S,$,L,R=0,k,M,y,A,_;this.onDragStart=function(H){if(this.cancelDrag||!v.draggable){var U=this;return setTimeout(function(){U.startSelect(),U.captureMouse(H)},0),H.preventDefault()}$=a.getSelectionRange();var K=H.dataTransfer;K.effectAllowed=a.getReadOnly()?"copy":"copyMove",a.container.appendChild(f),K.setDragImage&&K.setDragImage(f,0,0),setTimeout(function(){a.container.removeChild(f)}),K.clearData(),K.setData("Text",a.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(H){if(v.draggable=!1,M=!1,this.setState(null),!a.getReadOnly()){var U=H.dataTransfer.dropEffect;!k&&U=="move"&&a.session.remove(a.getSelectionRange()),a.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(H){if(!(a.getReadOnly()||!W(H.dataTransfer)))return x=H.clientX,C=H.clientY,b||O(),R++,H.dataTransfer.dropEffect=k=j(H),d.preventDefault(H)},this.onDragOver=function(H){if(!(a.getReadOnly()||!W(H.dataTransfer)))return x=H.clientX,C=H.clientY,b||(O(),R++),F!==null&&(F=null),H.dataTransfer.dropEffect=k=j(H),d.preventDefault(H)},this.onDragLeave=function(H){if(R--,R<=0&&b)return I(),k=null,d.preventDefault(H)},this.onDrop=function(H){if(L){var U=H.dataTransfer;if(M)switch(k){case"move":$.contains(L.row,L.column)?$={start:L,end:L}:$=a.moveText($,L);break;case"copy":$=a.moveText($,L,!0);break}else{var K=U.getData("Text");$={start:L,end:a.session.insert(L,K)},a.focus(),k=null}return I(),d.preventDefault(H)}},d.addListener(v,"dragstart",this.onDragStart.bind(c),a),d.addListener(v,"dragend",this.onDragEnd.bind(c),a),d.addListener(v,"dragenter",this.onDragEnter.bind(c),a),d.addListener(v,"dragover",this.onDragOver.bind(c),a),d.addListener(v,"dragleave",this.onDragLeave.bind(c),a),d.addListener(v,"drop",this.onDrop.bind(c),a);function w(H,U){var K=Date.now(),Z=!U||H.row!=U.row,z=!U||H.column!=U.column;if(!A||Z||z)a.moveCursorToPosition(H),A=K,_={x,y:C};else{var X=l(_.x,_.y,x,C);X>o?A=null:K-A>=h&&(a.renderer.scrollCursorIntoView(),A=null)}}function E(H,U){var K=Date.now(),Z=a.renderer.layerConfig.lineHeight,z=a.renderer.layerConfig.characterWidth,X=a.renderer.scroller.getBoundingClientRect(),Y={x:{left:x-X.left,right:X.right-x},y:{top:C-X.top,bottom:X.bottom-C}},V=Math.min(Y.x.left,Y.x.right),ee=Math.min(Y.y.top,Y.y.bottom),P={row:H.row,column:H.column};V/z<=2&&(P.column+=Y.x.left=s&&a.renderer.scrollCursorIntoView(P):y=K:y=null}function T(){var H=L;L=a.renderer.screenToTextCoordinates(x,C),w(L,H),E(L,H)}function O(){$=a.selection.toOrientedRange(),b=a.session.addMarker($,"ace_selection",a.getSelectionStyle()),a.clearSelection(),a.isFocused()&&a.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),T(),S=setInterval(T,20),R=0,d.addListener(document,"mousemove",D)}function I(){clearInterval(S),a.session.removeMarker(b),b=null,a.selection.fromOrientedRange($),a.isFocused()&&!M&&a.$resetCursorStyle(),$=null,L=null,R=0,y=null,A=null,d.removeListener(document,"mousemove",D)}var F=null;function D(){F==null&&(F=setTimeout(function(){F!=null&&b&&I()},20))}function W(H){var U=H.types;return!U||Array.prototype.some.call(U,function(K){return K=="text/plain"||K=="Text"})}function j(H){var U=["copy","copymove","all","uninitialized"],K=["move","copymove","linkmove","all","uninitialized"],Z=g.isMac?H.altKey:H.ctrlKey,z="uninitialized";try{z=H.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return Z&&U.indexOf(z)>=0?X="copy":K.indexOf(z)>=0?X="move":U.indexOf(z)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,a=c.container;a.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var f=g.isWin?"default":"move";c.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(c){var a=this.editor.container;if(g.isIE&&this.state=="dragReady"){var f=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&a.dragDrop()}if(this.state==="dragWait"){var f=l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(a.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var a=this.editor,f=c.inSelection(),m=c.getButton(),v=c.domEvent.detail||1;if(v===1&&m===0&&f){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var b=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in b&&(b.unselectable="on"),a.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var x=a.container;x.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(r.prototype);function l(c,a,f,m){return Math.sqrt(Math.pow(f-c,2)+Math.pow(m-a,2))}i.DragdropHandler=r}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,i,p){var u=n("./mouse_event").MouseEvent,d=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(s,h){var o="scroll",r,l,c,a,f,m,v=0,b,x=0,C=0,S=0,$,L;function R(){var w=window.navigator&&window.navigator.clipboard,E=!1,T=function(){var I=h.getCopyText(),F=h.session.getUndoManager().hasUndo();L.replaceChild(g.buildDom(E?["span",!I&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],I&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],I&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],F&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),L.firstChild)},O=function(I){var F=I.target.getAttribute("action");if(F=="more"||!E)return E=!E,T();F=="paste"?w.readText().then(function(D){h.execCommand(F,D)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(F)),L.firstChild.style.display="none",E=!1,F!="openCommandPalette"&&h.focus()};L=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){o="menu",I.stopPropagation(),I.preventDefault(),h.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}function k(){L||R();var w=h.selection.cursor,E=h.renderer.textToScreenCoordinates(w.row,w.column),T=h.renderer.textToScreenCoordinates(0,0).pageX,O=h.renderer.scrollLeft,I=h.container.getBoundingClientRect();L.style.top=E.pageY-I.top-3+"px",E.pageX-I.left=2?h.selection.getLineRange(b.row):h.session.getBracketRange(b);w&&!w.isEmpty()?h.selection.setRange(w):h.selection.selectWord(),o="wait"}d.addListener(s,"contextmenu",function(w){if($){var E=h.textInput.getElement();E.focus()}},h),d.addListener(s,"touchstart",function(w){var E=w.touches;if(f||E.length>1){clearTimeout(f),f=null,c=-1,o="zoom";return}$=h.$mouseHandler.isMousePressed=!0;var T=h.renderer.layerConfig.lineHeight,O=h.renderer.layerConfig.lineHeight,I=w.timeStamp;a=I;var F=E[0],D=F.clientX,W=F.clientY;Math.abs(r-D)+Math.abs(l-W)>T&&(c=-1),r=w.clientX=D,l=w.clientY=W,C=S=0;var j=new u(w,h);if(b=j.getDocumentPosition(),I-c<500&&E.length==1&&!v)x++,w.preventDefault(),w.button=0,A();else{x=0;var H=h.selection.cursor,U=h.selection.isEmpty()?H:h.selection.anchor,K=h.renderer.$cursorLayer.getPixelPosition(H,!0),Z=h.renderer.$cursorLayer.getPixelPosition(U,!0),z=h.renderer.scroller.getBoundingClientRect(),X=h.renderer.layerConfig.offset,Y=h.renderer.scrollLeft,V=function(B,G){return B=B/O,G=G/T-.75,B*B+G*G};if(w.clientXP?"cursor":"anchor"),P<3.5?o="anchor":ee<3.5?o="cursor":o="scroll",f=setTimeout(y,450)}c=I},h),d.addListener(s,"touchend",function(w){$=h.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):f?(h.selection.moveToPosition(b),v=0,k()):o=="scroll"?(_(),M()):k(),clearTimeout(f),f=null},h),d.addListener(s,"touchmove",function(w){f&&(clearTimeout(f),f=null);var E=w.touches;if(!(E.length>1||o=="zoom")){var T=E[0],O=r-T.clientX,I=l-T.clientY;if(o=="wait")if(O*O+I*I>4)o="cursor";else return w.preventDefault();r=T.clientX,l=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var F=w.timeStamp,D=F-a;if(a=F,o=="scroll"){var W=new u(w,h);W.speed=1,W.wheelX=O,W.wheelY=I,10*Math.abs(O)0)if(P==16){for(Q=G;Q-1){for(Q=G;Q=0&&Z[le]==$;le--)U[le]=u}}}function D(H,U,K){if(!(d=H){for(X=z+1;X=H;)X++;for(Y=z,V=X-1;Y=U.length||(X=K[Z-1])!=m&&X!=v||(Y=U[Z+1])!=m&&Y!=v?b:(g&&(Y=v),Y==X?Y:b);case R:return X=Z>0?K[Z-1]:x,X==m&&Z+10&&K[Z-1]==m)return m;if(g)return b;for(ee=Z+1,V=U.length;ee=1425&&P<=2303||P==64286;if(X=U[ee],B&&(X==f||X==S))return f}return Z<1||(X=U[Z-1])==x?b:K[Z-1];case x:return g=!1,s=!0,u;case C:return h=!0,b;case y:case A:case w:case E:case _:g=!1;case T:return b}}function j(H){var U=H.charCodeAt(0),K=U>>8;return K==0?U>191?a:O[U]:K==5?/[\u0591-\u05f4]/.test(H)?f:a:K==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(H)?M:/[\u0660-\u0669\u066b-\u066c]/.test(H)?v:U==1642?k:/[\u06f0-\u06f9]/.test(H)?m:S:K==32&&U<=8287?I[U&255]:K==254&&U>=65136?S:b}i.L=a,i.R=f,i.EN=m,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(H,U,K){if(H.length<2)return{};var Z=H.split(""),z=new Array(Z.length),X=new Array(Z.length),Y=[];u=K?c:l,F(Z,Y,Z.length,U);for(var V=0;VS&&U[V]0&&Z[V-1]==="Ù„"&&/\u0622|\u0623|\u0625|\u0627/.test(Z[V])&&(Y[V-1]=Y[V]=i.R_H,V++);Z[Z.length-1]===i.DOT&&(Y[Z.length-1]=i.B),Z[0]==="‫"&&(Y[0]=i.RLE);for(var V=0;V=0&&(o=this.session.$docRowCache[l])}return o},h.prototype.getSplitIndex=function(){var o=0,r=this.session.$screenRowCache;if(r.length)for(var l,c=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-o>0&&(l=this.session.$getRowCacheIndex(r,this.currentRow-o-1),l===c);)c=l,o++;else o=this.currentRow;return o},h.prototype.updateRowLine=function(o,r){o===void 0&&(o=this.getDocumentRow());var l=o===this.session.getLength()-1,c=l?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(o),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var a=this.session.$wrapData[o];a&&(r===void 0&&(r=this.getSplitIndex()),r>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[u.L],this.line=rr?this.session.getOverwrite()?o:o-1:r,c=u.getVisualFromLogicalIdx(l,this.bidiMap),a=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&o<=r&&a[c]%2!==0&&c++;for(var m=0;mr&&a[c]%2===0&&(f+=this.charWidths[a[c]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},h.prototype.getSelections=function(o,r){var l=this.bidiMap,c=l.bidiLevels,a,f=[],m=0,v=Math.min(o,r)-this.wrapIndent,b=Math.max(o,r)-this.wrapIndent,x=!1,C=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var $,L=0;L=v&&$c+m/2;){if(c+=m,a===f.length-1){m=0;break}m=this.charWidths[f[++a]]}return a>0&&f[a-1]%2!==0&&f[a]%2===0?(l0&&f[a-1]%2===0&&f[a]%2!==0?r=1+(l>c?this.bidiMap.logicalFromVisual[a]:this.bidiMap.logicalFromVisual[a-1]):this.isRtlDir&&a===f.length-1&&m===0&&f[a-1]%2===0||!this.isRtlDir&&a===0&&f[a]%2!==0?r=1+this.bidiMap.logicalFromVisual[a]:(a>0&&f[a-1]%2!==0&&m!==0&&a--,r=this.bidiMap.logicalFromVisual[a]),r===0&&this.isRtlDir&&r++,r+this.wrapIndent},h}();i.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,i,p){var u=n("./lib/oop"),d=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,s=n("./range").Range,h=function(){function o(r){this.session=r,this.doc=r.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var l=this;this.cursor.on("change",function(c){l.$cursorChanged=!0,l.$silent||l._emit("changeCursor"),!l.$isEmpty&&!l.$silent&&l._emit("changeSelection"),!l.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(l.$desiredColumn=null)}),this.anchor.on("change",function(){l.$anchorChanged=!0,!l.$isEmpty&&!l.$silent&&l._emit("changeSelection")})}return o.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},o.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},o.prototype.getCursor=function(){return this.lead.getPosition()},o.prototype.setAnchor=function(r,l){this.$isEmpty=!1,this.anchor.setPosition(r,l)},o.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},o.prototype.getSelectionLead=function(){return this.lead.getPosition()},o.prototype.isBackwards=function(){var r=this.anchor,l=this.lead;return r.row>l.row||r.row==l.row&&r.column>l.column},o.prototype.getRange=function(){var r=this.anchor,l=this.lead;return this.$isEmpty?s.fromPoints(l,l):this.isBackwards()?s.fromPoints(l,r):s.fromPoints(r,l)},o.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},o.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},o.prototype.setRange=function(r,l){var c=l?r.end:r.start,a=l?r.start:r.end;this.$setSelection(c.row,c.column,a.row,a.column)},o.prototype.$setSelection=function(r,l,c,a){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,l),this.cursor.setPosition(c,a),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||m)&&this._emit("changeSelection")}},o.prototype.$moveSelection=function(r){var l=this.lead;this.$isEmpty&&this.setSelectionAnchor(l.row,l.column),r.call(this)},o.prototype.selectTo=function(r,l){this.$moveSelection(function(){this.moveCursorTo(r,l)})},o.prototype.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},o.prototype.moveTo=function(r,l){this.clearSelection(),this.moveCursorTo(r,l)},o.prototype.moveToPosition=function(r){this.clearSelection(),this.moveCursorToPosition(r)},o.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},o.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},o.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},o.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},o.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},o.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},o.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},o.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},o.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},o.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},o.prototype.getWordRange=function(r,l){if(typeof l>"u"){var c=r||this.lead;r=c.row,l=c.column}return this.session.getWordRange(r,l)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var r=this.getCursor(),l=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(l)},o.prototype.getLineRange=function(r,l){var c=typeof r=="number"?r:this.lead.row,a,f=this.session.getFoldLine(c);return f?(c=f.start.row,a=f.end.row):a=c,l===!0?new s(c,0,a,this.session.getLine(a).length):new s(c,0,a+1,0)},o.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},o.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},o.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},o.prototype.wouldMoveIntoSoftTab=function(r,l,c){var a=r.column,f=r.column+l;return c<0&&(a=r.column-l,f=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(a,f).split(" ").length-1==l},o.prototype.moveCursorLeft=function(){var r=this.lead.getPosition(),l;if(l=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(l.start.row,l.start.column);else if(r.column===0)r.row>0&&this.moveCursorTo(r.row-1,this.doc.getLine(r.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(r,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var r=this.lead.getPosition(),l;if(l=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(l.end.row,l.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(l.column=a)}}this.moveCursorTo(l.row,l.column)},o.prototype.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,l=this.doc.getLine(r).length;this.moveCursorTo(r,l)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var r=this.lead.row,l=this.lead.column,c=this.doc.getLine(r),a=c.substring(l);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(r,l,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(a)&&(l+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,a=c.substring(l)),l>=c.length){this.moveCursorTo(r,c.length),this.moveCursorRight(),r0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(l-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,l)},o.prototype.$shortWordEndIndex=function(r){var l=0,c,a=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(r))l=this.session.tokenRe.lastIndex;else{for(;(c=r[l])&&a.test(c);)l++;if(l<1){for(f.lastIndex=0;(c=r[l])&&!f.test(c);)if(f.lastIndex=0,l++,a.test(c))if(l>2){l--;break}else{for(;(c=r[l])&&a.test(c);)l++;if(l>2)break}}}return f.lastIndex=0,l},o.prototype.moveCursorShortWordRight=function(){var r=this.lead.row,l=this.lead.column,c=this.doc.getLine(r),a=c.substring(l),f=this.session.getFoldAt(r,l,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(l==c.length){var m=this.doc.getLength();do r++,a=this.doc.getLine(r);while(r0&&/^\s*$/.test(a));l=a.length,/\s+$/.test(a)||(a="")}var f=d.stringReverse(a),m=this.$shortWordEndIndex(f);return this.moveCursorTo(r,l-m)},o.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},o.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},o.prototype.moveCursorBy=function(r,l){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),a;if(l===0&&(r!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(a=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(a/this.session.$bidiHandler.charWidths[0])):a=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),r!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var f=this.session.lineWidgets[this.lead.row];r<0?r-=f.rowsAbove||0:r>0&&(r+=f.rowCount-(f.rowsAbove||0))}var m=this.session.screenToDocumentPosition(c.row+r,c.column,a);r!==0&&l===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+l,l===0)},o.prototype.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},o.prototype.moveCursorTo=function(r,l,c){var a=this.session.getFoldAt(r,l,1);a&&(r=a.start.row,l=a.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(f.charAt(l))&&f.charAt(l-1)&&(this.lead.row==r&&this.lead.column==l+1?l=l-1:l=l+1),this.lead.setPosition(r,l),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(r,l,c){var a=this.session.screenToDocumentPosition(r,l);this.moveCursorTo(a.row,a.column,c)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(r){this.setSelectionRange(r,r.cursor==r.start),this.$desiredColumn=r.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(r){var l=this.getRange();return r?(r.start.column=l.start.column,r.start.row=l.start.row,r.end.column=l.end.column,r.end.row=l.end.row):r=l,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},o.prototype.getRangeOfMovements=function(r){var l=this.getCursor();try{r(this);var c=this.getCursor();return s.fromPoints(l,c)}catch{return s.fromPoints(l,l)}finally{this.moveCursorToPosition(l)}},o.prototype.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(l){var c=l.clone();return c.isBackwards=l.cursor==l.start,c});else{var r=this.getRange();r.isBackwards=this.isBackwards()}return r},o.prototype.fromJSON=function(r){if(r.start==null)if(this.rangeList&&r.length>1){this.toSingleRange(r[0]);for(var l=r.length;l--;){var c=s.fromPoints(r[l].start,r[l].end);r[l].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else r=r[0];this.rangeList&&this.toSingleRange(r),this.setSelectionRange(r,r.isBackwards)},o.prototype.isEqual=function(r){if((r.length||this.rangeCount)&&r.length!=this.rangeCount)return!1;if(!r.length||!this.ranges)return this.getRange().isEqual(r);for(var l=this.ranges.length;l--;)if(!this.ranges[l].isEqual(r[l]))return!1;return!0},o}();h.prototype.setSelectionAnchor=h.prototype.setAnchor,h.prototype.getSelectionAnchor=h.prototype.getAnchor,h.prototype.setSelectionRange=h.prototype.setRange,u.implement(h.prototype,g),i.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,p){var u=n("./lib/report_error").reportError,d=2e3,g=function(){function s(h){this.states=h,this.regExps={},this.matchMappings={};for(var o in this.states){for(var r=this.states[o],l=[],c=0,a=this.matchMappings[o]={defaultToken:"text"},f="g",m=[],v=0;v1?b.onMatch=this.$applyToken:b.onMatch=b.token),C>1&&(/\\\d/.test(b.regex)?x=b.regex.replace(/\\([0-9]+)/g,function(S,$){return"\\"+(parseInt($,10)+c+1)}):(C=1,x=this.removeCapturingGroups(b.regex)),!b.splitRegex&&typeof b.token!="string"&&m.push(b)),a[c]=v,c+=C,l.push(x),b.onMatch||(b.onMatch=null)}}l.length||(a[0]=0,l.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,f)},this),this.regExps[o]=new RegExp("("+l.join(")|(")+")|($)",f)}}return s.prototype.$setMaxTokenCount=function(h){d=h|0},s.prototype.$applyToken=function(h){var o=this.splitRegex.exec(h).slice(1),r=this.token.apply(this,o);if(typeof r=="string")return[{type:r,value:h}];for(var l=[],c=0,a=r.length;cb){var k=h.substring(b,R-L.length);C.type==S?C.value+=k:(C.type&&v.push(C),C={type:S,value:k})}for(var M=0;Md){for(x>2*h.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:h});b1&&r[0]!==l&&r.unshift("#tmp",l),{tokens:v,state:r.length?r:l}},s}();g.prototype.reportError=u,i.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,i,p){var u=n("../lib/deep_copy").deepCopy,d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(h,o){if(!o){for(var r in h)this.$rules[r]=h[r];return}for(var r in h){for(var l=h[r],c=0;c=this.$rowTokens.length;){if(this.$row+=1,s||(s=this.$session.getLength()),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentTokenRow=function(){return this.$row},g.prototype.getCurrentTokenColumn=function(){var s=this.$rowTokens,h=this.$tokenIndex,o=s[h].start;if(o!==void 0)return o;for(o=0;h>0;)h-=1,o+=s[h].value.length;return o},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var s=this.$rowTokens[this.$tokenIndex],h=this.getCurrentTokenColumn();return new u(this.$row,h,this.$row,h+s.value.length)},g}();i.TokenIterator=d}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,i,p){var u=n("../../lib/oop"),d=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,s=n("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],r,l={},c={'"':'"',"'":"'"},a=function(v){var b=-1;if(v.multiSelect&&(b=v.selection.index,l.rangeCount!=v.multiSelect.rangeCount&&(l={rangeCount:v.multiSelect.rangeCount})),l[b])return r=l[b];r=l[b]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,b,x,C){var S=v.end.row-v.start.row;return{text:x+b+C,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m=function(v){v=v||{},this.add("braces","insertion",function(b,x,C,S,$){var L=C.getCursorPosition(),R=S.doc.getLine(L.row);if($=="{"){a(C);var k=C.getSelectionRange(),M=S.doc.getTextRange(k);if(M!==""&&M!=="{"&&C.getWrapBehavioursEnabled())return f(k,M,"{","}");if(m.isSaneInsertion(C,S))return/[\]\}\)]/.test(R[L.column])||C.inMultiSelectMode||v.braces?(m.recordAutoInsert(C,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(C,S,"{"),{text:"{",selection:[1,1]})}else if($=="}"){a(C);var y=R.substring(L.column,L.column+1);if(y=="}"){var A=S.$findOpeningBracket("}",{column:L.column+1,row:L.row});if(A!==null&&m.isAutoInsertedClosing(L,R,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($==` `||$==`\r `){a(C);var _="";m.isMaybeInsertedClosing(L,R)&&(_=s.stringRepeat("}",r.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var y=R.substring(L.column,L.column+1);if(y==="}"){var w=S.findMatchingBracket({row:L.row,column:L.column+1},"}");if(!w)return null;var E=this.$getIndent(S.getLine(w.row))}else if(_)var E=this.$getIndent(R);else{m.clearMaybeInsertedClosing();return}var T=E+S.getTabString();return{text:` `+T+` `+E+_,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(b,x,C,S,$){var L=S.doc.getTextRange($);if(!$.isMultiLine()&&L=="{"){a(C);var R=S.doc.getLine($.start.row),k=R.substring($.end.column,$.end.column+1);if(k=="}")return $.end.column++,$;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(b,x,C,S,$){if($=="("){a(C);var L=C.getSelectionRange(),R=S.doc.getTextRange(L);if(R!==""&&C.getWrapBehavioursEnabled())return f(L,R,"(",")");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,")"),{text:"()",selection:[1,1]}}else if($==")"){a(C);var k=C.getCursorPosition(),M=S.doc.getLine(k.row),y=M.substring(k.column,k.column+1);if(y==")"){var A=S.$findOpeningBracket(")",{column:k.column+1,row:k.row});if(A!==null&&m.isAutoInsertedClosing(k,M,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(b,x,C,S,$){var L=S.doc.getTextRange($);if(!$.isMultiLine()&&L=="("){a(C);var R=S.doc.getLine($.start.row),k=R.substring($.start.column+1,$.start.column+2);if(k==")")return $.end.column++,$}}),this.add("brackets","insertion",function(b,x,C,S,$){if($=="["){a(C);var L=C.getSelectionRange(),R=S.doc.getTextRange(L);if(R!==""&&C.getWrapBehavioursEnabled())return f(L,R,"[","]");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,"]"),{text:"[]",selection:[1,1]}}else if($=="]"){a(C);var k=C.getCursorPosition(),M=S.doc.getLine(k.row),y=M.substring(k.column,k.column+1);if(y=="]"){var A=S.$findOpeningBracket("]",{column:k.column+1,row:k.row});if(A!==null&&m.isAutoInsertedClosing(k,M,$))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(b,x,C,S,$){var L=S.doc.getTextRange($);if(!$.isMultiLine()&&L=="["){a(C);var R=S.doc.getLine($.start.row),k=R.substring($.start.column+1,$.start.column+2);if(k=="]")return $.end.column++,$}}),this.add("string_dquotes","insertion",function(b,x,C,S,$){var L=S.$mode.$quotes||c;if($.length==1&&L[$]){if(this.lineCommentStart&&this.lineCommentStart.indexOf($)!=-1)return;a(C);var R=$,k=C.getSelectionRange(),M=S.doc.getTextRange(k);if(M!==""&&(M.length!=1||!L[M])&&C.getWrapBehavioursEnabled())return f(k,M,R,R);if(!M){var y=C.getCursorPosition(),A=S.doc.getLine(y.row),_=A.substring(y.column-1,y.column),w=A.substring(y.column,y.column+1),E=S.getTokenAt(y.row,y.column),T=S.getTokenAt(y.row,y.column+1);if(_=="\\"&&E&&/escape/.test(E.type))return null;var O=E&&/string|escape/.test(E.type),I=!T||/string|escape/.test(T.type),F;if(w==R)F=O!==I,F&&/string\.end/.test(T.type)&&(F=!1);else{if(O&&!I||O&&I)return null;var D=S.$mode.tokenRe;D.lastIndex=0;var W=D.test(_);D.lastIndex=0;var j=D.test(w),H=S.$mode.$pairQuotesAfter,U=H&&H[R]&&H[R].test(_);if(!U&&W||j||w&&!/[\s;,.})\]\\]/.test(w))return null;var K=A[y.column-2];if(_==R&&(K==R||D.test(K)))return null;F=!0}return{text:F?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(b,x,C,S,$){var L=S.$mode.$quotes||c,R=S.doc.getTextRange($);if(!$.isMultiLine()&&L.hasOwnProperty(R)){a(C);var k=S.doc.getLine($.start.row),M=k.substring($.start.column+1,$.start.column+2);if(M==R)return $.end.column++,$}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(b,x,C,S,$){if(b==="doc-start"&&($===` `||$===`\r `)&&C.selection.isEmpty()){var L=C.getCursorPosition(),R=S.doc.getLine(L.row),k=S.doc.getLine(L.row+1),M=this.$getIndent(R);if(/\s*\*/.test(k))return/^\s*\*/.test(R)?{text:$+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:$+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(R.substring(0,L.column)))return{text:$+M+" * "+$+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})};m.isSaneInsertion=function(v,b){var x=v.getCursorPosition(),C=new g(b,x.row,x.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",h)){if(/[)}\]]/.test(v.session.getLine(x.row)[x.column]))return!0;var S=new g(b,x.row,x.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",h))return!1}return C.stepForward(),C.getCurrentTokenRow()!==x.row||this.$matchTokenType(C.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,b){return b.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,b,x){var C=v.getCursorPosition(),S=b.doc.getLine(C.row);this.isAutoInsertedClosing(C,S,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=C.row,r.autoInsertedLineEnd=x+S.substr(C.column),r.autoInsertedBrackets++},m.recordMaybeInsert=function(v,b,x){var C=v.getCursorPosition(),S=b.doc.getLine(C.row);this.isMaybeInsertedClosing(C,S)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=C.row,r.maybeInsertedLineStart=S.substr(0,C.column)+x,r.maybeInsertedLineEnd=S.substr(C.column),r.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,b,x){return r.autoInsertedBrackets>0&&v.row===r.autoInsertedRow&&x===r.autoInsertedLineEnd[0]&&b.substr(v.column)===r.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,b){return r.maybeInsertedBrackets>0&&v.row===r.maybeInsertedRow&&b.substr(v.column)===r.maybeInsertedLineEnd&&b.substr(0,v.column)==r.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},u.inherits(m,d),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,p){for(var u=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],d=0,g=[],s=0;s2?K%$!=$-1:K%$==0}}else{if(!this.blockComment)return!1;var R=this.blockComment.start,k=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+o.escapeRegExp(R)+")"),y=new RegExp("(?:"+o.escapeRegExp(k)+")\\s*$"),A=function(F,D){w(F,D)||(!x||/\S/.test(F))&&(b.insertInLine({row:D,column:F.length},k),b.insertInLine({row:D,column:S},R))},_=function(F,D){var W;(W=F.match(y))&&b.removeInLine(D,F.length-W[0].length,F.length),(W=F.match(M))&&b.removeInLine(D,W[1].length,W[0].length)},w=function(F,D){if(M.test(F))return!0;for(var W=f.getTokens(D),j=0;jF.length&&(I=F.length)}),S==1/0&&(S=I,x=!1,C=!1),L&&S%$!=0&&(S=Math.floor(S/$)*$),O(C?_:A)},this.toggleBlockComment=function(a,f,m,v){var b=this.blockComment;if(b){!b.start&&b[0]&&(b=b[0]);var x=new r(f,v.row,v.column),C=x.getCurrentToken();f.selection;var S=f.selection.toOrientedRange(),$,L;if(C&&/comment/.test(C.type)){for(var R,k;C&&/comment/.test(C.type);){var M=C.value.indexOf(b.start);if(M!=-1){var y=x.getCurrentTokenRow(),A=x.getCurrentTokenColumn()+M;R=new l(y,A,y,A+b.start.length);break}C=x.stepBackward()}for(var x=new r(f,v.row,v.column),C=x.getCurrentToken();C&&/comment/.test(C.type);){var M=C.value.indexOf(b.end);if(M!=-1){var y=x.getCurrentTokenRow(),A=x.getCurrentTokenColumn()+M;k=new l(y,A,y,A+b.end.length);break}C=x.stepForward()}k&&f.remove(k),R&&(f.remove(R),$=R.start.row,L=-b.start.length)}else L=b.start.length,$=m.start.row,f.insert(m.end,b.end),f.insert(m.start,b.start);S.start.row==$&&(S.start.column+=L),S.end.row==$&&(S.end.column+=L),f.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(a,f,m){return this.$getIndent(f)},this.checkOutdent=function(a,f,m){return!1},this.autoOutdent=function(a,f,m){},this.$getIndent=function(a){return a.match(/^\s*/)[0]},this.createWorker=function(a){return null},this.createModeDelegates=function(a){this.$embeds=[],this.$modes={};for(var f in a)if(a[f]){var m=a[f],v=m.prototype.$id,b=u.$modes[v];b||(u.$modes[v]=b=new m),u.$modes[f]||(u.$modes[f]=b),this.$embeds.push(f),this.$modes[f]=b}for(var x=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],f=0;f"u"?this.setPosition(l.row,l.column):this.setPosition(l,c)}return o.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},o.prototype.getDocument=function(){return this.document},o.prototype.onChange=function(r){if(!(r.start.row==r.end.row&&r.start.row!=this.row)&&!(r.start.row>this.row)){var l=h(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(l.row,l.column,!0)}},o.prototype.setPosition=function(r,l,c){var a;if(c?a={row:r,column:l}:a=this.$clipPositionToDocument(r,l),!(this.row==a.row&&this.column==a.column)){var f={row:this.row,column:this.column};this.row=a.row,this.column=a.column,this._signal("change",{old:f,value:a})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(r){this.document=r||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(r,l){var c={};return r>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):r<0?(c.row=0,c.column=0):(c.row=r,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,l))),l<0&&(c.column=0),c},o}();g.prototype.$insertRight=!1,u.implement(g.prototype,d);function s(o,r,l){var c=l?o.column<=r.column:o.column=a&&(l=a-1,c=void 0);var f=this.getLine(l);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:l,column:c}},r.prototype.clonePos=function(l){return{row:l.row,column:l.column}},r.prototype.pos=function(l,c){return{row:l,column:c}},r.prototype.$clipPosition=function(l){var c=this.getLength();return l.row>=c?(l.row=Math.max(0,c-1),l.column=this.getLine(c-1).length):(l.row=Math.max(0,l.row),l.column=Math.min(Math.max(l.column,0),this.getLine(l.row).length)),l},r.prototype.insertFullLines=function(l,c){l=Math.min(Math.max(l,0),this.getLength());var a=0;l0,f=c=0&&this.applyDelta({start:this.pos(l,this.getLine(l).length),end:this.pos(l+1,0),action:"remove",lines:["",""]})},r.prototype.replace=function(l,c){if(l instanceof s||(l=s.fromPoints(l.start,l.end)),c.length===0&&l.isEmpty())return l.start;if(c==this.getTextRange(l))return l.end;this.remove(l);var a;return c?a=this.insert(l.start,c):a=l.start,a},r.prototype.applyDeltas=function(l){for(var c=0;c=0;c--)this.revertDelta(l[c])},r.prototype.applyDelta=function(l,c){var a=l.action=="insert";(a?l.lines.length<=1&&!l.lines[0]:!s.comparePoints(l.start,l.end))||(a&&l.lines.length>2e4?this.$splitAndapplyLargeDelta(l,2e4):(d(this.$lines,l,c),this._signal("change",l)))},r.prototype.$safeApplyDelta=function(l){var c=this.$lines.length;(l.action=="remove"&&l.start.row20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=c,a==-1&&(a=c),m<=a&&r.fireUpdateEvent(m,a)}}}return s.prototype.setTokenizer=function(h){this.tokenizer=h,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(h){this.doc=h,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(h,o){var r={first:h,last:o};this._signal("update",{data:r})},s.prototype.start=function(h){this.currentLine=Math.min(h||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(h){var o=h.start.row,r=h.end.row-o;if(r===0)this.lines[o]=null;else if(h.action=="remove")this.lines.splice(o,r+1,null),this.states.splice(o,r+1,null);else{var l=Array(r+1);l.unshift(o,1),this.lines.splice.apply(this.lines,l),this.states.splice.apply(this.states,l)}this.currentLine=Math.min(o,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(h){return this.lines[h]||this.$tokenizeRow(h)},s.prototype.getState=function(h){return this.currentLine==h&&this.$tokenizeRow(h),this.states[h]||"start"},s.prototype.$tokenizeRow=function(h){var o=this.doc.getLine(h),r=this.states[h-1],l=this.tokenizer.getLineTokens(o,r,h);return this.states[h]+""!=l.state+""?(this.states[h]=l.state,this.lines[h+1]=null,this.currentLine>h+1&&(this.currentLine=h+1)):this.currentLine==h&&(this.currentLine=h+1),this.lines[h]=l.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();u.implement(g.prototype,d),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,p){var u=n("./lib/lang"),d=n("./range").Range,g=function(){function s(h,o,r){r===void 0&&(r="text"),this.setRegexp(h),this.clazz=o,this.type=r}return s.prototype.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},s.prototype.update=function(h,o,r,l){if(this.regExp)for(var c=l.firstRow,a=l.lastRow,f={},m=c;m<=a;m++){var v=this.cache[m];v==null&&(v=u.getMatchOffsets(r.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(S){return new d(m,S.offset,m,S.offset+S.length)}),this.cache[m]=v.length?v:"");for(var b=v.length;b--;){var x=v[b].toScreenRange(r),C=x.toString();f[C]||(f[C]=!0,o.drawSingleLineMarker(h,x,this.clazz,l))}}},s}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,p){var u=function(){function S(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function($){this.$session=$},S.prototype.add=function($,L,R){if(!this.$fromUndo&&$!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),L===!1||!this.lastDeltas){this.lastDeltas=[];var k=this.$undoStack.length;k>this.$undoDepth-1&&this.$undoStack.splice(0,k-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),$.id=this.$rev=++this.$maxRev}($.action=="remove"||$.action=="insert")&&(this.$lastDelta=$),this.lastDeltas.push($)}},S.prototype.addSelection=function($,L){this.selections.push({value:$,rev:L||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function($,L){L==null&&(L=this.$rev+1);for(var R=this.$undoStack,k=R.length;k--;){var M=R[k][0];if(M.id<=$)break;M.id0},S.prototype.canRedo=function(){return this.$redoStack.length>0},S.prototype.bookmark=function($){$==null&&($=this.$rev),this.mark=$},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function($){this.reset(),this.$undoStack=$.$undoStack,this.$redoStack=$.$redoStack},S.prototype.$prettyPrint=function($){return $?r($):r(this.$undoStack)+` --- `+r(this.$redoStack)},S}();u.prototype.hasUndo=u.prototype.canUndo,u.prototype.hasRedo=u.prototype.canRedo,u.prototype.isClean=u.prototype.isAtBookmark,u.prototype.markClean=u.prototype.bookmark;function d(S,$){for(var L=$;L--;){var R=S[L];if(R&&!R[0].ignore){for(;L<$-1;){var k=a(S[L],S[L+1]);S[L]=k[0],S[L+1]=k[1],L++}return!0}}}var g=n("./range").Range,s=g.comparePoints;g.comparePoints;function h(S){return{row:S.row,column:S.column}}function o(S){return{start:h(S.start),end:h(S.end),action:S.action,lines:S.lines.slice()}}function r(S){if(S=S||this,Array.isArray(S))return S.map(r).join(` `);var $="";return S.action?($=S.action=="insert"?"+":"-",$+="["+S.lines+"]"):S.value&&(Array.isArray(S.value)?$=S.value.map(l).join(` `):$=l(S.value)),S.start&&($+=l(S)),(S.id||S.rev)&&($+=" ("+(S.id||S.rev)+")"),$}function l(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function c(S,$){var L=S.action=="insert",R=$.action=="insert";if(L&&R)if(s($.start,S.end)>=0)m($,S,-1);else if(s($.start,S.start)<=0)m(S,$,1);else return null;else if(L&&!R)if(s($.start,S.end)>=0)m($,S,-1);else if(s($.end,S.start)<=0)m(S,$,-1);else return null;else if(!L&&R)if(s($.start,S.start)>=0)m($,S,1);else if(s($.start,S.start)<=0)m(S,$,1);else return null;else if(!L&&!R)if(s($.start,S.start)>=0)m($,S,1);else if(s($.end,S.start)<=0)m(S,$,-1);else return null;return[$,S]}function a(S,$){for(var L=S.length;L--;)for(var R=0;R<$.length;R++)if(!c(S[L],$[R])){for(;L=0?m(S,$,-1):(s(S.start,$.start)<=0||m(S,g.fromPoints($.start,S.start),-1),m($,S,1));else if(!L&&R)s($.start,S.end)>=0?m($,S,-1):(s($.start,S.start)<=0||m($,g.fromPoints(S.start,$.start),-1),m(S,$,1));else if(!L&&!R)if(s($.start,S.end)>=0)m($,S,-1);else if(s($.end,S.start)<=0)m(S,$,-1);else{var k,M;return s(S.start,$.start)<0&&(k=S,S=b(S,$.start)),s(S.end,$.end)>0&&(M=b(S,$.end)),v($.end,S.start,S.end,-1),M&&!k&&(S.lines=M.lines,S.start=M.start,S.end=M.end,M=S),[$,k,M].filter(Boolean)}return[$,S]}function m(S,$,L){v(S.start,$.start,$.end,L),v(S.end,$.start,$.end,L)}function v(S,$,L,R){S.row==(R==1?$:L).row&&(S.column+=R*(L.column-$.column)),S.row+=R*(L.row-$.row)}function b(S,$){var L=S.lines,R=S.end;S.end=h($);var k=S.end.row-S.start.row,M=L.splice(k,L.length),y=k?$.column:$.column-S.start.column;L.push(M[0].substring(0,y)),M[0]=M[0].substr(y);var A={start:h($),end:R,lines:M,action:S.action};return A}function x(S,$){$=o($);for(var L=S.length;L--;){for(var R=S[L],k=0;kthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(h,o){return-h.range.compareEnd(o.start.row,o.start.column)}),this.range.compareEnd(s.start.row,s.start.column)>0?(this.end.row=s.end.row,this.end.column=s.end.column):this.range.compareStart(s.end.row,s.end.column)<0&&(this.start.row=s.start.row,this.start.column=s.start.column)}else if(s.start.row==this.end.row)this.folds.push(s),this.end.row=s.end.row,this.end.column=s.end.column;else if(s.end.row==this.start.row)this.folds.unshift(s),this.start.row=s.start.row,this.start.column=s.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");s.foldLine=this},g.prototype.containsRow=function(s){return s>=this.start.row&&s<=this.end.row},g.prototype.walk=function(s,h,o){var r=0,l=this.folds,c,a,f,m=!0;h==null&&(h=this.end.row,o=this.end.column);for(var v=0;v0)){var m=d(h,a.start);return f===0?o&&m!==0?-c-2:c:m>0||m===0&&!o?c:-c-1}}return-c-1},s.prototype.add=function(h){var o=!h.isEmpty(),r=this.pointIndex(h.start,o);r<0&&(r=-r-1);var l=this.pointIndex(h.end,o,r);return l<0?l=-l-1:l++,this.ranges.splice(r,l-r,h)},s.prototype.addList=function(h){for(var o=[],r=h.length;r--;)o.push.apply(o,this.add(h[r]));return o},s.prototype.substractPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges.splice(o,1)},s.prototype.merge=function(){var h=[],o=this.ranges;o=o.sort(function(f,m){return d(f.start,m.start)});for(var r=o[0],l,c=1;c=0},s.prototype.containsPoint=function(h){return this.pointIndex(h)>=0},s.prototype.rangeAtPoint=function(h){var o=this.pointIndex(h);if(o>=0)return this.ranges[o]},s.prototype.clipRows=function(h,o){var r=this.ranges;if(r[0].start.row>o||r[r.length-1].start.row=l)break}if(h.action=="insert")for(var b=c-l,x=-o.column+r.column;fl)break;if(v.start.row==l&&v.start.column>=o.column&&(v.start.column==o.column&&this.$bias<=0||(v.start.column+=x,v.start.row+=b)),v.end.row==l&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&x>0&&fv.start.column&&v.end.column==a[f+1].start.column&&(v.end.column-=x),v.end.column+=x,v.end.row+=b}}else for(var b=l-c,x=o.column-r.column;fc)break;v.end.rowo.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=x,v.end.row+=b):v.end.row>c&&(v.end.row+=b),v.start.rowo.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=x,v.start.row+=b):v.start.row>c&&(v.start.row+=b)}if(b!=0&&f=r)return f;if(f.end.row>r)return null}return null},this.getNextFoldLine=function(r,l){var c=this.$foldData,a=0;for(l&&(a=c.indexOf(l)),a==-1&&(a=0),a;a=r)return f}return null},this.getFoldedRowCount=function(r,l){for(var c=this.$foldData,a=l-r+1,f=0;f=l){b=r?a-=l-b:a=0);break}else v>=r&&(b>=r?a-=v-b:a-=v-r+1)}return a},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(l,c){return l.start.row-c.start.row}),r},this.addFold=function(r,l){var c=this.$foldData,a=!1,f;r instanceof g?f=r:(f=new g(l,r),f.collapseChildren=l.collapseChildren),this.$clipRangeToDocument(f.range);var m=f.start.row,v=f.start.column,b=f.end.row,x=f.end.column,C=this.getFoldAt(m,v,1),S=this.getFoldAt(b,x,-1);if(C&&S==C)return C.addSubFold(f);C&&!C.range.isStart(m,v)&&this.removeFold(C),S&&!S.range.isEnd(b,x)&&this.removeFold(S);var $=this.getFoldsInRange(f.range);$.length>0&&(this.removeFolds($),f.collapseChildren||$.forEach(function(M){f.addSubFold(M)}));for(var L=0;L0&&this.foldAll(r.start.row+1,r.end.row,r.collapseChildren-1),r.subFolds=[]},this.expandFolds=function(r){r.forEach(function(l){this.expandFold(l)},this)},this.unfold=function(r,l){var c,a;if(r==null)c=new u(0,0,this.getLength(),0),l==null&&(l=!0);else if(typeof r=="number")c=new u(r,0,r,this.getLine(r).length);else if("row"in r)c=u.fromPoints(r,r);else{if(Array.isArray(r))return a=[],r.forEach(function(m){a=a.concat(this.unfold(m))},this),a;c=r}a=this.getFoldsInRangeList(c);for(var f=a;a.length==1&&u.comparePoints(a[0].start,c.start)<0&&u.comparePoints(a[0].end,c.end)>0;)this.expandFolds(a),a=this.getFoldsInRangeList(c);if(l!=!1?this.removeFolds(a):this.expandFolds(a),f.length)return f},this.isRowFolded=function(r,l){return!!this.getFoldLine(r,l)},this.getRowFoldEnd=function(r,l){var c=this.getFoldLine(r,l);return c?c.end.row:r},this.getRowFoldStart=function(r,l){var c=this.getFoldLine(r,l);return c?c.start.row:r},this.getFoldDisplayLine=function(r,l,c,a,f){a==null&&(a=r.start.row),f==null&&(f=0),l==null&&(l=r.end.row),c==null&&(c=this.getLine(l).length);var m=this.doc,v="";return r.walk(function(b,x,C,S){if(!(xx)break;while(f&&v.test(f.type)&&!/^comment.start/.test(f.type));f=a.stepBackward()}else f=a.getCurrentToken();return b.end.row=a.getCurrentTokenRow(),b.end.column=a.getCurrentTokenColumn(),/^comment.end/.test(f.type)||(b.end.column+=f.value.length-2),b}},this.foldAll=function(r,l,c,a){c==null&&(c=1e5);var f=this.foldWidgets;if(f){l=l||this.getLength(),r=r||0;for(var m=r;m=r&&(m=v.end.row,v.collapseChildren=c,this.addFold("...",v))}}},this.foldToLevel=function(r){for(this.foldAll();r-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var r=this;this.foldAll(null,null,null,function(l){for(var c=r.getTokens(l),a=0;a=0;){var m=c[a];if(m==null&&(m=c[a]=this.getFoldWidget(a)),m=="start"){var v=this.getFoldWidgetRange(a);if(f||(f=v),v&&v.end.row>=r)break}a--}return{range:a!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(r,l){l instanceof h&&(l=l.domEvent);var c={children:l.shiftKey,all:l.ctrlKey||l.metaKey,siblings:l.altKey},a=this.$toggleFoldWidget(r,c);if(!a){var f=l.target||l.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,l){if(this.getFoldWidget){var c=this.getFoldWidget(r),a=this.getLine(r),f=c==="end"?-1:1,m=this.getFoldAt(r,f===-1?0:a.length,f);if(m)return l.children||l.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(r,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(l.siblings){var b=this.getParentFoldRangeData(r);if(b.range)var x=b.range.start.row+1,C=b.range.end.row;this.foldAll(x,C,l.all?1e4:0)}else l.children?(C=v?v.end.row:this.getLength(),this.foldAll(r+1,C,l.all?1e4:0)):v&&(l.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(r){var l=this.selection.getCursor().row;l=this.getRowFoldStart(l);var c=this.$toggleFoldWidget(l,{});if(!c){var a=this.getParentFoldRangeData(l,!0);if(c=a.range||a.firstRange,c){l=c.start.row;var f=this.getFoldAt(l,this.getLine(l).length,1);f?this.removeFold(f):this.addFold("...",c)}}},this.updateFoldWidgets=function(r){var l=r.start.row,c=r.end.row-l;if(c===0)this.foldWidgets[l]=null;else if(r.action=="remove")this.foldWidgets.splice(l,c+1,null);else{var a=Array(c+1);a.unshift(l,1),this.foldWidgets.splice.apply(this.foldWidgets,a)}},this.tokenizerUpdateFoldWidgets=function(r){var l=r.data;l.first!=l.last&&this.foldWidgets.length>l.first&&this.foldWidgets.splice(l.first,this.foldWidgets.length)}}i.Folding=o}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,i,p){var u=n("../token_iterator").TokenIterator,d=n("../range").Range;function g(){this.findMatchingBracket=function(s,h){if(s.column==0)return null;var o=h||this.getLine(s.row).charAt(s.column-1);if(o=="")return null;var r=o.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],s):this.$findOpeningBracket(r[2],s):null},this.getBracketRange=function(s){var h=this.getLine(s.row),o=!0,r,l=h.charAt(s.column-1),c=l&&l.match(/([\(\[\{])|([\)\]\}])/);if(c||(l=h.charAt(s.column),s={row:s.row,column:s.column+1},c=l&&l.match(/([\(\[\{])|([\)\]\}])/),o=!1),!c)return null;if(c[1]){var a=this.$findClosingBracket(c[1],s);if(!a)return null;r=d.fromPoints(s,a),o||(r.end.column++,r.start.column--),r.cursor=r.end}else{var a=this.$findOpeningBracket(c[2],s);if(!a)return null;r=d.fromPoints(a,s),o||(r.start.column++,r.end.column--),r.cursor=r.start}return r},this.getMatchingBracketRanges=function(s,h){var o=this.getLine(s.row),r=/([\(\[\{])|([\)\]\}])/,l=!h&&o.charAt(s.column-1),c=l&&l.match(r);if(c||(l=(h===void 0||h)&&o.charAt(s.column),s={row:s.row,column:s.column+1},c=l&&l.match(r)),!c)return null;var a=new d(s.row,s.column-1,s.row,s.column),f=c[1]?this.$findClosingBracket(c[1],s):this.$findOpeningBracket(c[2],s);if(!f)return[a];var m=new d(f.row,f.column,f.row,f.column+1);return[a,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,h,o){var r=this.$brackets[s],l=1,c=new u(this,h.row,h.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=h.column-c.getCurrentTokenColumn()-2,m=a.value;;){for(;f>=0;){var v=m.charAt(f);if(v==r){if(l-=1,l==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else v==s&&(l+=1);f-=1}do a=c.stepBackward();while(a&&!o.test(a.type));if(a==null)break;m=a.value,f=m.length-1}return null}},this.$findClosingBracket=function(s,h,o){var r=this.$brackets[s],l=1,c=new u(this,h.row,h.column),a=c.getCurrentToken();if(a||(a=c.stepForward()),!!a){o||(o=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=h.column-c.getCurrentTokenColumn();;){for(var m=a.value,v=m.length;f"?r=!0:h.type.indexOf("tag-name")!==-1&&(o=!0));while(h&&!o);return h},this.$findClosingTag=function(s,h){var o,r=h.value,l=h.value,c=0,a=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);h=s.stepForward();var f=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length),m=!1;do if(o=h,h=s.stepForward(),h){if(h.value===">"&&!m){var v=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=!0}if(h.type.indexOf("tag-name")!==-1){if(r=h.value,l===r){if(o.value==="<")c++;else if(o.value==="")var C=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(l===r&&h.value==="/>"&&(c--,c<0))var b=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),x=b,C=x,v=new d(f.end.row,f.end.column,f.end.row,f.end.column+1)}while(h&&c>=0);if(a&&v&&b&&C&&f&&x)return{openTag:new d(a.start.row,a.start.column,v.end.row,v.end.column),closeTag:new d(b.start.row,b.start.column,C.end.row,C.end.column),openTagName:f,closeTagName:x}},this.$findOpeningTag=function(s,h){var o=s.getCurrentToken(),r=h.value,l=0,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),f=a+2,m=new d(c,a,c,f);s.stepForward();var v=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+h.value.length);if(h=s.stepForward(),!(!h||h.value!==">")){var b=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(h=o,c=s.getCurrentTokenRow(),a=s.getCurrentTokenColumn(),f=a+h.value.length,o=s.stepBackward(),h){if(h.type.indexOf("tag-name")!==-1){if(r===h.value)if(o.value==="<"){if(l++,l>0){var x=new d(c,a,c,f),C=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do h=s.stepForward();while(h&&h.value!==">");var S=new d(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else o.value===""){for(var $=0,L=o;L;){if(L.type.indexOf("tag-name")!==-1&&L.value===r){l--;break}else if(L.value==="<")break;L=s.stepBackward(),$++}for(var R=0;R<$;R++)s.stepForward()}}while(o&&l<=0);if(C&&S&&m&&b&&x&&v)return{openTag:new d(C.start.row,C.start.column,S.end.row,S.end.column),closeTag:new d(m.start.row,m.start.column,b.end.row,b.end.column),openTagName:x,closeTagName:v}}}}i.BracketMatch=g}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(n,i,p){var u=n("./lib/oop"),d=n("./lib/lang"),g=n("./bidihandler").BidiHandler,s=n("./config"),h=n("./lib/event_emitter").EventEmitter,o=n("./selection").Selection,r=n("./mode/text").Mode,l=n("./range").Range,c=n("./document").Document,a=n("./background_tokenizer").BackgroundTokenizer,f=n("./search_highlight").SearchHighlight,m=n("./undomanager").UndoManager,v=function(){function y(A,_){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++y.$uid,this.$foldData.toString=function(){return this.join(` `)},this.bgTokenizer=new a(new r().getTokenizer(),this);var w=this;this.bgTokenizer.on("update",function(E){w._signal("tokenizerUpdate",E)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof A!="object"||!A.getLine)&&(A=new c(A)),this.setDocument(A),this.selection=new o(this),this.$bidiHandler=new g(this),s.resetOptions(this),this.setMode(_),s._signal("session",this),this.destroyed=!1}return y.prototype.setDocument=function(A){this.doc&&this.doc.off("change",this.$onChange),this.doc=A,A.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},y.prototype.getDocument=function(){return this.doc},y.prototype.$resetRowCache=function(A){if(!A){this.$docRowCache=[],this.$screenRowCache=[];return}var _=this.$docRowCache.length,w=this.$getRowCacheIndex(this.$docRowCache,A)+1;_>w&&(this.$docRowCache.splice(w,_),this.$screenRowCache.splice(w,_))},y.prototype.$getRowCacheIndex=function(A,_){for(var w=0,E=A.length-1;w<=E;){var T=w+E>>1,O=A[T];if(_>O)w=T+1;else if(_=_));O++);return E=w[O],E?(E.index=O,E.start=T-E.value.length,E):null},y.prototype.setUndoManager=function(A){if(this.$undoManager=A,this.$informUndoManager&&this.$informUndoManager.cancel(),A){var _=this;A.addSession(this),this.$syncInformUndoManager=function(){_.$informUndoManager.cancel(),_.mergeUndoDeltas=!1},this.$informUndoManager=d.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},y.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},y.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},y.prototype.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},y.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},y.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},y.prototype.setTabSize=function(A){this.setOption("tabSize",A)},y.prototype.getTabSize=function(){return this.$tabSize},y.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},y.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},y.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},y.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},y.prototype.getOverwrite=function(){return this.$overwrite},y.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},y.prototype.addGutterDecoration=function(A,_){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+_,this._signal("changeBreakpoint",{})},y.prototype.removeGutterDecoration=function(A,_){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+_,""),this._signal("changeBreakpoint",{})},y.prototype.getBreakpoints=function(){return this.$breakpoints},y.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var _=0;_0&&(E=!!w.charAt(_-1).match(this.tokenRe)),E||(E=!!w.charAt(_).match(this.tokenRe)),E)var T=this.tokenRe;else if(/^\s+$/.test(w.slice(_-1,_+1)))var T=/\s/;else var T=this.nonTokenRe;var O=_;if(O>0){do O--;while(O>=0&&w.charAt(O).match(T));O++}for(var I=_;IA&&(A=_.screenWidth)}),this.lineWidgetWidth=A},y.prototype.$computeWidth=function(A){if(this.$modified||A){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var _=this.doc.getAllLines(),w=this.$rowLengthCache,E=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,F=_.length,D=0;DI){if(D=O.end.row+1,D>=F)break;O=this.$foldData[T++],I=O?O.start.row:1/0}w[D]==null&&(w[D]=this.$getStringScreenWidth(_[D])[0]),w[D]>E&&(E=w[D])}this.screenWidth=E}},y.prototype.getLine=function(A){return this.doc.getLine(A)},y.prototype.getLines=function(A,_){return this.doc.getLines(A,_)},y.prototype.getLength=function(){return this.doc.getLength()},y.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},y.prototype.insert=function(A,_){return this.doc.insert(A,_)},y.prototype.remove=function(A){return this.doc.remove(A)},y.prototype.removeFullLines=function(A,_){return this.doc.removeFullLines(A,_)},y.prototype.undoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=A.length-1;w!=-1;w--){var E=A[w];E.action=="insert"||E.action=="remove"?this.doc.revertDelta(E):E.folds&&this.addFolds(E.folds)}!_&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},y.prototype.redoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var w=0;wA.end.column&&(O.start.column+=F),O.end.row==A.end.row&&O.end.column>A.end.column&&(O.end.column+=F)),I&&O.start.row>=A.end.row&&(O.start.row+=I,O.end.row+=I)}if(O.end=this.insert(O.start,E),T.length){var D=A.start,W=O.start,I=W.row-D.row,F=W.column-D.column;this.addFolds(T.map(function(U){return U=U.clone(),U.start.row==D.row&&(U.start.column+=F),U.end.row==D.row&&(U.end.column+=F),U.start.row+=I,U.end.row+=I,U}))}return O},y.prototype.indentRows=function(A,_,w){w=w.replace(/\t/g,this.getTabString());for(var E=A;E<=_;E++)this.doc.insertInLine({row:E,column:0},w)},y.prototype.outdentRows=function(A){for(var _=A.collapseRows(),w=new l(0,0,0,0),E=this.getTabSize(),T=_.start.row;T<=_.end.row;++T){var O=this.getLine(T);w.start.row=T,w.end.row=T;for(var I=0;I0){var E=this.getRowFoldEnd(_+w);if(E>this.doc.getLength()-1)return 0;var T=E-_}else{A=this.$clipRowToDocument(A),_=this.$clipRowToDocument(_);var T=_-A+1}var O=new l(A,0,_,Number.MAX_VALUE),I=this.getFoldsInRange(O).map(function(D){return D=D.clone(),D.start.row+=T,D.end.row+=T,D}),F=w==0?this.doc.getLines(A,_):this.doc.removeFullLines(A,_);return this.doc.insertFullLines(A+T,F),I.length&&this.addFolds(I),T},y.prototype.moveLinesUp=function(A,_){return this.$moveLines(A,_,-1)},y.prototype.moveLinesDown=function(A,_){return this.$moveLines(A,_,1)},y.prototype.duplicateLines=function(A,_){return this.$moveLines(A,_,0)},y.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},y.prototype.$clipColumnToRow=function(A,_){return _<0?0:Math.min(this.doc.getLine(A).length,_)},y.prototype.$clipPositionToDocument=function(A,_){if(_=Math.max(0,_),A<0)A=0,_=0;else{var w=this.doc.getLength();A>=w?(A=w-1,_=this.doc.getLine(w-1).length):_=Math.min(this.doc.getLine(A).length,_)}return{row:A,column:_}},y.prototype.$clipRangeToDocument=function(A){A.start.row<0?(A.start.row=0,A.start.column=0):A.start.column=this.$clipColumnToRow(A.start.row,A.start.column);var _=this.doc.getLength()-1;return A.end.row>_?(A.end.row=_,A.end.column=this.doc.getLine(_).length):A.end.column=this.$clipColumnToRow(A.end.row,A.end.column),A},y.prototype.setUseWrapMode=function(A){if(A!=this.$useWrapMode){if(this.$useWrapMode=A,this.$modified=!0,this.$resetRowCache(0),A){var _=this.getLength();this.$wrapData=Array(_),this.$updateWrapData(0,_-1)}this._signal("changeWrapMode")}},y.prototype.getUseWrapMode=function(){return this.$useWrapMode},y.prototype.setWrapLimitRange=function(A,_){(this.$wrapLimitRange.min!==A||this.$wrapLimitRange.max!==_)&&(this.$wrapLimitRange={min:A,max:_},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},y.prototype.adjustWrapLimit=function(A,_){var w=this.$wrapLimitRange;w.max<0&&(w={min:_,max:_});var E=this.$constrainWrapLimit(A,w.min,w.max);return E!=this.$wrapLimit&&E>1?(this.$wrapLimit=E,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},y.prototype.$constrainWrapLimit=function(A,_,w){return _&&(A=Math.max(_,A)),w&&(A=Math.min(w,A)),A},y.prototype.getWrapLimit=function(){return this.$wrapLimit},y.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},y.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},y.prototype.$updateInternalDataOnChange=function(A){var _=this.$useWrapMode,w=A.action,E=A.start,T=A.end,O=E.row,I=T.row,F=I-O,D=null;if(this.$updating=!0,F!=0)if(w==="remove"){this[_?"$wrapData":"$rowLengthCache"].splice(O,F);var W=this.$foldData;D=this.getFoldsInRange(A),this.removeFolds(D);var j=this.getFoldLine(T.row),H=0;if(j){j.addRemoveChars(T.row,T.column,E.column-T.column),j.shiftRow(-F);var U=this.getFoldLine(O);U&&U!==j&&(U.merge(j),j=U),H=W.indexOf(j)+1}for(H;H=T.row&&j.shiftRow(-F)}I=O}else{var K=Array(F);K.unshift(O,0);var Z=_?this.$wrapData:this.$rowLengthCache;Z.splice.apply(Z,K);var W=this.$foldData,j=this.getFoldLine(O),H=0;if(j){var z=j.range.compareInside(E.row,E.column);z==0?(j=j.split(E.row,E.column),j&&(j.shiftRow(F),j.addRemoveChars(I,0,T.column-E.column))):z==-1&&(j.addRemoveChars(O,0,T.column-E.column),j.shiftRow(F)),H=W.indexOf(j)+1}for(H;H=O&&j.shiftRow(F)}}else{F=Math.abs(A.start.column-A.end.column),w==="remove"&&(D=this.getFoldsInRange(A),this.removeFolds(D),F=-F);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,E.column,F)}return _&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,_?this.$updateWrapData(O,I):this.$updateRowLengthCache(O,I),D},y.prototype.$updateRowLengthCache=function(A,_,w){this.$rowLengthCache[A]=null,this.$rowLengthCache[_]=null},y.prototype.$updateWrapData=function(A,_){var w=this.doc.getAllLines(),E=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,F,D=A;for(_=Math.min(_,w.length-1);D<=_;)F=this.getFoldLine(D,F),F?(I=[],F.walk((function(W,j,H,U){var K;if(W!=null){K=this.$getDisplayTokens(W,I.length),K[0]=C;for(var Z=1;Z_-U;){var K=O+_-U;if(A[K-1]>=L&&A[K]>=L){H(K);continue}if(A[K]==C||A[K]==S){for(K;K!=O-1&&A[K]!=C;K--);if(K>O){H(K);continue}for(K=O+_,K;K>2)),O-1);K>Z&&A[K]Z&&A[K]Z&&A[K]==$;)K--}else for(;K>Z&&A[K]Z){H(++K);continue}K=O+_,A[K]==x&&K--,H(K-U)}return E},y.prototype.$getDisplayTokens=function(A,_){var w=[],E;_=_||0;for(var T=0;T39&&O<48||O>57&&O<64?w.push($):O>=4352&&M(O)?w.push(b,x):w.push(b)}return w},y.prototype.$getStringScreenWidth=function(A,_,w){if(_==0)return[0,0];_==null&&(_=1/0),w=w||0;var E,T;for(T=0;T=4352&&M(E)?w+=2:w+=1,!(w>_));T++);return[w,T]},y.prototype.getRowLength=function(A){var _=1;return this.lineWidgets&&(_+=this.lineWidgets[A]&&this.lineWidgets[A].rowCount||0),!this.$useWrapMode||!this.$wrapData[A]?_:this.$wrapData[A].length+_},y.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},y.prototype.getRowWrapIndent=function(A){if(this.$useWrapMode){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE),w=this.$wrapData[_.row];return w.length&&w[0]<_.column?w.indent:0}else return 0},y.prototype.getScreenLastRowColumn=function(A){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn(_.row,_.column)},y.prototype.getDocumentLastRowColumn=function(A,_){var w=this.documentToScreenRow(A,_);return this.getScreenLastRowColumn(w)},y.prototype.getDocumentLastRowColumnPosition=function(A,_){var w=this.documentToScreenRow(A,_);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},y.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},y.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},y.prototype.screenToDocumentRow=function(A,_){return this.screenToDocumentPosition(A,_).row},y.prototype.screenToDocumentColumn=function(A,_){return this.screenToDocumentPosition(A,_).column},y.prototype.screenToDocumentPosition=function(A,_,w){if(A<0)return{row:0,column:0};var E,T=0,O=0,I,F=0,D=0,W=this.$screenRowCache,j=this.$getRowCacheIndex(W,A),H=W.length;if(H&&j>=0)var F=W[j],T=this.$docRowCache[j],U=A>W[H-1];else var U=!H;for(var K=this.getLength()-1,Z=this.getNextFoldLine(T),z=Z?Z.start.row:1/0;F<=A&&(D=this.getRowLength(T),!(F+D>A||T>=K));)F+=D,T++,T>z&&(T=Z.end.row+1,Z=this.getNextFoldLine(T,Z),z=Z?Z.start.row:1/0),U&&(this.$docRowCache.push(T),this.$screenRowCache.push(F));if(Z&&Z.start.row<=T)E=this.getFoldDisplayLine(Z),T=Z.start.row;else{if(F+D<=A||T>K)return{row:K,column:this.getLine(K).length};E=this.getLine(T),Z=null}var X=0,Y=Math.floor(A-F);if(this.$useWrapMode){var V=this.$wrapData[T];V&&(I=V[Y],Y>0&&V.length&&(X=V.indent,O=V[Y-1]||V[V.length-1],E=E.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(F+Y,T,Y)&&(_=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(E,_-X)[1],this.$useWrapMode&&O>=I&&(O=I-1),Z?Z.idxToPosition(O):{row:T,column:O}},y.prototype.documentToScreenPosition=function(A,_){if(typeof _>"u")var w=this.$clipPositionToDocument(A.row,A.column);else w=this.$clipPositionToDocument(A,_);A=w.row,_=w.column;var E=0,T=null,O=null;O=this.getFoldAt(A,_,1),O&&(A=O.start.row,_=O.start.column);var I,F=0,D=this.$docRowCache,W=this.$getRowCacheIndex(D,A),j=D.length;if(j&&W>=0)var F=D[W],E=this.$screenRowCache[W],H=A>D[j-1];else var H=!j;for(var U=this.getNextFoldLine(F),K=U?U.start.row:1/0;F=K){if(I=U.end.row+1,I>A)break;U=this.getNextFoldLine(I,U),K=U?U.start.row:1/0}else I=F+1;E+=this.getRowLength(F),F=I,H&&(this.$docRowCache.push(F),this.$screenRowCache.push(E))}var Z="";U&&F>=K?(Z=this.getFoldDisplayLine(U,A,_),T=U.start.row):(Z=this.getLine(A).substring(0,_),T=A);var z=0;if(this.$useWrapMode){var X=this.$wrapData[T];if(X){for(var Y=0;Z.length>=X[Y];)E++,Y++;Z=Z.substring(X[Y-1]||0,Z.length),z=Y>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[F]&&this.lineWidgets[F].rowsAbove&&(E+=this.lineWidgets[F].rowsAbove),{row:E,column:z+this.$getStringScreenWidth(Z)[0]}},y.prototype.documentToScreenColumn=function(A,_){return this.documentToScreenPosition(A,_).column},y.prototype.documentToScreenRow=function(A,_){return this.documentToScreenPosition(A,_).row},y.prototype.getScreenLength=function(){var A=0,_=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,E=0,_=this.$foldData[E++],I=_?_.start.row:1/0;OI&&(O=_.end.row+1,_=this.$foldData[E++],I=_?_.start.row:1/0)}else{A=this.getLength();for(var w=this.$foldData,E=0;Ew));O++);return[E,O]})},y.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},y}();v.$uid=0,v.prototype.$modes=s.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=M,u.implement(v.prototype,h);var b=1,x=2,C=3,S=4,$=9,L=10,R=11,k=12;function M(y){return y<4352?!1:y>=4352&&y<=4447||y>=4515&&y<=4519||y>=4602&&y<=4607||y>=9001&&y<=9002||y>=11904&&y<=11929||y>=11931&&y<=12019||y>=12032&&y<=12245||y>=12272&&y<=12283||y>=12288&&y<=12350||y>=12353&&y<=12438||y>=12441&&y<=12543||y>=12549&&y<=12589||y>=12593&&y<=12686||y>=12688&&y<=12730||y>=12736&&y<=12771||y>=12784&&y<=12830||y>=12832&&y<=12871||y>=12880&&y<=13054||y>=13056&&y<=19903||y>=19968&&y<=42124||y>=42128&&y<=42182||y>=43360&&y<=43388||y>=44032&&y<=55203||y>=55216&&y<=55238||y>=55243&&y<=55291||y>=63744&&y<=64255||y>=65040&&y<=65049||y>=65072&&y<=65106||y>=65108&&y<=65126||y>=65128&&y<=65131||y>=65281&&y<=65376||y>=65504&&y<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),s.defineOptions(v.prototype,"session",{wrap:{set:function(y){if(!y||y=="off"?y=!1:y=="free"?y=!0:y=="printMargin"?y=-1:typeof y=="string"&&(y=parseInt(y,10)||!1),this.$wrap!=y)if(this.$wrap=y,!y)this.setUseWrapMode(!1);else{var A=typeof y=="number"?y:null;this.setWrapLimitRange(A,A),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(y){y=y=="auto"?this.$mode.type!="text":y!="text",y!=this.$wrapAsCode&&(this.$wrapAsCode=y,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(y){this.$useWorker=y,this.$stopWorker(),y&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(y){y=parseInt(y),y>0&&this.$tabSize!==y&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=y,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(y){this.setFoldStyle(y)},handlesSet:!0},overwrite:{set:function(y){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(y){this.doc.setNewLineMode(y)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(y){this.setMode(y)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,i,p){var u=n("./lib/lang"),d=n("./lib/oop"),g=n("./range").Range,s=function(){function o(){this.$options={}}return o.prototype.set=function(r){return d.mixin(this.$options,r),this},o.prototype.getOptions=function(){return u.copyObject(this.$options)},o.prototype.setOptions=function(r){this.$options=r},o.prototype.find=function(r){var l=this.$options,c=this.$matchIterator(r,l);if(!c)return!1;var a=null;return c.forEach(function(f,m,v,b){return a=new g(f,m,v,b),m==b&&l.start&&l.start.start&&l.skipCurrent!=!1&&a.isEqual(l.start)?(a=null,!1):!0}),a},o.prototype.findAll=function(r){var l=this.$options;if(!l.needle)return[];this.$assembleRegExp(l);var c=l.range,a=c?r.getLines(c.start.row,c.end.row):r.doc.getAllLines(),f=[],m=l.re;if(l.$isMultiLine){var v=m.length,b=a.length-v,x;e:for(var C=m.offset||0;C<=b;C++){for(var S=0;SR||(f.push(x=new g(C,R,C+v-1,k)),v>2&&(C=C+v-2))}}else for(var M=0;Mw&&f[S].end.row==E;)S--;for(f=f.slice(M,S+1),M=0,S=f.length;M=b;R--)if($(R,Number.MAX_VALUE,L))return;if(l.wrap!=!1){for(R=x,b=v.row;R>=b;R--)if($(R,Number.MAX_VALUE,L))return}}};else var C=function(R){var k=v.row;if(!$(k,v.column,R)){for(k=k+1;k<=x;k++)if($(k,0,R))return;if(l.wrap!=!1){for(k=b,x=v.row;k<=x;k++)if($(k,0,R))return}}};if(l.$isMultiLine)var S=c.length,$=function(L,R,k){var M=a?L-S+1:L;if(!(M<0||M+S>r.getLength())){var y=r.getLine(M),A=y.search(c[0]);if(!(!a&&AR)&&k(M,A,M+S-1,w))return!0}}};else if(a)var $=function(R,k,M){var y=r.getLine(R),A=[],_,w=0;for(c.lastIndex=0;_=c.exec(y);){var E=_[0].length;if(w=_.index,!E){if(w>=y.length)break;c.lastIndex=w+=1}if(_.index+E>k)break;A.push(_.index,E)}for(var T=A.length-1;T>=0;T-=2){var O=A[T-1],E=A[T];if(M(R,O,R,O+E))return!0}};else var $=function(R,k,M){var y=r.getLine(R),A,_;for(c.lastIndex=k;_=c.exec(y);){var w=_[0].length;if(A=_.index,M(R,A,R,A+w))return!0;if(!w&&(c.lastIndex=A+=1,A>=y.length))return!1}};return{forEach:C}},o}();function h(o,r){var l=u.supportsLookbehind();function c(v,b){b===void 0&&(b=!0);var x=l&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return x.test(v)||r.regExp?l&&r.$supportsUnicodeFlag?b?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var a=Array.from(o),f=a[0],m=a[a.length-1];return c(f)+o+c(m,!1)}i.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,p){var u=this&&this.__extends||function(){var l=function(c,a){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},l(c,a)};return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");l(c,a);function f(){this.constructor=c}c.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),d=n("../lib/keys"),g=n("../lib/useragent"),s=d.KEY_MODS,h=function(){function l(c,a){this.$init(c,a,!1)}return l.prototype.$init=function(c,a,f){this.platform=a||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=f},l.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},l.prototype.removeCommand=function(c,a){var f=c&&(typeof c=="string"?c:c.name);c=this.commands[f],a||delete this.commands[f];var m=this.commandKeyBinding;for(var v in m){var b=m[v];if(b==c)delete m[v];else if(Array.isArray(b)){var x=b.indexOf(c);x!=-1&&(b.splice(x,1),b.length==1&&(m[v]=b[0]))}}},l.prototype.bindKey=function(c,a,f){if(typeof c=="object"&&c&&(f==null&&(f=c.position),c=c[this.platform]),!!c){if(typeof a=="function")return this.addCommand({exec:a,bindKey:c,name:a.name||c});c.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var b=m.split(/\s+/);m=b.pop(),b.forEach(function(S){var $=this.parseKeys(S),L=s[$.hashId]+$.key;v+=(v?" ":"")+L,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var x=this.parseKeys(m),C=s[x.hashId]+x.key;this._addCommandToBinding(v+C,a,f)},this)}},l.prototype._addCommandToBinding=function(c,a,f){var m=this.commandKeyBinding,v;if(!a)delete m[c];else if(!m[c]||this.$singleCommand)m[c]=a;else{Array.isArray(m[c])?(v=m[c].indexOf(a))!=-1&&m[c].splice(v,1):m[c]=[m[c]],typeof f!="number"&&(f=o(a));var b=m[c];for(v=0;vf)break}b.splice(v,0,a)}},l.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(a){var f=c[a];if(f){if(typeof f=="string")return this.bindKey(f,a);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=a),this.addCommand(f))}},this)},l.prototype.removeCommands=function(c){Object.keys(c).forEach(function(a){this.removeCommand(c[a])},this)},l.prototype.bindKeys=function(c){Object.keys(c).forEach(function(a){this.bindKey(a,c[a])},this)},l.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},l.prototype.parseKeys=function(c){var a=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),f=a.pop(),m=d[f];if(d.FUNCTION_KEYS[m])f=d.FUNCTION_KEYS[m].toLowerCase();else if(a.length){if(a.length==1&&a[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,b=a.length;b--;){var x=d.KEY_MODS[a[b]];if(x==null)return typeof console<"u"&&console.error("invalid modifier "+a[b]+" in "+c),!1;v|=x}return{key:f,hashId:v}},l.prototype.findKeyCommand=function(c,a){var f=s[c]+a;return this.commandKeyBinding[f]},l.prototype.handleKeyboard=function(c,a,f,m){if(!(m<0)){var v=s[a]+f,b=this.commandKeyBinding[v];return c.$keyChain&&(c.$keyChain+=" "+v,b=this.commandKeyBinding[c.$keyChain]||b),b&&(b=="chainKeys"||b[b.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||v,{command:"null"}):(c.$keyChain&&((!a||a==4)&&f.length==1?c.$keyChain=c.$keyChain.slice(0,-v.length-1):(a==-1||m>0)&&(c.$keyChain="")),{command:b})}},l.prototype.getStatusText=function(c,a){return a.$keyChain||""},l}();function o(l){return typeof l=="object"&&l.bindKey&&l.bindKey.position||(l.isDefault?-100:0)}var r=function(l){u(c,l);function c(a,f){var m=l.call(this,a,f)||this;return m.$singleCommand=!0,m}return c}(h);r.call=function(l,c,a){h.prototype.$init.call(l,c,a,!0)},h.call=function(l,c,a){h.prototype.$init.call(l,c,a,!1)},i.HashHandler=r,i.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var o=function(r,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(c[f]=a[f])},o(r,l)};return function(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");o(r,l);function c(){this.constructor=r}r.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),d=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,s=n("../lib/event_emitter").EventEmitter,h=function(o){u(r,o);function r(l,c){var a=o.call(this,c,l)||this;return a.byName=a.commands,a.setDefaultHandler("exec",function(f){return f.args?f.command.exec(f.editor,f.args,f.event,!1):f.command.exec(f.editor,{},f.event,!0)}),a}return r.prototype.exec=function(l,c,a){if(Array.isArray(l)){for(var f=l.length;f--;)if(this.exec(l[f],c,a))return!0;return!1}if(typeof l=="string"&&(l=this.commands[l]),!l||c&&c.$readOnly&&!l.readOnly||this.$checkCommandState!=!1&&l.isAvailable&&!l.isAvailable(c))return!1;var m={editor:c,command:l,args:a};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},r.prototype.toggleRecording=function(l){if(!this.$inReplay)return l&&l._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},r.prototype.replay=function(l){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(l);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,l):this.exec(c[0],l,c[1])},this)}finally{this.$inReplay=!1}}},r.prototype.trimMacro=function(l){return l.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},r}(g);d.implement(h.prototype,s),i.CommandManager=h}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,i,p){var u=n("../lib/lang"),d=n("../config"),g=n("../range").Range;function s(o,r){return{win:o,mac:r}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(o){d.loadModule("ace/ext/settings_menu",function(r){r.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(o){d.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(o){d.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(o){o.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(o){o.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(o,r){typeof r=="number"&&!isNaN(r)&&o.gotoLine(r),o.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(o){o.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(o){o.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(o){o.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(o){o.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(o){o.session.foldAll(),o.session.unfold(o.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(o){o.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(o){o.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(o){o.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(o){d.loadModule("ace/ext/searchbox",function(r){r.Search(o)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(o){o.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(o){o.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(o){o.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(o){o.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(o,r){o.navigateUp(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(o){o.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(o){o.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(o){o.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(o,r){o.navigateDown(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(o){o.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(o){o.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(o){o.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(o){o.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(o,r){o.navigateLeft(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(o){o.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(o){o.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(o){o.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(o){o.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(o,r){o.navigateRight(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(o){o.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(o){o.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(o){o.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(o){o.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(o){o.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(o){o.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(o){o.renderer.scrollBy(0,-2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(o){o.renderer.scrollBy(0,2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(o){o.commands.toggleRecording(o)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(o){o.commands.replay(o)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(o){o.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(o){o.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(o){o.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(o){},readOnly:!0},{name:"cut",description:"Cut",exec:function(o){var r=o.$copyWithEmptySelection&&o.selection.isEmpty(),l=r?o.selection.getLineRange():o.selection.getRange();o._emit("cut",l),l.isEmpty()||o.session.remove(l),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,r){o.$handlePaste(r)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(o){o.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(o){o.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(o){o.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(o){o.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(o){o.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(o){o.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(o){o.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(o){d.loadModule("ace/ext/searchbox",function(r){r.Search(o,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(o){o.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(o){o.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(o){o.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(o){o.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(o){o.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(o){o.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(o){o.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(o){o.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(o){if(o.selection.isEmpty())o.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(o){o.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(o){o.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(o){var r=o.selection.getRange();r.start.column=0,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(o){var r=o.selection.getRange();r.end.column=Number.MAX_VALUE,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(o){o.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(o){o.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(o){o.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(o){o.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(o){o.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(o){o.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(o,r){o.insert(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,r){o.insert(u.stringRepeat(r.text||"",r.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(o){o.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(o){o.transposeLetters()},multiSelectAction:function(o){o.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(o){o.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(o){o.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(o){o.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var r=o.selection.getRange();r.start.column=r.end.column=0,r.end.row++,o.selection.setRange(r,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(o){o.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(o){for(var r=o.selection.isBackwards(),l=r?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),c=r?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),a=o.session.doc.getLine(l.row).length,f=o.session.doc.getTextRange(o.selection.getRange()),m=f.replace(/\n\s*/," ").length,v=o.session.doc.getLine(l.row),b=l.row+1;b<=c.row+1;b++){var x=u.stringTrimLeft(u.stringTrimRight(o.session.doc.getLine(b)));x.length!==0&&(x=" "+x),v+=x}c.row+10?(o.selection.moveCursorTo(l.row,l.column),o.selection.selectTo(l.row,l.column+m)):(a=o.session.doc.getLine(l.row).length>a?a+1:a,o.selection.moveCursorTo(l.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(o){var r=o.session.doc.getLength()-1,l=o.session.doc.getLine(r).length,c=o.selection.rangeList.ranges,a=[];c.length<1&&(c=[o.selection.getRange()]);for(var f=0;fh[o].column&&o++,c.unshift(o,0),h.splice.apply(h,c),this.$updateRows()}}},g.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var h=!0;s.forEach(function(o,r){if(o)for(h=!1,o.row=r;o.$oldWidget;)o.$oldWidget.row=r,o=o.$oldWidget}),h&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var h=this.session.lineWidgets[s.row];return h&&(s.$oldWidget=h,h.el&&h.el.parentNode&&(h.el.parentNode.removeChild(h.el),h._inDocument=!1)),this.session.lineWidgets[s.row]=s,s},g.prototype.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var h=this.editor.renderer;s.html&&!s.el&&(s.el=u.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=u.createElement("div"),s.el.textContent=s.text),s.el&&(u.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&u.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex=5,h.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex=3),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/h.layerConfig.lineHeight);var o=this.session.getFoldAt(s.row,0);if(s.$fold=o,o){var r=this.session.lineWidgets;s.row==o.end.row&&!r[o.start.row]?r[o.start.row]=s:s.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,h),this.onWidgetChanged(s),s},g.prototype.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var h=this.session.lineWidgets[s.row];if(h==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;h;){if(h.$oldWidget==s){h.$oldWidget=s.$oldWidget;break}h=h.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(s){for(var h=this.session.lineWidgets,o=h&&h[s],r=[];o;)r.push(o),o=o.$oldWidget;return r},g.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(s,h){var o=this.session._changedWidgets,r=h.layerConfig;if(!(!o||!o.length)){for(var l=1/0,c=0;c0&&!r[l];)l--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,h.$cursorLayer.config=o;for(var a=l;a<=c;a++){var f=r[a];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,h.container.appendChild(f.el));var m=h.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;f.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-o.offset+"px";var v=f.coverGutter?0:h.gutterWidth;f.fixedWidth||(v-=h.scrollLeft),f.el.style.left=v+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=o.width+2*o.padding+"px"),f.fixedWidth?f.el.style.right=h.scrollBar.getWidth()+"px":f.el.style.right=""}}}},g}();i.LineWidgets=d}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,i,p){var u=n("../lib/keys"),d=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function h(o){this.editor=o,this.gutterLayer=o.renderer.$gutterLayer,this.element=o.renderer.$gutter,this.lines=o.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new d(this.editor)}return h.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},h.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},h.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===u.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=u.enter)return;o.preventDefault();var r=this.editor.getCursorPosition().row;this.editor.isRowVisible(r)||this.editor.scrollToLine(r,!0,!0),setTimeout((function(){var l=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(l),a=this.$findNearestAnnotation(l);if(!(c===null&&a===null)){if(c===null&&a!==null){this.activeRowIndex=a,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&a===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(a-l)0||o+r=0&&this.$isFoldWidgetVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+r))return o+r}return null},h.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var r=0;o-r>0||o+r=0&&this.$isAnnotationVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+r))return o+r}return null},h.prototype.$focusFoldWidget=function(o){if(o!=null){var r=this.$getFoldWidget(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$focusAnnotation=function(o){if(o!=null){var r=this.$getAnnotation(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},h.prototype.$blurFoldWidget=function(o){var r=this.$getFoldWidget(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.prototype.$blurAnnotation=function(o){var r=this.$getAnnotation(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},h.prototype.$moveFoldWidgetUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},h.prototype.$moveFoldWidgetDown=function(){for(var o=this.activeRowIndex;o0;)if(o--,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},h.prototype.$moveAnnotationDown=function(){for(var o=this.activeRowIndex;o=_.length&&(_=void 0),{value:_&&_[T++],done:!_}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/lang"),h=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,r=n("./mouse/mouse_handler").MouseHandler,l=n("./mouse/fold_handler").FoldHandler,c=n("./keyboard/keybinding").KeyBinding,a=n("./edit_session").EditSession,f=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,b=n("./commands/command_manager").CommandManager,x=n("./commands/default_commands").commands,C=n("./config"),S=n("./token_iterator").TokenIterator,$=n("./line_widgets").LineWidgets,L=n("./keyboard/gutter_handler").GutterKeyboardHandler,R=n("./config").nls,k=n("./clipboard"),M=n("./lib/keys"),y=function(){function _(w,E,T){this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++_.$uid,this.commands=new b(h.isMac?"mac":"win",x),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new r(this),new l(this)),this.keyBinding=new c(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,F){F._$emitInputEvent.schedule(31)}),this.setSession(E||T&&T.session||new a("")),C.resetOptions(this),T&&this.setOptions(T),C._signal("editor",this)}return _.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},_.prototype.startOperation=function(w){if(this.curOp){if(!w||this.curOp.command)return;this.prevOp=this.curOp}w||(this.previousCommand=null,w={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:w.command||{},args:w.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},_.prototype.endOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1||!this.session)return this.curOp=null;if(w==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var E=this.curOp.command,T=E&&E.scrollIntoView;if(T){switch(T){case"center-animate":T="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),I=this.renderer.layerConfig;(O.start.row>=I.lastRow||O.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}T=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var F=this.selection.toJSON();this.curOp.selectionAfter=F,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(F),this.prevOp=this.curOp,this.curOp=null}},_.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var E=this.prevOp,T=this.$mergeableCommands,O=E.command&&w.command.name==E.command.name;if(w.command.name=="insertstring"){var I=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(I)||/\s/.test(E.args)),this.mergeNextCommand=!0}else O=O&&T.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:T.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},_.prototype.setKeyboardHandler=function(w,E){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var T=this;C.loadModule(["keybinding",w],function(O){T.$keybindingId==w&&T.keyBinding.setKeyboardHandler(O&&O.handler),E&&E()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),E&&E()},_.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},_.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var E=this.session;if(E){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var T=this.session.getSelection();T.off("changeCursor",this.$onCursorChange),T.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(w)),this._signal("changeSession",{session:w,oldSession:E}),this.curOp=null,E&&E._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},_.prototype.getSession=function(){return this.session},_.prototype.setValue=function(w,E){return this.session.doc.setValue(w),E?E==1?this.navigateFileEnd():E==-1&&this.navigateFileStart():this.selectAll(),w},_.prototype.getValue=function(){return this.session.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.resize=function(w){this.renderer.onResize(w)},_.prototype.setTheme=function(w,E){this.renderer.setTheme(w,E)},_.prototype.getTheme=function(){return this.renderer.getTheme()},_.prototype.setStyle=function(w){this.renderer.setStyle(w)},_.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},_.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},_.prototype.setFontSize=function(w){this.setOption("fontSize",w)},_.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var E=w.session;if(!(!E||E.destroyed)){E.$bracketHighlight&&(E.$bracketHighlight.markerIds.forEach(function(U){E.removeMarker(U)}),E.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),F=E.getMatchingBracketRanges(T,I);if(!F){var D=new S(E,T.row,T.column),W=D.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var j=E.getMatchingTags(T);j&&(F=[j.openTagName,j.closeTagName])}}if(!F&&E.$mode.getMatching&&(F=E.$mode.getMatching(w.session)),!F){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var H="ace_bracket";Array.isArray(F)?F.length==1&&(H="ace_error_bracket"):F=[F],F.length==2&&(m.comparePoints(F[0].end,F[1].start)==0?F=[m.fromPoints(F[0].start,F[1].end)]:m.comparePoints(F[0].start,F[1].end)==0&&(F=[m.fromPoints(F[1].start,F[0].end)])),E.$bracketHighlight={ranges:F,markerIds:F.map(function(U){return E.addMarker(U,H,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},_.prototype.focus=function(){this.textInput.focus()},_.prototype.isFocused=function(){return this.textInput.isFocused()},_.prototype.blur=function(){this.textInput.blur()},_.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},_.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},_.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},_.prototype.onDocumentChange=function(w){var E=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,E),this._signal("change",w),this.$cursorChange()},_.prototype.onTokenizerUpdate=function(w){var E=w.data;this.renderer.updateLines(E.first,E.last)},_.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},_.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},_.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},_.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),E;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(E=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(E=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(E=!1)),w.$highlightLineMarker&&!E)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&E){var T=new m(E.row,E.column,E.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else E&&(w.$highlightLineMarker.start.row=E.row,w.$highlightLineMarker.end.row=E.row,w.$highlightLineMarker.start.column=E.column,w._signal("changeBackMarker"))},_.prototype.onSelectionChange=function(w){var E=this.session;if(E.$selectionMarker&&E.removeMarker(E.$selectionMarker),E.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();E.$selectionMarker=E.addMarker(T,"ace_selection",O)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},_.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,E=this.getSelectionRange();if(!(E.isEmpty()||E.isMultiLine())){var T=E.start.column,O=E.end.column,I=w.getLine(E.start.row),F=I.substring(T,O);if(!(F.length>5e3||!/[\w\d]/.test(F))){var D=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:F}),W=I.substring(T-1,O+1);if(D.test(W))return D}}},_.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},_.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},_.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},_.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},_.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},_.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},_.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},_.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},_.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},_.prototype.getCopyText=function(){var w=this.getSelectedText(),E=this.session.doc.getNewLineCharacter(),T=!1;if(!w&&this.$copyWithEmptySelection){T=!0;for(var O=this.selection.getAllRanges(),I=0;IU.search(/\S|$/)){var W=U.substr(I.column).search(/\S|$/);T.doc.removeInLine(I.row,I.column,I.column+W)}}this.clearSelection();var j=I.column,H=T.getState(I.row),U=T.getLine(I.row),K=O.checkOutdent(H,U,w);if(T.insert(I,w),F&&F.selection&&(F.selection.length==2?this.selection.setSelectionRange(new m(I.row,j+F.selection[0],I.row,j+F.selection[1])):this.selection.setSelectionRange(new m(I.row+F.selection[0],F.selection[1],I.row+F.selection[2],F.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(w)){var Z=O.getNextLineIndent(H,U.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},Z)}K&&O.autoOutdent(H,T,I.row)}},_.prototype.autoIndent=function(){var w=this.session,E=w.getMode(),T,O;if(this.selection.isEmpty())T=0,O=w.doc.getLength()-1;else{var I=this.getSelectionRange();T=I.start.row,O=I.end.row}for(var F="",D="",W="",j,H,U,K=w.getTabString(),Z=T;Z<=O;Z++)Z>0&&(F=w.getState(Z-1),D=w.getLine(Z-1),W=E.getNextLineIndent(F,D,K)),j=w.getLine(Z),H=E.$getIndent(j),W!==H&&(H.length>0&&(U=new m(Z,0,Z,H.length),w.remove(U)),W.length>0&&w.insert({row:Z,column:0},W)),E.autoOutdent(F,w,Z)},_.prototype.onTextInput=function(w,E){if(!E)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,E);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},_.prototype.applyComposition=function(w,E){if(E.extendLeft||E.extendRight){var T=this.selection.getRange();T.start.column-=E.extendLeft,T.end.column+=E.extendRight,T.start.column<0&&(T.start.row--,T.start.column+=this.session.getLine(T.start.row).length+1),this.selection.setRange(T),!w&&!T.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),E.restoreStart||E.restoreEnd){var T=this.selection.getRange();T.start.column-=E.restoreStart,T.end.column-=E.restoreEnd,this.selection.setRange(T)}},_.prototype.onCommandKey=function(w,E,T){return this.keyBinding.onCommandKey(w,E,T)},_.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},_.prototype.getOverwrite=function(){return this.session.getOverwrite()},_.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},_.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},_.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},_.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},_.prototype.getDragDelay=function(){return this.getOption("dragDelay")},_.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},_.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},_.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},_.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},_.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},_.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},_.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},_.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},_.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},_.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},_.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},_.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},_.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},_.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},_.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},_.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},_.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},_.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},_.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},_.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},_.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},_.prototype.getReadOnly=function(){return this.getOption("readOnly")},_.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},_.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},_.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},_.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},_.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},_.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},_.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},_.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},_.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var E=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(E.start.row),I=T.getMode().transformAction(O,"deletion",this,T,E);if(E.end.column===0){var F=T.getTextRange(E);if(F[F.length-1]==` `){var D=T.getLine(E.end.row);/^\s+$/.test(D)&&(E.end.column=D.length)}}I&&(E=I)}this.session.remove(E),this.clearSelection()},_.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},_.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(` `),this.moveCursorToPosition(w)},_.prototype.setGhostText=function(w,E){this.session.widgetManager||(this.session.widgetManager=new $(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,E)},_.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),E=w.column;if(E!==0){var T=this.session.getLine(w.row),O,I;EW.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var F=E.getLine(O);I.start.row=O,I.end.row=O,I.end.column=F.length,E.replace(I,T[O-w.first])}},_.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),E=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,E.first,E.last)},_.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),E=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(E,this.session,T,w)},_.prototype.getNumberAt=function(w,E){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex=E){var F={value:I[0],start:I.index,end:I.index+I[0].length};return F}}return null},_.prototype.modifyNumber=function(w){var E=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(E,T-1,E,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var F=this.getNumberAt(E,T);if(F){var D=F.value.indexOf(".")>=0?F.start+F.value.indexOf(".")+1:F.end,W=F.start+F.value.length-D,j=parseFloat(F.value);j*=Math.pow(10,W),D!==F.end&&T=D&&F<=W&&(T=ee,j.selection.clearSelection(),j.moveCursorTo(w,D+O),j.selection.selectTo(w,W+O)),D=W});for(var H=this.$toggleWordPairs,U,K=0;K=W&&D<=j&&Z.match(/((?:https?|ftp):\/\/[\S]+)/)){H=Z.replace(/[\s:.,'";}\]]+$/,"");break}W=j}}catch(z){T={error:z}}finally{try{K&&!K.done&&(O=U.return)&&O.call(U)}finally{if(T)throw T.error}}return H},_.prototype.openLink=function(){var w=this.selection.getCursor(),E=this.findLinkAt(w.row,w.column);return E&&window.open(E,"_blank"),E!=null},_.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var w=this.selection,E=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;E.duplicateLines(I,I)}else{var F=O?T.start:T.end,D=E.insert(F,E.getTextRange(T),!1);T.start=F,T.end=D,w.setSelectionRange(T,O)}},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(w,E,T){return this.session.moveText(w,E,T)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(w,E){var T,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var F=I.toOrientedRange();T=this.$getSelectedRows(F),O=this.session.$moveLines(T.first,T.last,E?0:w),E&&w==-1&&(O=0),F.moveBy(O,0),I.fromOrientedRange(F)}else{var D=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var W=0,j=0,H=D.length,U=0;Uz+1)break;z=X.last}for(U--,W=this.session.$moveLines(Z,z,E?0:w),E&&w==-1&&(K=U+1);K<=U;)D[K].moveBy(W,0),K++;E||(W=0),j+=W}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},_.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},_.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},_.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},_.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},_.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},_.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},_.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},_.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},_.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},_.prototype.$moveByPage=function(w,E){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);E===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):E===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var F=T.scrollTop;T.scrollBy(0,I*O.lineHeight),E!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(F)},_.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},_.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},_.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},_.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},_.prototype.scrollPageDown=function(){this.$moveByPage(1)},_.prototype.scrollPageUp=function(){this.$moveByPage(-1)},_.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},_.prototype.scrollToLine=function(w,E,T,O){this.renderer.scrollToLine(w,E,T,O)},_.prototype.centerSelection=function(){var w=this.getSelectionRange(),E={row:Math.floor(w.start.row+(w.end.row-w.start.row)/2),column:Math.floor(w.start.column+(w.end.column-w.start.column)/2)};this.renderer.alignCursor(E,.5)},_.prototype.getCursorPosition=function(){return this.selection.getCursor()},_.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},_.prototype.getSelectionRange=function(){return this.selection.getRange()},_.prototype.selectAll=function(){this.selection.selectAll()},_.prototype.clearSelection=function(){this.selection.clearSelection()},_.prototype.moveCursorTo=function(w,E){this.selection.moveCursorTo(w,E)},_.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},_.prototype.jumpToMatching=function(w,E){var T=this.getCursorPosition(),O=new S(this.session,T.row,T.column),I=O.getCurrentToken(),F=0;I&&I.type.indexOf("tag-name")!==-1&&(I=O.stepBackward());var D=I||O.stepForward();if(D){var W,j=!1,H={},U=T.column-D.start,K,Z={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(D.value.match(/[{}()\[\]]/g)){for(;U1?H[D.value]++:I.value==="=0;--F)this.$tryReplace(T[F],w)&&O++;return this.selection.setSelectionRange(I),O},_.prototype.$tryReplace=function(w,E){var T=this.session.getTextRange(w);return E=this.$search.replace(T,E),E!==null?(w.end=this.session.replace(w,E),w):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(w,E,T){E||(E={}),typeof w=="string"||w instanceof RegExp?E.needle=w:typeof w=="object"&&d.mixin(E,w);var O=this.selection.getRange();E.needle==null&&(w=this.session.getTextRange(O)||this.$search.$options.needle,w||(O=this.session.getWordRange(O.start.row,O.start.column),w=this.session.getTextRange(O)),this.$search.set({needle:w})),this.$search.set(E),E.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(E.preventScroll)return I;if(I)return this.revealRange(I,T),I;E.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},_.prototype.findNext=function(w,E){this.find({skipCurrent:!0,backwards:!1},w,E)},_.prototype.findPrevious=function(w,E){this.find(w,{skipCurrent:!0,backwards:!0},E)},_.prototype.revealRange=function(w,E){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),E!==!1&&this.renderer.animateScrolling(T)},_.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},_.prototype.setAutoScrollEditorIntoView=function(w){if(w){var E,T=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var F=this.on("changeSelection",function(){O=!0}),D=this.renderer.on("beforeRender",function(){O&&(E=T.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&E&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var j=T.renderer,H=j.$cursorLayer.$pixelPos,U=j.layerConfig,K=H.top-U.offset;H.top>=0&&K+E.top<0?O=!0:H.topwindow.innerHeight?O=!1:O=null,O!=null&&(I.style.top=K+"px",I.style.left=H.left+"px",I.style.height=U.lineHeight+"px",I.scrollIntoView(O)),O=E=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",F),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",D))}}},_.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",E=this.renderer.$cursorLayer;E&&(E.setSmoothBlinking(/smooth/.test(w)),E.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(E.element,"ace_slim-cursors",/slim/.test(w)))},_.prototype.prompt=function(w,E,T){var O=this;C.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,E,T)})},_}();y.$uid=0,y.prototype.curOp=null,y.prototype.prevOp={},y.prototype.$mergeableCommands=["backspace","del","insertstring"],y.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],d.implement(y.prototype,v),C.defineOptions(y.prototype,"editor",{selectionStyle:{set:function(_){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:_})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(_){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(_){this.textInput.setReadOnly(_),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(_){this.textInput.setCopyWithEmptySelection(_)},initialValue:!1},cursorStyle:{set:function(_){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(_){this.setAutoScrollEditorIntoView(_)}},keyboardHandler:{set:function(_){this.setKeyboardHandler(_)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(_){this.session.setValue(_)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(_){this.setSession(_)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(_){this.renderer.$gutterLayer.setShowLineNumbers(_),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),_&&this.$relativeLineNumbers?A.attach(this):A.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(_){this.$showLineNumbers&&_?A.attach(this):A.detach(this)}},placeholder:{set:function(_){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),g.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!w&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var E=g.createElement("div");E.className="ace_placeholder",E.textContent=this.$placeholder||"",this.renderer.placeholderNode=E,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(_){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},E=function(O){if(O.target==this.renderer.scroller&&O.keyCode===M.enter){O.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},T;_?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(h.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",R("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",R("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",E.bind(this)),this.commands.addCommand(w),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",R("editor")),this.renderer.$gutter.setAttribute("aria-label",R("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),T||(T=new L(this)),T.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",E.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),T&&T.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var A={getText:function(_,w){return(Math.abs(_.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(_,w,E){return Math.max(w.toString().length,(E.lastRow+1).toString().length,2)*E.characterWidth},update:function(_,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(_){_.renderer.$gutterLayer.$renderer=this,_.on("changeSelection",this.update),this.update(null,_)},detach:function(_){_.renderer.$gutterLayer.$renderer==this&&(_.renderer.$gutterLayer.$renderer=null),_.off("changeSelection",this.update),this.update(null,_)}};i.Editor=y}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),d=function(){function g(s,h){this.element=s,this.canvasHeight=h||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(s){u.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(s,h){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(s,h,o){var r=h.firstRowScreen*h.lineHeight,l=Math.floor(r/this.canvasHeight),c=o.documentToScreenRow(s,0)*h.lineHeight;return c-l*this.canvasHeight},g.prototype.computeLineHeight=function(s,h,o){return h.lineHeight*o.getRowLineCount(s)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(s){return this.cells[s]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var h=u.createFragment(this.element),o=0;ox&&($=b.end.row+1,b=f.getNextFoldLine($,b),x=b?b.start.row:1/0),$>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}C=this.$lines.get(++S),C?C.row=$:(C=this.$lines.createCell($,a,this.session,l),this.$lines.push(C)),this.$renderCell(C,a,b,$),$++}this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$updateGutterWidth=function(a){var f=this.session,m=f.gutterRenderer||this.$renderer,v=f.$firstLineNumber,b=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(b=f.getLength()+v-1);var x=m?m.getWidth(f,b,a):b.toString().length*a.characterWidth,C=this.$padding||this.$computePadding();x+=C.left+C.right,x!==this.gutterWidth&&!isNaN(x)&&(this.gutterWidth=x,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",x))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var a=this.session.selection.getCursor();this.$cursorRow!==a.row&&(this.$cursorRow=a.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var a=this.session.selection.cursor.row;if(this.$cursorRow=a,!(this.$cursorCell&&this.$cursorCell.row==a)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var f=this.$lines.cells;this.$cursorCell=null;for(var m=0;m=this.$cursorRow){if(v.row>this.$cursorRow){var b=this.session.getFoldLine(this.$cursorRow);if(m>0&&b&&b.start.row==f[m-1].row)v=f[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},c.prototype.scrollLines=function(a){var f=this.config;if(this.config=a,this.$updateCursorRow(),this.$lines.pageChanged(f,a))return this.update(a);this.$lines.moveContainer(a);var m=Math.min(a.lastRow+a.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!f||v0;b--)this.$lines.shift();if(v>m)for(var b=this.session.getFoldedRowCount(m+1,v);b>0;b--)this.$lines.pop();a.firstRowv&&this.$lines.push(this.$renderLines(a,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(a)},c.prototype.$renderLines=function(a,f,m){for(var v=[],b=f,x=this.session.getNextFoldLine(b),C=x?x.start.row:1/0;b>C&&(b=x.end.row+1,x=this.session.getNextFoldLine(b,x),C=x?x.start.row:1/0),!(b>m);){var S=this.$lines.createCell(b,a,this.session,l);this.$renderCell(S,a,x,b),v.push(S),b++}return v},c.prototype.$renderCell=function(a,f,m,v){var b=a.element,x=this.session,C=b.childNodes[0],S=b.childNodes[1],$=b.childNodes[2],L=$.firstChild,R=x.$firstLineNumber,k=x.$breakpoints,M=x.$decorations,y=x.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&x.foldWidgets,_=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",E=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(y?y.getText(x,v):v+R).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v=_&&this.$cursorRow<=m.end.row)&&(E+="ace_gutter-active-line ",this.$cursorCell!=a&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=a)),k[v]&&(E+=k[v]),M[v]&&(E+=M[v]),this.$annotations[v]&&v!==_&&(E+=this.$annotations[v].className),A){var I=A[v];I==null&&(I=A[v]=x.getFoldWidget(v))}if(I){var F="ace_fold-widget ace_"+I,D=I=="start"&&v==_&&vm.right-f.right)return"foldWidgets"},c}();r.prototype.$fixedWidth=!1,r.prototype.$highlightGutterLine=!0,r.prototype.$renderer="",r.prototype.$showLineNumbers=!0,r.prototype.$showFoldWidgets=!0,d.implement(r.prototype,s);function l(c){var a=document.createTextNode("");c.appendChild(a);var f=u.createElement("span");c.appendChild(f);var m=u.createElement("span");c.appendChild(m);var v=u.createElement("span");return m.appendChild(v),c}i.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,p){var u=n("../range").Range,d=n("../lib/dom"),g=function(){function h(o){this.element=d.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return h.prototype.setPadding=function(o){this.$padding=o},h.prototype.setSession=function(o){this.session=o},h.prototype.setMarkers=function(o){this.markers=o},h.prototype.elt=function(o,r){var l=this.i!=-1&&this.element.childNodes[this.i];l?this.i++:(l=document.createElement("div"),this.element.appendChild(l),this.i=-1),l.style.cssText=r,l.className=o},h.prototype.update=function(o){if(o){this.config=o,this.i=0;var r;for(var l in this.markers){var c=this.markers[l];if(!c.range){c.update(r,this,this.session,o);continue}var a=c.range.clipRows(o.firstRow,o.lastRow);if(!a.isEmpty())if(a=a.toScreenRange(this.session),c.renderer){var f=this.$getTop(a.start.row,o),m=this.$padding+a.start.column*o.characterWidth;c.renderer(r,a,m,f,o)}else c.type=="fullLine"?this.drawFullLineMarker(r,a,c.clazz,o):c.type=="screenLine"?this.drawScreenLineMarker(r,a,c.clazz,o):a.isMultiLine()?c.type=="text"?this.drawTextMarker(r,a,c.clazz,o):this.drawMultiLineMarker(r,a,c.clazz,o):this.drawSingleLineMarker(r,a,c.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.iS,b==v),c,b==v?0:1,a)},h.prototype.drawMultiLineMarker=function(o,r,l,c,a){var f=this.$padding,m=c.lineHeight,v=this.$getTop(r.start.row,c),b=f+r.start.column*c.characterWidth;if(a=a||"",this.session.$bidiHandler.isBidiRow(r.start.row)){var x=r.clone();x.end.row=x.start.row,x.end.column=this.session.getLine(x.start.row).length,this.drawBidiSingleLineMarker(o,x,l+" ace_br1 ace_start",c,null,a)}else this.elt(l+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+b+"px;"+(a||""));if(this.session.$bidiHandler.isBidiRow(r.end.row)){var x=r.clone();x.start.row=x.end.row,x.start.column=0,this.drawBidiSingleLineMarker(o,x,l+" ace_br12",c,null,a)}else{v=this.$getTop(r.end.row,c);var C=r.end.column*c.characterWidth;this.elt(l+" ace_br12","height:"+m+"px;width:"+C+"px;top:"+v+"px;left:"+f+"px;"+(a||""))}if(m=(r.end.row-r.start.row-1)*c.lineHeight,!(m<=0)){v=this.$getTop(r.start.row+1,c);var S=(r.start.column?1:0)|(r.end.column?0:8);this.elt(l+(S?" ace_br"+S:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+f+"px;"+(a||""))}},h.prototype.drawSingleLineMarker=function(o,r,l,c,a,f){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(o,r,l,c,a,f);var m=c.lineHeight,v=(r.end.column+(a||0)-r.start.column)*c.characterWidth,b=this.$getTop(r.start.row,c),x=this.$padding+r.start.column*c.characterWidth;this.elt(l,"height:"+m+"px;width:"+v+"px;top:"+b+"px;left:"+x+"px;"+(f||""))},h.prototype.drawBidiSingleLineMarker=function(o,r,l,c,a,f){var m=c.lineHeight,v=this.$getTop(r.start.row,c),b=this.$padding,x=this.session.$bidiHandler.getSelections(r.start.column,r.end.column);x.forEach(function(C){this.elt(l,"height:"+m+"px;width:"+(C.width+(a||0))+"px;top:"+v+"px;left:"+(b+C.left)+"px;"+(f||""))},this)},h.prototype.drawFullLineMarker=function(o,r,l,c,a){var f=this.$getTop(r.start.row,c),m=c.lineHeight;r.start.row!=r.end.row&&(m+=this.$getTop(r.end.row,c)-f),this.elt(l,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(a||""))},h.prototype.drawScreenLineMarker=function(o,r,l,c,a){var f=this.$getTop(r.start.row,c),m=c.lineHeight;this.elt(l,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(a||""))},h}();g.prototype.$padding=0;function s(h,o,r,l){return(h?1:0)|(o?2:0)|(r?4:0)|(l?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,p){var u=new Set(["text","rparen","lparen"]);i.isTextToken=function(d){return u.has(d)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,i,p){var u=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),s=n("./lines").Lines,h=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,r=n("./text_util").isTextToken,l=function(){function c(a){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",a.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return c.prototype.$updateEolChar=function(){var a=this.session.doc,f=a.getNewLineCharacter()==` `&&a.getNewLineMode()!="windows",m=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},c.prototype.setPadding=function(a){this.$padding=a,this.element.style.margin="0 "+a+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(a){this.$fontMetrics=a,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(a){this.session=a,a&&this.$computeTabString()},c.prototype.setShowInvisibles=function(a){return this.showInvisibles==a?!1:(this.showInvisibles=a,typeof a=="string"?(this.showSpaces=/tab/i.test(a),this.showTabs=/space/i.test(a),this.showEOL=/eol/i.test(a)):this.showSpaces=this.showTabs=this.showEOL=a,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(a){return this.displayIndentGuides==a?!1:(this.displayIndentGuides=a,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(a){return this.$highlightIndentGuides===a?!1:(this.$highlightIndentGuides=a,a)},c.prototype.$computeTabString=function(){var a=this.session.getTabSize();this.tabSize=a;for(var f=this.$tabStrings=[0],m=1;mR&&($=L.end.row+1,L=this.session.getNextFoldLine($,L),R=L?L.start.row:1/0),!($>b);){var k=x[C++];if(k){this.dom.removeChildren(k),this.$renderLine(k,$,$==R?L:!1),S&&(k.style.top=this.$lines.computeLineTop($,a,this.session)+"px");var M=a.lineHeight*this.session.getRowLength($)+"px";k.style.height!=M&&(S=!0,k.style.height=M)}$++}if(S)for(;C0;b--)this.$lines.shift();if(f.lastRow>a.lastRow)for(var b=this.session.getFoldedRowCount(a.lastRow+1,f.lastRow);b>0;b--)this.$lines.pop();a.firstRowf.lastRow&&this.$lines.push(this.$renderLinesFragment(a,f.lastRow+1,a.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(a,f,m){for(var v=[],b=f,x=this.session.getNextFoldLine(b),C=x?x.start.row:1/0;b>C&&(b=x.end.row+1,x=this.session.getNextFoldLine(b,x),C=x?x.start.row:1/0),!(b>m);){var S=this.$lines.createCell(b,a,this.session),$=S.element;this.dom.removeChildren($),d.setStyle($.style,"height",this.$lines.computeLineHeight(b,a,this.session)+"px"),d.setStyle($.style,"top",this.$lines.computeLineTop(b,a,this.session)+"px"),this.$renderLine($,b,b==C?x:!1),this.$useLineGroups()?$.className="ace_line_group":$.className="ace_line",v.push(S),b++}return v},c.prototype.update=function(a){this.$lines.moveContainer(a),this.config=a;for(var f=a.firstRow,m=a.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(a,f,m))},c.prototype.$renderToken=function(a,f,m,v){for(var b=this,x=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,C=this.dom.createFragment(this.element),S,$=0;S=x.exec(v);){var L=S[1],R=S[2],k=S[3],M=S[4],y=S[5];if(!(!b.showSpaces&&R)){var A=$!=S.index?v.slice($,S.index):"";if($=S.index+S[0].length,A&&C.appendChild(this.dom.createTextNode(A,this.element)),L){var _=b.session.getScreenTabSize(f+S.index);C.appendChild(b.$tabStrings[_].cloneNode(!0)),f+=_-1}else if(R)if(b.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(b.SPACE_CHAR,R.length),C.appendChild(w)}else C.appendChild(this.dom.createTextNode(R,this.element));else if(k){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(b.SPACE_CHAR,k.length),C.appendChild(w)}else if(M){f+=1;var w=this.dom.createElement("span");w.style.width=b.config.characterWidth*2+"px",w.className=b.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=b.showSpaces?b.SPACE_CHAR:M,C.appendChild(w)}else if(y){f+=1;var w=this.dom.createElement("span");w.style.width=b.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=y,C.appendChild(w)}}}if(C.appendChild(this.dom.createTextNode($?v.slice($):v,this.element)),r(m.type))a.appendChild(C);else{var E="ace_"+m.type.replace(/\./g," ace_"),w=this.dom.createElement("span");m.type=="fold"&&(w.style.width=m.value.length*this.config.characterWidth+"px",w.setAttribute("title",o("Unfold code"))),w.className=E,w.appendChild(C),a.appendChild(w)}return f+v.length},c.prototype.renderIndentGuide=function(a,f,m){var v=f.search(this.$indentGuideRe);if(v<=0||v>=m)return f;if(f[0]==" "){v-=v%this.tabSize;for(var b=v/this.tabSize,x=0;xx[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&a[f.row]!==""&&f.column===a[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=f.row+1;C0){for(var b=0;b=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}else for(var m=a.length-1;m>=0;m--){var v=a[m];if(this.$highlightIndentGuideMarker.end&&v.row=x;)C=this.$renderToken(S,C,L,R.substring(0,x-v)),R=R.substring(x-v),v=x,S=this.$createLineElement(),a.appendChild(S),S.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),b++,C=0,x=m[b]||Number.MAX_VALUE;R.length!=0&&(v+=R.length,C=this.$renderToken(S,C,L,R))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,C,null,"",!0)},c.prototype.$renderSimpleLine=function(a,f){for(var m=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(a,m,b,x);m=this.$renderToken(a,m,b,x)}}},c.prototype.$renderOverflowMessage=function(a,f,m,v,b){m&&this.$renderToken(a,f,m,v.slice(0,this.MAX_LINE_LENGTH-f));var x=this.dom.createElement("span");x.className="ace_inline_button ace_keyword ace_toggle_wrap",x.textContent=b?"":"",a.appendChild(x)},c.prototype.$renderLine=function(a,f,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(f)),m)var v=this.$getFoldLineTokens(f,m);else var v=this.session.getTokens(f);var b=a;if(v.length){var x=this.session.getRowSplitData(f);if(x&&x.length){this.$renderWrappedLine(a,v,x);var b=a.lastChild}else{var b=a;this.$useLineGroups()&&(b=this.$createLineElement(),a.appendChild(b)),this.$renderSimpleLine(b,v)}}else this.$useLineGroups()&&(b=this.$createLineElement(),a.appendChild(b));if(this.showEOL&&b){m&&(f=m.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,b.appendChild(C)}},c.prototype.$getFoldLineTokens=function(a,f){var m=this.session,v=[];function b(C,S,$){for(var L=0,R=0;R+C[L].value.length$-S&&(k=k.substring(0,$-S)),v.push({type:C[L].type,value:k}),R=S+k.length,L+=1}for(;R<$&&L$?v.push({type:C[L].type,value:k.substring(0,$-R)}):v.push(C[L]),R+=k.length,L+=1}}var x=m.getTokens(a);return f.walk(function(C,S,$,L,R){C!=null?v.push({type:"fold",value:C}):(R&&(x=m.getTokens(S)),x.length&&b(x,L,$))},f.end.row,this.session.getLine(f.end.row).length),v},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();l.prototype.EOF_CHAR="¶",l.prototype.EOL_CHAR_LF="¬",l.prototype.EOL_CHAR_CRLF="¤",l.prototype.EOL_CHAR=l.prototype.EOL_CHAR_LF,l.prototype.TAB_CHAR="—",l.prototype.SPACE_CHAR="·",l.prototype.$padding=0,l.prototype.MAX_LINE_LENGTH=1e4,l.prototype.showInvisibles=!1,l.prototype.showSpaces=!1,l.prototype.showTabs=!1,l.prototype.showEOL=!1,l.prototype.displayIndentGuides=!0,l.prototype.$highlightIndentGuides=!0,l.prototype.$tabStrings=[],l.prototype.destroy={},l.prototype.onChangeTabSize=l.prototype.$computeTabString,u.implement(l.prototype,h),i.Text=l}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,p){var u=n("../lib/dom"),d=function(){function g(s){this.element=u.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),u.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(s){for(var h=this.cursors,o=h.length;o--;)u.setStyle(h[o].style,"opacity",s?"":"0")},g.prototype.$startCssAnimation=function(){for(var s=this.cursors,h=s.length;h--;)s[h].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&u.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,u.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},g.prototype.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},g.prototype.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,u.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var s=u.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},g.prototype.removeCursor=function(){if(this.cursors.length>1){var s=this.cursors.pop();return s.parentNode.removeChild(s),s}},g.prototype.hideCursor=function(){this.isVisible=!1,u.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,u.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var s=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,u.removeCssClass(this.element,"ace_smooth-blinking")),s(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&u.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),u.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var h=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),h()},this.blinkInterval),h()}},g.prototype.getPixelPosition=function(s,h){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(s),r=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,s.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),l=(o.row-(h?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:l}},g.prototype.isCursorInView=function(s,h){return s.top>=0&&s.tops.height+s.offset||c.top<0)&&o>1)){var a=this.cursors[r++]||this.addCursor(),f=a.style;this.drawCursor?this.drawCursor(a,c,s,h[o],this.session):this.isCursorInView(c,s)?(u.setStyle(f,"display","block"),u.translate(a,c.left,c.top),u.setStyle(f,"width",Math.round(s.characterWidth)+"px"),u.setStyle(f,"height",s.lineHeight+"px")):u.setStyle(f,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=c,this.restartTimer()},g.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?u.addCssClass(this.element,"ace_overwrite-cursors"):u.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();d.prototype.$padding=0,d.prototype.drawCursor=null,i.Cursor=d}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var a=function(f,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(v[x]=b[x])},a(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");a(f,m);function v(){this.constructor=f}f.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),d=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter,o=32768,r=function(){function a(f,m){this.element=g.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=g.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return a.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},a}();d.implement(r.prototype,h);var l=function(a){u(f,a);function f(m,v){var b=a.call(this,m,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,v.$scrollbarWidth=b.width=g.scrollbarWidth(m.ownerDocument),b.inner.style.width=b.element.style.width=(b.width||15)+5+"px",b.$minWidth=0,b}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(m){this.element.style.height=m+"px"},f.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>o?(this.coeff=o/m,m=o):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},f.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},f}(r);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var c=function(a){u(f,a);function f(m,v){var b=a.call(this,m,"-h")||this;return b.scrollLeft=0,b.height=v.$scrollbarWidth,b.inner.style.height=b.element.style.height=(b.height||15)+5+"px",b}return f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(m){this.element.style.width=m+"px"},f.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},f}(r);i.ScrollBar=l,i.ScrollBarV=l,i.ScrollBarH=c,i.VScrollBar=l,i.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,p){var u=this&&this.__extends||function(){var c=function(a,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(m[b]=v[b])},c(a,f)};return function(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(a,f);function m(){this.constructor=a}a.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=n("./lib/oop"),g=n("./lib/dom"),s=n("./lib/event"),h=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ position: absolute; background: rgba(128, 128, 128, 0.6); -moz-box-sizing: border-box; box-sizing: border-box; border: 1px solid #bbb; border-radius: 2px; z-index: 8; } .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { position: absolute; z-index: 6; background: none; overflow: hidden!important; } .ace_editor>.ace_sb-v { z-index: 6; right: 0; top: 0; width: 12px; } .ace_editor>.ace_sb-v div { z-index: 8; right: 0; width: 100%; } .ace_editor>.ace_sb-h { bottom: 0; left: 0; height: 12px; } .ace_editor>.ace_sb-h div { bottom: 0; height: 100%; } .ace_editor>.ace_sb_grabbed { z-index: 8; background: #000; }`,"ace_scrollbar.css",!1);var o=function(){function c(a,f){this.element=g.createElement("div"),this.element.className="ace_sb"+f,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,a.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(a){this.element.style.display=a?"":"none",this.isVisible=a,this.coeff=1},c}();d.implement(o.prototype,h);var r=function(c){u(a,c);function a(f,m){var v=c.call(this,f,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=f,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return a.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,b=m.clientY,x=function(M){b=M.clientY},C=function(){clearInterval(R)},S=m.clientY,$=this.thumbTop,L=function(){if(b!==void 0){var M=v.scrollTopFromThumbTop($+b-S);M!==v.scrollTop&&v._emit("scroll",{data:M})}};s.capture(this.inner,x,C);var R=setInterval(L,20);return s.preventDefault(m)}var k=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(k)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.height},a.prototype.scrollTopFromThumbTop=function(f){var m=f*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},a.prototype.setScrollHeight=function(f,m){this.pageHeight===f&&!m||(this.pageHeight=f,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},a.prototype.setScrollTop=function(f){this.scrollTop=f,f<0&&(f=0),this.thumbTop=f*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},a}(o);r.prototype.setInnerHeight=r.prototype.setScrollHeight;var l=function(c){u(a,c);function a(f,m){var v=c.call(this,f,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return a.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(s.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,b=m.clientX,x=function(M){b=M.clientX},C=function(){clearInterval(R)},S=m.clientX,$=this.thumbLeft,L=function(){if(b!==void 0){var M=v.scrollLeftFromThumbLeft($+b-S);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};s.capture(this.inner,x,C);var R=setInterval(L,20);return s.preventDefault(m)}var k=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(k)}),s.preventDefault(m)}},a.prototype.getHeight=function(){return this.isVisible?this.height:0},a.prototype.scrollLeftFromThumbLeft=function(f){var m=f*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},a.prototype.setWidth=function(f){this.width=Math.max(0,f),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},a.prototype.setScrollWidth=function(f,m){this.pageWidth===f&&!m||(this.pageWidth=f,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},a.prototype.setScrollLeft=function(f){this.scrollLeft=f,f<0&&(f=0),this.thumbLeft=f*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},a}(o);l.prototype.setInnerWidth=l.prototype.setScrollWidth,i.ScrollBar=r,i.ScrollBarV=r,i.ScrollBarH=l,i.VScrollBar=r,i.HScrollBar=l}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,p){var u=n("./lib/event"),d=function(){function g(s,h){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=h||window;var o=this;this._flush=function(r){o.pending=!1;var l=o.changes;if(l&&(u.blockIdle(100),o.changes=0,o.onRender(l)),o.changes){if(o.$recursionLimit--<0)return;o.schedule()}else o.$recursionLimit=2}}return g.prototype.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(u.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(s){var h=this.changes;return this.changes=0,h},g}();i.RenderLoop=d}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,i,p){var u=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),s=n("../lib/event"),h=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,r=512,l=typeof ResizeObserver=="function",c=200,a=function(){function f(m){this.el=d.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=d.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=d.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=g.stringRepeat("X",r),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",h.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},f.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},f.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},f.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=s.onIdle(function v(){m.checkForSizeChanges(),s.onIdle(v,500)},500)},f.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},f.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/r};return v.width===0||v.height===0?null:v},f.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,r);var v=this.$main.getBoundingClientRect();return v.width/r},f.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},f.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},f.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},f.prototype.$initTransformMeasureNodes=function(){var m=function(v,b){return["div",{style:"position: absolute;top:"+v+"px;left:"+b+"px;"}]};this.els=d.buildDom([m(0,0),m(c,0),m(0,c),m(c,c)],this.el)},f.prototype.transformCoordinates=function(m,v){if(m){var b=this.$getZoom(this.el);m=$(1/b,m)}function x(D,W,j){var H=D[1]*W[0]-D[0]*W[1];return[(-W[1]*j[0]+W[0]*j[1])/H,(+D[1]*j[0]-D[0]*j[1])/H]}function C(D,W){return[D[0]-W[0],D[1]-W[1]]}function S(D,W){return[D[0]+W[0],D[1]+W[1]]}function $(D,W){return[D*W[0],D*W[1]]}this.els||this.$initTransformMeasureNodes();function L(D){var W=D.getBoundingClientRect();return[W.left,W.top]}var R=L(this.els[0]),k=L(this.els[1]),M=L(this.els[2]),y=L(this.els[3]),A=x(C(y,k),C(y,M),C(S(k,M),S(y,R))),_=$(1+A[0],C(k,R)),w=$(1+A[1],C(M,R));if(v){var E=v,T=A[0]*E[0]/c+A[1]*E[1]/c+1,O=S($(E[0],_),$(E[1],w));return S($(1/T/c,O),R)}var I=C(m,R),F=x(C(_,$(A[0],I)),C(w,$(A[1],I)),I);return $(c,F)},f}();a.prototype.$characterSize={width:0,height:0},u.implement(a.prototype,o),i.FontMetrics=a}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,p){p.exports=` .ace_br1 {border-top-left-radius : 3px;} .ace_br2 {border-top-right-radius : 3px;} .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;} .ace_br4 {border-bottom-right-radius: 3px;} .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;} .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;} .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;} .ace_br8 {border-bottom-left-radius : 3px;} .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;} .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;} .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} .ace_editor { position: relative; overflow: hidden; padding: 0; font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace; direction: ltr; text-align: left; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .ace_scroller { position: absolute; overflow: hidden; top: 0; bottom: 0; background-color: inherit; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; cursor: text; } .ace_content { position: absolute; box-sizing: border-box; min-width: 100%; contain: style size layout; font-variant-ligatures: no-common-ligatures; } .ace_keyboard-focus:focus { box-shadow: inset 0 0 0 2px #5E9ED6; outline: none; } .ace_dragging .ace_scroller:before{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; content: ''; background: rgba(250, 250, 250, 0.01); z-index: 1000; } .ace_dragging.ace_dark .ace_scroller:before{ background: rgba(0, 0, 0, 0.01); } .ace_gutter { position: absolute; overflow : hidden; width: auto; top: 0; bottom: 0; left: 0; cursor: default; z-index: 4; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; contain: style size layout; } .ace_gutter-active-line { position: absolute; left: 0; right: 0; } .ace_scroller.ace_scroll-left:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; pointer-events: none; } .ace_gutter-cell, .ace_gutter-cell_svg-icons { position: absolute; top: 0; left: 0; right: 0; padding-left: 19px; padding-right: 6px; background-repeat: no-repeat; } .ace_gutter-cell_svg-icons .ace_gutter_annotation { margin-left: -14px; float: left; } .ace_gutter-cell .ace_gutter_annotation { margin-left: -19px; float: left; } .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: 2px center; } .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: 2px center; } .ace_gutter-cell.ace_info, .ace_icon.ace_info { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); background-repeat: no-repeat; background-position: 2px center; } .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC"); } .ace_icon_svg.ace_error { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+"); background-color: crimson; } .ace_icon_svg.ace_warning { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg=="); background-color: darkorange; } .ace_icon_svg.ace_info { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg=="); background-color: royalblue; } .ace_icon_svg.ace_error_fold { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); background-color: crimson; } .ace_icon_svg.ace_warning_fold { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4="); background-color: darkorange; } .ace_scrollbar { contain: strict; position: absolute; right: 0; bottom: 0; z-index: 6; } .ace_scrollbar-inner { position: absolute; cursor: text; left: 0; top: 0; } .ace_scrollbar-v{ overflow-x: hidden; overflow-y: scroll; top: 0; } .ace_scrollbar-h { overflow-x: scroll; overflow-y: hidden; left: 0; } .ace_print-margin { position: absolute; height: 100%; } .ace_text-input { position: absolute; z-index: 0; width: 0.5em; height: 1em; opacity: 0; background: transparent; -moz-appearance: none; appearance: none; border: none; resize: none; outline: none; overflow: hidden; font: inherit; padding: 0 1px; margin: 0 -1px; contain: strict; -ms-user-select: text; -moz-user-select: text; -webkit-user-select: text; user-select: text; /*with \`pre-line\` chrome inserts   instead of space*/ white-space: pre!important; } .ace_text-input.ace_composition { background: transparent; color: inherit; z-index: 1000; opacity: 1; } .ace_composition_placeholder { color: transparent } .ace_composition_marker { border-bottom: 1px solid; position: absolute; border-radius: 0; margin-top: 1px; } [ace_nocontext=true] { transform: none!important; filter: none!important; clip-path: none!important; mask : none!important; contain: none!important; perspective: none!important; mix-blend-mode: initial!important; z-index: auto; } .ace_layer { z-index: 1; position: absolute; overflow: hidden; /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ word-wrap: normal; white-space: pre; height: 100%; width: 100%; box-sizing: border-box; /* setting pointer-events: auto; on node under the mouse, which changes during scroll, will break mouse wheel scrolling in Safari */ pointer-events: none; } .ace_gutter-layer { position: relative; width: auto; text-align: right; pointer-events: auto; height: 1000000px; contain: style size layout; } .ace_text-layer { font: inherit !important; position: absolute; height: 1000000px; width: 1000000px; contain: style size layout; } .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { contain: style size layout; position: absolute; top: 0; left: 0; right: 0; } .ace_hidpi .ace_text-layer, .ace_hidpi .ace_gutter-layer, .ace_hidpi .ace_content, .ace_hidpi .ace_gutter { contain: strict; } .ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group { contain: strict; } .ace_cjk { display: inline-block; text-align: center; } .ace_cursor-layer { z-index: 4; } .ace_cursor { z-index: 4; position: absolute; box-sizing: border-box; border-left: 2px solid; /* workaround for smooth cursor repaintng whole screen in chrome */ transform: translatez(0); } .ace_multiselect .ace_cursor { border-left-width: 1px; } .ace_slim-cursors .ace_cursor { border-left-width: 1px; } .ace_overwrite-cursors .ace_cursor { border-left-width: 0; border-bottom: 1px solid; } .ace_hidden-cursors .ace_cursor { opacity: 0.2; } .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor { opacity: 0; } .ace_smooth-blinking .ace_cursor { transition: opacity 0.18s; } .ace_animate-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: step-end; animation-name: blink-ace-animate; animation-iteration-count: infinite; } .ace_animate-blinking.ace_smooth-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: ease-in-out; animation-name: blink-ace-animate-smooth; } @keyframes blink-ace-animate { from, to { opacity: 1; } 60% { opacity: 0; } } @keyframes blink-ace-animate-smooth { from, to { opacity: 1; } 45% { opacity: 1; } 60% { opacity: 0; } 85% { opacity: 0; } } .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack { position: absolute; z-index: 3; } .ace_marker-layer .ace_selection { position: absolute; z-index: 5; } .ace_marker-layer .ace_bracket { position: absolute; z-index: 6; } .ace_marker-layer .ace_error_bracket { position: absolute; border-bottom: 1px solid #DE5555; border-radius: 0; } .ace_marker-layer .ace_active-line { position: absolute; z-index: 2; } .ace_marker-layer .ace_selected-word { position: absolute; z-index: 4; box-sizing: border-box; } .ace_line .ace_fold { box-sizing: border-box; display: inline-block; height: 11px; margin-top: -2px; vertical-align: middle; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII="); background-repeat: no-repeat, repeat-x; background-position: center center, top left; color: transparent; border: 1px solid black; border-radius: 2px; cursor: pointer; pointer-events: auto; } .ace_dark .ace_fold { } .ace_fold:hover{ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC"); } .ace_tooltip { background-color: #f5f5f5; border: 1px solid gray; border-radius: 1px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); color: black; max-width: 100%; padding: 3px 4px; position: fixed; z-index: 999999; box-sizing: border-box; cursor: default; white-space: pre; word-wrap: break-word; line-height: normal; font-style: normal; font-weight: normal; letter-spacing: normal; pointer-events: none; } .ace_tooltip.ace_dark { background-color: #636363; color: #fff; } .ace_tooltip:focus { outline: 1px solid #5E9ED6; } .ace_icon { display: inline-block; width: 18px; vertical-align: top; } .ace_icon_svg { display: inline-block; width: 12px; vertical-align: top; -webkit-mask-repeat: no-repeat; -webkit-mask-size: 12px; -webkit-mask-position: center; } .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { padding-right: 13px; } .ace_fold-widget { box-sizing: border-box; margin: 0 -12px 0 1px; display: none; width: 11px; vertical-align: top; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg=="); background-repeat: no-repeat; background-position: center; border-radius: 3px; border: 1px solid transparent; cursor: pointer; } .ace_folding-enabled .ace_fold-widget { display: inline-block; } .ace_fold-widget.ace_end { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg=="); } .ace_fold-widget.ace_closed { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA=="); } .ace_fold-widget:hover { border: 1px solid rgba(0, 0, 0, 0.3); background-color: rgba(255, 255, 255, 0.2); box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); } .ace_fold-widget:active { border: 1px solid rgba(0, 0, 0, 0.4); background-color: rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); } /** * Dark version for fold widgets */ .ace_dark .ace_fold-widget { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC"); } .ace_dark .ace_fold-widget.ace_end { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg=="); } .ace_dark .ace_fold-widget.ace_closed { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg=="); } .ace_dark .ace_fold-widget:hover { box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.1); } .ace_dark .ace_fold-widget:active { box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); } .ace_inline_button { border: 1px solid lightgray; display: inline-block; margin: -1px 8px; padding: 0 5px; pointer-events: auto; cursor: pointer; } .ace_inline_button:hover { border-color: gray; background: rgba(200,200,200,0.2); display: inline-block; pointer-events: auto; } .ace_fold-widget.ace_invalid { background-color: #FFB4B4; border-color: #DE5555; } .ace_fade-fold-widgets .ace_fold-widget { transition: opacity 0.4s ease 0.05s; opacity: 0; } .ace_fade-fold-widgets:hover .ace_fold-widget { transition: opacity 0.05s ease 0.05s; opacity:1; } .ace_underline { text-decoration: underline; } .ace_bold { font-weight: bold; } .ace_nobold .ace_bold { font-weight: normal; } .ace_italic { font-style: italic; } .ace_error-marker { background-color: rgba(255, 0, 0,0.2); position: absolute; z-index: 9; } .ace_highlight-marker { background-color: rgba(255, 255, 0,0.2); position: absolute; z-index: 8; } .ace_mobile-menu { position: absolute; line-height: 1.5; border-radius: 4px; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; background: white; box-shadow: 1px 3px 2px grey; border: 1px solid #dcdcdc; color: black; } .ace_dark > .ace_mobile-menu { background: #333; color: #ccc; box-shadow: 1px 3px 2px grey; border: 1px solid #444; } .ace_mobile-button { padding: 2px; cursor: pointer; overflow: hidden; } .ace_mobile-button:hover { background-color: #eee; opacity:1; } .ace_mobile-button:active { background-color: #ddd; } .ace_placeholder { font-family: arial; transform: scale(0.9); transform-origin: left; white-space: pre; opacity: 0.7; margin: 0 10px; } .ace_ghost_text { opacity: 0.5; font-style: italic; white-space: pre; } .ace_screenreader-only { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,p){var u=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,s=function(){function h(o,r){this.canvas=u.createElement("canvas"),this.renderer=r,this.pixelRatio=1,this.maxHeight=r.layerConfig.maxHeight,this.lineHeight=r.layerConfig.lineHeight,this.canvasHeight=o.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=o.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},o.element.appendChild(this.canvas)}return h.prototype.$updateDecorators=function(o){var r=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(o){this.maxHeight=o.maxHeight,this.lineHeight=o.lineHeight,this.canvasHeight=o.height;var l=(o.lastRow+1)*this.lineHeight;lA.priority?1:0}var f=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),f){var m={info:1,warning:2,error:3};f.forEach(function(y){y.priority=m[y.type]||null}),f=f.sort(a);for(var v=this.renderer.session.$foldData,b=0;bthis.canvasHeight&&(k=this.canvasHeight-this.halfMinDecorationHeight),$=Math.round(k-this.halfMinDecorationHeight),L=Math.round(k+this.halfMinDecorationHeight)}c.fillStyle=r[f[b].type]||null,c.fillRect(0,S,this.canvasWidth,L-$)}}var M=this.renderer.session.selection.getCursor();if(M){var C=this.compensateFoldRows(M.row,v),S=Math.round((M.row-C)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,S,this.canvasWidth,2)}},h.prototype.compensateFoldRows=function(o,r){var l=0;if(r&&r.length>0)for(var c=0;cr[c].start.row&&o=r[c].end.row&&(l+=r[c].end.row-r[c].start.row);return l},h}();d.implement(s.prototype,g),i.Decorator=s}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(n,i,p){var u=n("./lib/oop"),d=n("./lib/dom"),g=n("./lib/lang"),s=n("./config"),h=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,r=n("./layer/text").Text,l=n("./layer/cursor").Cursor,c=n("./scrollbar").HScrollBar,a=n("./scrollbar").VScrollBar,f=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,b=n("./layer/font_metrics").FontMetrics,x=n("./lib/event_emitter").EventEmitter,C=n("./css/editor-css"),S=n("./layer/decorators").Decorator,$=n("./lib/useragent");d.importCssString(C,"ace_editor.css",!1);var L=function(){function R(k,M){var y=this;this.container=k||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=d.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=d.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=d.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new h(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var A=this.$textLayer=new r(this.content);this.canvas=A.element,this.$markerFront=new o(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new a(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(_){y.$scrollAnimation||y.session.setScrollTop(_.data-y.scrollMargin.top)}),this.scrollBarH.on("scroll",function(_){y.$scrollAnimation||y.session.setScrollLeft(_.data-y.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new b(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(_){y.updateCharacterSize(),y.onResize(!0,y.gutterWidth,y.$size.width,y.$size.height),y._signal("changeCharacterSize",_)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!$.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}return R.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),d.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},R.prototype.setSession=function(k){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=k,k&&this.scrollMargin.top&&k.getScrollTop()<=0&&k.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(k),this.$markerBack.setSession(k),this.$markerFront.setSession(k),this.$gutterLayer.setSession(k),this.$textLayer.setSession(k),k&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},R.prototype.updateLines=function(k,M,y){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>k&&(this.$changedLines.firstRow=k),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},R.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},R.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},R.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},R.prototype.updateFull=function(k){k?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},R.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},R.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},R.prototype.onResize=function(k,M,y,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=k?1:0;var _=this.container;A||(A=_.clientHeight||_.scrollHeight),y||(y=_.clientWidth||_.scrollWidth);var w=this.$updateCachedSize(k,M,y,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!y&&!A)return this.resizing=0;k&&(this.$gutterLayer.$padding=null),k?this.$renderChanges(w|this.$changes,!0):this.$loop.schedule(w|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},R.prototype.$updateCachedSize=function(k,M,y,A){A-=this.$extraHeight||0;var _=0,w=this.$size,E={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(A&&(k||w.height!=A)&&(w.height=A,_|=this.CHANGE_SIZE,w.scrollerHeight=w.height,this.$horizScroll&&(w.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(w.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",_=_|this.CHANGE_SCROLL),y&&(k||w.width!=y)){_|=this.CHANGE_SIZE,w.width=y,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,d.setStyle(this.scrollBarH.element.style,"left",M+"px"),d.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,y-M-this.scrollBarV.getWidth()-this.margin.h),d.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",T),d.setStyle(this.scroller.style,"right",T),d.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||k)&&(_|=this.CHANGE_FULL)}return w.$dirty=!y||!A,_&&this._signal("resize",E),_},R.prototype.onGutterResize=function(k){var M=this.$showGutter?k:0;M!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,M,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},R.prototype.adjustWrapLimit=function(){var k=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(k/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},R.prototype.setAnimatedScroll=function(k){this.setOption("animatedScroll",k)},R.prototype.getAnimatedScroll=function(){return this.$animatedScroll},R.prototype.setShowInvisibles=function(k){this.setOption("showInvisibles",k),this.session.$bidiHandler.setShowInvisibles(k)},R.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},R.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},R.prototype.setDisplayIndentGuides=function(k){this.setOption("displayIndentGuides",k)},R.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},R.prototype.setHighlightIndentGuides=function(k){this.setOption("highlightIndentGuides",k)},R.prototype.setShowPrintMargin=function(k){this.setOption("showPrintMargin",k)},R.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},R.prototype.setPrintMarginColumn=function(k){this.setOption("printMarginColumn",k)},R.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},R.prototype.getShowGutter=function(){return this.getOption("showGutter")},R.prototype.setShowGutter=function(k){return this.setOption("showGutter",k)},R.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},R.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},R.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},R.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},R.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var k=d.createElement("div");k.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",k.appendChild(this.$printMarginEl),this.content.insertBefore(k,this.content.firstChild)}var M=this.$printMarginEl.style;M.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",M.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},R.prototype.getContainerElement=function(){return this.container},R.prototype.getMouseEventTarget=function(){return this.scroller},R.prototype.getTextAreaContainer=function(){return this.container},R.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var k=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){d.translate(this.textarea,-100,0);return}var y=this.$cursorLayer.$pixelPos;if(y){M&&M.markerRange&&(y=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var A=this.layerConfig,_=y.top,w=y.left;_-=A.offset;var E=M&&M.useTextareaForIME||$.isMobile?this.lineHeight:1;if(_<0||_>A.height-E){d.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-E;if(!M)_+=this.lineHeight;else if(M.useTextareaForIME){var I=this.textarea.value;T=this.characterWidth*this.session.$getStringScreenWidth(I)[0]}else _+=this.lineHeight+2;w-=this.scrollLeft,w>this.$size.scrollerWidth-T&&(w=this.$size.scrollerWidth-T),w+=this.gutterWidth+this.margin.left,d.setStyle(k,"height",E+"px"),d.setStyle(k,"width",T+"px"),d.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min(_,O))}}},R.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},R.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},R.prototype.getLastFullyVisibleRow=function(){var k=this.layerConfig,M=k.lastRow,y=this.session.documentToScreenRow(M,0)*k.lineHeight;return y-this.session.getScrollTop()>k.height-k.lineHeight?M-1:M},R.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},R.prototype.setPadding=function(k){this.$padding=k,this.$textLayer.setPadding(k),this.$cursorLayer.setPadding(k),this.$markerFront.setPadding(k),this.$markerBack.setPadding(k),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},R.prototype.setScrollMargin=function(k,M,y,A){var _=this.scrollMargin;_.top=k|0,_.bottom=M|0,_.right=A|0,_.left=y|0,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},R.prototype.setMargin=function(k,M,y,A){var _=this.margin;_.top=k|0,_.bottom=M|0,_.right=A|0,_.left=y|0,_.v=_.top+_.bottom,_.h=_.left+_.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},R.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},R.prototype.setHScrollBarAlwaysVisible=function(k){this.setOption("hScrollBarAlwaysVisible",k)},R.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},R.prototype.setVScrollBarAlwaysVisible=function(k){this.setOption("vScrollBarAlwaysVisible",k)},R.prototype.$updateScrollBarV=function(){var k=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(k-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>k-M&&(k=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(k+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},R.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},R.prototype.freeze=function(){this.$frozen=!0},R.prototype.unfreeze=function(){this.$frozen=!1},R.prototype.$renderChanges=function(k,M){if(this.$changes&&(k|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!k&&!M){this.$changes|=k;return}if(this.$size.$dirty)return this.$changes|=k,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",k),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var y=this.layerConfig;if(k&this.CHANGE_FULL||k&this.CHANGE_SIZE||k&this.CHANGE_TEXT||k&this.CHANGE_LINES||k&this.CHANGE_SCROLL||k&this.CHANGE_H_SCROLL){if(k|=this.$computeLayerConfig()|this.$loop.clear(),y.firstRow!=this.layerConfig.firstRow&&y.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+(y.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,k=k|this.CHANGE_SCROLL,k|=this.$computeLayerConfig()|this.$loop.clear())}y=this.layerConfig,this.$updateScrollBarV(),k&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-y.offset);var _=y.width+2*this.$padding+"px",w=y.minHeight+"px";d.setStyle(this.content.style,"width",_),d.setStyle(this.content.style,"height",w)}if(k&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-y.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),k&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}if(k&this.CHANGE_SCROLL){this.$changedLines=null,k&this.CHANGE_TEXT||k&this.CHANGE_LINES?this.$textLayer.update(y):this.$textLayer.scrollLines(y),this.$showGutter&&(k&this.CHANGE_GUTTER||k&this.CHANGE_LINES?this.$gutterLayer.update(y):this.$gutterLayer.scrollLines(y)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y),this.$markerBack.update(y),this.$markerFront.update(y),this.$cursorLayer.update(y),this.$moveTextAreaToCursor(),this._signal("afterRender",k);return}k&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(y),this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):k&this.CHANGE_LINES?((this.$updateLines()||k&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):k&this.CHANGE_TEXT||k&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)):k&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(y),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(y)),k&this.CHANGE_CURSOR&&(this.$cursorLayer.update(y),this.$moveTextAreaToCursor()),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(y),k&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(y),this._signal("afterRender",k)},R.prototype.$autosize=function(){var k=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,y=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,k))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(y+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&y>this.$maxPixelHeight&&(y=this.$maxPixelHeight);var A=y<=2*this.lineHeight,_=!A&&k>M;if(y!=this.desiredHeight||this.$size.height!=this.desiredHeight||_!=this.$vScroll){_!=this.$vScroll&&(this.$vScroll=_,this.scrollBarV.setVisible(_));var w=this.container.clientWidth;this.container.style.height=y+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,y),this.desiredHeight=y,this._signal("autosize")}},R.prototype.$computeLayerConfig=function(){var k=this.session,M=this.$size,y=M.height<=2*this.lineHeight,A=this.session.getScreenLength(),_=A*this.lineHeight,w=this.$getLongestLine(),E=!y&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==E;T&&(this.$horizScroll=E,this.scrollBarH.setVisible(E));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=M.scrollerHeight+this.lineHeight,F=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;_+=F;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,_-M.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+D.right)));var W=!y&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-_+F<0||this.scrollTop>D.top),j=O!==W;j&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var H=this.scrollTop%this.lineHeight,U=Math.ceil(I/this.lineHeight)-1,K=Math.max(0,Math.round((this.scrollTop-H)/this.lineHeight)),Z=K+U,z,X,Y=this.lineHeight;K=k.screenToDocumentRow(K,0);var V=k.getFoldLine(K);V&&(K=V.start.row),z=k.documentToScreenRow(K,0),X=k.getRowLength(K)*Y,Z=Math.min(k.screenToDocumentRow(Z,0),k.getLength()-1),I=M.scrollerHeight+k.getRowLength(Z)*Y+X,H=this.scrollTop-z*Y;var ee=0;return(this.layerConfig.width!=w||T)&&(ee=this.CHANGE_H_SCROLL),(T||j)&&(ee|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),j&&(w=this.$getLongestLine())),this.layerConfig={width:w,padding:this.$padding,firstRow:K,firstRowScreen:z,lastRow:Z,lineHeight:Y,characterWidth:this.characterWidth,minHeight:I,maxHeight:_,offset:H,gutterOffset:Y?Math.max(0,Math.ceil((H+M.height-M.scrollerHeight)/Y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),ee},R.prototype.$updateLines=function(){if(this.$changedLines){var k=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var y=this.layerConfig;if(!(k>y.lastRow+1)&&!(Mthis.$textLayer.MAX_LINE_LENGTH&&(k=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(k*this.characterWidth))},R.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},R.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},R.prototype.addGutterDecoration=function(k,M){this.$gutterLayer.addGutterDecoration(k,M)},R.prototype.removeGutterDecoration=function(k,M){this.$gutterLayer.removeGutterDecoration(k,M)},R.prototype.updateBreakpoints=function(k){this.$loop.schedule(this.CHANGE_GUTTER)},R.prototype.setAnnotations=function(k){this.$gutterLayer.setAnnotations(k),this.$loop.schedule(this.CHANGE_GUTTER)},R.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},R.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},R.prototype.showCursor=function(){this.$cursorLayer.showCursor()},R.prototype.scrollSelectionIntoView=function(k,M,y){this.scrollCursorIntoView(k,y),this.scrollCursorIntoView(M,y)},R.prototype.scrollCursorIntoView=function(k,M,y){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(k),_=A.left,w=A.top,E=y&&y.top||0,T=y&&y.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+E>w?(M&&O+E>w+this.lineHeight&&(w-=M*this.$size.scrollerHeight),w===0&&(w=-this.scrollMargin.top),this.session.setScrollTop(w)):O+this.$size.scrollerHeight-T=1-this.scrollMargin.top||M>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||k<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||k>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},R.prototype.pixelToScreenCoordinates=function(k,M){var y;if(this.$hasCssTransforms){y={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([k,M]);k=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else y=this.scroller.getBoundingClientRect();var _=k+this.scrollLeft-y.left-this.$padding,w=_/this.characterWidth,E=Math.floor((M+this.scrollTop-y.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:E,column:T,side:w-T>0?1:-1,offsetX:_}},R.prototype.screenToTextCoordinates=function(k,M){var y;if(this.$hasCssTransforms){y={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([k,M]);k=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else y=this.scroller.getBoundingClientRect();var _=k+this.scrollLeft-y.left-this.$padding,w=_/this.characterWidth,E=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((M+this.scrollTop-y.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(E,0),_)},R.prototype.textToScreenCoordinates=function(k,M){var y=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(k,M),_=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,k)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),w=A.row*this.lineHeight;return{pageX:y.left+_-this.scrollLeft,pageY:y.top+w-this.scrollTop}},R.prototype.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},R.prototype.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},R.prototype.showComposition=function(k){this.$composition=k,k.cssText||(k.cssText=this.textarea.style.cssText),k.useTextareaForIME==null&&(k.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):k.markerId=this.session.addMarker(k.markerRange,"ace_composition_marker","text")},R.prototype.setCompositionText=function(k){var M=this.session.selection.cursor;this.addToken(k,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},R.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),d.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var k=this.session.selection.cursor;this.removeExtraToken(k.row,k.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},R.prototype.setGhostText=function(k,M){var y=this.session.selection.cursor,A=M||{row:y.row,column:y.column};this.removeGhostText();var _=k.split(` `);this.addToken(_[0],"ghost_text",A.row,A.column),this.$ghostText={text:k,position:{row:A.row,column:A.column}},_.length>1&&(this.$ghostTextWidget={text:_.slice(1).join(` `),row:A.row,column:A.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},R.prototype.removeGhostText=function(){if(this.$ghostText){var k=this.$ghostText.position;this.removeExtraToken(k.row,k.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},R.prototype.addToken=function(k,M,y,A){var _=this.session;_.bgTokenizer.lines[y]=null;var w={type:M,value:k},E=_.getTokens(y);if(A==null||!E.length)E.push(w);else for(var T=0,O=0;O1||Math.abs(k.$size.height-A)>1?k.$resizeTimer.delay():k.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},R}();L.prototype.CHANGE_CURSOR=1,L.prototype.CHANGE_MARKER=2,L.prototype.CHANGE_GUTTER=4,L.prototype.CHANGE_SCROLL=8,L.prototype.CHANGE_LINES=16,L.prototype.CHANGE_TEXT=32,L.prototype.CHANGE_SIZE=64,L.prototype.CHANGE_MARKER_BACK=128,L.prototype.CHANGE_MARKER_FRONT=256,L.prototype.CHANGE_FULL=512,L.prototype.CHANGE_H_SCROLL=1024,L.prototype.$changes=0,L.prototype.$padding=null,L.prototype.$frozen=!1,L.prototype.STEPS=8,u.implement(L.prototype,x),s.defineOptions(L.prototype,"renderer",{useResizeObserver:{set:function(R){!R&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):R&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(R){this.$textLayer.setShowInvisibles(R)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(R){typeof R=="number"&&(this.$printMarginColumn=R),this.$showPrintMargin=!!R,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(R){this.$gutter.style.display=R?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(R){this.$gutterLayer.$useSvgGutterIcons=R},initialValue:!1},showFoldedAnnotations:{set:function(R){this.$gutterLayer.$showFoldedAnnotations=R},initialValue:!1},fadeFoldWidgets:{set:function(R){d.setCssClass(this.$gutter,"ace_fade-fold-widgets",R)},initialValue:!1},showFoldWidgets:{set:function(R){this.$gutterLayer.setShowFoldWidgets(R),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(R){this.$textLayer.setDisplayIndentGuides(R)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(R){this.$textLayer.setHighlightIndentGuides(R)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(R){this.$gutterLayer.setHighlightGutterLine(R),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(R){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(R){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(R){typeof R=="number"&&(R=R+"px"),this.container.style.fontSize=R,this.updateFontSize()},initialValue:12},fontFamily:{set:function(R){this.container.style.fontFamily=R,this.updateFontSize()}},maxLines:{set:function(R){this.updateFull()}},minLines:{set:function(R){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(R){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(R){R=+R||0,this.$scrollPastEnd!=R&&(this.$scrollPastEnd=R,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(R){this.$gutterLayer.$fixedWidth=!!R,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(R){this.$updateCustomScrollbar(R)},initialValue:!1},theme:{set:function(R){this.setTheme(R)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!$.isMobile&&!$.isIE}}),i.VirtualRenderer=L}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,i,p){var u=n("../lib/oop"),d=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,s=n("../config");function h(c){var a="importScripts('"+d.qualifyURL(c)+"');";try{return new Blob([a],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(a),m.getBlob("application/javascript")}}function o(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var a=h(c),f=window.URL||window.webkitURL,m=f.createObjectURL(a);return new Worker(m)}return new Worker(c)}var r=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){u.implement(this,g),this.$createWorkerFromOldConfig=function(c,a,f,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),s.get("packaged")||!n.toUrl)m=m||s.moduleUrl(a,"worker");else{var b=this.$normalizePath;m=m||b(n.toUrl("ace/worker/worker.js",null,"_"));var x={};c.forEach(function(C){x[C]=b(n.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:x,module:a,classname:f}),this.$worker},this.onMessage=function(c){var a=c.data;switch(a.type){case"event":this._signal(a.name,{data:a.data});break;case"call":var f=this.callbacks[a.id];f&&(f(a.data),delete this.callbacks[a.id]);break;case"error":this.reportError(a.data);break;case"log":window.console&&console.log&&console.log.apply(console,a.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return d.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,a){this.$worker.postMessage({command:c,args:a})},this.call=function(c,a,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,a.push(m)}this.send(c,a)},this.emit=function(c,a){try{a.data&&a.data.err&&(a.data.err={message:a.data.err.message,stack:a.data.err.stack,code:a.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:a.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(r.prototype);var l=function(c,a,f){var m=null,v=!1,b=Object.create(g),x=[],C=new r({messageBuffer:x,terminate:function(){},postMessage:function($){x.push($),m&&(v?setTimeout(S):S())}});C.setEmitSync=function($){v=$};var S=function(){var $=x.shift();$.command?m[$.command].apply(m,$.args):$.event&&b._signal($.event,$.data)};return b.postMessage=function($){C.onMessage({data:$})},b.callback=function($,L){this.postMessage({type:"call",id:L,data:$})},b.emit=function($,L){this.postMessage({type:"event",name:$,data:L})},s.loadModule(["worker",a],function($){for(m=new $[f](b);x.length;)S()}),C};i.UIWorkerClient=l,i.WorkerClient=r,i.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,i,p){var u=n("./range").Range,d=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),s=function(){function h(o,r,l,c,a,f){var m=this;this.length=r,this.session=o,this.doc=o.getDocument(),this.mainClass=a,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=l;var v=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return h.prototype.setup=function(){var o=this,r=this.doc,l=this.session;this.selectionBefore=l.selection.toJSON(),l.selection.inMultiSelectMode&&l.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=l.addMarker(new u(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(a){var f=r.createAnchor(a.row,a.column);f.$insertRight=!0,f.detach(),o.others.push(f)}),l.setUndoSelect(!1)},h.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,r=this;this.othersActive=!0,this.others.forEach(function(l){l.markerId=o.addMarker(new u(l.row,l.column,l.row,l.column+r.length),r.othersClass,null,!1)})}},h.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var o=0;o=this.pos.column&&r.start.column<=this.pos.column+this.length+1,a=r.start.column-this.pos.column;if(this.updateAnchors(o),c&&(this.length+=l),c&&!this.session.$fromUndo){if(o.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+a};this.doc.insertMergedLines(v,o.lines)}else if(o.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+a};this.doc.remove(new u(v.row,v.column,v.row,v.column-l))}}this.$updating=!1,this.updateMarkers()}},h.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var r=this.others.length;r--;)this.others[r].onChange(o);this.updateMarkers()},h.prototype.updateMarkers=function(){if(!this.$updating){var o=this,r=this.session,l=function(a,f){r.removeMarker(a.markerId),a.markerId=r.addMarker(new u(a.row,a.column,a.row,a.column+o.length),f,null,!1)};l(this.pos,this.mainClass);for(var c=this.others.length;c--;)l(this.others[c],this.othersClass)}},h.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var r=this.session.selection.getCursor();r.row===this.pos.row&&r.column>=this.pos.column&&r.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},h.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},h.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),r=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,l=0;l1?d.multiSelect.joinSelections():d.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(d){d.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(d){d.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(d){d.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(d){d.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(d){return d&&d.inMultiSelectMode}}];var u=n("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new u(i.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,i,p){var u=n("./range_list").RangeList,d=n("./range").Range,g=n("./selection").Selection,s=n("./mouse/multi_select_handler").onMouseDown,h=n("./lib/event"),o=n("./lib/lang"),r=n("./commands/multi_select_commands");i.commands=r.defaultCommands.concat(r.multiSelectCommands);var l=n("./search").Search,c=new l;function a(C,S,$){return c.$options.wrap=!0,c.$options.needle=S,c.$options.backwards=$==-1,c.find(C)}var f=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,S){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var $=this.toOrientedRange();if(this.rangeList.add($),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add($),this.$onAddRange($)}C.cursor||(C.cursor=C.end);var L=this.rangeList.add(C);return this.$onAddRange(C),L.length&&this.$onRemoveRange(L),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),S||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var S=this.rangeList.substractPoint(C);if(S)return this.$onRemoveRange(S),S[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var S=this.rangeList.ranges.pop();C.push(S),this.rangeCount=0}for(var $=C.length;$--;){var L=this.ranges.indexOf(C[$]);this.ranges.splice(L,1)}this._signal("removeRange",{ranges:C}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),S=S||this.ranges[0],S&&!S.isEqual(this.getRange())&&this.fromOrientedRange(S)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new u,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],S=[],$=0;$1){var C=this.rangeList.ranges,S=C[C.length-1],$=d.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange($,S.cursor==S.start)}else{var L=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),k=this.rectangularRangeBlock(L,R);k.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,S,$){var L=[],R=C.column0;)F--;if(F>0)for(var D=0;L[D].isEmpty();)D++;for(var W=F;W>=D;W--)L[W].isEmpty()&&L.splice(W,1)}return L}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var S=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",S),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){if(C.marker){this.session.removeMarker(C.marker);var S=this.session.$selectionMarkers.indexOf(C);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var S=this.session.$selectionMarkers,$=C.length;$--;){var L=C[$];if(L.marker){this.session.removeMarker(L.marker);var R=S.indexOf(L);R!=-1&&S.splice(R,1)}}this.session.selectionMarkerCount=S.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(r.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(C){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(r.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var S=C.command,$=C.editor;if($.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?L=$.forEachSelection(S,C.args):S.multiSelectAction=="forEachLine"?L=$.forEachSelection(S,C.args,!0):S.multiSelectAction=="single"?($.exitMultiSelectMode(),L=S.exec($,C.args||{})):L=S.multiSelectAction($,C.args||{});else{var L=S.exec($,C.args||{});$.multiSelect.addRange($.multiSelect.toOrientedRange()),$.multiSelect.mergeOverlappingRanges()}return L}},this.forEachSelection=function(C,S,$){if(!this.inVirtualSelectionMode){var L=$&&$.keepOrder,R=$==!0||$&&$.$byLines,k=this.session,M=this.selection,y=M.rangeList,A=(L?M:y).ranges,_;if(!A.length)return C.exec?C.exec(this,S||{}):C(this,S||{});var w=M._eventRegistry;M._eventRegistry={};var E=new g(k);this.inVirtualSelectionMode=!0;for(var T=A.length;T--;){if(R)for(;T>0&&A[T].start.row==A[T-1].end.row;)T--;E.fromOrientedRange(A[T]),E.index=T,this.selection=k.selection=E;var O=C.exec?C.exec(this,S||{}):C(this,S||{});!_&&O!==void 0&&(_=O),E.toOrientedRange(A[T])}E.detach(),this.selection=k.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=w,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,$=[],L=0;L0);M<0&&(M=0),y>=_&&(y=_-1)}var E=this.session.removeFullLines(M,y);E=this.$reAlignText(E,A),this.session.insert({row:M,column:0},E.join(` `)+` `),A||(k.start.column=0,k.end.column=E[E.length-1].length),this.selection.setRange(k)}else{R.forEach(function(F){S.substractPoint(F.cursor)});var T=0,O=1/0,I=$.map(function(F){var D=F.cursor,W=C.getLine(D.row),j=W.substr(D.column).search(/\S/g);return j==-1&&(j=0),D.column>T&&(T=D.column),jH?C.insert(W,o.stringRepeat(" ",j-H)):C.remove(new d(W.row,W.column,W.row,W.column-j+H)),F.start.column=F.end.column=T,F.start.row=F.end.row=W.row,F.cursor=F.end}),S.fromOrientedRange($[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,S){var $=!0,L=!0,R,k,M;return C.map(function(E){var T=E.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?R==null?(R=T[1].length,k=T[2].length,M=T[3].length,T):(R+k+M!=T[1].length+T[2].length+T[3].length&&(L=!1),R!=T[1].length&&($=!1),R>T[1].length&&(R=T[1].length),kT[3].length&&(M=T[3].length),T):[E]}).map(S?A:$?L?_:A:w);function y(E){return o.stringRepeat(" ",E)}function A(E){return E[2]?y(R)+E[2]+y(k-E[2].length+M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function _(E){return E[2]?y(R+k-E[2].length)+E[2]+y(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}function w(E){return E[2]?y(R)+E[2]+y(M)+E[4].replace(/^([=:])\s+/,"$1 "):E[0]}}}).call(m.prototype);function v(C,S){return C.row==S.row&&C.column==S.column}i.onSessionChange=function(C){var S=C.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.multiSelect;var $=C.oldSession;$&&($.multiSelect.off("addRange",this.$onAddRange),$.multiSelect.off("removeRange",this.$onRemoveRange),$.multiSelect.off("multiSelect",this.$onMultiSelect),$.multiSelect.off("singleSelect",this.$onSingleSelect),$.multiSelect.lead.off("change",this.$checkMultiselectChange),$.multiSelect.anchor.off("change",this.$checkMultiselectChange)),S&&(S.multiSelect.on("addRange",this.$onAddRange),S.multiSelect.on("removeRange",this.$onRemoveRange),S.multiSelect.on("multiSelect",this.$onMultiSelect),S.multiSelect.on("singleSelect",this.$onSingleSelect),S.multiSelect.lead.on("change",this.$checkMultiselectChange),S.multiSelect.anchor.on("change",this.$checkMultiselectChange)),S&&this.inMultiSelectMode!=S.selection.inMultiSelectMode&&(S.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function b(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=i.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",s),C.commands.addCommands(r.defaultCommands),x(C))}function x(C){if(!C.textInput)return;var S=C.textInput.getElement(),$=!1;h.addListener(S,"keydown",function(R){var k=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);C.$blockSelectEnabled&&k?$||(C.renderer.setMouseCursor("crosshair"),$=!0):$&&L()},C),h.addListener(S,"keyup",L,C),h.addListener(S,"blur",L,C);function L(R){$&&(C.renderer.setMouseCursor(""),$=!1)}}i.MultiSelect=b,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(C){b(this),C?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,i,p){var u=n("../../range").Range,d=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,s,h){var o=g.getLine(h);return this.foldingStartMarker.test(o)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,s,h){return null},this.indentationBlock=function(g,s,h){var o=/\S/,r=g.getLine(s),l=r.search(o);if(l!=-1){for(var c=h||r.length,a=g.getLength(),f=s,m=s;++sf){var x=g.getLine(m).length;return new u(f,c,m,x)}}},this.openingBracketBlock=function(g,s,h,o,r){var l={row:h,column:o+1},c=g.$findClosingBracket(s,l,r);if(c){var a=g.foldWidgets[c.row];return a==null&&(a=g.getFoldWidget(c.row)),a=="start"&&c.row>l.row&&(c.row--,c.column=g.getLine(c.row).length),u.fromPoints(l,c)}},this.closingBracketBlock=function(g,s,h,o,r){var l={row:h,column:o},c=g.$findOpeningBracket(s,l);if(c)return c.column++,l.column--,u.fromPoints(c,l)}}).call(d.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,i,p){var u=n("../line_widgets").LineWidgets,d=n("../lib/dom"),g=n("../range").Range,s=n("../config").nls;function h(r,l,c){for(var a=0,f=r.length-1;a<=f;){var m=a+f>>1,v=c(l,r[m]);if(v>0)a=m+1;else if(v<0)f=m-1;else return m}return-(a+1)}function o(r,l,c){var a=r.getAnnotations().sort(g.comparePoints);if(a.length){var f=h(a,{row:l,column:-1},g.comparePoints);f<0&&(f=-f-1),f>=a.length?f=c>0?0:a.length-1:f===0&&c<0&&(f=a.length-1);var m=a[f];if(!(!m||!c)){if(m.row===l){do m=a[f+=c];while(m&&m.row===l);if(!m)return a.slice()}var v=[];l=m.row;do v[c<0?"unshift":"push"](m),m=a[f+=c];while(m&&m.row==l);return v.length&&v}}}i.showErrorMarker=function(r,l){var c=r.session;c.widgetManager||(c.widgetManager=new u(c),c.widgetManager.attach(r));var a=r.getCursorPosition(),f=a.row,m=c.widgetManager.getWidgetsAtRow(f).filter(function(k){return k.type=="errorMarker"})[0];m?m.destroy():f-=l;var v=o(c,f,l),b;if(v){var x=v[0];a.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,a.row=x.row,b=r.renderer.$gutterLayer.$annotations[a.row]}else{if(m)return;b={text:[s("Looks good!")],className:"ace_ok"}}r.session.unfold(a.row),r.selection.moveToPosition(a);var C={row:a.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},S=C.el.appendChild(d.createElement("div")),$=C.el.appendChild(d.createElement("div"));$.className="error_widget_arrow "+b.className;var L=r.renderer.$cursorLayer.getPixelPosition(a).left;$.style.left=L+r.renderer.gutterWidth-5+"px",C.el.className="error_widget_wrapper",S.className="error_widget "+b.className,S.innerHTML=b.text.join("
"),S.appendChild(d.createElement("div"));var R=function(k,M,y){if(M===0&&(y==="esc"||y==="return"))return C.destroy(),{command:"null"}};C.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(R),c.widgetManager.removeLineWidget(C),r.off("changeSelection",C.destroy),r.off("changeSession",C.destroy),r.off("mouseup",C.destroy),r.off("change",C.destroy))},r.keyBinding.addKeyboardHandler(R),r.on("changeSelection",C.destroy),r.on("changeSession",C.destroy),r.on("mouseup",C.destroy),r.on("change",C.destroy),r.session.widgetManager.addLineWidget(C),C.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:C.el.offsetHeight})},d.importCssString(` .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; } `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(n,i,p){n("./loader_build")(i);var u=n("./lib/dom"),d=n("./range").Range,g=n("./editor").Editor,s=n("./edit_session").EditSession,h=n("./undomanager").UndoManager,o=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),i.config=n("./config"),i.edit=function(r,l){if(typeof r=="string"){var c=r;if(r=document.getElementById(c),!r)throw new Error("ace.edit can't find div #"+c)}if(r&&r.env&&r.env.editor instanceof g)return r.env.editor;var a="";if(r&&/input|textarea/i.test(r.tagName)){var f=r;a=f.value,r=u.createElement("pre"),f.parentNode.replaceChild(r,f)}else r&&(a=r.textContent,r.innerHTML="");var m=i.createEditSession(a),v=new g(new o(r),m,l),b={document:m,editor:v,onResize:v.resize.bind(v,null)};return f&&(b.textarea=f),v.on("destroy",function(){b.editor.container.env=null}),v.container.env=v.env=b,v},i.createEditSession=function(r,l){var c=new s(r,l);return c.setUndoManager(new h),c},i.Range=d,i.Editor=g,i.EditSession=s,i.UndoManager=h,i.VirtualRenderer=o,i.version=i.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=n);for(var p in n)n.hasOwnProperty(p)&&(i.ace[p]=n[p]);i.ace.default=i.ace,e&&(e.exports=i.ace)})}()})(sp);var U2=sp.exports;const El=un(U2),z2="/assets/mode-yaml-24faa242.js",V2="data:application/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";El.config.setModuleUrl("ace/mode/yaml",z2);El.config.setModuleUrl("ace/theme/monokai",V2);var ap=function(){if(typeof Map<"u")return Map;function e(t,n){var i=-1;return t.some(function(p,u){return p[0]===n?(i=u,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var i=e(this.__entries__,n),p=this.__entries__[i];return p&&p[1]},t.prototype.set=function(n,i){var p=e(this.__entries__,n);~p?this.__entries__[p][1]=i:this.__entries__.push([n,i])},t.prototype.delete=function(n){var i=this.__entries__,p=e(i,n);~p&&i.splice(p,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,i){i===void 0&&(i=null);for(var p=0,u=this.__entries__;p0},e.prototype.connect_=function(){!$a||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Z2?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!$a||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=n===void 0?"":n,p=X2.some(function(u){return!!~i.indexOf(u)});p&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),lp=function(e,t){for(var n=0,i=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof xi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ox(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof xi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new sx(i.target,i.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),up=typeof WeakMap<"u"?new WeakMap:new ap,hp=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Q2.getInstance(),i=new ax(t,n,this);up.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){hp.prototype[e]=function(){var t;return(t=up.get(this))[e].apply(t,arguments)}});var lx=function(){return typeof ko.ResizeObserver<"u"?ko.ResizeObserver:hp}();const Au=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],fp=$e({name:"VAceEditor",props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...Au],render(){return Oi("div")},mounted(){const e=this._editor=Wo(El.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,e.on("change",()=>{if(this._isSettingContent)return;const t=e.getValue();this._contentBackup=t,this.$emit("update:value",t)}),Au.forEach(t=>{const n="on"+Ri(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new lx(()=>e.resize()),this._ro.observe(this.$el),this.$emit("init",e)},beforeUnmount(){var e,t;(e=this._ro)===null||e===void 0||e.disconnect(),(t=this._editor)===null||t===void 0||t.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()},getAceInstance(){return this._editor}},watch:{value(e){if(this._contentBackup!==e){try{this._isSettingContent=!0,this._editor.setValue(e,1)}finally{this._isSettingContent=!1}this._contentBackup=e}},theme(e){this._editor.setTheme("ace/theme/"+e)},options(e){this._editor.setOptions(e)},readonly(e){this._editor.setReadOnly(e)},placeholder(e){this._editor.setOption("placeholder",e)},wrap(e){this._editor.setWrapBehavioursEnabled(e)},printMargin(e){this._editor.setOption("printMargin",e)},lang(e){this._editor.setOption("mode","ace/mode/"+e)},minLines(e){this._editor.setOption("minLines",e)},maxLines(e){this._editor.setOption("maxLines",e)}}}),cx=$e({name:"RuleInputForm",components:{VAceEditor:fp},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=yi(e,"yaml");return Rh(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),ux={class:"block"};function hx(e,t,n,i,p,u){const d=fe("VAceEditor");return q(),oe("div",ux,[he(d,{class:"vue-ace-editor",value:e.yamlInput,"onUpdate:value":t[0]||(t[0]=g=>e.yamlInput=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])])}const dp=xe(cx,[["render",hx]]),fx=$e({name:"EditRule",components:{InputForm:dp,ErrorMessage:hn},props:{rule:{type:Object,required:!0}},setup(e){const t=Ii(),n=yi(e,"rule"),i=yi(n.value,"yaml"),p=e$();return{edit:async()=>{const g=await p.perform({id:e.rule.id,yaml:i.value});t.push({name:"Rule",params:{id:g.id}})},yaml:i,updateYAML:g=>{i.value=g},updateRuleTask:p}}}),dx={class:"column"},px={class:"is-size-2 mb-4"},gx={class:"field is-grouped is-grouped-centered"},mx={class:"control"},vx={class:"icon is-small"},yx=N("span",null,"Edit",-1),bx={key:0},wx=N("hr",null,null,-1);function $x(e,t,n,i,p,u){var h,o;const d=fe("InputForm"),g=fe("font-awesome-icon"),s=fe("ErrorMessage");return q(),oe("div",dx,[N("h2",px,"Edit rule: "+Ae(e.rule.id),1),he(d,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",gx,[N("p",mx,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.edit&&e.edit(...r))},[N("span",vx,[he(g,{icon:"edit"})]),yx])])]),(h=e.updateRuleTask.last)!=null&&h.error?(q(),oe("div",bx,[wx,he(s,{error:(o=e.updateRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const _x=xe(fx,[["render",$x]]),Cx=$e({name:"EditRuleWrapper",components:{EditRule:_x,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Dd(),n=async()=>{await t.perform(e.id)};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t}}});function Sx(e,t,n,i,p,u){var h,o;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("EditRule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Me(d,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Me(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Me(s,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):we("",!0)],64)}const Ax=xe(Cx,[["render",Sx]]),xx=$e({name:"EditRuleView",components:{EditRule:Ax},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ni(`Edit rule:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function kx(e,t,n,i,p,u){const d=fe("EditRule",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const Ex=xe(xx,[["render",kx]]);function Rx(e){for(var t=[],n=1;n1&&arguments[1]!==void 0?arguments[1]:0,n=(it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]).toLowerCase();if(!Ox(n))throw TypeError("Stringified UUID is invalid");return n}function Fx(e,t,n){e=e||{};var i=e.random||(e.rng||Lx)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(var p=0;p<16;++p)t[n+p]=i[p];return t}return Ix(i)}function Nx(){const e=Fx(),t=Pi();return Rx`--- id: ${e} title: Title goes here description: Description goes here created_on: ${t.format("YYYY-MM-DD")} queries: []`}const Px=$e({name:"NewRule",components:{InputForm:dp,ErrorMessage:hn},setup(){const e=Ii(),t=Ie(Nx()),n=q1();return{yaml:t,create:async()=>{const u=await n.perform({yaml:t.value});e.push({name:"Rule",params:{id:u.id}})},updateYAML:u=>{t.value=u},createRuleTask:n}}}),Dx={class:"column"},Bx=N("h2",{class:"is-size-2 mb-4"},"New rule",-1),Wx={class:"field is-grouped is-grouped-centered"},Hx={class:"control"},Ux={class:"icon is-small"},zx=N("span",null,"Create",-1),Vx={key:0},jx=N("hr",null,null,-1);function Gx(e,t,n,i,p,u){var h,o;const d=fe("InputForm"),g=fe("font-awesome-icon"),s=fe("ErrorMessage");return q(),oe("div",Dx,[Bx,he(d,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=r=>e.yaml=r),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),N("div",Wx,[N("p",Hx,[N("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...r)=>e.create&&e.create(...r))},[N("span",Ux,[he(g,{icon:"plus"})]),zx])])]),(h=e.createRuleTask.last)!=null&&h.error?(q(),oe("div",Vx,[jx,he(s,{error:(o=e.createRuleTask.last)==null?void 0:o.error},null,8,["error"])])):we("",!0)])}const Kx=xe(Px,[["render",Gx]]),Yx=$e({name:"NewRuleView",components:{NewRule:Kx},setup(){const e=()=>{ni("New rule - Mihari")};tt(()=>{e()})}});function Xx(e,t,n,i,p,u){const d=fe("NewRule",!0);return q(),Me(d)}const Zx=xe(Yx,[["render",Xx]]),Qx=$e({name:"YAML",components:{VAceEditor:fp},props:{yaml:{type:String,required:!0}},setup(){}}),Jx={class:"block"};function qx(e,t,n,i,p,u){const d=fe("VAceEditor");return q(),oe("div",Jx,[he(d,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const ek=xe(Qx,[["render",qx]]),tk=$e({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{YAML:ek,Alerts:Zd,Loading:fn,ErrorMessage:hn},emits:["refresh"],setup(e,t){const n=Ii(),i=Q1(),p=J1();return{deleteRule:async()=>{window.confirm(`Are you sure you want to delete ${e.rule.id}?`)&&(await i.perform(e.rule.id),n.push("/"))},runRule:async()=>{await p.perform(e.rule.id),t.emit("refresh")},runRuleTask:p}}}),nk={class:"column"},ik={key:0},rk=N("hr",null,null,-1),ok={key:1},sk=N("hr",null,null,-1),ak=N("h2",{class:"is-size-2 mb-4"},"Rule",-1),lk={class:"block is-clearfix"},ck={class:"buttons is-pulled-right"},uk=N("span",null,"Run",-1),hk={class:"icon is-small"},fk=N("span",null,"Edit",-1),dk={class:"icon is-small"},pk=N("span",null,"Delete",-1),gk={class:"icon is-small"},mk=N("hr",null,null,-1),vk={class:"column"},yk=N("h2",{class:"is-size-2 mb-4"},"Related alerts",-1);function bk(e,t,n,i,p,u){var l;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("font-awesome-icon"),h=fe("router-link"),o=fe("YAML"),r=fe("Alerts");return q(),oe(Se,null,[N("div",nk,[e.runRuleTask.isRunning?(q(),oe("div",ik,[he(d),rk])):we("",!0),(l=e.runRuleTask.last)!=null&&l.error?(q(),oe("div",ok,[he(g,{error:e.runRuleTask.last.error},null,8,["error"]),sk])):we("",!0),ak,N("p",lk,[N("span",ck,[N("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...c)=>e.runRule&&e.runRule(...c))},[uk,N("span",hk,[he(s,{icon:"arrow-right"})])]),he(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:xt(()=>[fk,N("span",dk,[he(s,{icon:"edit"})])]),_:1},8,["to"]),N("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...c)=>e.deleteRule&&e.deleteRule(...c))},[pk,N("span",gk,[he(s,{icon:"times"})])])])]),he(o,{yaml:e.rule.yaml},null,8,["yaml"])]),mk,N("div",vk,[yk,he(r,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const wk=xe(tk,[["render",bk]]),$k=$e({name:"RuleWrapper",components:{Rule:wk,Loading:fn,ErrorMessage:hn},props:{id:{type:String,required:!0}},setup(e){const t=Dd(),n=async()=>{await t.perform(e.id)},i=async()=>{await n()};return tt(async()=>{await n()}),Ye(e,async()=>{await n()}),{getRuleTask:t,refresh:i}}});function _k(e,t,n,i,p,u){var h,o;const d=fe("Loading"),g=fe("ErrorMessage"),s=fe("Rule");return q(),oe(Se,null,[e.getRuleTask.isRunning?(q(),Me(d,{key:0})):we("",!0),e.getRuleTask.isError?(q(),Me(g,{key:1,error:(h=e.getRuleTask.last)==null?void 0:h.error},null,8,["error"])):we("",!0),(o=e.getRuleTask.last)!=null&&o.value?(q(),Me(s,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.refresh},null,8,["rule","onRefresh"])):we("",!0)],64)}const Ck=xe($k,[["render",_k]]),Sk=$e({name:"RuleView",components:{Rule:Ck},props:{id:{type:String,required:!0}},setup(e){const t=()=>{ni(`Rule:${e.id} - Mihari`)};tt(()=>{t()}),Ye(()=>e.id,()=>{t()})}});function Ak(e,t,n,i,p,u){const d=fe("Rule",!0);return q(),Me(d,{id:e.id},null,8,["id"])}const xk=xe(Sk,[["render",Ak]]),kk=$e({name:"RulesForm",props:{tags:{type:Array,required:!0},page:{type:Number,required:!0},tag:{type:String,required:!1}},setup(e){const t=ts(),n=Ie(void 0),i=Ie(void 0),p=yi(e,"tag"),u=Ie(void 0),d=Ie(void 0),g=()=>{const h=t.query.tag;p.value===void 0&&(p.value=jd(h))},s=()=>(g(),{description:n.value===""?void 0:n.value,page:e.page,tag:p.value===""?void 0:p.value,title:u.value===""?void 0:u.value,toAt:d.value===""?void 0:d.value,fromAt:i.value===""?void 0:i.value});return Ye(()=>e.tag,()=>{p.value=e.tag}),{description:n,fromAt:i,getSearchParams:s,title:u,toAt:d,tagInput:p}}}),Ek={class:"columns"},Rk={class:"column"},Tk={class:"field is-horizontal"},Lk=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Title")],-1),Mk={class:"field-body"},Ok={class:"field"},Ik={class:"control"},Fk={class:"column"},Nk={class:"field is-horizontal"},Pk=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Description")],-1),Dk={class:"field-body"},Bk={class:"field"},Wk={class:"control"},Hk={class:"columns"},Uk={class:"column"},zk={class:"field is-horizontal"},Vk=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"Tag")],-1),jk={class:"field-body"},Gk={class:"field"},Kk={class:"control"},Yk={class:"select"},Xk=N("option",null,null,-1),Zk=N("div",{class:"column"},null,-1),Qk={class:"columns"},Jk={class:"column"},qk={class:"field is-horizontal"},eE=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"From")],-1),tE={class:"field-body"},nE={class:"field"},iE={class:"control"},rE={class:"column"},oE={class:"field is-horizontal"},sE=N("div",{class:"field-label is-normal"},[N("label",{class:"label"},"To")],-1),aE={class:"field-body"},lE={class:"field"},cE={class:"control"};function uE(e,t,n,i,p,u){return q(),oe(Se,null,[N("div",Ek,[N("div",Rk,[N("div",Tk,[Lk,N("div",Mk,[N("div",Ok,[N("p",Ik,[Mt(N("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=d=>e.title=d)},null,512),[[Ft,e.title]])])])])])]),N("div",Fk,[N("div",Nk,[Pk,N("div",Dk,[N("div",Bk,[N("p",Wk,[Mt(N("input",{class:"input",type:"text","onUpdate:modelValue":t[1]||(t[1]=d=>e.description=d)},null,512),[[Ft,e.description]])])])])])])]),N("div",Hk,[N("div",Uk,[N("div",zk,[Vk,N("div",jk,[N("div",Gk,[N("div",Kk,[N("div",Yk,[Mt(N("select",{"onUpdate:modelValue":t[2]||(t[2]=d=>e.tagInput=d)},[Xk,(q(!0),oe(Se,null,ct(e.tags,d=>(q(),oe("option",{key:d},Ae(d),1))),128))],512),[[vr,e.tagInput]])])])])])])]),Zk]),N("div",Qk,[N("div",Jk,[N("div",qk,[eE,N("div",tE,[N("div",nE,[N("p",iE,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[3]||(t[3]=d=>e.fromAt=d)},null,512),[[Ft,e.fromAt]])])])])])]),N("div",rE,[N("div",oE,[sE,N("div",aE,[N("div",lE,[N("p",cE,[Mt(N("input",{class:"input",type:"date","onUpdate:modelValue":t[4]||(t[4]=d=>e.toAt=d)},null,512),[[Ft,e.toAt]])])])])])])])],64)}const hE=xe(kk,[["render",uE]]),fE=$e({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:Gd,Tags:Bd},emits:["update-page","refresh-page","update-tag"],setup(e,t){const n=()=>{window.scrollTo({top:0})},i=g=>{n(),t.emit("update-page",g)},p=()=>{n(),t.emit("refresh-page")},u=g=>{n(),t.emit("update-tag",g)},d=Ee(()=>e.rules.rules.length>0);return{updatePage:i,refreshPage:p,updateTag:u,hasRules:d}}}),dE={key:0},pE={class:"table is-fullwidth"},gE=N("tr",null,[N("th",null,"ID"),N("th",null,"Title"),N("th",null,"Description"),N("th",null,"Tags")],-1),mE={class:"help"};function vE(e,t,n,i,p,u){const d=fe("router-link"),g=fe("Tags"),s=fe("Pagination");return q(),oe(Se,null,[e.hasRules?(q(),oe("div",dE,[N("table",pE,[gE,(q(!0),oe(Se,null,ct(e.rules.rules,h=>(q(),oe("tr",{key:h.id},[N("td",null,[he(d,{to:{name:"Rule",params:{id:h.id}}},{default:xt(()=>[at(Ae(h.id),1)]),_:2},1032,["to"])]),N("td",null,Ae(h.title),1),N("td",null,Ae(h.description),1),N("td",null,[he(g,{tags:h.tags,onUpdateTag:e.updateTag},null,8,["tags","onUpdateTag"])])]))),128))])])):we("",!0),he(s,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.updatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),N("p",mE,"("+Ae(e.rules.total)+" results in total, "+Ae(e.rules.rules.length)+" shown)",1)],64)}const yE=xe(fE,[["render",vE]]),bE=$e({name:"RulesWrapper",components:{Rules:yE,Loading:fn,FormComponent:hE,ErrorMessage:hn},setup(){const e=Ie(1),t=Ie(void 0),n=Ie(),i=Z1(),p=Nd(),u=async()=>{var l;const r=(l=n.value)==null?void 0:l.getSearchParams();return await i.perform(r)},d=r=>{e.value=r},g=()=>{e.value=1},s=async()=>{g(),await u()},h=r=>{t.value===r?t.value=void 0:t.value=r,Vt(async()=>await s())},o=async()=>{await s()};return tt(async()=>{p.perform(),await u()}),Ye([e,t],async()=>{Vt(async()=>await u())}),{form:n,getRulesTask:i,getTagsTask:p,page:e,tag:t,refreshPage:o,search:s,updatePage:d,updateTag:h}}}),wE={class:"box mb-6"},$E=N("hr",null,null,-1),_E={class:"column"},CE={class:"field is-grouped is-grouped-centered"},SE={class:"control"},AE={class:"icon is-small"},xE=N("span",null,"Search",-1),kE={key:0},EE=N("hr",null,null,-1);function RE(e,t,n,i,p,u){var r,l,c;const d=fe("FormComponent"),g=fe("font-awesome-icon"),s=fe("Loading"),h=fe("ErrorMessage"),o=fe("Rules");return q(),oe(Se,null,[N("div",wE,[he(d,{ref:"form",tags:((r=e.getTagsTask.last)==null?void 0:r.value)||[],page:e.page,tag:e.tag},null,8,["tags","page","tag"]),$E,N("div",_E,[N("div",CE,[N("p",SE,[N("a",{class:"button is-primary",onClick:t[0]||(t[0]=(...a)=>e.search&&e.search(...a))},[N("span",AE,[he(g,{icon:"search"})]),xE])])])])]),e.getRulesTask.performCount>0?(q(),oe("div",kE,[EE,e.getRulesTask.isRunning?(q(),Me(s,{key:0})):we("",!0),e.getRulesTask.isError?(q(),Me(h,{key:1,error:(l=e.getRulesTask.last)==null?void 0:l.error},null,8,["error"])):we("",!0),(c=e.getRulesTask.last)!=null&&c.value?(q(),Me(o,{key:2,rules:e.getRulesTask.last.value,onRefreshPage:e.refreshPage,onUpdatePage:e.updatePage,onUpdateTag:e.updateTag},null,8,["rules","onRefreshPage","onUpdatePage","onUpdateTag"])):we("",!0)])):we("",!0)],64)}const TE=xe(bE,[["render",RE]]),LE=$e({name:"RulesView",components:{Rules:TE},setup(){ni("Rules - Mihari")}});function ME(e,t,n,i,p,u){const d=fe("Rules",!0);return q(),Me(d)}const OE=xe(LE,[["render",ME]]),IE=[{path:"/",name:"Alerts",component:CC},{path:"/configs",name:"Configs",component:H2},{path:"/artifacts/:id",name:"Artifact",component:w2,props:!0},{path:"/rules",name:"Rules",component:OE},{path:"/rules/new",name:"NewRule",component:Zx},{path:"/rules/:id",name:"Rule",component:xk,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:Ex,props:!0}],FE=Jb({history:pb(),routes:IE});Xg.add(em,cm,qg,um,nm,Qg,om,rm,lm,am);const pp=If(X0);pp.component("font-awesome-icon",I0);pp.use(FE).mount("#app");