var Jg=Object.defineProperty;var em=(e,t,n)=>t in e?Jg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fe=(e,t,n)=>(em(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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function Xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;l--){var s=n[l],u=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(u)>-1&&(r=s)}return it.head.insertBefore(t,r),e}}var Am="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Wi(){for(var e=12,t="";e-- >0;)t+=Am[Math.random()*62|0];return t}function oi(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ql(e){return e.classList?oi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function af(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function km(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(af(e[n]),'" ')},"").trim()}function Io(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ql(e){return e.size!==rn.size||e.x!==rn.x||e.y!==rn.y||e.rotate!==rn.rotate||e.flipX||e.flipY}function xm(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,l={transform:"translate(".concat(n/2," 256)")},s="translate(".concat(t.x*32,", ").concat(t.y*32,") "),u="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),d="rotate(".concat(t.rotate," 0 0)"),o={transform:"".concat(s," ").concat(u," ").concat(d)},p={transform:"translate(".concat(r/2*-1," -256)")};return{outer:l,inner:o,path:p}}function Em(e){var t=e.transform,n=e.width,r=n===void 0?qa:n,l=e.height,s=l===void 0?qa:l,u=e.startCentered,d=u===void 0?!1:u,o="";return d&&Jh?o+="translate(".concat(t.x/Tn-r/2,"em, ").concat(t.y/Tn-s/2,"em) "):d?o+="translate(calc(-50% + ".concat(t.x/Tn,"em), calc(-50% + ").concat(t.y/Tn,"em)) "):o+="translate(".concat(t.x/Tn,"em, ").concat(t.y/Tn,"em) "),o+="scale(".concat(t.size/Tn*(t.flipX?-1:1),", ").concat(t.size/Tn*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var Rm=`: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-sharp-thin: normal 100 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 lf(){var e=ef,t=tf,n=xe.cssPrefix,r=xe.replacementClass,l=Rm;if(n!==e||r!==t){var s=new RegExp("\\.".concat(e,"\\-"),"g"),u=new RegExp("\\--".concat(e,"\\-"),"g"),d=new RegExp("\\.".concat(t),"g");l=l.replace(s,".".concat(n,"-")).replace(u,"--".concat(n,"-")).replace(d,".".concat(r))}return l}var ru=!1;function Ca(){xe.autoAddCss&&!ru&&(Cm(lf()),ru=!0)}var Tm={mixout:function(){return{dom:{css:lf,insertCss:Ca}}},hooks:function(){return{beforeDOMElementCreation:function(){Ca()},beforeI2svg:function(){Ca()}}}},Sn=zn||{};Sn[$n]||(Sn[$n]={});Sn[$n].styles||(Sn[$n].styles={});Sn[$n].hooks||(Sn[$n].hooks={});Sn[$n].shims||(Sn[$n].shims=[]);var Yt=Sn[$n],cf=[],Lm=function e(){it.removeEventListener("DOMContentLoaded",e),ao=1,cf.map(function(t){return t()})},ao=!1;kn&&(ao=(it.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(it.readyState),ao||it.addEventListener("DOMContentLoaded",Lm));function Mm(e){kn&&(ao?setTimeout(e,0):cf.push(e))}function ds(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,l=e.children,s=l===void 0?[]:l;return typeof e=="string"?af(e):"<".concat(t," ").concat(km(r),">").concat(s.map(ds).join(""),"")}function iu(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Om=function(t,n){return function(r,l,s,u){return t.call(n,r,l,s,u)}},Aa=function(t,n,r,l){var s=Object.keys(t),u=s.length,d=l!==void 0?Om(n,l):n,o,p,a;for(r===void 0?(o=1,a=t[s[0]]):(o=0,a=r);o=55296&&l<=56319&&n=55296&&r<=56319&&n>t+1&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(r-55296)*1024+l-56320+65536:r}function su(e){return Object.keys(e).reduce(function(t,n){var r=e[n],l=!!r.icon;return l?t[r.iconName]=r.icon:t[n]=r,t},{})}function el(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,l=r===void 0?!1:r,s=su(t);typeof Yt.hooks.addPack=="function"&&!l?Yt.hooks.addPack(e,su(t)):Yt.styles[e]=be(be({},Yt.styles[e]||{}),s),e==="fas"&&el("fa",t)}var Os,Is,Ns,Ir=Yt.styles,Dm=Yt.shims,Fm=(Os={},dt(Os,rt,Object.values(Pi[rt])),dt(Os,ut,Object.values(Pi[ut])),Os),Jl=null,uf={},hf={},ff={},df={},pf={},Pm=(Is={},dt(Is,rt,Object.keys(Di[rt])),dt(Is,ut,Object.keys(Di[ut])),Is);function Bm(e){return~bm.indexOf(e)}function Wm(e,t){var n=t.split("-"),r=n[0],l=n.slice(1).join("-");return r===e&&l!==""&&!Bm(l)?l:null}var gf=function(){var t=function(s){return Aa(Ir,function(u,d,o){return u[o]=Aa(d,s,{}),u},{})};uf=t(function(l,s,u){if(s[3]&&(l[s[3]]=u),s[2]){var d=s[2].filter(function(o){return typeof o=="number"});d.forEach(function(o){l[o.toString(16)]=u})}return l}),hf=t(function(l,s,u){if(l[u]=u,s[2]){var d=s[2].filter(function(o){return typeof o=="string"});d.forEach(function(o){l[o]=u})}return l}),pf=t(function(l,s,u){var d=s[2];return l[u]=u,d.forEach(function(o){l[o]=u}),l});var n="far"in Ir||xe.autoFetchSvg,r=Aa(Dm,function(l,s){var u=s[0],d=s[1],o=s[2];return d==="far"&&!n&&(d="fas"),typeof u=="string"&&(l.names[u]={prefix:d,iconName:o}),typeof u=="number"&&(l.unicodes[u.toString(16)]={prefix:d,iconName:o}),l},{names:{},unicodes:{}});ff=r.names,df=r.unicodes,Jl=No(xe.styleDefault,{family:xe.familyDefault})};Sm(function(e){Jl=No(e.styleDefault,{family:xe.familyDefault})});gf();function ec(e,t){return(uf[e]||{})[t]}function Hm(e,t){return(hf[e]||{})[t]}function or(e,t){return(pf[e]||{})[t]}function mf(e){return ff[e]||{prefix:null,iconName:null}}function Um(e){var t=df[e],n=ec("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function jn(){return Jl}var tc=function(){return{prefix:null,iconName:null,rest:[]}};function No(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?rt:n,l=Di[r][e],s=Fi[r][e]||Fi[r][l],u=e in Yt.styles?e:null;return s||u||null}var ou=(Ns={},dt(Ns,rt,Object.keys(Pi[rt])),dt(Ns,ut,Object.keys(Pi[ut])),Ns);function Do(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,l=r===void 0?!1:r,s=(t={},dt(t,rt,"".concat(xe.cssPrefix,"-").concat(rt)),dt(t,ut,"".concat(xe.cssPrefix,"-").concat(ut)),t),u=null,d=rt;(e.includes(s[rt])||e.some(function(p){return ou[rt].includes(p)}))&&(d=rt),(e.includes(s[ut])||e.some(function(p){return ou[ut].includes(p)}))&&(d=ut);var o=e.reduce(function(p,a){var i=Wm(xe.cssPrefix,a);if(Ir[a]?(a=Fm[d].includes(a)?dm[d][a]:a,u=a,p.prefix=a):Pm[d].indexOf(a)>-1?(u=a,p.prefix=No(a,{family:d})):i?p.iconName=i:a!==xe.replacementClass&&a!==s[rt]&&a!==s[ut]&&p.rest.push(a),!l&&p.prefix&&p.iconName){var c=u==="fa"?mf(p.iconName):{},h=or(p.prefix,p.iconName);c.prefix&&(u=null),p.iconName=c.iconName||h||p.iconName,p.prefix=c.prefix||p.prefix,p.prefix==="far"&&!Ir.far&&Ir.fas&&!xe.autoFetchSvg&&(p.prefix="fas")}return p},tc());return(e.includes("fa-brands")||e.includes("fab"))&&(o.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(o.prefix="fad"),!o.prefix&&d===ut&&(Ir.fass||xe.autoFetchSvg)&&(o.prefix="fass",o.iconName=or(o.prefix,o.iconName)||o.iconName),(o.prefix==="fa"||u==="fa")&&(o.prefix=jn()||"fas"),o}var Vm=function(){function e(){tm(this,e),this.definitions={}}return nm(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,l=new Array(r),s=0;s0&&a.forEach(function(i){typeof i=="string"&&(n[d][i]=p)}),n[d][o]=p}),n}}]),e}(),au=[],Nr={},Pr={},zm=Object.keys(Pr);function jm(e,t){var n=t.mixoutsTo;return au=e,Nr={},Object.keys(Pr).forEach(function(r){zm.indexOf(r)===-1&&delete Pr[r]}),au.forEach(function(r){var l=r.mixout?r.mixout():{};if(Object.keys(l).forEach(function(u){typeof l[u]=="function"&&(n[u]=l[u]),oo(l[u])==="object"&&Object.keys(l[u]).forEach(function(d){n[u]||(n[u]={}),n[u][d]=l[u][d]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(u){Nr[u]||(Nr[u]=[]),Nr[u].push(s[u])})}r.provides&&r.provides(Pr)}),n}function tl(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),l=2;l1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return kn?(gr("beforeI2svg",t),Cn("pseudoElements2svg",t),Cn("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;xe.autoReplaceSvg===!1&&(xe.autoReplaceSvg=!0),xe.observeMutations=!0,Mm(function(){Zm({autoReplaceSvgRoot:n}),gr("watch",t)})}},Ym={icon:function(t){if(t===null)return null;if(oo(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:or(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],r=No(t[0]);return{prefix:r,iconName:or(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(xe.cssPrefix,"-"))>-1||t.match(pm))){var l=Do(t.split(" "),{skipLookups:!0});return{prefix:l.prefix||jn(),iconName:or(l.prefix,l.iconName)||l.iconName}}if(typeof t=="string"){var s=jn();return{prefix:s,iconName:or(s,t)||t}}}},Wt={noAuto:Gm,config:xe,dom:Km,parse:Ym,library:vf,findIconDefinition:nl,toHtml:ds},Zm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?it:n;(Object.keys(Yt.styles).length>0||xe.autoFetchSvg)&&kn&&xe.autoReplaceSvg&&Wt.dom.i2svg({node:r})};function Fo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ds(r)})}}),Object.defineProperty(e,"node",{get:function(){if(kn){var r=it.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Xm(e){var t=e.children,n=e.main,r=e.mask,l=e.attributes,s=e.styles,u=e.transform;if(Ql(u)&&n.found&&!r.found){var d=n.width,o=n.height,p={x:d/o/2,y:.5};l.style=Io(be(be({},s),{},{"transform-origin":"".concat(p.x+u.x/16,"em ").concat(p.y+u.y/16,"em")}))}return[{tag:"svg",attributes:l,children:t}]}function qm(e){var t=e.prefix,n=e.iconName,r=e.children,l=e.attributes,s=e.symbol,u=s===!0?"".concat(t,"-").concat(xe.cssPrefix,"-").concat(n):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:be(be({},l),{},{id:u}),children:r}]}]}function nc(e){var t=e.icons,n=t.main,r=t.mask,l=e.prefix,s=e.iconName,u=e.transform,d=e.symbol,o=e.title,p=e.maskId,a=e.titleId,i=e.extra,c=e.watchable,h=c===void 0?!1:c,f=r.found?r:n,g=f.width,m=f.height,v=l==="fak",y=[xe.replacementClass,s?"".concat(xe.cssPrefix,"-").concat(s):""].filter(function(x){return i.classes.indexOf(x)===-1}).filter(function(x){return x!==""||!!x}).concat(i.classes).join(" "),k={children:[],attributes:be(be({},i.attributes),{},{"data-prefix":l,"data-icon":s,class:y,role:i.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(m)})},C=v&&!~i.classes.indexOf("fa-fw")?{width:"".concat(g/m*16*.0625,"em")}:{};h&&(k.attributes[pr]=""),o&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(a||Wi())},children:[o]}),delete k.attributes.title);var S=be(be({},k),{},{prefix:l,iconName:s,main:n,mask:r,maskId:p,transform:u,symbol:d,styles:be(be({},C),i.styles)}),b=r.found&&n.found?Cn("generateAbstractMask",S)||{children:[],attributes:{}}:Cn("generateAbstractIcon",S)||{children:[],attributes:{}},E=b.children,L=b.attributes;return S.children=E,S.attributes=L,d?qm(S):Xm(S)}function lu(e){var t=e.content,n=e.width,r=e.height,l=e.transform,s=e.title,u=e.extra,d=e.watchable,o=d===void 0?!1:d,p=be(be(be({},u.attributes),s?{title:s}:{}),{},{class:u.classes.join(" ")});o&&(p[pr]="");var a=be({},u.styles);Ql(l)&&(a.transform=Em({transform:l,startCentered:!0,width:n,height:r}),a["-webkit-transform"]=a.transform);var i=Io(a);i.length>0&&(p.style=i);var c=[];return c.push({tag:"span",attributes:p,children:[t]}),s&&c.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),c}function Qm(e){var t=e.content,n=e.title,r=e.extra,l=be(be(be({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),s=Io(r.styles);s.length>0&&(l.style=s);var u=[];return u.push({tag:"span",attributes:l,children:[t]}),n&&u.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),u}var ka=Yt.styles;function rl(e){var t=e[0],n=e[1],r=e.slice(4),l=Gl(r,1),s=l[0],u=null;return Array.isArray(s)?u={tag:"g",attributes:{class:"".concat(xe.cssPrefix,"-").concat(sr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(xe.cssPrefix,"-").concat(sr.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(xe.cssPrefix,"-").concat(sr.PRIMARY),fill:"currentColor",d:s[1]}}]}:u={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:u}}var Jm={found:!1,width:512,height:512};function ev(e,t){!nf&&!xe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function il(e,t){var n=t;return t==="fa"&&xe.styleDefault!==null&&(t=jn()),new Promise(function(r,l){if(Cn("missingIconAbstract"),n==="fa"){var s=mf(e)||{};e=s.iconName||e,t=s.prefix||t}if(e&&t&&ka[t]&&ka[t][e]){var u=ka[t][e];return r(rl(u))}ev(e,t),r(be(be({},Jm),{},{icon:xe.showMissingIcons&&e?Cn("missingIconAbstract")||{}:{}}))})}var cu=function(){},sl=xe.measurePerformance&&xs&&xs.mark&&xs.measure?xs:{mark:cu,measure:cu},Si='FA "6.5.1"',tv=function(t){return sl.mark("".concat(Si," ").concat(t," begins")),function(){return yf(t)}},yf=function(t){sl.mark("".concat(Si," ").concat(t," ends")),sl.measure("".concat(Si," ").concat(t),"".concat(Si," ").concat(t," begins"),"".concat(Si," ").concat(t," ends"))},rc={begin:tv,end:yf},Zs=function(){};function uu(e){var t=e.getAttribute?e.getAttribute(pr):null;return typeof t=="string"}function nv(e){var t=e.getAttribute?e.getAttribute(Yl):null,n=e.getAttribute?e.getAttribute(Zl):null;return t&&n}function rv(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(xe.replacementClass)}function iv(){if(xe.autoReplaceSvg===!0)return Xs.replace;var e=Xs[xe.autoReplaceSvg];return e||Xs.replace}function sv(e){return it.createElementNS("http://www.w3.org/2000/svg",e)}function ov(e){return it.createElement(e)}function bf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?sv:ov:n;if(typeof e=="string")return it.createTextNode(e);var l=r(e.tag);Object.keys(e.attributes||[]).forEach(function(u){l.setAttribute(u,e.attributes[u])});var s=e.children||[];return s.forEach(function(u){l.appendChild(bf(u,{ceFn:r}))}),l}function av(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Xs={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(l){n.parentNode.insertBefore(bf(l),n)}),n.getAttribute(pr)===null&&xe.keepOriginalSource){var r=it.createComment(av(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~ql(n).indexOf(xe.replacementClass))return Xs.replace(t);var l=new RegExp("".concat(xe.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(d,o){return o===xe.replacementClass||o.match(l)?d.toSvg.push(o):d.toNode.push(o),d},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",s.toNode.join(" "))}var u=r.map(function(d){return ds(d)}).join(` `);n.setAttribute(pr,""),n.innerHTML=u}};function hu(e){e()}function wf(e,t){var n=typeof t=="function"?t:Zs;if(e.length===0)n();else{var r=hu;xe.mutateApproach===hm&&(r=zn.requestAnimationFrame||hu),r(function(){var l=iv(),s=rc.begin("mutate");e.map(l),s(),n()})}}var ic=!1;function _f(){ic=!0}function ol(){ic=!1}var lo=null;function fu(e){if(tu&&xe.observeMutations){var t=e.treeCallback,n=t===void 0?Zs:t,r=e.nodeCallback,l=r===void 0?Zs:r,s=e.pseudoElementsCallback,u=s===void 0?Zs:s,d=e.observeMutationsRoot,o=d===void 0?it:d;lo=new tu(function(p){if(!ic){var a=jn();oi(p).forEach(function(i){if(i.type==="childList"&&i.addedNodes.length>0&&!uu(i.addedNodes[0])&&(xe.searchPseudoElements&&u(i.target),n(i.target)),i.type==="attributes"&&i.target.parentNode&&xe.searchPseudoElements&&u(i.target.parentNode),i.type==="attributes"&&uu(i.target)&&~ym.indexOf(i.attributeName))if(i.attributeName==="class"&&nv(i.target)){var c=Do(ql(i.target)),h=c.prefix,f=c.iconName;i.target.setAttribute(Yl,h||a),f&&i.target.setAttribute(Zl,f)}else rv(i.target)&&l(i.target)})}}),kn&&lo.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function lv(){lo&&lo.disconnect()}function cv(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,l){var s=l.split(":"),u=s[0],d=s.slice(1);return u&&d.length>0&&(r[u]=d.join(":").trim()),r},{})),n}function uv(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",l=Do(ql(e));return l.prefix||(l.prefix=jn()),t&&n&&(l.prefix=t,l.iconName=n),l.iconName&&l.prefix||(l.prefix&&r.length>0&&(l.iconName=Hm(l.prefix,e.innerText)||ec(l.prefix,Ja(e.innerText))),!l.iconName&&xe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(l.iconName=e.firstChild.data)),l}function hv(e){var t=oi(e.attributes).reduce(function(l,s){return l.name!=="class"&&l.name!=="style"&&(l[s.name]=s.value),l},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return xe.autoA11y&&(n?t["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(r||Wi()):(t["aria-hidden"]="true",t.focusable="false")),t}function fv(){return{iconName:null,title:null,titleId:null,prefix:null,transform:rn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function du(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=uv(e),r=n.iconName,l=n.prefix,s=n.rest,u=hv(e),d=tl("parseNodeAttributes",{},e),o=t.styleParser?cv(e):[];return be({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:l,transform:rn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:o,attributes:u}},d)}var dv=Yt.styles;function $f(e){var t=xe.autoReplaceSvg==="nest"?du(e,{styleParser:!1}):du(e);return~t.extra.classes.indexOf(rf)?Cn("generateLayersText",e,t):Cn("generateSvgReplacementMutation",e,t)}var Gn=new Set;Xl.map(function(e){Gn.add("fa-".concat(e))});Object.keys(Di[rt]).map(Gn.add.bind(Gn));Object.keys(Di[ut]).map(Gn.add.bind(Gn));Gn=hs(Gn);function pu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!kn)return Promise.resolve();var n=it.documentElement.classList,r=function(i){return n.add("".concat(nu,"-").concat(i))},l=function(i){return n.remove("".concat(nu,"-").concat(i))},s=xe.autoFetchSvg?Gn:Xl.map(function(a){return"fa-".concat(a)}).concat(Object.keys(dv));s.includes("fa")||s.push("fa");var u=[".".concat(rf,":not([").concat(pr,"])")].concat(s.map(function(a){return".".concat(a,":not([").concat(pr,"])")})).join(", ");if(u.length===0)return Promise.resolve();var d=[];try{d=oi(e.querySelectorAll(u))}catch{}if(d.length>0)r("pending"),l("complete");else return Promise.resolve();var o=rc.begin("onTree"),p=d.reduce(function(a,i){try{var c=$f(i);c&&a.push(c)}catch(h){nf||h.name==="MissingIcon"&&console.error(h)}return a},[]);return new Promise(function(a,i){Promise.all(p).then(function(c){wf(c,function(){r("active"),r("complete"),l("pending"),typeof t=="function"&&t(),o(),a()})}).catch(function(c){o(),i(c)})})}function pv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;$f(e).then(function(n){n&&wf([n],t)})}function gv(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:nl(t||{}),l=n.mask;return l&&(l=(l||{}).icon?l:nl(l||{})),e(r,be(be({},n),{},{mask:l}))}}var mv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,l=r===void 0?rn:r,s=n.symbol,u=s===void 0?!1:s,d=n.mask,o=d===void 0?null:d,p=n.maskId,a=p===void 0?null:p,i=n.title,c=i===void 0?null:i,h=n.titleId,f=h===void 0?null:h,g=n.classes,m=g===void 0?[]:g,v=n.attributes,y=v===void 0?{}:v,k=n.styles,C=k===void 0?{}:k;if(t){var S=t.prefix,b=t.iconName,E=t.icon;return Fo(be({type:"icon"},t),function(){return gr("beforeDOMElementCreation",{iconDefinition:t,params:n}),xe.autoA11y&&(c?y["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(f||Wi()):(y["aria-hidden"]="true",y.focusable="false")),nc({icons:{main:rl(E),mask:o?rl(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:S,iconName:b,transform:be(be({},rn),l),symbol:u,title:c,maskId:a,titleId:f,extra:{attributes:y,styles:C,classes:m}})})}},vv={mixout:function(){return{icon:gv(mv)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=pu,n.nodeCallback=pv,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,l=r===void 0?it:r,s=n.callback,u=s===void 0?function(){}:s;return pu(l,u)},t.generateSvgReplacementMutation=function(n,r){var l=r.iconName,s=r.title,u=r.titleId,d=r.prefix,o=r.transform,p=r.symbol,a=r.mask,i=r.maskId,c=r.extra;return new Promise(function(h,f){Promise.all([il(l,d),a.iconName?il(a.iconName,a.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var m=Gl(g,2),v=m[0],y=m[1];h([n,nc({icons:{main:v,mask:y},prefix:d,iconName:l,transform:o,symbol:p,maskId:i,title:s,titleId:u,extra:c,watchable:!0})])}).catch(f)})},t.generateAbstractIcon=function(n){var r=n.children,l=n.attributes,s=n.main,u=n.transform,d=n.styles,o=Io(d);o.length>0&&(l.style=o);var p;return Ql(u)&&(p=Cn("generateAbstractTransformGrouping",{main:s,transform:u,containerWidth:s.width,iconWidth:s.width})),r.push(p||s.icon),{children:r,attributes:l}}}},yv={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.classes,s=l===void 0?[]:l;return Fo({type:"layer"},function(){gr("beforeDOMElementCreation",{assembler:n,params:r});var u=[];return n(function(d){Array.isArray(d)?d.map(function(o){u=u.concat(o.abstract)}):u=u.concat(d.abstract)}),[{tag:"span",attributes:{class:["".concat(xe.cssPrefix,"-layers")].concat(hs(s)).join(" ")},children:u}]})}}}},bv={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.title,s=l===void 0?null:l,u=r.classes,d=u===void 0?[]:u,o=r.attributes,p=o===void 0?{}:o,a=r.styles,i=a===void 0?{}:a;return Fo({type:"counter",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),Qm({content:n.toString(),title:s,extra:{attributes:p,styles:i,classes:["".concat(xe.cssPrefix,"-layers-counter")].concat(hs(d))}})})}}}},wv={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=r.transform,s=l===void 0?rn:l,u=r.title,d=u===void 0?null:u,o=r.classes,p=o===void 0?[]:o,a=r.attributes,i=a===void 0?{}:a,c=r.styles,h=c===void 0?{}:c;return Fo({type:"text",content:n},function(){return gr("beforeDOMElementCreation",{content:n,params:r}),lu({content:n,transform:be(be({},rn),s),title:d,extra:{attributes:i,styles:h,classes:["".concat(xe.cssPrefix,"-layers-text")].concat(hs(p))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var l=r.title,s=r.transform,u=r.extra,d=null,o=null;if(Jh){var p=parseInt(getComputedStyle(n).fontSize,10),a=n.getBoundingClientRect();d=a.width/p,o=a.height/p}return xe.autoA11y&&!l&&(u.attributes["aria-hidden"]="true"),Promise.resolve([n,lu({content:n.innerHTML,width:d,height:o,transform:s,title:l,extra:u,watchable:!0})])}}},_v=new RegExp('"',"ug"),gu=[1105920,1112319];function $v(e){var t=e.replace(_v,""),n=Nm(t,0),r=n>=gu[0]&&n<=gu[1],l=t.length===2?t[0]===t[1]:!1;return{value:Ja(l?t[0]:t),isSecondary:r||l}}function mu(e,t){var n="".concat(um).concat(t.replace(":","-"));return new Promise(function(r,l){if(e.getAttribute(n)!==null)return r();var s=oi(e.children),u=s.filter(function(E){return E.getAttribute(Qa)===t})[0],d=zn.getComputedStyle(e,t),o=d.getPropertyValue("font-family").match(gm),p=d.getPropertyValue("font-weight"),a=d.getPropertyValue("content");if(u&&!o)return e.removeChild(u),r();if(o&&a!=="none"&&a!==""){var i=d.getPropertyValue("content"),c=~["Sharp"].indexOf(o[2])?ut:rt,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(o[2])?Fi[c][o[2].toLowerCase()]:mm[c][p],f=$v(i),g=f.value,m=f.isSecondary,v=o[0].startsWith("FontAwesome"),y=ec(h,g),k=y;if(v){var C=Um(g);C.iconName&&C.prefix&&(y=C.iconName,h=C.prefix)}if(y&&!m&&(!u||u.getAttribute(Yl)!==h||u.getAttribute(Zl)!==k)){e.setAttribute(n,k),u&&e.removeChild(u);var S=fv(),b=S.extra;b.attributes[Qa]=t,il(y,h).then(function(E){var L=nc(be(be({},S),{},{icons:{main:E,mask:tc()},prefix:h,iconName:k,extra:b,watchable:!0})),x=it.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(x,e.firstChild):e.appendChild(x),x.outerHTML=L.map(function(M){return ds(M)}).join(` `),e.removeAttribute(n),r()}).catch(l)}else r()}else r()})}function Sv(e){return Promise.all([mu(e,"::before"),mu(e,"::after")])}function Cv(e){return e.parentNode!==document.head&&!~fm.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Qa)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function vu(e){if(kn)return new Promise(function(t,n){var r=oi(e.querySelectorAll("*")).filter(Cv).map(Sv),l=rc.begin("searchPseudoElements");_f(),Promise.all(r).then(function(){l(),ol(),t()}).catch(function(){l(),ol(),n()})})}var Av={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=vu,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,l=r===void 0?it:r;xe.searchPseudoElements&&vu(l)}}},yu=!1,kv={mixout:function(){return{dom:{unwatch:function(){_f(),yu=!0}}}},hooks:function(){return{bootstrap:function(){fu(tl("mutationObserverCallbacks",{}))},noAuto:function(){lv()},watch:function(n){var r=n.observeMutationsRoot;yu?ol():fu(tl("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},bu=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,l){var s=l.toLowerCase().split("-"),u=s[0],d=s.slice(1).join("-");if(u&&d==="h")return r.flipX=!0,r;if(u&&d==="v")return r.flipY=!0,r;if(d=parseFloat(d),isNaN(d))return r;switch(u){case"grow":r.size=r.size+d;break;case"shrink":r.size=r.size-d;break;case"left":r.x=r.x-d;break;case"right":r.x=r.x+d;break;case"up":r.y=r.y-d;break;case"down":r.y=r.y+d;break;case"rotate":r.rotate=r.rotate+d;break}return r},n)},xv={mixout:function(){return{parse:{transform:function(n){return bu(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-transform");return l&&(n.transform=bu(l)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,l=n.transform,s=n.containerWidth,u=n.iconWidth,d={transform:"translate(".concat(s/2," 256)")},o="translate(".concat(l.x*32,", ").concat(l.y*32,") "),p="scale(".concat(l.size/16*(l.flipX?-1:1),", ").concat(l.size/16*(l.flipY?-1:1),") "),a="rotate(".concat(l.rotate," 0 0)"),i={transform:"".concat(o," ").concat(p," ").concat(a)},c={transform:"translate(".concat(u/2*-1," -256)")},h={outer:d,inner:i,path:c};return{tag:"g",attributes:be({},h.outer),children:[{tag:"g",attributes:be({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:be(be({},r.icon.attributes),h.path)}]}]}}}},xa={x:0,y:0,width:"100%",height:"100%"};function wu(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 Ev(e){return e.tag==="g"?e.children:[e]}var Rv={hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-mask"),s=l?Do(l.split(" ").map(function(u){return u.trim()})):tc();return s.prefix||(s.prefix=jn()),n.mask=s,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,l=n.attributes,s=n.main,u=n.mask,d=n.maskId,o=n.transform,p=s.width,a=s.icon,i=u.width,c=u.icon,h=xm({transform:o,containerWidth:i,iconWidth:p}),f={tag:"rect",attributes:be(be({},xa),{},{fill:"white"})},g=a.children?{children:a.children.map(wu)}:{},m={tag:"g",attributes:be({},h.inner),children:[wu(be({tag:a.tag,attributes:be(be({},a.attributes),h.path)},g))]},v={tag:"g",attributes:be({},h.outer),children:[m]},y="mask-".concat(d||Wi()),k="clip-".concat(d||Wi()),C={tag:"mask",attributes:be(be({},xa),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,v]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:Ev(c)},C]};return r.push(S,{tag:"rect",attributes:be({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(y,")")},xa)}),{children:r,attributes:l}}}},Tv={provides:function(t){var n=!1;zn.matchMedia&&(n=zn.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],l={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:be(be({},l),{},{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 u=be(be({},s),{},{attributeName:"opacity"}),d={tag:"circle",attributes:be(be({},l),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||d.children.push({tag:"animate",attributes:be(be({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:be(be({},u),{},{values:"1;0;1;1;0;1;"})}),r.push(d),r.push({tag:"path",attributes:be(be({},l),{},{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:be(be({},u),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:be(be({},l),{},{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:be(be({},u),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Lv={hooks:function(){return{parseNodeAttributes:function(n,r){var l=r.getAttribute("data-fa-symbol"),s=l===null?!1:l===""?!0:l;return n.symbol=s,n}}}},Mv=[Tm,vv,yv,bv,wv,Av,kv,xv,Rv,Tv,Lv];jm(Mv,{mixoutsTo:Wt});Wt.noAuto;Wt.config;var Ov=Wt.library;Wt.dom;var al=Wt.parse;Wt.findIconDefinition;Wt.toHtml;var Iv=Wt.icon;Wt.layer;Wt.text;Wt.counter;var Nv={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"]},Dv={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"]},Fv=Dv,Pv={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-70.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Bv={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"]},Wv={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"]},Hv=Wv,Uv={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V320c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6V128c0-35.3-28.7-64-64-64H64zm64 112l0 160c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32H448c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V160z"]},Vv={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},zv={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128z"]},Sf={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"]},jv=Sf,Gv={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"]},Kv={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"]},Yv=Kv,Zv={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"]},Xv={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"]},qv={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Qv={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"]},Jv={prefix:"fas",iconName:"barcode",icon:[512,512,[],"f02a","M24 32C10.7 32 0 42.7 0 56V456c0 13.3 10.7 24 24 24H40c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H24zm88 0c-8.8 0-16 7.2-16 16V464c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16zm72 0c-13.3 0-24 10.7-24 24V456c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H184zm96 0c-13.3 0-24 10.7-24 24V456c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H280zM448 56V456c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24H472c-13.3 0-24 10.7-24 24zm-64-8V464c0 8.8 7.2 16 16 16s16-7.2 16-16V48c0-8.8-7.2-16-16-16s-16 7.2-16 16z"]};/** * @vue/shared v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Po(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Ze={},Br=[],Mt=()=>{},ey=()=>!1,ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),sc=e=>e.startsWith("onUpdate:"),ot=Object.assign,oc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ty=Object.prototype.hasOwnProperty,Ve=(e,t)=>ty.call(e,t),_e=Array.isArray,Wr=e=>ai(e)==="[object Map]",kr=e=>ai(e)==="[object Set]",_u=e=>ai(e)==="[object Date]",ny=e=>ai(e)==="[object RegExp]",Ie=e=>typeof e=="function",at=e=>typeof e=="string",Kn=e=>typeof e=="symbol",qe=e=>e!==null&&typeof e=="object",ac=e=>(qe(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),Cf=Object.prototype.toString,ai=e=>Cf.call(e),ry=e=>ai(e).slice(8,-1),Af=e=>ai(e)==="[object Object]",lc=e=>at(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hr=Po(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},iy=/-(\w)/g,xt=Bo(e=>e.replace(iy,(t,n)=>n?n.toUpperCase():"")),sy=/\B([A-Z])/g,Pt=Bo(e=>e.replace(sy,"-$1").toLowerCase()),li=Bo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ei=Bo(e=>e?`on${li(e)}`:""),Qt=(e,t)=>!Object.is(e,t),Ur=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Hi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uo=e=>{const t=at(e)?Number(e):NaN;return isNaN(t)?e:t};let $u;const kf=()=>$u||($u=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),oy="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",ay=Po(oy);function gs(e){if(_e(e)){const t={};for(let n=0;n{if(n){const r=n.split(cy);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ci(e){let t="";if(at(e))t=e;else if(_e(e))for(let n=0;nYn(n,t))}const $e=e=>at(e)?e:e==null?"":_e(e)||qe(e)&&(e.toString===Cf||!Ie(e.toString))?JSON.stringify(e,Ef,2):String(e),Ef=(e,t)=>t&&t.__v_isRef?Ef(e,t.value):Wr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,l],s)=>(n[Ea(r,s)+" =>"]=l,n),{})}:kr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ea(n))}:Kn(t)?Ea(t):qe(t)&&!_e(t)&&!Af(t)?String(t):t,Ea=(e,t="")=>{var n;return Kn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Dt;class cc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Dt,!t&&Dt&&(this.index=(Dt.scopes||(Dt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Dt;try{return Dt=this,t()}finally{Dt=n}}}on(){Dt=this}off(){Dt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Er()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Vn,n=lr;try{return Vn=!0,lr=this,this._runnings++,Su(this),this.fn()}finally{Cu(this),this._runnings--,lr=n,Vn=t}}stop(){var t;this.active&&(Su(this),Cu(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function my(e){return e.value}function Su(e){e._trackId++,e._depsLength=0}function Cu(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()});t&&(ot(n,t),t.scope&&Tf(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function yy(e){e.effect.stop()}let Vn=!0,ll=0;const Of=[];function xr(){Of.push(Vn),Vn=!1}function Er(){const e=Of.pop();Vn=e===void 0?!0:e}function hc(){ll++}function fc(){for(ll--;!ll&&cl.length;)cl.shift()()}function If(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Mf(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const cl=[];function Nf(e,t,n){hc();for(const r of e.keys()){let l;r._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},ho=new WeakMap,cr=Symbol(""),ul=Symbol("");function It(e,t,n){if(Vn&&lr){let r=ho.get(e);r||ho.set(e,r=new Map);let l=r.get(n);l||r.set(n,l=Df(()=>r.delete(n))),If(lr,l)}}function vn(e,t,n,r,l,s){const u=ho.get(e);if(!u)return;let d=[];if(t==="clear")d=[...u.values()];else if(n==="length"&&_e(e)){const o=Number(r);u.forEach((p,a)=>{(a==="length"||!Kn(a)&&a>=o)&&d.push(p)})}else switch(n!==void 0&&d.push(u.get(n)),t){case"add":_e(e)?lc(n)&&d.push(u.get("length")):(d.push(u.get(cr)),Wr(e)&&d.push(u.get(ul)));break;case"delete":_e(e)||(d.push(u.get(cr)),Wr(e)&&d.push(u.get(ul)));break;case"set":Wr(e)&&d.push(u.get(cr));break}hc();for(const o of d)o&&Nf(o,4);fc()}function by(e,t){var n;return(n=ho.get(e))==null?void 0:n.get(t)}const wy=Po("__proto__,__v_isRef,__isVue"),Ff=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Kn)),Au=_y();function _y(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=We(this);for(let s=0,u=this.length;s{e[t]=function(...n){xr(),hc();const r=We(this)[t].apply(this,n);return fc(),Er(),r}}),e}function $y(e){const t=We(this);return It(t,"has",e),t.hasOwnProperty(e)}class Pf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const l=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(l?s?zf:Vf:s?Uf:Hf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const u=_e(t);if(!l){if(u&&Ve(Au,n))return Reflect.get(Au,n,r);if(n==="hasOwnProperty")return $y}const d=Reflect.get(t,n,r);return(Kn(n)?Ff.has(n):wy(n))||(l||It(t,"get",n),s)?d:yt(d)?u&&lc(n)?d:d.value:qe(d)?l?Vo(d):ui(d):d}}class Bf extends Pf{constructor(t=!1){super(!1,t)}set(t,n,r,l){let s=t[n];if(!this._isShallow){const o=mr(s);if(!Ui(r)&&!mr(r)&&(s=We(s),r=We(r)),!_e(t)&&yt(s)&&!yt(r))return o?!1:(s.value=r,!0)}const u=_e(t)&&lc(n)?Number(n)e,Ho=e=>Reflect.getPrototypeOf(e);function Ds(e,t,n=!1,r=!1){e=e.__v_raw;const l=We(e),s=We(t);n||(Qt(t,s)&&It(l,"get",t),It(l,"get",s));const{has:u}=Ho(l),d=r?dc:n?mc:Vi;if(u.call(l,t))return d(e.get(t));if(u.call(l,s))return d(e.get(s));e!==l&&e.get(t)}function Fs(e,t=!1){const n=this.__v_raw,r=We(n),l=We(e);return t||(Qt(e,l)&&It(r,"has",e),It(r,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function Ps(e,t=!1){return e=e.__v_raw,!t&&It(We(e),"iterate",cr),Reflect.get(e,"size",e)}function ku(e){e=We(e);const t=We(this);return Ho(t).has.call(t,e)||(t.add(e),vn(t,"add",e,e)),this}function xu(e,t){t=We(t);const n=We(this),{has:r,get:l}=Ho(n);let s=r.call(n,e);s||(e=We(e),s=r.call(n,e));const u=l.call(n,e);return n.set(e,t),s?Qt(t,u)&&vn(n,"set",e,t):vn(n,"add",e,t),this}function Eu(e){const t=We(this),{has:n,get:r}=Ho(t);let l=n.call(t,e);l||(e=We(e),l=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return l&&vn(t,"delete",e,void 0),s}function Ru(){const e=We(this),t=e.size!==0,n=e.clear();return t&&vn(e,"clear",void 0,void 0),n}function Bs(e,t){return function(r,l){const s=this,u=s.__v_raw,d=We(u),o=t?dc:e?mc:Vi;return!e&&It(d,"iterate",cr),u.forEach((p,a)=>r.call(l,o(p),o(a),s))}}function Ws(e,t,n){return function(...r){const l=this.__v_raw,s=We(l),u=Wr(s),d=e==="entries"||e===Symbol.iterator&&u,o=e==="keys"&&u,p=l[e](...r),a=n?dc:t?mc:Vi;return!t&&It(s,"iterate",o?ul:cr),{next(){const{value:i,done:c}=p.next();return c?{value:i,done:c}:{value:d?[a(i[0]),a(i[1])]:a(i),done:c}},[Symbol.iterator](){return this}}}}function Ln(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xy(){const e={get(s){return Ds(this,s)},get size(){return Ps(this)},has:Fs,add:ku,set:xu,delete:Eu,clear:Ru,forEach:Bs(!1,!1)},t={get(s){return Ds(this,s,!1,!0)},get size(){return Ps(this)},has:Fs,add:ku,set:xu,delete:Eu,clear:Ru,forEach:Bs(!1,!0)},n={get(s){return Ds(this,s,!0)},get size(){return Ps(this,!0)},has(s){return Fs.call(this,s,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Bs(!0,!1)},r={get(s){return Ds(this,s,!0,!0)},get size(){return Ps(this,!0)},has(s){return Fs.call(this,s,!0)},add:Ln("add"),set:Ln("set"),delete:Ln("delete"),clear:Ln("clear"),forEach:Bs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Ws(s,!1,!1),n[s]=Ws(s,!0,!1),t[s]=Ws(s,!1,!0),r[s]=Ws(s,!0,!0)}),[e,n,t,r]}const[Ey,Ry,Ty,Ly]=xy();function Uo(e,t){const n=t?e?Ly:Ty:e?Ry:Ey;return(r,l,s)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?r:Reflect.get(Ve(n,l)&&l in r?n:r,l,s)}const My={get:Uo(!1,!1)},Oy={get:Uo(!1,!0)},Iy={get:Uo(!0,!1)},Ny={get:Uo(!0,!0)},Hf=new WeakMap,Uf=new WeakMap,Vf=new WeakMap,zf=new WeakMap;function Dy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fy(e){return e.__v_skip||!Object.isExtensible(e)?0:Dy(ry(e))}function ui(e){return mr(e)?e:zo(e,!1,Sy,My,Hf)}function pc(e){return zo(e,!1,Ay,Oy,Uf)}function Vo(e){return zo(e,!0,Cy,Iy,Vf)}function Py(e){return zo(e,!0,ky,Ny,zf)}function zo(e,t,n,r,l){if(!qe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=l.get(e);if(s)return s;const u=Fy(e);if(u===0)return e;const d=new Proxy(e,u===2?r:n);return l.set(e,d),d}function ur(e){return mr(e)?ur(e.__v_raw):!!(e&&e.__v_isReactive)}function mr(e){return!!(e&&e.__v_isReadonly)}function Ui(e){return!!(e&&e.__v_isShallow)}function gc(e){return ur(e)||mr(e)}function We(e){const t=e&&e.__v_raw;return t?We(t):e}function jo(e){return Object.isExtensible(e)&&co(e,"__v_skip",!0),e}const Vi=e=>qe(e)?ui(e):e,mc=e=>qe(e)?Vo(e):e;class jf{constructor(t,n,r,l){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Zr(()=>t(this._value),()=>Vr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=r}get value(){const t=We(this);return(!t._cacheable||t.effect.dirty)&&Qt(t._value,t._value=t.effect.run())&&Vr(t,4),vc(t),t.effect._dirtyLevel>=2&&Vr(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function By(e,t,n=!1){let r,l;const s=Ie(e);return s?(r=e,l=Mt):(r=e.get,l=e.set),new jf(r,l,s||!l,n)}function vc(e){var t;Vn&&lr&&(e=We(e),If(lr,(t=e.dep)!=null?t:e.dep=Df(()=>e.dep=void 0,e instanceof jf?e:void 0)))}function Vr(e,t=4,n){e=We(e);const r=e.dep;r&&Nf(r,t)}function yt(e){return!!(e&&e.__v_isRef===!0)}function ze(e){return Kf(e,!1)}function Gf(e){return Kf(e,!0)}function Kf(e,t){return yt(e)?e:new Wy(e,t)}class Wy{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:We(t),this._value=n?t:Vi(t)}get value(){return vc(this),this._value}set value(t){const n=this.__v_isShallow||Ui(t)||mr(t);t=n?t:We(t),Qt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Vi(t),Vr(this,4))}}function Hy(e){Vr(e,4)}function yn(e){return yt(e)?e.value:e}function Uy(e){return Ie(e)?e():yn(e)}const Vy={get:(e,t,n)=>yn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return yt(l)&&!yt(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function yc(e){return ur(e)?e:new Proxy(e,Vy)}class zy{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>vc(this),()=>Vr(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Go(e){return new zy(e)}function jy(e){const t=_e(e)?new Array(e.length):{};for(const n in e)t[n]=Yf(e,n);return t}class Gy{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 by(We(this._object),this._key)}}class Ky{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ko(e,t,n){return yt(e)?e:Ie(e)?new Ky(e):qe(e)&&arguments.length>1?Yf(e,t,n):ze(e)}function Yf(e,t,n){const r=e[t];return yt(r)?r:new Gy(e,t,n)}const Yy={GET:"get",HAS:"has",ITERATE:"iterate"},Zy={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};/** * @vue/runtime-core v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Xy(e,t){}const qy={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},Qy={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function bn(e,t,n,r){try{return r?e(...r):e()}catch(l){Rr(l,t,n)}}function Bt(e,t,n,r){if(Ie(e)){const s=bn(e,t,n,r);return s&&ac(s)&&s.catch(u=>{Rr(u,t,n)}),s}const l=[];for(let s=0;s>>1,l=_t[r],s=ji(l);snn&&_t.splice(t,1)}function fo(e){_e(e)?zr.push(...e):(!Fn||!Fn.includes(e,e.allowRecurse?ir+1:ir))&&zr.push(e),Xf()}function Tu(e,t,n=zi?nn+1:0){for(;n<_t.length;n++){const r=_t[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;_t.splice(n,1),n--,r()}}}function po(e){if(zr.length){const t=[...new Set(zr)].sort((n,r)=>ji(n)-ji(r));if(zr.length=0,Fn){Fn.push(...t);return}for(Fn=t,ir=0;ire.id==null?1/0:e.id,n0=(e,t)=>{const n=ji(e)-ji(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qf(e){hl=!1,zi=!0,_t.sort(n0);try{for(nn=0;nn<_t.length;nn++){const t=_t[nn];t&&t.active!==!1&&bn(t,null,14)}}finally{nn=0,_t.length=0,po(),zi=!1,bc=null,(_t.length||zr.length)&&qf()}}let Lr,Hs=[];function Qf(e,t){var n,r;Lr=e,Lr?(Lr.enabled=!0,Hs.forEach(({event:l,args:s})=>Lr.emit(l,...s)),Hs=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{Qf(s,t)}),setTimeout(()=>{Lr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Hs=[])},3e3)):Hs=[]}function r0(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ze;let l=n;const s=t.startsWith("update:"),u=s&&t.slice(7);if(u&&u in r){const a=`${u==="modelValue"?"model":u}Modifiers`,{number:i,trim:c}=r[a]||Ze;c&&(l=n.map(h=>at(h)?h.trim():h)),i&&(l=n.map(Hi))}let d,o=r[d=Ei(t)]||r[d=Ei(xt(t))];!o&&s&&(o=r[d=Ei(Pt(t))]),o&&Bt(o,e,6,l);const p=r[d+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[d])return;e.emitted[d]=!0,Bt(p,e,6,l)}}function Jf(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(l!==void 0)return l;const s=e.emits;let u={},d=!1;if(!Ie(e)){const o=p=>{const a=Jf(p,t,!0);a&&(d=!0,ot(u,a))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!s&&!d?(qe(e)&&r.set(e,null),null):(_e(s)?s.forEach(o=>u[o]=null):ot(u,s),qe(e)&&r.set(e,u),u)}function Zo(e,t){return!e||!ps(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,Pt(t))||Ve(e,t))}let ht=null,Xo=null;function Gi(e){const t=ht;return ht=e,Xo=e&&e.type.__scopeId||null,t}function qo(e){Xo=e}function Qo(){Xo=null}const i0=e=>Je;function Je(e,t=ht,n){if(!t||e._n)return e;const r=(...l)=>{r._d&&bl(-1);const s=Gi(t);let u;try{u=e(...l)}finally{Gi(s),r._d&&bl(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function qs(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:s,propsOptions:[u],slots:d,attrs:o,emit:p,render:a,renderCache:i,data:c,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=Gi(e);try{if(n.shapeFlag&4){const C=l||r,S=C;m=Ft(a.call(S,C,i,s,h,c,f)),v=o}else{const C=t;m=Ft(C.length>1?C(s,{attrs:o,slots:d,emit:p}):C(s,null)),v=t.props?o:o0(o)}}catch(C){Mi.length=0,Rr(C,e,1),m=oe($t)}let k=m;if(v&&g!==!1){const C=Object.keys(v),{shapeFlag:S}=k;C.length&&S&7&&(u&&C.some(sc)&&(v=a0(v,u)),k=an(k,v))}return n.dirs&&(k=an(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),m=k,Gi(y),m}function s0(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||ps(n))&&((t||(t={}))[n]=e[n]);return t},a0=(e,t)=>{const n={};for(const r in e)(!sc(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function l0(e,t,n){const{props:r,children:l,component:s}=e,{props:u,children:d,patchFlag:o}=t,p=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&o>=0){if(o&1024)return!0;if(o&16)return r?Lu(r,u,p):!!u;if(o&8){const a=t.dynamicProps;for(let i=0;ie.__isSuspense;let fl=0;const f0={name:"Suspense",__isSuspense:!0,process(e,t,n,r,l,s,u,d,o,p){if(e==null)p0(t,n,r,l,s,u,d,o,p);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}g0(e,t,n,r,l,u,d,o,p)}},hydrate:m0,create:Sc,normalize:v0},d0=f0;function Ki(e,t){const n=e.props&&e.props[t];Ie(n)&&n()}function p0(e,t,n,r,l,s,u,d,o){const{p,o:{createElement:a}}=o,i=a("div"),c=e.suspense=Sc(e,l,r,t,i,n,s,u,d,o);p(null,c.pendingBranch=e.ssContent,i,null,r,c,s,u),c.deps>0?(Ki(e,"onPending"),Ki(e,"onFallback"),p(null,e.ssFallback,t,n,r,null,s,u),jr(c,e.ssFallback)):c.resolve(!1,!0)}function g0(e,t,n,r,l,s,u,d,{p:o,um:p,o:{createElement:a}}){const i=t.suspense=e.suspense;i.vnode=t,t.el=e.el;const c=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:m,isHydrating:v}=i;if(g)i.pendingBranch=c,Kt(c,g)?(o(g,c,i.hiddenContainer,null,l,i,s,u,d),i.deps<=0?i.resolve():m&&(v||(o(f,h,n,r,l,null,s,u,d),jr(i,h)))):(i.pendingId=fl++,v?(i.isHydrating=!1,i.activeBranch=g):p(g,l,i),i.deps=0,i.effects.length=0,i.hiddenContainer=a("div"),m?(o(null,c,i.hiddenContainer,null,l,i,s,u,d),i.deps<=0?i.resolve():(o(f,h,n,r,l,null,s,u,d),jr(i,h))):f&&Kt(c,f)?(o(f,c,n,r,l,i,s,u,d),i.resolve(!0)):(o(null,c,i.hiddenContainer,null,l,i,s,u,d),i.deps<=0&&i.resolve()));else if(f&&Kt(c,f))o(f,c,n,r,l,i,s,u,d),jr(i,c);else if(Ki(t,"onPending"),i.pendingBranch=c,c.shapeFlag&512?i.pendingId=c.component.suspenseId:i.pendingId=fl++,o(null,c,i.hiddenContainer,null,l,i,s,u,d),i.deps<=0)i.resolve();else{const{timeout:y,pendingId:k}=i;y>0?setTimeout(()=>{i.pendingId===k&&i.fallback(h)},y):y===0&&i.fallback(h)}}function Sc(e,t,n,r,l,s,u,d,o,p,a=!1){const{p:i,m:c,um:h,n:f,o:{parentNode:g,remove:m}}=p;let v;const y=y0(e);y&&t!=null&&t.pendingBranch&&(v=t.pendingId,t.deps++);const k=e.props?uo(e.props.timeout):void 0,C=s,S={vnode:e,parent:t,parentComponent:n,namespace:u,container:r,hiddenContainer:l,deps:0,pendingId:fl++,timeout:typeof k=="number"?k:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(b=!1,E=!1){const{vnode:L,activeBranch:x,pendingBranch:M,pendingId:_,effects:A,parentComponent:$,container:w}=S;let R=!1;S.isHydrating?S.isHydrating=!1:b||(R=x&&M.transition&&M.transition.mode==="out-in",R&&(x.transition.afterLeave=()=>{_===S.pendingId&&(c(M,w,s===C?f(x):s,0),fo(A))}),x&&(g(x.el)!==S.hiddenContainer&&(s=f(x)),h(x,$,S,!0)),R||c(M,w,s,0)),jr(S,M),S.pendingBranch=null,S.isInFallback=!1;let T=S.parent,O=!1;for(;T;){if(T.pendingBranch){T.effects.push(...A),O=!0;break}T=T.parent}!O&&!R&&fo(A),S.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),Ki(L,"onResolve")},fallback(b){if(!S.pendingBranch)return;const{vnode:E,activeBranch:L,parentComponent:x,container:M,namespace:_}=S;Ki(E,"onFallback");const A=f(L),$=()=>{S.isInFallback&&(i(null,b,M,A,x,null,_,d,o),jr(S,b))},w=b.transition&&b.transition.mode==="out-in";w&&(L.transition.afterLeave=$),S.isInFallback=!0,h(L,x,null,!0),w||$()},move(b,E,L){S.activeBranch&&c(S.activeBranch,b,E,L),S.container=b},next(){return S.activeBranch&&f(S.activeBranch)},registerDep(b,E){const L=!!S.pendingBranch;L&&S.deps++;const x=b.vnode.el;b.asyncDep.catch(M=>{Rr(M,b,0)}).then(M=>{if(b.isUnmounted||S.isUnmounted||S.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:_}=b;$l(b,M,!1),x&&(_.el=x);const A=!x&&b.subTree.el;E(b,_,g(x||b.subTree.el),x?null:f(b.subTree),S,u,o),A&&m(A),wc(b,_.el),L&&--S.deps===0&&S.resolve()})},unmount(b,E){S.isUnmounted=!0,S.activeBranch&&h(S.activeBranch,n,b,E),S.pendingBranch&&h(S.pendingBranch,n,b,E)}};return S}function m0(e,t,n,r,l,s,u,d,o){const p=t.suspense=Sc(t,r,n,e.parentNode,document.createElement("div"),null,l,s,u,d,!0),a=o(e,p.pendingBranch=t.ssContent,n,p,s,u);return p.deps===0&&p.resolve(!1,!0),a}function v0(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ou(r?n.default:n),e.ssFallback=r?Ou(n.fallback):oe($t)}function Ou(e){let t;if(Ie(e)){const n=br&&e._c;n&&(e._d=!1,Z()),e=e(),n&&(e._d=!0,t=Ot,Nd())}return _e(e)&&(e=s0(e)),e=Ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function nd(e,t){t&&t.pendingBranch?_e(e)?t.effects.push(...e):t.effects.push(e):fo(e)}function jr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let l=t.el;for(;!l&&t.component;)t=t.component.subTree,l=t.el;n.el=l,r&&r.subTree===n&&(r.vnode.el=l,wc(r,l))}function y0(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const rd=Symbol.for("v-scx"),id=()=>Vt(rd);function sd(e,t){return ms(e,null,t)}function od(e,t){return ms(e,null,{flush:"post"})}function ad(e,t){return ms(e,null,{flush:"sync"})}const Us={};function st(e,t,n){return ms(e,t,n)}function ms(e,t,{immediate:n,deep:r,flush:l,once:s,onTrack:u,onTrigger:d}=Ze){if(t&&s){const b=t;t=(...E)=>{b(...E),S()}}const o=ft,p=b=>r===!0?b:ar(b,r===!1?1:void 0);let a,i=!1,c=!1;if(yt(e)?(a=()=>e.value,i=Ui(e)):ur(e)?(a=()=>p(e),i=!0):_e(e)?(c=!0,i=e.some(b=>ur(b)||Ui(b)),a=()=>e.map(b=>{if(yt(b))return b.value;if(ur(b))return p(b);if(Ie(b))return bn(b,o,2)})):Ie(e)?t?a=()=>bn(e,o,2):a=()=>(h&&h(),Bt(e,o,3,[f])):a=Mt,t&&r){const b=a;a=()=>ar(b())}let h,f=b=>{h=k.onStop=()=>{bn(b,o,4),h=k.onStop=void 0}},g;if(ys)if(f=Mt,t?n&&Bt(t,o,3,[a(),c?[]:void 0,f]):a(),l==="sync"){const b=id();g=b.__watcherHandles||(b.__watcherHandles=[])}else return Mt;let m=c?new Array(e.length).fill(Us):Us;const v=()=>{if(!(!k.active||!k.dirty))if(t){const b=k.run();(r||i||(c?b.some((E,L)=>Qt(E,m[L])):Qt(b,m)))&&(h&&h(),Bt(t,o,3,[b,m===Us?void 0:c&&m[0]===Us?[]:m,f]),m=b)}else k.run()};v.allowRecurse=!!t;let y;l==="sync"?y=v:l==="post"?y=()=>mt(v,o&&o.suspense):(v.pre=!0,o&&(v.id=o.uid),y=()=>Yo(v));const k=new Zr(a,Mt,y),C=uc(),S=()=>{k.stop(),C&&oc(C.effects,k)};return t?n?v():m=k.run():l==="post"?mt(k.run.bind(k),o&&o.suspense):k.run(),g&&g.push(S),S}function b0(e,t,n){const r=this.proxy,l=at(e)?e.includes(".")?ld(r,e):()=>r[e]:e.bind(r,r);let s;Ie(t)?s=t:(s=t.handler,n=t);const u=wr(this),d=ms(l,s.bind(r),n);return u(),d}function ld(e,t){const n=t.split(".");return()=>{let r=e;for(let l=0;l0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),yt(e))ar(e.value,t,n,r);else if(_e(e))for(let l=0;l{ar(l,t,n,r)});else if(Af(e))for(const l in e)ar(e[l],t,n,r);return e}function Jo(e,t){if(ht===null)return e;const n=oa(ht)||ht.proxy,r=e.dirs||(e.dirs=[]);for(let l=0;l{e.isMounted=!0}),fi(()=>{e.isUnmounting=!0}),e}const Ut=[Function,Array],Ac={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ut,onEnter:Ut,onAfterEnter:Ut,onEnterCancelled:Ut,onBeforeLeave:Ut,onLeave:Ut,onAfterLeave:Ut,onLeaveCancelled:Ut,onBeforeAppear:Ut,onAppear:Ut,onAfterAppear:Ut,onAppearCancelled:Ut},w0={name:"BaseTransition",props:Ac,setup(e,{slots:t}){const n=Gt(),r=Cc();return()=>{const l=t.default&&ea(t.default(),!0);if(!l||!l.length)return;let s=l[0];if(l.length>1){for(const c of l)if(c.type!==$t){s=c;break}}const u=We(e),{mode:d}=u;if(r.isLeaving)return Ra(s);const o=Iu(s);if(!o)return Ra(s);const p=Xr(o,u,r,n);vr(o,p);const a=n.subTree,i=a&&Iu(a);if(i&&i.type!==$t&&!Kt(o,i)){const c=Xr(i,u,r,n);if(vr(i,c),d==="out-in")return r.isLeaving=!0,c.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ra(s);d==="in-out"&&o.type!==$t&&(c.delayLeave=(h,f,g)=>{const m=ud(r,i);m[String(i.key)]=i,h[Pn]=()=>{f(),h[Pn]=void 0,delete p.delayedLeave},p.delayedLeave=g})}return s}}},cd=w0;function ud(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Xr(e,t,n,r){const{appear:l,mode:s,persisted:u=!1,onBeforeEnter:d,onEnter:o,onAfterEnter:p,onEnterCancelled:a,onBeforeLeave:i,onLeave:c,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:g,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,k=String(e.key),C=ud(n,e),S=(L,x)=>{L&&Bt(L,r,9,x)},b=(L,x)=>{const M=x[1];S(L,x),_e(L)?L.every(_=>_.length<=1)&&M():L.length<=1&&M()},E={mode:s,persisted:u,beforeEnter(L){let x=d;if(!n.isMounted)if(l)x=g||d;else return;L[Pn]&&L[Pn](!0);const M=C[k];M&&Kt(e,M)&&M.el[Pn]&&M.el[Pn](),S(x,[L])},enter(L){let x=o,M=p,_=a;if(!n.isMounted)if(l)x=m||o,M=v||p,_=y||a;else return;let A=!1;const $=L[Vs]=w=>{A||(A=!0,w?S(_,[L]):S(M,[L]),E.delayedLeave&&E.delayedLeave(),L[Vs]=void 0)};x?b(x,[L,$]):$()},leave(L,x){const M=String(e.key);if(L[Vs]&&L[Vs](!0),n.isUnmounting)return x();S(i,[L]);let _=!1;const A=L[Pn]=$=>{_||(_=!0,x(),$?S(f,[L]):S(h,[L]),L[Pn]=void 0,C[M]===e&&delete C[M])};C[M]=e,c?b(c,[L,A]):A()},clone(L){return Xr(L,t,n,r)}};return E}function Ra(e){if(vs(e))return e=an(e),e.children=null,e}function Iu(e){return vs(e)?e.children?e.children[0]:void 0:e}function vr(e,t){e.shapeFlag&6&&e.component?vr(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 ea(e,t=!1,n){let r=[],l=0;for(let s=0;s1)for(let s=0;s!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function _0(e){Ie(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:l=200,timeout:s,suspensible:u=!0,onError:d}=e;let o=null,p,a=0;const i=()=>(a++,o=null,c()),c=()=>{let h;return o||(h=o=t().catch(f=>{if(f=f instanceof Error?f:new Error(String(f)),d)return new Promise((g,m)=>{d(f,()=>g(i()),()=>m(f),a+1)});throw f}).then(f=>h!==o&&o?o:(f&&(f.__esModule||f[Symbol.toStringTag]==="Module")&&(f=f.default),p=f,f)))};return Ce({name:"AsyncComponentWrapper",__asyncLoader:c,get __asyncResolved(){return p},setup(){const h=ft;if(p)return()=>Ta(p,h);const f=y=>{o=null,Rr(y,h,13,!r)};if(u&&h.suspense||ys)return c().then(y=>()=>Ta(y,h)).catch(y=>(f(y),()=>r?oe(r,{error:y}):null));const g=ze(!1),m=ze(),v=ze(!!l);return l&&setTimeout(()=>{v.value=!1},l),s!=null&&setTimeout(()=>{if(!g.value&&!m.value){const y=new Error(`Async component timed out after ${s}ms.`);f(y),m.value=y}},s),c().then(()=>{g.value=!0,h.parent&&vs(h.parent.vnode)&&(h.parent.effect.dirty=!0,Yo(h.parent.update))}).catch(y=>{f(y),m.value=y}),()=>{if(g.value&&p)return Ta(p,h);if(m.value&&r)return oe(r,{error:m.value});if(n&&!v.value)return oe(n)}}})}function Ta(e,t){const{ref:n,props:r,children:l,ce:s}=t.vnode,u=oe(e,r,l);return u.ref=n,u.ce=s,delete t.vnode.ce,u}const vs=e=>e.type.__isKeepAlive,$0={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Gt(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const l=new Map,s=new Set;let u=null;const d=n.suspense,{renderer:{p:o,m:p,um:a,o:{createElement:i}}}=r,c=i("div");r.activate=(y,k,C,S,b)=>{const E=y.component;p(y,k,C,0,d),o(E.vnode,y,k,C,E,d,S,y.slotScopeIds,b),mt(()=>{E.isDeactivated=!1,E.a&&Ur(E.a);const L=y.props&&y.props.onVnodeMounted;L&&Lt(L,E.parent,y)},d)},r.deactivate=y=>{const k=y.component;p(y,c,null,1,d),mt(()=>{k.da&&Ur(k.da);const C=y.props&&y.props.onVnodeUnmounted;C&&Lt(C,k.parent,y),k.isDeactivated=!0},d)};function h(y){La(y),a(y,n,d,!0)}function f(y){l.forEach((k,C)=>{const S=Cl(k.type);S&&(!y||!y(S))&&g(C)})}function g(y){const k=l.get(y);!u||!Kt(k,u)?h(k):u&&La(u),l.delete(y),s.delete(y)}st(()=>[e.include,e.exclude],([y,k])=>{y&&f(C=>Ci(y,C)),k&&f(C=>!Ci(k,C))},{flush:"post",deep:!0});let m=null;const v=()=>{m!=null&&l.set(m,Ma(n.subTree))};return lt(v),na(v),fi(()=>{l.forEach(y=>{const{subTree:k,suspense:C}=n,S=Ma(k);if(y.type===S.type&&y.key===S.key){La(S);const b=S.component.da;b&&mt(b,C);return}h(y)})}),()=>{if(m=null,!t.default)return null;const y=t.default(),k=y[0];if(y.length>1)return u=null,y;if(!Zn(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return u=null,k;let C=Ma(k);const S=C.type,b=Cl(hr(C)?C.type.__asyncResolved||{}:S),{include:E,exclude:L,max:x}=e;if(E&&(!b||!Ci(E,b))||L&&b&&Ci(L,b))return u=C,k;const M=C.key==null?S:C.key,_=l.get(M);return C.el&&(C=an(C),k.shapeFlag&128&&(k.ssContent=C)),m=M,_?(C.el=_.el,C.component=_.component,C.transition&&vr(C,C.transition),C.shapeFlag|=512,s.delete(M),s.add(M)):(s.add(M),x&&s.size>parseInt(x,10)&&g(s.values().next().value)),C.shapeFlag|=256,u=C,td(k.type)?k:C}}},S0=$0;function Ci(e,t){return _e(e)?e.some(n=>Ci(n,t)):at(e)?e.split(",").includes(t):ny(e)?e.test(t):!1}function hd(e,t){dd(e,"a",t)}function fd(e,t){dd(e,"da",t)}function dd(e,t,n=ft){const r=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(ta(t,r,n),n){let l=n.parent;for(;l&&l.parent;)vs(l.parent.vnode)&&C0(r,t,n,l),l=l.parent}}function C0(e,t,n,r){const l=ta(t,e,r,!0);ra(()=>{oc(r[t],l)},n)}function La(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ma(e){return e.shapeFlag&128?e.ssContent:e}function ta(e,t,n=ft,r=!1){if(n){const l=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...u)=>{if(n.isUnmounted)return;xr();const d=wr(n),o=Bt(t,n,e,u);return d(),Er(),o});return r?l.unshift(s):l.push(s),s}}const xn=e=>(t,n=ft)=>(!ys||e==="sp")&&ta(e,(...r)=>t(...r),n),pd=xn("bm"),lt=xn("m"),gd=xn("bu"),na=xn("u"),fi=xn("bum"),ra=xn("um"),md=xn("sp"),vd=xn("rtg"),yd=xn("rtc");function bd(e,t=ft){ta("ec",e,t)}function Nt(e,t,n,r){let l;const s=n&&n[r];if(_e(e)||at(e)){l=new Array(e.length);for(let u=0,d=e.length;ut(u,d,void 0,s&&s[d]));else{const u=Object.keys(e);l=new Array(u.length);for(let d=0,o=u.length;d{const s=r.fn(...l);return s&&(s.key=r.key),s}:r.fn)}return e}function k0(e,t,n={},r,l){if(ht.isCE||ht.parent&&hr(ht.parent)&&ht.parent.isCE)return t!=="default"&&(n.name=t),oe("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),Z();const u=s&&wd(s(n)),d=Se(Ne,{key:n.key||u&&u.key||`_${t}`},u||(r?r():[]),u&&e._===1?64:-2);return!l&&d.scopeId&&(d.slotScopeIds=[d.scopeId+"-s"]),s&&s._c&&(s._d=!0),d}function wd(e){return e.some(t=>Zn(t)?!(t.type===$t||t.type===Ne&&!wd(t.children)):!0)?e:null}function x0(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Ei(r)]=e[r];return n}const dl=e=>e?Hd(e)?oa(e)||e.proxy:dl(e.parent):null,Ri=ot(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=>dl(e.parent),$root:e=>dl(e.root),$emit:e=>e.emit,$options:e=>kc(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Yo(e.update)}),$nextTick:e=>e.n||(e.n=hi.bind(e.proxy)),$watch:e=>b0.bind(e)}),Oa=(e,t)=>e!==Ze&&!e.__isScriptSetup&&Ve(e,t),pl={get({_:e},t){const{ctx:n,setupState:r,data:l,props:s,accessCache:u,type:d,appContext:o}=e;let p;if(t[0]!=="$"){const h=u[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return s[t]}else{if(Oa(r,t))return u[t]=1,r[t];if(l!==Ze&&Ve(l,t))return u[t]=2,l[t];if((p=e.propsOptions[0])&&Ve(p,t))return u[t]=3,s[t];if(n!==Ze&&Ve(n,t))return u[t]=4,n[t];gl&&(u[t]=0)}}const a=Ri[t];let i,c;if(a)return t==="$attrs"&&It(e,"get",t),a(e);if((i=d.__cssModules)&&(i=i[t]))return i;if(n!==Ze&&Ve(n,t))return u[t]=4,n[t];if(c=o.config.globalProperties,Ve(c,t))return c[t]},set({_:e},t,n){const{data:r,setupState:l,ctx:s}=e;return Oa(l,t)?(l[t]=n,!0):r!==Ze&&Ve(r,t)?(r[t]=n,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:s}},u){let d;return!!n[u]||e!==Ze&&Ve(e,u)||Oa(t,u)||(d=s[0])&&Ve(d,u)||Ve(r,u)||Ve(Ri,u)||Ve(l.config.globalProperties,u)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},E0=ot({},pl,{get(e,t){if(t!==Symbol.unscopables)return pl.get(e,t,e)},has(e,t){return t[0]!=="_"&&!ay(t)}});function R0(){return null}function T0(){return null}function L0(e){}function M0(e){}function O0(){return null}function I0(){}function N0(e,t){return null}function D0(){return _d().slots}function F0(){return _d().attrs}function _d(){const e=Gt();return e.setupContext||(e.setupContext=zd(e))}function Yi(e){return _e(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function P0(e,t){const n=Yi(e);for(const r in t){if(r.startsWith("__skip"))continue;let l=n[r];l?_e(l)||Ie(l)?l=n[r]={type:l,default:t[r]}:l.default=t[r]:l===null&&(l=n[r]={default:t[r]}),l&&t[`__skip_${r}`]&&(l.skipFactory=!0)}return n}function B0(e,t){return!e||!t?e||t:_e(e)&&_e(t)?e.concat(t):ot({},Yi(e),Yi(t))}function W0(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function H0(e){const t=Gt();let n=e();return _l(),ac(n)&&(n=n.catch(r=>{throw wr(t),r})),[n,()=>wr(t)]}let gl=!0;function U0(e){const t=kc(e),n=e.proxy,r=e.ctx;gl=!1,t.beforeCreate&&Nu(t.beforeCreate,e,"bc");const{data:l,computed:s,methods:u,watch:d,provide:o,inject:p,created:a,beforeMount:i,mounted:c,beforeUpdate:h,updated:f,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:k,unmounted:C,render:S,renderTracked:b,renderTriggered:E,errorCaptured:L,serverPrefetch:x,expose:M,inheritAttrs:_,components:A,directives:$,filters:w}=t;if(p&&V0(p,r,null),u)for(const O in u){const I=u[O];Ie(I)&&(r[O]=I.bind(n))}if(l){const O=l.call(n,n);qe(O)&&(e.data=ui(O))}if(gl=!0,s)for(const O in s){const I=s[O],N=Ie(I)?I.bind(n,n):Ie(I.get)?I.get.bind(n,n):Mt,P=!Ie(I)&&Ie(I.set)?I.set.bind(n):Mt,W=Le({get:N,set:P});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(d)for(const O in d)$d(d[O],r,n,O);if(o){const O=Ie(o)?o.call(n):o;Reflect.ownKeys(O).forEach(I=>{Ti(I,O[I])})}a&&Nu(a,e,"c");function T(O,I){_e(I)?I.forEach(N=>O(N.bind(n))):I&&O(I.bind(n))}if(T(pd,i),T(lt,c),T(gd,h),T(na,f),T(hd,g),T(fd,m),T(bd,L),T(yd,b),T(vd,E),T(fi,y),T(ra,C),T(md,x),_e(M))if(M.length){const O=e.exposed||(e.exposed={});M.forEach(I=>{Object.defineProperty(O,I,{get:()=>n[I],set:N=>n[I]=N})})}else e.exposed||(e.exposed={});S&&e.render===Mt&&(e.render=S),_!=null&&(e.inheritAttrs=_),A&&(e.components=A),$&&(e.directives=$)}function V0(e,t,n=Mt){_e(e)&&(e=ml(e));for(const r in e){const l=e[r];let s;qe(l)?"default"in l?s=Vt(l.from||r,l.default,!0):s=Vt(l.from||r):s=Vt(l),yt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:u=>s.value=u}):t[r]=s}}function Nu(e,t,n){Bt(_e(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function $d(e,t,n,r){const l=r.includes(".")?ld(n,r):()=>n[r];if(at(e)){const s=t[e];Ie(s)&&st(l,s)}else if(Ie(e))st(l,e.bind(n));else if(qe(e))if(_e(e))e.forEach(s=>$d(s,t,n,r));else{const s=Ie(e.handler)?e.handler.bind(n):t[e.handler];Ie(s)&&st(l,s,e)}}function kc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:s,config:{optionMergeStrategies:u}}=e.appContext,d=s.get(t);let o;return d?o=d:!l.length&&!n&&!r?o=t:(o={},l.length&&l.forEach(p=>go(o,p,u,!0)),go(o,t,u)),qe(t)&&s.set(t,o),o}function go(e,t,n,r=!1){const{mixins:l,extends:s}=t;s&&go(e,s,n,!0),l&&l.forEach(u=>go(e,u,n,!0));for(const u in t)if(!(r&&u==="expose")){const d=z0[u]||n&&n[u];e[u]=d?d(e[u],t[u]):t[u]}return e}const z0={data:Du,props:Fu,emits:Fu,methods:Ai,computed:Ai,beforeCreate:kt,created:kt,beforeMount:kt,mounted:kt,beforeUpdate:kt,updated:kt,beforeDestroy:kt,beforeUnmount:kt,destroyed:kt,unmounted:kt,activated:kt,deactivated:kt,errorCaptured:kt,serverPrefetch:kt,components:Ai,directives:Ai,watch:G0,provide:Du,inject:j0};function Du(e,t){return t?e?function(){return ot(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function j0(e,t){return Ai(ml(e),ml(t))}function ml(e){if(_e(e)){const t={};for(let n=0;n1)return n&&Ie(t)?t.call(r&&r.proxy):t}}function Z0(){return!!(ft||ht||Gr)}function X0(e,t,n,r=!1){const l={},s={};co(s,ia,1),e.propsDefaults=Object.create(null),Cd(e,t,l,s);for(const u in e.propsOptions[0])u in l||(l[u]=void 0);n?e.props=r?l:pc(l):e.type.props?e.props=l:e.props=s,e.attrs=s}function q0(e,t,n,r){const{props:l,attrs:s,vnode:{patchFlag:u}}=e,d=We(l),[o]=e.propsOptions;let p=!1;if((r||u>0)&&!(u&16)){if(u&8){const a=e.vnode.dynamicProps;for(let i=0;i{o=!0;const[c,h]=Ad(i,t,!0);ot(u,c),h&&d.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!s&&!o)return qe(e)&&r.set(e,Br),Br;if(_e(s))for(let a=0;a-1,h[1]=g<0||f-1||Ve(h,"default"))&&d.push(i)}}}const p=[u,d];return qe(e)&&r.set(e,p),p}function Pu(e){return e[0]!=="$"&&!Hr(e)}function Bu(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Wu(e,t){return Bu(e)===Bu(t)}function Hu(e,t){return _e(t)?t.findIndex(n=>Wu(n,e)):Ie(t)&&Wu(t,e)?0:-1}const kd=e=>e[0]==="_"||e==="$stable",xc=e=>_e(e)?e.map(Ft):[Ft(e)],Q0=(e,t,n)=>{if(t._n)return t;const r=Je((...l)=>xc(t(...l)),n);return r._c=!1,r},xd=(e,t,n)=>{const r=e._ctx;for(const l in e){if(kd(l))continue;const s=e[l];if(Ie(s))t[l]=Q0(l,s,r);else if(s!=null){const u=xc(s);t[l]=()=>u}}},Ed=(e,t)=>{const n=xc(t);e.slots.default=()=>n},J0=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=We(t),co(t,"_",n)):xd(t,e.slots={})}else e.slots={},t&&Ed(e,t);co(e.slots,ia,1)},eb=(e,t,n)=>{const{vnode:r,slots:l}=e;let s=!0,u=Ze;if(r.shapeFlag&32){const d=t._;d?n&&d===1?s=!1:(ot(l,t),!n&&d===1&&delete l._):(s=!t.$stable,xd(t,l)),u=t}else t&&(Ed(e,t),u={default:1});if(s)for(const d in l)!kd(d)&&u[d]==null&&delete l[d]};function mo(e,t,n,r,l=!1){if(_e(e)){e.forEach((c,h)=>mo(c,t&&(_e(t)?t[h]:t),n,r,l));return}if(hr(r)&&!l)return;const s=r.shapeFlag&4?oa(r.component)||r.component.proxy:r.el,u=l?null:s,{i:d,r:o}=e,p=t&&t.r,a=d.refs===Ze?d.refs={}:d.refs,i=d.setupState;if(p!=null&&p!==o&&(at(p)?(a[p]=null,Ve(i,p)&&(i[p]=null)):yt(p)&&(p.value=null)),Ie(o))bn(o,d,12,[u,a]);else{const c=at(o),h=yt(o);if(c||h){const f=()=>{if(e.f){const g=c?Ve(i,o)?i[o]:a[o]:o.value;l?_e(g)&&oc(g,s):_e(g)?g.includes(s)||g.push(s):c?(a[o]=[s],Ve(i,o)&&(i[o]=a[o])):(o.value=[s],e.k&&(a[e.k]=o.value))}else c?(a[o]=u,Ve(i,o)&&(i[o]=u)):h&&(o.value=u,e.k&&(a[e.k]=u))};u?(f.id=-1,mt(f,n)):f()}}}let Mn=!1;const tb=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",nb=e=>e.namespaceURI.includes("MathML"),zs=e=>{if(tb(e))return"svg";if(nb(e))return"mathml"},js=e=>e.nodeType===8;function rb(e){const{mt:t,p:n,o:{patchProp:r,createText:l,nextSibling:s,parentNode:u,remove:d,insert:o,createComment:p}}=e,a=(k,C)=>{if(!C.hasChildNodes()){n(null,k,C),po(),C._vnode=k;return}Mn=!1,i(C.firstChild,k,null,null,null),po(),C._vnode=k,Mn&&console.error("Hydration completed but contains mismatches.")},i=(k,C,S,b,E,L=!1)=>{const x=js(k)&&k.data==="[",M=()=>g(k,C,S,b,E,x),{type:_,ref:A,shapeFlag:$,patchFlag:w}=C;let R=k.nodeType;C.el=k,w===-2&&(L=!1,C.dynamicChildren=null);let T=null;switch(_){case yr:R!==3?C.children===""?(o(C.el=l(""),u(k),k),T=k):T=M():(k.data!==C.children&&(Mn=!0,k.data=C.children),T=s(k));break;case $t:y(k)?(T=s(k),v(C.el=k.content.firstChild,k,S)):R!==8||x?T=M():T=s(k);break;case fr:if(x&&(k=s(k),R=k.nodeType),R===1||R===3){T=k;const O=!C.children.length;for(let I=0;I{L=L||!!C.dynamicChildren;const{type:x,props:M,patchFlag:_,shapeFlag:A,dirs:$,transition:w}=C,R=x==="input"||x==="option";if(R||_!==-1){$&&tn(C,null,S,"created");let T=!1;if(y(k)){T=Md(b,w)&&S&&S.vnode.props&&S.vnode.props.appear;const I=k.content.firstChild;T&&w.beforeEnter(I),v(I,k,S),C.el=k=I}if(A&16&&!(M&&(M.innerHTML||M.textContent))){let I=h(k.firstChild,C,k,S,b,E,L);for(;I;){Mn=!0;const N=I;I=I.nextSibling,d(N)}}else A&8&&k.textContent!==C.children&&(Mn=!0,k.textContent=C.children);if(M)if(R||!L||_&48)for(const I in M)(R&&(I.endsWith("value")||I==="indeterminate")||ps(I)&&!Hr(I)||I[0]===".")&&r(k,I,null,M[I],void 0,void 0,S);else M.onClick&&r(k,"onClick",null,M.onClick,void 0,void 0,S);let O;(O=M&&M.onVnodeBeforeMount)&&Lt(O,S,C),$&&tn(C,null,S,"beforeMount"),((O=M&&M.onVnodeMounted)||$||T)&&nd(()=>{O&&Lt(O,S,C),T&&w.enter(k),$&&tn(C,null,S,"mounted")},b)}return k.nextSibling},h=(k,C,S,b,E,L,x)=>{x=x||!!C.dynamicChildren;const M=C.children,_=M.length;for(let A=0;A<_;A++){const $=x?M[A]:M[A]=Ft(M[A]);if(k)k=i(k,$,b,E,L,x);else{if($.type===yr&&!$.children)continue;Mn=!0,n(null,$,S,null,b,E,zs(S),L)}}return k},f=(k,C,S,b,E,L)=>{const{slotScopeIds:x}=C;x&&(E=E?E.concat(x):x);const M=u(k),_=h(s(k),C,M,S,b,E,L);return _&&js(_)&&_.data==="]"?s(C.anchor=_):(Mn=!0,o(C.anchor=p("]"),M,_),_)},g=(k,C,S,b,E,L)=>{if(Mn=!0,C.el=null,L){const _=m(k);for(;;){const A=s(k);if(A&&A!==_)d(A);else break}}const x=s(k),M=u(k);return d(k),n(null,C,M,x,S,b,zs(M),E),x},m=(k,C="[",S="]")=>{let b=0;for(;k;)if(k=s(k),k&&js(k)&&(k.data===C&&b++,k.data===S)){if(b===0)return s(k);b--}return k},v=(k,C,S)=>{const b=C.parentNode;b&&b.replaceChild(k,C);let E=S;for(;E;)E.vnode.el===C&&(E.vnode.el=E.subTree.el=k),E=E.parent},y=k=>k.nodeType===1&&k.tagName.toLowerCase()==="template";return[a,i]}const mt=nd;function Rd(e){return Ld(e)}function Td(e){return Ld(e,rb)}function Ld(e,t){const n=kf();n.__VUE__=!0;const{insert:r,remove:l,patchProp:s,createElement:u,createText:d,createComment:o,setText:p,setElementText:a,parentNode:i,nextSibling:c,setScopeId:h=Mt,insertStaticContent:f}=e,g=(F,B,K,J=null,te=null,ce=null,pe=void 0,ue=null,fe=!!B.dynamicChildren)=>{if(F===B)return;F&&!Kt(F,B)&&(J=U(F),j(F,te,ce,!0),F=null),B.patchFlag===-2&&(fe=!1,B.dynamicChildren=null);const{type:ae,ref:ve,shapeFlag:Ee}=B;switch(ae){case yr:m(F,B,K,J);break;case $t:v(F,B,K,J);break;case fr:F==null&&y(B,K,J,pe);break;case Ne:A(F,B,K,J,te,ce,pe,ue,fe);break;default:Ee&1?S(F,B,K,J,te,ce,pe,ue,fe):Ee&6?$(F,B,K,J,te,ce,pe,ue,fe):(Ee&64||Ee&128)&&ae.process(F,B,K,J,te,ce,pe,ue,fe,z)}ve!=null&&te&&mo(ve,F&&F.ref,ce,B||F,!B)},m=(F,B,K,J)=>{if(F==null)r(B.el=d(B.children),K,J);else{const te=B.el=F.el;B.children!==F.children&&p(te,B.children)}},v=(F,B,K,J)=>{F==null?r(B.el=o(B.children||""),K,J):B.el=F.el},y=(F,B,K,J)=>{[F.el,F.anchor]=f(F.children,B,K,J,F.el,F.anchor)},k=({el:F,anchor:B},K,J)=>{let te;for(;F&&F!==B;)te=c(F),r(F,K,J),F=te;r(B,K,J)},C=({el:F,anchor:B})=>{let K;for(;F&&F!==B;)K=c(F),l(F),F=K;l(B)},S=(F,B,K,J,te,ce,pe,ue,fe)=>{B.type==="svg"?pe="svg":B.type==="math"&&(pe="mathml"),F==null?b(B,K,J,te,ce,pe,ue,fe):x(F,B,te,ce,pe,ue,fe)},b=(F,B,K,J,te,ce,pe,ue)=>{let fe,ae;const{props:ve,shapeFlag:Ee,transition:Ae,dirs:q}=F;if(fe=F.el=u(F.type,ce,ve&&ve.is,ve),Ee&8?a(fe,F.children):Ee&16&&L(F.children,fe,null,J,te,Ia(F,ce),pe,ue),q&&tn(F,null,J,"created"),E(fe,F,F.scopeId,pe,J),ve){for(const ge in ve)ge!=="value"&&!Hr(ge)&&s(fe,ge,null,ve[ge],ce,F.children,J,te,Q);"value"in ve&&s(fe,"value",null,ve.value,ce),(ae=ve.onVnodeBeforeMount)&&Lt(ae,J,F)}q&&tn(F,null,J,"beforeMount");const le=Md(te,Ae);le&&Ae.beforeEnter(fe),r(fe,B,K),((ae=ve&&ve.onVnodeMounted)||le||q)&&mt(()=>{ae&&Lt(ae,J,F),le&&Ae.enter(fe),q&&tn(F,null,J,"mounted")},te)},E=(F,B,K,J,te)=>{if(K&&h(F,K),J)for(let ce=0;ce{for(let ae=fe;ae{const ue=B.el=F.el;let{patchFlag:fe,dynamicChildren:ae,dirs:ve}=B;fe|=F.patchFlag&16;const Ee=F.props||Ze,Ae=B.props||Ze;let q;if(K&&tr(K,!1),(q=Ae.onVnodeBeforeUpdate)&&Lt(q,K,B,F),ve&&tn(B,F,K,"beforeUpdate"),K&&tr(K,!0),ae?M(F.dynamicChildren,ae,ue,K,J,Ia(B,te),ce):pe||I(F,B,ue,null,K,J,Ia(B,te),ce,!1),fe>0){if(fe&16)_(ue,B,Ee,Ae,K,J,te);else if(fe&2&&Ee.class!==Ae.class&&s(ue,"class",null,Ae.class,te),fe&4&&s(ue,"style",Ee.style,Ae.style,te),fe&8){const le=B.dynamicProps;for(let ge=0;ge{q&&Lt(q,K,B,F),ve&&tn(B,F,K,"updated")},J)},M=(F,B,K,J,te,ce,pe)=>{for(let ue=0;ue{if(K!==J){if(K!==Ze)for(const ue in K)!Hr(ue)&&!(ue in J)&&s(F,ue,K[ue],null,pe,B.children,te,ce,Q);for(const ue in J){if(Hr(ue))continue;const fe=J[ue],ae=K[ue];fe!==ae&&ue!=="value"&&s(F,ue,ae,fe,pe,B.children,te,ce,Q)}"value"in J&&s(F,"value",K.value,J.value,pe)}},A=(F,B,K,J,te,ce,pe,ue,fe)=>{const ae=B.el=F?F.el:d(""),ve=B.anchor=F?F.anchor:d("");let{patchFlag:Ee,dynamicChildren:Ae,slotScopeIds:q}=B;q&&(ue=ue?ue.concat(q):q),F==null?(r(ae,K,J),r(ve,K,J),L(B.children||[],K,ve,te,ce,pe,ue,fe)):Ee>0&&Ee&64&&Ae&&F.dynamicChildren?(M(F.dynamicChildren,Ae,K,te,ce,pe,ue),(B.key!=null||te&&B===te.subTree)&&Ec(F,B,!0)):I(F,B,K,ve,te,ce,pe,ue,fe)},$=(F,B,K,J,te,ce,pe,ue,fe)=>{B.slotScopeIds=ue,F==null?B.shapeFlag&512?te.ctx.activate(B,K,J,pe,fe):w(B,K,J,te,ce,pe,fe):R(F,B,fe)},w=(F,B,K,J,te,ce,pe)=>{const ue=F.component=Wd(F,J,te);if(vs(F)&&(ue.ctx.renderer=z),Ud(ue),ue.asyncDep){if(te&&te.registerDep(ue,T),!F.el){const fe=ue.subTree=oe($t);v(null,fe,B,K)}}else T(ue,F,B,K,te,ce,pe)},R=(F,B,K)=>{const J=B.component=F.component;if(l0(F,B,K))if(J.asyncDep&&!J.asyncResolved){O(J,B,K);return}else J.next=B,t0(J.update),J.effect.dirty=!0,J.update();else B.el=F.el,J.vnode=B},T=(F,B,K,J,te,ce,pe)=>{const ue=()=>{if(F.isMounted){let{next:ve,bu:Ee,u:Ae,parent:q,vnode:le}=F;{const Qe=Od(F);if(Qe){ve&&(ve.el=le.el,O(F,ve,pe)),Qe.asyncDep.then(()=>{F.isUnmounted||ue()});return}}let ge=ve,ke;tr(F,!1),ve?(ve.el=le.el,O(F,ve,pe)):ve=le,Ee&&Ur(Ee),(ke=ve.props&&ve.props.onVnodeBeforeUpdate)&&Lt(ke,q,ve,le),tr(F,!0);const Oe=qs(F),He=F.subTree;F.subTree=Oe,g(He,Oe,i(He.el),U(He),F,te,ce),ve.el=Oe.el,ge===null&&wc(F,Oe.el),Ae&&mt(Ae,te),(ke=ve.props&&ve.props.onVnodeUpdated)&&mt(()=>Lt(ke,q,ve,le),te)}else{let ve;const{el:Ee,props:Ae}=B,{bm:q,m:le,parent:ge}=F,ke=hr(B);if(tr(F,!1),q&&Ur(q),!ke&&(ve=Ae&&Ae.onVnodeBeforeMount)&&Lt(ve,ge,B),tr(F,!0),Ee&&he){const Oe=()=>{F.subTree=qs(F),he(Ee,F.subTree,F,te,null)};ke?B.type.__asyncLoader().then(()=>!F.isUnmounted&&Oe()):Oe()}else{const Oe=F.subTree=qs(F);g(null,Oe,K,J,F,te,ce),B.el=Oe.el}if(le&&mt(le,te),!ke&&(ve=Ae&&Ae.onVnodeMounted)){const Oe=B;mt(()=>Lt(ve,ge,Oe),te)}(B.shapeFlag&256||ge&&hr(ge.vnode)&&ge.vnode.shapeFlag&256)&&F.a&&mt(F.a,te),F.isMounted=!0,B=K=J=null}},fe=F.effect=new Zr(ue,Mt,()=>Yo(ae),F.scope),ae=F.update=()=>{fe.dirty&&fe.run()};ae.id=F.uid,tr(F,!0),ae()},O=(F,B,K)=>{B.component=F;const J=F.vnode.props;F.vnode=B,F.next=null,q0(F,B.props,J,K),eb(F,B.children,K),xr(),Tu(F),Er()},I=(F,B,K,J,te,ce,pe,ue,fe=!1)=>{const ae=F&&F.children,ve=F?F.shapeFlag:0,Ee=B.children,{patchFlag:Ae,shapeFlag:q}=B;if(Ae>0){if(Ae&128){P(ae,Ee,K,J,te,ce,pe,ue,fe);return}else if(Ae&256){N(ae,Ee,K,J,te,ce,pe,ue,fe);return}}q&8?(ve&16&&Q(ae,te,ce),Ee!==ae&&a(K,Ee)):ve&16?q&16?P(ae,Ee,K,J,te,ce,pe,ue,fe):Q(ae,te,ce,!0):(ve&8&&a(K,""),q&16&&L(Ee,K,J,te,ce,pe,ue,fe))},N=(F,B,K,J,te,ce,pe,ue,fe)=>{F=F||Br,B=B||Br;const ae=F.length,ve=B.length,Ee=Math.min(ae,ve);let Ae;for(Ae=0;Aeve?Q(F,te,ce,!0,!1,Ee):L(B,K,J,te,ce,pe,ue,fe,Ee)},P=(F,B,K,J,te,ce,pe,ue,fe)=>{let ae=0;const ve=B.length;let Ee=F.length-1,Ae=ve-1;for(;ae<=Ee&&ae<=Ae;){const q=F[ae],le=B[ae]=fe?Bn(B[ae]):Ft(B[ae]);if(Kt(q,le))g(q,le,K,null,te,ce,pe,ue,fe);else break;ae++}for(;ae<=Ee&&ae<=Ae;){const q=F[Ee],le=B[Ae]=fe?Bn(B[Ae]):Ft(B[Ae]);if(Kt(q,le))g(q,le,K,null,te,ce,pe,ue,fe);else break;Ee--,Ae--}if(ae>Ee){if(ae<=Ae){const q=Ae+1,le=qAe)for(;ae<=Ee;)j(F[ae],te,ce,!0),ae++;else{const q=ae,le=ae,ge=new Map;for(ae=le;ae<=Ae;ae++){const Xe=B[ae]=fe?Bn(B[ae]):Ft(B[ae]);Xe.key!=null&&ge.set(Xe.key,ae)}let ke,Oe=0;const He=Ae-le+1;let Qe=!1,nt=0;const Ke=new Array(He);for(ae=0;ae=He){j(Xe,te,ce,!0);continue}let wt;if(Xe.key!=null)wt=ge.get(Xe.key);else for(ke=le;ke<=Ae;ke++)if(Ke[ke-le]===0&&Kt(Xe,B[ke])){wt=ke;break}wt===void 0?j(Xe,te,ce,!0):(Ke[wt-le]=ae+1,wt>=nt?nt=wt:Qe=!0,g(Xe,B[wt],K,null,te,ce,pe,ue,fe),Oe++)}const je=Qe?ib(Ke):Br;for(ke=je.length-1,ae=He-1;ae>=0;ae--){const Xe=le+ae,wt=B[Xe],vi=Xe+1{const{el:ce,type:pe,transition:ue,children:fe,shapeFlag:ae}=F;if(ae&6){W(F.component.subTree,B,K,J);return}if(ae&128){F.suspense.move(B,K,J);return}if(ae&64){pe.move(F,B,K,z);return}if(pe===Ne){r(ce,B,K);for(let Ee=0;Eeue.enter(ce),te);else{const{leave:Ee,delayLeave:Ae,afterLeave:q}=ue,le=()=>r(ce,B,K),ge=()=>{Ee(ce,()=>{le(),q&&q()})};Ae?Ae(ce,le,ge):ge()}else r(ce,B,K)},j=(F,B,K,J=!1,te=!1)=>{const{type:ce,props:pe,ref:ue,children:fe,dynamicChildren:ae,shapeFlag:ve,patchFlag:Ee,dirs:Ae}=F;if(ue!=null&&mo(ue,null,K,F,!0),ve&256){B.ctx.deactivate(F);return}const q=ve&1&&Ae,le=!hr(F);let ge;if(le&&(ge=pe&&pe.onVnodeBeforeUnmount)&&Lt(ge,B,F),ve&6)G(F.component,K,J);else{if(ve&128){F.suspense.unmount(K,J);return}q&&tn(F,null,B,"beforeUnmount"),ve&64?F.type.remove(F,B,K,te,z,J):ae&&(ce!==Ne||Ee>0&&Ee&64)?Q(ae,B,K,!1,!0):(ce===Ne&&Ee&384||!te&&ve&16)&&Q(fe,B,K),J&&V(F)}(le&&(ge=pe&&pe.onVnodeUnmounted)||q)&&mt(()=>{ge&&Lt(ge,B,F),q&&tn(F,null,B,"unmounted")},K)},V=F=>{const{type:B,el:K,anchor:J,transition:te}=F;if(B===Ne){H(K,J);return}if(B===fr){C(F);return}const ce=()=>{l(K),te&&!te.persisted&&te.afterLeave&&te.afterLeave()};if(F.shapeFlag&1&&te&&!te.persisted){const{leave:pe,delayLeave:ue}=te,fe=()=>pe(K,ce);ue?ue(F.el,ce,fe):fe()}else ce()},H=(F,B)=>{let K;for(;F!==B;)K=c(F),l(F),F=K;l(B)},G=(F,B,K)=>{const{bum:J,scope:te,update:ce,subTree:pe,um:ue}=F;J&&Ur(J),te.stop(),ce&&(ce.active=!1,j(pe,F,B,K)),ue&&mt(ue,B),mt(()=>{F.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Q=(F,B,K,J=!1,te=!1,ce=0)=>{for(let pe=ce;peF.shapeFlag&6?U(F.component.subTree):F.shapeFlag&128?F.suspense.next():c(F.anchor||F.el);let X=!1;const Y=(F,B,K)=>{F==null?B._vnode&&j(B._vnode,null,null,!0):g(B._vnode||null,F,B,null,null,null,K),X||(X=!0,Tu(),po(),X=!1),B._vnode=F},z={p:g,um:j,m:W,r:V,mt:w,mc:L,pc:I,pbc:M,n:U,o:e};let ee,he;return t&&([ee,he]=t(z)),{render:Y,hydrate:ee,createApp:Y0(Y,ee)}}function Ia({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function tr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Md(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ec(e,t,n=!1){const r=e.children,l=t.children;if(_e(r)&&_e(l))for(let s=0;s>1,e[n[d]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,u=n[s-1];s-- >0;)n[s]=u,u=t[u];return n}function Od(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Od(t)}const sb=e=>e.__isTeleport,Li=e=>e&&(e.disabled||e.disabled===""),Uu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Vu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,yl=(e,t)=>{const n=e&&e.to;return at(n)?t?t(n):null:n},ob={name:"Teleport",__isTeleport:!0,process(e,t,n,r,l,s,u,d,o,p){const{mc:a,pc:i,pbc:c,o:{insert:h,querySelector:f,createText:g,createComment:m}}=p,v=Li(t.props);let{shapeFlag:y,children:k,dynamicChildren:C}=t;if(e==null){const S=t.el=g(""),b=t.anchor=g("");h(S,n,r),h(b,n,r);const E=t.target=yl(t.props,f),L=t.targetAnchor=g("");E&&(h(L,E),u==="svg"||Uu(E)?u="svg":(u==="mathml"||Vu(E))&&(u="mathml"));const x=(M,_)=>{y&16&&a(k,M,_,l,s,u,d,o)};v?x(n,b):E&&x(E,L)}else{t.el=e.el;const S=t.anchor=e.anchor,b=t.target=e.target,E=t.targetAnchor=e.targetAnchor,L=Li(e.props),x=L?n:b,M=L?S:E;if(u==="svg"||Uu(b)?u="svg":(u==="mathml"||Vu(b))&&(u="mathml"),C?(c(e.dynamicChildren,C,x,l,s,u,d),Ec(e,t,!0)):o||i(e,t,x,M,l,s,u,d,!1),v)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Gs(t,n,S,p,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const _=t.target=yl(t.props,f);_&&Gs(t,_,null,p,0)}else L&&Gs(t,b,E,p,1)}Id(t)},remove(e,t,n,r,{um:l,o:{remove:s}},u){const{shapeFlag:d,children:o,anchor:p,targetAnchor:a,target:i,props:c}=e;if(i&&s(a),u&&s(p),d&16){const h=u||!Li(c);for(let f=0;f0?Ot||Br:null,Nd(),br>0&&Ot&&Ot.push(e),e}function se(e,t,n,r,l,s){return Dd(D(e,t,n,r,l,s,!0))}function Se(e,t,n,r,l){return Dd(oe(e,t,n,r,l,!0))}function Zn(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}function cb(e){}const ia="__vInternal",Fd=({key:e})=>e??null,Qs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?at(e)||yt(e)||Ie(e)?{i:ht,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,l=null,s=e===Ne?0:1,u=!1,d=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fd(t),ref:t&&Qs(t),scopeId:Xo,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:s,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ht};return d?(Rc(o,n),s&128&&e.normalize(o)):n&&(o.shapeFlag|=at(n)?8:16),br>0&&!u&&Ot&&(o.patchFlag>0||s&6)&&o.patchFlag!==32&&Ot.push(o),o}const oe=ub;function ub(e,t=null,n=null,r=0,l=null,s=!1){if((!e||e===ed)&&(e=$t),Zn(e)){const d=an(e,t,!0);return n&&Rc(d,n),br>0&&!s&&Ot&&(d.shapeFlag&6?Ot[Ot.indexOf(e)]=d:Ot.push(d)),d.patchFlag|=-2,d}if(vb(e)&&(e=e.__vccOpts),t){t=Pd(t);let{class:d,style:o}=t;d&&!at(d)&&(t.class=ci(d)),qe(o)&&(gc(o)&&!_e(o)&&(o=ot({},o)),t.style=gs(o))}const u=at(e)?1:td(e)?128:sb(e)?64:qe(e)?4:Ie(e)?2:0;return D(e,t,n,r,l,u,s,!0)}function Pd(e){return e?gc(e)||ia in e?ot({},e):e:null}function an(e,t,n=!1){const{props:r,ref:l,patchFlag:s,children:u}=e,d=t?Bd(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Fd(d),ref:t&&t.ref?n&&l?_e(l)?l.concat(Qs(t)):[l,Qs(t)]:Qs(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&an(e.ssContent),ssFallback:e.ssFallback&&an(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function et(e=" ",t=0){return oe(yr,null,e,t)}function sa(e,t){const n=oe(fr,null,e);return n.staticCount=t,n}function me(e="",t=!1){return t?(Z(),Se($t,null,e)):oe($t,null,e)}function Ft(e){return e==null||typeof e=="boolean"?oe($t):_e(e)?oe(Ne,null,e.slice()):typeof e=="object"?Bn(e):oe(yr,null,String(e))}function Bn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:an(e)}function Rc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(_e(t))n=16;else if(typeof t=="object")if(r&65){const l=t.default;l&&(l._c&&(l._d=!1),Rc(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!(ia in t)?t._ctx=ht:l===3&&ht&&(ht.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ie(t)?(t={default:t,_ctx:ht},n=32):(t=String(t),r&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bd(...e){const t={};for(let n=0;nft||ht;let vo,wl;{const e=kf(),t=(n,r)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(r),s=>{l.length>1?l.forEach(u=>u(s)):l[0](s)}};vo=t("__VUE_INSTANCE_SETTERS__",n=>ft=n),wl=t("__VUE_SSR_SETTERS__",n=>ys=n)}const wr=e=>{const t=ft;return vo(e),e.scope.on(),()=>{e.scope.off(),vo(t)}},_l=()=>{ft&&ft.scope.off(),vo(null)};function Hd(e){return e.vnode.shapeFlag&4}let ys=!1;function Ud(e,t=!1){t&&wl(t);const{props:n,children:r}=e.vnode,l=Hd(e);X0(e,n,l,t),J0(e,r);const s=l?db(e,t):void 0;return t&&wl(!1),s}function db(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=jo(new Proxy(e.ctx,pl));const{setup:r}=n;if(r){const l=e.setupContext=r.length>1?zd(e):null,s=wr(e);xr();const u=bn(r,e,0,[e.props,l]);if(Er(),s(),ac(u)){if(u.then(_l,_l),t)return u.then(d=>{$l(e,d,t)}).catch(d=>{Rr(d,e,0)});e.asyncDep=u}else $l(e,u,t)}else Vd(e,t)}function $l(e,t,n){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qe(t)&&(e.setupState=yc(t)),Vd(e,n)}let yo,Sl;function pb(e){yo=e,Sl=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,E0))}}const gb=()=>!yo;function Vd(e,t,n){const r=e.type;if(!e.render){if(!t&&yo&&!r.render){const l=r.template||kc(e).template;if(l){const{isCustomElement:s,compilerOptions:u}=e.appContext.config,{delimiters:d,compilerOptions:o}=r,p=ot(ot({isCustomElement:s,delimiters:d},u),o);r.render=yo(l,p)}}e.render=r.render||Mt,Sl&&Sl(e)}{const l=wr(e);xr();try{U0(e)}finally{Er(),l()}}}function mb(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return It(e,"get","$attrs"),t[n]}}))}function zd(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return mb(e)},slots:e.slots,emit:e.emit,expose:t}}function oa(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(yc(jo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ri)return Ri[n](e)},has(t,n){return n in t||n in Ri}}))}function Cl(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function vb(e){return Ie(e)&&"__vccOpts"in e}const Le=(e,t)=>By(e,t,ys);function yb(e,t,n=Ze){const r=Gt(),l=xt(t),s=Pt(t),u=Go((o,p)=>{let a;return ad(()=>{const i=e[t];Qt(a,i)&&(a=i,p())}),{get(){return o(),n.get?n.get(a):a},set(i){const c=r.vnode.props;!(c&&(t in c||l in c||s in c)&&(`onUpdate:${t}`in c||`onUpdate:${l}`in c||`onUpdate:${s}`in c))&&Qt(i,a)&&(a=i,p()),r.emit(`update:${t}`,n.set?n.set(i):i)}}}),d=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return u[Symbol.iterator]=()=>{let o=0;return{next(){return o<2?{value:o++?e[d]||{}:u,done:!1}:{done:!0}}}},u}function di(e,t,n){const r=arguments.length;return r===2?qe(t)&&!_e(t)?Zn(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Zn(n)&&(n=[n]),oe(e,t,n))}function bb(){}function wb(e,t,n,r){const l=n[r];if(l&&jd(l,e))return l;const s=t();return s.memo=e.slice(),n[r]=s}function jd(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&Ot&&Ot.push(e),!0}const Gd="3.4.21",_b=Mt,$b=Qy,Sb=Lr,Cb=Qf,Ab={createComponentInstance:Wd,setupComponent:Ud,renderComponentRoot:qs,setCurrentRenderingInstance:Gi,isVNode:Zn,normalizeVNode:Ft},kb=Ab,xb=null,Eb=null,Rb=null;/** * @vue/runtime-dom v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Tb="http://www.w3.org/2000/svg",Lb="http://www.w3.org/1998/Math/MathML",Wn=typeof document<"u"?document:null,zu=Wn&&Wn.createElement("template"),Mb={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const l=t==="svg"?Wn.createElementNS(Tb,e):t==="mathml"?Wn.createElementNS(Lb,e):Wn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&l.setAttribute("multiple",r.multiple),l},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,r,l,s){const u=n?n.previousSibling:t.lastChild;if(l&&(l===s||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===s||!(l=l.nextSibling)););else{zu.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const d=zu.content;if(r==="svg"||r==="mathml"){const o=d.firstChild;for(;o.firstChild;)d.appendChild(o.firstChild);d.removeChild(o)}t.insertBefore(d,n)}return[u?u.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},On="transition",yi="animation",qr=Symbol("_vtc"),Tc=(e,{slots:t})=>di(cd,Yd(e),t);Tc.displayName="Transition";const Kd={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},Ob=Tc.props=ot({},Ac,Kd),nr=(e,t=[])=>{_e(e)?e.forEach(n=>n(...t)):e&&e(...t)},ju=e=>e?_e(e)?e.some(t=>t.length>1):e.length>1:!1;function Yd(e){const t={};for(const A in e)A in Kd||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:r,duration:l,enterFromClass:s=`${n}-enter-from`,enterActiveClass:u=`${n}-enter-active`,enterToClass:d=`${n}-enter-to`,appearFromClass:o=s,appearActiveClass:p=u,appearToClass:a=d,leaveFromClass:i=`${n}-leave-from`,leaveActiveClass:c=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=Ib(l),g=f&&f[0],m=f&&f[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:k,onLeave:C,onLeaveCancelled:S,onBeforeAppear:b=v,onAppear:E=y,onAppearCancelled:L=k}=t,x=(A,$,w)=>{Dn(A,$?a:d),Dn(A,$?p:u),w&&w()},M=(A,$)=>{A._isLeaving=!1,Dn(A,i),Dn(A,h),Dn(A,c),$&&$()},_=A=>($,w)=>{const R=A?E:y,T=()=>x($,A,w);nr(R,[$,T]),Gu(()=>{Dn($,A?o:s),dn($,A?a:d),ju(R)||Ku($,r,g,T)})};return ot(t,{onBeforeEnter(A){nr(v,[A]),dn(A,s),dn(A,u)},onBeforeAppear(A){nr(b,[A]),dn(A,o),dn(A,p)},onEnter:_(!1),onAppear:_(!0),onLeave(A,$){A._isLeaving=!0;const w=()=>M(A,$);dn(A,i),Xd(),dn(A,c),Gu(()=>{A._isLeaving&&(Dn(A,i),dn(A,h),ju(C)||Ku(A,r,m,w))}),nr(C,[A,w])},onEnterCancelled(A){x(A,!1),nr(k,[A])},onAppearCancelled(A){x(A,!0),nr(L,[A])},onLeaveCancelled(A){M(A),nr(S,[A])}})}function Ib(e){if(e==null)return null;if(qe(e))return[Na(e.enter),Na(e.leave)];{const t=Na(e);return[t,t]}}function Na(e){return uo(e)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[qr]||(e[qr]=new Set)).add(t)}function Dn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[qr];n&&(n.delete(t),n.size||(e[qr]=void 0))}function Gu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nb=0;function Ku(e,t,n,r){const l=e._endId=++Nb,s=()=>{l===e._endId&&r()};if(n)return setTimeout(s,n);const{type:u,timeout:d,propCount:o}=Zd(e,t);if(!u)return r();const p=u+"end";let a=0;const i=()=>{e.removeEventListener(p,c),s()},c=h=>{h.target===e&&++a>=o&&i()};setTimeout(()=>{a(n[f]||"").split(", "),l=r(`${On}Delay`),s=r(`${On}Duration`),u=Yu(l,s),d=r(`${yi}Delay`),o=r(`${yi}Duration`),p=Yu(d,o);let a=null,i=0,c=0;t===On?u>0&&(a=On,i=u,c=s.length):t===yi?p>0&&(a=yi,i=p,c=o.length):(i=Math.max(u,p),a=i>0?u>p?On:yi:null,c=a?a===On?s.length:o.length:0);const h=a===On&&/\b(transform|all)(,|$)/.test(r(`${On}Property`).toString());return{type:a,timeout:i,propCount:c,hasTransform:h}}function Yu(e,t){for(;e.lengthZu(n)+Zu(e[r])))}function Zu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Xd(){return document.body.offsetHeight}function Db(e,t,n){const r=e[qr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bo=Symbol("_vod"),qd=Symbol("_vsh"),Qd={beforeMount(e,{value:t},{transition:n}){e[bo]=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:r}){!t!=!n&&(r?t?(r.beforeEnter(e),bi(e,!0),r.enter(e)):r.leave(e,()=>{bi(e,!1)}):bi(e,t))},beforeUnmount(e,{value:t}){bi(e,t)}};function bi(e,t){e.style.display=t?e[bo]:"none",e[qd]=!t}function Fb(){Qd.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Jd=Symbol("");function Pb(e){const t=Gt();if(!t)return;const n=t.ut=(l=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>kl(s,l))},r=()=>{const l=e(t.proxy);Al(t.subTree,l),n(l)};od(r),lt(()=>{const l=new MutationObserver(r);l.observe(t.subTree.el.parentNode,{childList:!0}),ra(()=>l.disconnect())})}function Al(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Al(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)kl(e.el,t);else if(e.type===Ne)e.children.forEach(n=>Al(n,t));else if(e.type===fr){let{el:n,anchor:r}=e;for(;n&&(kl(n,t),n!==r);)n=n.nextSibling}}function kl(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const l in t)n.setProperty(`--${l}`,t[l]),r+=`--${l}: ${t[l]};`;n[Jd]=r}}const Bb=/(^|;)\s*display\s*:/;function Wb(e,t,n){const r=e.style,l=at(n);let s=!1;if(n&&!l){if(t)if(at(t))for(const u of t.split(";")){const d=u.slice(0,u.indexOf(":")).trim();n[d]==null&&Js(r,d,"")}else for(const u in t)n[u]==null&&Js(r,u,"");for(const u in n)u==="display"&&(s=!0),Js(r,u,n[u])}else if(l){if(t!==n){const u=r[Jd];u&&(n+=";"+u),r.cssText=n,s=Bb.test(n)}}else t&&e.removeAttribute("style");bo in e&&(e[bo]=s?r.display:"",e[qd]&&(r.display="none"))}const Xu=/\s*!important$/;function Js(e,t,n){if(_e(n))n.forEach(r=>Js(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Hb(e,t);Xu.test(n)?e.setProperty(Pt(r),n.replace(Xu,""),"important"):e[r]=n}}const qu=["Webkit","Moz","ms"],Da={};function Hb(e,t){const n=Da[t];if(n)return n;let r=xt(t);if(r!=="filter"&&r in e)return Da[t]=r;r=li(r);for(let l=0;lFa||(Kb.then(()=>Fa=0),Fa=Date.now());function Zb(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Bt(Xb(r,n.value),t,5,[r])};return n.value=e,n.attached=Yb(),n}function Xb(e,t){if(_e(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>l=>!l._stopped&&r&&r(l))}else return t}const th=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qb=(e,t,n,r,l,s,u,d,o)=>{const p=l==="svg";t==="class"?Db(e,r,p):t==="style"?Wb(e,n,r):ps(t)?sc(t)||jb(e,t,n,r,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qb(e,t,r,p))?Vb(e,t,r,s,u,d,o):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ub(e,t,r,p))};function Qb(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&th(t)&&Ie(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return th(t)&&at(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function ep(e,t){const n=Ce(e);class r extends aa{constructor(s){super(n,s,t)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const Jb=e=>ep(e,hp),ew=typeof HTMLElement<"u"?HTMLElement:class{};class aa extends ew{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(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),hi(()=>{this._connected||(xl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const l of r)this._setAttr(l.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,l=!1)=>{const{props:s,styles:u}=r;let d;if(s&&!_e(s))for(const o in s){const p=s[o];(p===Number||p&&p.type===Number)&&(o in this._props&&(this._props[o]=uo(this._props[o])),(d||(d=Object.create(null)))[xt(o)]=!0)}this._numberProps=d,l&&this._resolveProps(r),this._applyStyles(u),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=_e(n)?n:Object.keys(n||{});for(const l of Object.keys(this))l[0]!=="_"&&r.includes(l)&&this._setProp(l,this[l],!0,!1);for(const l of r.map(xt))Object.defineProperty(this,l,{get(){return this._getProp(l)},set(s){this._setProp(l,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=xt(t);this._numberProps&&this._numberProps[r]&&(n=uo(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,l=!0){n!==this._props[t]&&(this._props[t]=n,l&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Pt(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Pt(t),n+""):n||this.removeAttribute(Pt(t))))}_update(){xl(this._createVNode(),this.shadowRoot)}_createVNode(){const t=oe(this._def,ot({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(s,u)=>{this.dispatchEvent(new CustomEvent(s,{detail:u}))};n.emit=(s,...u)=>{r(s,u),Pt(s)!==s&&r(Pt(s),u)};let l=this;for(;l=l&&(l.parentNode||l.host);)if(l instanceof aa){n.parent=l._instance,n.provides=l._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function tw(e="$style"){{const t=Gt();if(!t)return Ze;const n=t.type.__cssModules;if(!n)return Ze;const r=n[e];return r||Ze}}const tp=new WeakMap,np=new WeakMap,wo=Symbol("_moveCb"),nh=Symbol("_enterCb"),rp={name:"TransitionGroup",props:ot({},Ob,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Gt(),r=Cc();let l,s;return na(()=>{if(!l.length)return;const u=e.moveClass||`${e.name||"v"}-move`;if(!aw(l[0].el,n.vnode.el,u))return;l.forEach(iw),l.forEach(sw);const d=l.filter(ow);Xd(),d.forEach(o=>{const p=o.el,a=p.style;dn(p,u),a.transform=a.webkitTransform=a.transitionDuration="";const i=p[wo]=c=>{c&&c.target!==p||(!c||/transform$/.test(c.propertyName))&&(p.removeEventListener("transitionend",i),p[wo]=null,Dn(p,u))};p.addEventListener("transitionend",i)})}),()=>{const u=We(e),d=Yd(u);let o=u.tag||Ne;l=s,s=t.default?ea(t.default()):[];for(let p=0;pdelete e.mode;rp.props;const rw=rp;function iw(e){const t=e.el;t[wo]&&t[wo](),t[nh]&&t[nh]()}function sw(e){np.set(e,e.el.getBoundingClientRect())}function ow(e){const t=tp.get(e),n=np.get(e),r=t.left-n.left,l=t.top-n.top;if(r||l){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${l}px)`,s.transitionDuration="0s",e}}function aw(e,t,n){const r=e.cloneNode(),l=e[qr];l&&l.forEach(d=>{d.split(/\s+/).forEach(o=>o&&r.classList.remove(o))}),n.split(/\s+/).forEach(d=>d&&r.classList.add(d)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:u}=Zd(r);return s.removeChild(r),u}const Xn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return _e(t)?n=>Ur(t,n):t};function lw(e){e.target.composing=!0}function rh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zt=Symbol("_assign"),_r={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e[zt]=Xn(l);const s=r||l.props&&l.props.type==="number";pn(e,t?"change":"input",u=>{if(u.target.composing)return;let d=e.value;n&&(d=d.trim()),s&&(d=Hi(d)),e[zt](d)}),n&&pn(e,"change",()=>{e.value=e.value.trim()}),t||(pn(e,"compositionstart",lw),pn(e,"compositionend",rh),pn(e,"change",rh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},s){if(e[zt]=Xn(s),e.composing)return;const u=l||e.type==="number"?Hi(e.value):e.value,d=t??"";u!==d&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===d)||(e.value=d))}},Lc={deep:!0,created(e,t,n){e[zt]=Xn(n),pn(e,"change",()=>{const r=e._modelValue,l=Qr(e),s=e.checked,u=e[zt];if(_e(r)){const d=Wo(r,l),o=d!==-1;if(s&&!o)u(r.concat(l));else if(!s&&o){const p=[...r];p.splice(d,1),u(p)}}else if(kr(r)){const d=new Set(r);s?d.add(l):d.delete(l),u(d)}else u(sp(e,s))})},mounted:ih,beforeUpdate(e,t,n){e[zt]=Xn(n),ih(e,t,n)}};function ih(e,{value:t,oldValue:n},r){e._modelValue=t,_e(t)?e.checked=Wo(t,r.props.value)>-1:kr(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Yn(t,sp(e,!0)))}const Mc={created(e,{value:t},n){e.checked=Yn(t,n.props.value),e[zt]=Xn(n),pn(e,"change",()=>{e[zt](Qr(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[zt]=Xn(r),t!==n&&(e.checked=Yn(t,r.props.value))}},ip={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const l=kr(t);pn(e,"change",()=>{const s=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?Hi(Qr(u)):Qr(u));e[zt](e.multiple?l?new Set(s):s:s[0]),e._assigning=!0,hi(()=>{e._assigning=!1})}),e[zt]=Xn(r)},mounted(e,{value:t,modifiers:{number:n}}){sh(e,t,n)},beforeUpdate(e,t,n){e[zt]=Xn(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||sh(e,t,n)}};function sh(e,t,n){const r=e.multiple,l=_e(t);if(!(r&&!l&&!kr(t))){for(let s=0,u=e.options.length;s-1}else d.selected=t.has(o);else if(Yn(Qr(d),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qr(e){return"_value"in e?e._value:e.value}function sp(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const op={created(e,t,n){Ks(e,t,n,null,"created")},mounted(e,t,n){Ks(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ks(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ks(e,t,n,r,"updated")}};function ap(e,t){switch(e){case"SELECT":return ip;case"TEXTAREA":return _r;default:switch(t){case"checkbox":return Lc;case"radio":return Mc;default:return _r}}}function Ks(e,t,n,r,l){const u=ap(e.tagName,n.props&&n.props.type)[l];u&&u(e,t,n,r)}function cw(){_r.getSSRProps=({value:e})=>({value:e}),Mc.getSSRProps=({value:e},t)=>{if(t.props&&Yn(t.props.value,e))return{checked:!0}},Lc.getSSRProps=({value:e},t)=>{if(_e(e)){if(t.props&&Wo(e,t.props.value)>-1)return{checked:!0}}else if(kr(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},op.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=ap(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const uw=["ctrl","shift","alt","meta"],hw={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)=>uw.some(n=>e[`${n}Key`]&&!t.includes(n))},fw=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(l,...s)=>{for(let u=0;u{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=l=>{if(!("key"in l))return;const s=Pt(l.key);if(t.some(u=>u===s||dw[u]===s))return e(l)})},lp=ot({patchProp:qb},Mb);let Oi,oh=!1;function cp(){return Oi||(Oi=Rd(lp))}function up(){return Oi=oh?Oi:Td(lp),oh=!0,Oi}const xl=(...e)=>{cp().render(...e)},hp=(...e)=>{up().hydrate(...e)},fp=(...e)=>{const t=cp().createApp(...e),{mount:n}=t;return t.mount=r=>{const l=pp(r);if(!l)return;const s=t._component;!Ie(s)&&!s.render&&!s.template&&(s.template=l.innerHTML),l.innerHTML="";const u=n(l,!1,dp(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),u},t},gw=(...e)=>{const t=up().createApp(...e),{mount:n}=t;return t.mount=r=>{const l=pp(r);if(l)return n(l,!0,dp(l))},t};function dp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pp(e){return at(e)?document.querySelector(e):e}let ah=!1;const mw=()=>{ah||(ah=!0,cw(),Fb())};/** * vue v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const vw=()=>{},yw=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:cd,BaseTransitionPropsValidators:Ac,Comment:$t,DeprecationTypes:Rb,EffectScope:cc,ErrorCodes:qy,ErrorTypeStrings:$b,Fragment:Ne,KeepAlive:S0,ReactiveEffect:Zr,Static:fr,Suspense:d0,Teleport:lb,Text:yr,TrackOpTypes:Yy,Transition:Tc,TransitionGroup:rw,TriggerOpTypes:Zy,VueElement:aa,assertNumber:Xy,callWithAsyncErrorHandling:Bt,callWithErrorHandling:bn,camelize:xt,capitalize:li,cloneVNode:an,compatUtils:Eb,compile:vw,computed:Le,createApp:fp,createBlock:Se,createCommentVNode:me,createElementBlock:se,createElementVNode:D,createHydrationRenderer:Td,createPropsRestProxy:W0,createRenderer:Rd,createSSRApp:gw,createSlots:A0,createStaticVNode:sa,createTextVNode:et,createVNode:oe,customRef:Go,defineAsyncComponent:_0,defineComponent:Ce,defineCustomElement:ep,defineEmits:T0,defineExpose:L0,defineModel:I0,defineOptions:M0,defineProps:R0,defineSSRCustomElement:Jb,defineSlots:O0,devtools:Sb,effect:vy,effectScope:Rf,getCurrentInstance:Gt,getCurrentScope:uc,getTransitionRawChildren:ea,guardReactiveProps:Pd,h:di,handleError:Rr,hasInjectionContext:Z0,hydrate:hp,initCustomFormatter:bb,initDirectivesForSSR:mw,inject:Vt,isMemoSame:jd,isProxy:gc,isReactive:ur,isReadonly:mr,isRef:yt,isRuntimeOnly:gb,isShallow:Ui,isVNode:Zn,markRaw:jo,mergeDefaults:P0,mergeModels:B0,mergeProps:Bd,nextTick:hi,normalizeClass:ci,normalizeProps:fy,normalizeStyle:gs,onActivated:hd,onBeforeMount:pd,onBeforeUnmount:fi,onBeforeUpdate:gd,onDeactivated:fd,onErrorCaptured:bd,onMounted:lt,onRenderTracked:yd,onRenderTriggered:vd,onScopeDispose:Lf,onServerPrefetch:md,onUnmounted:ra,onUpdated:na,openBlock:Z,popScopeId:Qo,provide:Ti,proxyRefs:yc,pushScopeId:qo,queuePostFlushCb:fo,reactive:ui,readonly:Vo,ref:ze,registerRuntimeCompiler:pb,render:xl,renderList:Nt,renderSlot:k0,resolveComponent:re,resolveDirective:h0,resolveDynamicComponent:u0,resolveFilter:xb,resolveTransitionHooks:Xr,setBlockTracking:bl,setDevtoolsHook:Cb,setTransitionHooks:vr,shallowReactive:pc,shallowReadonly:Py,shallowRef:Gf,ssrContextKey:rd,ssrUtils:kb,stop:yy,toDisplayString:$e,toHandlerKey:Ei,toHandlers:x0,toRaw:We,toRef:Ko,toRefs:jy,toValue:Uy,transformVNodeArgs:cb,triggerRef:Hy,unref:yn,useAttrs:F0,useCssModule:tw,useCssVars:Pb,useModel:yb,useSSRContext:id,useSlots:D0,useTransitionState:Cc,vModelCheckbox:Lc,vModelDynamic:op,vModelRadio:Mc,vModelSelect:ip,vModelText:_r,vShow:Qd,version:Gd,warn:_b,watch:st,watchEffect:sd,watchPostEffect:od,watchSyncEffect:ad,withAsyncContext:H0,withCtx:Je,withDefaults:N0,withDirectives:Jo,withKeys:pw,withMemo:wb,withModifiers:fw,withScopeId:i0},Symbol.toStringTag,{value:"Module"}));function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function ww(e,t){if(e==null)return{};var n=bw(e,t),r,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _w(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $w(e){var t=_w(e,"string");return typeof t=="symbol"?t:String(t)}var Sw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gp={exports:{}};(function(e){(function(t){var n=function(v,y,k){if(!p(y)||i(y)||c(y)||h(y)||o(y))return y;var C,S=0,b=0;if(a(y))for(C=[],b=y.length;S1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(o){return mp(o)}),l=Object.keys(e.attributes||{}).reduce(function(o,p){var a=e.attributes[p];switch(p){case"class":o.class=xw(a);break;case"style":o.style=kw(a);break;default:o.attrs[p]=a}return o},{attrs:{},class:{},style:{}});n.class;var s=n.style,u=s===void 0?{}:s,d=ww(n,Aw);return di(e.tag,gn(gn(gn({},t),{},{class:l.class,style:gn(gn({},l.style),u)},l.attrs),d),r)}var vp=!1;try{vp=!0}catch{}function Ew(){if(!vp&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Pa(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Tt({},e,t):{}}function Rw(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"},Tt(t,"fa-".concat(e.size),e.size!==null),Tt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),Tt(t,"fa-pull-".concat(e.pull),e.pull!==null),Tt(t,"fa-swap-opacity",e.swapOpacity),Tt(t,"fa-bounce",e.bounce),Tt(t,"fa-shake",e.shake),Tt(t,"fa-beat",e.beat),Tt(t,"fa-fade",e.fade),Tt(t,"fa-beat-fade",e.beatFade),Tt(t,"fa-flash",e.flash),Tt(t,"fa-spin-pulse",e.spinPulse),Tt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function ch(e){if(e&&_o(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(al.icon)return al.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 Tw=Ce({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 r=n.attrs,l=Le(function(){return ch(t.icon)}),s=Le(function(){return Pa("classes",Rw(t))}),u=Le(function(){return Pa("transform",typeof t.transform=="string"?al.transform(t.transform):t.transform)}),d=Le(function(){return Pa("mask",ch(t.mask))}),o=Le(function(){return Iv(l.value,gn(gn(gn(gn({},s.value),u.value),d.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});st(o,function(a){if(!a)return Ew("Could not find one or more icon(s)",l.value,d.value)},{immediate:!0});var p=Le(function(){return o.value?mp(o.value.abstract[0],{},r):null});return function(){return p.value}}});const Lw=Ce({name:"NavbarItem"}),Re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,l]of t)n[r]=l;return n},la=e=>(qo("data-v-907b90b2"),e=e(),Qo(),e),Mw={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},Ow=la(()=>D("div",{class:"navbar-brand"},[D("a",{class:"navbar-item"},[D("h1",{class:"title"},"Mihari")])],-1)),Iw={class:"navbar-menu"},Nw=la(()=>D("div",{class:"navbar-start"},null,-1)),Dw={class:"navbar-end"},Fw=la(()=>D("a",{class:"navbar-item"},[D("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),Pw=la(()=>D("a",{class:"navbar-item"},[D("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1));function Bw(e,t,n,r,l,s){const u=re("router-link");return Z(),se("nav",Mw,[Ow,D("div",Iw,[Nw,D("div",Dw,[oe(u,{class:"navbar-item",to:{name:"Alerts"}},{default:Je(()=>[et("Alerts")]),_:1}),oe(u,{class:"navbar-item",to:{name:"Artifacts"}},{default:Je(()=>[et("Artifacts")]),_:1}),oe(u,{class:"navbar-item",to:{name:"Rules"}},{default:Je(()=>[et("Rules")]),_:1}),oe(u,{class:"navbar-item",to:{name:"NewRule"}},{default:Je(()=>[et("New Rule")]),_:1}),oe(u,{class:"navbar-item",to:{name:"Config"}},{default:Je(()=>[et("Config")]),_:1}),Fw,Pw])])])}const Ww=Re(Lw,[["render",Bw],["__scopeId","data-v-907b90b2"]]),Hw=Ce({name:"App",components:{Navbar:Ww}}),Uw={class:"section is-medium"},Vw={class:"container"};function zw(e,t,n,r,l,s){const u=re("Navbar"),d=re("router-view");return Z(),se(Ne,null,[oe(u),D("section",Uw,[D("div",Vw,[oe(d)])])],64)}const jw=Re(Hw,[["render",zw]]);/*! * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const Mr=typeof document<"u";function Gw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ye=Object.assign;function Ba(e,t){const n={};for(const r in t){const l=t[r];n[r]=Jt(l)?l.map(e):e(l)}return n}const Ii=()=>{},Jt=Array.isArray,yp=/#/g,Kw=/&/g,Yw=/\//g,Zw=/=/g,Xw=/\?/g,bp=/\+/g,qw=/%5B/g,Qw=/%5D/g,wp=/%5E/g,Jw=/%60/g,_p=/%7B/g,e1=/%7C/g,$p=/%7D/g,t1=/%20/g;function Oc(e){return encodeURI(""+e).replace(e1,"|").replace(qw,"[").replace(Qw,"]")}function n1(e){return Oc(e).replace(_p,"{").replace($p,"}").replace(wp,"^")}function El(e){return Oc(e).replace(bp,"%2B").replace(t1,"+").replace(yp,"%23").replace(Kw,"%26").replace(Jw,"`").replace(_p,"{").replace($p,"}").replace(wp,"^")}function r1(e){return El(e).replace(Zw,"%3D")}function i1(e){return Oc(e).replace(yp,"%23").replace(Xw,"%3F")}function s1(e){return e==null?"":i1(e).replace(Yw,"%2F")}function Zi(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const o1=/\/$/,a1=e=>e.replace(o1,"");function Wa(e,t,n="/"){let r,l={},s="",u="";const d=t.indexOf("#");let o=t.indexOf("?");return d=0&&(o=-1),o>-1&&(r=t.slice(0,o),s=t.slice(o+1,d>-1?d:t.length),l=e(s)),d>-1&&(r=r||t.slice(0,d),u=t.slice(d,t.length)),r=h1(r??t,n),{fullPath:r+(s&&"?")+s+u,path:r,query:l,hash:Zi(u)}}function l1(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function uh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function c1(e,t,n){const r=t.matched.length-1,l=n.matched.length-1;return r>-1&&r===l&&Jr(t.matched[r],n.matched[l])&&Sp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!u1(e[n],t[n]))return!1;return!0}function u1(e,t){return Jt(e)?hh(e,t):Jt(t)?hh(t,e):e===t}function hh(e,t){return Jt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function h1(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),l=r[r.length-1];(l===".."||l===".")&&r.push("");let s=n.length-1,u,d;for(u=0;u1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(u).join("/")}var Xi;(function(e){e.pop="pop",e.push="push"})(Xi||(Xi={}));var Ni;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ni||(Ni={}));function f1(e){if(!e)if(Mr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),a1(e)}const d1=/^[^#]+#/;function p1(e,t){return e.replace(d1,"#")+t}function g1(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ca=()=>({left:window.scrollX,top:window.scrollY});function m1(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),l=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l)return;t=g1(l,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function fh(e,t){return(history.state?history.state.position-t:-1)+e}const Rl=new Map;function v1(e,t){Rl.set(e,t)}function y1(e){const t=Rl.get(e);return Rl.delete(e),t}let b1=()=>location.protocol+"//"+location.host;function Cp(e,t){const{pathname:n,search:r,hash:l}=t,s=e.indexOf("#");if(s>-1){let d=l.includes(e.slice(s))?e.slice(s).length:1,o=l.slice(d);return o[0]!=="/"&&(o="/"+o),uh(o,"")}return uh(n,e)+r+l}function w1(e,t,n,r){let l=[],s=[],u=null;const d=({state:c})=>{const h=Cp(e,location),f=n.value,g=t.value;let m=0;if(c){if(n.value=h,t.value=c,u&&u===f){u=null;return}m=g?c.position-g.position:0}else r(h);l.forEach(v=>{v(n.value,f,{delta:m,type:Xi.pop,direction:m?m>0?Ni.forward:Ni.back:Ni.unknown})})};function o(){u=n.value}function p(c){l.push(c);const h=()=>{const f=l.indexOf(c);f>-1&&l.splice(f,1)};return s.push(h),h}function a(){const{history:c}=window;c.state&&c.replaceState(Ye({},c.state,{scroll:ca()}),"")}function i(){for(const c of s)c();s=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:o,listen:p,destroy:i}}function dh(e,t,n,r=!1,l=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:l?ca():null}}function _1(e){const{history:t,location:n}=window,r={value:Cp(e,n)},l={value:t.state};l.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(o,p,a){const i=e.indexOf("#"),c=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+o:b1()+e+o;try{t[a?"replaceState":"pushState"](p,"",c),l.value=p}catch(h){console.error(h),n[a?"replace":"assign"](c)}}function u(o,p){const a=Ye({},t.state,dh(l.value.back,o,l.value.forward,!0),p,{position:l.value.position});s(o,a,!0),r.value=o}function d(o,p){const a=Ye({},l.value,t.state,{forward:o,scroll:ca()});s(a.current,a,!0);const i=Ye({},dh(r.value,o,null),{position:a.position+1},p);s(o,i,!1),r.value=o}return{location:r,state:l,push:d,replace:u}}function $1(e){e=f1(e);const t=_1(e),n=w1(e,t.state,t.location,t.replace);function r(s,u=!0){u||n.pauseListeners(),history.go(s)}const l=Ye({location:"",base:e,go:r,createHref:p1.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}function S1(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),$1(e)}function C1(e){return typeof e=="string"||e&&typeof e=="object"}function Ap(e){return typeof e=="string"||typeof e=="symbol"}const In={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},kp=Symbol("");var ph;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ph||(ph={}));function ei(e,t){return Ye(new Error,{type:e,[kp]:!0},t)}function fn(e,t){return e instanceof Error&&kp in e&&(t==null||!!(e.type&t))}const gh="[^/]+?",A1={sensitive:!1,strict:!1,start:!0,end:!0},k1=/[.+*?^${}()[\]/\\]/g;function x1(e,t){const n=Ye({},A1,t),r=[];let l=n.start?"^":"";const s=[];for(const p of e){const a=p.length?[]:[90];n.strict&&!p.length&&(l+="/");for(let i=0;it.length?t.length===1&&t[0]===80?1:-1:0}function R1(e,t){let n=0;const r=e.score,l=t.score;for(;n0&&t[t.length-1]<0}const T1={type:0,value:""},L1=/[a-zA-Z0-9_]/;function M1(e){if(!e)return[[]];if(e==="/")return[[T1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${p}": ${h}`)}let n=0,r=n;const l=[];let s;function u(){s&&l.push(s),s=[]}let d=0,o,p="",a="";function i(){p&&(n===0?s.push({type:0,value:p}):n===1||n===2||n===3?(s.length>1&&(o==="*"||o==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:p,regexp:a,repeatable:o==="*"||o==="+",optional:o==="*"||o==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=o}for(;d{u(y)}:Ii}function u(a){if(Ap(a)){const i=r.get(a);i&&(r.delete(a),n.splice(n.indexOf(i),1),i.children.forEach(u),i.alias.forEach(u))}else{const i=n.indexOf(a);i>-1&&(n.splice(i,1),a.record.name&&r.delete(a.record.name),a.children.forEach(u),a.alias.forEach(u))}}function d(){return n}function o(a){let i=0;for(;i=0&&(a.record.path!==n[i].record.path||!xp(a,n[i]));)i++;n.splice(i,0,a),a.record.name&&!yh(a)&&r.set(a.record.name,a)}function p(a,i){let c,h={},f,g;if("name"in a&&a.name){if(c=r.get(a.name),!c)throw ei(1,{location:a});g=c.record.name,h=Ye(vh(i.params,c.keys.filter(y=>!y.optional).concat(c.parent?c.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),a.params&&vh(a.params,c.keys.map(y=>y.name))),f=c.stringify(h)}else if(a.path!=null)f=a.path,c=n.find(y=>y.re.test(f)),c&&(h=c.parse(f),g=c.record.name);else{if(c=i.name?r.get(i.name):n.find(y=>y.re.test(i.path)),!c)throw ei(1,{location:a,currentLocation:i});g=c.record.name,h=Ye({},i.params,a.params),f=c.stringify(h)}const m=[];let v=c;for(;v;)m.unshift(v.record),v=v.parent;return{name:g,path:f,params:h,matched:m,meta:F1(m)}}return e.forEach(a=>s(a)),{addRoute:s,resolve:p,removeRoute:u,getRoutes:d,getRecordMatcher:l}}function vh(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function N1(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:D1(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 D1(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function yh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function F1(e){return e.reduce((t,n)=>Ye(t,n.meta),{})}function bh(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function xp(e,t){return t.children.some(n=>n===e||xp(e,n))}function P1(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;ls&&El(s)):[r&&El(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function B1(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Jt(r)?r.map(l=>l==null?null:""+l):r==null?r:""+r)}return t}const W1=Symbol(""),_h=Symbol(""),ua=Symbol(""),Ic=Symbol(""),Tl=Symbol("");function wi(){let e=[];function t(r){return e.push(r),()=>{const l=e.indexOf(r);l>-1&&e.splice(l,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Hn(e,t,n,r,l,s=u=>u()){const u=r&&(r.enterCallbacks[l]=r.enterCallbacks[l]||[]);return()=>new Promise((d,o)=>{const p=c=>{c===!1?o(ei(4,{from:n,to:t})):c instanceof Error?o(c):C1(c)?o(ei(2,{from:t,to:c})):(u&&r.enterCallbacks[l]===u&&typeof c=="function"&&u.push(c),d())},a=s(()=>e.call(r&&r.instances[l],t,n,p));let i=Promise.resolve(a);e.length<3&&(i=i.then(p)),i.catch(c=>o(c))})}function Ha(e,t,n,r,l=s=>s()){const s=[];for(const u of e)for(const d in u.components){let o=u.components[d];if(!(t!=="beforeRouteEnter"&&!u.instances[d]))if(H1(o)){const a=(o.__vccOpts||o)[t];a&&s.push(Hn(a,n,r,u,d,l))}else{let p=o();s.push(()=>p.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${u.path}"`));const i=Gw(a)?a.default:a;u.components[d]=i;const h=(i.__vccOpts||i)[t];return h&&Hn(h,n,r,u,d,l)()}))}}return s}function H1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $h(e){const t=Vt(ua),n=Vt(Ic),r=Le(()=>t.resolve(yn(e.to))),l=Le(()=>{const{matched:o}=r.value,{length:p}=o,a=o[p-1],i=n.matched;if(!a||!i.length)return-1;const c=i.findIndex(Jr.bind(null,a));if(c>-1)return c;const h=Sh(o[p-2]);return p>1&&Sh(a)===h&&i[i.length-1].path!==h?i.findIndex(Jr.bind(null,o[p-2])):c}),s=Le(()=>l.value>-1&&j1(n.params,r.value.params)),u=Le(()=>l.value>-1&&l.value===n.matched.length-1&&Sp(n.params,r.value.params));function d(o={}){return z1(o)?t[yn(e.replace)?"replace":"push"](yn(e.to)).catch(Ii):Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:s,isExactActive:u,navigate:d}}const U1=Ce({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:$h,setup(e,{slots:t}){const n=ui($h(e)),{options:r}=Vt(ua),l=Le(()=>({[Ch(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ch(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:di("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},s)}}}),V1=U1;function z1(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 j1(e,t){for(const n in t){const r=t[n],l=e[n];if(typeof r=="string"){if(r!==l)return!1}else if(!Jt(l)||l.length!==r.length||r.some((s,u)=>s!==l[u]))return!1}return!0}function Sh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ch=(e,t,n)=>e??t??n,G1=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Vt(Tl),l=Le(()=>e.route||r.value),s=Vt(_h,0),u=Le(()=>{let p=yn(s);const{matched:a}=l.value;let i;for(;(i=a[p])&&!i.components;)p++;return p}),d=Le(()=>l.value.matched[u.value]);Ti(_h,Le(()=>u.value+1)),Ti(W1,d),Ti(Tl,l);const o=ze();return st(()=>[o.value,d.value,e.name],([p,a,i],[c,h,f])=>{a&&(a.instances[i]=p,h&&h!==a&&p&&p===c&&(a.leaveGuards.size||(a.leaveGuards=h.leaveGuards),a.updateGuards.size||(a.updateGuards=h.updateGuards))),p&&a&&(!h||!Jr(a,h)||!c)&&(a.enterCallbacks[i]||[]).forEach(g=>g(p))},{flush:"post"}),()=>{const p=l.value,a=e.name,i=d.value,c=i&&i.components[a];if(!c)return Ah(n.default,{Component:c,route:p});const h=i.props[a],f=h?h===!0?p.params:typeof h=="function"?h(p):h:null,m=di(c,Ye({},f,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(i.instances[a]=null)},ref:o}));return Ah(n.default,{Component:m,route:p})||m}}});function Ah(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const K1=G1;function Y1(e){const t=I1(e.routes,e),n=e.parseQuery||P1,r=e.stringifyQuery||wh,l=e.history,s=wi(),u=wi(),d=wi(),o=Gf(In);let p=In;Mr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Ba.bind(null,U=>""+U),i=Ba.bind(null,s1),c=Ba.bind(null,Zi);function h(U,X){let Y,z;return Ap(U)?(Y=t.getRecordMatcher(U),z=X):z=U,t.addRoute(z,Y)}function f(U){const X=t.getRecordMatcher(U);X&&t.removeRoute(X)}function g(){return t.getRoutes().map(U=>U.record)}function m(U){return!!t.getRecordMatcher(U)}function v(U,X){if(X=Ye({},X||o.value),typeof U=="string"){const B=Wa(n,U,X.path),K=t.resolve({path:B.path},X),J=l.createHref(B.fullPath);return Ye(B,K,{params:c(K.params),hash:Zi(B.hash),redirectedFrom:void 0,href:J})}let Y;if(U.path!=null)Y=Ye({},U,{path:Wa(n,U.path,X.path).path});else{const B=Ye({},U.params);for(const K in B)B[K]==null&&delete B[K];Y=Ye({},U,{params:i(B)}),X.params=i(X.params)}const z=t.resolve(Y,X),ee=U.hash||"";z.params=a(c(z.params));const he=l1(r,Ye({},U,{hash:n1(ee),path:z.path})),F=l.createHref(he);return Ye({fullPath:he,hash:ee,query:r===wh?B1(U.query):U.query||{}},z,{redirectedFrom:void 0,href:F})}function y(U){return typeof U=="string"?Wa(n,U,o.value.path):Ye({},U)}function k(U,X){if(p!==U)return ei(8,{from:X,to:U})}function C(U){return E(U)}function S(U){return C(Ye(y(U),{replace:!0}))}function b(U){const X=U.matched[U.matched.length-1];if(X&&X.redirect){const{redirect:Y}=X;let z=typeof Y=="function"?Y(U):Y;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=y(z):{path:z},z.params={}),Ye({query:U.query,hash:U.hash,params:z.path!=null?{}:U.params},z)}}function E(U,X){const Y=p=v(U),z=o.value,ee=U.state,he=U.force,F=U.replace===!0,B=b(Y);if(B)return E(Ye(y(B),{state:typeof B=="object"?Ye({},ee,B.state):ee,force:he,replace:F}),X||Y);const K=Y;K.redirectedFrom=X;let J;return!he&&c1(r,z,Y)&&(J=ei(16,{to:K,from:z}),W(z,z,!0,!1)),(J?Promise.resolve(J):M(K,z)).catch(te=>fn(te)?fn(te,2)?te:P(te):I(te,K,z)).then(te=>{if(te){if(fn(te,2))return E(Ye({replace:F},y(te.to),{state:typeof te.to=="object"?Ye({},ee,te.to.state):ee,force:he}),X||K)}else te=A(K,z,!0,F,ee);return _(K,z,te),te})}function L(U,X){const Y=k(U,X);return Y?Promise.reject(Y):Promise.resolve()}function x(U){const X=H.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(U):U()}function M(U,X){let Y;const[z,ee,he]=Z1(U,X);Y=Ha(z.reverse(),"beforeRouteLeave",U,X);for(const B of z)B.leaveGuards.forEach(K=>{Y.push(Hn(K,U,X))});const F=L.bind(null,U,X);return Y.push(F),Q(Y).then(()=>{Y=[];for(const B of s.list())Y.push(Hn(B,U,X));return Y.push(F),Q(Y)}).then(()=>{Y=Ha(ee,"beforeRouteUpdate",U,X);for(const B of ee)B.updateGuards.forEach(K=>{Y.push(Hn(K,U,X))});return Y.push(F),Q(Y)}).then(()=>{Y=[];for(const B of he)if(B.beforeEnter)if(Jt(B.beforeEnter))for(const K of B.beforeEnter)Y.push(Hn(K,U,X));else Y.push(Hn(B.beforeEnter,U,X));return Y.push(F),Q(Y)}).then(()=>(U.matched.forEach(B=>B.enterCallbacks={}),Y=Ha(he,"beforeRouteEnter",U,X,x),Y.push(F),Q(Y))).then(()=>{Y=[];for(const B of u.list())Y.push(Hn(B,U,X));return Y.push(F),Q(Y)}).catch(B=>fn(B,8)?B:Promise.reject(B))}function _(U,X,Y){d.list().forEach(z=>x(()=>z(U,X,Y)))}function A(U,X,Y,z,ee){const he=k(U,X);if(he)return he;const F=X===In,B=Mr?history.state:{};Y&&(z||F?l.replace(U.fullPath,Ye({scroll:F&&B&&B.scroll},ee)):l.push(U.fullPath,ee)),o.value=U,W(U,X,Y,F),P()}let $;function w(){$||($=l.listen((U,X,Y)=>{if(!G.listening)return;const z=v(U),ee=b(z);if(ee){E(Ye(ee,{replace:!0}),z).catch(Ii);return}p=z;const he=o.value;Mr&&v1(fh(he.fullPath,Y.delta),ca()),M(z,he).catch(F=>fn(F,12)?F:fn(F,2)?(E(F.to,z).then(B=>{fn(B,20)&&!Y.delta&&Y.type===Xi.pop&&l.go(-1,!1)}).catch(Ii),Promise.reject()):(Y.delta&&l.go(-Y.delta,!1),I(F,z,he))).then(F=>{F=F||A(z,he,!1),F&&(Y.delta&&!fn(F,8)?l.go(-Y.delta,!1):Y.type===Xi.pop&&fn(F,20)&&l.go(-1,!1)),_(z,he,F)}).catch(Ii)}))}let R=wi(),T=wi(),O;function I(U,X,Y){P(U);const z=T.list();return z.length?z.forEach(ee=>ee(U,X,Y)):console.error(U),Promise.reject(U)}function N(){return O&&o.value!==In?Promise.resolve():new Promise((U,X)=>{R.add([U,X])})}function P(U){return O||(O=!U,w(),R.list().forEach(([X,Y])=>U?Y(U):X()),R.reset()),U}function W(U,X,Y,z){const{scrollBehavior:ee}=e;if(!Mr||!ee)return Promise.resolve();const he=!Y&&y1(fh(U.fullPath,0))||(z||!Y)&&history.state&&history.state.scroll||null;return hi().then(()=>ee(U,X,he)).then(F=>F&&m1(F)).catch(F=>I(F,U,X))}const j=U=>l.go(U);let V;const H=new Set,G={currentRoute:o,listening:!0,addRoute:h,removeRoute:f,hasRoute:m,getRoutes:g,resolve:v,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:s.add,beforeResolve:u.add,afterEach:d.add,onError:T.add,isReady:N,install(U){const X=this;U.component("RouterLink",V1),U.component("RouterView",K1),U.config.globalProperties.$router=X,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>yn(o)}),Mr&&!V&&o.value===In&&(V=!0,C(l.location).catch(ee=>{}));const Y={};for(const ee in In)Object.defineProperty(Y,ee,{get:()=>o.value[ee],enumerable:!0});U.provide(ua,X),U.provide(Ic,pc(Y)),U.provide(Tl,o);const z=U.unmount;H.add(U),U.unmount=function(){H.delete(U),H.size<1&&(p=In,$&&$(),$=null,o.value=In,V=!1,O=!1),z()}}};function Q(U){return U.reduce((X,Y)=>X.then(()=>x(Y)),Promise.resolve())}return G}function Z1(e,t){const n=[],r=[],l=[],s=Math.max(t.matched.length,e.matched.length);for(let u=0;uJr(p,d))?r.push(d):n.push(d));const o=e.matched[u];o&&(t.matched.find(p=>Jr(p,o))||l.push(o))}return[n,r,l]}function pi(){return Vt(ua)}function X1(){return Vt(Ic)}function Ep(e){return uc()?(Lf(e),!0):!1}function qi(e){return typeof e=="function"?e():yn(e)}const Rp=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const q1=e=>e!=null,Q1=()=>{};function J1(e){return e||Gt()}function e_(...e){if(e.length!==1)return Ko(...e);const t=e[0];return typeof t=="function"?Vo(Go(()=>({get:t,set:Q1}))):ze(t)}function t_(e,t){J1(t)&&fi(e,t)}function n_(e){var t;const n=qi(e);return(t=n==null?void 0:n.$el)!=null?t:n}const r_=Rp?window:void 0,i_=Rp?window.document:void 0;function s_(){const e=ze(!1),t=Gt();return t&<(()=>{e.value=!0},t),e}function o_(e){const t=s_();return Le(()=>(t.value,!!e()))}function a_(e,t,n={}){const{window:r=r_,...l}=n;let s;const u=o_(()=>r&&"MutationObserver"in r),d=()=>{s&&(s.disconnect(),s=void 0)},o=Le(()=>{const c=qi(e),h=(Array.isArray(c)?c:[c]).map(n_).filter(q1);return new Set(h)}),p=st(()=>o.value,c=>{d(),u.value&&r&&c.size&&(s=new MutationObserver(t),c.forEach(h=>s.observe(h,l)))},{immediate:!0,flush:"post"}),a=()=>s==null?void 0:s.takeRecords(),i=()=>{d(),p()};return Ep(i),{isSupported:u,stop:i,takeRecords:a}}function En(e=null,t={}){var n,r,l;const{document:s=i_,restoreOnUnmount:u=i=>i}=t,d=(n=s==null?void 0:s.title)!=null?n:"",o=e_((r=e??(s==null?void 0:s.title))!=null?r:null),p=e&&typeof e=="function";function a(i){if(!("titleTemplate"in t))return i;const c=t.titleTemplate||"%s";return typeof c=="function"?c(i):qi(c).replace(/%s/g,i)}return st(o,(i,c)=>{i!==c&&s&&(s.title=a(typeof i=="string"?i:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!p&&a_((l=s.head)==null?void 0:l.querySelector("title"),()=>{s&&s.title!==o.value&&(o.value=a(s.title))},{childList:!0}),t_(()=>{if(u){const i=u(d,o.value||"");i!=null&&s&&(s.title=i)}}),o}/*! CAF: shared.mjs v15.0.1 (c) 2022 Kyle Simpson MIT License: http://getify.mit-license.org */const mn=Symbol("Cleanup Function"),Nc=Symbol("Timeout Token"),Dr=Symbol("Signal Reason"),vt=Symbol("Unset"),[eo,l_]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Fc(t.signal.reason)]}();class $r{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[Dr]=vt;var r=(l,s)=>{var u=()=>{if(s&&this.signal){let d=bs(this.signal);this._trackSignalReason(d),s(d!==vt?d:void 0)}s=null};this.signal.addEventListener("abort",u,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",u,!1),this.signal.pr&&(this.signal.pr[mn]=null)),u=null}};this.signal.pr=new Promise(r),this.signal.pr[mn]=n,this.signal.pr.catch(n),r=n=null}abort(...t){var n=t.length>0?t[0]:vt;this._trackSignalReason(n),this.controller&&(eo&&n!==vt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[mn]&&this.signal.pr[mn](),this.signal.pr=null),delete this.signal[Dr],eo||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==vt&&(eo||"reason"in this.signal||(this.signal.reason=t),this.signal[Dr]===vt&&(this.signal[Dr]=t))}}function bs(e){return e&&e.aborted?eo&&l_?Fc(e.reason)?vt:e.reason:Dr in e?e[Dr]:vt:vt}function Tp(e){if(e.pr)return e.pr;var t,n=new Promise(function(l,s){t=()=>{if(s&&e){let u=bs(e);s(u!==vt?u:void 0)}s=null},e.addEventListener("abort",t,!1)});return n[mn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[mn]=t=null)},n.catch(n[mn]),n}function Dc(e){e instanceof AbortController&&(e=new $r(e));var t=e&&e instanceof $r?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:Tp(t)}}function Ll(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function rr(e){return typeof e=="function"}function c_(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Fc(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function ha(e,t){Fc(t)||t===vt?e.abort():e.abort(t)}/*! CAF: caf.mjs v15.0.1 (c) 2022 Kyle Simpson MIT License: http://getify.mit-license.org */const Ml=Object.assign(u_,{cancelToken:$r,delay:Lp,timeout:h_,signalRace:f_,signalAll:d_,tokenCycle:p_});function u_(e){return function(n,...r){var l,s;if({tokenOrSignal:n,signal:l,signalPr:s}=Dc(n),l.aborted)return s;var u=s.catch(function(i){var c=bs(l);c=c!==vt?c:i;try{var h=d.return();throw h.value!==void 0?h.value:c!==vt?c:void 0}finally{d=o=u=p=null}}),{it:d,result:o}=g_.call(this,e,l,...r),p=Promise.race([o,u]);if(n!==l&&n[Nc]){let a=function(c){ha(n,c),rr(n.discard)&&n.discard(),n=a=null};p.then(a,a)}else p.catch(()=>{}),n=null;return r=null,p}}function Lp(e,t){var n,r;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:r}=Dc(e)),n&&n.aborted?r:new Promise(function(s,u){n&&(r.catch(function(){if(u&&n&&d){let p=bs(n);clearTimeout(d),u(p!==vt?p:`delay (${t}) interrupted`),s=u=d=n=null}}),r=null);var d=setTimeout(function(){s(`delayed: ${t}`),s=u=d=n=null},t)})}function h_(e,t="Timeout"){e=Number(e)||0;var n=new $r;return Lp(n.signal,e).then(()=>r(t),r),Object.defineProperty(n,Nc,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function r(...l){ha(n,l.length>0?l[0]:vt),n.discard(),n=null}}function Mp(e){return e.reduce(function(n,r){var l=Tp(r);return n[0].push(l),r.pr||n[1].push(l),n},[[],[]])}function Op(e,t,n){e.then(function(l){ha(t,l),t.discard(),t=null}).then(function(){for(let l of n)l[mn]&&l[mn]();n=null})}function Ip(e){return e.catch(t=>t)}function f_(e){var t=new $r,[n,r]=Mp(e);return Op(Ip(Promise.race(n)),t,r),t.signal}function d_(e){var t=new $r,[n,r]=Mp(e);return Op(Promise.all(n.map(Ip)),t,r),t.signal}function p_(){var e;return function(...n){return e&&(ha(e,n.length>0?n[0]:vt),e.discard()),e=new $r}}function g_(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function r(l){try{var s=n.next(l);l=null}catch(u){return Promise.reject(u)}return function u(d){var o=Promise.resolve(d.value);return d.done?n=null:(o=o.then(r,function(a){return Promise.resolve(n.throw(a)).then(u)})).catch(function(){n=null}),d=null,o}(s)}()}}/*! CAF: cag.mjs v15.0.1 (c) 2022 Kyle Simpson MIT License: http://getify.mit-license.org */Il=Ml(Il);Object.assign(Dp,{onEvent:Fp,onceEvent:Il});var Ol=new WeakSet;const Ua=Symbol("unset"),Np=Symbol("returned"),kh=Symbol("canceled");function Dp(e){return function(n,...r){var l,s;if({tokenOrSignal:n,signal:l,signalPr:s}=Dc(n),l.aborted){let i=bs(l);throw i=i!==vt?i:"Aborted",i}var u=Ll(),{it:d,ait:o}=v_(e,u.pr,a,l,...r),p=o.return;return o.return=function(c){try{return u.pr.resolved=!0,u.resolve(Np),Promise.resolve(d.return(c))}finally{p.call(o),a()}},o;function a(){n&&n!==l&&n[Nc]&&n.abort(),o&&(o.return=p,n=u=d=o=p=null)}}}function Fp(e,t,n,r=!1){var l,s,u=!1,d=Dp(function*({pwait:i}){u||o();try{for(;;){if(l.length==0){let{pr:c,resolve:h}=Ll();l.push(c),s.push(h)}yield yield i(l.shift())}}finally{rr(t.removeEventListener)?t.removeEventListener(n,p,r):rr(t.removeListener)?t.removeListener(n,p):rr(t.off)&&t.off(n,p),l.length=s.length=0}})(e,t,n,r);return d.start=o,d;function o(){u||(u=!0,l=[],s=[],rr(t.addEventListener)?t.addEventListener(n,p,r):rr(t.addListener)?t.addListener(n,p):rr(t.on)&&t.on(n,p))}function p(a){if(s.length>0)s.shift()(a);else{let{pr:i,resolve:c}=Ll();l.push(i),c(a)}}}function*Il(e,t,n,r=!1){try{var l=Fp(e,t,n,r);return(yield l.next()).value}finally{l.return()}}function m_(e){var t=Promise.resolve(e);return Ol.add(t),t}function v_(e,t,n,r,...l){var s=e.call(this,{signal:r,pwait:m_},...l);e=l=null;var u=r.pr.catch(d=>{throw{[kh]:!0,reason:d}});return u.catch(()=>{}),{it:s,ait:async function*(){var o,p=Ua;try{for(;!t.resolved;)if(p!==Ua?(o=p,p=Ua,o=s.throw(o)):o=s.next(o),c_(o.value))if(Ol.has(o.value)){Ol.delete(o.value);try{if((o=await Promise.race([t,u,o.value]))===Np)return}catch(a){if(a[kh]){let i=s.return();throw i.value!==void 0?i.value:a.reason}p=a}}else o=yield o.value;else{if(o.done)return o.value;o=yield o.value}}finally{s=t=null,n()}}()}}const y_=e=>e._runningInstances.length>=e._maxConcurrency,b_=e=>{const t=e._activeInstances[0];t&&t.cancel()},w_=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function _i(e,t){return t?__(()=>e()._instances,t):Le(()=>[])}function __(e,t,n){return Le(()=>e().filter(r=>{const l=r[t];return n?l===n:l}))}function $_(e){return Le(()=>e().length)}function xh(e){return Le(()=>{const t=e();return t[t.length-1]})}function S_(e){return Le(()=>e()[0])}const Pp=e=>e;function Bp(e){return ui(e)}function C_(){const e={},t=new Promise((n,r)=>{e.resolve=n,e.reject=r});return e.promise=t,e}function Ct(e){return x_(function*(t,...n){return e(t,...n)})}function A_(e,t,n){const r=Pp({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:Le(()=>l.isCanceling&&l.isFinished),isActive:Le(()=>l.isRunning&&!l.isCanceling),isSuccessful:!1,isNotDropped:Le(()=>!l.isDropped),isError:Le(()=>!!l.error),status:Le(()=>{const u=l,d=[[u.isRunning,"running"],[u.isEnqueued,"enqueued"],[u.isCanceled,"canceled"],[u.isCanceling,"canceling"],[u.isDropped,"dropped"],[u.isError,"error"],[u.isSuccessful,"success"]].find(([o])=>o);return d&&d[1]}),error:null,value:null,cancel({force:u}={force:!1}){if(u||(l.isCanceling=!0,l.isEnqueued&&(l.isFinished=!0),l.isEnqueued=!1),l.token&&l._canAbort){l.token.abort("cancel");try{l.token.discard()}catch{}l.token=void 0,l._canAbort=!1}},canceledOn(u){return u.pr.catch(()=>{l.cancel()}),l},_run(){k_(l,e,t,n)},_handled:!0,_deferredObject:C_(),_shouldThrow:!1,_canAbort:!0,then(u,d){return l._shouldThrow=!0,l._deferredObject.promise.then(u,d)},catch(u,d=!0){return l._shouldThrow=d,l._deferredObject.promise.catch(u)},finally(u){return l._shouldThrow=!0,l._deferredObject.promise.finally(u)}}),l=Bp(r),{modifiers:s}=n;return s.drop?l.isDropped=!0:s.enqueue?l.isEnqueued=!0:l._run(),l}function k_(e,t,n,r){const l=new Ml.cancelToken,s=Ml(t,l);e.token=l,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function u(){e.isRunning=!1,e.isFinished=!0}s.call(e,l,...n).then(d=>{e.value=d,e.isSuccessful=!0,u(),e._deferredObject.resolve(d),e._canAbort=!1,r.onFinish(e)}).catch(d=>{d!=="cancel"&&(e.error=d),u(),e._shouldThrow&&e._deferredObject.reject(d),r.onFinish(e)})}function x_(e,t={cancelOnUnmount:!0}){const n=Gt(),r=Rf(),l=Pp({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:Le(()=>s._isRestartable||s._isDropping||s._isEnqueuing||s._isKeepingLatest),isIdle:Le(()=>!s.isRunning),isRunning:Le(()=>!!s._instances.find(u=>u.isRunning)),isError:Le(()=>!!(s.last&&s.last.isError)),_instances:[],_successfulInstances:_i(()=>s,"isSuccessful"),_runningInstances:_i(()=>s,"isRunning"),_enqueuedInstances:_i(()=>s,"isEnqueued"),_notDroppedInstances:_i(()=>s,"isNotDropped"),_activeInstances:_i(()=>s,"isActive"),performCount:$_(()=>s._instances),last:xh(()=>s._notDroppedInstances),lastSuccessful:xh(()=>s._successfulInstances),firstEnqueued:S_(()=>s._enqueuedInstances),cancelAll({force:u}={force:!1}){s._instances.forEach(d=>{try{(u||!d.isDropped&&!d.isFinished)&&d.cancel({force:u})}catch(o){if(o!=="cancel")throw o}})},perform(...u){const d={enqueue:!1,drop:!1};s._hasConcurrency&&y_(s)&&(s._isDropping&&(d.drop=!0),s._isRestartable&&b_(s),s._isKeepingLatest&&w_(s),(s._isEnqueuing||s._isKeepingLatest)&&(d.enqueue=!0));const o=()=>E_(s),p=()=>A_(e,u,{modifiers:d,onFinish:o,scope:r,id:s._instances.length+1}),a=r.active?r.run(p):p();return r.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),s._instances=[...s._instances,a],a},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){r.stop(),this.clear()},restartable(){return s._resetModifierFlags(),s._isRestartable=!0,s},drop(){return s._resetModifierFlags(),s._isDropping=!0,s},enqueue(){return s._resetModifierFlags(),s._isEnqueuing=!0,s},keepLatest(){return s._resetModifierFlags(),s._isKeepingLatest=!0,s},_resetModifierFlags(){s._isKeepingLatest=!1,s._isRestartable=!1,s._isEnqueuing=!1,s._isDropping=!1},maxConcurrency(u){return s._maxConcurrency=u,s}}),s=Bp(l);return n&&t.cancelOnUnmount&&fi(()=>{s._instances&&s.destroy()}),s}function E_(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function Wp(e,t){return function(){return e.apply(t,arguments)}}const{toString:R_}=Object.prototype,{getPrototypeOf:Pc}=Object,fa=(e=>t=>{const n=R_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>fa(t)===e),da=e=>t=>typeof t===e,{isArray:gi}=Array,Qi=da("undefined");function T_(e){return e!==null&&!Qi(e)&&e.constructor!==null&&!Qi(e.constructor)&&jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hp=hn("ArrayBuffer");function L_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hp(e.buffer),t}const M_=da("string"),jt=da("function"),Up=da("number"),pa=e=>e!==null&&typeof e=="object",O_=e=>e===!0||e===!1,to=e=>{if(fa(e)!=="object")return!1;const t=Pc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},I_=hn("Date"),N_=hn("File"),D_=hn("Blob"),F_=hn("FileList"),P_=e=>pa(e)&&jt(e.pipe),B_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||jt(e.append)&&((t=fa(e))==="formdata"||t==="object"&&jt(e.toString)&&e.toString()==="[object FormData]"))},W_=hn("URLSearchParams"),H_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ws(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),gi(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const zp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jp=e=>!Qi(e)&&e!==zp;function Nl(){const{caseless:e}=jp(this)&&this||{},t={},n=(r,l)=>{const s=e&&Vp(t,l)||l;to(t[s])&&to(r)?t[s]=Nl(t[s],r):to(r)?t[s]=Nl({},r):gi(r)?t[s]=r.slice():t[s]=r};for(let r=0,l=arguments.length;r(ws(t,(l,s)=>{n&&jt(l)?e[s]=Wp(l,n):e[s]=l},{allOwnKeys:r}),e),V_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),z_=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},j_=(e,t,n,r)=>{let l,s,u;const d={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),s=l.length;s-- >0;)u=l[s],(!r||r(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=n!==!1&&Pc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},G_=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},K_=e=>{if(!e)return null;if(gi(e))return e;let t=e.length;if(!Up(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Y_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pc(Uint8Array)),Z_=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const s=l.value;t.call(e,s[0],s[1])}},X_=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},q_=hn("HTMLFormElement"),Q_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),Eh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),J_=hn("RegExp"),Gp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ws(n,(l,s)=>{let u;(u=t(l,s,e))!==!1&&(r[s]=u||l)}),Object.defineProperties(e,r)},e$=e=>{Gp(e,(t,n)=>{if(jt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(jt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},t$=(e,t)=>{const n={},r=l=>{l.forEach(s=>{n[s]=!0})};return gi(e)?r(e):r(String(e).split(t)),n},n$=()=>{},r$=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Va="abcdefghijklmnopqrstuvwxyz",Rh="0123456789",Kp={DIGIT:Rh,ALPHA:Va,ALPHA_DIGIT:Va+Va.toUpperCase()+Rh},i$=(e=16,t=Kp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function s$(e){return!!(e&&jt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const o$=e=>{const t=new Array(10),n=(r,l)=>{if(pa(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const s=gi(r)?[]:{};return ws(r,(u,d)=>{const o=n(u,l+1);!Qi(o)&&(s[d]=o)}),t[l]=void 0,s}}return r};return n(e,0)},a$=hn("AsyncFunction"),l$=e=>e&&(pa(e)||jt(e))&&jt(e.then)&&jt(e.catch),ie={isArray:gi,isArrayBuffer:Hp,isBuffer:T_,isFormData:B_,isArrayBufferView:L_,isString:M_,isNumber:Up,isBoolean:O_,isObject:pa,isPlainObject:to,isUndefined:Qi,isDate:I_,isFile:N_,isBlob:D_,isRegExp:J_,isFunction:jt,isStream:P_,isURLSearchParams:W_,isTypedArray:Y_,isFileList:F_,forEach:ws,merge:Nl,extend:U_,trim:H_,stripBOM:V_,inherits:z_,toFlatObject:j_,kindOf:fa,kindOfTest:hn,endsWith:G_,toArray:K_,forEachEntry:Z_,matchAll:X_,isHTMLForm:q_,hasOwnProperty:Eh,hasOwnProp:Eh,reduceDescriptors:Gp,freezeMethods:e$,toObjectSet:t$,toCamelCase:Q_,noop:n$,toFiniteNumber:r$,findKey:Vp,global:zp,isContextDefined:jp,ALPHABET:Kp,generateString:i$,isSpecCompliantForm:s$,toJSONObject:o$,isAsyncFn:a$,isThenable:l$};function Ue(e,t,n,r,l){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),r&&(this.request=r),l&&(this.response=l)}ie.inherits(Ue,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:ie.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yp=Ue.prototype,Zp={};["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=>{Zp[e]={value:e}});Object.defineProperties(Ue,Zp);Object.defineProperty(Yp,"isAxiosError",{value:!0});Ue.from=(e,t,n,r,l,s)=>{const u=Object.create(Yp);return ie.toFlatObject(e,u,function(o){return o!==Error.prototype},d=>d!=="isAxiosError"),Ue.call(u,e.message,t,n,r,l),u.cause=e,u.name=e.name,s&&Object.assign(u,s),u};const c$=null;function Dl(e){return ie.isPlainObject(e)||ie.isArray(e)}function Xp(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function Th(e,t,n){return e?e.concat(t).map(function(l,s){return l=Xp(l),!n&&s?"["+l+"]":l}).join(n?".":""):t}function u$(e){return ie.isArray(e)&&!e.some(Dl)}const h$=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function ga(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!ie.isUndefined(m[g])});const r=n.metaTokens,l=n.visitor||a,s=n.dots,u=n.indexes,o=(n.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(l))throw new TypeError("visitor must be a function");function p(f){if(f===null)return"";if(ie.isDate(f))return f.toISOString();if(!o&&ie.isBlob(f))throw new Ue("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(f)||ie.isTypedArray(f)?o&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function a(f,g,m){let v=f;if(f&&!m&&typeof f=="object"){if(ie.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(ie.isArray(f)&&u$(f)||(ie.isFileList(f)||ie.endsWith(g,"[]"))&&(v=ie.toArray(f)))return g=Xp(g),v.forEach(function(k,C){!(ie.isUndefined(k)||k===null)&&t.append(u===!0?Th([g],C,s):u===null?g:g+"[]",p(k))}),!1}return Dl(f)?!0:(t.append(Th(m,g,s),p(f)),!1)}const i=[],c=Object.assign(h$,{defaultVisitor:a,convertValue:p,isVisitable:Dl});function h(f,g){if(!ie.isUndefined(f)){if(i.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));i.push(f),ie.forEach(f,function(v,y){(!(ie.isUndefined(v)||v===null)&&l.call(t,v,ie.isString(y)?y.trim():y,g,c))===!0&&h(v,g?g.concat(y):[y])}),i.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Lh(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bc(e,t){this._pairs=[],e&&ga(e,this,t)}const qp=Bc.prototype;qp.append=function(t,n){this._pairs.push([t,n])};qp.toString=function(t){const n=t?function(r){return t.call(this,r,Lh)}:Lh;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function f$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qp(e,t,n){if(!t)return e;const r=n&&n.encode||f$,l=n&&n.serialize;let s;if(l?s=l(t,n):s=ie.isURLSearchParams(t)?t.toString():new Bc(t,n).toString(r),s){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Mh{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ie.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Jp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d$=typeof URLSearchParams<"u"?URLSearchParams:Bc,p$=typeof FormData<"u"?FormData:null,g$=typeof Blob<"u"?Blob:null,m$={isBrowser:!0,classes:{URLSearchParams:d$,FormData:p$,Blob:g$},protocols:["http","https","file","blob","url","data"]},eg=typeof window<"u"&&typeof document<"u",v$=(e=>eg&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),y$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",b$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eg,hasStandardBrowserEnv:v$,hasStandardBrowserWebWorkerEnv:y$},Symbol.toStringTag,{value:"Module"})),sn={...b$,...m$};function w$(e,t){return ga(e,new sn.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,s){return sn.isNode&&ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function _$(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $$(e){const t={},n=Object.keys(e);let r;const l=n.length;let s;for(r=0;r=n.length;return u=!u&&ie.isArray(l)?l.length:u,o?(ie.hasOwnProp(l,u)?l[u]=[l[u],r]:l[u]=r,!d):((!l[u]||!ie.isObject(l[u]))&&(l[u]=[]),t(n,r,l[u],s)&&ie.isArray(l[u])&&(l[u]=$$(l[u])),!d)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(r,l)=>{t(_$(r),l,n,0)}),n}return null}function S$(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wc={transitional:Jp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,s=ie.isObject(t);if(s&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return l?JSON.stringify(tg(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return w$(t,this.formSerializer).toString();if((d=ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ga(d?{"files[]":t}:t,o&&new o,this.formSerializer)}}return s||l?(n.setContentType("application/json",!1),S$(t)):t}],transformResponse:[function(t){const n=this.transitional||Wc.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&ie.isString(t)&&(r&&!this.responseType||l)){const u=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(d){if(u)throw d.name==="SyntaxError"?Ue.from(d,Ue.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sn.classes.FormData,Blob:sn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],e=>{Wc.headers[e]={}});const Hc=Wc,C$=ie.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"]),A$=e=>{const t={};let n,r,l;return e&&e.split(` `).forEach(function(u){l=u.indexOf(":"),n=u.substring(0,l).trim().toLowerCase(),r=u.substring(l+1).trim(),!(!n||t[n]&&C$[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Oh=Symbol("internals");function $i(e){return e&&String(e).trim().toLowerCase()}function no(e){return e===!1||e==null?e:ie.isArray(e)?e.map(no):String(e)}function k$(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const x$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function za(e,t,n,r,l){if(ie.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!ie.isString(t)){if(ie.isString(r))return t.indexOf(r)!==-1;if(ie.isRegExp(r))return r.test(t)}}function E$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function R$(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,s,u){return this[r].call(this,t,l,s,u)},configurable:!0})})}let ma=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function s(d,o,p){const a=$i(o);if(!a)throw new Error("header name must be a non-empty string");const i=ie.findKey(l,a);(!i||l[i]===void 0||p===!0||p===void 0&&l[i]!==!1)&&(l[i||o]=no(d))}const u=(d,o)=>ie.forEach(d,(p,a)=>s(p,a,o));return ie.isPlainObject(t)||t instanceof this.constructor?u(t,n):ie.isString(t)&&(t=t.trim())&&!x$(t)?u(A$(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=$i(t),t){const r=ie.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return k$(l);if(ie.isFunction(n))return n.call(this,l,r);if(ie.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$i(t),t){const r=ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||za(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function s(u){if(u=$i(u),u){const d=ie.findKey(r,u);d&&(!n||za(r,r[d],d,n))&&(delete r[d],l=!0)}}return ie.isArray(t)?t.forEach(s):s(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const s=n[r];(!t||za(this,this[s],s,t,!0))&&(delete this[s],l=!0)}return l}normalize(t){const n=this,r={};return ie.forEach(this,(l,s)=>{const u=ie.findKey(r,s);if(u){n[u]=no(l),delete n[s];return}const d=t?E$(s):String(s).trim();d!==s&&delete n[s],n[d]=no(l),r[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ie.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&ie.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[Oh]=this[Oh]={accessors:{}}).accessors,l=this.prototype;function s(u){const d=$i(u);r[d]||(R$(l,u),r[d]=!0)}return ie.isArray(t)?t.forEach(s):s(t),this}};ma.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(ma.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ie.freezeMethods(ma);const wn=ma;function ja(e,t){const n=this||Hc,r=t||n,l=wn.from(r.headers);let s=r.data;return ie.forEach(e,function(d){s=d.call(n,s,l.normalize(),t?t.status:void 0)}),l.normalize(),s}function ng(e){return!!(e&&e.__CANCEL__)}function _s(e,t,n){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(_s,Ue,{__CANCEL__:!0});function T$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ue("Request failed with status code "+n.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const L$=sn.hasStandardBrowserEnv?{write(e,t,n,r,l,s){const u=[e+"="+encodeURIComponent(t)];ie.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),ie.isString(r)&&u.push("path="+r),ie.isString(l)&&u.push("domain="+l),s===!0&&u.push("secure"),document.cookie=u.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 M$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function O$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rg(e,t){return e&&!M$(t)?O$(e,t):t}const I$=sn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(s){let u=s;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{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 r=l(window.location.href),function(u){const d=ie.isString(u)?l(u):u;return d.protocol===r.protocol&&d.host===r.host}}():function(){return function(){return!0}}();function N$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function D$(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,s=0,u;return t=t!==void 0?t:1e3,function(o){const p=Date.now(),a=r[s];u||(u=p),n[l]=o,r[l]=p;let i=s,c=0;for(;i!==l;)c+=n[i++],i=i%e;if(l=(l+1)%e,l===s&&(s=(s+1)%e),p-u{const s=l.loaded,u=l.lengthComputable?l.total:void 0,d=s-n,o=r(d),p=s<=u;n=s;const a={loaded:s,total:u,progress:u?s/u:void 0,bytes:d,rate:o||void 0,estimated:o&&u&&p?(u-s)/o:void 0,event:l};a[t?"download":"upload"]=!0,e(a)}}const F$=typeof XMLHttpRequest<"u",P$=F$&&function(e){return new Promise(function(n,r){let l=e.data;const s=wn.from(e.headers).normalize();let{responseType:u,withXSRFToken:d}=e,o;function p(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}let a;if(ie.isFormData(l)){if(sn.hasStandardBrowserEnv||sn.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((a=s.getContentType())!==!1){const[g,...m]=a?a.split(";").map(v=>v.trim()).filter(Boolean):[];s.setContentType([g||"multipart/form-data",...m].join("; "))}}let i=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(g+":"+m))}const c=rg(e.baseURL,e.url);i.open(e.method.toUpperCase(),Qp(c,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function h(){if(!i)return;const g=wn.from("getAllResponseHeaders"in i&&i.getAllResponseHeaders()),v={data:!u||u==="text"||u==="json"?i.responseText:i.response,status:i.status,statusText:i.statusText,headers:g,config:e,request:i};T$(function(k){n(k),p()},function(k){r(k),p()},v),i=null}if("onloadend"in i?i.onloadend=h:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(h)},i.onabort=function(){i&&(r(new Ue("Request aborted",Ue.ECONNABORTED,e,i)),i=null)},i.onerror=function(){r(new Ue("Network Error",Ue.ERR_NETWORK,e,i)),i=null},i.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Jp;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new Ue(m,v.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,i)),i=null},sn.hasStandardBrowserEnv&&(d&&ie.isFunction(d)&&(d=d(e)),d||d!==!1&&I$(c))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&L$.read(e.xsrfCookieName);g&&s.set(e.xsrfHeaderName,g)}l===void 0&&s.setContentType(null),"setRequestHeader"in i&&ie.forEach(s.toJSON(),function(m,v){i.setRequestHeader(v,m)}),ie.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),u&&u!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",Ih(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",Ih(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=g=>{i&&(r(!g||g.type?new _s(null,e,i):g),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=N$(c);if(f&&sn.protocols.indexOf(f)===-1){r(new Ue("Unsupported protocol "+f+":",Ue.ERR_BAD_REQUEST,e));return}i.send(l||null)})},Fl={http:c$,xhr:P$};ie.forEach(Fl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Nh=e=>`- ${e}`,B$=e=>ie.isFunction(e)||e===null||e===!1,ig={getAdapter:e=>{e=ie.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let s=0;s`adapter ${d} `+(o===!1?"is not supported by the environment":"is not available in the build"));let u=t?s.length>1?`since : `+s.map(Nh).join(` `):" "+Nh(s[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return r},adapters:Fl};function Ga(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _s(null,e)}function Dh(e){return Ga(e),e.headers=wn.from(e.headers),e.data=ja.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ig.getAdapter(e.adapter||Hc.adapter)(e).then(function(r){return Ga(e),r.data=ja.call(e,e.transformResponse,r),r.headers=wn.from(r.headers),r},function(r){return ng(r)||(Ga(e),r&&r.response&&(r.response.data=ja.call(e,e.transformResponse,r.response),r.response.headers=wn.from(r.response.headers))),Promise.reject(r)})}const Fh=e=>e instanceof wn?e.toJSON():e;function ti(e,t){t=t||{};const n={};function r(p,a,i){return ie.isPlainObject(p)&&ie.isPlainObject(a)?ie.merge.call({caseless:i},p,a):ie.isPlainObject(a)?ie.merge({},a):ie.isArray(a)?a.slice():a}function l(p,a,i){if(ie.isUndefined(a)){if(!ie.isUndefined(p))return r(void 0,p,i)}else return r(p,a,i)}function s(p,a){if(!ie.isUndefined(a))return r(void 0,a)}function u(p,a){if(ie.isUndefined(a)){if(!ie.isUndefined(p))return r(void 0,p)}else return r(void 0,a)}function d(p,a,i){if(i in t)return r(p,a);if(i in e)return r(void 0,p)}const o={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(p,a)=>l(Fh(p),Fh(a),!0)};return ie.forEach(Object.keys(Object.assign({},e,t)),function(a){const i=o[a]||l,c=i(e[a],t[a],a);ie.isUndefined(c)&&i!==d||(n[a]=c)}),n}const sg="1.6.7",Uc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Uc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ph={};Uc.transitional=function(t,n,r){function l(s,u){return"[Axios v"+sg+"] Transitional option '"+s+"'"+u+(r?". "+r:"")}return(s,u,d)=>{if(t===!1)throw new Ue(l(u," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!Ph[u]&&(Ph[u]=!0,console.warn(l(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,u,d):!0}};function W$(e,t,n){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const s=r[l],u=t[s];if(u){const d=e[s],o=d===void 0||u(d,s,e);if(o!==!0)throw new Ue("option "+s+" must be "+o,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+s,Ue.ERR_BAD_OPTION)}}const Pl={assertOptions:W$,validators:Uc},Nn=Pl.validators;let $o=class{constructor(t){this.defaults=t,this.interceptors={request:new Mh,response:new Mh}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const s=l.stack?l.stack.replace(/^.+\n/,""):"";r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+s):r.stack=s}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ti(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:s}=n;r!==void 0&&Pl.assertOptions(r,{silentJSONParsing:Nn.transitional(Nn.boolean),forcedJSONParsing:Nn.transitional(Nn.boolean),clarifyTimeoutError:Nn.transitional(Nn.boolean)},!1),l!=null&&(ie.isFunction(l)?n.paramsSerializer={serialize:l}:Pl.assertOptions(l,{encode:Nn.function,serialize:Nn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=s&&ie.merge(s.common,s[n.method]);s&&ie.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),n.headers=wn.concat(u,s);const d=[];let o=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(o=o&&g.synchronous,d.unshift(g.fulfilled,g.rejected))});const p=[];this.interceptors.response.forEach(function(g){p.push(g.fulfilled,g.rejected)});let a,i=0,c;if(!o){const f=[Dh.bind(this),void 0];for(f.unshift.apply(f,d),f.push.apply(f,p),c=f.length,a=Promise.resolve(n);i{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](l);r._listeners=null}),this.promise.then=l=>{let s;const u=new Promise(d=>{r.subscribe(d),s=d}).then(l);return u.cancel=function(){r.unsubscribe(s)},u},t(function(s,u,d){r.reason||(r.reason=new _s(s,u,d),n(r.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 og(function(l){t=l}),cancel:t}}};const U$=H$;function V$(e){return function(n){return e.apply(null,n)}}function z$(e){return ie.isObject(e)&&e.isAxiosError===!0}const Bl={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(Bl).forEach(([e,t])=>{Bl[t]=e});const j$=Bl;function ag(e){const t=new ro(e),n=Wp(ro.prototype.request,t);return ie.extend(n,ro.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return ag(ti(e,l))},n}const tt=ag(Hc);tt.Axios=ro;tt.CanceledError=_s;tt.CancelToken=U$;tt.isCancel=ng;tt.VERSION=sg;tt.toFormData=ga;tt.AxiosError=Ue;tt.Cancel=tt.CanceledError;tt.all=function(t){return Promise.all(t)};tt.spread=V$;tt.isAxiosError=z$;tt.mergeConfig=ti;tt.AxiosHeaders=wn;tt.formToJSON=e=>tg(ie.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=ig.getAdapter;tt.HttpStatusCode=j$;tt.default=tt;const{Axios:eO,AxiosError:G$,CanceledError:tO,isCancel:nO,CancelToken:rO,VERSION:iO,all:sO,Cancel:oO,isAxiosError:aO,spread:lO,toFormData:cO,AxiosHeaders:uO,HttpStatusCode:hO,formToJSON:fO,getAdapter:dO,mergeConfig:pO}=tt;var Ge;(function(e){e.assertEqual=l=>l;function t(l){}e.assertIs=t;function n(l){throw new Error}e.assertNever=n,e.arrayToEnum=l=>{const s={};for(const u of l)s[u]=u;return s},e.getValidEnumValues=l=>{const s=e.objectKeys(l).filter(d=>typeof l[l[d]]!="number"),u={};for(const d of s)u[d]=l[d];return e.objectValues(u)},e.objectValues=l=>e.objectKeys(l).map(function(s){return l[s]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const s=[];for(const u in l)Object.prototype.hasOwnProperty.call(l,u)&&s.push(u);return s},e.find=(l,s)=>{for(const u of l)if(s(u))return u},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&isFinite(l)&&Math.floor(l)===l;function r(l,s=" | "){return l.map(u=>typeof u=="string"?`'${u}'`:u).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(l,s)=>typeof s=="bigint"?s.toString():s})(Ge||(Ge={}));var Wl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Wl||(Wl={}));const ye=Ge.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Un=e=>{switch(typeof e){case"undefined":return ye.undefined;case"string":return ye.string;case"number":return isNaN(e)?ye.nan:ye.number;case"boolean":return ye.boolean;case"function":return ye.function;case"bigint":return ye.bigint;case"symbol":return ye.symbol;case"object":return Array.isArray(e)?ye.array:e===null?ye.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ye.promise:typeof Map<"u"&&e instanceof Map?ye.map:typeof Set<"u"&&e instanceof Set?ye.set:typeof Date<"u"&&e instanceof Date?ye.date:ye.object;default:return ye.unknown}},de=Ge.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),K$=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Xt extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},l=s=>{for(const u of s.issues)if(u.code==="invalid_union")u.unionErrors.map(l);else if(u.code==="invalid_return_type")l(u.returnTypeError);else if(u.code==="invalid_arguments")l(u.argumentsError);else if(u.path.length===0)r._errors.push(n(u));else{let d=r,o=0;for(;on.message){const n={},r=[];for(const l of this.issues)l.path.length>0?(n[l.path[0]]=n[l.path[0]]||[],n[l.path[0]].push(t(l))):r.push(t(l));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Xt.create=e=>new Xt(e);const Ji=(e,t)=>{let n;switch(e.code){case de.invalid_type:e.received===ye.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case de.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ge.jsonStringifyReplacer)}`;break;case de.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ge.joinValues(e.keys,", ")}`;break;case de.invalid_union:n="Invalid input";break;case de.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ge.joinValues(e.options)}`;break;case de.invalid_enum_value:n=`Invalid enum value. Expected ${Ge.joinValues(e.options)}, received '${e.received}'`;break;case de.invalid_arguments:n="Invalid function arguments";break;case de.invalid_return_type:n="Invalid function return type";break;case de.invalid_date:n="Invalid date";break;case de.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ge.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case de.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case de.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case de.custom:n="Invalid input";break;case de.invalid_intersection_types:n="Intersection results could not be merged";break;case de.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case de.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ge.assertNever(e)}return{message:n}};let lg=Ji;function Y$(e){lg=e}function So(){return lg}const Co=e=>{const{data:t,path:n,errorMaps:r,issueData:l}=e,s=[...n,...l.path||[]],u={...l,path:s};let d="";const o=r.filter(p=>!!p).slice().reverse();for(const p of o)d=p(u,{data:t,defaultError:d}).message;return{...l,path:s,message:l.message||d}},Z$=[];function we(e,t){const n=Co({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,So(),Ji].filter(r=>!!r)});e.common.issues.push(n)}class St{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const l of n){if(l.status==="aborted")return De;l.status==="dirty"&&t.dirty(),r.push(l.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const l of n)r.push({key:await l.key,value:await l.value});return St.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const l of n){const{key:s,value:u}=l;if(s.status==="aborted"||u.status==="aborted")return De;s.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof u.value<"u"||l.alwaysSet)&&(r[s.value]=u.value)}return{status:t.value,value:r}}}const De=Object.freeze({status:"aborted"}),cg=e=>({status:"dirty",value:e}),Et=e=>({status:"valid",value:e}),Hl=e=>e.status==="aborted",Ul=e=>e.status==="dirty",es=e=>e.status==="valid",Ao=e=>typeof Promise<"u"&&e instanceof Promise;var Te;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Te||(Te={}));class ln{constructor(t,n,r,l){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=l}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Bh=(e,t)=>{if(es(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Xt(e.common.issues);return this._error=n,this._error}}};function Pe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:l}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:l}:{errorMap:(u,d)=>u.code!=="invalid_type"?{message:d.defaultError}:typeof d.data>"u"?{message:r??d.defaultError}:{message:n??d.defaultError},description:l}}class Be{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Un(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Un(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new St,ctx:{common:t.parent.common,data:t.data,parsedType:Un(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Ao(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const l={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)},s=this._parseSync({data:t,path:l.path,parent:l});return Bh(l,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Un(t)},l=this._parse({data:t,path:r.path,parent:r}),s=await(Ao(l)?l:Promise.resolve(l));return Bh(r,s)}refine(t,n){const r=l=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(l):n;return this._refinement((l,s)=>{const u=t(l),d=()=>s.addIssue({code:de.custom,...r(l)});return typeof Promise<"u"&&u instanceof Promise?u.then(o=>o?!0:(d(),!1)):u?!0:(d(),!1)})}refinement(t,n){return this._refinement((r,l)=>t(r)?!0:(l.addIssue(typeof n=="function"?n(r,l):n),!1))}_refinement(t){return new en({schema:this,typeName:Me.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return _n.create(this,this._def)}nullable(){return Ar.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qt.create(this,this._def)}promise(){return ri.create(this,this._def)}or(t){return is.create([this,t],this._def)}and(t){return ss.create(this,t,this._def)}transform(t){return new en({...Pe(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new us({...Pe(this._def),innerType:this,defaultValue:n,typeName:Me.ZodDefault})}brand(){return new hg({typeName:Me.ZodBranded,type:this,...Pe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ro({...Pe(this._def),innerType:this,catchValue:n,typeName:Me.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return $s.create(this,t)}readonly(){return Lo.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const X$=/^c[^\s-]{8,}$/i,q$=/^[a-z][a-z0-9]*$/,Q$=/^[0-9A-HJKMNP-TV-Z]{26}$/,J$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,eS=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ka;const nS=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,rS=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,iS=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function sS(e,t){return!!((t==="v4"||!t)&&nS.test(e)||(t==="v6"||!t)&&rS.test(e))}class Zt extends Be{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ye.string){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_type,expected:ye.string,received:s.parsedType}),De}const r=new St;let l;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:de.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const u=t.data.length>s.value,d=t.data.lengtht.test(l),{validation:n,code:de.invalid_string,...Te.errToObj(r)})}_addCheck(t){return new Zt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Te.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Te.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Te.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Te.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Te.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Te.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Te.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Te.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...Te.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Te.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Te.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Te.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Te.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Te.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Te.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Te.errToObj(n)})}nonempty(t){return this.min(1,Te.errToObj(t))}trim(){return new Zt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Zt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Zt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Zt({checks:[],typeName:Me.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};function oS(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,l=n>r?n:r,s=parseInt(e.toFixed(l).replace(".","")),u=parseInt(t.toFixed(l).replace(".",""));return s%u/Math.pow(10,l)}class qn extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ye.number){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_type,expected:ye.number,received:s.parsedType}),De}let r;const l=new St;for(const s of this._def.checks)s.kind==="int"?Ge.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:de.invalid_type,expected:"integer",received:"float",message:s.message}),l.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),l.dirty()):s.kind==="multipleOf"?oS(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.not_multiple_of,multipleOf:s.value,message:s.message}),l.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:de.not_finite,message:s.message}),l.dirty()):Ge.assertNever(s);return{status:l.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Te.toString(n))}setLimit(t,n,r,l){return new qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(l)}]})}_addCheck(t){return new qn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Te.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Te.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Te.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Te.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Te.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&Ge.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew qn({checks:[],typeName:Me.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class Qn extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ye.bigint){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_type,expected:ye.bigint,received:s.parsedType}),De}let r;const l=new St;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),l.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),we(r,{code:de.not_multiple_of,multipleOf:s.value,message:s.message}),l.dirty()):Ge.assertNever(s);return{status:l.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Te.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Te.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Te.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Te.toString(n))}setLimit(t,n,r,l){return new Qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Te.toString(l)}]})}_addCheck(t){return new Qn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Te.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Qn({checks:[],typeName:Me.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Pe(e)})};class ts extends Be{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ye.boolean){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.boolean,received:r.parsedType}),De}return Et(t.data)}}ts.create=e=>new ts({typeName:Me.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Pe(e)});class Sr extends Be{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ye.date){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_type,expected:ye.date,received:s.parsedType}),De}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return we(s,{code:de.invalid_date}),De}const r=new St;let l;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:de.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Ge.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Sr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Te.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Te.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Sr({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Me.ZodDate,...Pe(e)});class ko extends Be{_parse(t){if(this._getType(t)!==ye.symbol){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.symbol,received:r.parsedType}),De}return Et(t.data)}}ko.create=e=>new ko({typeName:Me.ZodSymbol,...Pe(e)});class ns extends Be{_parse(t){if(this._getType(t)!==ye.undefined){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.undefined,received:r.parsedType}),De}return Et(t.data)}}ns.create=e=>new ns({typeName:Me.ZodUndefined,...Pe(e)});class rs extends Be{_parse(t){if(this._getType(t)!==ye.null){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.null,received:r.parsedType}),De}return Et(t.data)}}rs.create=e=>new rs({typeName:Me.ZodNull,...Pe(e)});class ni extends Be{constructor(){super(...arguments),this._any=!0}_parse(t){return Et(t.data)}}ni.create=e=>new ni({typeName:Me.ZodAny,...Pe(e)});class dr extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Et(t.data)}}dr.create=e=>new dr({typeName:Me.ZodUnknown,...Pe(e)});class An extends Be{_parse(t){const n=this._getOrReturnCtx(t);return we(n,{code:de.invalid_type,expected:ye.never,received:n.parsedType}),De}}An.create=e=>new An({typeName:Me.ZodNever,...Pe(e)});class xo extends Be{_parse(t){if(this._getType(t)!==ye.undefined){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.void,received:r.parsedType}),De}return Et(t.data)}}xo.create=e=>new xo({typeName:Me.ZodVoid,...Pe(e)});class qt extends Be{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),l=this._def;if(n.parsedType!==ye.array)return we(n,{code:de.invalid_type,expected:ye.array,received:n.parsedType}),De;if(l.exactLength!==null){const u=n.data.length>l.exactLength.value,d=n.data.lengthl.maxLength.value&&(we(n,{code:de.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((u,d)=>l.type._parseAsync(new ln(n,u,n.path,d)))).then(u=>St.mergeArray(r,u));const s=[...n.data].map((u,d)=>l.type._parseSync(new ln(n,u,n.path,d)));return St.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new qt({...this._def,minLength:{value:t,message:Te.toString(n)}})}max(t,n){return new qt({...this._def,maxLength:{value:t,message:Te.toString(n)}})}length(t,n){return new qt({...this._def,exactLength:{value:t,message:Te.toString(n)}})}nonempty(t){return this.min(1,t)}}qt.create=(e,t)=>new qt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Me.ZodArray,...Pe(t)});function Or(e){if(e instanceof ct){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=_n.create(Or(r))}return new ct({...e._def,shape:()=>t})}else return e instanceof qt?new qt({...e._def,type:Or(e.element)}):e instanceof _n?_n.create(Or(e.unwrap())):e instanceof Ar?Ar.create(Or(e.unwrap())):e instanceof cn?cn.create(e.items.map(t=>Or(t))):e}class ct extends Be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ge.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ye.object){const p=this._getOrReturnCtx(t);return we(p,{code:de.invalid_type,expected:ye.object,received:p.parsedType}),De}const{status:r,ctx:l}=this._processInputParams(t),{shape:s,keys:u}=this._getCached(),d=[];if(!(this._def.catchall instanceof An&&this._def.unknownKeys==="strip"))for(const p in l.data)u.includes(p)||d.push(p);const o=[];for(const p of u){const a=s[p],i=l.data[p];o.push({key:{status:"valid",value:p},value:a._parse(new ln(l,i,l.path,p)),alwaysSet:p in l.data})}if(this._def.catchall instanceof An){const p=this._def.unknownKeys;if(p==="passthrough")for(const a of d)o.push({key:{status:"valid",value:a},value:{status:"valid",value:l.data[a]}});else if(p==="strict")d.length>0&&(we(l,{code:de.unrecognized_keys,keys:d}),r.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const a of d){const i=l.data[a];o.push({key:{status:"valid",value:a},value:p._parse(new ln(l,i,l.path,a)),alwaysSet:a in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const p=[];for(const a of o){const i=await a.key;p.push({key:i,value:await a.value,alwaysSet:a.alwaysSet})}return p}).then(p=>St.mergeObjectSync(r,p)):St.mergeObjectSync(r,o)}get shape(){return this._def.shape()}strict(t){return Te.errToObj,new ct({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var l,s,u,d;const o=(u=(s=(l=this._def).errorMap)===null||s===void 0?void 0:s.call(l,n,r).message)!==null&&u!==void 0?u:r.defaultError;return n.code==="unrecognized_keys"?{message:(d=Te.errToObj(t).message)!==null&&d!==void 0?d:o}:{message:o}}}:{}})}strip(){return new ct({...this._def,unknownKeys:"strip"})}passthrough(){return new ct({...this._def,unknownKeys:"passthrough"})}extend(t){return new ct({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ct({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Me.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ct({...this._def,catchall:t})}pick(t){const n={};return Ge.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new ct({...this._def,shape:()=>n})}omit(t){const n={};return Ge.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new ct({...this._def,shape:()=>n})}deepPartial(){return Or(this)}partial(t){const n={};return Ge.objectKeys(this.shape).forEach(r=>{const l=this.shape[r];t&&!t[r]?n[r]=l:n[r]=l.optional()}),new ct({...this._def,shape:()=>n})}required(t){const n={};return Ge.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof _n;)s=s._def.innerType;n[r]=s}}),new ct({...this._def,shape:()=>n})}keyof(){return ug(Ge.objectKeys(this.shape))}}ct.create=(e,t)=>new ct({shape:()=>e,unknownKeys:"strip",catchall:An.create(),typeName:Me.ZodObject,...Pe(t)});ct.strictCreate=(e,t)=>new ct({shape:()=>e,unknownKeys:"strict",catchall:An.create(),typeName:Me.ZodObject,...Pe(t)});ct.lazycreate=(e,t)=>new ct({shape:e,unknownKeys:"strip",catchall:An.create(),typeName:Me.ZodObject,...Pe(t)});class is extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function l(s){for(const d of s)if(d.result.status==="valid")return d.result;for(const d of s)if(d.result.status==="dirty")return n.common.issues.push(...d.ctx.common.issues),d.result;const u=s.map(d=>new Xt(d.ctx.common.issues));return we(n,{code:de.invalid_union,unionErrors:u}),De}if(n.common.async)return Promise.all(r.map(async s=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(l);{let s;const u=[];for(const o of r){const p={...n,common:{...n.common,issues:[]},parent:null},a=o._parseSync({data:n.data,path:n.path,parent:p});if(a.status==="valid")return a;a.status==="dirty"&&!s&&(s={result:a,ctx:p}),p.common.issues.length&&u.push(p.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const d=u.map(o=>new Xt(o));return we(n,{code:de.invalid_union,unionErrors:d}),De}}get options(){return this._def.options}}is.create=(e,t)=>new is({options:e,typeName:Me.ZodUnion,...Pe(t)});const io=e=>e instanceof as?io(e.schema):e instanceof en?io(e.innerType()):e instanceof ls?[e.value]:e instanceof Jn?e.options:e instanceof cs?Object.keys(e.enum):e instanceof us?io(e._def.innerType):e instanceof ns?[void 0]:e instanceof rs?[null]:null;class va extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.object)return we(n,{code:de.invalid_type,expected:ye.object,received:n.parsedType}),De;const r=this.discriminator,l=n.data[r],s=this.optionsMap.get(l);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(we(n,{code:de.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),De)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const l=new Map;for(const s of n){const u=io(s.shape[t]);if(!u)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const d of u){if(l.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);l.set(d,s)}}return new va({typeName:Me.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:l,...Pe(r)})}}function Vl(e,t){const n=Un(e),r=Un(t);if(e===t)return{valid:!0,data:e};if(n===ye.object&&r===ye.object){const l=Ge.objectKeys(t),s=Ge.objectKeys(e).filter(d=>l.indexOf(d)!==-1),u={...e,...t};for(const d of s){const o=Vl(e[d],t[d]);if(!o.valid)return{valid:!1};u[d]=o.data}return{valid:!0,data:u}}else if(n===ye.array&&r===ye.array){if(e.length!==t.length)return{valid:!1};const l=[];for(let s=0;s{if(Hl(s)||Hl(u))return De;const d=Vl(s.value,u.value);return d.valid?((Ul(s)||Ul(u))&&n.dirty(),{status:n.value,value:d.data}):(we(r,{code:de.invalid_intersection_types}),De)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,u])=>l(s,u)):l(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ss.create=(e,t,n)=>new ss({left:e,right:t,typeName:Me.ZodIntersection,...Pe(n)});class cn extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.array)return we(r,{code:de.invalid_type,expected:ye.array,received:r.parsedType}),De;if(r.data.lengththis._def.items.length&&(we(r,{code:de.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((u,d)=>{const o=this._def.items[d]||this._def.rest;return o?o._parse(new ln(r,u,r.path,d)):null}).filter(u=>!!u);return r.common.async?Promise.all(s).then(u=>St.mergeArray(n,u)):St.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new cn({...this._def,rest:t})}}cn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new cn({items:e,typeName:Me.ZodTuple,rest:null,...Pe(t)})};class os extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.object)return we(r,{code:de.invalid_type,expected:ye.object,received:r.parsedType}),De;const l=[],s=this._def.keyType,u=this._def.valueType;for(const d in r.data)l.push({key:s._parse(new ln(r,d,r.path,d)),value:u._parse(new ln(r,r.data[d],r.path,d))});return r.common.async?St.mergeObjectAsync(n,l):St.mergeObjectSync(n,l)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Be?new os({keyType:t,valueType:n,typeName:Me.ZodRecord,...Pe(r)}):new os({keyType:Zt.create(),valueType:t,typeName:Me.ZodRecord,...Pe(n)})}}class Eo extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.map)return we(r,{code:de.invalid_type,expected:ye.map,received:r.parsedType}),De;const l=this._def.keyType,s=this._def.valueType,u=[...r.data.entries()].map(([d,o],p)=>({key:l._parse(new ln(r,d,r.path,[p,"key"])),value:s._parse(new ln(r,o,r.path,[p,"value"]))}));if(r.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const o of u){const p=await o.key,a=await o.value;if(p.status==="aborted"||a.status==="aborted")return De;(p.status==="dirty"||a.status==="dirty")&&n.dirty(),d.set(p.value,a.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const o of u){const p=o.key,a=o.value;if(p.status==="aborted"||a.status==="aborted")return De;(p.status==="dirty"||a.status==="dirty")&&n.dirty(),d.set(p.value,a.value)}return{status:n.value,value:d}}}}Eo.create=(e,t,n)=>new Eo({valueType:t,keyType:e,typeName:Me.ZodMap,...Pe(n)});class Cr extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ye.set)return we(r,{code:de.invalid_type,expected:ye.set,received:r.parsedType}),De;const l=this._def;l.minSize!==null&&r.data.sizel.maxSize.value&&(we(r,{code:de.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),n.dirty());const s=this._def.valueType;function u(o){const p=new Set;for(const a of o){if(a.status==="aborted")return De;a.status==="dirty"&&n.dirty(),p.add(a.value)}return{status:n.value,value:p}}const d=[...r.data.values()].map((o,p)=>s._parse(new ln(r,o,r.path,p)));return r.common.async?Promise.all(d).then(o=>u(o)):u(d)}min(t,n){return new Cr({...this._def,minSize:{value:t,message:Te.toString(n)}})}max(t,n){return new Cr({...this._def,maxSize:{value:t,message:Te.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Cr.create=(e,t)=>new Cr({valueType:e,minSize:null,maxSize:null,typeName:Me.ZodSet,...Pe(t)});class Kr extends Be{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.function)return we(n,{code:de.invalid_type,expected:ye.function,received:n.parsedType}),De;function r(d,o){return Co({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,So(),Ji].filter(p=>!!p),issueData:{code:de.invalid_arguments,argumentsError:o}})}function l(d,o){return Co({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,So(),Ji].filter(p=>!!p),issueData:{code:de.invalid_return_type,returnTypeError:o}})}const s={errorMap:n.common.contextualErrorMap},u=n.data;if(this._def.returns instanceof ri){const d=this;return Et(async function(...o){const p=new Xt([]),a=await d._def.args.parseAsync(o,s).catch(h=>{throw p.addIssue(r(o,h)),p}),i=await Reflect.apply(u,this,a);return await d._def.returns._def.type.parseAsync(i,s).catch(h=>{throw p.addIssue(l(i,h)),p})})}else{const d=this;return Et(function(...o){const p=d._def.args.safeParse(o,s);if(!p.success)throw new Xt([r(o,p.error)]);const a=Reflect.apply(u,this,p.data),i=d._def.returns.safeParse(a,s);if(!i.success)throw new Xt([l(a,i.error)]);return i.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Kr({...this._def,args:cn.create(t).rest(dr.create())})}returns(t){return new Kr({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Kr({args:t||cn.create([]).rest(dr.create()),returns:n||dr.create(),typeName:Me.ZodFunction,...Pe(r)})}}class as extends Be{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}as.create=(e,t)=>new as({getter:e,typeName:Me.ZodLazy,...Pe(t)});class ls extends Be{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return we(n,{received:n.data,code:de.invalid_literal,expected:this._def.value}),De}return{status:"valid",value:t.data}}get value(){return this._def.value}}ls.create=(e,t)=>new ls({value:e,typeName:Me.ZodLiteral,...Pe(t)});function ug(e,t){return new Jn({values:e,typeName:Me.ZodEnum,...Pe(t)})}class Jn extends Be{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return we(n,{expected:Ge.joinValues(r),received:n.parsedType,code:de.invalid_type}),De}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return we(n,{received:n.data,code:de.invalid_enum_value,options:r}),De}return Et(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return Jn.create(t)}exclude(t){return Jn.create(this.options.filter(n=>!t.includes(n)))}}Jn.create=ug;class cs extends Be{_parse(t){const n=Ge.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ye.string&&r.parsedType!==ye.number){const l=Ge.objectValues(n);return we(r,{expected:Ge.joinValues(l),received:r.parsedType,code:de.invalid_type}),De}if(n.indexOf(t.data)===-1){const l=Ge.objectValues(n);return we(r,{received:r.data,code:de.invalid_enum_value,options:l}),De}return Et(t.data)}get enum(){return this._def.values}}cs.create=(e,t)=>new cs({values:e,typeName:Me.ZodNativeEnum,...Pe(t)});class ri extends Be{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.promise&&n.common.async===!1)return we(n,{code:de.invalid_type,expected:ye.promise,received:n.parsedType}),De;const r=n.parsedType===ye.promise?n.data:Promise.resolve(n.data);return Et(r.then(l=>this._def.type.parseAsync(l,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ri.create=(e,t)=>new ri({type:e,typeName:Me.ZodPromise,...Pe(t)});class en extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),l=this._def.effect||null,s={addIssue:u=>{we(r,u),u.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),l.type==="preprocess"){const u=l.transform(r.data,s);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(u).then(d=>this._def.schema._parseAsync({data:d,path:r.path,parent:r})):this._def.schema._parseSync({data:u,path:r.path,parent:r})}if(l.type==="refinement"){const u=d=>{const o=l.refinement(d,s);if(r.common.async)return Promise.resolve(o);if(o instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(r.common.async===!1){const d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return d.status==="aborted"?De:(d.status==="dirty"&&n.dirty(),u(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(d=>d.status==="aborted"?De:(d.status==="dirty"&&n.dirty(),u(d.value).then(()=>({status:n.value,value:d.value}))))}if(l.type==="transform")if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!es(u))return u;const d=l.transform(u.value,s);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>es(u)?Promise.resolve(l.transform(u.value,s)).then(d=>({status:n.value,value:d})):u);Ge.assertNever(l)}}en.create=(e,t,n)=>new en({schema:e,typeName:Me.ZodEffects,effect:t,...Pe(n)});en.createWithPreprocess=(e,t,n)=>new en({schema:t,effect:{type:"preprocess",transform:e},typeName:Me.ZodEffects,...Pe(n)});class _n extends Be{_parse(t){return this._getType(t)===ye.undefined?Et(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_n.create=(e,t)=>new _n({innerType:e,typeName:Me.ZodOptional,...Pe(t)});class Ar extends Be{_parse(t){return this._getType(t)===ye.null?Et(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ar.create=(e,t)=>new Ar({innerType:e,typeName:Me.ZodNullable,...Pe(t)});class us extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ye.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}us.create=(e,t)=>new us({innerType:e,typeName:Me.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Pe(t)});class Ro extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},l=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Ao(l)?l.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Xt(r.common.issues)},input:r.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Xt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ro.create=(e,t)=>new Ro({innerType:e,typeName:Me.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Pe(t)});class To extends Be{_parse(t){if(this._getType(t)!==ye.nan){const r=this._getOrReturnCtx(t);return we(r,{code:de.invalid_type,expected:ye.nan,received:r.parsedType}),De}return{status:"valid",value:t.data}}}To.create=e=>new To({typeName:Me.ZodNaN,...Pe(e)});const aS=Symbol("zod_brand");class hg extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class $s extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?De:s.status==="dirty"?(n.dirty(),cg(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const l=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?De:l.status==="dirty"?(n.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:r.path,parent:r})}}static create(t,n){return new $s({in:t,out:n,typeName:Me.ZodPipeline})}}class Lo extends Be{_parse(t){const n=this._def.innerType._parse(t);return es(n)&&(n.value=Object.freeze(n.value)),n}}Lo.create=(e,t)=>new Lo({innerType:e,typeName:Me.ZodReadonly,...Pe(t)});const fg=(e,t={},n)=>e?ni.create().superRefine((r,l)=>{var s,u;if(!e(r)){const d=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,o=(u=(s=d.fatal)!==null&&s!==void 0?s:n)!==null&&u!==void 0?u:!0,p=typeof d=="string"?{message:d}:d;l.addIssue({code:"custom",...p,fatal:o})}}):ni.create(),lS={object:ct.lazycreate};var Me;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Me||(Me={}));const cS=(e,t={message:`Input not instance of ${e.name}`})=>fg(n=>n instanceof e,t),dg=Zt.create,pg=qn.create,uS=To.create,hS=Qn.create,gg=ts.create,fS=Sr.create,dS=ko.create,pS=ns.create,gS=rs.create,mS=ni.create,vS=dr.create,yS=An.create,bS=xo.create,wS=qt.create,_S=ct.create,$S=ct.strictCreate,SS=is.create,CS=va.create,AS=ss.create,kS=cn.create,xS=os.create,ES=Eo.create,RS=Cr.create,TS=Kr.create,LS=as.create,MS=ls.create,OS=Jn.create,IS=cs.create,NS=ri.create,Wh=en.create,DS=_n.create,FS=Ar.create,PS=en.createWithPreprocess,BS=$s.create,WS=()=>dg().optional(),HS=()=>pg().optional(),US=()=>gg().optional(),VS={string:e=>Zt.create({...e,coerce:!0}),number:e=>qn.create({...e,coerce:!0}),boolean:e=>ts.create({...e,coerce:!0}),bigint:e=>Qn.create({...e,coerce:!0}),date:e=>Sr.create({...e,coerce:!0})},zS=De;var ne=Object.freeze({__proto__:null,defaultErrorMap:Ji,setErrorMap:Y$,getErrorMap:So,makeIssue:Co,EMPTY_PATH:Z$,addIssueToContext:we,ParseStatus:St,INVALID:De,DIRTY:cg,OK:Et,isAborted:Hl,isDirty:Ul,isValid:es,isAsync:Ao,get util(){return Ge},get objectUtil(){return Wl},ZodParsedType:ye,getParsedType:Un,ZodType:Be,ZodString:Zt,ZodNumber:qn,ZodBigInt:Qn,ZodBoolean:ts,ZodDate:Sr,ZodSymbol:ko,ZodUndefined:ns,ZodNull:rs,ZodAny:ni,ZodUnknown:dr,ZodNever:An,ZodVoid:xo,ZodArray:qt,ZodObject:ct,ZodUnion:is,ZodDiscriminatedUnion:va,ZodIntersection:ss,ZodTuple:cn,ZodRecord:os,ZodMap:Eo,ZodSet:Cr,ZodFunction:Kr,ZodLazy:as,ZodLiteral:ls,ZodEnum:Jn,ZodNativeEnum:cs,ZodPromise:ri,ZodEffects:en,ZodTransformer:en,ZodOptional:_n,ZodNullable:Ar,ZodDefault:us,ZodCatch:Ro,ZodNaN:To,BRAND:aS,ZodBranded:hg,ZodPipeline:$s,ZodReadonly:Lo,custom:fg,Schema:Be,ZodSchema:Be,late:lS,get ZodFirstPartyTypeKind(){return Me},coerce:VS,any:mS,array:wS,bigint:hS,boolean:gg,date:fS,discriminatedUnion:CS,effect:Wh,enum:OS,function:TS,instanceof:cS,intersection:AS,lazy:LS,literal:MS,map:ES,nan:uS,nativeEnum:IS,never:yS,null:gS,nullable:FS,number:pg,object:_S,oboolean:US,onumber:HS,optional:DS,ostring:WS,pipeline:BS,preprocess:PS,promise:NS,record:xS,set:RS,strictObject:$S,string:dg,symbol:dS,transformer:Wh,tuple:kS,undefined:pS,union:SS,unknown:vS,void:bS,NEVER:zS,ZodIssueCode:de,quotelessJson:K$,ZodError:Xt});const ya=ne.object({total:ne.number(),currentPage:ne.number(),pageSize:ne.number()}),jS=ne.object({key:ne.string(),value:ne.string().nullish()}),GS=ne.object({name:ne.string(),configured:ne.boolean(),items:ne.array(jS).nullish(),type:ne.string()}),KS=ne.object({results:ne.array(GS)}),ba=ne.object({id:ne.number(),name:ne.string()}),YS=ya.extend({results:ne.array(ba)}),ZS=ne.object({resource:ne.string(),value:ne.string()}),Hh=ne.object({name:ne.string().nullish()}),XS=ne.object({createdOn:ne.string().nullish(),updatedOn:ne.string().nullish(),expiresOn:ne.string().nullish(),registrar:Hh.nullish(),contacts:ne.array(Hh)}),qS=ne.object({number:ne.number()}),QS=ne.object({country:ne.string(),countryCode:ne.string()}),JS=ne.object({name:ne.string()}),eC=ne.object({name:ne.string()}),tC=ne.object({name:ne.string()}),nC=ne.object({number:ne.number()}),Vc=ne.object({id:ne.number(),data:ne.string(),dataType:ne.string(),source:ne.string(),query:ne.string().nullish(),metadata:ne.any().nullish(),createdAt:ne.string(),autonomousSystem:qS.nullish(),whoisRecord:XS.nullish(),geolocation:QS.nullish(),dnsRecords:ne.array(ZS).nullish(),reverseDnsNames:ne.array(JS).nullish(),cpes:ne.array(eC).nullish(),ports:ne.array(nC).nullish(),vulnerabilities:ne.array(tC).nullish(),tags:ne.array(ba)}),mg=ne.object({id:ne.number(),ruleId:ne.string(),createdAt:ne.string(),tags:ne.array(ba),artifacts:ne.array(Vc)}),rC=ya.extend({results:ne.array(mg)});ne.object({q:ne.string(),page:ne.number().nullish(),limit:ne.number().nullish()});ne.object({countryCode:ne.string(),asn:ne.string().nullish(),loc:ne.string().nullish()});ne.object({lat:ne.number(),long:ne.number()});ne.object({name:ne.string(),code:ne.string(),lat:ne.number(),long:ne.number()});ne.union([ne.literal("ip"),ne.literal("domain"),ne.literal("url"),ne.literal("hash"),ne.literal("mail")]);ne.object({name:ne.string(),type:ne.string(),baseURL:ne.string(),favicon:ne.function().returns(ne.string()),href:ne.function().args(ne.string()).returns(ne.string())});const so=ne.object({id:ne.string(),title:ne.string(),description:ne.string(),yaml:ne.string(),createdAt:ne.string(),updatedAt:ne.string(),tags:ne.array(ba)});ne.object({yaml:ne.string()});ne.object({yaml:ne.string()});ne.object({analyzer:ne.string(),query:ne.string()});const iC=ya.extend({results:ne.array(so)}),sC=ya.extend({results:ne.array(Vc)}),Fr=ne.object({message:ne.string()});Fr.extend({detail:ne.any().nullish()});const Uh=Fr.extend({queued:ne.boolean()});ne.union([ne.literal("Alerts"),ne.literal("Rules"),ne.literal("Artifacts")]);const pt=tt.create(),At={async getConfigs(){const e=await pt.get("/api/configs");return KS.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await pt.get("/api/alerts",{params:e});return rC.parse(t.data)},async getAlert(e){const t=await pt.get(`/api/alerts/${e}`);return mg.parse(t.data)},async getTags(){const e=await pt.get("/api/tags");return YS.parse(e.data)},async deleteAlert(e){const t=await pt.delete(`/api/alerts/${e}`);return Fr.parse(t.data)},async getArtifact(e){const t=await pt.get(`/api/artifacts/${e}`);return Vc.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await pt.get("/api/artifacts",{params:e});return sC.parse(t.data)},async enrichArtifact(e){const t=await pt.post(`/api/artifacts/${e}/enrich`);return Uh.parse(t.data)},async deleteArtifact(e){const t=await pt.delete(`/api/artifacts/${e}`);return Fr.parse(t.data)},async getRules(e){e.page=e.page||1;const t=await pt.get("/api/rules",{params:e});return iC.parse(t.data)},async getRule(e){const t=await pt.get(`/api/rules/${e}`);return so.parse(t.data)},async searchRule(e){const t=await pt.post(`/api/rules/${e}/search`);return Uh.parse(t.data)},async createRule(e){const t=await pt.post("/api/rules/",e);return so.parse(t.data)},async updateRule(e){const t=await pt.put("/api/rules/",e);return so.parse(t.data)},async deleteRule(e){const t=await pt.delete(`/api/rules/${e}`);return Fr.parse(t.data)},async deleteTag(e){const t=await pt.delete(`/api/tags/${e}`);return Fr.parse(t.data)},async getIpInfo(e){return(await pt.get(`/api/ip_addresses/${e}`)).data}};function Ss(){return Ct(async(e,t)=>await At.getAlerts(t))}function oC(){return Ct(async(e,t)=>await At.deleteAlert(t))}function aC(){return Ct(async(e,t)=>await At.deleteTag(t))}function lC(){return Ct(async(e,t)=>await At.getArtifact(t))}function vg(){return Ct(async(e,t)=>await At.deleteArtifact(t))}function cC(){return Ct(async(e,t)=>await At.enrichArtifact(t))}function uC(){return Ct(async()=>await At.getConfigs())}function hC(){return Ct(async(e,t)=>await At.getIpInfo(t))}function yg(){return Ct(async(e,t)=>await At.getRules(t))}function bg(){return Ct(async(e,t)=>await At.getRule(t))}function fC(){return Ct(async(e,t)=>await At.deleteRule(t))}function dC(){return Ct(async(e,t)=>await At.searchRule(t))}function pC(){return Ct(async(e,t)=>await At.createRule(t))}function gC(){return Ct(async(e,t)=>await At.updateRule(t))}function zc(){return Ct(async(e,t)=>await At.getArtifacts(t))}function mC(){return Ct(async(e,t)=>await At.getAlert(t))}const vC=Ce({name:"AlertActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,t){const n=Le(()=>`/api/alerts/${e.alert.id}`),r=oC();return{href:n,deleteAlert:async()=>{if(window.confirm(`Are you sure you want to delete ${e.alert.id}?`))try{await r.perform(e.alert.id),t.emit("delete")}catch(u){tt.isAxiosError(u)&&t.emit("set-error",u)}}}}}),yC={class:"buttons is-pulled-right"},bC=["href"],wC=D("span",null,"JSON",-1),_C={class:"icon is-small"},$C=D("span",null,"Delete",-1),SC={class:"icon is-small"};function CC(e,t,n,r,l,s){const u=re("font-awesome-icon");return Z(),se("span",yC,[D("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[wC,D("span",_C,[oe(u,{icon:"barcode"})])],8,bC),D("button",{class:"button is-light is-small",onClick:t[0]||(t[0]=(...d)=>e.deleteAlert&&e.deleteAlert(...d))},[$C,D("span",SC,[oe(u,{icon:"times"})])])])}const wg=Re(vC,[["render",CC]]);var Cs=AC;function AC(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const kC=Ce({name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=ze(!1),r=ze(!1),l=vg();return{deleteArtifact:async()=>{window.confirm(`Are you sure you want to delete ${e.artifact.data}?`)&&(await l.perform(e.artifact.id),n.value=!0,t.emit("delete"))},hideDeleteButton:()=>{r.value=!1},isDeleteButtonEnabled:r,isDeleted:n,showDeleteButton:()=>{r.value=!0},truncate:Cs}}}),xC={key:0,class:"control"};function EC(e,t,n,r,l,s){const u=re("router-link");return e.isDeleted?me("",!0):(Z(),se("div",xC,[D("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...d)=>e.showDeleteButton&&e.showDeleteButton(...d)),onMouseleave:t[2]||(t[2]=(...d)=>e.hideDeleteButton&&e.hideDeleteButton(...d))},[oe(u,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Je(()=>[et($e(e.truncate(e.artifact.data,32)),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled?(Z(),se("span",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...d)=>e.deleteArtifact&&e.deleteArtifact(...d))})):me("",!0)],32)]))}const RC=Re(kC,[["render",EC]]),TC=Ce({name:"ArtifactTags",components:{ArtifactTag:RC},props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,t){const n=ze(0),r=()=>{n.value+=1};return st(n,()=>{n.value>=e.artifacts.length&&t.emit("delete")}),{onDelete:r}}}),LC={class:"field is-grouped is-grouped-multiline"};function MC(e,t,n,r,l,s){const u=re("ArtifactTag");return Z(),se("div",LC,[(Z(!0),se(Ne,null,Nt(e.artifacts,d=>(Z(),Se(u,{key:d.id,artifact:d,onDelete:e.onDelete},null,8,["artifact","onDelete"]))),128))])}const _g=Re(TC,[["render",MC]]);var er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $g(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var Sg={exports:{}};const OC=$g(yw);(function(e,t){(function(n,r){e.exports=r(OC)})(er,function(n){return function(){var r={789:function(d){d.exports=n}},l={};function s(d){var o=l[d];if(o!==void 0)return o.exports;var p=l[d]={exports:{}};return r[d](p,p.exports,s),p.exports}s.d=function(d,o){for(var p in o)s.o(o,p)&&!s.o(d,p)&&Object.defineProperty(d,p,{enumerable:!0,get:o[p]})},s.o=function(d,o){return Object.prototype.hasOwnProperty.call(d,o)},s.r=function(d){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var u={};return function(){function d(_,A){(A==null||A>_.length)&&(A=_.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,R=w||{},T=R.key,O=R.index,I=R.type,N=I===void 0?"content":I,P=R.showComma,W=P!==void 0&&P,j=R.length,V=j===void 0?1:j,H=m(_);if(H==="array"){var G=y(_.map(function(X,Y,z){return v(X,"".concat(A,"[").concat(Y,"]"),$+1,{index:Y,showComma:Y!==z.length-1,length:V,type:N})}));return[v("[",A,$,{showComma:!1,key:T,length:_.length,type:"arrayStart"})[0]].concat(G,v("]",A,$,{showComma:W,length:_.length,type:"arrayEnd"})[0])}if(H==="object"){var Q=Object.keys(_),U=y(Q.map(function(X,Y,z){return v(_[X],/^[a-zA-Z_]\w*$/.test(X)?"".concat(A,".").concat(X):"".concat(A,'["').concat(X,'"]'),$+1,{key:X,showComma:Y!==z.length-1,length:V,type:N})}));return[v("{",A,$,{showComma:!1,key:T,index:O,length:Q.length,type:"objectStart"})[0]].concat(U,v("}",A,$,{showComma:W,length:Q.length,type:"objectEnd"})[0])}return[{content:_,level:$,key:T,index:O,path:A,showComma:W,length:V,type:N}]}function y(_){if(typeof Array.prototype.flat=="function")return _.flat();for(var A=p(_),$=[];A.length;){var w=A.shift();Array.isArray(w)?A.unshift.apply(A,p(w)):$.push(w)}return $}function k(_){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(_==null)return _;if(_ instanceof Date)return new Date(_);if(_ instanceof RegExp)return new RegExp(_);if(g(_)!=="object")return _;if(A.get(_))return A.get(_);if(Array.isArray(_)){var $=_.map(function(T){return k(T,A)});return A.set(_,$),$}var w={};for(var R in _)w[R]=k(_[R],A);return A.set(_,w),w}function C(_,A){var $=Object.keys(_);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(_);A&&(w=w.filter(function(R){return Object.getOwnPropertyDescriptor(_,R).enumerable})),$.push.apply($,w)}return $}function S(_){for(var A=1;A=z||F.length>=ee,J=(B=_.pathCollapsible)===null||B===void 0?void 0:B.call(_,F);return F.type!=="objectStart"&&F.type!=="arrayStart"||!K&&!J?he:x(x({},he),{},a({},F.path,1))},{})},I=(0,i.reactive)({translateY:0,visibleData:null,hiddenPaths:O(_.deep,_.collapsedNodeLength)}),N=(0,i.computed)(function(){for(var z=null,ee=[],he=T.value.length,F=0;Fz.length?z.length-he:B;K<0&&(K=0);var J=K+he;I.translateY=K*_.itemHeight,I.visibleData=z.filter(function(te,ce){return ce>=K&&ce{var l;if(e.error.response)return(l=e.error.response)==null?void 0:l.data});return{dispose:()=>{t.emit("dispose")},data:n}}}),DC={class:"notification is-danger is-light"},FC={key:1},PC={key:2},BC={key:0,class:"message"},WC={class:"message-body"};function HC(e,t,n,r,l,s){var d;const u=re("VueJsonPretty");return Z(),se(Ne,null,[D("div",DC,[e.disposable?(Z(),se("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...o)=>e.dispose&&e.dispose(...o))})):me("",!0),e.data?(Z(),se("p",FC,$e(e.data.message),1)):(Z(),se("p",PC,$e(e.error),1))]),(d=e.data)!=null&&d.detail?(Z(),se("article",BC,[D("div",WC,[oe(u,{data:e.data.detail},null,8,["data"])])])):me("",!0)],64)}const bt=Re(NC,[["render",HC]]),UC=Ce({name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=ze(!1),n=ze(!1),r=aC();return{isDeleted:t,deleteTag:async()=>{window.confirm(`Are you sure you want to delete ${e.tag.name} (ID: ${e.tag.id})?`)&&(await r.perform(e.tag.id),t.value=!0)},showDeleteButton:()=>{n.value=!0},hideDeleteButton:()=>{n.value=!1},isDeleteButtonEnabled:n,getQuery:o=>`tag:"${o}"`}}}),VC={key:0,class:"control"};function zC(e,t,n,r,l,s){const u=re("router-link");return e.isDeleted?me("",!0):(Z(),se("div",VC,[D("div",{class:"tags has-addons are-medium",onMouseover:t[1]||(t[1]=(...d)=>e.showDeleteButton&&e.showDeleteButton(...d)),onMouseleave:t[2]||(t[2]=(...d)=>e.hideDeleteButton&&e.hideDeleteButton(...d))},[oe(u,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:e.getQuery(e.tag.name)}}},{default:Je(()=>[et($e(e.tag.name),1)]),_:1},8,["to"]),e.isDeleteButtonEnabled&&e.deletable?(Z(),se("a",{key:0,class:"tag is-delete",onClick:t[0]||(t[0]=(...d)=>e.deleteTag&&e.deleteTag(...d))})):me("",!0)],32)]))}const jC=Re(UC,[["render",zC]]),GC=Ce({name:"TagsItem",components:{Tag:jC},props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(){}}),KC={class:"field is-grouped is-grouped-multiline"};function YC(e,t,n,r,l,s){const u=re("Tag");return Z(),se("div",KC,[(Z(!0),se(Ne,null,Nt(e.tags,d=>(Z(),Se(u,{tag:d,key:d.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))])}const As=Re(GC,[["render",YC]]);var Ag={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(er,function(){var n=1e3,r=6e4,l=36e5,s="millisecond",u="second",d="minute",o="hour",p="day",a="week",i="month",c="quarter",h="year",f="date",g="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,y={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 R=["th","st","nd","rd"],T=w%100;return"["+w+(R[(T-20)%10]||R[T]||R[0])+"]"}},k=function(w,R,T){var O=String(w);return!O||O.length>=R?w:""+Array(R+1-O.length).join(T)+w},C={s:k,z:function(w){var R=-w.utcOffset(),T=Math.abs(R),O=Math.floor(T/60),I=T%60;return(R<=0?"+":"-")+k(O,2,"0")+":"+k(I,2,"0")},m:function w(R,T){if(R.date()1)return w(P[0])}else{var W=R.name;b[W]=R,I=W}return!O&&I&&(S=I),I||!O&&S},M=function(w,R){if(L(w))return w.clone();var T=typeof R=="object"?R:{};return T.date=w,T.args=arguments,new A(T)},_=C;_.l=x,_.i=L,_.w=function(w,R){return M(w,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var A=function(){function w(T){this.$L=x(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[E]=!0}var R=w.prototype;return R.parse=function(T){this.$d=function(O){var I=O.date,N=O.utc;if(I===null)return new Date(NaN);if(_.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var P=I.match(m);if(P){var W=P[2]-1||0,j=(P[7]||"0").substring(0,3);return N?new Date(Date.UTC(P[1],W,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)):new Date(P[1],W,P[3]||1,P[4]||0,P[5]||0,P[6]||0,j)}}return new Date(I)}(T),this.init()},R.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()},R.$utils=function(){return _},R.isValid=function(){return this.$d.toString()!==g},R.isSame=function(T,O){var I=M(T);return this.startOf(O)<=I&&I<=this.endOf(O)},R.isAfter=function(T,O){return M(T)0,b<=S.r||!S.r){b<=1&&C>0&&(S=y[C-1]);var E=v[S.l];h&&(b=h(""+b)),g=typeof E=="string"?E.replace("%d",b):E(b,a,S.l,m);break}}if(a)return g;var L=m?v.future:v.past;return typeof L=="function"?L(g):L.replace("%s",g)},s.to=function(p,a){return d(p,a,this,!0)},s.from=function(p,a){return d(p,a,this)};var o=function(p){return p.$u?l.utc():l()};s.toNow=function(p){return this.to(o(this),p)},s.fromNow=function(p){return this.from(o(this),p)}}})})(kg);var XC=kg.exports;const qC=Tr(XC);var xg={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(er,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(l,s,u){var d,o=function(c,h,f){f===void 0&&(f={});var g=new Date(c),m=function(v,y){y===void 0&&(y={});var k=y.timeZoneName||"short",C=v+"|"+k,S=r[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:k}),r[C]=S),S}(h,f);return m.formatToParts(g)},p=function(c,h){for(var f=o(c,h),g=[],m=0;m=0&&(g[C]=parseInt(k,10))}var S=g[3],b=S===24?0:S,E=g[0]+"-"+g[1]+"-"+g[2]+" "+b+":"+g[4]+":"+g[5]+":000",L=+c;return(u.utc(E).valueOf()-(L-=L%1e3))/6e4},a=s.prototype;a.tz=function(c,h){c===void 0&&(c=d);var f=this.utcOffset(),g=this.toDate(),m=g.toLocaleString("en-US",{timeZone:c}),v=Math.round((g-new Date(m))/1e3/60),y=u(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-v,!0);if(h){var k=y.utcOffset();y=y.add(f-k,"minute")}return y.$x.$timezone=c,y},a.offsetName=function(c){var h=this.$x.$timezone||u.tz.guess(),f=o(this.valueOf(),h,{timeZoneName:c}).find(function(g){return g.type.toLowerCase()==="timezonename"});return f&&f.value};var i=a.startOf;a.startOf=function(c,h){if(!this.$x||!this.$x.$timezone)return i.call(this,c,h);var f=u(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return i.call(f,c,h).tz(this.$x.$timezone,!0)},u.tz=function(c,h,f){var g=f&&h,m=f||h||d,v=p(+u(),m);if(typeof c!="string")return u(c).tz(m);var y=function(b,E,L){var x=b-60*E*1e3,M=p(x,L);if(E===M)return[x,E];var _=p(x-=60*(M-E)*1e3,L);return M===_?[x,M]:[b-60*Math.min(M,_)*1e3,Math.max(M,_)]}(u.utc(c,g).valueOf(),v,m),k=y[0],C=y[1],S=u(k).utcOffset(C);return S.$x.$timezone=m,S},u.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},u.tz.setDefault=function(c){d=c}}})})(xg);var QC=xg.exports;const JC=Tr(QC);var Eg={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(er,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(s,u,d){var o=u.prototype;d.utc=function(g){var m={date:g,utc:!0,args:arguments};return new u(m)},o.utc=function(g){var m=d(this.toDate(),{locale:this.$L,utc:!0});return g?m.add(this.utcOffset(),n):m},o.local=function(){return d(this.toDate(),{locale:this.$L,utc:!1})};var p=o.parse;o.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),p.call(this,g)};var a=o.init;o.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else a.call(this)};var i=o.utcOffset;o.utcOffset=function(g,m){var v=this.$utils().u;if(v(g))return this.$u?0:v(this.$offset)?i.call(this):this.$offset;if(typeof g=="string"&&(g=function(S){S===void 0&&(S="");var b=S.match(r);if(!b)return null;var E=(""+b[0]).match(l)||["-",0,0],L=E[0],x=60*+E[1]+ +E[2];return x===0?0:L==="+"?x:-x}(g),g===null))return this;var y=Math.abs(g)<=16?60*g:g,k=this;if(m)return k.$offset=y,k.$u=g===0,k;if(g!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(k=this.local().add(y+C,n)).$offset=y,k.$x.$localOffset=C}else k=this.utc();return k};var c=o.format;o.format=function(g){var m=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,m)},o.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(g){return g==="s"&&this.$offset?d(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=o.diff;o.diff=function(g,m,v){if(g&&this.$u===g.$u)return f.call(this,g,m,v);var y=this.local(),k=d(g).local();return f.call(y,k,m,v)}}})})(Eg);var eA=Eg.exports;const tA=Tr(eA),nA=[{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 rA(e){return nA.find(n=>n.code===e)}mi.extend(qC);mi.extend(JC);mi.extend(tA);function Rg(e){return mi(e).local().format("YYYY-MM-DD HH:mm:ss")}function Tg(e){return mi(e).local().fromNow()}function Lg(e){const t=rA(e);if(t)return{lat:t.lat,long:t.long}}function iA(e){if(e.loc){const t=e.loc.split(",");if(t.length===2){const n=t[0],r=t[1];return{lat:parseFloat(n),long:parseFloat(r)}}}return Lg(e.countryCode)}const sA=Ce({name:"AlertItem",components:{Artifacts:_g,Tags:As,ActionButtons:wg,ErrorMessage:bt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=ze(!1),r=ze();return{onDelete:()=>{t.emit("delete")},getLocalDatetime:Rg,getHumanizedRelativeTime:Tg,onSetError:o=>{r.value=o},onDisposeError:()=>{r.value=void 0},error:r,isDeleted:n,onArtifactsDeleted:()=>{n.value=!0}}}}),oA={key:0,class:"box"},aA={class:"table is-fullwidth is-completely-borderless"},lA=D("th",null,"Rule",-1),cA=D("th",null,"Artifacts",-1),uA={key:0},hA=D("th",null,"Tags",-1),fA={class:"help"};function dA(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("ActionButtons"),o=re("router-link"),p=re("Artifacts"),a=re("Tags");return e.isDeleted?me("",!0):(Z(),se("div",oA,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),D("p",null,[oe(d,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),oe(o,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:Je(()=>[et($e(e.alert.id),1)]),_:1},8,["to"]),D("table",aA,[D("tr",null,[lA,D("td",null,[oe(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Je(()=>[et($e(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[cA,D("td",null,[oe(p,{artifacts:e.alert.artifacts,onDelete:e.onArtifactsDeleted},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(Z(),se("tr",uA,[hA,D("td",null,[oe(a,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):me("",!0)]),D("p",fA,"Created at: "+$e(e.alert.createdAt),1)]))}const pA=Re(sA,[["render",dA]]),gA=Ce({name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,t){const n=a=>a===e.currentPage+1||a===e.currentPage-1,r=Le(()=>Math.ceil(e.total/e.pageSize)),l=Le(()=>r.value===1),s=Le(()=>e.currentPage>1),u=Le(()=>e.currentPage-1===1),d=Le(()=>e.currentPagee.currentPage+1===r.value);return{updatePage:a=>{t.emit("update-page",a)},isNextPage:n,hasNextPage:d,hasOnlyOnePage:l,hasPreviousPage:s,isNextPageLast:o,isPreviousPageFirst:u,totalPageCount:r}}}),mA={key:0,class:"message is-warning"},vA=D("div",{class:"message-body"},"There is no result to show.",-1),yA=[vA],bA={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},wA={key:0,class:"pagination-list"},_A={key:1,class:"pagination-list"},$A={key:0},SA={key:1},CA=D("span",{class:"pagination-ellipsis"},"…",-1),AA=[CA],kA={key:2},xA={key:3},EA={key:4},RA=D("span",{class:"pagination-ellipsis"},"…",-1),TA=[RA],LA={key:5};function MA(e,t,n,r,l,s){return e.total===0?(Z(),se("article",mA,yA)):(Z(),se("nav",bA,[e.hasOnlyOnePage?(Z(),se("ul",wA,[D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:t[0]||(t[0]=u=>e.updatePage(1))},"1")])])):(Z(),se("ul",_A,[e.hasPreviousPage&&!e.isPreviousPageFirst?(Z(),se("li",$A,[D("a",{class:"pagination-link mt-2",onClick:t[1]||(t[1]=u=>e.updatePage(1))}," 1")])):me("",!0),e.hasPreviousPage&&!e.isPreviousPageFirst&&!e.isNextPage(2)?(Z(),se("li",SA,AA)):me("",!0),e.hasPreviousPage?(Z(),se("li",kA,[D("a",{class:"pagination-link mt-2",onClick:t[2]||(t[2]=u=>e.updatePage(e.currentPage-1))},$e(e.currentPage-1),1)])):me("",!0),D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:t[3]||(t[3]=u=>e.updatePage(e.currentPage))},$e(e.currentPage),1)]),e.hasNextPage?(Z(),se("li",xA,[D("a",{class:"pagination-link mt-2",onClick:t[4]||(t[4]=u=>e.updatePage(e.currentPage+1))},$e(e.currentPage+1),1)])):me("",!0),e.hasNextPage&&!e.isNextPageLast&&!e.isNextPage(e.totalPageCount-1)?(Z(),se("li",EA,TA)):me("",!0),e.hasNextPage&&!e.isNextPageLast?(Z(),se("li",LA,[D("a",{class:"pagination-link mt-2",onClick:t[5]||(t[5]=u=>e.updatePage(e.totalPageCount))},$e(e.totalPageCount),1)])):me("",!0)]))]))}const jc=Re(gA,[["render",MA]]),OA=Ce({name:"AlertsItem",components:{Alert:pA,Pagination:jc},props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["update-page","refresh"],setup(e,t){const n=s=>{t.emit("update-page",s)},r=()=>{t.emit("refresh")},l=Le(()=>e.alerts.results.length>0);return{onUpdatePage:n,onDelete:r,hasAlerts:l}}}),IA={key:0},NA={class:"help"},DA={key:1},FA=D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),PA=[FA];function BA(e,t,n,r,l,s){const u=re("Alert"),d=re("Pagination");return e.hasAlerts?(Z(),se("div",IA,[(Z(!0),se(Ne,null,Nt(e.alerts.results,o=>(Z(),Se(u,{alert:o,key:o.id,onDelete:e.onDelete},null,8,["alert","onDelete"]))),128)),oe(d,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),D("p",NA,"("+$e(e.alerts.total)+" results in total, "+$e(e.alerts.results.length)+" shown)",1)])):(Z(),se("div",DA,PA))}const Mg=Re(OA,[["render",BA]]),WA=Ce({name:"LoadingItem"}),HA={class:"has-text-centered"},UA={class:"fa-3x"};function VA(e,t,n,r,l,s){const u=re("font-awesome-icon");return Z(),se("div",HA,[D("div",UA,[oe(u,{icon:"spinner",spin:""})])])}const Rn=Re(WA,[["render",VA]]),zA=Ce({name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},components:{Alerts:Mg,Loading:Rn,ErrorMessage:bt},setup(e){const t=ze(1),n=Le(()=>e.excludeAlertId?`rule.id:"${e.ruleId}" AND NOT id:${e.excludeAlertId}`:`rule.id:"${e.ruleId}"`),r=Ss(),l=async()=>{const u={q:n.value,page:t.value};return await r.perform(u)},s=u=>{t.value=u};return lt(async()=>{await l()}),st([e,t],async()=>{await l()}),{page:t,getAlertsTask:r,onUpdatePage:s}}});function jA(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Alerts");return Z(),se(Ne,null,[e.getAlertsTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getAlertsTask.isError?(Z(),Se(d,{key:1,error:(p=e.getAlertsTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getAlertsTask.last)!=null&&a.value?(Z(),Se(o,{key:2,page:e.page.toString(),alerts:e.getAlertsTask.last.value,onUpdatePage:e.onUpdatePage},null,8,["page","alerts","onUpdatePage"])):me("",!0)],64)}const Og=Re(zA,[["render",jA]]),GA=Ce({name:"AlertDetail",components:{Artifacts:_g,Tags:As,Alerts:Og,ActionButtons:wg,ErrorMessage:bt},props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,t){const n=ze(),r=d=>{n.value=d},l=()=>{n.value=void 0},s=()=>{t.emit("delete")};return{onDelete:s,getLocalDatetime:Rg,getHumanizedRelativeTime:Tg,onSetError:r,onDisposeError:l,error:n,onArtifactsDeleted:s}}}),KA={class:"block"},YA={class:"is-size-2"},ZA={class:"is-clearfix"},XA={class:"table is-fullwidth is-completely-borderless"},qA=D("th",null,"Rule",-1),QA=D("th",null,"Artifacts",-1),JA={key:0},ek=D("th",null,"Tags",-1),tk={class:"help"},nk=D("hr",null,null,-1),rk={class:"block"},ik=D("h2",{class:"is-size-2 block"},"Related Alerts",-1);function sk(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("ActionButtons"),o=re("router-link"),p=re("Artifacts"),a=re("Tags"),i=re("Alerts");return Z(),se(Ne,null,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),D("div",KA,[D("h2",YA,$e(e.alert.id),1),D("p",ZA,[oe(d,{alert:e.alert,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["alert","onDelete","onSetError"])]),D("table",XA,[D("tr",null,[qA,D("td",null,[oe(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:Je(()=>[et($e(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[QA,D("td",null,[oe(p,{artifacts:e.alert.artifacts,onDelete:e.onArtifactsDeleted},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(Z(),se("tr",JA,[ek,D("td",null,[oe(a,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):me("",!0)]),D("p",tk,"Created at: "+$e(e.alert.createdAt),1)]),nk,D("div",rk,[ik,oe(i,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}const ok=Re(GA,[["render",sk]]),ak=Ce({name:"AlertDetailWrapper",components:{Alert:ok,Loading:Rn,ErrorMessage:bt},props:{id:{type:Number,required:!0}},setup(e){const t=pi(),n=mC(),r=()=>{t.push("/")};return lt(async()=>{await n.perform(e.id)}),{getAlertTask:n,onDelete:r}}});function lk(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Alert");return Z(),se(Ne,null,[e.getAlertTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getAlertTask.isError?(Z(),Se(d,{key:1,error:(p=e.getAlertTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getAlertTask.last)!=null&&a.value?(Z(),Se(o,{key:2,alert:e.getAlertTask.last.value,onDelete:e.onDelete},null,8,["alert","onDelete"])):me("",!0)],64)}const ck=Re(ak,[["render",lk]]),uk=Ce({name:"AlertView",components:{Alert:ck},props:{id:{type:String,required:!0}},setup(e){const t=()=>{En(`Alert:${e.id} - Mihari`)};lt(()=>{t()}),st(()=>e.id,()=>{t()})}});function hk(e,t,n,r,l,s){const u=re("Alert",!0);return Z(),Se(u,{id:parseInt(e.id)},null,8,["id"])}const fk=Re(uk,[["render",hk]]),Ya=new WeakMap;function ii(e,t,n={}){const{mode:r="replace",route:l=X1(),router:s=pi(),transform:u=i=>i}=n;Ya.has(s)||Ya.set(s,new Map);const d=Ya.get(s);let o=l.query[e];Ep(()=>{o=void 0});let p;const a=Go((i,c)=>(p=c,{get(){return i(),u(o!==void 0?o:qi(t))},set(h){o!==h&&(o=h===t||h===null?void 0:h,d.set(e,h===t||h===null?void 0:h),c(),hi(()=>{if(d.size===0)return;const f=Object.fromEntries(d.entries());d.clear();const{params:g,query:m,hash:v}=l;s[qi(r)]({params:g,query:{...m,...f},hash:v})}))}}));return st(()=>l.query[e],i=>{o=i,p()},{flush:"sync"}),a}const dk=Ce({name:"AlertsWrapper",components:{Alerts:Mg,Loading:Rn,ErrorMessage:bt},setup(){const e=ii("page","1"),t=ii("q",""),n=ze(!1),r=Ss(),l=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},s=p=>{e.value=p.toString()},u=async()=>{e.value="1",await l()},d=u,o=()=>{n.value=!n.value};return lt(async()=>{await l()}),st(e,async()=>{await l()}),st(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getAlertsTask:r,page:e,q:t,search:u,showHelp:n,toggleShowHelp:o,onUpdatePage:s,onRefresh:d}}}),pk={class:"block"},gk={class:"field has-addons"},mk={class:"control is-expanded"},vk={class:"control"},yk={class:"icon is-small"},bk=D("span",null,"Search",-1),wk={class:"control"},_k={class:"icon is-small"},$k=D("span",null,"Help",-1),Sk={key:0,class:"content"},Ck=sa('

Help

  • Search query supports AND, OR, :, =, !=, <, <=, >, >=, NOT and ().
  • Searchable fields are id, tag, created_at, rule.id, rule.title, rule.description, artifact.data, artifact.data_type, artifact.source and artifact.query.

Examples

',3),Ak={key:0,class:"block"};function kk(e,t,n,r,l,s){var i,c;const u=re("font-awesome-icon"),d=re("router-link"),o=re("Loading"),p=re("ErrorMessage"),a=re("Alerts");return Z(),se(Ne,null,[D("div",pk,[D("div",gk,[D("p",mk,[Jo(D("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=h=>e.q=h)},null,512),[[_r,e.q]])]),D("p",vk,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...h)=>e.search&&e.search(...h))},[D("span",yk,[oe(u,{icon:"search"})]),bk])]),D("p",wk,[D("a",{class:"button is-info",onClick:t[2]||(t[2]=(...h)=>e.toggleShowHelp&&e.toggleShowHelp(...h))},[D("span",_k,[oe(u,{icon:"question"})]),$k])])]),e.showHelp?(Z(),se("div",Sk,[Ck,D("ul",null,[D("li",null,[oe(d,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:Je(()=>[et("rule.id:foo AND artifact.data:example.com")]),_:1},8,["to"])]),D("li",null,[oe(d,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:Je(()=>[et("tag:foo AND created_at >= 2020-01-01")]),_:1})])])])):me("",!0)]),e.getAlertsTask.performCount>0?(Z(),se("div",Ak,[e.getAlertsTask.isRunning?(Z(),Se(o,{key:0})):me("",!0),e.getAlertsTask.isError?(Z(),Se(p,{key:1,error:(i=e.getAlertsTask.last)==null?void 0:i.error},null,8,["error"])):me("",!0),(c=e.getAlertsTask.last)!=null&&c.value?(Z(),Se(a,{key:2,alerts:e.getAlertsTask.last.value,page:e.page,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["alerts","page","onUpdatePage","onRefresh"])):me("",!0)])):me("",!0)],64)}const xk=Re(dk,[["render",kk]]),Ek=Ce({name:"OverviewCards",setup(){const e=Ss(),t=yg(),n=zc();return lt(()=>{e.perform({q:"",page:1,limit:0}),t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0})}),{getAlertsTask:e,getArtifactsTask:n,getRulesTask:t}}}),Rk={class:"columns"},Tk={class:"column is-one-third"},Lk={class:"card tile is-child"},Mk={class:"card-content"},Ok={class:"level is-mobile"},Ik={class:"level-item"},Nk={class:"is-widget-label"},Dk=D("h3",{class:"subtitle is-spaced"},"Rules",-1),Fk={class:"title"},Pk={class:"level-item has-widget-icon"},Bk={class:"is-widget-icon"},Wk={class:"icon has-text-info is-large"},Hk={class:"column is-one-third"},Uk={class:"card tile is-child"},Vk={class:"card-content"},zk={class:"level is-mobile"},jk={class:"level-item"},Gk={class:"is-widget-label"},Kk=D("h3",{class:"subtitle is-spaced"},"Alerts",-1),Yk={class:"title"},Zk={class:"level-item has-widget-icon"},Xk={class:"is-widget-icon"},qk={class:"icon has-text-info is-large"},Qk={class:"column is-one-third"},Jk={class:"card tile is-child"},e2={class:"card-content"},t2={class:"level is-mobile"},n2={class:"level-item"},r2={class:"is-widget-label"},i2=D("h3",{class:"subtitle is-spaced"},"Artifacts",-1),s2={class:"title"},o2={class:"level-item has-widget-icon"},a2={class:"is-widget-icon"},l2={class:"icon has-text-info is-large"};function c2(e,t,n,r,l,s){var d,o,p,a,i,c;const u=re("font-awesome-icon");return Z(),se("div",Rk,[D("div",Tk,[D("div",Lk,[D("div",Mk,[D("div",Ok,[D("div",Ik,[D("div",Nk,[Dk,D("h1",Fk,$e(((o=(d=e.getRulesTask.last)==null?void 0:d.value)==null?void 0:o.total)??"N/A"),1)])]),D("div",Pk,[D("div",Bk,[D("span",Wk,[oe(u,{icon:"file",size:"2x"})])])])])])])]),D("div",Hk,[D("div",Uk,[D("div",Vk,[D("div",zk,[D("div",jk,[D("div",Gk,[Kk,D("h1",Yk,$e(((a=(p=e.getAlertsTask.last)==null?void 0:p.value)==null?void 0:a.total)??"N/A"),1)])]),D("div",Zk,[D("div",Xk,[D("span",qk,[oe(u,{icon:"bell",size:"2x"})])])])])])])]),D("div",Qk,[D("div",Jk,[D("div",e2,[D("div",t2,[D("div",n2,[D("div",r2,[i2,D("h1",s2,$e(((c=(i=e.getArtifactsTask.last)==null?void 0:i.value)==null?void 0:c.total)??"N/A"),1)])]),D("div",o2,[D("div",a2,[D("span",l2,[oe(u,{icon:"ticket",size:"2x"})])])])])])])])])}const u2=Re(Ek,[["render",c2]]),h2=Ce({name:"AlertsView",components:{Alerts:xk,OverviewCards:u2},setup(){En("Alerts - Mihari")}}),f2=D("hr",null,null,-1);function d2(e,t,n,r,l,s){const u=re("OverviewCards"),d=re("Alerts",!0);return Z(),se(Ne,null,[oe(u),f2,oe(d)],64)}const p2=Re(h2,[["render",d2]]),g2=Ce({name:"ArtifactActionButtons",props:{artifact:{type:Object,required:!0}},components:{VueJsonPretty:Cg},emits:["delete","set-error","set-message"],setup(e,t){const n=Le(()=>`/api/artifacts/${e.artifact.id}`),r=ze(!1),l=vg(),s=cC();return{deleteArtifact:async()=>{if(window.confirm(`Are you sure you want to delete ${e.artifact.data}?`))try{await l.perform(e.artifact.id),t.emit("delete")}catch(a){tt.isAxiosError(a)&&t.emit("set-error",a)}},enrichArtifact:async()=>{try{const p=await s.perform(e.artifact.id);t.emit("set-message",p)}catch(p){tt.isAxiosError(p)&&t.emit("set-error",p)}},enrichArtifactTask:s,toggleShowMetadata:()=>{r.value=!r.value},href:n,showMetadata:r,truncate:Cs}}}),ks=e=>(qo("data-v-631975a4"),e=e(),Qo(),e),m2={class:"buttons is-pulled-right"},v2=["href"],y2=ks(()=>D("span",null,"JSON",-1)),b2={class:"icon is-small"},w2=ks(()=>D("span",null,"Metadata",-1)),_2={class:"icon is-small"},$2=ks(()=>D("span",null,"Enrich",-1)),S2={class:"icon is-small"},C2=ks(()=>D("span",null,"Delete",-1)),A2={class:"icon is-small"},k2={key:0},x2={class:"modal is-active"},E2={class:"modal-card"},R2={class:"modal-card-head"},T2=ks(()=>D("p",{class:"modal-card-title"},"Metadata",-1)),L2={class:"modal-card-body"};function M2(e,t,n,r,l,s){const u=re("font-awesome-icon"),d=re("VueJsonPretty");return Z(),se(Ne,null,[D("span",m2,[D("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[y2,D("span",b2,[oe(u,{icon:"barcode"})])],8,v2),e.artifact.metadata?(Z(),se("button",{key:0,class:"button is-info is-light is-small",onClick:t[0]||(t[0]=(...o)=>e.toggleShowMetadata&&e.toggleShowMetadata(...o))},[w2,D("span",_2,[oe(u,{icon:"info-circle"})])])):me("",!0),D("button",{class:"button is-primary is-light is-small",onClick:t[1]||(t[1]=(...o)=>e.enrichArtifact&&e.enrichArtifact(...o))},[$2,D("span",S2,[e.enrichArtifactTask.isRunning?(Z(),Se(u,{key:0,icon:"spinner",spin:""})):(Z(),Se(u,{key:1,icon:"lightbulb"}))])]),D("button",{class:"button is-light is-small",onClick:t[2]||(t[2]=(...o)=>e.deleteArtifact&&e.deleteArtifact(...o))},[C2,D("span",A2,[oe(u,{icon:"times"})])])]),e.artifact.metadata&&e.showMetadata?(Z(),se("div",k2,[D("div",x2,[D("div",{class:"modal-background",onClick:t[3]||(t[3]=(...o)=>e.toggleShowMetadata&&e.toggleShowMetadata(...o))}),D("div",E2,[D("header",R2,[T2,D("button",{class:"delete","aria-label":"close",onClick:t[4]||(t[4]=(...o)=>e.toggleShowMetadata&&e.toggleShowMetadata(...o))})]),D("section",L2,[oe(d,{data:e.artifact.metadata},null,8,["data"])])])])])):me("",!0)],64)}const Ig=Re(g2,[["render",M2],["__scopeId","data-v-631975a4"]]),O2=Ce({name:"AS",props:{autonomousSystem:{type:Object,required:!0}},setup(){return{getQuery:t=>`asn:${t}`}}}),I2={class:"tags are-medium"};function N2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",I2,[oe(u,{class:"tag",to:{name:"Artifacts",query:{q:e.getQuery(e.autonomousSystem.number)}}},{default:Je(()=>[et($e(e.autonomousSystem.number),1)]),_:1},8,["to"])])}const D2=Re(O2,[["render",N2]]),F2=Ce({name:"CPEsItem",props:{cpes:{type:Array,required:!0}},setup(){return{getQuery:t=>`cpe:"${t}"`}}}),P2={class:"tags are-medium"};function B2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",P2,[(Z(!0),se(Ne,null,Nt(e.cpes,d=>(Z(),Se(u,{class:"tag",key:d.name,to:{name:"Artifacts",query:{q:e.getQuery(d.name)}}},{default:Je(()=>[et($e(d.name),1)]),_:2},1032,["to"]))),128))])}const W2=Re(F2,[["render",B2]]),H2=Ce({name:"DnsRecords",props:{dnsRecords:{type:Array,required:!0}},setup(){return{truncate:Cs,getQuery:({resource:t,value:n})=>`dns_record.value:"${n}" AND dns_record.resource:"${t}"`}}}),U2={class:"field is-grouped is-grouped-multiline"},V2={class:"tags has-addons are-medium"},z2={class:"tag is-dark"};function j2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",U2,[(Z(!0),se(Ne,null,Nt(e.dnsRecords,(d,o)=>(Z(),se("div",{class:"control",key:o},[D("div",V2,[D("span",z2,$e(d.resource),1),oe(u,{class:"tag",to:{name:"Artifacts",query:{q:e.getQuery({resource:d.resource,value:d.value})}}},{default:Je(()=>[et($e(e.truncate(d.value,50)),1)]),_:2},1032,["to"])])]))),128))])}const G2=Re(H2,[["render",j2]]),K2=Ce({name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(){return{getQuery:t=>`port:${t}`}}}),Y2={class:"tags are-medium"};function Z2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",Y2,[(Z(!0),se(Ne,null,Nt(e.ports,d=>(Z(),Se(u,{class:"tag",key:d.number,to:{name:"Artifacts",query:{q:e.getQuery(d.number)}}},{default:Je(()=>[et($e(d.number),1)]),_:2},1032,["to"]))),128))])}const X2=Re(K2,[["render",Z2]]),q2=Ce({name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(){return{getQuery:t=>`reverse_dns_name:"${t}"`}}}),Q2={class:"tags are-medium"};function J2(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",Q2,[(Z(!0),se(Ne,null,Nt(e.reverseDnsNames,d=>(Z(),Se(u,{class:"tag",key:d.name,to:{name:"Artifacts",query:{q:e.getQuery(d.name)}}},{default:Je(()=>[et($e(d.name),1)]),_:2},1032,["to"]))),128))])}const ex=Re(q2,[["render",J2]]),tx=Ce({name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(){return{getQuery:t=>`vuln:"${t}"`}}}),nx={class:"tags are-medium"};function rx(e,t,n,r,l,s){const u=re("router-link");return Z(),se("div",nx,[(Z(!0),se(Ne,null,Nt(e.vulnerabilities,d=>(Z(),Se(u,{class:"tag",key:d.name,to:{name:"Artifacts",query:{q:e.getQuery(d.name)}}},{default:Je(()=>[et($e(d.name),1)]),_:2},1032,["to"]))),128))])}const ix=Re(tx,[["render",rx]]),sx=Ce({name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}}}),ox={class:"field is-grouped is-grouped-multiline"},ax={class:"control"},lx={class:"tags has-addons are-medium"},cx=D("span",{class:"tag is-dark"},"Registrar",-1),ux={class:"tag is-light"},hx={class:"control"},fx={class:"tags has-addons are-medium"},dx=D("span",{class:"tag is-dark"},"Created on",-1),px={class:"tag is-light"},gx={class:"control"},mx={class:"tags has-addons are-medium"},vx=D("span",{class:"tag is-dark"},"Updated on",-1),yx={class:"tag is-light"},bx={class:"control"},wx={class:"tags has-addons are-medium"},_x=D("span",{class:"tag is-dark"},"Expires on",-1),$x={class:"tag is-light"};function Sx(e,t,n,r,l,s){var u;return Z(),se("div",ox,[D("div",ax,[D("div",lx,[cx,D("span",ux,$e(((u=e.whoisRecord.registrar)==null?void 0:u.name)||"N/A"),1)])]),D("div",hx,[D("div",fx,[dx,D("span",px,$e(e.whoisRecord.createdOn||"N/A"),1)])]),D("div",gx,[D("div",mx,[vx,D("span",yx,$e(e.whoisRecord.updatedOn||"N/A"),1)])]),D("div",bx,[D("div",wx,[_x,D("span",$x,$e(e.whoisRecord.expiresOn||"N/A"),1)])])])}const Cx=Re(sx,[["render",Sx]]),Ax=Ce({name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}}}),kx=["href"],xx=["src"];function Ex(e,t,n,r,l,s){return Z(),se("a",{href:e.link.href(e.data),class:"tag is-white",target:"_blank"},[D("img",{src:e.link.favicon(),alt:"favicon"},null,8,xx),D("span",null,$e(e.link.name),1)],8,kx)}const Rx=Re(Ax,[["render",Ex],["__scopeId","data-v-3ffdcc00"]]);class Ht{constructor(){Fe(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 Tx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class Lx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class Mx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class Ox extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class Ix extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class Nx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class Dx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class Fx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class Ng extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class Px extends Ng{constructor(){super();Fe(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class Dg extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class Bx extends Dg{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class Wx extends Dg{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class Hx extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class Gc extends Ht{constructor(){super();Fe(this,"baseURL");Fe(this,"name");Fe(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class Ux extends Gc{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class Vx extends Gc{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class zx extends Gc{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var Fg={exports:{}};const jx={},Gx=Object.freeze(Object.defineProperty({__proto__:null,default:jx},Symbol.toStringTag,{value:"Module"})),Vh=$g(Gx);/** * [js-sha256]{@link https://github.com/emn178/js-sha256} * * @version 0.11.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2024 * @license MIT */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var l=!n&&typeof self=="object",s=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;s?r=er:l&&(r=self);var u=!r.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,d=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",o="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],a=[24,16,8,0],i=[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],c=["hex","array","digest","arrayBuffer"],h=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),d&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var f=function(b,E){return function(L){return new k(E,!0).update(L)[b]()}},g=function(b){var E=f("hex",b);s&&(E=m(E,b)),E.create=function(){return new k(b)},E.update=function(M){return E.create().update(M)};for(var L=0;L>>2]|=b[M]<>>2]|=x<>>2]|=(192|x>>>6)<>>2]|=(128|x&63)<=57344?($[_>>>2]|=(224|x>>>12)<>>2]|=(128|x>>>6&63)<>>2]|=(128|x&63)<>>2]|=(240|x>>>18)<>>2]|=(128|x>>>12&63)<>>2]|=(128|x>>>6&63)<>>2]|=(128|x&63)<=64?(this.block=$[16],this.start=_-64,this.hash(),this.hashed=!0):this.start=_}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},k.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,E=this.lastByteIndex;b[16]=this.block,b[E>>>2]|=p[E&3],this.block=b[16],E>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},k.prototype.hash=function(){var b=this.h0,E=this.h1,L=this.h2,x=this.h3,M=this.h4,_=this.h5,A=this.h6,$=this.h7,w=this.blocks,R,T,O,I,N,P,W,j,V,H,G;for(R=16;R<64;++R)N=w[R-15],T=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=w[R-2],O=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,w[R]=w[R-16]+T+w[R-7]+O<<0;for(G=E&L,R=0;R<64;R+=4)this.first?(this.is224?(j=300032,N=w[0]-1413257819,$=N-150054599<<0,x=N+24177077<<0):(j=704751109,N=w[0]-210244248,$=N-1521486534<<0,x=N+143694565<<0),this.first=!1):(T=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),O=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),j=b&E,I=j^b&L^G,W=M&_^~M&A,N=$+O+W+i[R]+w[R],P=T+I,$=x+N<<0,x=N+P<<0),T=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),O=($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7),V=x&b,I=V^x&E^j,W=$&M^~$&_,N=A+O+W+i[R+1]+w[R+1],P=T+I,A=L+N<<0,L=N+P<<0,T=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),O=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),H=L&x,I=H^L&b^V,W=A&$^~A&M,N=_+O+W+i[R+2]+w[R+2],P=T+I,_=E+N<<0,E=N+P<<0,T=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),O=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),G=E&L,I=G^E&x^H,W=_&A^~_&$,N=M+O+W+i[R+3]+w[R+3],P=T+I,M=b+N<<0,b=N+P<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+E<<0,this.h2=this.h2+L<<0,this.h3=this.h3+x<<0,this.h4=this.h4+M<<0,this.h5=this.h5+_<<0,this.h6=this.h6+A<<0,this.h7=this.h7+$<<0},k.prototype.hex=function(){this.finalize();var b=this.h0,E=this.h1,L=this.h2,x=this.h3,M=this.h4,_=this.h5,A=this.h6,$=this.h7,w=o[b>>>28&15]+o[b>>>24&15]+o[b>>>20&15]+o[b>>>16&15]+o[b>>>12&15]+o[b>>>8&15]+o[b>>>4&15]+o[b&15]+o[E>>>28&15]+o[E>>>24&15]+o[E>>>20&15]+o[E>>>16&15]+o[E>>>12&15]+o[E>>>8&15]+o[E>>>4&15]+o[E&15]+o[L>>>28&15]+o[L>>>24&15]+o[L>>>20&15]+o[L>>>16&15]+o[L>>>12&15]+o[L>>>8&15]+o[L>>>4&15]+o[L&15]+o[x>>>28&15]+o[x>>>24&15]+o[x>>>20&15]+o[x>>>16&15]+o[x>>>12&15]+o[x>>>8&15]+o[x>>>4&15]+o[x&15]+o[M>>>28&15]+o[M>>>24&15]+o[M>>>20&15]+o[M>>>16&15]+o[M>>>12&15]+o[M>>>8&15]+o[M>>>4&15]+o[M&15]+o[_>>>28&15]+o[_>>>24&15]+o[_>>>20&15]+o[_>>>16&15]+o[_>>>12&15]+o[_>>>8&15]+o[_>>>4&15]+o[_&15]+o[A>>>28&15]+o[A>>>24&15]+o[A>>>20&15]+o[A>>>16&15]+o[A>>>12&15]+o[A>>>8&15]+o[A>>>4&15]+o[A&15];return this.is224||(w+=o[$>>>28&15]+o[$>>>24&15]+o[$>>>20&15]+o[$>>>16&15]+o[$>>>12&15]+o[$>>>8&15]+o[$>>>4&15]+o[$&15]),w},k.prototype.toString=k.prototype.hex,k.prototype.digest=function(){this.finalize();var b=this.h0,E=this.h1,L=this.h2,x=this.h3,M=this.h4,_=this.h5,A=this.h6,$=this.h7,w=[b>>>24&255,b>>>16&255,b>>>8&255,b&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,x>>>24&255,x>>>16&255,x>>>8&255,x&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,_>>>24&255,_>>>16&255,_>>>8&255,_&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},k.prototype.array=k.prototype.digest,k.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(this.is224?28:32),E=new DataView(b);return E.setUint32(0,this.h0),E.setUint32(4,this.h1),E.setUint32(8,this.h2),E.setUint32(12,this.h3),E.setUint32(16,this.h4),E.setUint32(20,this.h5),E.setUint32(24,this.h6),this.is224||E.setUint32(28,this.h7),b};function C(b,E,L){var x,M=typeof b;if(M==="string"){var _=[],A=b.length,$=0,w;for(x=0;x>>6,_[$++]=128|w&63):w<55296||w>=57344?(_[$++]=224|w>>>12,_[$++]=128|w>>>6&63,_[$++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++x)&1023),_[$++]=240|w>>>18,_[$++]=128|w>>>12&63,_[$++]=128|w>>>6&63,_[$++]=128|w&63);b=_}else if(M==="object"){if(b===null)throw new Error(t);if(d&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!d||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new k(E,!0).update(b).array());var R=[],T=[];for(x=0;x<64;++x){var O=b[x]||0;R[x]=92^O,T[x]=54^O}k.call(this,E,L),this.update(T),this.oKeyPad=R,this.inner=!0,this.sharedMemory=L}C.prototype=new k,C.prototype.finalize=function(){if(k.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();k.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),k.prototype.finalize.call(this)}};var S=g();S.sha256=S,S.sha224=g(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),u?e.exports=S:(r.sha256=S.sha256,r.sha224=S.sha224)})()})(Fg);var Kx=Fg.exports,Yx=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},Kc={},Zx=Object.prototype.hasOwnProperty,Xx;function zh(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function jh(e){try{return encodeURIComponent(e)}catch{return null}}function qx(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var l=zh(r[1]),s=zh(r[2]);l===null||s===null||l in n||(n[l]=s)}return n}function Qx(e,t){t=t||"";var n=[],r,l;typeof t!="string"&&(t="?");for(l in e)if(Zx.call(e,l)){if(r=e[l],!r&&(r===null||r===Xx||isNaN(r))&&(r=""),l=jh(l),r=jh(r),l===null||r===null)continue;n.push(l+"="+r)}return n.length?t+n.join("&"):""}Kc.stringify=Qx;Kc.parse=qx;var Pg=Yx,wa=Kc,Jx=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Bg=/[\n\r\t]/g,eE=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Wg=/:\d+$/,tE=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,nE=/^[a-zA-Z]:/;function Yc(e){return(e||"").toString().replace(Jx,"")}var zl=[["#","hash"],["?","query"],function(t,n){return on(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]],Gh={hash:1,query:1};function Hg(e){var t;typeof window<"u"?t=window:typeof er<"u"?t=er:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},l=typeof e,s;if(e.protocol==="blob:")r=new un(unescape(e.pathname),{});else if(l==="string"){r=new un(e,{});for(s in Gh)delete r[s]}else if(l==="object"){for(s in e)s in Gh||(r[s]=e[s]);r.slashes===void 0&&(r.slashes=eE.test(e.href))}return r}function on(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Ug(e,t){e=Yc(e),e=e.replace(Bg,""),t=t||{};var n=tE.exec(e),r=n[1]?n[1].toLowerCase():"",l=!!n[2],s=!!n[3],u=0,d;return l?s?(d=n[2]+n[3]+n[4],u=n[2].length+n[3].length):(d=n[2]+n[4],u=n[2].length):s?(d=n[3]+n[4],u=n[3].length):d=n[4],r==="file:"?u>=2&&(d=d.slice(2)):on(r)?d=n[4]:r?l&&(d=d.slice(2)):u>=2&&on(t.protocol)&&(d=n[4]),{protocol:r,slashes:l||on(r),slashesCount:u,rest:d}}function rE(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,l=n[r-1],s=!1,u=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),u++):u&&(r===0&&(s=!0),n.splice(r,1),u--);return s&&n.unshift(""),(l==="."||l==="..")&&n.push(""),n.join("/")}function un(e,t,n){if(e=Yc(e),e=e.replace(Bg,""),!(this instanceof un))return new un(e,t,n);var r,l,s,u,d,o,p=zl.slice(),a=typeof t,i=this,c=0;for(a!=="object"&&a!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=wa.parse),t=Hg(t),l=Ug(e||"",t),r=!l.protocol&&!l.slashes,i.slashes=l.slashes||r&&t.slashes,i.protocol=l.protocol||t.protocol||"",e=l.rest,(l.protocol==="file:"&&(l.slashesCount!==2||nE.test(e))||!l.slashes&&(l.protocol||l.slashesCount<2||!on(i.protocol)))&&(p[3]=[/(.*)/,"pathname"]);cfE.filter(n=>n.type===e.type))}}}),pE={class:"tags are-medium"};function gE(e,t,n,r,l,s){const u=re("LinkComponent");return Z(),se("div",pE,[(Z(!0),se(Ne,null,Nt(e.selectedLinks,d=>(Z(),Se(u,{data:e.data,link:d,key:d.name},null,8,["data","link"]))),128))])}const mE=Re(dE,[["render",gE]]),vE=Ce({name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,t){return{dispose:()=>{t.emit("dispose")}}}}),yE={class:"notification is-info is-light"};function bE(e,t,n,r,l,s){return Z(),se("div",yE,[e.disposable?(Z(),se("button",{key:0,class:"delete",onClick:t[0]||(t[0]=(...u)=>e.dispose&&e.dispose(...u))})):me("",!0),D("p",null,$e(e.message.message),1)])}const $a=Re(vE,[["render",bE]]),wE=Ce({name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},components:{AS:D2,DnsRecords:G2,Links:mE,ReverseDnsNames:ex,Tags:As,ActionButtons:Ig,WhoisRecord:Cx,CPEs:W2,Ports:X2,ErrorMessage:bt,Message:$a,Vulnerabilities:ix},emits:["refresh","delete"],setup(e,t){const n=ze(),r=ze(),l=ze(),s=ze(),u=g=>{l.value=g},d=()=>{l.value=void 0},o=()=>{t.emit("delete")},p=g=>{g.queued?s.value=g:t.emit("refresh")},a=()=>{s.value=void 0},i=Le(()=>{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}`}),c=g=>{if(g)return`https://maps.google.co.jp/maps?output=embed&q=${g.lat},${g.long}&z=3`},h=hC(),f=Ss();return lt(async()=>{if(e.artifact.dataType==="ip"){let g;if(e.artifact.geolocation)g=Lg(e.artifact.geolocation.countryCode);else{const m=await h.perform(e.artifact.data);g=iA(m),r.value=m.countryCode}n.value=c(g)}}),{countryCode:r,getAlertsTask:f,googleMapSrc:n,truncate:Cs,urlscanLiveshotSrc:i,onDelete:o,onSetError:u,error:l,onDisposeError:d,message:s,onDisposeMessage:a,onSetMessage:p}}}),Rt=e=>(qo("data-v-7f05c3bb"),e=e(),Qo(),e),_E={class:"block"},$E={class:"is-size-2"},SE={class:"is-clearfix"},CE={class:"columns"},AE={key:0,class:"column is-half"},kE={key:0},xE={class:"is-size-4"},EE={class:"has-text-grey"},RE=["src"],TE={key:1},LE=Rt(()=>D("h4",{class:"is-size-4"},"Live screenshot",-1)),ME=Rt(()=>D("p",{class:"help"},"Hover to expand",-1)),OE=["src"],IE={class:"column"},NE=Rt(()=>D("h4",{class:"is-size-4"},"Information",-1)),DE={class:"table is-fullwidth is-completely-borderless"},FE=Rt(()=>D("th",null,"Data",-1)),PE=Rt(()=>D("th",null,"Data type",-1)),BE=Rt(()=>D("th",null,"Source",-1)),WE=Rt(()=>D("th",null,"Query",-1)),HE={key:0},UE=Rt(()=>D("th",null,"Tags",-1)),VE={class:"help"},zE={class:"block"},jE={class:"block"},GE={key:0,class:"block"},KE=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"AS",-1)),YE={key:1,class:"block"},ZE=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),XE={key:2,class:"block"},qE=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),QE={key:3,class:"block"},JE=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),eR={key:4,class:"block"},tR=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),nR={key:5,class:"block"},rR=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"Ports",-1)),iR={key:6,class:"block"},sR=Rt(()=>D("h4",{class:"is-size-4 mb-2"},"Whois record",-1));function oR(e,t,n,r,l,s){var y;const u=re("ErrorMessage"),d=re("Message"),o=re("ActionButtons"),p=re("Tags"),a=re("Links"),i=re("AS"),c=re("ReverseDnsNames"),h=re("DnsRecords"),f=re("CPEs"),g=re("Vulnerabilities"),m=re("Ports"),v=re("WhoisRecord");return Z(),se(Ne,null,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),e.message?(Z(),Se(d,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):me("",!0),D("div",_E,[D("h2",$E,$e(e.artifact.id),1),D("p",SE,[oe(o,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])])]),D("div",CE,[e.googleMapSrc||e.urlscanLiveshotSrc?(Z(),se("div",AE,[e.googleMapSrc?(Z(),se("div",kE,[D("h4",xE,[et(" Geolocation "),D("span",EE,$e(e.countryCode||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),D("iframe",{class:"mb-4",src:e.googleMapSrc,width:"100%",height:"240px"},null,8,RE)])):me("",!0),e.urlscanLiveshotSrc?(Z(),se("div",TE,[LE,ME,D("img",{src:e.urlscanLiveshotSrc,class:"liveshot",alt:"liveshot"},null,8,OE)])):me("",!0)])):me("",!0),D("div",IE,[NE,D("table",DE,[D("tr",null,[FE,D("td",null,$e(e.truncate(e.artifact.data,64)),1)]),D("tr",null,[PE,D("td",null,$e(e.artifact.dataType),1)]),D("tr",null,[BE,D("td",null,$e(e.artifact.source),1)]),D("tr",null,[WE,D("td",null,$e(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Z(),se("tr",HE,[UE,D("td",null,[oe(p,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),et("/td>")])])):me("",!0)]),D("p",VE,"Created at: "+$e(e.artifact.createdAt),1)])]),D("div",zE,[oe(a,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),D("div",jE,[e.artifact.autonomousSystem?(Z(),se("div",GE,[KE,oe(i,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):me("",!0),e.artifact.reverseDnsNames?(Z(),se("div",YE,[ZE,oe(c,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):me("",!0),e.artifact.dnsRecords?(Z(),se("div",XE,[qE,oe(h,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):me("",!0),e.artifact.cpes?(Z(),se("div",QE,[JE,oe(f,{cpes:e.artifact.cpes},null,8,["cpes"])])):me("",!0),e.artifact.vulnerabilities?(Z(),se("div",eR,[tR,oe(g,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):me("",!0),e.artifact.ports?(Z(),se("div",nR,[rR,oe(m,{ports:e.artifact.ports},null,8,["ports"])])):me("",!0),e.artifact.whoisRecord?(Z(),se("div",iR,[sR,oe(v,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):me("",!0)])],64)}const aR=Re(wE,[["render",oR],["__scopeId","data-v-7f05c3bb"]]),lR=Ce({name:"ArtifactDetailWrapper",components:{Artifact:aR,Loading:Rn,ErrorMessage:bt},props:{id:{type:Number,required:!0}},setup(e){const t=lC(),n=pi(),r=async()=>{await t.perform(e.id)},l=async()=>{await r()},s=async()=>{n.push("/")};return lt(async()=>{await r()}),st(e,async()=>{await r()}),{getArtifactTask:t,onRefresh:l,onDelete:s}}});function cR(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Artifact");return Z(),se(Ne,null,[e.getArtifactTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getArtifactTask.isError?(Z(),Se(d,{key:1,error:(p=e.getArtifactTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getArtifactTask.last)!=null&&a.value?(Z(),Se(o,{key:2,artifact:e.getArtifactTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["artifact","onRefresh","onDelete"])):me("",!0)],64)}const uR=Re(lR,[["render",cR]]),hR=Ce({name:"ArtifactView",components:{Artifact:uR},props:{id:{type:String,required:!0}},setup(e){const t=()=>{En(`Artifact:${e.id} - Mihari`)};lt(()=>{t()}),st(()=>e.id,()=>{t()})}});function fR(e,t,n,r,l,s){const u=re("Artifact",!0);return Z(),Se(u,{id:parseInt(e.id)},null,8,["id"])}const dR=Re(hR,[["render",fR]]),pR=Ce({name:"ArtifactsItem",props:{artifact:{type:Object,required:!0}},components:{ErrorMessage:bt,ActionButtons:Ig,Message:$a,Tags:As},emits:["delete"],setup(e,t){const n=ze(),r=ze();return{onSetError:p=>{n.value=p},onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},error:n,truncate:Cs,message:r,onSetMessage:p=>{p.queued&&(r.value=p)},onDisposeMessage:()=>{r.value=void 0}}}}),gR={class:"box"},mR={class:"block"},vR={class:"table is-fullwidth is-completely-borderless"},yR=D("th",null,"Data",-1),bR=D("th",null,"Data Type",-1),wR=D("th",null,"Source",-1),_R=D("th",null,"Query",-1),$R={key:0},SR=D("th",null,"Tags",-1),CR=D("p",{class:"block is-clearfix"},null,-1),AR={class:"help"};function kR(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("Message"),o=re("ActionButtons"),p=re("router-link"),a=re("Tags");return Z(),se("div",gR,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),e.message?(Z(),Se(d,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):me("",!0),D("div",mR,[D("p",null,[oe(o,{artifact:e.artifact,onDelete:e.onDelete,onSetError:e.onSetError,onSetMessage:e.onSetMessage},null,8,["artifact","onDelete","onSetError","onSetMessage"])]),oe(p,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:Je(()=>[et($e(e.artifact.id),1)]),_:1},8,["to"])]),D("table",vR,[D("tr",null,[yR,D("td",null,$e(e.artifact.data),1)]),D("tr",null,[bR,D("td",null,$e(e.artifact.dataType),1)]),D("tr",null,[wR,D("td",null,$e(e.artifact.source),1)]),D("tr",null,[_R,D("td",null,$e(e.truncate(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Z(),se("tr",$R,[SR,D("td",null,[oe(a,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):me("",!0)]),CR,D("p",AR,"Created at: "+$e(e.artifact.createdAt),1)])}const xR=Re(pR,[["render",kR]]),ER=Ce({name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},components:{Artifact:xR,Pagination:jc},emits:["update-page","refresh"],setup(e,t){const n=Le(()=>e.artifacts.results.length>0);return{onUpdatePage:s=>{t.emit("update-page",s)},onDelete:()=>{t.emit("refresh")},hasArtifacts:n}}}),RR={key:0},TR={class:"help"},LR={key:1},MR=D("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1),OR=[MR];function IR(e,t,n,r,l,s){const u=re("Artifact"),d=re("Pagination");return e.hasArtifacts?(Z(),se("div",RR,[(Z(!0),se(Ne,null,Nt(e.artifacts.results,o=>(Z(),Se(u,{artifact:o,key:o.id,onDelete:e.onDelete},null,8,["artifact","onDelete"]))),128)),oe(d,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:e.onUpdatePage},null,8,["total","currentPage","pageSize","onUpdatePage"]),D("p",TR," ("+$e(e.artifacts.total)+" results in total, "+$e(e.artifacts.results.length)+" shown) ",1)])):(Z(),se("div",LR,OR))}const NR=Re(ER,[["render",IR]]),DR=Ce({name:"ArtifactsWrapper",components:{Artifacts:NR,Loading:Rn,ErrorMessage:bt},setup(){const e=ii("page","1"),t=ii("q",""),n=ze(!1),r=zc(),l=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},s=p=>{console.log(p),e.value=p.toString()},u=async()=>{e.value="1",await l()},d=u,o=()=>{n.value=!n.value};return lt(async()=>{await l()}),st(e,async()=>{await l()}),st(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getArtifactsTask:r,page:e,q:t,search:u,showHelp:n,toggleShowHelp:o,onUpdatePage:s,onRefresh:d}}}),FR={class:"block"},PR={class:"field has-addons"},BR={class:"control is-expanded"},WR={class:"control"},HR={class:"icon is-small"},UR=D("span",null,"Search",-1),VR={class:"control"},zR={class:"icon is-small"},jR=D("span",null,"Help",-1),GR={key:0,class:"content mt-3"},KR=sa('

Help

  • Search query supports AND, OR, :, =, !=, <, <=, >, >=, NOT and ().
  • id, data, data_type, source, query, tag, rule.id, rule.title, rule.description, tag,created_at, asn, country_code, dns_record.value, dns_record.resource, reverse_dns_name, cpe, vuln and port.
',2),YR=[KR],ZR={key:0,class:"block"};function XR(e,t,n,r,l,s){var a,i;const u=re("font-awesome-icon"),d=re("Loading"),o=re("ErrorMessage"),p=re("Artifacts");return Z(),se(Ne,null,[D("div",FR,[D("div",PR,[D("p",BR,[Jo(D("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=c=>e.q=c)},null,512),[[_r,e.q]])]),D("p",WR,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...c)=>e.search&&e.search(...c))},[D("span",HR,[oe(u,{icon:"search"})]),UR])]),D("p",VR,[D("a",{class:"button is-info",onClick:t[2]||(t[2]=(...c)=>e.toggleShowHelp&&e.toggleShowHelp(...c))},[D("span",zR,[oe(u,{icon:"question"})]),jR])])]),e.showHelp?(Z(),se("div",GR,YR)):me("",!0)]),e.getArtifactsTask.performCount>0?(Z(),se("div",ZR,[e.getArtifactsTask.isRunning?(Z(),Se(d,{key:0})):me("",!0),e.getArtifactsTask.isError?(Z(),Se(o,{key:1,error:(a=e.getArtifactsTask.last)==null?void 0:a.error},null,8,["error"])):me("",!0),(i=e.getArtifactsTask.last)!=null&&i.value?(Z(),Se(p,{key:2,artifacts:e.getArtifactsTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["artifacts","onUpdatePage","onRefresh"])):me("",!0)])):me("",!0)],64)}const qR=Re(DR,[["render",XR]]),QR=Ce({name:"ArtifactsView",components:{Artifacts:qR},setup(){const e=()=>{En("Artifacts - Mihari")};lt(()=>{e()})}});function JR(e,t,n,r,l,s){const u=re("Artifacts",!0);return Z(),Se(u)}const eT=Re(QR,[["render",JR]]),tT=Ce({name:"ConfigsItem",props:{configs:{type:Object,required:!0}}}),nT={class:"box"},rT={class:"table-container"},iT={class:"table is-fullwidth"},sT=D("thead",null,[D("tr",null,[D("th",null,"Name"),D("th",null,"Type"),D("th",null,"Configured?"),D("th",null,"Items")])],-1),oT={key:0,class:"button is-success is-small ml-1"},aT={class:"icon is-small"},lT=D("span",null,"Yes",-1),cT={key:1,class:"button is-warning is-small ml-1"},uT={class:"icon is-small"},hT=D("span",null,"No",-1),fT={class:"field is-grouped is-grouped-multiline"},dT={class:"tags has-addons"},pT={class:"tag is-dark"};function gT(e,t,n,r,l,s){const u=re("font-awesome-icon");return Z(),se("div",nT,[D("div",rT,[D("table",iT,[sT,D("tbody",null,[(Z(!0),se(Ne,null,Nt(e.configs.results,d=>(Z(),se("tr",{key:d.name},[D("td",null,$e(d.name),1),D("td",null,$e(d.type),1),D("td",null,[d.configured?(Z(),se("button",oT,[D("span",aT,[oe(u,{icon:"check"})]),lT])):(Z(),se("button",cT,[D("span",uT,[oe(u,{icon:"exclamation"})]),hT]))]),D("td",null,[D("div",fT,[(Z(!0),se(Ne,null,Nt(d.items,(o,p)=>(Z(),se("div",{class:"control",key:p},[D("div",dT,[D("span",pT,$e(o.key),1),D("span",{class:ci(["tag",{"is-success":o.value,"is-warning":!o.value}])},$e(o.value||"N/A"),3)])]))),128))])])]))),128))])])])])}const mT=Re(tT,[["render",gT]]),vT=Ce({name:"ConfigsWrapper",components:{Configs:mT,Loading:Rn,ErrorMessage:bt},setup(){const e=uC();return lt(async()=>{await e.perform()}),{getConfigsTask:e}}});function yT(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Configs");return Z(),se(Ne,null,[e.getConfigsTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getConfigsTask.isError?(Z(),Se(d,{key:1,error:(p=e.getConfigsTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getConfigsTask.last)!=null&&a.value?(Z(),Se(o,{key:2,configs:e.getConfigsTask.last.value},null,8,["configs"])):me("",!0)],64)}const bT=Re(vT,[["render",yT]]),wT=Ce({name:"ConfigView",components:{Configs:bT},setup(){En("Configuration - Mihari")}});function _T(e,t,n,r,l,s){const u=re("Configs");return Z(),Se(u)}const $T=Re(wT,[["render",_T]]);var Vg={exports:{}};(function(e,t){(function(){var n="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var l=function(a,i,c){if(typeof a!="string"){l.original?l.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=i),l.modules[a]||(l.payloads[a]=c,l.modules[a]=null)};l.modules={},l.payloads={};var s=function(a,i,c){if(typeof i=="string"){var h=o(a,i);if(h!=null)return c&&c(),h}else if(Object.prototype.toString.call(i)==="[object Array]"){for(var f=[],g=0,m=i.length;go.length)&&(d=o.length),d-=u.length;var p=o.indexOf(u,d);return p!==-1&&p===d}),String.prototype.repeat||s(String.prototype,"repeat",function(u){for(var d="",o=this;u>0;)u&1&&(d+=o),(u>>=1)&&(o+=o);return d}),String.prototype.includes||s(String.prototype,"includes",function(u,d){return this.indexOf(u,d)!=-1}),Object.assign||(Object.assign=function(u){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=Object(u),o=1;o>>0,p=arguments[1],a=p>>0,i=a<0?Math.max(o+a,0):Math.min(a,o),c=arguments[2],h=c===void 0?o:c>>0,f=h<0?Math.max(o+h,0):Math.min(h,o);i0;)o&1&&(p+=d),(o>>=1)&&(d+=d);return p};var s=/^\s\s*/,u=/\s\s*$/;r.stringTrimLeft=function(d){return d.replace(s,"")},r.stringTrimRight=function(d){return d.replace(u,"")},r.copyObject=function(d){var o={};for(var p in d)o[p]=d[p];return o},r.copyArray=function(d){for(var o=[],p=0,a=d.length;p65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,r,l){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var s=typeof navigator=="object"?navigator:{},u=(/mac|win|linux/i.exec(s.platform)||["other"])[0].toLowerCase(),d=s.userAgent||"",o=s.appName||"";r.isWin=u=="win",r.isMac=u=="mac",r.isLinux=u=="linux",r.isIE=o=="Microsoft Internet Explorer"||o.indexOf("MSAppHost")>=0?parseFloat((d.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((d.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=d.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(d.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(d.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(d.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(d.split(" Edge/")[1])||void 0,r.isAIR=d.indexOf("AdobeAIR")>=0,r.isAndroid=d.indexOf("Android")>=0,r.isChromeOS=d.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(d)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,r,l){var s=n("./useragent"),u="http://www.w3.org/1999/xhtml";r.buildDom=function c(h,f,g){if(typeof h=="string"&&h){var m=document.createTextNode(h);return f&&f.appendChild(m),m}if(!Array.isArray(h))return h&&h.appendChild&&f&&f.appendChild(h),h;if(typeof h[0]!="string"||!h[0]){for(var v=[],y=0;y"u")){if(o){if(f)p();else if(f===!1)return o.push([c,h])}if(!d){var g=f;!f||!f.getRootNode?g=document:(g=f.getRootNode(),(!g||g==f)&&(g=document));var m=g.ownerDocument||g;if(h&&r.hasCssString(h,g))return null;h&&(c+=` /*# sourceURL=ace/css/`+h+" */");var v=r.createElement("style");v.appendChild(m.createTextNode(c)),h&&(v.id=h),g==m&&(g=r.getDocumentHead(m)),g.insertBefore(v,g.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(c,h){r.buildDom(["link",{rel:"stylesheet",href:c}],r.getDocumentHead(h))},r.scrollbarWidth=function(c){var h=r.createElement("ace_inner");h.style.width="100%",h.style.minWidth="0px",h.style.height="200px",h.style.display="block";var f=r.createElement("ace_outer"),g=f.style;g.position="absolute",g.left="-10000px",g.overflow="hidden",g.width="200px",g.minWidth="0px",g.height="150px",g.display="block",f.appendChild(h);var m=c&&c.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(f);var v=h.offsetWidth;g.overflow="scroll";var y=h.offsetWidth;return v===y&&(y=f.clientWidth),m.removeChild(f),v-y},r.computedStyle=function(c,h){return window.getComputedStyle(c,"")||{}},r.setStyle=function(c,h,f){c[h]!==f&&(c[h]=f)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=s.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,s.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var i=document.createElement("div");r.HI_DPI&&i.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!s.isEdge&&typeof i.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),i=null}r.HAS_CSS_TRANSFORMS?r.translate=function(c,h,f){c.style.transform="translate("+Math.round(h)+"px, "+Math.round(f)+"px)"}:r.translate=function(c,h,f){c.style.top=Math.round(f)+"px",c.style.left=Math.round(h)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,r,l){/* * 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 s=n("./dom");r.get=function(u,d){var o=new XMLHttpRequest;o.open("GET",u,!0),o.onreadystatechange=function(){o.readyState===4&&d(o.responseText)},o.send(null)},r.loadScript=function(u,d){var o=s.getDocumentHead(),p=document.createElement("script");p.src=u,o.appendChild(p),p.onload=p.onreadystatechange=function(a,i){(i||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,i||d())}},r.qualifyURL=function(u){var d=document.createElement("a");return d.href=u,d.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,r,l){r.inherits=function(s,u){s.super_=u,s.prototype=Object.create(u.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(s,u){for(var d in u)s[d]=u[d];return s},r.implement=function(s,u){r.mixin(s,u)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,r,l){var s={},u=function(){this.propagationStopped=!0},d=function(){this.defaultPrevented=!0};s._emit=s._dispatchEvent=function(o,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[o]||[],i=this._defaultHandlers[o];if(!(!a.length&&!i)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=o),p.stopPropagation||(p.stopPropagation=u),p.preventDefault||(p.preventDefault=d),a=a.slice();for(var c=0;c1&&(v=g[g.length-2]);var k=p[f+"Path"];return k==null?k=p.basePath:m=="/"&&(f=m=""),k&&k.slice(-1)!="/"&&(k+="/"),k+f+m+v+this.get("suffix")},r.setModuleUrl=function(h,f){return p.$moduleUrls[h]=f};var a=function(h,f){if(h==="ace/theme/textmate"||h==="./theme/textmate")return f(null,n("./theme/textmate"));if(i)return i(h,f);console.error("loader is not configured")},i;r.setLoader=function(h){i=h},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(h,f){var g;if(Array.isArray(h))var m=h[0],v=h[1];else if(typeof h=="string")var v=h;var y=function(k){if(k&&!r.$loading[v])return f&&f(k);if(r.$loading[v]||(r.$loading[v]=[]),r.$loading[v].push(f),!(r.$loading[v].length>1)){var C=function(){a(v,function(S,b){b&&(r.$loaded[v]=b),r._emit("load.module",{name:v,module:b});var E=r.$loading[v];r.$loading[v]=null,E.forEach(function(L){L&&L(b)})})};if(!r.get("packaged"))return C();u.loadScript(r.moduleUrl(v,m),C),c()}};if(r.dynamicModules[v])r.dynamicModules[v]().then(function(k){k.default?y(k.default):y(k)});else{try{g=this.$require(v)}catch{}y(g||r.$loaded[v])}},r.$require=function(h){if(typeof l.require=="function"){var f="require";return l[f](h)}},r.setModuleLoader=function(h,f){r.dynamicModules[h]=f};var c=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$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"),c=function(){})};r.version="1.32.7"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,r,l){n("./lib/fixoldbrowsers");var s=n("./config");s.setLoader(function(p,a){n([p],function(i){a(null,i)})});var u=function(){return this||typeof window<"u"&&window}();l.exports=function(p){s.init=d,s.$require=n,p.require=n},d(!0);function d(p){if(!(!u||!u.document)){s.set("packaged",p||n.packaged||l.packaged||u.define&&(void 0).packaged);var a={},i="",c=document.currentScript||document._currentScript,h=c&&c.ownerDocument||document;c&&c.src&&(i=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var f=h.getElementsByTagName("script"),g=0;g ["+this.end.row+"/"+this.end.column+"]"},u.prototype.contains=function(d,o){return this.compare(d,o)==0},u.prototype.compareRange=function(d){var o,p=d.end,a=d.start;return o=this.compare(p.row,p.column),o==1?(o=this.compare(a.row,a.column),o==1?2:o==0?1:0):o==-1?-2:(o=this.compare(a.row,a.column),o==-1?-1:o==1?42:0)},u.prototype.comparePoint=function(d){return this.compare(d.row,d.column)},u.prototype.containsRange=function(d){return this.comparePoint(d.start)==0&&this.comparePoint(d.end)==0},u.prototype.intersects=function(d){var o=this.compareRange(d);return o==-1||o==0||o==1},u.prototype.isEnd=function(d,o){return this.end.row==d&&this.end.column==o},u.prototype.isStart=function(d,o){return this.start.row==d&&this.start.column==o},u.prototype.setStart=function(d,o){typeof d=="object"?(this.start.column=d.column,this.start.row=d.row):(this.start.row=d,this.start.column=o)},u.prototype.setEnd=function(d,o){typeof d=="object"?(this.end.column=d.column,this.end.row=d.row):(this.end.row=d,this.end.column=o)},u.prototype.inside=function(d,o){return this.compare(d,o)==0?!(this.isEnd(d,o)||this.isStart(d,o)):!1},u.prototype.insideStart=function(d,o){return this.compare(d,o)==0?!this.isEnd(d,o):!1},u.prototype.insideEnd=function(d,o){return this.compare(d,o)==0?!this.isStart(d,o):!1},u.prototype.compare=function(d,o){return!this.isMultiLine()&&d===this.start.row?othis.end.column?1:0:dthis.end.row?1:this.start.row===d?o>=this.start.column?0:-1:this.end.row===d?o<=this.end.column?0:1:0},u.prototype.compareStart=function(d,o){return this.start.row==d&&this.start.column==o?-1:this.compare(d,o)},u.prototype.compareEnd=function(d,o){return this.end.row==d&&this.end.column==o?1:this.compare(d,o)},u.prototype.compareInside=function(d,o){return this.end.row==d&&this.end.column==o?1:this.start.row==d&&this.start.column==o?-1:this.compare(d,o)},u.prototype.clipRows=function(d,o){if(this.end.row>o)var p={row:o+1,column:0};else if(this.end.rowo)var a={row:o+1,column:0};else if(this.start.row1?(L++,L>4&&(L=1)):L=1,u.isIE){var R=Math.abs(w.clientX-x)>5||Math.abs(w.clientY-M)>5;(!_||R)&&(L=1),_&&clearTimeout(_),_=setTimeout(function(){_=null},C[L-1]||600),L==1&&(x=w.clientX,M=w.clientY)}if(w._clicks=L,S[b]("mousedown",w),L>4)L=0;else if(L>1)return S[b](A[L],w)}Array.isArray(k)||(k=[k]),k.forEach(function(w){h(w,"mousedown",$,E)})};function g(k){return 0|(k.ctrlKey?1:0)|(k.altKey?2:0)|(k.shiftKey?4:0)|(k.metaKey?8:0)}r.getModifierString=function(k){return s.KEY_MODS[g(k)]};function m(k,C,S){var b=g(C);if(!u.isMac&&d){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&(b|=8),d.altGr)if((3&b)!=3)d.altGr=0;else return;if(S===18||S===17){var E=C.location;if(S===17&&E===1)d[S]==1&&(o=C.timeStamp);else if(S===18&&b===3&&E===2){var L=C.timeStamp-o;L<50&&(d.altGr=!0)}}}if(S in s.MODIFIER_KEYS&&(S=-1),!(!b&&S===13&&C.location===3&&(k(C,b,-S),C.defaultPrevented))){if(u.isChromeOS&&b&8){if(k(C,b,S),C.defaultPrevented)return;b&=-9}return!b&&!(S in s.FUNCTION_KEYS)&&!(S in s.PRINTABLE_KEYS)?!1:k(C,b,S)}}r.addCommandKeyListener=function(k,C,S){var b=null;h(k,"keydown",function(E){d[E.keyCode]=(d[E.keyCode]||0)+1;var L=m(C,E,E.keyCode);return b=E.defaultPrevented,L},S),h(k,"keypress",function(E){b&&(E.ctrlKey||E.altKey||E.shiftKey||E.metaKey)&&(r.stopEvent(E),b=null)},S),h(k,"keyup",function(E){d[E.keyCode]=null},S),d||(v(),h(window,"focus",v))};function v(){d=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!u.isOldIE){var y=1;r.nextTick=function(k,C){C=C||window;var S="zero-timeout-message-"+y++,b=function(E){E.data==S&&(r.stopPropagation(E),f(C,"message",b),k())};h(C,"message",b),C.postMessage(S,"*")}}r.$idleBlocked=!1,r.onIdle=function(k,C){return setTimeout(function S(){r.$idleBlocked?setTimeout(S,100):k()},C)},r.$idleBlockId=null,r.blockIdle=function(k){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},k||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(k){setTimeout(k,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,r,l){var s;l.exports={lineMode:!1,pasteCancelled:function(){return s&&s>Date.now()-50?!0:s=!1},cancel:function(){s=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,r,l){var s=n("../lib/event"),u=n("../config").nls,d=n("../lib/useragent"),o=n("../lib/dom"),p=n("../lib/lang"),a=n("../clipboard"),i=d.isChrome<18,c=d.isIE,h=d.isChrome>63,f=400,g=n("../lib/keys"),m=g.KEY_MODS,v=d.isIOS,y=v?/\s/:/\n/,k=d.isMobile,C;C=function(S,b){var E=o.createElement("textarea");E.className="ace_text-input",E.setAttribute("wrap","off"),E.setAttribute("autocorrect","off"),E.setAttribute("autocapitalize","off"),E.setAttribute("spellcheck","false"),E.style.opacity="0",S.insertBefore(E,S.firstChild);var L=!1,x=!1,M=!1,_=!1,A="";k||(E.style.fontSize="1px");var $=!1,w=!1,R="",T=0,O=0,I=0,N=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,W=0;try{var j=document.activeElement===E}catch{}this.setNumberOfExtraLines=function(q){if(N=Number.MAX_SAFE_INTEGER,P=Number.MIN_SAFE_INTEGER,q<0){W=0;return}W=q},this.setAriaOptions=function(q){if(q.activeDescendant?(E.setAttribute("aria-haspopup","true"),E.setAttribute("aria-autocomplete",q.inline?"both":"list"),E.setAttribute("aria-activedescendant",q.activeDescendant)):(E.setAttribute("aria-haspopup","false"),E.setAttribute("aria-autocomplete","both"),E.removeAttribute("aria-activedescendant")),q.role&&E.setAttribute("role",q.role),q.setLabel&&(E.setAttribute("aria-roledescription",u("editor")),b.session)){var le=b.session.selection.cursor.row;E.setAttribute("aria-label",u("Cursor at row $0",[le+1]))}},this.setAriaOptions({role:"textbox"}),s.addListener(E,"blur",function(q){w||(b.onBlur(q),j=!1)},b),s.addListener(E,"focus",function(q){if(!w){if(j=!0,d.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(q),d.isEdge?setTimeout(H):H()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),A||h||this.$focusScroll=="browser")return E.focus({preventScroll:!0});var q=E.style.top;E.style.position="fixed",E.style.top="0px";try{var le=E.getBoundingClientRect().top!=0}catch{return}var ge=[];if(le)for(var ke=E.parentElement;ke&&ke.nodeType==1;)ge.push(ke),ke.setAttribute("ace_nocontext","true"),!ke.parentElement&&ke.getRootNode?ke=ke.getRootNode().host:ke=ke.parentElement;E.focus({preventScroll:!0}),le&&ge.forEach(function(Oe){Oe.removeAttribute("ace_nocontext")}),setTimeout(function(){E.style.position="",E.style.top=="0px"&&(E.style.top=q)},0)},this.blur=function(){E.blur()},this.isFocused=function(){return j},b.on("beforeEndOperation",function(){var q=b.curOp,le=q&&q.command&&q.command.name;if(le!="insertstring"){var ge=le&&(q.docChanged||q.selectionChanged);M&&ge&&(R=E.value="",ce()),H()}});var V=function(q,le){for(var ge=le,ke=1;ke<=q-N&&ke<2*W+1;ke++)ge+=b.session.getLine(q-ke).length+1;return ge},H=v?function(q){if(!(!j||L&&!q||_)){q||(q="");var le=` ab`+q+`cde fg `;le!=E.value&&(E.value=R=le);var ge=4,ke=4+(q.length||(b.selection.isEmpty()?0:1));(T!=ge||O!=ke)&&E.setSelectionRange(ge,ke),T=ge,O=ke}}:function(){if(!(M||_)&&!(!j&&!X)){M=!0;var q=0,le=0,ge="";if(b.session){var ke=b.selection,Oe=ke.getRange(),He=ke.cursor.row;He===P+1?(N=P+1,P=N+2*W):He===N-1?(P=N-1,N=P-2*W):(HeP+1)&&(N=He>W?He-W:0,P=He>W?He+W:2*W);for(var Qe=[],nt=N;nt<=P;nt++)Qe.push(b.session.getLine(nt));if(ge=Qe.join(` `),q=V(Oe.start.row,Oe.start.column),le=V(Oe.end.row,Oe.end.column),Oe.start.rowP){var je=b.session.getLine(P+1);le=Oe.end.row>P+1?je.length:Oe.end.column,le+=ge.length+1,ge=ge+` `+je}else k&&He>0&&(ge=` `+ge,le+=1,q+=1);ge.length>f&&(q=R.length&&q.value===R&&R&&q.selectionEnd!==O},Q=function(q){M||(L?L=!1:G(E)?(b.selectAll(),H()):k&&E.selectionStart!=T&&H())},U=null;this.setInputHandler=function(q){U=q},this.getInputHandler=function(){return U};var X=!1,Y=function(q,le){if(X&&(X=!1),x)return H(),q&&b.onPaste(q),x=!1,"";for(var ge=E.selectionStart,ke=E.selectionEnd,Oe=T,He=R.length-O,Qe=q,nt=q.length-ge,Ke=q.length-ke,je=0;Oe>0&&R[je]==q[je];)je++,Oe--;for(Qe=Qe.slice(je),je=1;He>0&&R.length-je>T-1&&R[R.length-je]==q[q.length-je];)je++,He--;nt-=je-1,Ke-=je-1;var Xe=Qe.length-je+1;if(Xe<0&&(Oe=-Xe,Xe=0),Qe=Qe.slice(0,Xe),!le&&!Qe&&!nt&&!Oe&&!He&&!Ke)return"";_=!0;var wt=!1;return d.isAndroid&&Qe==". "&&(Qe=" ",wt=!0),Qe&&!Oe&&!He&&!nt&&!Ke||$?b.onTextInput(Qe):b.onTextInput(Qe,{extendLeft:Oe,extendRight:He,restoreStart:nt,restoreEnd:Ke}),_=!1,R=q,T=ge,O=ke,I=Ke,wt?` `:Qe},z=function(q){if(M)return te();if(q&&q.inputType){if(q.inputType=="historyUndo")return b.execCommand("undo");if(q.inputType=="historyRedo")return b.execCommand("redo")}var le=E.value,ge=Y(le,!0);(le.length>f+100||y.test(ge)||k&&T<1&&T==O)&&H()},ee=function(q,le,ge){var ke=q.clipboardData||window.clipboardData;if(!(!ke||i)){var Oe=c||ge?"Text":"text/plain";try{return le?ke.setData(Oe,le)!==!1:ke.getData(Oe)}catch(He){if(!ge)return ee(He,le,!0)}}},he=function(q,le){var ge=b.getCopyText();if(!ge)return s.preventDefault(q);ee(q,ge)?(v&&(H(ge),L=ge,setTimeout(function(){L=!1},10)),le?b.onCut():b.onCopy(),s.preventDefault(q)):(L=!0,E.value=ge,E.select(),setTimeout(function(){L=!1,H(),le?b.onCut():b.onCopy()}))},F=function(q){he(q,!0)},B=function(q){he(q,!1)},K=function(q){var le=ee(q);a.pasteCancelled()||(typeof le=="string"?(le&&b.onPaste(le,q),d.isIE&&setTimeout(H),s.preventDefault(q)):(E.value="",x=!0))};s.addCommandKeyListener(E,function(q,le,ge){if(!M)return b.onCommandKey(q,le,ge)},b),s.addListener(E,"select",Q,b),s.addListener(E,"input",z,b),s.addListener(E,"cut",F,b),s.addListener(E,"copy",B,b),s.addListener(E,"paste",K,b),(!("oncut"in E)||!("oncopy"in E)||!("onpaste"in E))&&s.addListener(S,"keydown",function(q){if(!(d.isMac&&!q.metaKey||!q.ctrlKey))switch(q.keyCode){case 67:B(q);break;case 86:K(q);break;case 88:F(q);break}},b);var J=function(q){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!$)){q.data&&(M.useTextareaForIME=!1),setTimeout(te,0),b._signal("compositionStart"),b.on("mousedown",pe);var le=b.getSelectionRange();le.end.row=le.start.row,le.end.column=le.start.column,M.markerRange=le,M.selectionStart=T,b.onCompositionStart(M),M.useTextareaForIME?(R=E.value="",T=0,O=0):(E.msGetInputContext&&(M.context=E.msGetInputContext()),E.getInputContext&&(M.context=E.getInputContext()))}},te=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if($)return pe();if(M.useTextareaForIME)b.onCompositionUpdate(E.value);else{var q=E.value;Y(q),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)}}},ce=function(q){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",pe),q&&z())};function pe(){w=!0,E.blur(),E.focus(),w=!1}var ue=p.delayedCall(te,50).schedule.bind(null,null);function fe(q){q.keyCode==27&&E.value.lengthO&&R[Ke]==` `?je=g.end:ntO&&R.slice(0,Ke).split(` `).length>2?je=g.down:Ke>O&&R[Ke-1]==" "?(je=g.right,Xe=m.option):(Ke>O||Ke==O&&O!=T&&nt==Ke)&&(je=g.right),nt!==Ke&&(Xe|=m.shift),je){var wt=le.onCommandKey({},Xe,je);if(!wt&&le.commands){je=g.keyCodeToString(je);var vi=le.commands.findKeyCommand(Xe,je);vi&&le.execCommand(vi)}T=nt,O=Ke,H("")}}};document.addEventListener("selectionchange",He),le.on("destroy",function(){document.removeEventListener("selectionchange",He)})}this.destroy=function(){E.parentElement&&E.parentElement.removeChild(E)}},r.TextInput=C,r.$setUserAgentForTests=function(S,b){k=S,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,r,l){var s=n("../lib/useragent"),u=0,d=550,o=function(){function i(c){c.$clickSelection=null;var h=c.editor;h.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),h.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),h.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),h.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),h.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var f=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];f.forEach(function(g){c[g]=this[g]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return i.prototype.onMouseDown=function(c){var h=c.inSelection(),f=c.getDocumentPosition();this.mousedownEvent=c;var g=this.editor,m=c.getButton();if(m!==0){var v=g.getSelectionRange(),y=v.isEmpty();(y||m==1)&&g.selection.moveToPosition(f),m==2&&(g.textInput.onContextMenu(c.domEvent),s.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),h&&!g.isFocused()&&(g.focus(),this.$focusTimeout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(f,c.domEvent._clicks>1),c.preventDefault()},i.prototype.startSelect=function(c,h){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var f=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?f.selection.selectToPosition(c):h||f.selection.moveToPosition(c),h||this.select(),f.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var c,h=this.editor,f=h.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var g=this.$clickSelection.comparePoint(f);if(g==-1)c=this.$clickSelection.end;else if(g==1)c=this.$clickSelection.start;else{var m=a(this.$clickSelection,f);f=m.cursor,c=m.anchor}h.selection.setSelectionAnchor(c.row,c.column)}h.selection.selectToPosition(f),h.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(c){var h,f=this.editor,g=f.renderer.screenToTextCoordinates(this.x,this.y),m=f.selection[c](g.row,g.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)h=this.$clickSelection.end,(m.end.row!=g.row||m.end.column!=g.column)&&(g=m.start);else if(y==1&&v>=0)h=this.$clickSelection.start,(m.start.row!=g.row||m.start.column!=g.column)&&(g=m.end);else if(v==-1&&y==1)g=m.end,h=m.start;else{var k=a(this.$clickSelection,g);g=k.cursor,h=k.anchor}f.selection.setSelectionAnchor(h.row,h.column)}f.selection.selectToPosition(g),f.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},i.prototype.focusWait=function(){var c=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),h=Date.now();(c>u||h-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(c){var h=c.getDocumentPosition(),f=this.editor,g=f.session,m=g.getBracketRange(h);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=f.selection.getWordRange(h.row,h.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},i.prototype.onTripleClick=function(c){var h=c.getDocumentPosition(),f=this.editor;this.setState("selectByLines");var g=f.getSelectionRange();g.isMultiLine()&&g.contains(h.row,h.column)?(this.$clickSelection=f.selection.getLineRange(g.start.row),this.$clickSelection.end=f.selection.getLineRange(g.end.row).end):this.$clickSelection=f.selection.getLineRange(h.row),this.select()},i.prototype.onQuadClick=function(c){var h=this.editor;h.selectAll(),this.$clickSelection=h.getSelectionRange(),this.setState("selectAll")},i.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var h=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var f=this.$lastScroll,g=c.domEvent.timeStamp,m=g-f.t,v=m?c.wheelX/m:f.vx,y=m?c.wheelY/m:f.vy;m=1&&h.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(C=!0),k<=1&&h.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(C=!0),C)f.allowed=g;else if(g-f.allowedd.clientHeight;o||u.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,r,l){var s=this&&this.__extends||function(){var g=function(m,v){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,k){y.__proto__=k}||function(y,k){for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&(y[C]=k[C])},g(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");g(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),u=this&&this.__values||function(g){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&g[m],y=0;if(v)return v.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&y>=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/dom");n("./lib/event");var o=n("./range").Range,p=n("./lib/scroll").preventParentScroll,a="ace_tooltip",i=function(){function g(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return g.prototype.$init=function(){return this.$element=d.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},g.prototype.getElement=function(){return this.$element||this.$init()},g.prototype.setText=function(m){this.getElement().textContent=m},g.prototype.setHtml=function(m){this.getElement().innerHTML=m},g.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},g.prototype.setClassName=function(m){d.addCssClass(this.getElement(),m)},g.prototype.setTheme=function(m){this.$element.className=a+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},g.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},g.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},g.prototype.getHeight=function(){return this.getElement().offsetHeight},g.prototype.getWidth=function(){return this.getElement().offsetWidth},g.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},g}(),c=function(){function g(){this.popups=[]}return g.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},g.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},g.prototype.updatePopups=function(){var m,v,y,k;this.popups.sort(function(A,$){return $.priority-A.priority});var C=[];try{for(var S=u(this.popups),b=S.next();!b.done;b=S.next()){var E=b.value,L=!0;try{for(var x=(y=void 0,u(C)),M=x.next();!M.done;M=x.next()){var _=M.value;if(this.doPopupsOverlap(_,E)){L=!1;break}}}catch(A){y={error:A}}finally{try{M&&!M.done&&(k=x.return)&&k.call(x)}finally{if(y)throw y.error}}L?C.push(E):E.hide()}}catch(A){m={error:A}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}},g.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),k=v.getElement().getBoundingClientRect();return y.leftk.left&&y.topk.top},g}(),h=new c;r.popupManager=h,r.Tooltip=i;var f=function(g){s(m,g);function m(v){v===void 0&&(v=document.body);var y=g.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var k=y.getElement();return k.style.whiteSpace="pre-wrap",k.style.pointerEvents="auto",k.addEventListener("mouseout",y.onMouseOut),k.tabIndex=-1,k.addEventListener("blur",(function(){k.contains(document.activeElement)||this.hide()}).bind(y)),k.addEventListener("wheel",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var k=y.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||k||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||k||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,k=v.getDocumentPosition(),C=y.session.getLine(k.row);if(k.column==C.length){var S=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition(k.row,k.column);if(b.column!=S.column||b.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,k,C){var S=10;if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(h.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=o.fromPoints(y.start,y.end);var E=b.textToScreenCoordinates(y.start.row,y.start.column),L=b.scroller.getBoundingClientRect();E.pageX=h.length&&(h=void 0),{value:h&&h[m++],done:!h}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("../lib/dom"),o=n("../lib/event"),p=n("../tooltip").Tooltip,a=n("../config").nls;function i(h){var f=h.editor,g=f.renderer.$gutterLayer,m=new c(f);h.editor.setDefaultHandler("guttermousedown",function(b){if(!(!f.isFocused()||b.getButton()!=0)){var E=g.getRegion(b);if(E!="foldWidgets"){var L=b.getDocumentPosition().row,x=f.session.selection;if(b.getShiftKey())x.selectTo(L,0);else{if(b.domEvent.detail==2)return f.selectAll(),b.preventDefault();h.$clickSelection=f.selection.getLineRange(L)}return h.setState("selectByLines"),h.captureMouse(b),b.preventDefault()}}});var v,y;function k(){var b=y.getDocumentPosition().row,E=f.session.getLength();if(b==E){var L=f.renderer.pixelToScreenCoordinates(0,y.y).row,x=y.$pos;if(L>f.session.documentToScreenRow(x.row,x.column))return C()}if(m.showTooltip(b),!!m.isOpen)if(f.on("mousewheel",C),h.$tooltipFollowsMouse)S(y);else{var M=y.getGutterRow(),_=g.$lines.get(M);if(_){var A=_.element.querySelector(".ace_gutter_annotation"),$=A.getBoundingClientRect(),w=m.getElement().style;w.left=$.right+"px",w.top=$.bottom+"px"}else S(y)}}function C(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),f.off("mousewheel",C))}function S(b){m.setPosition(b.x,b.y)}h.editor.setDefaultHandler("guttermousemove",function(b){var E=b.domEvent.target||b.domEvent.srcElement;if(d.hasCssClass(E,"ace_fold-widget"))return C();m.isOpen&&h.$tooltipFollowsMouse&&S(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!h.isMousePressed?k():C()},50))}),o.addListener(f.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,C()},50))},f),f.on("changeSession",C),f.on("input",C)}r.GutterHandler=i;var c=function(h){s(f,h);function f(g){var m=h.call(this,g.container)||this;return m.editor=g,m}return f.prototype.setPosition=function(g,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,k=this.getWidth(),C=this.getHeight();g+=15,m+=15,g+k>v&&(g-=g+k-v),m+C>y&&(m-=20+C),p.prototype.setPosition.call(this,g,m)},Object.defineProperty(f,"annotationLabels",{get:function(){return{error:{singular:a("error"),plural:a("errors")},warning:{singular:a("warning"),plural:a("warnings")},info:{singular:a("information message"),plural:a("information messages")}}},enumerable:!1,configurable:!0}),f.prototype.showTooltip=function(g){var m=this.editor.renderer.$gutterLayer,v=m.$annotations[g],y;v?y={text:Array.from(v.text),type:Array.from(v.type)}:y={text:[],type:[]};var k=m.session.getFoldLine(g);if(k&&m.$showFoldedAnnotations){for(var C={error:[],warning:[],info:[]},S,b=g+1;b<=k.end.row;b++)if(m.$annotations[b])for(var E=0;E ").concat(y.text[b]);M[y.type[b].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)},f.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},f.annotationsToSummaryString=function(g){var m,v,y=[],k=["error","warning","info"];try{for(var C=u(k),S=C.next();!S.done;S=C.next()){var b=S.value;if(g[b].length){var E=g[b].length===1?f.annotationLabels[b].singular:f.annotationLabels[b].plural;y.push("".concat(g[b].length," ").concat(E))}}}catch(L){m={error:L}}finally{try{S&&!S.done&&(v=C.return)&&v.call(C)}finally{if(m)throw m.error}}return y.join(", ")},f}(p);r.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,r,l){var s=n("../lib/event"),u=n("../lib/useragent"),d=function(){function o(p,a){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=a,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return o.prototype.stopPropagation=function(){s.stopPropagation(this.domEvent),this.propagationStopped=!0},o.prototype.preventDefault=function(){s.preventDefault(this.domEvent),this.defaultPrevented=!0},o.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},o.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},o.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(p,0),i=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-i},o.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,a=p.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var i=this.getDocumentPosition();this.$inSelection=a.contains(i.row,i.column)}return this.$inSelection},o.prototype.getButton=function(){return s.getButton(this.domEvent)},o.prototype.getShiftKey=function(){return this.domEvent.shiftKey},o.prototype.getAccelKey=function(){return u.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},o}();r.MouseEvent=d}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,r,l){var s=n("../lib/dom"),u=n("../lib/event"),d=n("../lib/useragent"),o=200,p=200,a=5;function i(h){var f=h.editor,g=s.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(V){h[V]=this[V]},this),f.on("mousedown",this.onMouseDown.bind(h));var v=f.container,y,k,C,S,b,E,L=0,x,M,_,A,$;this.onDragStart=function(V){if(this.cancelDrag||!v.draggable){var H=this;return setTimeout(function(){H.startSelect(),H.captureMouse(V)},0),V.preventDefault()}b=f.getSelectionRange();var G=V.dataTransfer;G.effectAllowed=f.getReadOnly()?"copy":"copyMove",f.container.appendChild(g),G.setDragImage&&G.setDragImage(g,0,0),setTimeout(function(){f.container.removeChild(g)}),G.clearData(),G.setData("Text",f.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(V){if(v.draggable=!1,M=!1,this.setState(null),!f.getReadOnly()){var H=V.dataTransfer.dropEffect;!x&&H=="move"&&f.session.remove(f.getSelectionRange()),f.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(V){if(!(f.getReadOnly()||!W(V.dataTransfer)))return k=V.clientX,C=V.clientY,y||O(),L++,V.dataTransfer.dropEffect=x=j(V),u.preventDefault(V)},this.onDragOver=function(V){if(!(f.getReadOnly()||!W(V.dataTransfer)))return k=V.clientX,C=V.clientY,y||(O(),L++),N!==null&&(N=null),V.dataTransfer.dropEffect=x=j(V),u.preventDefault(V)},this.onDragLeave=function(V){if(L--,L<=0&&y)return I(),x=null,u.preventDefault(V)},this.onDrop=function(V){if(E){var H=V.dataTransfer;if(M)switch(x){case"move":b.contains(E.row,E.column)?b={start:E,end:E}:b=f.moveText(b,E);break;case"copy":b=f.moveText(b,E,!0);break}else{var G=H.getData("Text");b={start:E,end:f.session.insert(E,G)},f.focus(),x=null}return I(),u.preventDefault(V)}},u.addListener(v,"dragstart",this.onDragStart.bind(h),f),u.addListener(v,"dragend",this.onDragEnd.bind(h),f),u.addListener(v,"dragenter",this.onDragEnter.bind(h),f),u.addListener(v,"dragover",this.onDragOver.bind(h),f),u.addListener(v,"dragleave",this.onDragLeave.bind(h),f),u.addListener(v,"drop",this.onDrop.bind(h),f);function w(V,H){var G=Date.now(),Q=!H||V.row!=H.row,U=!H||V.column!=H.column;if(!A||Q||U)f.moveCursorToPosition(V),A=G,$={x:k,y:C};else{var X=c($.x,$.y,k,C);X>a?A=null:G-A>=p&&(f.renderer.scrollCursorIntoView(),A=null)}}function R(V,H){var G=Date.now(),Q=f.renderer.layerConfig.lineHeight,U=f.renderer.layerConfig.characterWidth,X=f.renderer.scroller.getBoundingClientRect(),Y={x:{left:k-X.left,right:X.right-k},y:{top:C-X.top,bottom:X.bottom-C}},z=Math.min(Y.x.left,Y.x.right),ee=Math.min(Y.y.top,Y.y.bottom),he={row:V.row,column:V.column};z/U<=2&&(he.column+=Y.x.left=o&&f.renderer.scrollCursorIntoView(he):_=G:_=null}function T(){var V=E;E=f.renderer.screenToTextCoordinates(k,C),w(E,V),R(E,V)}function O(){b=f.selection.toOrientedRange(),y=f.session.addMarker(b,"ace_selection",f.getSelectionStyle()),f.clearSelection(),f.isFocused()&&f.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),T(),S=setInterval(T,20),L=0,u.addListener(document,"mousemove",P)}function I(){clearInterval(S),f.session.removeMarker(y),y=null,f.selection.fromOrientedRange(b),f.isFocused()&&!M&&f.$resetCursorStyle(),b=null,E=null,L=0,_=null,A=null,u.removeListener(document,"mousemove",P)}var N=null;function P(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function W(V){var H=V.types;return!H||Array.prototype.some.call(H,function(G){return G=="text/plain"||G=="Text"})}function j(V){var H=["copy","copymove","all","uninitialized"],G=["move","copymove","linkmove","all","uninitialized"],Q=d.isMac?V.altKey:V.ctrlKey,U="uninitialized";try{U=V.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return Q&&H.indexOf(U)>=0?X="copy":G.indexOf(U)>=0?X="move":H.indexOf(U)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var h=Date.now()-this.mousedownEvent.time;h>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var h=this.editor.container;h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(h){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var h=this.editor,f=h.container;f.draggable=!0,h.renderer.$cursorLayer.setBlinking(!1),h.setStyle("ace_dragging");var g=d.isWin?"default":"move";h.renderer.setCursorStyle(g),this.setState("dragReady")},this.onMouseDrag=function(h){var f=this.editor.container;if(d.isIE&&this.state=="dragReady"){var g=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>3&&f.dragDrop()}if(this.state==="dragWait"){var g=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);g>0&&(f.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(h){if(this.$dragEnabled){this.mousedownEvent=h;var f=this.editor,g=h.inSelection(),m=h.getButton(),v=h.domEvent.detail||1;if(v===1&&m===0&&g){if(h.editor.inMultiSelectMode&&(h.getAccelKey()||h.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=h.domEvent.target||h.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),f.getDragDelay()){if(d.isWebKit){this.cancelDrag=!0;var k=f.container;k.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(h,this.onMouseDrag.bind(this)),h.defaultPrevented=!0}}}}).call(i.prototype);function c(h,f,g,m){return Math.sqrt(Math.pow(g-h,2)+Math.pow(m-f,2))}r.DragdropHandler=i}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,r,l){var s=n("./mouse_event").MouseEvent,u=n("../lib/event"),d=n("../lib/dom");r.addTouchListeners=function(o,p){var a="scroll",i,c,h,f,g,m,v=0,y,k=0,C=0,S=0,b,E;function L(){var w=window.navigator&&window.navigator.clipboard,R=!1,T=function(){var I=p.getCopyText(),N=p.session.getUndoManager().hasUndo();E.replaceChild(d.buildDom(R?["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"],N&&["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"]),E.firstChild)},O=function(I){var N=I.target.getAttribute("action");if(N=="more"||!R)return R=!R,T();N=="paste"?w.readText().then(function(P){p.execCommand(N,P)}):N&&((N=="cut"||N=="copy")&&(w?w.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(N)),E.firstChild.style.display="none",R=!1,N!="openCommandPalette"&&p.focus()};E=d.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(I){a="menu",I.stopPropagation(),I.preventDefault(),p.textInput.focus()},ontouchend:function(I){I.stopPropagation(),I.preventDefault(),O(I)},onclick:O},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function x(){E||L();var w=p.selection.cursor,R=p.renderer.textToScreenCoordinates(w.row,w.column),T=p.renderer.textToScreenCoordinates(0,0).pageX,O=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();E.style.top=R.pageY-I.top-3+"px",R.pageX-I.left=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);w&&!w.isEmpty()?p.selection.setRange(w):p.selection.selectWord(),a="wait"}u.addListener(o,"contextmenu",function(w){if(b){var R=p.textInput.getElement();R.focus()}},p),u.addListener(o,"touchstart",function(w){var R=w.touches;if(g||R.length>1){clearTimeout(g),g=null,h=-1,a="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var T=p.renderer.layerConfig.lineHeight,O=p.renderer.layerConfig.lineHeight,I=w.timeStamp;f=I;var N=R[0],P=N.clientX,W=N.clientY;Math.abs(i-P)+Math.abs(c-W)>T&&(h=-1),i=w.clientX=P,c=w.clientY=W,C=S=0;var j=new s(w,p);if(y=j.getDocumentPosition(),I-h<500&&R.length==1&&!v)k++,w.preventDefault(),w.button=0,A();else{k=0;var V=p.selection.cursor,H=p.selection.isEmpty()?V:p.selection.anchor,G=p.renderer.$cursorLayer.getPixelPosition(V,!0),Q=p.renderer.$cursorLayer.getPixelPosition(H,!0),U=p.renderer.scroller.getBoundingClientRect(),X=p.renderer.layerConfig.offset,Y=p.renderer.scrollLeft,z=function(F,B){return F=F/O,B=B/T-.75,F*F+B*B};if(w.clientXhe?"cursor":"anchor"),he<3.5?a="anchor":ee<3.5?a="cursor":a="scroll",g=setTimeout(_,450)}h=I},p),u.addListener(o,"touchend",function(w){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),a=="zoom"?(a="",v=0):g?(p.selection.moveToPosition(y),v=0,x()):a=="scroll"?($(),M()):x(),clearTimeout(g),g=null},p),u.addListener(o,"touchmove",function(w){g&&(clearTimeout(g),g=null);var R=w.touches;if(!(R.length>1||a=="zoom")){var T=R[0],O=i-T.clientX,I=c-T.clientY;if(a=="wait")if(O*O+I*I>4)a="cursor";else return w.preventDefault();i=T.clientX,c=T.clientY,w.clientX=T.clientX,w.clientY=T.clientY;var N=w.timeStamp,P=N-f;if(f=N,a=="scroll"){var W=new s(w,p);W.speed=1,W.wheelX=O,W.wheelY=I,10*Math.abs(O)0)if(he==16){for(K=B;K-1){for(K=B;K=0&&Q[ce]==b;ce--)H[ce]=s}}}function P(V,H,G){if(!(u=V){for(X=U+1;X=V;)X++;for(Y=U,z=X-1;Y=H.length||(X=G[Q-1])!=m&&X!=v||(Y=H[Q+1])!=m&&Y!=v?y:(d&&(Y=v),Y==X?Y:y);case L:return X=Q>0?G[Q-1]:k,X==m&&Q+10&&G[Q-1]==m)return m;if(d)return y;for(ee=Q+1,z=H.length;ee=1425&&he<=2303||he==64286;if(X=H[ee],F&&(X==g||X==S))return g}return Q<1||(X=H[Q-1])==k?y:G[Q-1];case k:return d=!1,o=!0,s;case C:return p=!0,y;case _:case A:case w:case R:case $:d=!1;case T:return y}}function j(V){var H=V.charCodeAt(0),G=H>>8;return G==0?H>191?f:O[H]:G==5?/[\u0591-\u05f4]/.test(V)?g:f:G==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(V)?M:/[\u0660-\u0669\u066b-\u066c]/.test(V)?v:H==1642?x:/[\u06f0-\u06f9]/.test(V)?m:S:G==32&&H<=8287?I[H&255]:G==254&&H>=65136?S:y}r.L=f,r.R=g,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(V,H,G){if(V.length<2)return{};var Q=V.split(""),U=new Array(Q.length),X=new Array(Q.length),Y=[];s=G?h:c,N(Q,Y,Q.length,H);for(var z=0;zS&&H[z]<_||H[z]===y||H[z]===T)?Y[z]=r.ON_R:z>0&&Q[z-1]==="Ù„"&&/\u0622|\u0623|\u0625|\u0627/.test(Q[z])&&(Y[z-1]=Y[z]=r.R_H,z++);Q[Q.length-1]===r.DOT&&(Y[Q.length-1]=r.B),Q[0]==="‫"&&(Y[0]=r.RLE);for(var z=0;z=0&&(a=this.session.$docRowCache[c])}return a},p.prototype.getSplitIndex=function(){var a=0,i=this.session.$screenRowCache;if(i.length)for(var c,h=this.session.$getRowCacheIndex(i,this.currentRow);this.currentRow-a>0&&(c=this.session.$getRowCacheIndex(i,this.currentRow-a-1),c===h);)h=c,a++;else a=this.currentRow;return a},p.prototype.updateRowLine=function(a,i){a===void 0&&(a=this.getDocumentRow());var c=a===this.session.getLength()-1,h=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var f=this.session.$wrapData[a];f&&(i===void 0&&(i=this.getSplitIndex()),i>0&&f.length?(this.wrapIndent=f.indent,this.wrapOffset=this.wrapIndent*this.charWidths[s.L],this.line=ii?this.session.getOverwrite()?a:a-1:i,h=s.getVisualFromLogicalIdx(c,this.bidiMap),f=this.bidiMap.bidiLevels,g=0;!this.session.getOverwrite()&&a<=i&&f[h]%2!==0&&h++;for(var m=0;mi&&f[h]%2===0&&(g+=this.charWidths[f[h]]),this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(g+=this.rtlLineOffset),g},p.prototype.getSelections=function(a,i){var c=this.bidiMap,h=c.bidiLevels,f,g=[],m=0,v=Math.min(a,i)-this.wrapIndent,y=Math.max(a,i)-this.wrapIndent,k=!1,C=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,E=0;E=v&&bh+m/2;){if(h+=m,f===g.length-1){m=0;break}m=this.charWidths[g[++f]]}return f>0&&g[f-1]%2!==0&&g[f]%2===0?(c0&&g[f-1]%2===0&&g[f]%2!==0?i=1+(c>h?this.bidiMap.logicalFromVisual[f]:this.bidiMap.logicalFromVisual[f-1]):this.isRtlDir&&f===g.length-1&&m===0&&g[f-1]%2===0||!this.isRtlDir&&f===0&&g[f]%2!==0?i=1+this.bidiMap.logicalFromVisual[f]:(f>0&&g[f-1]%2!==0&&m!==0&&f--,i=this.bidiMap.logicalFromVisual[f]),i===0&&this.isRtlDir&&i++,i+this.wrapIndent},p}();r.BidiHandler=o}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,r,l){var s=n("./lib/oop"),u=n("./lib/lang"),d=n("./lib/event_emitter").EventEmitter,o=n("./range").Range,p=function(){function a(i){this.session=i,this.doc=i.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(h){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&h.old.column!=h.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return a.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},a.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},a.prototype.getCursor=function(){return this.lead.getPosition()},a.prototype.setAnchor=function(i,c){this.$isEmpty=!1,this.anchor.setPosition(i,c)},a.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},a.prototype.getSelectionLead=function(){return this.lead.getPosition()},a.prototype.isBackwards=function(){var i=this.anchor,c=this.lead;return i.row>c.row||i.row==c.row&&i.column>c.column},a.prototype.getRange=function(){var i=this.anchor,c=this.lead;return this.$isEmpty?o.fromPoints(c,c):this.isBackwards()?o.fromPoints(c,i):o.fromPoints(i,c)},a.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},a.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},a.prototype.setRange=function(i,c){var h=c?i.end:i.start,f=c?i.start:i.end;this.$setSelection(h.row,h.column,f.row,f.column)},a.prototype.$setSelection=function(i,c,h,f){if(!this.$silent){var g=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(i,c),this.cursor.setPosition(h,f),this.$isEmpty=!o.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||g!=this.$isEmpty||m)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(i){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),i.call(this)},a.prototype.selectTo=function(i,c){this.$moveSelection(function(){this.moveCursorTo(i,c)})},a.prototype.selectToPosition=function(i){this.$moveSelection(function(){this.moveCursorToPosition(i)})},a.prototype.moveTo=function(i,c){this.clearSelection(),this.moveCursorTo(i,c)},a.prototype.moveToPosition=function(i){this.clearSelection(),this.moveCursorToPosition(i)},a.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},a.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},a.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},a.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},a.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},a.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},a.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},a.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},a.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},a.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},a.prototype.getWordRange=function(i,c){if(typeof c>"u"){var h=i||this.lead;i=h.row,c=h.column}return this.session.getWordRange(i,c)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var i=this.getCursor(),c=this.session.getAWordRange(i.row,i.column);this.setSelectionRange(c)},a.prototype.getLineRange=function(i,c){var h=typeof i=="number"?i:this.lead.row,f,g=this.session.getFoldLine(h);return g?(h=g.start.row,f=g.end.row):f=h,c===!0?new o(h,0,f,this.session.getLine(f).length):new o(h,0,f+1,0)},a.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},a.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},a.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},a.prototype.wouldMoveIntoSoftTab=function(i,c,h){var f=i.column,g=i.column+c;return h<0&&(f=i.column-c,g=i.column),this.session.isTabStop(i)&&this.doc.getLine(i.row).slice(f,g).split(" ").length-1==c},a.prototype.moveCursorLeft=function(){var i=this.lead.getPosition(),c;if(c=this.session.getFoldAt(i.row,i.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(i.column===0)i.row>0&&this.moveCursorTo(i.row-1,this.doc.getLine(i.row-1).length);else{var h=this.session.getTabSize();this.wouldMoveIntoSoftTab(i,h,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-h):this.moveCursorBy(0,-1)}},a.prototype.moveCursorRight=function(){var i=this.lead.getPosition(),c;if(c=this.session.getFoldAt(i.row,i.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(c.column=f)}}this.moveCursorTo(c.row,c.column)},a.prototype.moveCursorFileEnd=function(){var i=this.doc.getLength()-1,c=this.doc.getLine(i).length;this.moveCursorTo(i,c)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var i=this.lead.row,c=this.lead.column,h=this.doc.getLine(i),f=h.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var g=this.session.getFoldAt(i,c,1);if(g){this.moveCursorTo(g.end.row,g.end.column);return}if(this.session.nonTokenRe.exec(f)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,f=h.substring(c)),c>=h.length){this.moveCursorTo(i,h.length),this.moveCursorRight(),i0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(g)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(i,c)},a.prototype.$shortWordEndIndex=function(i){var c=0,h,f=/\s/,g=this.session.tokenRe;if(g.lastIndex=0,this.session.tokenRe.exec(i))c=this.session.tokenRe.lastIndex;else{for(;(h=i[c])&&f.test(h);)c++;if(c<1){for(g.lastIndex=0;(h=i[c])&&!g.test(h);)if(g.lastIndex=0,c++,f.test(h))if(c>2){c--;break}else{for(;(h=i[c])&&f.test(h);)c++;if(c>2)break}}}return g.lastIndex=0,c},a.prototype.moveCursorShortWordRight=function(){var i=this.lead.row,c=this.lead.column,h=this.doc.getLine(i),f=h.substring(c),g=this.session.getFoldAt(i,c,1);if(g)return this.moveCursorTo(g.end.row,g.end.column);if(c==h.length){var m=this.doc.getLength();do i++,f=this.doc.getLine(i);while(i0&&/^\s*$/.test(f));c=f.length,/\s+$/.test(f)||(f="")}var g=u.stringReverse(f),m=this.$shortWordEndIndex(g);return this.moveCursorTo(i,c-m)},a.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},a.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},a.prototype.moveCursorBy=function(i,c){var h=this.session.documentToScreenPosition(this.lead.row,this.lead.column),f;if(c===0&&(i!==0&&(this.session.$bidiHandler.isBidiRow(h.row,this.lead.row)?(f=this.session.$bidiHandler.getPosLeft(h.column),h.column=Math.round(f/this.session.$bidiHandler.charWidths[0])):f=h.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?h.column=this.$desiredColumn:this.$desiredColumn=h.column),i!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var g=this.session.lineWidgets[this.lead.row];i<0?i-=g.rowsAbove||0:i>0&&(i+=g.rowCount-(g.rowsAbove||0))}var m=this.session.screenToDocumentPosition(h.row+i,h.column,f);i!==0&&c===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+c,c===0)},a.prototype.moveCursorToPosition=function(i){this.moveCursorTo(i.row,i.column)},a.prototype.moveCursorTo=function(i,c,h){var f=this.session.getFoldAt(i,c,1);f&&(i=f.start.row,c=f.start.column),this.$keepDesiredColumnOnChange=!0;var g=this.session.getLine(i);/[\uDC00-\uDFFF]/.test(g.charAt(c))&&g.charAt(c-1)&&(this.lead.row==i&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(i,c),this.$keepDesiredColumnOnChange=!1,h||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(i,c,h){var f=this.session.screenToDocumentPosition(i,c);this.moveCursorTo(f.row,f.column,h)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(i){this.setSelectionRange(i,i.cursor==i.start),this.$desiredColumn=i.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(i){var c=this.getRange();return i?(i.start.column=c.start.column,i.start.row=c.start.row,i.end.column=c.end.column,i.end.row=c.end.row):i=c,i.cursor=this.isBackwards()?i.start:i.end,i.desiredColumn=this.$desiredColumn,i},a.prototype.getRangeOfMovements=function(i){var c=this.getCursor();try{i(this);var h=this.getCursor();return o.fromPoints(c,h)}catch{return o.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},a.prototype.toJSON=function(){if(this.rangeCount)var i=this.ranges.map(function(c){var h=c.clone();return h.isBackwards=c.cursor==c.start,h});else{var i=this.getRange();i.isBackwards=this.isBackwards()}return i},a.prototype.fromJSON=function(i){if(i.start==null)if(this.rangeList&&i.length>1){this.toSingleRange(i[0]);for(var c=i.length;c--;){var h=o.fromPoints(i[c].start,i[c].end);i[c].isBackwards&&(h.cursor=h.start),this.addRange(h,!0)}return}else i=i[0];this.rangeList&&this.toSingleRange(i),this.setSelectionRange(i,i.isBackwards)},a.prototype.isEqual=function(i){if((i.length||this.rangeCount)&&i.length!=this.rangeCount)return!1;if(!i.length||!this.ranges)return this.getRange().isEqual(i);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(i[c]))return!1;return!0},a}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,s.implement(p.prototype,d),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,r,l){var s=n("./lib/report_error").reportError,u=2e3,d=function(){function o(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var a in this.states){for(var i=this.states[a],c=[],h=0,f=this.matchMappings[a]={defaultToken:"text"},g="g",m=[],v=0;v1?y.onMatch=this.$applyToken:y.onMatch=y.token),C>1&&(/\\\d/.test(y.regex)?k=y.regex.replace(/\\([0-9]+)/g,function(S,b){return"\\"+(parseInt(b,10)+h+1)}):(C=1,k=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),f[h]=v,h+=C,c.push(k),y.onMatch||(y.onMatch=null)}}c.length||(f[0]=0,c.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,g)},this),this.regExps[a]=new RegExp("("+c.join(")|(")+")|($)",g)}}return o.prototype.$setMaxTokenCount=function(p){u=p|0},o.prototype.$applyToken=function(p){var a=this.splitRegex.exec(p).slice(1),i=this.token.apply(this,a);if(typeof i=="string")return[{type:i,value:p}];for(var c=[],h=0,f=i.length;hy){var x=p.substring(y,L-E.length);C.type==S?C.value+=x:(C.type&&v.push(C),C={type:S,value:x})}for(var M=0;Mu){for(k>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:p});y1&&i[0]!==c&&i.unshift("#tmp",c),{tokens:v,state:i.length?i:c}},o}();d.prototype.reportError=s,r.Tokenizer=d}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,r,l){var s=n("../lib/deep_copy").deepCopy,u;u=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,a){if(!a){for(var i in p)this.$rules[i]=p[i];return}for(var i in p){for(var c=p[i],h=0;h=this.$rowTokens.length;){if(this.$row+=1,o||(o=this.$session.getLength()),this.$row>=o)return this.$row=o-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},d.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},d.prototype.getCurrentTokenRow=function(){return this.$row},d.prototype.getCurrentTokenColumn=function(){var o=this.$rowTokens,p=this.$tokenIndex,a=o[p].start;if(a!==void 0)return a;for(a=0;p>0;)p-=1,a+=o[p].value.length;return a},d.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},d.prototype.getCurrentTokenRange=function(){var o=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new s(this.$row,p,this.$row,p+o.value.length)},d}();r.TokenIterator=u}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,r,l){var s=n("../../lib/oop"),u=n("../behaviour").Behaviour,d=n("../../token_iterator").TokenIterator,o=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i,c={},h={'"':'"',"'":"'"},f=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[y])return i=c[y];i=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(v,y,k,C){var S=v.end.row-v.start.row;return{text:k+y+C,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,k,C,S,b){var E=C.getCursorPosition(),L=S.doc.getLine(E.row);if(b=="{"){f(C);var x=C.getSelectionRange(),M=S.doc.getTextRange(x);if(M!==""&&M!=="{"&&C.getWrapBehavioursEnabled())return g(x,M,"{","}");if(m.isSaneInsertion(C,S))return/[\]\}\)]/.test(L[E.column])||C.inMultiSelectMode||v.braces?(m.recordAutoInsert(C,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(C,S,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){f(C);var _=L.substring(E.column,E.column+1);if(_=="}"){var A=S.$findOpeningBracket("}",{column:E.column+1,row:E.row});if(A!==null&&m.isAutoInsertedClosing(E,L,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==` `||b==`\r `){f(C);var $="";m.isMaybeInsertedClosing(E,L)&&($=o.stringRepeat("}",i.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var _=L.substring(E.column,E.column+1);if(_==="}"){var w=S.findMatchingBracket({row:E.row,column:E.column+1},"}");if(!w)return null;var R=this.$getIndent(S.getLine(w.row))}else if($)var R=this.$getIndent(L);else{m.clearMaybeInsertedClosing();return}var T=R+S.getTabString();return{text:` `+T+` `+R+$,selection:[1,T.length,1,T.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,k,C,S,b){var E=S.doc.getTextRange(b);if(!b.isMultiLine()&&E=="{"){f(C);var L=S.doc.getLine(b.start.row),x=L.substring(b.end.column,b.end.column+1);if(x=="}")return b.end.column++,b;i.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,k,C,S,b){if(b=="("){f(C);var E=C.getSelectionRange(),L=S.doc.getTextRange(E);if(L!==""&&C.getWrapBehavioursEnabled())return g(E,L,"(",")");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,")"),{text:"()",selection:[1,1]}}else if(b==")"){f(C);var x=C.getCursorPosition(),M=S.doc.getLine(x.row),_=M.substring(x.column,x.column+1);if(_==")"){var A=S.$findOpeningBracket(")",{column:x.column+1,row:x.row});if(A!==null&&m.isAutoInsertedClosing(x,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,k,C,S,b){var E=S.doc.getTextRange(b);if(!b.isMultiLine()&&E=="("){f(C);var L=S.doc.getLine(b.start.row),x=L.substring(b.start.column+1,b.start.column+2);if(x==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,k,C,S,b){if(b=="["){f(C);var E=C.getSelectionRange(),L=S.doc.getTextRange(E);if(L!==""&&C.getWrapBehavioursEnabled())return g(E,L,"[","]");if(m.isSaneInsertion(C,S))return m.recordAutoInsert(C,S,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){f(C);var x=C.getCursorPosition(),M=S.doc.getLine(x.row),_=M.substring(x.column,x.column+1);if(_=="]"){var A=S.$findOpeningBracket("]",{column:x.column+1,row:x.row});if(A!==null&&m.isAutoInsertedClosing(x,M,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,k,C,S,b){var E=S.doc.getTextRange(b);if(!b.isMultiLine()&&E=="["){f(C);var L=S.doc.getLine(b.start.row),x=L.substring(b.start.column+1,b.start.column+2);if(x=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,k,C,S,b){var E=S.$mode.$quotes||h;if(b.length==1&&E[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;f(C);var L=b,x=C.getSelectionRange(),M=S.doc.getTextRange(x);if(M!==""&&(M.length!=1||!E[M])&&C.getWrapBehavioursEnabled())return g(x,M,L,L);if(!M){var _=C.getCursorPosition(),A=S.doc.getLine(_.row),$=A.substring(_.column-1,_.column),w=A.substring(_.column,_.column+1),R=S.getTokenAt(_.row,_.column),T=S.getTokenAt(_.row,_.column+1);if($=="\\"&&R&&/escape/.test(R.type))return null;var O=R&&/string|escape/.test(R.type),I=!T||/string|escape/.test(T.type),N;if(w==L)N=O!==I,N&&/string\.end/.test(T.type)&&(N=!1);else{if(O&&!I||O&&I)return null;var P=S.$mode.tokenRe;P.lastIndex=0;var W=P.test($);P.lastIndex=0;var j=P.test(w),V=S.$mode.$pairQuotesAfter,H=V&&V[L]&&V[L].test($);if(!H&&W||j||w&&!/[\s;,.})\]\\]/.test(w))return null;var G=A[_.column-2];if($==L&&(G==L||P.test(G)))return null;N=!0}return{text:N?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,k,C,S,b){var E=S.$mode.$quotes||h,L=S.doc.getTextRange(b);if(!b.isMultiLine()&&E.hasOwnProperty(L)){f(C);var x=S.doc.getLine(b.start.row),M=x.substring(b.start.column+1,b.start.column+2);if(M==L)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,k,C,S,b){if(y==="doc-start"&&(b===` `||b===`\r `)&&C.selection.isEmpty()){var E=C.getCursorPosition(),L=S.doc.getLine(E.row),x=S.doc.getLine(E.row+1),M=this.$getIndent(L);if(/\s*\*/.test(x))return/^\s*\*/.test(L)?{text:b+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:b+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(L.substring(0,E.column)))return{text:b+M+" * "+b+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})},m.isSaneInsertion=function(v,y){var k=v.getCursorPosition(),C=new d(y,k.row,k.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine(k.row)[k.column]))return!0;var S=new d(y,k.row,k.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",p))return!1}return C.stepForward(),C.getCurrentTokenRow()!==k.row||this.$matchTokenType(C.getCurrentToken()||"text",a)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,k){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isAutoInsertedClosing(C,S,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=C.row,i.autoInsertedLineEnd=k+S.substr(C.column),i.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,k){var C=v.getCursorPosition(),S=y.doc.getLine(C.row);this.isMaybeInsertedClosing(C,S)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=C.row,i.maybeInsertedLineStart=S.substr(0,C.column)+k,i.maybeInsertedLineEnd=S.substr(C.column),i.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,k){return i.autoInsertedBrackets>0&&v.row===i.autoInsertedRow&&k===i.autoInsertedLineEnd[0]&&y.substr(v.column)===i.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return i.maybeInsertedBrackets>0&&v.row===i.maybeInsertedRow&&y.substr(v.column)===i.maybeInsertedLineEnd&&y.substr(0,v.column)==i.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},s.inherits(m,u),r.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,r,l){for(var s=[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],u=0,d=[],o=0;o2?G%b!=b-1:G%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,x=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+a.escapeRegExp(L)+")"),_=new RegExp("(?:"+a.escapeRegExp(x)+")\\s*$"),A=function(N,P){w(N,P)||(!k||/\S/.test(N))&&(y.insertInLine({row:P,column:N.length},x),y.insertInLine({row:P,column:S},L))},$=function(N,P){var W;(W=N.match(_))&&y.removeInLine(P,N.length-W[0].length,N.length),(W=N.match(M))&&y.removeInLine(P,W[1].length,W[0].length)},w=function(N,P){if(M.test(N))return!0;for(var W=g.getTokens(P),j=0;jN.length&&(I=N.length)}),S==1/0&&(S=I,k=!1,C=!1),E&&S%b!=0&&(S=Math.floor(S/b)*b),O(C?$:A)},this.toggleBlockComment=function(f,g,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var k=new i(g,v.row,v.column),C=k.getCurrentToken();g.selection;var S=g.selection.toOrientedRange(),b,E;if(C&&/comment/.test(C.type)){for(var L,x;C&&/comment/.test(C.type);){var M=C.value.indexOf(y.start);if(M!=-1){var _=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;L=new c(_,A,_,A+y.start.length);break}C=k.stepBackward()}for(var k=new i(g,v.row,v.column),C=k.getCurrentToken();C&&/comment/.test(C.type);){var M=C.value.indexOf(y.end);if(M!=-1){var _=k.getCurrentTokenRow(),A=k.getCurrentTokenColumn()+M;x=new c(_,A,_,A+y.end.length);break}C=k.stepForward()}x&&g.remove(x),L&&(g.remove(L),b=L.start.row,E=-y.start.length)}else E=y.start.length,b=m.start.row,g.insert(m.end,y.end),g.insert(m.start,y.start);S.start.row==b&&(S.start.column+=E),S.end.row==b&&(S.end.column+=E),g.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(f,g,m){return this.$getIndent(g)},this.checkOutdent=function(f,g,m){return!1},this.autoOutdent=function(f,g,m){},this.$getIndent=function(f){return f.match(/^\s*/)[0]},this.createWorker=function(f){return null},this.createModeDelegates=function(f){this.$embeds=[],this.$modes={};for(var g in f)if(f[g]){var m=f[g],v=m.prototype.$id,y=s.$modes[v];y||(s.$modes[v]=y=new m),s.$modes[g]||(s.$modes[g]=y),this.$embeds.push(g),this.$modes[g]=y}for(var k=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],C=function(b){(function(E){var L=k[b],x=E[L];E[k[b]]=function(){return this.$delegator(L,arguments,x)}})(S)},S=this,g=0;gthis.row)){var c=p(i,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},a.prototype.setPosition=function(i,c,h){var f;if(h?f={row:i,column:c}:f=this.$clipPositionToDocument(i,c),!(this.row==f.row&&this.column==f.column)){var g={row:this.row,column:this.column};this.row=f.row,this.column=f.column,this._signal("change",{old:g,value:f})}},a.prototype.detach=function(){this.document.off("change",this.$onChange)},a.prototype.attach=function(i){this.document=i||this.document,this.document.on("change",this.$onChange)},a.prototype.$clipPositionToDocument=function(i,c){var h={};return i>=this.document.getLength()?(h.row=Math.max(0,this.document.getLength()-1),h.column=this.document.getLine(h.row).length):i<0?(h.row=0,h.column=0):(h.row=i,h.column=Math.min(this.document.getLine(h.row).length,Math.max(0,c))),c<0&&(h.column=0),h},a}();d.prototype.$insertRight=!1,s.implement(d.prototype,u);function o(a,i,c){var h=c?a.column<=i.column:a.column=f&&(c=f-1,h=void 0);var g=this.getLine(c);return h==null&&(h=g.length),h=Math.min(Math.max(h,0),g.length),{row:c,column:h}},i.prototype.clonePos=function(c){return{row:c.row,column:c.column}},i.prototype.pos=function(c,h){return{row:c,column:h}},i.prototype.$clipPosition=function(c){var h=this.getLength();return c.row>=h?(c.row=Math.max(0,h-1),c.column=this.getLine(h-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},i.prototype.insertFullLines=function(c,h){c=Math.min(Math.max(c,0),this.getLength());var f=0;c0,g=h=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},i.prototype.replace=function(c,h){if(c instanceof o||(c=o.fromPoints(c.start,c.end)),h.length===0&&c.isEmpty())return c.start;if(h==this.getTextRange(c))return c.end;this.remove(c);var f;return h?f=this.insert(c.start,h):f=c.start,f},i.prototype.applyDeltas=function(c){for(var h=0;h=0;h--)this.revertDelta(c[h])},i.prototype.applyDelta=function(c,h){var f=c.action=="insert";(f?c.lines.length<=1&&!c.lines[0]:!o.comparePoints(c.start,c.end))||(f&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(u(this.$lines,c,h),this._signal("change",c)))},i.prototype.$safeApplyDelta=function(c){var h=this.$lines.length;(c.action=="remove"&&c.start.row20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=h,f==-1&&(f=h),m<=f&&i.fireUpdateEvent(m,f)}}}return o.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},o.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},o.prototype.fireUpdateEvent=function(p,a){var i={first:p,last:a};this._signal("update",{data:i})},o.prototype.start=function(p){this.currentLine=Math.min(p||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)},o.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},o.prototype.$updateOnChange=function(p){var a=p.start.row,i=p.end.row-a;if(i===0)this.lines[a]=null;else if(p.action=="remove")this.lines.splice(a,i+1,null),this.states.splice(a,i+1,null);else{var c=Array(i+1);c.unshift(a,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(a,this.currentLine,this.doc.getLength()),this.stop()},o.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},o.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},o.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},o.prototype.$tokenizeRow=function(p){var a=this.doc.getLine(p),i=this.states[p-1],c=this.tokenizer.getLineTokens(a,i,p);return this.states[p]+""!=c.state+""?(this.states[p]=c.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=c.tokens},o.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},o}();s.implement(d.prototype,u),r.BackgroundTokenizer=d}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,r,l){var s=n("./lib/lang"),u=n("./range").Range,d=function(){function o(p,a,i){i===void 0&&(i="text"),this.setRegexp(p),this.clazz=a,this.type=i}return o.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},o.prototype.update=function(p,a,i,c){if(this.regExp)for(var h=c.firstRow,f=c.lastRow,g={},m=h;m<=f;m++){var v=this.cache[m];v==null&&(v=s.getMatchOffsets(i.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(S){return new u(m,S.offset,m,S.offset+S.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var k=v[y].toScreenRange(i),C=k.toString();g[C]||(g[C]=!0,a.drawSingleLineMarker(p,k,this.clazz,c))}}},o}();d.prototype.MAX_RANGES=500,r.SearchHighlight=d}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,r,l){var s=function(){function S(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function(b){this.$session=b},S.prototype.add=function(b,E,L){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),E===!1||!this.lastDeltas){this.lastDeltas=[];var x=this.$undoStack.length;x>this.$undoDepth-1&&this.$undoStack.splice(0,x-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},S.prototype.addSelection=function(b,E){this.selections.push({value:b,rev:E||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function(b,E){E==null&&(E=this.$rev+1);for(var L=this.$undoStack,x=L.length;x--;){var M=L[x][0];if(M.id<=b)break;M.id0},S.prototype.canRedo=function(){return this.$redoStack.length>0},S.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},S.prototype.$prettyPrint=function(b){return b?i(b):i(this.$undoStack)+` --- `+i(this.$redoStack)},S}();s.prototype.hasUndo=s.prototype.canUndo,s.prototype.hasRedo=s.prototype.canRedo,s.prototype.isClean=s.prototype.isAtBookmark,s.prototype.markClean=s.prototype.bookmark;function u(S,b){for(var E=b;E--;){var L=S[E];if(L&&!L[0].ignore){for(;E"+S.end.row+":"+S.end.column}function h(S,b){var E=S.action=="insert",L=b.action=="insert";if(E&&L)if(o(b.start,S.end)>=0)m(b,S,-1);else if(o(b.start,S.start)<=0)m(S,b,1);else return null;else if(E&&!L)if(o(b.start,S.end)>=0)m(b,S,-1);else if(o(b.end,S.start)<=0)m(S,b,-1);else return null;else if(!E&&L)if(o(b.start,S.start)>=0)m(b,S,1);else if(o(b.start,S.start)<=0)m(S,b,1);else return null;else if(!E&&!L)if(o(b.start,S.start)>=0)m(b,S,1);else if(o(b.end,S.start)<=0)m(S,b,-1);else return null;return[b,S]}function f(S,b){for(var E=S.length;E--;)for(var L=0;L=0?m(S,b,-1):(o(S.start,b.start)<=0||m(S,d.fromPoints(b.start,S.start),-1),m(b,S,1));else if(!E&&L)o(b.start,S.end)>=0?m(b,S,-1):(o(b.start,S.start)<=0||m(b,d.fromPoints(S.start,b.start),-1),m(S,b,1));else if(!E&&!L)if(o(b.start,S.end)>=0)m(b,S,-1);else if(o(b.end,S.start)<=0)m(S,b,-1);else{var x,M;return o(S.start,b.start)<0&&(x=S,S=y(S,b.start)),o(S.end,b.end)>0&&(M=y(S,b.end)),v(b.end,S.start,S.end,-1),M&&!x&&(S.lines=M.lines,S.start=M.start,S.end=M.end,M=S),[b,x,M].filter(Boolean)}return[b,S]}function m(S,b,E){v(S.start,b.start,b.end,E),v(S.end,b.start,b.end,E)}function v(S,b,E,L){S.row==(L==1?b:E).row&&(S.column+=L*(E.column-b.column)),S.row+=L*(E.row-b.row)}function y(S,b){var E=S.lines,L=S.end;S.end=p(b);var x=S.end.row-S.start.row,M=E.splice(x,E.length),_=x?b.column:b.column-S.start.column;E.push(M[0].substring(0,_)),M[0]=M[0].substr(_);var A={start:p(b),end:L,lines:M,action:S.action};return A}function k(S,b){b=a(b);for(var E=S.length;E--;){for(var L=S[E],x=0;xthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(o),this.folds.sort(function(p,a){return-p.range.compareEnd(a.start.row,a.start.column)}),this.range.compareEnd(o.start.row,o.start.column)>0?(this.end.row=o.end.row,this.end.column=o.end.column):this.range.compareStart(o.end.row,o.end.column)<0&&(this.start.row=o.start.row,this.start.column=o.start.column)}else if(o.start.row==this.end.row)this.folds.push(o),this.end.row=o.end.row,this.end.column=o.end.column;else if(o.end.row==this.start.row)this.folds.unshift(o),this.start.row=o.start.row,this.start.column=o.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");o.foldLine=this},d.prototype.containsRow=function(o){return o>=this.start.row&&o<=this.end.row},d.prototype.walk=function(o,p,a){var i=0,c=this.folds,h,f,g,m=!0;p==null&&(p=this.end.row,a=this.end.column);for(var v=0;v0)){var m=u(p,f.start);return g===0?a&&m!==0?-h-2:h:m>0||m===0&&!a?h:-h-1}}return-h-1},o.prototype.add=function(p){var a=!p.isEmpty(),i=this.pointIndex(p.start,a);i<0&&(i=-i-1);var c=this.pointIndex(p.end,a,i);return c<0?c=-c-1:c++,this.ranges.splice(i,c-i,p)},o.prototype.addList=function(p){for(var a=[],i=p.length;i--;)a.push.apply(a,this.add(p[i]));return a},o.prototype.substractPoint=function(p){var a=this.pointIndex(p);if(a>=0)return this.ranges.splice(a,1)},o.prototype.merge=function(){var p=[],a=this.ranges;a=a.sort(function(g,m){return u(g.start,m.start)});for(var i=a[0],c,h=1;h=0},o.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},o.prototype.rangeAtPoint=function(p){var a=this.pointIndex(p);if(a>=0)return this.ranges[a]},o.prototype.clipRows=function(p,a){var i=this.ranges;if(i[0].start.row>a||i[i.length-1].start.row=c)break}if(p.action=="insert")for(var y=h-c,k=-a.column+i.column;gc)break;if(v.start.row==c&&v.start.column>=a.column&&(v.start.column==a.column&&this.$bias<=0||(v.start.column+=k,v.start.row+=y)),v.end.row==c&&v.end.column>=a.column){if(v.end.column==a.column&&this.$bias<0)continue;v.end.column==a.column&&k>0&&gv.start.column&&v.end.column==f[g+1].start.column&&(v.end.column-=k),v.end.column+=k,v.end.row+=y}}else for(var y=c-h,k=a.column-i.column;gh)break;v.end.rowa.column)&&(v.end.column=a.column,v.end.row=a.row):(v.end.column+=k,v.end.row+=y):v.end.row>h&&(v.end.row+=y),v.start.rowa.column)&&(v.start.column=a.column,v.start.row=a.row):(v.start.column+=k,v.start.row+=y):v.start.row>h&&(v.start.row+=y)}if(y!=0&&g=i)return g;if(g.end.row>i)return null}return null},this.getNextFoldLine=function(i,c){var h=this.$foldData,f=0;for(c&&(f=h.indexOf(c)),f==-1&&(f=0),f;f=i)return g}return null},this.getFoldedRowCount=function(i,c){for(var h=this.$foldData,f=c-i+1,g=0;g=c){y=i?f-=c-y:f=0);break}else v>=i&&(y>=i?f-=v-y:f-=v-i+1)}return f},this.$addFoldLine=function(i){return this.$foldData.push(i),this.$foldData.sort(function(c,h){return c.start.row-h.start.row}),i},this.addFold=function(i,c){var h=this.$foldData,f=!1,g;i instanceof d?g=i:(g=new d(c,i),g.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(g.range);var m=g.start.row,v=g.start.column,y=g.end.row,k=g.end.column,C=this.getFoldAt(m,v,1),S=this.getFoldAt(y,k,-1);if(C&&S==C)return C.addSubFold(g);C&&!C.range.isStart(m,v)&&this.removeFold(C),S&&!S.range.isEnd(y,k)&&this.removeFold(S);var b=this.getFoldsInRange(g.range);b.length>0&&(this.removeFolds(b),g.collapseChildren||b.forEach(function(M){g.addSubFold(M)}));for(var E=0;E0&&this.foldAll(i.start.row+1,i.end.row,i.collapseChildren-1),i.subFolds=[]},this.expandFolds=function(i){i.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(i,c){var h,f;if(i==null)h=new s(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof i=="number")h=new s(i,0,i,this.getLine(i).length);else if("row"in i)h=s.fromPoints(i,i);else{if(Array.isArray(i))return f=[],i.forEach(function(m){f=f.concat(this.unfold(m))},this),f;h=i}f=this.getFoldsInRangeList(h);for(var g=f;f.length==1&&s.comparePoints(f[0].start,h.start)<0&&s.comparePoints(f[0].end,h.end)>0;)this.expandFolds(f),f=this.getFoldsInRangeList(h);if(c!=!1?this.removeFolds(f):this.expandFolds(f),g.length)return g},this.isRowFolded=function(i,c){return!!this.getFoldLine(i,c)},this.getRowFoldEnd=function(i,c){var h=this.getFoldLine(i,c);return h?h.end.row:i},this.getRowFoldStart=function(i,c){var h=this.getFoldLine(i,c);return h?h.start.row:i},this.getFoldDisplayLine=function(i,c,h,f,g){f==null&&(f=i.start.row),g==null&&(g=0),c==null&&(c=i.end.row),h==null&&(h=this.getLine(c).length);var m=this.doc,v="";return i.walk(function(y,k,C,S){if(!(kk)break;while(g&&v.test(g.type)&&!/^comment.start/.test(g.type));g=f.stepBackward()}else g=f.getCurrentToken();return y.end.row=f.getCurrentTokenRow(),y.end.column=f.getCurrentTokenColumn(),/^comment.end/.test(g.type)||(y.end.column+=g.value.length-2),y}},this.foldAll=function(i,c,h,f){h==null&&(h=1e5);var g=this.foldWidgets;if(g){c=c||this.getLength(),i=i||0;for(var m=i;m=i&&(m=v.end.row,v.collapseChildren=h,this.addFold("...",v))}}},this.foldToLevel=function(i){for(this.foldAll();i-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var i=this;this.foldAll(null,null,null,function(c){for(var h=i.getTokens(c),f=0;f=0;){var m=h[f];if(m==null&&(m=h[f]=this.getFoldWidget(f)),m=="start"){var v=this.getFoldWidgetRange(f);if(g||(g=v),v&&v.end.row>=i)break}f--}return{range:f!==-1&&v,firstRange:g}},this.onFoldWidgetClick=function(i,c){c instanceof p&&(c=c.domEvent);var h={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},f=this.$toggleFoldWidget(i,h);if(!f){var g=c.target||c.srcElement;g&&/ace_fold-widget/.test(g.className)&&(g.className+=" ace_invalid")}},this.$toggleFoldWidget=function(i,c){if(this.getFoldWidget){var h=this.getFoldWidget(i),f=this.getLine(i),g=h==="end"?-1:1,m=this.getFoldAt(i,g===-1?0:f.length,g);if(m)return c.children||c.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(i,!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(c.siblings){var y=this.getParentFoldRangeData(i);if(y.range)var k=y.range.start.row+1,C=y.range.end.row;this.foldAll(k,C,c.all?1e4:0)}else c.children?(C=v?v.end.row:this.getLength(),this.foldAll(i+1,C,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(i){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var h=this.$toggleFoldWidget(c,{});if(!h){var f=this.getParentFoldRangeData(c,!0);if(h=f.range||f.firstRange,h){c=h.start.row;var g=this.getFoldAt(c,this.getLine(c).length,1);g?this.removeFold(g):this.addFold("...",h)}}},this.updateFoldWidgets=function(i){var c=i.start.row,h=i.end.row-c;if(h===0)this.foldWidgets[c]=null;else if(i.action=="remove")this.foldWidgets.splice(c,h+1,null);else{var f=Array(h+1);f.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,f)}},this.tokenizerUpdateFoldWidgets=function(i){var c=i.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}r.Folding=a}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,r,l){var s=n("../token_iterator").TokenIterator,u=n("../range").Range;function d(){this.findMatchingBracket=function(o,p){if(o.column==0)return null;var a=p||this.getLine(o.row).charAt(o.column-1);if(a=="")return null;var i=a.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],o):this.$findOpeningBracket(i[2],o):null},this.getBracketRange=function(o){var p=this.getLine(o.row),a=!0,i,c=p.charAt(o.column-1),h=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(h||(c=p.charAt(o.column),o={row:o.row,column:o.column+1},h=c&&c.match(/([\(\[\{])|([\)\]\}])/),a=!1),!h)return null;if(h[1]){var f=this.$findClosingBracket(h[1],o);if(!f)return null;i=u.fromPoints(o,f),a||(i.end.column++,i.start.column--),i.cursor=i.end}else{var f=this.$findOpeningBracket(h[2],o);if(!f)return null;i=u.fromPoints(f,o),a||(i.start.column++,i.end.column--),i.cursor=i.start}return i},this.getMatchingBracketRanges=function(o,p){var a=this.getLine(o.row),i=/([\(\[\{])|([\)\]\}])/,c=!p&&a.charAt(o.column-1),h=c&&c.match(i);if(h||(c=(p===void 0||p)&&a.charAt(o.column),o={row:o.row,column:o.column+1},h=c&&c.match(i)),!h)return null;var f=new u(o.row,o.column-1,o.row,o.column),g=h[1]?this.$findClosingBracket(h[1],o):this.$findOpeningBracket(h[2],o);if(!g)return[f];var m=new u(g.row,g.column,g.row,g.column+1);return[f,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(o,p,a){var i=this.$brackets[o],c=1,h=new s(this,p.row,p.column),f=h.getCurrentToken();if(f||(f=h.stepForward()),!!f){a||(a=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var g=p.column-h.getCurrentTokenColumn()-2,m=f.value;;){for(;g>=0;){var v=m.charAt(g);if(v==i){if(c-=1,c==0)return{row:h.getCurrentTokenRow(),column:g+h.getCurrentTokenColumn()}}else v==o&&(c+=1);g-=1}do f=h.stepBackward();while(f&&!a.test(f.type));if(f==null)break;m=f.value,g=m.length-1}return null}},this.$findClosingBracket=function(o,p,a){var i=this.$brackets[o],c=1,h=new s(this,p.row,p.column),f=h.getCurrentToken();if(f||(f=h.stepForward()),!!f){a||(a=new RegExp("(\\.?"+f.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var g=p.column-h.getCurrentTokenColumn();;){for(var m=f.value,v=m.length;g"?i=!0:p.type.indexOf("tag-name")!==-1&&(a=!0));while(p&&!a);return p},this.$findClosingTag=function(o,p){var a,i=p.value,c=p.value,h=0,f=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);p=o.stepForward();var g=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length),m=!1;do if(a=p,p=o.stepForward(),p){if(p.value===">"&&!m){var v=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(i=p.value,c===i){if(a.value==="<")h++;else if(a.value==="")var C=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);else return}}}else if(c===i&&p.value==="/>"&&(h--,h<0))var y=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+2),k=y,C=k,v=new u(g.end.row,g.end.column,g.end.row,g.end.column+1)}while(p&&h>=0);if(f&&v&&y&&C&&g&&k)return{openTag:new u(f.start.row,f.start.column,v.end.row,v.end.column),closeTag:new u(y.start.row,y.start.column,C.end.row,C.end.column),openTagName:g,closeTagName:k}},this.$findOpeningTag=function(o,p){var a=o.getCurrentToken(),i=p.value,c=0,h=o.getCurrentTokenRow(),f=o.getCurrentTokenColumn(),g=f+2,m=new u(h,f,h,g);o.stepForward();var v=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+p.value.length);if(p=o.stepForward(),!(!p||p.value!==">")){var y=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);o.stepBackward(),o.stepBackward();do if(p=a,h=o.getCurrentTokenRow(),f=o.getCurrentTokenColumn(),g=f+p.value.length,a=o.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(i===p.value)if(a.value==="<"){if(c++,c>0){var k=new u(h,f,h,g),C=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1);do p=o.stepForward();while(p&&p.value!==">");var S=new u(o.getCurrentTokenRow(),o.getCurrentTokenColumn(),o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1)}}else a.value===""){for(var b=0,E=a;E;){if(E.type.indexOf("tag-name")!==-1&&E.value===i){c--;break}else if(E.value==="<")break;E=o.stepBackward(),b++}for(var L=0;Lw&&(this.$docRowCache.splice(w,$),this.$screenRowCache.splice(w,$))},_.prototype.$getRowCacheIndex=function(A,$){for(var w=0,R=A.length-1;w<=R;){var T=w+R>>1,O=A[T];if($>O)w=T+1;else if($=$));O++);return R=w[O],R?(R.index=O,R.start=T-R.value.length,R):null},_.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=u.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},_.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},_.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},_.prototype.getTabString=function(){return this.getUseSoftTabs()?u.stringRepeat(" ",this.getTabSize()):" "},_.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},_.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},_.prototype.setTabSize=function(A){this.setOption("tabSize",A)},_.prototype.getTabSize=function(){return this.$tabSize},_.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},_.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},_.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},_.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},_.prototype.getOverwrite=function(){return this.$overwrite},_.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},_.prototype.addGutterDecoration=function(A,$){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+$,this._signal("changeBreakpoint",{})},_.prototype.removeGutterDecoration=function(A,$){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},_.prototype.getBreakpoints=function(){return this.$breakpoints},_.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var $=0;$0&&(R=!!w.charAt($-1).match(this.tokenRe)),R||(R=!!w.charAt($).match(this.tokenRe)),R)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},_.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,R=0,T=0,O=this.$foldData[T],I=O?O.start.row:1/0,N=$.length,P=0;PI){if(P=O.end.row+1,P>=N)break;O=this.$foldData[T++],I=O?O.start.row:1/0}w[P]==null&&(w[P]=this.$getStringScreenWidth($[P])[0]),w[P]>R&&(R=w[P])}this.screenWidth=R}},_.prototype.getLine=function(A){return this.doc.getLine(A)},_.prototype.getLines=function(A,$){return this.doc.getLines(A,$)},_.prototype.getLength=function(){return this.doc.getLength()},_.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},_.prototype.insert=function(A,$){return this.doc.insert(A,$)},_.prototype.remove=function(A){return this.doc.remove(A)},_.prototype.removeFullLines=function(A,$){return this.doc.removeFullLines(A,$)},_.prototype.undoChanges=function(A,$){if(A.length){this.$fromUndo=!0;for(var w=A.length-1;w!=-1;w--){var R=A[w];R.action=="insert"||R.action=="remove"?this.doc.revertDelta(R):R.folds&&this.addFolds(R.folds)}!$&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},_.prototype.redoChanges=function(A,$){if(A.length){this.$fromUndo=!0;for(var w=0;wA.end.column&&(O.start.column+=N),O.end.row==A.end.row&&O.end.column>A.end.column&&(O.end.column+=N)),I&&O.start.row>=A.end.row&&(O.start.row+=I,O.end.row+=I)}if(O.end=this.insert(O.start,R),T.length){var P=A.start,W=O.start,I=W.row-P.row,N=W.column-P.column;this.addFolds(T.map(function(H){return H=H.clone(),H.start.row==P.row&&(H.start.column+=N),H.end.row==P.row&&(H.end.column+=N),H.start.row+=I,H.end.row+=I,H}))}return O},_.prototype.indentRows=function(A,$,w){w=w.replace(/\t/g,this.getTabString());for(var R=A;R<=$;R++)this.doc.insertInLine({row:R,column:0},w)},_.prototype.outdentRows=function(A){for(var $=A.collapseRows(),w=new c(0,0,0,0),R=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 R=this.getRowFoldEnd($+w);if(R>this.doc.getLength()-1)return 0;var T=R-$}else{A=this.$clipRowToDocument(A),$=this.$clipRowToDocument($);var T=$-A+1}var O=new c(A,0,$,Number.MAX_VALUE),I=this.getFoldsInRange(O).map(function(P){return P=P.clone(),P.start.row+=T,P.end.row+=T,P}),N=w==0?this.doc.getLines(A,$):this.doc.removeFullLines(A,$);return this.doc.insertFullLines(A+T,N),I.length&&this.addFolds(I),T},_.prototype.moveLinesUp=function(A,$){return this.$moveLines(A,$,-1)},_.prototype.moveLinesDown=function(A,$){return this.$moveLines(A,$,1)},_.prototype.duplicateLines=function(A,$){return this.$moveLines(A,$,0)},_.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},_.prototype.$clipColumnToRow=function(A,$){return $<0?0:Math.min(this.doc.getLine(A).length,$)},_.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:$}},_.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},_.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")}},_.prototype.getUseWrapMode=function(){return this.$useWrapMode},_.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"))},_.prototype.adjustWrapLimit=function(A,$){var w=this.$wrapLimitRange;w.max<0&&(w={min:$,max:$});var R=this.$constrainWrapLimit(A,w.min,w.max);return R!=this.$wrapLimit&&R>1?(this.$wrapLimit=R,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},_.prototype.$constrainWrapLimit=function(A,$,w){return $&&(A=Math.max($,A)),w&&(A=Math.min(w,A)),A},_.prototype.getWrapLimit=function(){return this.$wrapLimit},_.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},_.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},_.prototype.$updateInternalDataOnChange=function(A){var $=this.$useWrapMode,w=A.action,R=A.start,T=A.end,O=R.row,I=T.row,N=I-O,P=null;if(this.$updating=!0,N!=0)if(w==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(O,N);var W=this.$foldData;P=this.getFoldsInRange(A),this.removeFolds(P);var j=this.getFoldLine(T.row),V=0;if(j){j.addRemoveChars(T.row,T.column,R.column-T.column),j.shiftRow(-N);var H=this.getFoldLine(O);H&&H!==j&&(H.merge(j),j=H),V=W.indexOf(j)+1}for(V;V=T.row&&j.shiftRow(-N)}I=O}else{var G=Array(N);G.unshift(O,0);var Q=$?this.$wrapData:this.$rowLengthCache;Q.splice.apply(Q,G);var W=this.$foldData,j=this.getFoldLine(O),V=0;if(j){var U=j.range.compareInside(R.row,R.column);U==0?(j=j.split(R.row,R.column),j&&(j.shiftRow(N),j.addRemoveChars(I,0,T.column-R.column))):U==-1&&(j.addRemoveChars(O,0,T.column-R.column),j.shiftRow(N)),V=W.indexOf(j)+1}for(V;V=O&&j.shiftRow(N)}}else{N=Math.abs(A.start.column-A.end.column),w==="remove"&&(P=this.getFoldsInRange(A),this.removeFolds(P),N=-N);var j=this.getFoldLine(O);j&&j.addRemoveChars(O,R.column,N)}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),P},_.prototype.$updateRowLengthCache=function(A,$){this.$rowLengthCache[A]=null,this.$rowLengthCache[$]=null},_.prototype.$updateWrapData=function(A,$){var w=this.doc.getAllLines(),R=this.getTabSize(),T=this.$wrapData,O=this.$wrapLimit,I,N,P=A;for($=Math.min($,w.length-1);P<=$;)N=this.getFoldLine(P,N),N?(I=[],N.walk((function(W,j,V,H){var G;if(W!=null){G=this.$getDisplayTokens(W,I.length),G[0]=C;for(var Q=1;Q$-H;){var G=O+$-H;if(A[G-1]>=E&&A[G]>=E){V(G);continue}if(A[G]==C||A[G]==S){for(G;G!=O-1&&A[G]!=C;G--);if(G>O){V(G);continue}for(G=O+$,G;G>2)),O-1);G>Q&&A[G]Q&&A[G]Q&&A[G]==b;)G--}else for(;G>Q&&A[G]Q){V(++G);continue}G=O+$,A[G]==k&&G--,V(G-H)}return R},_.prototype.$getDisplayTokens=function(A,$){var w=[],R;$=$||0;for(var T=0;T39&&O<48||O>57&&O<64?w.push(b):O>=4352&&M(O)?w.push(y,k):w.push(y)}return w},_.prototype.$getStringScreenWidth=function(A,$,w){if($==0)return[0,0];$==null&&($=1/0),w=w||0;var R,T;for(T=0;T=4352&&M(R)?w+=2:w+=1,!(w>$));T++);return[w,T]},_.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+$},_.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},_.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},_.prototype.getScreenLastRowColumn=function(A){var $=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},_.prototype.getDocumentLastRowColumn=function(A,$){var w=this.documentToScreenRow(A,$);return this.getScreenLastRowColumn(w)},_.prototype.getDocumentLastRowColumnPosition=function(A,$){var w=this.documentToScreenRow(A,$);return this.screenToDocumentPosition(w,Number.MAX_VALUE/10)},_.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},_.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},_.prototype.screenToDocumentRow=function(A,$){return this.screenToDocumentPosition(A,$).row},_.prototype.screenToDocumentColumn=function(A,$){return this.screenToDocumentPosition(A,$).column},_.prototype.screenToDocumentPosition=function(A,$,w){if(A<0)return{row:0,column:0};var R,T=0,O=0,I,N=0,P=0,W=this.$screenRowCache,j=this.$getRowCacheIndex(W,A),V=W.length;if(V&&j>=0)var N=W[j],T=this.$docRowCache[j],H=A>W[V-1];else var H=!V;for(var G=this.getLength()-1,Q=this.getNextFoldLine(T),U=Q?Q.start.row:1/0;N<=A&&(P=this.getRowLength(T),!(N+P>A||T>=G));)N+=P,T++,T>U&&(T=Q.end.row+1,Q=this.getNextFoldLine(T,Q),U=Q?Q.start.row:1/0),H&&(this.$docRowCache.push(T),this.$screenRowCache.push(N));if(Q&&Q.start.row<=T)R=this.getFoldDisplayLine(Q),T=Q.start.row;else{if(N+P<=A||T>G)return{row:G,column:this.getLine(G).length};R=this.getLine(T),Q=null}var X=0,Y=Math.floor(A-N);if(this.$useWrapMode){var z=this.$wrapData[T];z&&(I=z[Y],Y>0&&z.length&&(X=z.indent,O=z[Y-1]||z[z.length-1],R=R.substring(O)))}return w!==void 0&&this.$bidiHandler.isBidiRow(N+Y,T,Y)&&($=this.$bidiHandler.offsetToCol(w)),O+=this.$getStringScreenWidth(R,$-X)[1],this.$useWrapMode&&O>=I&&(O=I-1),Q?Q.idxToPosition(O):{row:T,column:O}},_.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 R=0,T=null,O=null;O=this.getFoldAt(A,$,1),O&&(A=O.start.row,$=O.start.column);var I,N=0,P=this.$docRowCache,W=this.$getRowCacheIndex(P,A),j=P.length;if(j&&W>=0)var N=P[W],R=this.$screenRowCache[W],V=A>P[j-1];else var V=!j;for(var H=this.getNextFoldLine(N),G=H?H.start.row:1/0;N=G){if(I=H.end.row+1,I>A)break;H=this.getNextFoldLine(I,H),G=H?H.start.row:1/0}else I=N+1;R+=this.getRowLength(N),N=I,V&&(this.$docRowCache.push(N),this.$screenRowCache.push(R))}var Q="";H&&N>=G?(Q=this.getFoldDisplayLine(H,A,$),T=H.start.row):(Q=this.getLine(A).substring(0,$),T=A);var U=0;if(this.$useWrapMode){var X=this.$wrapData[T];if(X){for(var Y=0;Q.length>=X[Y];)R++,Y++;Q=Q.substring(X[Y-1]||0,Q.length),U=Y>0?X.indent:0}}return this.lineWidgets&&this.lineWidgets[N]&&this.lineWidgets[N].rowsAbove&&(R+=this.lineWidgets[N].rowsAbove),{row:R,column:U+this.$getStringScreenWidth(Q)[0]}},_.prototype.documentToScreenColumn=function(A,$){return this.documentToScreenPosition(A,$).column},_.prototype.documentToScreenRow=function(A,$){return this.documentToScreenPosition(A,$).row},_.prototype.getScreenLength=function(){var A=0,$=null;if(this.$useWrapMode)for(var T=this.$wrapData.length,O=0,R=0,$=this.$foldData[R++],I=$?$.start.row:1/0;OI&&(O=$.end.row+1,$=this.$foldData[R++],I=$?$.start.row:1/0)}else{A=this.getLength();for(var w=this.$foldData,R=0;Rw));O++);return[R,O]})},_.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()},_}();v.$uid=0,v.prototype.$modes=o.$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,s.implement(v.prototype,p);var y=1,k=2,C=3,S=4,b=9,E=10,L=11,x=12;function M(_){return _<4352?!1:_>=4352&&_<=4447||_>=4515&&_<=4519||_>=4602&&_<=4607||_>=9001&&_<=9002||_>=11904&&_<=11929||_>=11931&&_<=12019||_>=12032&&_<=12245||_>=12272&&_<=12283||_>=12288&&_<=12350||_>=12353&&_<=12438||_>=12441&&_<=12543||_>=12549&&_<=12589||_>=12593&&_<=12686||_>=12688&&_<=12730||_>=12736&&_<=12771||_>=12784&&_<=12830||_>=12832&&_<=12871||_>=12880&&_<=13054||_>=13056&&_<=19903||_>=19968&&_<=42124||_>=42128&&_<=42182||_>=43360&&_<=43388||_>=44032&&_<=55203||_>=55216&&_<=55238||_>=55243&&_<=55291||_>=63744&&_<=64255||_>=65040&&_<=65049||_>=65072&&_<=65106||_>=65108&&_<=65126||_>=65128&&_<=65131||_>=65281&&_<=65376||_>=65504&&_<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),o.defineOptions(v.prototype,"session",{wrap:{set:function(_){if(!_||_=="off"?_=!1:_=="free"?_=!0:_=="printMargin"?_=-1:typeof _=="string"&&(_=parseInt(_,10)||!1),this.$wrap!=_)if(this.$wrap=_,!_)this.setUseWrapMode(!1);else{var A=typeof _=="number"?_: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(_){_=_=="auto"?this.$mode.type!="text":_!="text",_!=this.$wrapAsCode&&(this.$wrapAsCode=_,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(_){this.$useWorker=_,this.$stopWorker(),_&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(_){_=parseInt(_),_>0&&this.$tabSize!==_&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=_,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(_){this.setFoldStyle(_)},handlesSet:!0},overwrite:{set:function(_){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(_){this.doc.setNewLineMode(_)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(_){this.setMode(_)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,r,l){var s=n("./lib/lang"),u=n("./lib/oop"),d=n("./range").Range,o=function(){function a(){this.$options={}}return a.prototype.set=function(i){return u.mixin(this.$options,i),this},a.prototype.getOptions=function(){return s.copyObject(this.$options)},a.prototype.setOptions=function(i){this.$options=i},a.prototype.find=function(i){var c=this.$options,h=this.$matchIterator(i,c);if(!h)return!1;var f=null;return h.forEach(function(g,m,v,y){return f=new d(g,m,v,y),m==y&&c.start&&c.start.start&&c.skipCurrent!=!1&&f.isEqual(c.start)?(f=null,!1):!0}),f},a.prototype.findAll=function(i){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var h=c.range,f=h?i.getLines(h.start.row,h.end.row):i.doc.getAllLines(),g=[],m=c.re;if(c.$isMultiLine){var v=m.length,y=f.length-v,k;e:for(var C=m.offset||0;C<=y;C++){for(var S=0;SL||(g.push(k=new d(C,L,C+v-1,x)),v>2&&(C=C+v-2))}}else for(var M=0;Mw&&g[S].end.row==R;)S--;for(g=g.slice(M,S+1),M=0,S=g.length;M=k;x--)if(E(x,Number.MAX_VALUE,L))return;if(c.wrap!=!1){for(x=C,k=y.row;x>=k;x--)if(E(x,Number.MAX_VALUE,L))return}}};else var S=function(x){var M=y.row;if(!E(M,y.column,x)){for(M=M+1;M<=C;M++)if(E(M,0,x))return;if(c.wrap!=!1){for(M=k,C=y.row;M<=C;M++)if(E(M,0,x))return}}};if(c.$isMultiLine)var b=h.length,E=function(L,x,M){var _=f?L-b+1:L;if(!(_<0||_+b>i.getLength())){var A=i.getLine(_),$=A.search(h[0]);if(!(!f&&$x)&&M(_,$,_+b-1,R))return!0}}};else if(f)var E=function(x,M,_){var A=i.getLine(x),$=[],w,R=0;for(h.lastIndex=0;w=h.exec(A);){var T=w[0].length;if(R=w.index,!T){if(R>=A.length)break;h.lastIndex=R+=s.skipEmptyMatch(A,R,m)}if(w.index+T>M)break;$.push(w.index,T)}for(var O=$.length-1;O>=0;O-=2){var I=$[O-1],T=$[O];if(_(x,I,x,I+T))return!0}};else var E=function(x,M,_){var A=i.getLine(x),$,w;for(h.lastIndex=M;w=h.exec(A);){var R=w[0].length;if($=w.index,_(x,$,x,$+R))return!0;if(!R&&(h.lastIndex=$+=s.skipEmptyMatch(A,$,m),$>=A.length))return!1}};return{forEach:S}},a}();function p(a,i){var c=s.supportsLookbehind();function h(v,y){y===void 0&&(y=!0);var k=c&&i.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return k.test(v)||i.regExp?c&&i.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var f=Array.from(a),g=f[0],m=f[f.length-1];return h(g)+a+h(m,!1)}r.Search=o}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,r,l){var s=this&&this.__extends||function(){var c=function(h,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(g[v]=m[v])},c(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(h,f);function g(){this.constructor=h}h.prototype=f===null?Object.create(f):(g.prototype=f.prototype,new g)}}(),u=n("../lib/keys"),d=n("../lib/useragent"),o=u.KEY_MODS,p=function(){function c(h,f){this.$init(h,f,!1)}return c.prototype.$init=function(h,f,g){this.platform=f||(d.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(h),this.$singleCommand=g},c.prototype.addCommand=function(h){this.commands[h.name]&&this.removeCommand(h),this.commands[h.name]=h,h.bindKey&&this._buildKeyHash(h)},c.prototype.removeCommand=function(h,f){var g=h&&(typeof h=="string"?h:h.name);h=this.commands[g],f||delete this.commands[g];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==h)delete m[v];else if(Array.isArray(y)){var k=y.indexOf(h);k!=-1&&(y.splice(k,1),y.length==1&&(m[v]=y[0]))}}},c.prototype.bindKey=function(h,f,g){if(typeof h=="object"&&h&&(g==null&&(g=h.position),h=h[this.platform]),!!h){if(typeof f=="function")return this.addCommand({exec:f,bindKey:h,name:f.name||h});h.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var b=this.parseKeys(S),E=o[b.hashId]+b.key;v+=(v?" ":"")+E,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var k=this.parseKeys(m),C=o[k.hashId]+k.key;this._addCommandToBinding(v+C,f,g)},this)}},c.prototype._addCommandToBinding=function(h,f,g){var m=this.commandKeyBinding,v;if(!f)delete m[h];else if(!m[h]||this.$singleCommand)m[h]=f;else{Array.isArray(m[h])?(v=m[h].indexOf(f))!=-1&&m[h].splice(v,1):m[h]=[m[h]],typeof g!="number"&&(g=a(f));var y=m[h];for(v=0;vg)break}y.splice(v,0,f)}},c.prototype.addCommands=function(h){h&&Object.keys(h).forEach(function(f){var g=h[f];if(g){if(typeof g=="string")return this.bindKey(g,f);typeof g=="function"&&(g={exec:g}),typeof g=="object"&&(g.name||(g.name=f),this.addCommand(g))}},this)},c.prototype.removeCommands=function(h){Object.keys(h).forEach(function(f){this.removeCommand(h[f])},this)},c.prototype.bindKeys=function(h){Object.keys(h).forEach(function(f){this.bindKey(f,h[f])},this)},c.prototype._buildKeyHash=function(h){this.bindKey(h.bindKey,h)},c.prototype.parseKeys=function(h){var f=h.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),g=f.pop(),m=u[g];if(u.FUNCTION_KEYS[m])g=u.FUNCTION_KEYS[m].toLowerCase();else if(f.length){if(f.length==1&&f[0]=="shift")return{key:g.toUpperCase(),hashId:-1}}else return{key:g,hashId:-1};for(var v=0,y=f.length;y--;){var k=u.KEY_MODS[f[y]];if(k==null)return typeof console<"u"&&console.error("invalid modifier "+f[y]+" in "+h),!1;v|=k}return{key:g,hashId:v}},c.prototype.findKeyCommand=function(h,f){var g=o[h]+f;return this.commandKeyBinding[g]},c.prototype.handleKeyboard=function(h,f,g,m){if(!(m<0)){var v=o[f]+g,y=this.commandKeyBinding[v];return h.$keyChain&&(h.$keyChain+=" "+v,y=this.commandKeyBinding[h.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(h.$keyChain=h.$keyChain||v,{command:"null"}):(h.$keyChain&&((!f||f==4)&&g.length==1?h.$keyChain=h.$keyChain.slice(0,-v.length-1):(f==-1||m>0)&&(h.$keyChain="")),{command:y})}},c.prototype.getStatusText=function(h,f){return f.$keyChain||""},c}();function a(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var i=function(c){s(h,c);function h(f,g){var m=c.call(this,f,g)||this;return m.$singleCommand=!0,m}return h}(p);i.call=function(c,h,f){p.prototype.$init.call(c,h,f,!0)},p.call=function(c,h,f){p.prototype.$init.call(c,h,f,!1)},r.HashHandler=i,r.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,r,l){var s=this&&this.__extends||function(){var a=function(i,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(h[g]=f[g])},a(i,c)};return function(i,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(i,c);function h(){this.constructor=i}i.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}}(),u=n("../lib/oop"),d=n("../keyboard/hash_handler").MultiHashHandler,o=n("../lib/event_emitter").EventEmitter,p=function(a){s(i,a);function i(c,h){var f=a.call(this,h,c)||this;return f.byName=f.commands,f.setDefaultHandler("exec",function(g){return g.args?g.command.exec(g.editor,g.args,g.event,!1):g.command.exec(g.editor,{},g.event,!0)}),f}return i.prototype.exec=function(c,h,f){if(Array.isArray(c)){for(var g=c.length;g--;)if(this.exec(c[g],h,f))return!0;return!1}if(typeof c=="string"&&(c=this.commands[c]),!c||h&&h.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(h))return!1;var m={editor:h,command:c,args:f};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},i.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._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(h){this.macro.push([h.command,h.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},i.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(h){typeof h=="string"?this.exec(h,c):this.exec(h[0],c,h[1])},this)}finally{this.$inReplay=!1}}},i.prototype.trimMacro=function(c){return c.map(function(h){return typeof h[0]!="string"&&(h[0]=h[0].name),h[1]||(h=h[0]),h})},i}(d);u.implement(p.prototype,o),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,r,l){var s=n("../lib/lang"),u=n("../config"),d=n("../range").Range;function o(a,i){return{win:a,mac:i}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:o("Ctrl-,","Command-,"),exec:function(a){u.loadModule("ace/ext/settings_menu",function(i){i.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:o("Alt-E","F4"),exec:function(a){u.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:o("Alt-Shift-E","Shift-F4"),exec:function(a){u.loadModule("ace/ext/error_marker",function(i){i.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:o("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:o(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:o("Ctrl-L","Command-L"),exec:function(a,i){typeof i=="number"&&!isNaN(i)&&a.gotoLine(i),a.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:o("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:o("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:o("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:o("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:o("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:o("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:o("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:o("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:o("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:o("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:o("Ctrl-F","Command-F"),exec:function(a){u.loadModule("ace/ext/searchbox",function(i){i.Search(a)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:o("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:o("Ctrl-Home","Command-Home|Command-Up"),exec:function(a){a.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:o("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:o("Up","Up|Ctrl-P"),exec:function(a,i){a.navigateUp(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:o("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:o("Ctrl-End","Command-End|Command-Down"),exec:function(a){a.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:o("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:o("Down","Down|Ctrl-N"),exec:function(a,i){a.navigateDown(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:o("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:o("Ctrl-Left","Option-Left"),exec:function(a){a.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:o("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:o("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:o("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:o("Left","Left|Ctrl-B"),exec:function(a,i){a.navigateLeft(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:o("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:o("Ctrl-Right","Option-Right"),exec:function(a){a.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:o("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:o("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:o("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:o("Right","Right|Ctrl-F"),exec:function(a,i){a.navigateRight(i.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:o(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:o("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:o(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:o("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:o("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:o("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:o("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:o("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:o("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:o("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:o(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(a){},readOnly:!0},{name:"cut",description:"Cut",exec:function(a){var i=a.$copyWithEmptySelection&&a.selection.isEmpty(),c=i?a.selection.getLineRange():a.selection.getRange();a._emit("cut",c),c.isEmpty()||a.session.remove(c),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,i){a.$handlePaste(i)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:o("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:o("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:o("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:o("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:o("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:o("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:o("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:o("Ctrl-H","Command-Option-F"),exec:function(a){u.loadModule("ace/ext/searchbox",function(i){i.Search(a,!0)})}},{name:"undo",description:"Undo",bindKey:o("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",description:"Redo",bindKey:o("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:o("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:o("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:o("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:o("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:o("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:o("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:o("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:o("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:o("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:o("Ctrl-Shift-Backspace",null),exec:function(a){var i=a.selection.getRange();i.start.column=0,a.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:o("Ctrl-Shift-Delete",null),exec:function(a){var i=a.selection.getRange();i.end.column=Number.MAX_VALUE,a.session.remove(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:o("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:o("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:o("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:o("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:o("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:o("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(a,i){a.insert(i)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,i){a.insert(s.stringRepeat(i.text||"",i.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:o(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:o("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:o("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:o("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:o(null,null),exec:function(a){a.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:o("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var i=a.selection.getRange();i.start.column=i.end.column=0,i.end.row++,a.selection.setRange(i,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:o("Ctrl+F3","F3"),exec:function(a){a.openLink()}},{name:"joinlines",description:"Join lines",bindKey:o(null,null),exec:function(a){for(var i=a.selection.isBackwards(),c=i?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),h=i?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),f=a.session.doc.getLine(c.row).length,g=a.session.doc.getTextRange(a.selection.getRange()),m=g.replace(/\n\s*/," ").length,v=a.session.doc.getLine(c.row),y=c.row+1;y<=h.row+1;y++){var k=s.stringTrimLeft(s.stringTrimRight(a.session.doc.getLine(y)));k.length!==0&&(k=" "+k),v+=k}h.row+10?(a.selection.moveCursorTo(c.row,c.column),a.selection.selectTo(c.row,c.column+m)):(f=a.session.doc.getLine(c.row).length>f?f+1:f,a.selection.moveCursorTo(c.row,f))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:o(null,null),exec:function(a){var i=a.session.doc.getLength()-1,c=a.session.doc.getLine(i).length,h=a.selection.rangeList.ranges,f=[];h.length<1&&(h=[a.selection.getRange()]);for(var g=0;gp[a].column&&a++,h.unshift(a,0),p.splice.apply(p,h),this.$updateRows()}}},d.prototype.$updateRows=function(){var o=this.session.lineWidgets;if(o){var p=!0;o.forEach(function(a,i){if(a)for(p=!1,a.row=i;a.$oldWidget;)a.$oldWidget.row=i,a=a.$oldWidget}),p&&(this.session.lineWidgets=null)}},d.prototype.$registerLineWidget=function(o){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[o.row];return p&&(o.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[o.row]=o,o},d.prototype.addLineWidget=function(o){if(this.$registerLineWidget(o),o.session=this.session,!this.editor)return o;var p=this.editor.renderer;o.html&&!o.el&&(o.el=s.createElement("div"),o.el.innerHTML=o.html),o.text&&!o.el&&(o.el=s.createElement("div"),o.el.textContent=o.text),o.el&&(s.addCssClass(o.el,"ace_lineWidgetContainer"),o.className&&s.addCssClass(o.el,o.className),o.el.style.position="absolute",o.el.style.zIndex="5",p.container.appendChild(o.el),o._inDocument=!0,o.coverGutter||(o.el.style.zIndex="3"),o.pixelHeight==null&&(o.pixelHeight=o.el.offsetHeight)),o.rowCount==null&&(o.rowCount=o.pixelHeight/p.layerConfig.lineHeight);var a=this.session.getFoldAt(o.row,0);if(o.$fold=a,a){var i=this.session.lineWidgets;o.row==a.end.row&&!i[a.start.row]?i[a.start.row]=o:o.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(o),o},d.prototype.removeLineWidget=function(o){if(o._inDocument=!1,o.session=null,o.el&&o.el.parentNode&&o.el.parentNode.removeChild(o.el),o.editor&&o.editor.destroy)try{o.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[o.row];if(p==o)this.session.lineWidgets[o.row]=o.$oldWidget,o.$oldWidget&&this.onWidgetChanged(o.$oldWidget);else for(;p;){if(p.$oldWidget==o){p.$oldWidget=o.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:o.row}}}),this.$updateRows()},d.prototype.getWidgetsAtRow=function(o){for(var p=this.session.lineWidgets,a=p&&p[o],i=[];a;)i.push(a),a=a.$oldWidget;return i},d.prototype.onWidgetChanged=function(o){this.session._changedWidgets.push(o),this.editor&&this.editor.renderer.updateFull()},d.prototype.measureWidgets=function(o,p){var a=this.session._changedWidgets,i=p.layerConfig;if(!(!a||!a.length)){for(var c=1/0,h=0;h0&&!i[c];)c--;this.firstRow=a.firstRow,this.lastRow=a.lastRow,p.$cursorLayer.config=a;for(var f=c;f<=h;f++){var g=i[f];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,p.container.appendChild(g.el));var m=p.$cursorLayer.getPixelPosition({row:f,column:0},!0).top;g.coverLine||(m+=a.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=m-a.offset+"px";var v=g.coverGutter?0:p.gutterWidth;g.fixedWidth||(v-=p.scrollLeft),g.el.style.left=v+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=a.width+2*a.padding+"px"),g.fixedWidth?g.el.style.right=p.scrollBar.getWidth()+"px":g.el.style.right=""}}}},d}();r.LineWidgets=u}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,r,l){var s=n("../lib/keys"),u=n("../mouse/default_gutter_handler").GutterTooltip,d=function(){function p(a){this.editor=a,this.gutterLayer=a.renderer.$gutterLayer,this.element=a.renderer.$gutter,this.lines=a.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new u(this.editor)}return p.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))},p.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))},p.prototype.$onGutterKeyDown=function(a){if(this.annotationTooltip.isOpen){a.preventDefault(),a.keyCode===s.escape&&this.annotationTooltip.hideTooltip();return}if(a.target===this.element){if(a.keyCode!=s.enter)return;a.preventDefault();var i=this.editor.getCursorPosition().row;this.editor.isRowVisible(i)||this.editor.scrollToLine(i,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),h=this.$findNearestFoldWidget(c),f=this.$findNearestAnnotation(c);if(!(h===null&&f===null)){if(h===null&&f!==null){this.activeRowIndex=f,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(h!==null&&f===null){this.activeRowIndex=h,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(f-c)0||a+i=0&&this.$isFoldWidgetVisible(a-i))return a-i;if(a+i<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(a+i))return a+i}return null},p.prototype.$findNearestAnnotation=function(a){if(this.$isAnnotationVisible(a))return a;for(var i=0;a-i>0||a+i=0&&this.$isAnnotationVisible(a-i))return a-i;if(a+i<=this.lines.getLength()-1&&this.$isAnnotationVisible(a+i))return a+i}return null},p.prototype.$focusFoldWidget=function(a){if(a!=null){var i=this.$getFoldWidget(a);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},p.prototype.$focusAnnotation=function(a){if(a!=null){var i=this.$getAnnotation(a);i.classList.add(this.editor.renderer.keyboardFocusClassName),i.focus()}},p.prototype.$blurFoldWidget=function(a){var i=this.$getFoldWidget(a);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},p.prototype.$blurAnnotation=function(a){var i=this.$getAnnotation(a);i.classList.remove(this.editor.renderer.keyboardFocusClassName),i.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var a=this.activeRowIndex;a>0;)if(a--,this.$isFoldWidgetVisible(a)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var a=this.activeRowIndex;a0;)if(a--,this.$isAnnotationVisible(a)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var a=this.activeRowIndex;a=$.length&&($=void 0),{value:$&&$[T++],done:!$}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},u=n("./lib/oop"),d=n("./lib/dom"),o=n("./lib/lang"),p=n("./lib/useragent"),a=n("./keyboard/textinput").TextInput,i=n("./mouse/mouse_handler").MouseHandler,c=n("./mouse/fold_handler").FoldHandler,h=n("./keyboard/keybinding").KeyBinding,f=n("./edit_session").EditSession,g=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,k=n("./commands/default_commands").commands,C=n("./config"),S=n("./token_iterator").TokenIterator,b=n("./line_widgets").LineWidgets,E=n("./keyboard/gutter_handler").GutterKeyboardHandler,L=n("./config").nls,x=n("./clipboard"),M=n("./lib/keys"),_=function(){function $(w,R,T){this.session,this.$toDestroy=[];var O=w.getContainerElement();this.container=O,this.renderer=w,this.id="editor"+ ++$.$uid,this.commands=new y(p.isMac?"mac":"win",k),typeof document=="object"&&(this.textInput=new a(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new i(this),new c(this)),this.keyBinding=new h(this),this.$search=new g().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,N){N._$emitInputEvent.schedule(31)}),this.setSession(R||T&&T.session||new f("")),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=o.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 R=this.curOp.command,T=R&&R.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 N=this.selection.toJSON();this.curOp.selectionAfter=N,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(N),this.prevOp=this.curOp,this.curOp=null}},$.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var R=this.prevOp,T=this.$mergeableCommands,O=R.command&&w.command.name==R.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(R.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,R){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),R&&R()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),R&&R()},$.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},$.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var R=this.session;if(R){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:R}),this.curOp=null,R&&R._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,R){return this.session.doc.setValue(w),R?R==1?this.navigateFileEnd():R==-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,R){this.renderer.setTheme(w,R)},$.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")||d.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 R=w.session;if(!(!R||R.destroyed)){R.$bracketHighlight&&(R.$bracketHighlight.markerIds.forEach(function(H){R.removeMarker(H)}),R.$bracketHighlight=null);var T=w.getCursorPosition(),O=w.getKeyboardHandler(),I=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(w),N=R.getMatchingBracketRanges(T,I);if(!N){var P=new S(R,T.row,T.column),W=P.getCurrentToken();if(W&&/\b(?:tag-open|tag-name)/.test(W.type)){var j=R.getMatchingTags(T);j&&(N=[j.openTagName,j.closeTagName])}}if(!N&&R.$mode.getMatching&&(N=R.$mode.getMatching(w.session)),!N){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var V="ace_bracket";Array.isArray(N)?N.length==1&&(V="ace_error_bracket"):N=[N],N.length==2&&(m.comparePoints(N[0].end,N[1].start)==0?N=[m.fromPoints(N[0].start,N[1].end)]:m.comparePoints(N[0].start,N[1].end)==0&&(N=[m.fromPoints(N[1].start,N[0].end)])),R.$bracketHighlight={ranges:N,markerIds:N.map(function(H){return R.addMarker(H,V,"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 R=this.session.$useWrapMode,T=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,T,R),this._signal("change",w),this.$cursorChange()},$.prototype.onTokenizerUpdate=function(w){var R=w.data;this.renderer.updateLines(R.first,R.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(),R;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(R=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(R=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(R=!1)),w.$highlightLineMarker&&!R)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&R){var T=new m(R.row,R.column,R.row,1/0);T.id=w.addMarker(T,"ace_active-line","screenLine"),w.$highlightLineMarker=T}else R&&(w.$highlightLineMarker.start.row=R.row,w.$highlightLineMarker.end.row=R.row,w.$highlightLineMarker.start.column=R.column,w._signal("changeBackMarker"))},$.prototype.onSelectionChange=function(w){var R=this.session;if(R.$selectionMarker&&R.removeMarker(R.$selectionMarker),R.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var T=this.selection.getRange(),O=this.getSelectionStyle();R.$selectionMarker=R.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,R=this.getSelectionRange();if(!(R.isEmpty()||R.isMultiLine())){var T=R.start.column,O=R.end.column,I=w.getLine(R.start.row),N=I.substring(T,O);if(!(N.length>5e3||!/[\w\d]/.test(N))){var P=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:N}),W=I.substring(T-1,O+1);if(P.test(W))return P}}},$.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(),R=this.session.doc.getNewLineCharacter(),T=!1;if(!w&&this.$copyWithEmptySelection){T=!0;for(var O=this.selection.getAllRanges(),I=0;IH.search(/\S|$/)){var W=H.substr(I.column).search(/\S|$/);T.doc.removeInLine(I.row,I.column,I.column+W)}}this.clearSelection();var j=I.column,V=T.getState(I.row),H=T.getLine(I.row),G=O.checkOutdent(V,H,w);if(T.insert(I,w),N&&N.selection&&(N.selection.length==2?this.selection.setSelectionRange(new m(I.row,j+N.selection[0],I.row,j+N.selection[1])):this.selection.setSelectionRange(new m(I.row+N.selection[0],N.selection[1],I.row+N.selection[2],N.selection[3]))),this.$enableAutoIndent){if(T.getDocument().isNewLine(w)){var Q=O.getNextLineIndent(V,H.slice(0,I.column),T.getTabString());T.insert({row:I.row+1,column:0},Q)}G&&O.autoOutdent(V,T,I.row)}},$.prototype.autoIndent=function(){for(var w=this.session,R=w.getMode(),T=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",I="",N="",P=w.getTabString(),W=0;W0&&(O=w.getState(H-1),I=w.getLine(H-1),N=R.getNextLineIndent(O,I,P));var G=w.getLine(H),Q=R.$getIndent(G);if(N!==Q){if(Q.length>0){var U=new m(H,0,H,Q.length);w.remove(U)}N.length>0&&w.insert({row:H,column:0},N)}R.autoOutdent(O,w,H)}},$.prototype.onTextInput=function(w,R){if(!R)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var T=this.applyComposition.bind(this,w,R);this.selection.rangeCount?this.forEachSelection(T):T(),this.endOperation()},$.prototype.applyComposition=function(w,R){if(R.extendLeft||R.extendRight){var T=this.selection.getRange();T.start.column-=R.extendLeft,T.end.column+=R.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),R.restoreStart||R.restoreEnd){var T=this.selection.getRange();T.start.column-=R.restoreStart,T.end.column-=R.restoreEnd,this.selection.setRange(T)}},$.prototype.onCommandKey=function(w,R,T){return this.keyBinding.onCommandKey(w,R,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 R=this.getSelectionRange();if(this.getBehavioursEnabled()){var T=this.session,O=T.getState(R.start.row),I=T.getMode().transformAction(O,"deletion",this,T,R);if(R.end.column===0){var N=T.getTextRange(R);if(N[N.length-1]==` `){var P=T.getLine(R.end.row);/^\s+$/.test(P)&&(R.end.column=P.length)}}I&&(R=I)}this.session.remove(R),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,R){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,R)},$.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},$.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),R=w.column;if(R!==0){var T=this.session.getLine(w.row),O,I;RW.toLowerCase()?1:0});for(var I=new m(0,0,0,0),O=w.first;O<=w.last;O++){var N=R.getLine(O);I.start.row=O,I.end.row=O,I.end.column=N.length,R.replace(I,T[O-w.first])}},$.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),R=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,R.first,R.last)},$.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),R=this.session.getState(w.row),T=this.getSelectionRange();this.session.getMode().toggleBlockComment(R,this.session,T,w)},$.prototype.getNumberAt=function(w,R){var T=/[\-]?[0-9]+(?:\.[0-9]+)?/g;T.lastIndex=0;for(var O=this.session.getLine(w);T.lastIndex=R){var N={value:I[0],start:I.index,end:I.index+I[0].length};return N}}return null},$.prototype.modifyNumber=function(w){var R=this.selection.getCursor().row,T=this.selection.getCursor().column,O=new m(R,T-1,R,T),I=this.session.getTextRange(O);if(!isNaN(parseFloat(I))&&isFinite(I)){var N=this.getNumberAt(R,T);if(N){var P=N.value.indexOf(".")>=0?N.start+N.value.indexOf(".")+1:N.end,W=N.start+N.value.length-P,j=parseFloat(N.value);j*=Math.pow(10,W),P!==N.end&&T=P&&N<=W&&(T=ee,j.selection.clearSelection(),j.moveCursorTo(w,P+O),j.selection.selectTo(w,W+O)),P=W});for(var V=this.$toggleWordPairs,H,G=0;G=W&&P<=j&&Q.match(/((?:https?|ftp):\/\/[\S]+)/)){V=Q.replace(/[\s:.,'";}\]]+$/,"");break}W=j}}catch(U){T={error:U}}finally{try{G&&!G.done&&(O=H.return)&&O.call(H)}finally{if(T)throw T.error}}return V},$.prototype.openLink=function(){var w=this.selection.getCursor(),R=this.findLinkAt(w.row,w.column);return R&&window.open(R,"_blank"),R!=null},$.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},$.prototype.duplicateSelection=function(){var w=this.selection,R=this.session,T=w.getRange(),O=w.isBackwards();if(T.isEmpty()){var I=T.start.row;R.duplicateLines(I,I)}else{var N=O?T.start:T.end,P=R.insert(N,R.getTextRange(T));T.start=N,T.end=P,w.setSelectionRange(T,O)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(w,R,T){return this.session.moveText(w,R,T)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(w,R){var T,O,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var N=I.toOrientedRange();T=this.$getSelectedRows(N),O=this.session.$moveLines(T.first,T.last,R?0:w),R&&w==-1&&(O=0),N.moveBy(O,0),I.fromOrientedRange(N)}else{var P=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var W=0,j=0,V=P.length,H=0;HU+1)break;U=X.last}for(H--,W=this.session.$moveLines(Q,U,R?0:w),R&&w==-1&&(G=H+1);G<=H;)P[G].moveBy(W,0),G++;R||(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,R){var T=this.renderer,O=this.renderer.layerConfig,I=w*Math.floor(O.height/O.lineHeight);R===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):R===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var N=T.scrollTop;T.scrollBy(0,I*O.lineHeight),R!=null&&T.scrollCursorIntoView(null,.5),T.animateScrolling(N)},$.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,R,T,O){this.renderer.scrollToLine(w,R,T,O)},$.prototype.centerSelection=function(){var w=this.getSelectionRange(),R={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(R,.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,R){this.selection.moveCursorTo(w,R)},$.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},$.prototype.jumpToMatching=function(w,R){var T=this.getCursorPosition(),O=new S(this.session,T.row,T.column),I=O.getCurrentToken(),N=0;I&&I.type.indexOf("tag-name")!==-1&&(I=O.stepBackward());var P=I||O.stepForward();if(P){var W,j=!1,V={},H=T.column-P.start,G,Q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(P.value.match(/[{}()\[\]]/g)){for(;H1?V[P.value]++:I.value==="=0;--N)this.$tryReplace(T[N],w)&&O++;return this.selection.setSelectionRange(I),O},$.prototype.$tryReplace=function(w,R){var T=this.session.getTextRange(w);return R=this.$search.replace(T,R),R!==null?(w.end=this.session.replace(w,R),w):null},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.prototype.find=function(w,R,T){R||(R={}),typeof w=="string"||w instanceof RegExp?R.needle=w:typeof w=="object"&&u.mixin(R,w);var O=this.selection.getRange();R.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(R),R.start||this.$search.set({start:O});var I=this.$search.find(this.session);if(R.preventScroll)return I;if(I)return this.revealRange(I,T),I;R.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},$.prototype.findNext=function(w,R){this.find({skipCurrent:!0,backwards:!1},w,R)},$.prototype.findPrevious=function(w,R){this.find(w,{skipCurrent:!0,backwards:!0},R)},$.prototype.revealRange=function(w,R){this.session.unfold(w),this.selection.setSelectionRange(w);var T=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),R!==!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 R,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 N=this.on("changeSelection",function(){O=!0}),P=this.renderer.on("beforeRender",function(){O&&(R=T.renderer.container.getBoundingClientRect())}),W=this.renderer.on("afterRender",function(){if(O&&R&&(T.isFocused()||T.searchBox&&T.searchBox.isFocused())){var j=T.renderer,V=j.$cursorLayer.$pixelPos,H=j.layerConfig,G=V.top-H.offset;V.top>=0&&G+R.top<0?O=!0:V.topwindow.innerHeight?O=!1:O=null,O!=null&&(I.style.top=G+"px",I.style.left=V.left+"px",I.style.height=H.lineHeight+"px",I.scrollIntoView(O)),O=R=null}});this.setAutoScrollEditorIntoView=function(j){j||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",N),this.renderer.off("afterRender",W),this.renderer.off("beforeRender",P))}}},$.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",R=this.renderer.$cursorLayer;R&&(R.setSmoothBlinking(/smooth/.test(w)),R.isBlinking=!this.$readOnly&&w!="wide",d.setCssClass(R.element,"ace_slim-cursors",/slim/.test(w)))},$.prototype.prompt=function(w,R,T){var O=this;C.loadModule("ace/ext/prompt",function(I){I.prompt(O,w,R,T)})},$}();_.$uid=0,_.prototype.curOp=null,_.prototype.prevOp={},_.prototype.$mergeableCommands=["backspace","del","insertstring"],_.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"],["&&","||"],["==","!="]],u.implement(_.prototype,v),C.defineOptions(_.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),d.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),d.addCssClass(this.container,"ace_hasPlaceholder");var R=d.createElement("div");R.className="ace_placeholder",R.textContent=this.$placeholder||"",this.renderer.placeholderNode=R,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},R=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(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",L("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",L("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",R.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",L("editor")),this.renderer.$gutter.setAttribute("aria-label",L("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 E(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",R.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,R){return Math.max(w.toString().length,(R.lastRow+1).toString().length,2)*R.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,$)}};r.Editor=_}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,r,l){var s=n("../lib/dom"),u=function(){function d(o,p){this.element=o,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return d.prototype.moveContainer=function(o){s.translate(this.element,0,-(o.firstRowScreen*o.lineHeight%this.canvasHeight)-o.offset*this.$offsetCoefficient)},d.prototype.pageChanged=function(o,p){return Math.floor(o.firstRowScreen*o.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},d.prototype.computeLineTop=function(o,p,a){var i=p.firstRowScreen*p.lineHeight,c=Math.floor(i/this.canvasHeight),h=a.documentToScreenRow(o,0)*p.lineHeight;return h-c*this.canvasHeight},d.prototype.computeLineHeight=function(o,p,a){return p.lineHeight*a.getRowLineCount(o)},d.prototype.getLength=function(){return this.cells.length},d.prototype.get=function(o){return this.cells[o]},d.prototype.shift=function(){this.$cacheCell(this.cells.shift())},d.prototype.pop=function(){this.$cacheCell(this.cells.pop())},d.prototype.push=function(o){if(Array.isArray(o)){this.cells.push.apply(this.cells,o);for(var p=s.createFragment(this.element),a=0;ak&&(b=y.end.row+1,y=g.getNextFoldLine(b,y),k=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}C=this.$lines.get(++S),C?C.row=b:(C=this.$lines.createCell(b,f,this.session,c),this.$lines.push(C)),this.$renderCell(C,f,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(f)},h.prototype.$updateGutterWidth=function(f){var g=this.session,m=g.gutterRenderer||this.$renderer,v=g.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||g.$useWrapMode)&&(y=g.getLength()+v-1);var k=m?m.getWidth(g,y,f):y.toString().length*f.characterWidth,C=this.$padding||this.$computePadding();k+=C.left+C.right,k!==this.gutterWidth&&!isNaN(k)&&(this.gutterWidth=k,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",k))},h.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var f=this.session.selection.getCursor();this.$cursorRow!==f.row&&(this.$cursorRow=f.row)}},h.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var f=this.session.selection.cursor.row;if(this.$cursorRow=f,!(this.$cursorCell&&this.$cursorCell.row==f)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var g=this.$lines.cells;this.$cursorCell=null;for(var m=0;m=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==g[m-1].row)v=g[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},h.prototype.scrollLines=function(f){var g=this.config;if(this.config=f,this.$updateCursorRow(),this.$lines.pageChanged(g,f))return this.update(f);this.$lines.moveContainer(f);var m=Math.min(f.lastRow+f.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!g||v0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();f.firstRowv&&this.$lines.push(this.$renderLines(f,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(f)},h.prototype.$renderLines=function(f,g,m){for(var v=[],y=g,k=this.session.getNextFoldLine(y),C=k?k.start.row:1/0;y>C&&(y=k.end.row+1,k=this.session.getNextFoldLine(y,k),C=k?k.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,f,this.session,c);this.$renderCell(S,f,k,y),v.push(S),y++}return v},h.prototype.$renderCell=function(f,g,m,v){var y=f.element,k=this.session,C=y.childNodes[0],S=y.childNodes[1],b=y.childNodes[2],E=b.firstChild,L=k.$firstLineNumber,x=k.$breakpoints,M=k.$decorations,_=k.gutterRenderer||this.$renderer,A=this.$showFoldWidgets&&k.foldWidgets,$=m?m.start.row:Number.MAX_VALUE,w=g.lineHeight+"px",R=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",T=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",O=(_?_.getText(k,v):v+L).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v=$&&this.$cursorRow<=m.end.row)&&(R+="ace_gutter-active-line ",this.$cursorCell!=f&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=f)),x[v]&&(R+=x[v]),M[v]&&(R+=M[v]),this.$annotations[v]&&v!==$&&(R+=this.$annotations[v].className),A){var I=A[v];I==null&&(I=A[v]=k.getFoldWidget(v))}if(I){var N="ace_fold-widget ace_"+I,P=I=="start"&&v==$&&vm.right-g.right)return"foldWidgets"},h}();i.prototype.$fixedWidth=!1,i.prototype.$highlightGutterLine=!0,i.prototype.$renderer="",i.prototype.$showLineNumbers=!0,i.prototype.$showFoldWidgets=!0,u.implement(i.prototype,o);function c(h){var f=document.createTextNode("");h.appendChild(f);var g=s.createElement("span");h.appendChild(g);var m=s.createElement("span");h.appendChild(m);var v=s.createElement("span");return m.appendChild(v),h}r.Gutter=i}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,r,l){var s=n("../range").Range,u=n("../lib/dom"),d=function(){function p(a){this.element=u.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}return p.prototype.setPadding=function(a){this.$padding=a},p.prototype.setSession=function(a){this.session=a},p.prototype.setMarkers=function(a){this.markers=a},p.prototype.elt=function(a,i){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=i,c.className=a},p.prototype.update=function(a){if(a){this.config=a,this.i=0;var i;for(var c in this.markers){var h=this.markers[c];if(!h.range){h.update(i,this,this.session,a);continue}var f=h.range.clipRows(a.firstRow,a.lastRow);if(!f.isEmpty())if(f=f.toScreenRange(this.session),h.renderer){var g=this.$getTop(f.start.row,a),m=this.$padding+f.start.column*a.characterWidth;h.renderer(i,f,m,g,a)}else h.type=="fullLine"?this.drawFullLineMarker(i,f,h.clazz,a):h.type=="screenLine"?this.drawScreenLineMarker(i,f,h.clazz,a):f.isMultiLine()?h.type=="text"?this.drawTextMarker(i,f,h.clazz,a):this.drawMultiLineMarker(i,f,h.clazz,a):this.drawSingleLineMarker(i,f,h.clazz+" ace_start ace_br15",a)}if(this.i!=-1)for(;this.iS,y==v),h,y==v?0:1,f)},p.prototype.drawMultiLineMarker=function(a,i,c,h,f){var g=this.$padding,m=h.lineHeight,v=this.$getTop(i.start.row,h),y=g+i.start.column*h.characterWidth;if(f=f||"",this.session.$bidiHandler.isBidiRow(i.start.row)){var k=i.clone();k.end.row=k.start.row,k.end.column=this.session.getLine(k.start.row).length,this.drawBidiSingleLineMarker(a,k,c+" ace_br1 ace_start",h,null,f)}else this.elt(c+" ace_br1 ace_start","height:"+m+"px;right:0;top:"+v+"px;left:"+y+"px;"+(f||""));if(this.session.$bidiHandler.isBidiRow(i.end.row)){var k=i.clone();k.start.row=k.end.row,k.start.column=0,this.drawBidiSingleLineMarker(a,k,c+" ace_br12",h,null,f)}else{v=this.$getTop(i.end.row,h);var C=i.end.column*h.characterWidth;this.elt(c+" ace_br12","height:"+m+"px;width:"+C+"px;top:"+v+"px;left:"+g+"px;"+(f||""))}if(m=(i.end.row-i.start.row-1)*h.lineHeight,!(m<=0)){v=this.$getTop(i.start.row+1,h);var S=(i.start.column?1:0)|(i.end.column?0:8);this.elt(c+(S?" ace_br"+S:""),"height:"+m+"px;right:0;top:"+v+"px;left:"+g+"px;"+(f||""))}},p.prototype.drawSingleLineMarker=function(a,i,c,h,f,g){if(this.session.$bidiHandler.isBidiRow(i.start.row))return this.drawBidiSingleLineMarker(a,i,c,h,f,g);var m=h.lineHeight,v=(i.end.column+(f||0)-i.start.column)*h.characterWidth,y=this.$getTop(i.start.row,h),k=this.$padding+i.start.column*h.characterWidth;this.elt(c,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+k+"px;"+(g||""))},p.prototype.drawBidiSingleLineMarker=function(a,i,c,h,f,g){var m=h.lineHeight,v=this.$getTop(i.start.row,h),y=this.$padding,k=this.session.$bidiHandler.getSelections(i.start.column,i.end.column);k.forEach(function(C){this.elt(c,"height:"+m+"px;width:"+(C.width+(f||0))+"px;top:"+v+"px;left:"+(y+C.left)+"px;"+(g||""))},this)},p.prototype.drawFullLineMarker=function(a,i,c,h,f){var g=this.$getTop(i.start.row,h),m=h.lineHeight;i.start.row!=i.end.row&&(m+=this.$getTop(i.end.row,h)-g),this.elt(c,"height:"+m+"px;top:"+g+"px;left:0;right:0;"+(f||""))},p.prototype.drawScreenLineMarker=function(a,i,c,h,f){var g=this.$getTop(i.start.row,h),m=h.lineHeight;this.elt(c,"height:"+m+"px;top:"+g+"px;left:0;right:0;"+(f||""))},p}();d.prototype.$padding=0;function o(p,a,i,c){return(p?1:0)|(a?2:0)|(i?4:0)|(c?8:0)}r.Marker=d}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,r,l){var s=new Set(["text","rparen","lparen"]);r.isTextToken=function(u){return s.has(u)}}),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,r,l){var s=n("../lib/oop"),u=n("../lib/dom"),d=n("../lib/lang"),o=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,a=n("../config").nls,i=n("./text_util").isTextToken,c=function(){function h(f){this.dom=u,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",f.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new o(this.element)}return h.prototype.$updateEolChar=function(){var f=this.session.doc,g=f.getNewLineCharacter()==` `&&f.getNewLineMode()!="windows",m=g?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},h.prototype.setPadding=function(f){this.$padding=f,this.element.style.margin="0 "+f+"px"},h.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},h.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},h.prototype.$setFontMetrics=function(f){this.$fontMetrics=f,this.$fontMetrics.on("changeCharacterSize",(function(g){this._signal("changeCharacterSize",g)}).bind(this)),this.$pollSizeChanges()},h.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},h.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},h.prototype.setSession=function(f){this.session=f,f&&this.$computeTabString()},h.prototype.setShowInvisibles=function(f){return this.showInvisibles==f?!1:(this.showInvisibles=f,typeof f=="string"?(this.showSpaces=/tab/i.test(f),this.showTabs=/space/i.test(f),this.showEOL=/eol/i.test(f)):this.showSpaces=this.showTabs=this.showEOL=f,this.$computeTabString(),!0)},h.prototype.setDisplayIndentGuides=function(f){return this.displayIndentGuides==f?!1:(this.displayIndentGuides=f,this.$computeTabString(),!0)},h.prototype.setHighlightIndentGuides=function(f){return this.$highlightIndentGuides===f?!1:(this.$highlightIndentGuides=f,f)},h.prototype.$computeTabString=function(){var f=this.session.getTabSize();this.tabSize=f;for(var g=this.$tabStrings=[0],m=1;mL&&(b=E.end.row+1,E=this.session.getNextFoldLine(b,E),L=E?E.start.row:1/0),!(b>y);){var x=k[C++];if(x){this.dom.removeChildren(x),this.$renderLine(x,b,b==L?E:!1),S&&(x.style.top=this.$lines.computeLineTop(b,f,this.session)+"px");var M=f.lineHeight*this.session.getRowLength(b)+"px";x.style.height!=M&&(S=!0,x.style.height=M)}b++}if(S)for(;C0;y--)this.$lines.shift();if(g.lastRow>f.lastRow)for(var y=this.session.getFoldedRowCount(f.lastRow+1,g.lastRow);y>0;y--)this.$lines.pop();f.firstRowg.lastRow&&this.$lines.push(this.$renderLinesFragment(f,g.lastRow+1,f.lastRow)),this.$highlightIndentGuide()},h.prototype.$renderLinesFragment=function(f,g,m){for(var v=[],y=g,k=this.session.getNextFoldLine(y),C=k?k.start.row:1/0;y>C&&(y=k.end.row+1,k=this.session.getNextFoldLine(y,k),C=k?k.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,f,this.session),b=S.element;this.dom.removeChildren(b),u.setStyle(b.style,"height",this.$lines.computeLineHeight(y,f,this.session)+"px"),u.setStyle(b.style,"top",this.$lines.computeLineTop(y,f,this.session)+"px"),this.$renderLine(b,y,y==C?k:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(S),y++}return v},h.prototype.update=function(f){this.$lines.moveContainer(f),this.config=f;for(var g=f.firstRow,m=f.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(f,g,m))},h.prototype.$renderToken=function(f,g,m,v){for(var y=this,k=/(\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,b=0;S=k.exec(v);){var E=S[1],L=S[2],x=S[3],M=S[4],_=S[5];if(!(!y.showSpaces&&L)){var A=b!=S.index?v.slice(b,S.index):"";if(b=S.index+S[0].length,A&&C.appendChild(this.dom.createTextNode(A,this.element)),E){var $=y.session.getScreenTabSize(g+S.index);C.appendChild(y.$tabStrings[$].cloneNode(!0)),g+=$-1}else if(L)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=d.stringRepeat(y.SPACE_CHAR,L.length),C.appendChild(w)}else C.appendChild(this.dom.createTextNode(L,this.element));else if(x){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=d.stringRepeat(y.SPACE_CHAR,x.length),C.appendChild(w)}else if(M){g+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=y.showSpaces?y.SPACE_CHAR:M,C.appendChild(w)}else if(_){g+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=_,C.appendChild(w)}}}if(C.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),i(m.type))f.appendChild(C);else{var R="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",a("Unfold code"))),w.className=R,w.appendChild(C),f.appendChild(w)}return g+v.length},h.prototype.renderIndentGuide=function(f,g,m){var v=g.search(this.$indentGuideRe);if(v<=0||v>=m)return g;if(g[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,k=0;kk[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&f[g.row]!==""&&g.column===f[g.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=g.row+1;C0){for(var y=0;y=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,g)}}else for(var m=f.length-1;m>=0;m--){var v=f[m];if(this.$highlightIndentGuideMarker.end&&v.row=k;)C=this.$renderToken(S,C,E,L.substring(0,k-v)),L=L.substring(k-v),v=k,S=this.$createLineElement(),f.appendChild(S),S.appendChild(this.dom.createTextNode(d.stringRepeat(" ",m.indent),this.element)),y++,C=0,k=m[y]||Number.MAX_VALUE;L.length!=0&&(v+=L.length,C=this.$renderToken(S,C,E,L))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,C,null,"",!0)},h.prototype.$renderSimpleLine=function(f,g){for(var m=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(f,m,y,k);m=this.$renderToken(f,m,y,k)}}},h.prototype.$renderOverflowMessage=function(f,g,m,v,y){m&&this.$renderToken(f,g,m,v.slice(0,this.MAX_LINE_LENGTH-g));var k=this.dom.createElement("span");k.className="ace_inline_button ace_keyword ace_toggle_wrap",k.textContent=y?"":"",f.appendChild(k)},h.prototype.$renderLine=function(f,g,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(g)),m)var v=this.$getFoldLineTokens(g,m);else var v=this.session.getTokens(g);var y=f;if(v.length){var k=this.session.getRowSplitData(g);if(k&&k.length){this.$renderWrappedLine(f,v,k);var y=f.lastChild}else{var y=f;this.$useLineGroups()&&(y=this.$createLineElement(),f.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),f.appendChild(y));if(this.showEOL&&y){m&&(g=m.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=g==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(C)}},h.prototype.$getFoldLineTokens=function(f,g){var m=this.session,v=[];function y(C,S,b){for(var E=0,L=0;L+C[E].value.lengthb-S&&(x=x.substring(0,b-S)),v.push({type:C[E].type,value:x}),L=S+x.length,E+=1}for(;Lb?v.push({type:C[E].type,value:x.substring(0,b-L)}):v.push(C[E]),L+=x.length,E+=1}}var k=m.getTokens(f);return g.walk(function(C,S,b,E,L){C!=null?v.push({type:"fold",value:C}):(L&&(k=m.getTokens(S)),k.length&&y(k,E,b))},g.end.row,this.session.getLine(g.end.row).length),v},h.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},h}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,s.implement(c.prototype,p),r.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,r,l){var s=n("../lib/dom"),u=function(){function d(o){this.element=s.createElement("div"),this.element.className="ace_layer ace_cursor-layer",o.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),s.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return d.prototype.$updateOpacity=function(o){for(var p=this.cursors,a=p.length;a--;)s.setStyle(p[a].style,"opacity",o?"":"0")},d.prototype.$startCssAnimation=function(){for(var o=this.cursors,p=o.length;p--;)o[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&s.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},d.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,s.removeCssClass(this.element,"ace_animate-blinking")},d.prototype.setPadding=function(o){this.$padding=o},d.prototype.setSession=function(o){this.session=o},d.prototype.setBlinking=function(o){o!=this.isBlinking&&(this.isBlinking=o,this.restartTimer())},d.prototype.setBlinkInterval=function(o){o!=this.blinkInterval&&(this.blinkInterval=o,this.restartTimer())},d.prototype.setSmoothBlinking=function(o){o!=this.smoothBlinking&&(this.smoothBlinking=o,s.setCssClass(this.element,"ace_smooth-blinking",o),this.$updateCursors(!0),this.restartTimer())},d.prototype.addCursor=function(){var o=s.createElement("div");return o.className="ace_cursor",this.element.appendChild(o),this.cursors.push(o),o},d.prototype.removeCursor=function(){if(this.cursors.length>1){var o=this.cursors.pop();return o.parentNode.removeChild(o),o}},d.prototype.hideCursor=function(){this.isVisible=!1,s.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},d.prototype.showCursor=function(){this.isVisible=!0,s.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},d.prototype.restartTimer=function(){var o=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,s.removeCssClass(this.element,"ace_smooth-blinking")),o(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&s.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),s.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){o(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){o(!0),p()},this.blinkInterval),p()}},d.prototype.getPixelPosition=function(o,p){if(!this.config||!this.session)return{left:0,top:0};o||(o=this.session.selection.getCursor());var a=this.session.documentToScreenPosition(o),i=this.$padding+(this.session.$bidiHandler.isBidiRow(a.row,o.row)?this.session.$bidiHandler.getPosLeft(a.column):a.column*this.config.characterWidth),c=(a.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:c}},d.prototype.isCursorInView=function(o,p){return o.top>=0&&o.topo.height+o.offset||h.top<0)&&a>1)){var f=this.cursors[i++]||this.addCursor(),g=f.style;this.drawCursor?this.drawCursor(f,h,o,p[a],this.session):this.isCursorInView(h,o)?(s.setStyle(g,"display","block"),s.translate(f,h.left,h.top),s.setStyle(g,"width",Math.round(o.characterWidth)+"px"),s.setStyle(g,"height",o.lineHeight+"px")):s.setStyle(g,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=h,this.restartTimer()},d.prototype.$setOverwrite=function(o){o!=this.overwrite&&(this.overwrite=o,o?s.addCssClass(this.element,"ace_overwrite-cursors"):s.removeCssClass(this.element,"ace_overwrite-cursors"))},d.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},d}();u.prototype.$padding=0,u.prototype.drawCursor=null,r.Cursor=u}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,l){var s=this&&this.__extends||function(){var f=function(g,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(v[k]=y[k])},f(g,m)};return function(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");f(g,m);function v(){this.constructor=g}g.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),u=n("./lib/oop"),d=n("./lib/dom"),o=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,a=32768,i=function(){function f(g,m){this.element=d.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=d.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),g.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)}return f.prototype.setVisible=function(g){this.element.style.display=g?"":"none",this.isVisible=g,this.coeff=1},f}();u.implement(i.prototype,p);var c=function(f){s(g,f);function g(m,v){var y=f.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=d.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return g.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},g.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},g.prototype.setHeight=function(m){this.element.style.height=m+"px"},g.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>a?(this.coeff=a/m,m=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},g.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},g}(i);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var h=function(f){s(g,f);function g(m,v){var y=f.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return g.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},g.prototype.getHeight=function(){return this.isVisible?this.height:0},g.prototype.setWidth=function(m){this.element.style.width=m+"px"},g.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},g.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},g.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},g}(i);r.ScrollBar=c,r.ScrollBarV=c,r.ScrollBarH=h,r.VScrollBar=c,r.HScrollBar=h}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,r,l){var s=this&&this.__extends||function(){var h=function(f,g){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},h(f,g)};return function(f,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");h(f,g);function m(){this.constructor=f}f.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),u=n("./lib/oop"),d=n("./lib/dom"),o=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;d.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 a=function(){function h(f,g){this.element=d.createElement("div"),this.element.className="ace_sb"+g,this.inner=d.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return h.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},h}();u.implement(a.prototype,p);var i=function(h){s(f,h);function f(g,m){var v=h.call(this,g,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=g,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return f.prototype.onMouseDown=function(g,m){if(g==="mousedown"&&!(o.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,k=function(M){y=M.clientY},C=function(){clearInterval(L)},S=m.clientY,b=this.thumbTop,E=function(){if(y!==void 0){var M=v.scrollTopFromThumbTop(b+y-S);M!==v.scrollTop&&v._emit("scroll",{data:M})}};o.capture(this.inner,k,C);var L=setInterval(E,20);return o.preventDefault(m)}var x=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(x)}),o.preventDefault(m)}},f.prototype.getHeight=function(){return this.height},f.prototype.scrollTopFromThumbTop=function(g){var m=g*(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},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(g){this.height=Math.max(0,g),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},f.prototype.setScrollHeight=function(g,m){this.pageHeight===g&&!m||(this.pageHeight=g,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})))},f.prototype.setScrollTop=function(g){this.scrollTop=g,g<0&&(g=0),this.thumbTop=g*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},f}(a);i.prototype.setInnerHeight=i.prototype.setScrollHeight;var c=function(h){s(f,h);function f(g,m){var v=h.call(this,g,"-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 f.prototype.onMouseDown=function(g,m){if(g==="mousedown"&&!(o.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,k=function(M){y=M.clientX},C=function(){clearInterval(L)},S=m.clientX,b=this.thumbLeft,E=function(){if(y!==void 0){var M=v.scrollLeftFromThumbLeft(b+y-S);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};o.capture(this.inner,k,C);var L=setInterval(E,20);return o.preventDefault(m)}var x=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(x)}),o.preventDefault(m)}},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.scrollLeftFromThumbLeft=function(g){var m=g*(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},f.prototype.setWidth=function(g){this.width=Math.max(0,g),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},f.prototype.setScrollWidth=function(g,m){this.pageWidth===g&&!m||(this.pageWidth=g,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})))},f.prototype.setScrollLeft=function(g){this.scrollLeft=g,g<0&&(g=0),this.thumbLeft=g*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},f}(a);c.prototype.setInnerWidth=c.prototype.setScrollWidth,r.ScrollBar=i,r.ScrollBarV=i,r.ScrollBarH=c,r.VScrollBar=i,r.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,r,l){var s=n("./lib/event"),u=function(){function d(o,p){this.onRender=o,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var a=this;this._flush=function(i){a.pending=!1;var c=a.changes;if(c&&(s.blockIdle(100),a.changes=0,a.onRender(c)),a.changes){if(a.$recursionLimit--<0)return;a.schedule()}else a.$recursionLimit=2}}return d.prototype.schedule=function(o){this.changes=this.changes|o,this.changes&&!this.pending&&(s.nextFrame(this._flush),this.pending=!0)},d.prototype.clear=function(o){var p=this.changes;return this.changes=0,p},d}();r.RenderLoop=u}),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,r,l){var s=n("../lib/oop"),u=n("../lib/dom"),d=n("../lib/lang"),o=n("../lib/event"),p=n("../lib/useragent"),a=n("../lib/event_emitter").EventEmitter,i=512,c=typeof ResizeObserver=="function",h=200,f=function(){function g(m){this.el=u.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=u.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=u.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=d.stringRepeat("X",i),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return g.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},g.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})}},g.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},g.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=o.onIdle(function v(){m.checkForSizeChanges(),o.onIdle(v,500)},500)},g.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},g.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/i};return v.width===0||v.height===0?null:v},g.prototype.$measureCharWidth=function(m){this.$main.textContent=d.stringRepeat(m,i);var v=this.$main.getBoundingClientRect();return v.width/i},g.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},g.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},g.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(window.getComputedStyle(m).zoom||1)*this.$getZoom(m.parentElement)},g.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=u.buildDom([m(0,0),m(h,0),m(0,h),m(h,h)],this.el)},g.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function k(P,W,j){var V=P[1]*W[0]-P[0]*W[1];return[(-W[1]*j[0]+W[0]*j[1])/V,(+P[1]*j[0]-P[0]*j[1])/V]}function C(P,W){return[P[0]-W[0],P[1]-W[1]]}function S(P,W){return[P[0]+W[0],P[1]+W[1]]}function b(P,W){return[P*W[0],P*W[1]]}this.els||this.$initTransformMeasureNodes();function E(P){var W=P.getBoundingClientRect();return[W.left,W.top]}var L=E(this.els[0]),x=E(this.els[1]),M=E(this.els[2]),_=E(this.els[3]),A=k(C(_,x),C(_,M),C(S(x,M),S(_,L))),$=b(1+A[0],C(x,L)),w=b(1+A[1],C(M,L));if(v){var R=v,T=A[0]*R[0]/h+A[1]*R[1]/h+1,O=S(b(R[0],$),b(R[1],w));return S(b(1/T/h,O),L)}var I=C(m,L),N=k(C($,b(A[0],I)),C(w,b(A[1],I)),I);return b(h,N)},g}();f.prototype.$characterSize={width:0,height:0},s.implement(f.prototype,a),r.FontMetrics=f}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,r,l){l.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-wrap; word-wrap: break-word; line-height: normal; font-style: normal; font-weight: normal; letter-spacing: normal; pointer-events: none; overflow: auto; max-width: min(60em, 66vw); overscroll-behavior: contain; } .ace_tooltip pre { white-space: pre-wrap; } .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,r,l){var s=n("../lib/dom"),u=n("../lib/oop"),d=n("../lib/event_emitter").EventEmitter,o=function(){function p(a,i){this.canvas=s.createElement("canvas"),this.renderer=i,this.pixelRatio=1,this.maxHeight=i.layerConfig.maxHeight,this.lineHeight=i.layerConfig.lineHeight,this.canvasHeight=a.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=a.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)"},a.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(a){var i=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(a){this.maxHeight=a.maxHeight,this.lineHeight=a.lineHeight,this.canvasHeight=a.height;var c=(a.lastRow+1)*this.lineHeight;cA.priority?1:0}var g=this.renderer.session.$annotations;if(h.clearRect(0,0,this.canvas.width,this.canvas.height),g){var m={info:1,warning:2,error:3};g.forEach(function(_){_.priority=m[_.type]||null}),g=g.sort(f);for(var v=this.renderer.session.$foldData,y=0;ythis.canvasHeight&&(x=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(x-this.halfMinDecorationHeight),E=Math.round(x+this.halfMinDecorationHeight)}h.fillStyle=i[g[y].type]||null,h.fillRect(0,S,this.canvasWidth,E-b)}}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);h.fillStyle="rgba(0, 0, 0, 0.5)",h.fillRect(0,S,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(a,i){var c=0;if(i&&i.length>0)for(var h=0;hi[h].start.row&&a=i[h].end.row&&(c+=i[h].end.row-i[h].start.row);return c},p}();u.implement(o.prototype,d),r.Decorator=o}),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,r,l){var s=n("./lib/oop"),u=n("./lib/dom"),d=n("./lib/lang"),o=n("./config"),p=n("./layer/gutter").Gutter,a=n("./layer/marker").Marker,i=n("./layer/text").Text,c=n("./layer/cursor").Cursor,h=n("./scrollbar").HScrollBar,f=n("./scrollbar").VScrollBar,g=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,k=n("./lib/event_emitter").EventEmitter,C=n("./css/editor-css"),S=n("./layer/decorators").Decorator,b=n("./lib/useragent");u.importCssString(C,"ace_editor.css",!1);var E=function(){function L(x,M){var _=this;this.container=x||u.createElement("div"),u.addCssClass(this.container,"ace_editor"),u.HI_DPI&&u.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),o.get("useStrictCSP")==null&&o.set("useStrictCSP",!1),this.$gutter=u.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=u.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=u.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var A=this.$textLayer=new i(this.content);this.canvas=A.element,this.$markerFront=new a(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.on("scroll",function($){_.$scrollAnimation||_.session.setScrollTop($.data-_.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){_.$scrollAnimation||_.session.setScrollLeft($.data-_.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function($){_.updateCharacterSize(),_.onResize(!0,_.gutterWidth,_.$size.width,_.$size.height),_._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=!b.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(),o.resetOptions(this),o._signal("renderer",this)}return L.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(),u.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(x){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=x,x&&this.scrollMargin.top&&x.getScrollTop()<=0&&x.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(x),this.$markerBack.setSession(x),this.$markerFront.setSession(x),this.$gutterLayer.setSession(x),this.$textLayer.setSession(x),x&&(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))},L.prototype.updateLines=function(x,M,_){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>x&&(this.$changedLines.firstRow=x),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},L.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},L.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},L.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},L.prototype.updateFull=function(x){x?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},L.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},L.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},L.prototype.onResize=function(x,M,_,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=x?1:0;var $=this.container;A||(A=$.clientHeight||$.scrollHeight),_||(_=$.clientWidth||$.scrollWidth);var w=this.$updateCachedSize(x,M,_,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!_&&!A)return this.resizing=0;x&&(this.$gutterLayer.$padding=null),x?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)}},L.prototype.$updateCachedSize=function(x,M,_,A){A-=this.$extraHeight||0;var $=0,w=this.$size,R={width:w.width,height:w.height,scrollerHeight:w.scrollerHeight,scrollerWidth:w.scrollerWidth};if(A&&(x||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),_&&(x||w.width!=_)){$|=this.CHANGE_SIZE,w.width=_,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,u.setStyle(this.scrollBarH.element.style,"left",M+"px"),u.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),w.scrollerWidth=Math.max(0,_-M-this.scrollBarV.getWidth()-this.margin.h),u.setStyle(this.$gutter.style,"left",this.margin.left+"px");var T=this.scrollBarV.getWidth()+"px";u.setStyle(this.scrollBarH.element.style,"right",T),u.setStyle(this.scroller.style,"right",T),u.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(w.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||x)&&($|=this.CHANGE_FULL)}return w.$dirty=!_||!A,$&&this._signal("resize",R),$},L.prototype.onGutterResize=function(x){var M=this.$showGutter?x: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()},L.prototype.adjustWrapLimit=function(){var x=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(x/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(x){this.setOption("animatedScroll",x)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(x){this.setOption("showInvisibles",x),this.session.$bidiHandler.setShowInvisibles(x)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(x){this.setOption("displayIndentGuides",x)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(x){this.setOption("highlightIndentGuides",x)},L.prototype.setShowPrintMargin=function(x){this.setOption("showPrintMargin",x)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(x){this.setOption("printMarginColumn",x)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(x){return this.setOption("showGutter",x)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(x){this.setOption("fadeFoldWidgets",x)},L.prototype.setHighlightGutterLine=function(x){this.setOption("highlightGutterLine",x)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var x=u.createElement("div");x.className="ace_layer ace_print-margin-layer",this.$printMarginEl=u.createElement("div"),this.$printMarginEl.className="ace_print-margin",x.appendChild(this.$printMarginEl),this.content.insertBefore(x,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()}},L.prototype.getContainerElement=function(){return this.container},L.prototype.getMouseEventTarget=function(){return this.scroller},L.prototype.getTextAreaContainer=function(){return this.container},L.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var x=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){u.translate(this.textarea,-100,0);return}var _=this.$cursorLayer.$pixelPos;if(_){M&&M.markerRange&&(_=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var A=this.layerConfig,$=_.top,w=_.left;$-=A.offset;var R=M&&M.useTextareaForIME||b.isMobile?this.lineHeight:1;if($<0||$>A.height-R){u.translate(this.textarea,0,0);return}var T=1,O=this.$size.height-R;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,u.setStyle(x,"height",R+"px"),u.setStyle(x,"width",T+"px"),u.translate(this.textarea,Math.min(w,this.$size.scrollerWidth-T),Math.min($,O))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var x=this.layerConfig,M=x.lastRow,_=this.session.documentToScreenRow(M,0)*x.lineHeight;return _-this.session.getScrollTop()>x.height-x.lineHeight?M-1:M},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(x){this.$padding=x,this.$textLayer.setPadding(x),this.$cursorLayer.setPadding(x),this.$markerFront.setPadding(x),this.$markerBack.setPadding(x),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(x,M,_,A){var $=this.scrollMargin;$.top=x|0,$.bottom=M|0,$.right=A|0,$.left=_|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},L.prototype.setMargin=function(x,M,_,A){var $=this.margin;$.top=x|0,$.bottom=M|0,$.right=A|0,$.left=_|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(x){this.setOption("hScrollBarAlwaysVisible",x)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(x){this.setOption("vScrollBarAlwaysVisible",x)},L.prototype.$updateScrollBarV=function(){var x=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(x-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>x-M&&(x=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(x+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},L.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},L.prototype.freeze=function(){this.$frozen=!0},L.prototype.unfreeze=function(){this.$frozen=!1},L.prototype.$renderChanges=function(x,M){if(this.$changes&&(x|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!x&&!M){this.$changes|=x;return}if(this.$size.$dirty)return this.$changes|=x,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",x),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var _=this.layerConfig;if(x&this.CHANGE_FULL||x&this.CHANGE_SIZE||x&this.CHANGE_TEXT||x&this.CHANGE_LINES||x&this.CHANGE_SCROLL||x&this.CHANGE_H_SCROLL){if(x|=this.$computeLayerConfig()|this.$loop.clear(),_.firstRow!=this.layerConfig.firstRow&&_.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+(_.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,x=x|this.CHANGE_SCROLL,x|=this.$computeLayerConfig()|this.$loop.clear())}_=this.layerConfig,this.$updateScrollBarV(),x&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),u.translate(this.content,-this.scrollLeft,-_.offset);var $=_.width+2*this.$padding+"px",w=_.minHeight+"px";u.setStyle(this.content.style,"width",$),u.setStyle(this.content.style,"height",w)}if(x&this.CHANGE_H_SCROLL&&(u.translate(this.content,-this.scrollLeft,-_.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),x&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(_),this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_),this.$markerBack.update(_),this.$markerFront.update(_),this.$cursorLayer.update(_),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}if(x&this.CHANGE_SCROLL){this.$changedLines=null,x&this.CHANGE_TEXT||x&this.CHANGE_LINES?this.$textLayer.update(_):this.$textLayer.scrollLines(_),this.$showGutter&&(x&this.CHANGE_GUTTER||x&this.CHANGE_LINES?this.$gutterLayer.update(_):this.$gutterLayer.scrollLines(_)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_),this.$markerBack.update(_),this.$markerFront.update(_),this.$cursorLayer.update(_),this.$moveTextAreaToCursor(),this._signal("afterRender",x);return}x&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(_),this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):x&this.CHANGE_LINES?((this.$updateLines()||x&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):x&this.CHANGE_TEXT||x&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)):x&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(_),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(_)),x&this.CHANGE_CURSOR&&(this.$cursorLayer.update(_),this.$moveTextAreaToCursor()),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(_),x&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(_),this._signal("afterRender",x)},L.prototype.$autosize=function(){var x=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,_=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,x))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(_+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&_>this.$maxPixelHeight&&(_=this.$maxPixelHeight);var A=_<=2*this.lineHeight,$=!A&&x>M;if(_!=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=_+"px",this.$updateCachedSize(!0,this.$gutterWidth,w,_),this.desiredHeight=_,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var x=this.session,M=this.$size,_=M.height<=2*this.lineHeight,A=this.session.getScreenLength(),$=A*this.lineHeight,w=this.$getLongestLine(),R=!_&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-w-2*this.$padding<0),T=this.$horizScroll!==R;T&&(this.$horizScroll=R,this.scrollBarH.setVisible(R));var O=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var I=M.scrollerHeight+this.lineHeight,N=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=N;var P=this.scrollMargin;this.session.setScrollTop(Math.max(-P.top,Math.min(this.scrollTop,$-M.scrollerHeight+P.bottom))),this.session.setScrollLeft(Math.max(-P.left,Math.min(this.scrollLeft,w+2*this.$padding-M.scrollerWidth+P.right)));var W=!_&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-$+N<0||this.scrollTop>P.top),j=O!==W;j&&(this.$vScroll=W,this.scrollBarV.setVisible(W));var V=this.scrollTop%this.lineHeight,H=Math.ceil(I/this.lineHeight)-1,G=Math.max(0,Math.round((this.scrollTop-V)/this.lineHeight)),Q=G+H,U,X,Y=this.lineHeight;G=x.screenToDocumentRow(G,0);var z=x.getFoldLine(G);z&&(G=z.start.row),U=x.documentToScreenRow(G,0),X=x.getRowLength(G)*Y,Q=Math.min(x.screenToDocumentRow(Q,0),x.getLength()-1),I=M.scrollerHeight+x.getRowLength(Q)*Y+X,V=this.scrollTop-U*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:G,firstRowScreen:U,lastRow:Q,lineHeight:Y,characterWidth:this.characterWidth,minHeight:I,maxHeight:$,offset:V,gutterOffset:Y?Math.max(0,Math.ceil((V+M.height-M.scrollerHeight)/Y)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(w-this.$padding),ee},L.prototype.$updateLines=function(){if(this.$changedLines){var x=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var _=this.layerConfig;if(!(x>_.lastRow+1)&&!(M<_.firstRow)){if(M===1/0){this.$showGutter&&this.$gutterLayer.update(_),this.$textLayer.update(_);return}return this.$textLayer.updateLines(_,x,M),!0}}},L.prototype.$getLongestLine=function(){var x=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(x+=1),this.$textLayer&&x>this.$textLayer.MAX_LINE_LENGTH&&(x=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(x*this.characterWidth))},L.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},L.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},L.prototype.addGutterDecoration=function(x,M){this.$gutterLayer.addGutterDecoration(x,M)},L.prototype.removeGutterDecoration=function(x,M){this.$gutterLayer.removeGutterDecoration(x,M)},L.prototype.updateBreakpoints=function(x){this._rows=x,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(x){this.$gutterLayer.setAnnotations(x),this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},L.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},L.prototype.showCursor=function(){this.$cursorLayer.showCursor()},L.prototype.scrollSelectionIntoView=function(x,M,_){this.scrollCursorIntoView(x,_),this.scrollCursorIntoView(M,_)},L.prototype.scrollCursorIntoView=function(x,M,_){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(x),$=A.left,w=A.top,R=_&&_.top||0,T=_&&_.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var O=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;O+R>w?(M&&O+R>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||x<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||x>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(x,M){var _;if(this.$hasCssTransforms){_={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([x,M]);x=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else _=this.scroller.getBoundingClientRect();var $=x+this.scrollLeft-_.left-this.$padding,w=$/this.characterWidth,R=Math.floor((M+this.scrollTop-_.top)/this.lineHeight),T=this.$blockCursor?Math.floor(w):Math.round(w);return{row:R,column:T,side:w-T>0?1:-1,offsetX:$}},L.prototype.screenToTextCoordinates=function(x,M){var _;if(this.$hasCssTransforms){_={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([x,M]);x=A[1]-this.gutterWidth-this.margin.left,M=A[0]}else _=this.scroller.getBoundingClientRect();var $=x+this.scrollLeft-_.left-this.$padding,w=$/this.characterWidth,R=this.$blockCursor?Math.floor(w):Math.round(w),T=Math.floor((M+this.scrollTop-_.top)/this.lineHeight);return this.session.screenToDocumentPosition(T,Math.max(R,0),$)},L.prototype.textToScreenCoordinates=function(x,M){var _=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(x,M),$=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,x)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),w=A.row*this.lineHeight;return{pageX:_.left+$-this.scrollLeft,pageY:_.top+w-this.scrollTop}},L.prototype.visualizeFocus=function(){u.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){u.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(x){this.$composition=x,x.cssText||(x.cssText=this.textarea.style.cssText),x.useTextareaForIME==null&&(x.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(u.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):x.markerId=this.session.addMarker(x.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(x){var M=this.session.selection.cursor;this.addToken(x,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),u.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var x=this.session.selection.cursor;this.removeExtraToken(x.row,x.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(x,M){var _=this.session.selection.cursor,A=M||{row:_.row,column:_.column};this.removeGhostText();var $=x.split(` `);if(this.addToken($[0],"ghost_text",A.row,A.column),this.$ghostText={text:x,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);var w=this.$cursorLayer.getPixelPosition(A,!0),R=this.container,T=R.getBoundingClientRect().height,O=$.length*this.lineHeight,I=O1||Math.abs(x.$size.height-A)>1?x.$resizeTimer.delay():x.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();E.prototype.CHANGE_CURSOR=1,E.prototype.CHANGE_MARKER=2,E.prototype.CHANGE_GUTTER=4,E.prototype.CHANGE_SCROLL=8,E.prototype.CHANGE_LINES=16,E.prototype.CHANGE_TEXT=32,E.prototype.CHANGE_SIZE=64,E.prototype.CHANGE_MARKER_BACK=128,E.prototype.CHANGE_MARKER_FRONT=256,E.prototype.CHANGE_FULL=512,E.prototype.CHANGE_H_SCROLL=1024,E.prototype.$changes=0,E.prototype.$padding=null,E.prototype.$frozen=!1,E.prototype.STEPS=8,s.implement(E.prototype,k),o.defineOptions(E.prototype,"renderer",{useResizeObserver:{set:function(L){!L&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):L&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(L){this.$textLayer.setShowInvisibles(L)&&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(L){typeof L=="number"&&(this.$printMarginColumn=L),this.$showPrintMargin=!!L,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(L){this.$gutter.style.display=L?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(L){this.$gutterLayer.$useSvgGutterIcons=L},initialValue:!1},showFoldedAnnotations:{set:function(L){this.$gutterLayer.$showFoldedAnnotations=L},initialValue:!1},fadeFoldWidgets:{set:function(L){u.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.VirtualRenderer=E}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,r,l){var s=n("../lib/oop"),u=n("../lib/net"),d=n("../lib/event_emitter").EventEmitter,o=n("../config");function p(h){var f="importScripts('"+u.qualifyURL(h)+"');";try{return new Blob([f],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new g;return m.append(f),m.getBlob("application/javascript")}}function a(h){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(o.get("loadWorkerFromBlob")){var f=p(h),g=window.URL||window.webkitURL,m=g.createObjectURL(f);return new Worker(m)}return new Worker(h)}var i=function(h){h.postMessage||(h=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=h,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(){s.implement(this,d),this.$createWorkerFromOldConfig=function(h,f,g,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),o.get("packaged")||!n.toUrl)m=m||o.moduleUrl(f,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var k={};h.forEach(function(C){k[C]=y(n.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:k,module:f,classname:g}),this.$worker},this.onMessage=function(h){var f=h.data;switch(f.type){case"event":this._signal(f.name,{data:f.data});break;case"call":var g=this.callbacks[f.id];g&&(g(f.data),delete this.callbacks[f.id]);break;case"error":this.reportError(f.data);break;case"log":window.console&&console.log&&console.log.apply(console,f.data);break}},this.reportError=function(h){window.console&&console.error&&console.error(h)},this.$normalizePath=function(h){return u.qualifyURL(h)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(h){h.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(h,f){this.$worker.postMessage({command:h,args:f})},this.call=function(h,f,g){if(g){var m=this.callbackId++;this.callbacks[m]=g,f.push(m)}this.send(h,f)},this.emit=function(h,f){try{f.data&&f.data.err&&(f.data.err={message:f.data.err.message,stack:f.data.err.stack,code:f.data.err.code}),this.$worker&&this.$worker.postMessage({event:h,data:{data:f.data}})}catch(g){console.error(g.stack)}},this.attachToDocument=function(h){this.$doc&&this.terminate(),this.$doc=h,this.call("setValue",[h.getValue()]),h.on("change",this.changeListener,!0)},this.changeListener=function(h){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),h.action=="insert"?this.deltaQueue.push(h.start,h.lines):this.deltaQueue.push(h.start,h.end)},this.$sendDeltaQueue=function(){var h=this.deltaQueue;h&&(this.deltaQueue=null,h.length>50&&h.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:h}))}}).call(i.prototype);var c=function(h,f,g){var m=null,v=!1,y=Object.create(d),k=[],C=new i({messageBuffer:k,terminate:function(){},postMessage:function(b){k.push(b),m&&(v?setTimeout(S):S())}});C.setEmitSync=function(b){v=b};var S=function(){var b=k.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){C.onMessage({data:b})},y.callback=function(b,E){this.postMessage({type:"call",id:E,data:b})},y.emit=function(b,E){this.postMessage({type:"event",name:b,data:E})},o.loadModule(["worker",f],function(b){for(m=new b[g](y);k.length;)S()}),C};r.UIWorkerClient=c,r.WorkerClient=i,r.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,r,l){var s=n("./range").Range,u=n("./lib/event_emitter").EventEmitter,d=n("./lib/oop"),o=function(){function p(a,i,c,h,f,g){var m=this;this.length=i,this.session=a,this.doc=a.getDocument(),this.mainClass=f,this.othersClass=g,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=h,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=c;var v=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var a=this,i=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var h=this.pos;h.$insertRight=!0,h.detach(),h.markerId=c.addMarker(new s(h.row,h.column,h.row,h.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(f){var g=i.createAnchor(f.row,f.column);g.$insertRight=!0,g.detach(),a.others.push(g)}),c.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,i=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=a.addMarker(new s(c.row,c.column,c.row,c.column+i.length),i.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var a=0;a=this.pos.column&&i.start.column<=this.pos.column+this.length+1,f=i.start.column-this.pos.column;if(this.updateAnchors(a),h&&(this.length+=c),h&&!this.session.$fromUndo){if(a.action==="insert")for(var g=this.others.length-1;g>=0;g--){var m=this.others[g],v={row:m.row,column:m.column+f};this.doc.insertMergedLines(v,a.lines)}else if(a.action==="remove")for(var g=this.others.length-1;g>=0;g--){var m=this.others[g],v={row:m.row,column:m.column+f};this.doc.remove(new s(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(a){this.pos.onChange(a);for(var i=this.others.length;i--;)this.others[i].onChange(a);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var a=this,i=this.session,c=function(f,g){i.removeMarker(f.markerId),f.markerId=i.addMarker(new s(f.row,f.column,f.row,f.column+a.length),g,null,!1)};c(this.pos,this.mainClass);for(var h=this.others.length;h--;)c(this.others[h],this.othersClass)}},p.prototype.onCursorChange=function(a){if(!(this.$updating||!this.session)){var i=this.session.selection.getCursor();i.row===this.pos.row&&i.column>=this.pos.column&&i.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},p.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},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),i=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,c=0;c1?u.multiSelect.joinSelections():u.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(u){u.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(u){u.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(u){u.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(u){u.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(u){return u&&u.inMultiSelectMode}}];var s=n("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new s(r.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,r,l){var s=n("./range_list").RangeList,u=n("./range").Range,d=n("./selection").Selection,o=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),a=n("./lib/lang"),i=n("./commands/multi_select_commands");r.commands=i.defaultCommands.concat(i.multiSelectCommands);var c=n("./search").Search,h=new c;function f(C,S,b){return h.$options.wrap=!0,h.$options.needle=S,h.$options.backwards=b==-1,h.find(C)}var g=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,S){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}C.cursor||(C.cursor=C.end);var E=this.rangeList.add(C);return this.$onAddRange(C),E.length&&this.$onRemoveRange(E),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 b=C.length;b--;){var E=this.ranges.indexOf(C[b]);this.ranges.splice(E,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 s,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=[],b=0;b1){var C=this.rangeList.ranges,S=C[C.length-1],b=u.fromPoints(C[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)}else{var E=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),x=this.rectangularRangeBlock(E,L);x.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,S,b){var E=[],L=C.column0;)N--;if(N>0)for(var P=0;E[P].isEmpty();)P++;for(var W=N;W>=P;W--)E[W].isEmpty()&&E.splice(W,1)}return E}}).call(d.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,b=C.length;b--;){var E=C[b];if(E.marker){this.session.removeMarker(E.marker);var L=S.indexOf(E);L!=-1&&S.splice(L,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(i.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(i.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var S=C.command,b=C.editor;if(b.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?E=b.forEachSelection(S,C.args):S.multiSelectAction=="forEachLine"?E=b.forEachSelection(S,C.args,!0):S.multiSelectAction=="single"?(b.exitMultiSelectMode(),E=S.exec(b,C.args||{})):E=S.multiSelectAction(b,C.args||{});else{var E=S.exec(b,C.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return E}},this.forEachSelection=function(C,S,b){if(!this.inVirtualSelectionMode){var E=b&&b.keepOrder,L=b==!0||b&&b.$byLines,x=this.session,M=this.selection,_=M.rangeList,A=(E?M:_).ranges,$;if(!A.length)return C.exec?C.exec(this,S||{}):C(this,S||{});var w=M._eventRegistry;M._eventRegistry={};var R=new d(x);this.inVirtualSelectionMode=!0;for(var T=A.length;T--;){if(L)for(;T>0&&A[T].start.row==A[T-1].end.row;)T--;R.fromOrientedRange(A[T]),R.index=T,this.selection=x.selection=R;var O=C.exec?C.exec(this,S||{}):C(this,S||{});!$&&O!==void 0&&($=O),R.toOrientedRange(A[T])}R.detach(),this.selection=x.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,b=[],E=0;E0);M<0&&(M=0),_>=$&&(_=$-1)}var R=this.session.removeFullLines(M,_);R=this.$reAlignText(R,A),this.session.insert({row:M,column:0},R.join(` `)+` `),A||(x.start.column=0,x.end.column=R[R.length-1].length),this.selection.setRange(x)}else{L.forEach(function(N){S.substractPoint(N.cursor)});var T=0,O=1/0,I=b.map(function(N){var P=N.cursor,W=C.getLine(P.row),j=W.substr(P.column).search(/\S/g);return j==-1&&(j=0),P.column>T&&(T=P.column),jV?C.insert(W,a.stringRepeat(" ",j-V)):C.remove(new u(W.row,W.column,W.row,W.column-j+V)),N.start.column=N.end.column=T,N.start.row=N.end.row=W.row,N.cursor=N.end}),S.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,S){var b=!0,E=!0,L,x,M;return C.map(function(R){var T=R.match(/(\s*)(.*?)(\s*)([=:].*)/);return T?L==null?(L=T[1].length,x=T[2].length,M=T[3].length,T):(L+x+M!=T[1].length+T[2].length+T[3].length&&(E=!1),L!=T[1].length&&(b=!1),L>T[1].length&&(L=T[1].length),xT[3].length&&(M=T[3].length),T):[R]}).map(S?A:b?E?$:A:w);function _(R){return a.stringRepeat(" ",R)}function A(R){return R[2]?_(L)+R[2]+_(x-R[2].length+M)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function $(R){return R[2]?_(L+x-R[2].length)+R[2]+_(M)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function w(R){return R[2]?_(L)+R[2]+_(M)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}}}).call(m.prototype);function v(C,S){return C.row==S.row&&C.column==S.column}r.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 b=C.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.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 y(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=r.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",o),C.commands.addCommands(i.defaultCommands),k(C))}function k(C){if(!C.textInput)return;var S=C.textInput.getElement(),b=!1;p.addListener(S,"keydown",function(L){var x=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);C.$blockSelectEnabled&&x?b||(C.renderer.setMouseCursor("crosshair"),b=!0):b&&E()},C),p.addListener(S,"keyup",E,C),p.addListener(S,"blur",E,C);function E(L){b&&(C.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(C){y(this),C?this.on("mousedown",o):this.off("mousedown",o)},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,r,l){var s=n("../../range").Range,u=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(d,o,p){var a=d.getLine(p);return this.foldingStartMarker.test(a)?"start":o=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(d,o,p){return null},this.indentationBlock=function(d,o,p){var a=/\S/,i=d.getLine(o),c=i.search(a);if(c!=-1){for(var h=p||i.length,f=d.getLength(),g=o,m=o;++og){var k=d.getLine(m).length;return new s(g,h,m,k)}}},this.openingBracketBlock=function(d,o,p,a,i){var c={row:p,column:a+1},h=d.$findClosingBracket(o,c,i);if(h){var f=d.foldWidgets[h.row];return f==null&&(f=d.getFoldWidget(h.row)),f=="start"&&h.row>c.row&&(h.row--,h.column=d.getLine(h.row).length),s.fromPoints(c,h)}},this.closingBracketBlock=function(d,o,p,a,i){var c={row:p,column:a},h=d.$findOpeningBracket(o,c);if(h)return h.column++,c.column--,s.fromPoints(h,c)}}).call(u.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,r,l){var s=n("../line_widgets").LineWidgets,u=n("../lib/dom"),d=n("../range").Range,o=n("../config").nls;function p(i,c,h){for(var f=0,g=i.length-1;f<=g;){var m=f+g>>1,v=h(c,i[m]);if(v>0)f=m+1;else if(v<0)g=m-1;else return m}return-(f+1)}function a(i,c,h){var f=i.getAnnotations().sort(d.comparePoints);if(f.length){var g=p(f,{row:c,column:-1},d.comparePoints);g<0&&(g=-g-1),g>=f.length?g=h>0?0:f.length-1:g===0&&h<0&&(g=f.length-1);var m=f[g];if(!(!m||!h)){if(m.row===c){do m=f[g+=h];while(m&&m.row===c);if(!m)return f.slice()}var v=[];c=m.row;do v[h<0?"unshift":"push"](m),m=f[g+=h];while(m&&m.row==c);return v.length&&v}}}r.showErrorMarker=function(i,c){var h=i.session;h.widgetManager||(h.widgetManager=new s(h),h.widgetManager.attach(i));var f=i.getCursorPosition(),g=f.row,m=h.widgetManager.getWidgetsAtRow(g).filter(function(x){return x.type=="errorMarker"})[0];m?m.destroy():g-=c;var v=a(h,g,c),y;if(v){var k=v[0];f.column=(k.pos&&typeof k.column!="number"?k.pos.sc:k.column)||0,f.row=k.row,y=i.renderer.$gutterLayer.$annotations[f.row]}else{if(m)return;y={text:[o("Looks good!")],className:"ace_ok"}}i.session.unfold(f.row),i.selection.moveToPosition(f);var C={row:f.row,fixedWidth:!0,coverGutter:!0,el:u.createElement("div"),type:"errorMarker"},S=C.el.appendChild(u.createElement("div")),b=C.el.appendChild(u.createElement("div"));b.className="error_widget_arrow "+y.className;var E=i.renderer.$cursorLayer.getPixelPosition(f).left;b.style.left=E+i.renderer.gutterWidth-5+"px",C.el.className="error_widget_wrapper",S.className="error_widget "+y.className,S.innerHTML=y.text.join("
"),S.appendChild(u.createElement("div"));var L=function(x,M,_){if(M===0&&(_==="esc"||_==="return"))return C.destroy(),{command:"null"}};C.destroy=function(){i.$mouseHandler.isMousePressed||(i.keyBinding.removeKeyboardHandler(L),h.widgetManager.removeLineWidget(C),i.off("changeSelection",C.destroy),i.off("changeSession",C.destroy),i.off("mouseup",C.destroy),i.off("change",C.destroy))},i.keyBinding.addKeyboardHandler(L),i.on("changeSelection",C.destroy),i.on("changeSession",C.destroy),i.on("mouseup",C.destroy),i.on("change",C.destroy),i.session.widgetManager.addLineWidget(C),C.el.onmousedown=i.focus.bind(i),i.renderer.scrollCursorIntoView(null,.5,{bottom:C.el.offsetHeight})},u.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,r,l){n("./loader_build")(r);var s=n("./lib/dom"),u=n("./range").Range,d=n("./editor").Editor,o=n("./edit_session").EditSession,p=n("./undomanager").UndoManager,a=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"),r.config=n("./config"),r.edit=function(i,c){if(typeof i=="string"){var h=i;if(i=document.getElementById(h),!i)throw new Error("ace.edit can't find div #"+h)}if(i&&i.env&&i.env.editor instanceof d)return i.env.editor;var f="";if(i&&/input|textarea/i.test(i.tagName)){var g=i;f=g.value,i=s.createElement("pre"),g.parentNode.replaceChild(i,g)}else i&&(f=i.textContent,i.innerHTML="");var m=r.createEditSession(f),v=new d(new a(i),m,c),y={document:m,editor:v,onResize:v.resize.bind(v,null)};return g&&(y.textarea=g),v.on("destroy",function(){y.editor.container.env=null}),v.container.env=v.env=y,v},r.createEditSession=function(i,c){var h=new o(i,c);return h.setUndoManager(new p),h},r.Range=u,r.Editor=d,r.EditSession=o,r.UndoManager=p,r.VirtualRenderer=a,r.version=r.config.version}),function(){ace.require(["ace/ace"],function(n){n&&(n.config.init(!0),n.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=n);for(var l in n)n.hasOwnProperty(l)&&(r.ace[l]=n[l]);r.ace.default=r.ace,e&&(e.exports=r.ace)})}()})(Vg);var ST=Vg.exports;const Zc=Tr(ST),CT="/assets/mode-yaml-ELgwiJiP.js",AT="data:text/javascript;base64,YWNlLmRlZmluZSgiYWNlL3RoZW1lL21vbm9rYWktY3NzIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIl0sZnVuY3Rpb24oZSx0LG4pe24uZXhwb3J0cz0iLmFjZS1tb25va2FpIC5hY2VfZ3V0dGVyIHtcbiAgYmFja2dyb3VuZDogIzJGMzEyOTtcbiAgY29sb3I6ICM4RjkwOEFcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfcHJpbnQtbWFyZ2luIHtcbiAgd2lkdGg6IDFweDtcbiAgYmFja2dyb3VuZDogIzU1NTY1MVxufVxuXG4uYWNlLW1vbm9rYWkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyODIyO1xuICBjb2xvcjogI0Y4RjhGMlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jdXJzb3Ige1xuICBjb2xvcjogI0Y4RjhGMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9zZWxlY3Rpb24ge1xuICBiYWNrZ3JvdW5kOiAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaS5hY2VfbXVsdGlzZWxlY3QgLmFjZV9zZWxlY3Rpb24uYWNlX3N0YXJ0IHtcbiAgYm94LXNoYWRvdzogMCAwIDNweCAwcHggIzI3MjgyMjtcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfbWFya2VyLWxheWVyIC5hY2Vfc3RlcCB7XG4gIGJhY2tncm91bmQ6IHJnYigxMDIsIDgyLCAwKVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9tYXJrZXItbGF5ZXIgLmFjZV9icmFja2V0IHtcbiAgbWFyZ2luOiAtMXB4IDAgMCAtMXB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX2FjdGl2ZS1saW5lIHtcbiAgYmFja2dyb3VuZDogIzIwMjAyMFxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9ndXR0ZXItYWN0aXZlLWxpbmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjcyNzI3XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX21hcmtlci1sYXllciAuYWNlX3NlbGVjdGVkLXdvcmQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjNDk0ODNFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2ludmlzaWJsZSB7XG4gIGNvbG9yOiAjNTI1MjRkXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfdGFnLFxuLmFjZS1tb25va2FpIC5hY2Vfa2V5d29yZCxcbi5hY2UtbW9ub2thaSAuYWNlX21ldGEuYWNlX3RhZyxcbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2Uge1xuICBjb2xvcjogI0Y5MjY3MlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9wdW5jdHVhdGlvbixcbi5hY2UtbW9ub2thaSAuYWNlX3B1bmN0dWF0aW9uLmFjZV90YWcge1xuICBjb2xvcjogI2ZmZlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2VfY2hhcmFjdGVyLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX2xhbmd1YWdlLFxuLmFjZS1tb25va2FpIC5hY2VfY29uc3RhbnQuYWNlX251bWVyaWMsXG4uYWNlLW1vbm9rYWkgLmFjZV9jb25zdGFudC5hY2Vfb3RoZXIge1xuICBjb2xvcjogI0FFODFGRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbnZhbGlkIHtcbiAgY29sb3I6ICNGOEY4RjA7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGOTI2NzJcbn1cblxuLmFjZS1tb25va2FpIC5hY2VfaW52YWxpZC5hY2VfZGVwcmVjYXRlZCB7XG4gIGNvbG9yOiAjRjhGOEYwO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjQUU4MUZGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX2NvbnN0YW50LFxuLmFjZS1tb25va2FpIC5hY2Vfc3VwcG9ydC5hY2VfZnVuY3Rpb24ge1xuICBjb2xvcjogIzY2RDlFRlxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9mb2xkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0E2RTIyRTtcbiAgYm9yZGVyLWNvbG9yOiAjRjhGOEYyXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0b3JhZ2UuYWNlX3R5cGUsXG4uYWNlLW1vbm9rYWkgLmFjZV9zdXBwb3J0LmFjZV9jbGFzcyxcbi5hY2UtbW9ub2thaSAuYWNlX3N1cHBvcnQuYWNlX3R5cGUge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjNjZEOUVGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2VudGl0eS5hY2VfbmFtZS5hY2VfZnVuY3Rpb24sXG4uYWNlLW1vbm9rYWkgLmFjZV9lbnRpdHkuYWNlX290aGVyLFxuLmFjZS1tb25va2FpIC5hY2VfZW50aXR5LmFjZV9vdGhlci5hY2VfYXR0cmlidXRlLW5hbWUsXG4uYWNlLW1vbm9rYWkgLmFjZV92YXJpYWJsZSB7XG4gIGNvbG9yOiAjQTZFMjJFXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3ZhcmlhYmxlLmFjZV9wYXJhbWV0ZXIge1xuICBmb250LXN0eWxlOiBpdGFsaWM7XG4gIGNvbG9yOiAjRkQ5NzFGXG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX3N0cmluZyB7XG4gIGNvbG9yOiAjRTZEQjc0XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2NvbW1lbnQge1xuICBjb2xvcjogIzc1NzE1RVxufVxuXG4uYWNlLW1vbm9rYWkgLmFjZV9pbmRlbnQtZ3VpZGUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJbVdQUTBGRDBaWEJ6ZC93UEFBalZBb3hlU2dOZUFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15XG59XG5cbi5hY2UtbW9ub2thaSAuYWNlX2luZGVudC1ndWlkZS1hY3RpdmUge1xuICBiYWNrZ3JvdW5kOiB1cmwoZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFBRUFBQUFDQ0FZQUFBQ1pnYlluQUFBQUVrbEVRVlFJVzJQUTFkWDl6ekJ6NXN6L0FCQ2NCRkZlbnRMbEFBQUFBRWxGVGtTdVFtQ0MpIHJpZ2h0IHJlcGVhdC15O1xufVxuIn0pLGFjZS5kZWZpbmUoImFjZS90aGVtZS9tb25va2FpIixbInJlcXVpcmUiLCJleHBvcnRzIiwibW9kdWxlIiwiYWNlL3RoZW1lL21vbm9rYWktY3NzIiwiYWNlL2xpYi9kb20iXSxmdW5jdGlvbihlLHQsbil7dC5pc0Rhcms9ITAsdC5jc3NDbGFzcz0iYWNlLW1vbm9rYWkiLHQuY3NzVGV4dD1lKCIuL21vbm9rYWktY3NzIik7dmFyIHI9ZSgiLi4vbGliL2RvbSIpO3IuaW1wb3J0Q3NzU3RyaW5nKHQuY3NzVGV4dCx0LmNzc0NsYXNzLCExKX0pOyAgICAgICAgICAgICAgICAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgICAgYWNlLnJlcXVpcmUoWyJhY2UvdGhlbWUvbW9ub2thaSJdLCBmdW5jdGlvbihtKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgbW9kdWxlID09ICJvYmplY3QiICYmIHR5cGVvZiBleHBvcnRzID09ICJvYmplY3QiICYmIG1vZHVsZSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSBtOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9KSgpOwogICAgICAgICAgICA=";Zc.config.setModuleUrl("ace/mode/yaml",CT);Zc.config.setModuleUrl("ace/theme/monokai",AT);var zg=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(l,s){return l[0]===n?(r=s,!0):!1}),r}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 r=e(this.__entries__,n),l=this.__entries__[r];return l&&l[1]},t.prototype.set=function(n,r){var l=e(this.__entries__,n);~l?this.__entries__[l][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,l=e(r,n);~l&&r.splice(l,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var l=0,s=this.__entries__;l0},e.prototype.connect_=function(){!jl||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),LT?(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(){!jl||!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,r=n===void 0?"":n,l=TT.some(function(s){return!!~r.indexOf(s)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),jg=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof si(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new WT(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 si(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(r){return new HT(r.target,r.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}(),Kg=typeof WeakMap<"u"?new WeakMap:new zg,Yg=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=MT.getInstance(),r=new UT(t,n,this);Kg.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Yg.prototype[e]=function(){var t;return(t=Kg.get(this))[e].apply(t,arguments)}});var VT=function(){return typeof Mo.ResizeObserver<"u"?Mo.ResizeObserver:Yg}();const Yh=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],Zg=Ce({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",...Yh],render(){return di("div")},mounted(){const e=this._editor=jo(Zc.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)}),Yh.forEach(t=>{const n="on"+li(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new VT(()=>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)}}}),zT=Ce({name:"RuleInputForm",components:{VAceEditor:Zg},props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,t){const n=Ko(e,"yaml");return sd(()=>{t.emit("update-yaml",n.value)}),{yamlInput:n}}}),jT={class:"block"};function GT(e,t,n,r,l,s){const u=re("VAceEditor");return Z(),se("div",jT,[oe(u,{class:"vue-ace-editor",value:e.yamlInput,"onUpdate:value":t[0]||(t[0]=d=>e.yamlInput=d),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])])}const Xg=Re(zT,[["render",GT]]),KT=Ce({name:"EditRule",components:{InputForm:Xg,ErrorMessage:bt},props:{rule:{type:Object,required:!0}},setup(e){const t=pi(),n=Ko(e.rule.yaml),r=gC();return{edit:async()=>{const u=await r.perform({yaml:n.value});t.push({name:"Rule",params:{id:u.id}})},yaml:n,updateYAML:u=>{n.value=u},updateRuleTask:r}}}),YT={class:"block"},ZT={class:"is-size-2 block"},XT={class:"field is-grouped is-grouped-centered"},qT={class:"control"},QT={class:"icon is-small"},JT=D("span",null,"Edit",-1),eL={key:0,class:"block"},tL=D("hr",null,null,-1);function nL(e,t,n,r,l,s){var p,a;const u=re("InputForm"),d=re("font-awesome-icon"),o=re("ErrorMessage");return Z(),se(Ne,null,[D("div",YT,[D("h2",ZT,"Edit rule: "+$e(e.rule.id),1),oe(u,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=i=>e.yaml=i),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),D("div",XT,[D("p",qT,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...i)=>e.edit&&e.edit(...i))},[D("span",QT,[oe(d,{icon:"edit"})]),JT])])])]),(p=e.updateRuleTask.last)!=null&&p.error?(Z(),se("div",eL,[tL,oe(o,{error:(a=e.updateRuleTask.last)==null?void 0:a.error},null,8,["error"])])):me("",!0)],64)}const rL=Re(KT,[["render",nL]]),iL=Ce({name:"EditRuleWrapper",components:{EditRule:rL,Loading:Rn,ErrorMessage:bt},props:{id:{type:String,required:!0}},setup(e){const t=bg(),n=async()=>{await t.perform(e.id)};return lt(async()=>{await n()}),st(e,async()=>{await n()}),{getRuleTask:t}}});function sL(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("EditRule");return Z(),se(Ne,null,[e.getRuleTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getRuleTask.isError?(Z(),Se(d,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getRuleTask.last)!=null&&a.value?(Z(),Se(o,{key:2,rule:e.getRuleTask.last.value},null,8,["rule"])):me("",!0)],64)}const oL=Re(iL,[["render",sL]]),aL=Ce({name:"EditRuleView",components:{EditRule:oL},props:{id:{type:String,required:!0}},setup(e){const t=()=>{En(`Edit rule:${e.id} - Mihari`)};lt(()=>{t()}),st(()=>e.id,()=>{t()})}});function lL(e,t,n,r,l,s){const u=re("EditRule",!0);return Z(),Se(u,{id:e.id},null,8,["id"])}const cL=Re(aL,[["render",lL]]);function uL(e){for(var t=[],n=1;n1&&arguments[1]!==void 0?arguments[1]:0,n=(gt[e[t+0]]+gt[e[t+1]]+gt[e[t+2]]+gt[e[t+3]]+"-"+gt[e[t+4]]+gt[e[t+5]]+"-"+gt[e[t+6]]+gt[e[t+7]]+"-"+gt[e[t+8]]+gt[e[t+9]]+"-"+gt[e[t+10]]+gt[e[t+11]]+gt[e[t+12]]+gt[e[t+13]]+gt[e[t+14]]+gt[e[t+15]]).toLowerCase();if(!pL(n))throw TypeError("Stringified UUID is invalid");return n}function mL(e,t,n){e=e||{};var r=e.random||(e.rng||fL)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var l=0;l<16;++l)t[n+l]=r[l];return t}return gL(r)}function vL(){const e=mL(),t=mi();return uL`--- id: ${e} title: Title goes here description: Description goes here created_on: ${t.format("YYYY-MM-DD")} queries: []`}const yL=Ce({name:"NewRule",components:{InputForm:Xg,ErrorMessage:bt},setup(){const e=pi(),t=ze(vL()),n=pC();return{yaml:t,create:async()=>{const s=await n.perform({yaml:t.value});e.push({name:"Rule",params:{id:s.id}})},updateYAML:s=>{t.value=s},createRuleTask:n}}}),bL={class:"block"},wL=D("h2",{class:"is-size-2 block"},"New rule",-1),_L={class:"field is-grouped is-grouped-centered"},$L={class:"control"},SL={class:"icon is-small"},CL=D("span",null,"Create",-1),AL={key:0,class:"block"},kL=D("hr",null,null,-1);function xL(e,t,n,r,l,s){var p,a;const u=re("InputForm"),d=re("font-awesome-icon"),o=re("ErrorMessage");return Z(),se(Ne,null,[D("div",bL,[wL,oe(u,{yaml:e.yaml,"onUpdate:yaml":t[0]||(t[0]=i=>e.yaml=i),onUpdateYaml:e.updateYAML},null,8,["yaml","onUpdateYaml"]),D("div",_L,[D("p",$L,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...i)=>e.create&&e.create(...i))},[D("span",SL,[oe(d,{icon:"plus"})]),CL])])])]),(p=e.createRuleTask.last)!=null&&p.error?(Z(),se("div",AL,[kL,oe(o,{error:(a=e.createRuleTask.last)==null?void 0:a.error},null,8,["error"])])):me("",!0)],64)}const EL=Re(yL,[["render",xL]]),RL=Ce({name:"NewRuleView",components:{NewRule:EL},setup(){const e=()=>{En("New rule - Mihari")};lt(()=>{e()})}});function TL(e,t,n,r,l,s){const u=re("NewRule",!0);return Z(),Se(u)}const LL=Re(RL,[["render",TL]]),ML=Ce({name:"RuleActionButtons",props:{rule:{type:Object,required:!0}},emits:["set-message","set-error","delete"],setup(e,t){const n=Le(()=>`/api/rules/${e.rule.id}`),r=Le(()=>`rule.id:"${e.rule.id}"`),l=fC(),s=dC(),u=Ss(),d=zc(),o=async()=>{if(window.confirm(`Are you sure you want to delete ${e.rule.id}?`))try{await l.perform(e.rule.id),t.emit("delete")}catch(i){tt.isAxiosError(i)&&t.emit("set-error")}},p=async()=>{try{const a=await s.perform(e.rule.id);t.emit("set-message",a)}catch(a){tt.isAxiosError(a)&&t.emit("set-error",a)}};return lt(()=>{u.perform({q:r.value,page:1,limit:0}),d.perform({q:r.value,page:1,limit:0})}),{deleteRule:o,searchRule:p,searchRuleTask:s,href:n,getAlertsTask:u,getArtifactsTask:d,q:r}}}),OL={class:"buttons is-pulled-right"},IL=D("span",null,"Alerts:",-1),NL=D("span",null,"Artifacts:",-1),DL=["href"],FL=D("span",null,"JSON",-1),PL={class:"icon is-small"},BL=D("span",null,"Search",-1),WL={class:"icon is-small"},HL=D("span",null,"Edit",-1),UL={class:"icon is-small"},VL=D("span",null,"Delete",-1),zL={class:"icon is-small"};function jL(e,t,n,r,l,s){const u=re("router-link"),d=re("font-awesome-icon");return Z(),se("span",OL,[oe(u,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:e.q}}},{default:Je(()=>{var o,p;return[IL,D("span",null,$e((p=(o=e.getAlertsTask.last)==null?void 0:o.value)==null?void 0:p.total),1)]}),_:1},8,["to"]),oe(u,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:e.q}}},{default:Je(()=>{var o,p;return[NL,D("span",null,$e((p=(o=e.getArtifactsTask.last)==null?void 0:o.value)==null?void 0:p.total),1)]}),_:1},8,["to"]),D("a",{class:"button is-link is-light is-small",href:e.href,target:"_blank"},[FL,D("span",PL,[oe(d,{icon:"barcode"})])],8,DL),D("button",{class:"button is-primary is-light is-small",onClick:t[0]||(t[0]=(...o)=>e.searchRule&&e.searchRule(...o))},[BL,D("span",WL,[e.searchRuleTask.isRunning?(Z(),Se(d,{key:0,icon:"spinner",spin:""})):(Z(),Se(d,{key:1,icon:"magnifying-glass"}))])]),oe(u,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:Je(()=>[HL,D("span",UL,[oe(d,{icon:"edit"})])]),_:1},8,["to"]),D("button",{class:"button is-light is-small",onClick:t[1]||(t[1]=(...o)=>e.deleteRule&&e.deleteRule(...o))},[VL,D("span",zL,[oe(d,{icon:"times"})])])])}const qg=Re(ML,[["render",jL]]),GL=Ce({name:"YAML",components:{VAceEditor:Zg},props:{yaml:{type:String,required:!0}},setup(){}}),KL={class:"block"};function YL(e,t,n,r,l,s){const u=re("VAceEditor");return Z(),se("div",KL,[oe(u,{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])])}const ZL=Re(GL,[["render",YL]]),XL=Ce({name:"RuleDetailItem",props:{rule:{type:Object,required:!0}},components:{YAML:ZL,Alerts:Og,ErrorMessage:bt,Message:$a,ActionButtons:qg},emits:["delete","refresh"],setup(e,t){const n=ze(),r=ze();return{onSetMessage:a=>{a.queued?r.value=a:t.emit("refresh")},onDisposeMessage:()=>{r.value=void 0},message:r,onSetError:a=>{n.value=a},error:n,onDisposeError:()=>{n.value=void 0},onDelete:()=>{t.emit("delete")},onRefresh:()=>{t.emit("refresh")}}}}),qL={class:"block"},QL={class:"is-size-2 block"},JL={class:"block is-clearfix"},eM=D("hr",null,null,-1),tM={class:"block"},nM=D("h2",{class:"is-size-2 block"},"Alerts",-1);function rM(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("Message"),o=re("ActionButtons"),p=re("YAML"),a=re("Alerts");return Z(),se(Ne,null,[D("div",qL,[D("h2",QL,$e(e.rule.id),1),e.error?(Z(),Se(u,{key:0,class:"mt-3 mb-3",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),e.message?(Z(),Se(d,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):me("",!0),D("p",JL,[oe(o,{rule:e.rule,onSetMessage:e.onSetMessage,onDelete:e.onDelete,onSetError:e.onSetError},null,8,["rule","onSetMessage","onDelete","onSetError"])]),oe(p,{yaml:e.rule.yaml},null,8,["yaml"])]),eM,D("div",tM,[nM,oe(a,{ruleId:e.rule.id},null,8,["ruleId"])])],64)}const iM=Re(XL,[["render",rM]]),sM=Ce({name:"RuleDetailWrapper",components:{Rule:iM,Loading:Rn,ErrorMessage:bt},props:{id:{type:String,required:!0}},setup(e){const t=bg(),n=pi(),r=async()=>{await t.perform(e.id)},l=async()=>{await r()},s=()=>{n.push("/")};return lt(async()=>{await r()}),st(e,async()=>{await r()}),{getRuleTask:t,onRefresh:l,onDelete:s}}});function oM(e,t,n,r,l,s){var p,a;const u=re("Loading"),d=re("ErrorMessage"),o=re("Rule");return Z(),se(Ne,null,[e.getRuleTask.isRunning?(Z(),Se(u,{key:0})):me("",!0),e.getRuleTask.isError?(Z(),Se(d,{key:1,error:(p=e.getRuleTask.last)==null?void 0:p.error},null,8,["error"])):me("",!0),(a=e.getRuleTask.last)!=null&&a.value?(Z(),Se(o,{key:2,rule:e.getRuleTask.last.value,onRefresh:e.onRefresh,onDelete:e.onDelete},null,8,["rule","onRefresh","onDelete"])):me("",!0)],64)}const aM=Re(sM,[["render",oM]]),lM=Ce({name:"RuleView",components:{Rule:aM},props:{id:{type:String,required:!0}},setup(e){const t=()=>{En(`Rule:${e.id} - Mihari`)};lt(()=>{t()}),st(()=>e.id,()=>{t()})}});function cM(e,t,n,r,l,s){const u=re("Rule",!0);return Z(),Se(u,{id:e.id},null,8,["id"])}const uM=Re(lM,[["render",cM]]),hM=Ce({name:"RuleItem",props:{rule:{type:Object,required:!0}},components:{ActionButtons:qg,Tags:As,ErrorMessage:bt,Message:$a},emits:["delete"],setup(e,t){const n=ze(),r=ze();return{onSetError:p=>{n.value=p},onDisposeError:()=>{n.value=void 0},onSetMessage:p=>{r.value=p},onDelete:()=>{t.emit("delete")},error:n,message:r,onDisposeMessage:()=>{r.value=void 0}}}}),fM={class:"box"},dM={class:"block"},pM={class:"table is-fullwidth is-completely-borderless"},gM=D("th",null,"Title",-1),mM=D("th",null,"Description",-1),vM={key:0},yM=D("th",null,"Tags",-1),bM=D("p",{class:"block is-clearfix"},null,-1),wM={class:"help"};function _M(e,t,n,r,l,s){const u=re("ErrorMessage"),d=re("Message"),o=re("ActionButtons"),p=re("router-link"),a=re("Tags");return Z(),se("div",fM,[e.error?(Z(),Se(u,{key:0,class:"block",error:e.error,disposable:!0,onDispose:e.onDisposeError},null,8,["error","onDispose"])):me("",!0),e.message?(Z(),Se(d,{key:1,class:"block",message:e.message,disposable:!0,onDispose:e.onDisposeMessage},null,8,["message","onDispose"])):me("",!0),D("div",dM,[D("p",null,[oe(o,{rule:e.rule,onSetError:e.onSetError,onDelete:e.onDelete,onSetMessage:e.onSetMessage},null,8,["rule","onSetError","onDelete","onSetMessage"])]),oe(p,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:Je(()=>[et($e(e.rule.id),1)]),_:1},8,["to"])]),D("table",pM,[D("tr",null,[gM,D("td",null,$e(e.rule.title),1)]),D("tr",null,[mM,D("td",null,$e(e.rule.description),1)]),e.rule.tags.length>0?(Z(),se("tr",vM,[yM,D("td",null,[oe(a,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):me("",!0)]),bM,D("p",wM,"Created at: "+$e(e.rule.createdAt),1)])}const $M=Re(hM,[["render",_M]]),SM=Ce({name:"RulesItem",props:{rules:{type:Object,required:!0}},components:{Pagination:jc,Rule:$M},emits:["update-page","refresh"],setup(e,t){const n=ze(),r=u=>{t.emit("update-page",u)},l=()=>{t.emit("refresh")},s=Le(()=>e.rules.results.length>0);return{onUpdatePage:r,onRefresh:l,hasRules:s,error:n}}}),CM={key:0,class:"block"},AM={class:"help"},kM={key:1,class:"block"},xM=D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1),EM=[xM];function RM(e,t,n,r,l,s){const u=re("Rule"),d=re("Pagination");return e.hasRules?(Z(),se("div",CM,[(Z(!0),se(Ne,null,Nt(e.rules.results,o=>(Z(),Se(u,{rule:o,key:o.id,onRefresh:e.onRefresh,onDelete:e.onRefresh},null,8,["rule","onRefresh","onDelete"]))),128)),oe(d,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:e.onUpdatePage},null,8,["currentPage","total","pageSize","onUpdatePage"]),D("p",AM,"("+$e(e.rules.total)+" results in total, "+$e(e.rules.results.length)+" shown)",1)])):(Z(),se("div",kM,EM))}const TM=Re(SM,[["render",RM]]),LM=Ce({name:"RulesWrapper",components:{Rules:TM,Loading:Rn,ErrorMessage:bt},setup(){const e=ii("page","1"),t=ii("q",""),n=ze(!1),r=yg(),l=async()=>{const p={q:t.value,page:parseInt(e.value)};return await r.perform(p)},s=p=>{e.value=p.toString()},u=async()=>{e.value="1",await l()},d=u,o=()=>{n.value=!n.value};return lt(async()=>{await l()}),st(e,async()=>{await l()}),st(t,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),{getRulesTask:r,page:e,q:t,search:u,showHelp:n,toggleShowHelp:o,onUpdatePage:s,onRefresh:d}}}),MM={class:"block"},OM={class:"field has-addons"},IM={class:"control is-expanded"},NM={class:"control"},DM={class:"icon is-small"},FM=D("span",null,"Search",-1),PM={class:"control"},BM={class:"icon is-small"},WM=D("span",null,"Help",-1),HM={key:0,class:"content mt-3"},UM=sa('

Help

  • Search query supports AND, OR, :, =, !=, <, <=, >, >=, NOT and ().
  • Searchable fields are id, title, description, tag, created_at and updated_at.

Examples

',3),VM={key:0,class:"block"};function zM(e,t,n,r,l,s){var i,c;const u=re("font-awesome-icon"),d=re("router-link"),o=re("Loading"),p=re("ErrorMessage"),a=re("Rules");return Z(),se(Ne,null,[D("div",MM,[D("div",OM,[D("p",IM,[Jo(D("input",{class:"input",type:"text","onUpdate:modelValue":t[0]||(t[0]=h=>e.q=h)},null,512),[[_r,e.q]])]),D("p",NM,[D("a",{class:"button is-primary",onClick:t[1]||(t[1]=(...h)=>e.search&&e.search(...h))},[D("span",DM,[oe(u,{icon:"search"})]),FM])]),D("p",PM,[D("a",{class:"button is-info",onClick:t[2]||(t[2]=(...h)=>e.toggleShowHelp&&e.toggleShowHelp(...h))},[D("span",BM,[oe(u,{icon:"question"})]),WM])])]),e.showHelp?(Z(),se("div",HM,[UM,D("ul",null,[D("li",null,[oe(d,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:Je(()=>[et("title:foo AND created_at >= 2020-01-01")]),_:1})])])])):me("",!0)]),e.getRulesTask.performCount>0?(Z(),se("div",VM,[e.getRulesTask.isRunning?(Z(),Se(o,{key:0})):me("",!0),e.getRulesTask.isError?(Z(),Se(p,{key:1,error:(i=e.getRulesTask.last)==null?void 0:i.error},null,8,["error"])):me("",!0),(c=e.getRulesTask.last)!=null&&c.value?(Z(),Se(a,{key:2,rules:e.getRulesTask.last.value,onUpdatePage:e.onUpdatePage,onRefresh:e.onRefresh},null,8,["rules","onUpdatePage","onRefresh"])):me("",!0)])):me("",!0)],64)}const jM=Re(LM,[["render",zM]]),GM=Ce({name:"RulesView",components:{Rules:jM},setup(){En("Rules - Mihari")}});function KM(e,t,n,r,l,s){const u=re("Rules",!0);return Z(),Se(u)}const YM=Re(GM,[["render",KM]]),ZM=[{path:"/",name:"Alerts",component:p2},{path:"/alerts/:id",name:"Alert",component:fk,props:!0},{path:"/config",name:"Config",component:$T},{path:"/artifacts/",name:"Artifacts",component:eT},{path:"/artifacts/:id",name:"Artifact",component:dR,props:!0},{path:"/rules",name:"Rules",component:YM},{path:"/rules/new",name:"NewRule",component:LL},{path:"/rules/:id",name:"Rule",component:uM,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:cL,props:!0}],XM=Y1({history:S1(),routes:ZM});Ov.add(Bv,Jv,Xv,Fv,Qv,Hv,Nv,Gv,jv,Zv,Yv,Pv,Sf,zv,Vv,Uv,qv);const Qg=fp(jw);Qg.component("font-awesome-icon",Tw);Qg.use(XM).mount("#app");